@Stability(value=Stable) public static final class CfnSubnetProps.Builder extends Object implements software.amazon.jsii.Builder<CfnSubnetProps>
CfnSubnetProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnSubnetProps.Builder vpcId(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@Stability(value=Stable) public CfnSubnetProps.Builder assignIpv6AddressOnCreation(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@Stability(value=Stable) 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@Stability(value=Stable) public CfnSubnetProps.Builder availabilityZone(String availabilityZone)
CfnSubnetProps.getAvailabilityZone()availabilityZone - The Availability Zone of the subnet.
If you update this property, you must also update the CidrBlock property.this@Stability(value=Stable) public CfnSubnetProps.Builder availabilityZoneId(String availabilityZoneId)
CfnSubnetProps.getAvailabilityZoneId()availabilityZoneId - The AZ ID of the subnet.this@Stability(value=Stable) public CfnSubnetProps.Builder cidrBlock(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@Stability(value=Stable) public CfnSubnetProps.Builder enableDns64(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@Stability(value=Stable) 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@Stability(value=Stable) public CfnSubnetProps.Builder ipv6CidrBlock(String ipv6CidrBlock)
CfnSubnetProps.getIpv6CidrBlock()ipv6CidrBlock - The IPv6 CIDR block.
If you specify AssignIpv6AddressOnCreation , you must also specify Ipv6CidrBlock .this@Stability(value=Stable) public CfnSubnetProps.Builder ipv6Native(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@Stability(value=Stable) 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@Stability(value=Stable) public CfnSubnetProps.Builder mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
CfnSubnetProps.getMapPublicIpOnLaunch()mapPublicIpOnLaunch - Indicates whether instances launched in this subnet receive a public IPv4 address.
The default value is false .this@Stability(value=Stable) 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@Stability(value=Stable) public CfnSubnetProps.Builder outpostArn(String outpostArn)
CfnSubnetProps.getOutpostArn()outpostArn - The Amazon Resource Name (ARN) of the Outpost.this@Stability(value=Stable) public CfnSubnetProps.Builder privateDnsNameOptionsOnLaunch(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@Stability(value=Stable) public CfnSubnetProps.Builder tags(List<? extends CfnTag> tags)
CfnSubnetProps.getTags()tags - Any tags assigned to the subnet.this@Stability(value=Stable) public CfnSubnetProps build()
build in interface software.amazon.jsii.Builder<CfnSubnetProps>CfnSubnetPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.