| 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.Builder |
availabilityZoneId(String availabilityZoneId)
The AZ ID of the subnet.
|
CfnSubnet |
build() |
CfnSubnet.Builder |
cidrBlock(String cidrBlock)
The IPv4 CIDR block assigned to the subnet.
|
static CfnSubnet.Builder |
create(software.constructs.Construct scope,
String id) |
CfnSubnet.Builder |
enableDns64(Boolean enableDns64)
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
|
CfnSubnet.Builder |
enableDns64(IResolvable enableDns64)
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
|
CfnSubnet.Builder |
ipv6CidrBlock(String ipv6CidrBlock)
The IPv6 CIDR block.
|
CfnSubnet.Builder |
ipv6Native(Boolean ipv6Native)
Indicates whether this is an IPv6 only subnet.
|
CfnSubnet.Builder |
ipv6Native(IResolvable ipv6Native)
Indicates whether this is an IPv6 only subnet.
|
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 |
privateDnsNameOptionsOnLaunch(Object privateDnsNameOptionsOnLaunch)
The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries to the instances should be handled.
|
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(software.constructs.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 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 .
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 .
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 availabilityZoneId(String availabilityZoneId)
availabilityZoneId - The AZ ID of the subnet. This parameter is required.this@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 enableDns64(Boolean enableDns64)
For more information, see DNS64 and NAT64 in the Amazon Virtual Private Cloud User Guide .
enableDns64 - Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder enableDns64(IResolvable enableDns64)
For more information, see DNS64 and NAT64 in the Amazon Virtual Private Cloud User Guide .
enableDns64 - Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. 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 ipv6Native(Boolean ipv6Native)
For more information, see Subnet basics in the Amazon Virtual Private Cloud User Guide .
ipv6Native - Indicates whether this is an IPv6 only subnet. This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder ipv6Native(IResolvable ipv6Native)
For more information, see Subnet basics in the Amazon Virtual Private Cloud User Guide .
ipv6Native - Indicates whether this is an IPv6 only subnet. This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
The default value is false .
mapPublicIpOnLaunch - Indicates whether instances launched in this subnet receive a public IPv4 address. This parameter is required.this@Stability(value=Stable) public CfnSubnet.Builder mapPublicIpOnLaunch(IResolvable mapPublicIpOnLaunch)
The default value is false .
mapPublicIpOnLaunch - Indicates whether instances launched in this subnet receive a public IPv4 address. 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 privateDnsNameOptionsOnLaunch(Object privateDnsNameOptionsOnLaunch)
For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .
privateDnsNameOptionsOnLaunch - The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries to the instances should be handled. 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.