VpcCidrBlockAssociation
This class encapsulates and extends the ROS resource type ALIYUN::VPC::VpcCidrBlockAssociation
, which is used to add a secondary CIDR block to a virtual private cloud (VPC).
Initializers
import com.aliyun.ros.cdk.vpc.VpcCidrBlockAssociation;
VpcCidrBlockAssociation.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.vpcId(java.lang.String)
.vpcId(IResolvable)
// .ipamPoolId(java.lang.String)
// .ipamPoolId(IResolvable)
// .iPv6CidrBlock(java.lang.String)
// .iPv6CidrBlock(IResolvable)
// .ipv6Isp(java.lang.String)
// .ipv6Isp(IResolvable)
// .ipVersion(java.lang.String)
// .ipVersion(IResolvable)
// .secondaryCidrBlock(java.lang.String)
// .secondaryCidrBlock(IResolvable)
// .secondaryCidrMask(java.lang.Number)
// .secondaryCidrMask(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. |
vpcId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vpcId: The ID of the VPC to which you want to add a secondary CIDR block. |
ipamPoolId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ipamPoolId: The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses. |
iPv6CidrBlock |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property iPv6CidrBlock: The IPv6 CIDR block to be added. |
ipv6Isp |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ipv6Isp: The type of the IPv6 CIDR block. |
ipVersion |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ipVersion: The version of the IP address. |
secondaryCidrBlock |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property secondaryCidrBlock: The IPv4 CIDR block to be added. |
secondaryCidrMask |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property secondaryCidrMask: Add an additional network segment to the VPC from the iPam address pool by entering a mask. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
vpcId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The ID of the VPC to which you want to add a secondary CIDR block.
ipamPoolId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ipamPoolId: The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
iPv6CidrBlock
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property iPv6CidrBlock: The IPv6 CIDR block to be added.
Note You must and can specify only one of SecondaryCidrBlock and Ipv6CidrBlock.
ipv6Isp
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ipv6Isp: The type of the IPv6 CIDR block.
Valid values: BGP (default) ChinaMobile ChinaUnicom ChinaTelecom Note If your Alibaba Cloud account is allowed to activate single-ISP bandwidth, you can set this parameter to ChinaTelecom, ChinaUnicom, or ChinaMobile.
ipVersion
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ipVersion: The version of the IP address.
Valid values: IPV4: the IPv4 address. IPV6: the IPv6 address. If you set IpVersion to IPV6 and do not specify SecondaryCidrBlock, you can add a secondary IPv6 CIDR block to the VPC.
secondaryCidrBlock
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property secondaryCidrBlock: The IPv4 CIDR block to be added.
Take note of the following requirements: You can specify one of the following standard IPv4 CIDR blocks or their subnets as the secondary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, or their subnets as the secondary IPv4 CIDR block of the VPC. The CIDR block must meet the following requirements: The CIDR block cannot start with 0. The subnet mask must be 8 to 28 bits in length. The CIDR block cannot overlap with the primary CIDR block or an existing secondary CIDR block of the VPC. Note You must and can specify only one of SecondaryCidrBlock and Ipv6CidrBlock.
secondaryCidrMask
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property secondaryCidrMask: Add an additional network segment to the VPC from the iPam address pool by entering a mask.
Explain that the designated iPam address pool adds additional network segments to VPC, and the parameter SecondaryCidrblock or SecondaryCidrmask inputs at least one.
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.VpcCidrBlockAssociation;
VpcCidrBlockAssociation.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. |
attrVpcId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute VpcId: The ID of the VPC to which you want to add a secondary CIDR block. |
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
attrVpcId
Required
public IResolvable getAttrVpcId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute VpcId: The ID of the VPC to which you want to add a secondary CIDR block.