| Modifier and Type | Method and Description |
|---|---|
CfnSubnet.Builder |
assignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation)
Indicates whether a network interface created in this subnet receives an IPv6 address.
|
CfnSubnet.Builder |
assignIpv6AddressOnCreation(IResolvable assignIpv6AddressOnCreation)
Indicates whether a network interface created in this subnet receives an IPv6 address.
|
CfnSubnet.Builder |
availabilityZone(String availabilityZone)
The Availability Zone of the subnet.
|
CfnSubnet |
build() |
CfnSubnet.Builder |
cidrBlock(String cidrBlock)
The IPv4 CIDR block assigned to the subnet.
|
static CfnSubnet.Builder |
create(Construct scope,
String id) |
CfnSubnet.Builder |
ipv6CidrBlock(String ipv6CidrBlock)
The IPv6 CIDR block.
|
CfnSubnet.Builder |
mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
Indicates whether instances launched in this subnet receive a public IPv4 address.
|
CfnSubnet.Builder |
mapPublicIpOnLaunch(IResolvable mapPublicIpOnLaunch)
Indicates whether instances launched in this subnet receive a public IPv4 address.
|
CfnSubnet.Builder |
outpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
|
CfnSubnet.Builder |
tags(List<? extends CfnTag> tags)
Any tags assigned to the subnet.
|
CfnSubnet.Builder |
vpcId(String vpcId)
The ID of the VPC the subnet is in.
|
@Stability(value=Stable) public static CfnSubnet.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnSubnet.Builder.@Stability(value=Stable) public CfnSubnet.Builder cidrBlock(String cidrBlock)
If you update this property, we create a new subnet, and then delete the existing one.
cidrBlock - The IPv4 CIDR block assigned to the subnet. This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder vpcId(String vpcId)
If you update this property, you must also update the CidrBlock property.
vpcId - The ID of the VPC the subnet is in. This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder assignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation)
If you specify AssignIpv6AddressOnCreation , you must also specify Ipv6CidrBlock .
If you specify AssignIpv6AddressOnCreation , you cannot specify MapPublicIpOnLaunch .
assignIpv6AddressOnCreation - Indicates whether a network interface created in this subnet receives an IPv6 address. The default value is `false` . This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder assignIpv6AddressOnCreation(IResolvable assignIpv6AddressOnCreation)
If you specify AssignIpv6AddressOnCreation , you must also specify Ipv6CidrBlock .
If you specify AssignIpv6AddressOnCreation , you cannot specify MapPublicIpOnLaunch .
assignIpv6AddressOnCreation - Indicates whether a network interface created in this subnet receives an IPv6 address. The default value is `false` . This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder availabilityZone(String availabilityZone)
If you update this property, you must also update the CidrBlock property.
availabilityZone - The Availability Zone of the subnet. This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder ipv6CidrBlock(String ipv6CidrBlock)
If you specify AssignIpv6AddressOnCreation , you must also specify Ipv6CidrBlock .
ipv6CidrBlock - The IPv6 CIDR block. This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
If you specify MapPublicIpOnLaunch , you cannot specify AssignIpv6AddressOnCreation .
mapPublicIpOnLaunch - Indicates whether instances launched in this subnet receive a public IPv4 address. The default value is `false` . This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder mapPublicIpOnLaunch(IResolvable mapPublicIpOnLaunch)
If you specify MapPublicIpOnLaunch , you cannot specify AssignIpv6AddressOnCreation .
mapPublicIpOnLaunch - Indicates whether instances launched in this subnet receive a public IPv4 address. The default value is `false` . This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder outpostArn(String outpostArn)
outpostArn - The Amazon Resource Name (ARN) of the Outpost. This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder tags(List<? extends CfnTag> tags)
tags - Any tags assigned to the subnet. This parameter is required.thisCopyright © 2022. All rights reserved.