VPCProps
Properties for defining a VPC
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-vpc
Initializer
import com.aliyun.ros.cdk.ecs.VPCProps;
VPCProps.builder()
// .cidrBlock(java.lang.String)
// .cidrBlock(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .enableIpv6(java.lang.Boolean)
// .enableIpv6(IResolvable)
// .ipv6CidrBlock(java.lang.String)
// .ipv6CidrBlock(IResolvable)
// .ipv6Isp(java.lang.String)
// .ipv6Isp(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .secondaryCidrBlocks(IResolvable)
// .secondaryCidrBlocks(java.util.List<java.lang.String)
// .secondaryCidrBlocks(IResolvable>)
// .tags(java.util.List<TagsProperty>)
// .userCidr(java.lang.String)
// .userCidr(IResolvable)
// .vpcName(java.lang.String)
// .vpcName(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
cidrBlock |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property cidrBlock: The IP address range of the VPC in the CIDR block form. |
description |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property description: Description of the vpc, [2, 256] characters. |
enableIpv6 |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property enableIpv6: Whether to enable an IPv6 network cidr, the value is:False (default): not turned on.True: On. |
ipv6CidrBlock |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ipv6CidrBlock: IPv6 network cidr of the VPC. |
ipv6Isp |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ipv6Isp: The Internet service provider (ISP) for IPv6 addresses of the VPC. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: Resource group id. |
secondaryCidrBlocks |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property secondaryCidrBlocks: The secondary IPv4 CIDR blocks. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags to attach to vpc. |
userCidr |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property userCidr: The user CIDR block. |
vpcName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vpcName: Display name of the vpc instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'. |
cidrBlock
Optional
public java.lang.Object getCidrBlock();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property cidrBlock: The IP address range of the VPC in the CIDR block form.
You can use the following IP address ranges and their subnets: 10.0.0.0/8 172.16.0.0/12 (Default) 192.168.0.0/16
description
Optional
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: Description of the vpc, [2, 256] characters.
Do not fill or empty, the default is empty.
enableIpv6
Optional
public java.lang.Object getEnableIpv6();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enableIpv6: Whether to enable an IPv6 network cidr, the value is:False (default): not turned on.True: On.
ipv6CidrBlock
Optional
public java.lang.Object getIpv6CidrBlock();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ipv6CidrBlock: IPv6 network cidr of the VPC.
ipv6Isp
Optional
public java.lang.Object getIpv6Isp();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ipv6Isp: The Internet service provider (ISP) for IPv6 addresses of the VPC.
Valid values: BGP(default): Alibaba Cloud BGP IPv6 ChinaMobile: China Mobile (single line) ChinaUnicom: China Unicom (single line) ChinaTelecom: China Telecom (single line) Note If your Alibaba Cloud account is allowed to activate single-ISP bandwidth, you can set the parameter to ChinaTelecom, ChinaUnicom, and ChinaMobile.
resourceGroupId
Optional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: Resource group id.
secondaryCidrBlocks
Optional
public java.lang.Object getSecondaryCidrBlocks();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property secondaryCidrBlocks: The secondary IPv4 CIDR blocks.
tags
Optional
public java.util.List<TagsProperty> getTags();
- Type: java.util.List<TagsProperty>
Property tags: Tags to attach to vpc.
Max support 20 tags to add during create vpc. Each tag with two properties Key and Value, and Key is required.
userCidr
Optional
public java.lang.Object getUserCidr();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property userCidr: The user CIDR block.
Separate multiple CIDR blocks with commas (,). At most three CIDR blocks are supported.
vpcName
Optional
public java.lang.Object getVpcName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcName: Display name of the vpc instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.