public static final class CfnSubnetProps.Builder
extends java.lang.Object
CfnSubnetProps
Constructor and Description |
---|
Builder() |
public CfnSubnetProps.Builder vpcId(java.lang.String vpcId)
CfnSubnetProps.getVpcId()
vpcId
- The ID of the VPC the subnet is in. This parameter is required.
If you update this property, you must also update the CidrBlock
property.this
public CfnSubnetProps.Builder assignIpv6AddressOnCreation(java.lang.Boolean assignIpv6AddressOnCreation)
CfnSubnetProps.getAssignIpv6AddressOnCreation()
assignIpv6AddressOnCreation
- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value is `false` .
If you specify AssignIpv6AddressOnCreation
, you must also specify Ipv6CidrBlock
.this
public CfnSubnetProps.Builder assignIpv6AddressOnCreation(IResolvable assignIpv6AddressOnCreation)
CfnSubnetProps.getAssignIpv6AddressOnCreation()
assignIpv6AddressOnCreation
- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value is `false` .
If you specify AssignIpv6AddressOnCreation
, you must also specify Ipv6CidrBlock
.this
public CfnSubnetProps.Builder availabilityZone(java.lang.String availabilityZone)
CfnSubnetProps.getAvailabilityZone()
availabilityZone
- The Availability Zone of the subnet.
If you update this property, you must also update the CidrBlock
property.this
public CfnSubnetProps.Builder availabilityZoneId(java.lang.String availabilityZoneId)
CfnSubnetProps.getAvailabilityZoneId()
availabilityZoneId
- The AZ ID of the subnet.this
public CfnSubnetProps.Builder cidrBlock(java.lang.String cidrBlock)
CfnSubnetProps.getCidrBlock()
cidrBlock
- The IPv4 CIDR block assigned to the subnet.
If you update this property, we create a new subnet, and then delete the existing one.this
public CfnSubnetProps.Builder enableDns64(java.lang.Boolean enableDns64)
CfnSubnetProps.getEnableDns64()
enableDns64
- Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
For more information, see DNS64 and NAT64 in the Amazon Virtual Private Cloud User Guide .this
public CfnSubnetProps.Builder enableDns64(IResolvable enableDns64)
CfnSubnetProps.getEnableDns64()
enableDns64
- Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
For more information, see DNS64 and NAT64 in the Amazon Virtual Private Cloud User Guide .this
public CfnSubnetProps.Builder ipv6CidrBlock(java.lang.String ipv6CidrBlock)
CfnSubnetProps.getIpv6CidrBlock()
ipv6CidrBlock
- The IPv6 CIDR block.
If you specify AssignIpv6AddressOnCreation
, you must also specify Ipv6CidrBlock
.this
public CfnSubnetProps.Builder ipv6Native(java.lang.Boolean ipv6Native)
CfnSubnetProps.getIpv6Native()
ipv6Native
- Indicates whether this is an IPv6 only subnet.
For more information, see Subnet basics in the Amazon Virtual Private Cloud User Guide .this
public CfnSubnetProps.Builder ipv6Native(IResolvable ipv6Native)
CfnSubnetProps.getIpv6Native()
ipv6Native
- Indicates whether this is an IPv6 only subnet.
For more information, see Subnet basics in the Amazon Virtual Private Cloud User Guide .this
public CfnSubnetProps.Builder mapPublicIpOnLaunch(java.lang.Boolean mapPublicIpOnLaunch)
CfnSubnetProps.getMapPublicIpOnLaunch()
mapPublicIpOnLaunch
- Indicates whether instances launched in this subnet receive a public IPv4 address.
The default value is false
.this
public CfnSubnetProps.Builder mapPublicIpOnLaunch(IResolvable mapPublicIpOnLaunch)
CfnSubnetProps.getMapPublicIpOnLaunch()
mapPublicIpOnLaunch
- Indicates whether instances launched in this subnet receive a public IPv4 address.
The default value is false
.this
public CfnSubnetProps.Builder outpostArn(java.lang.String outpostArn)
CfnSubnetProps.getOutpostArn()
outpostArn
- The Amazon Resource Name (ARN) of the Outpost.this
public CfnSubnetProps.Builder privateDnsNameOptionsOnLaunch(java.lang.Object privateDnsNameOptionsOnLaunch)
CfnSubnetProps.getPrivateDnsNameOptionsOnLaunch()
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.
For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .this
public CfnSubnetProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnSubnetProps.getTags()
tags
- Any tags assigned to the subnet.this
public CfnSubnetProps build()
CfnSubnetProps
java.lang.NullPointerException
- if any required attribute was not provided