NatIp
This class encapsulates and extends the ROS resource type ALIYUN::VPC::NatIp
, which is used to create a NAT IP address.
Initializers
import com.aliyun.ros.cdk.vpc.NatIp;
NatIp.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.natGatewayId(java.lang.String)
.natGatewayId(IResolvable)
.natIpCidr(java.lang.String)
.natIpCidr(IResolvable)
.natIpDescription(java.lang.String)
.natIpDescription(IResolvable)
.natIpName(java.lang.String)
.natIpName(IResolvable)
// .natIp(java.lang.String)
// .natIp(IResolvable)
// .natIpCidrId(java.lang.String)
// .natIpCidrId(IResolvable)
.build();
Name | Type | Description |
---|---|---|
scope |
com.aliyun.ros.cdk.core.Construct |
No description. |
id |
java.lang.String |
No description. |
enableResourcePropertyConstraint |
java.lang.Boolean |
No description. |
natGatewayId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property natGatewayId: The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address. |
natIpCidr |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property natIpCidr: The CIDR block to which the NAT IP address belongs. |
natIpDescription |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property natIpDescription: The description of the NAT IP address. |
natIpName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property natIpName: The name of the NAT IP address. |
natIp |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property natIp: The NAT IP address that you want to create. |
natIpCidrId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property natIpCidrId: The ID of the CIDR block to which the NAT IP address belongs. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
natGatewayId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property natGatewayId: The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
natIpCidr
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property natIpCidr: The CIDR block to which the NAT IP address belongs.
natIpDescription
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property natIpDescription: The description of the NAT IP address.
The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
natIpName
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property natIpName: The name of the NAT IP address.
The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It cannot start with http:// or https://.
natIp
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property natIp: The NAT IP address that you want to create.
If you do not specify an IP address, the system selects a random IP address from the specified CIDR block.
natIpCidrId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property natIpCidrId: The ID of the CIDR block to which the NAT IP address belongs.
Methods
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition |
No description. |
addCount |
No description. |
addDependency |
No description. |
addResourceDesc |
No description. |
applyRemovalPolicy |
No description. |
getAtt |
No description. |
setMetadata |
No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.vpc.NatIp;
NatIp.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
Name | Type | Description |
---|---|---|
node |
com.aliyun.ros.cdk.core.ConstructNode |
The construct tree node associated with this construct. |
ref |
java.lang.String |
No description. |
stack |
com.aliyun.ros.cdk.core.Stack |
The stack in which this resource is defined. |
resource |
com.aliyun.ros.cdk.core.RosResource |
No description. |
attrNatIp |
com.aliyun.ros.cdk.core.IResolvable |
Attribute NatIp: NAT IP address. |
attrNatIpId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute NatIpId: The ID of the NAT IP address. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrNatIp
Required
public IResolvable getAttrNatIp();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute NatIp: NAT IP address.
attrNatIpId
Required
public IResolvable getAttrNatIpId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute NatIpId: The ID of the NAT IP address.