Class CfnSubnetPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetPropsMixin>
- Enclosing class:
CfnSubnetPropsMixin
CfnSubnetPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionassignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation) Indicates whether a network interface created in this subnet receives an IPv6 address.assignIpv6AddressOnCreation(IResolvable assignIpv6AddressOnCreation) Indicates whether a network interface created in this subnet receives an IPv6 address.availabilityZone(String availabilityZone) The Availability Zone of the subnet.availabilityZoneId(String availabilityZoneId) The AZ ID of the subnet.build()The IPv4 CIDR block assigned to the subnet.static CfnSubnetPropsMixin.Buildercreate()static CfnSubnetPropsMixin.Buildercreate(CfnPropertyMixinOptions options) 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.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.enableLniAtDeviceIndex(Number enableLniAtDeviceIndex) Indicates the device position for local network interfaces in this subnet.ipv4IpamPoolId(String ipv4IpamPoolId) An IPv4 IPAM pool ID for the subnet.ipv4NetmaskLength(Number ipv4NetmaskLength) An IPv4 netmask length for the subnet.ipv6CidrBlock(String ipv6CidrBlock) The IPv6 CIDR block.ipv6IpamPoolId(String ipv6IpamPoolId) An IPv6 IPAM pool ID for the subnet.ipv6Native(Boolean ipv6Native) Indicates whether this is an IPv6 only subnet.ipv6Native(IResolvable ipv6Native) Indicates whether this is an IPv6 only subnet.ipv6NetmaskLength(Number ipv6NetmaskLength) An IPv6 netmask length for the subnet.mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch) Indicates whether instances launched in this subnet receive a public IPv4 address.mapPublicIpOnLaunch(IResolvable mapPublicIpOnLaunch) Indicates whether instances launched in this subnet receive a public IPv4 address.outpostArn(String outpostArn) The Amazon Resource Name (ARN) of the Outpost.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.Any tags assigned to the subnet.The ID of the VPC the subnet is in.
-
Method Details
-
create
@Stability(Stable) public static CfnSubnetPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnSubnetPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnSubnetPropsMixin.Builder.
-
assignIpv6AddressOnCreation
@Stability(Stable) public CfnSubnetPropsMixin.Builder assignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation) Indicates whether a network interface created in this subnet receives an IPv6 address. The default value isfalse.If you specify
AssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.- Parameters:
assignIpv6AddressOnCreation- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value isfalse. This parameter is required.- Returns:
this- See Also:
-
assignIpv6AddressOnCreation
@Stability(Stable) public CfnSubnetPropsMixin.Builder assignIpv6AddressOnCreation(IResolvable assignIpv6AddressOnCreation) Indicates whether a network interface created in this subnet receives an IPv6 address. The default value isfalse.If you specify
AssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.- Parameters:
assignIpv6AddressOnCreation- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value isfalse. This parameter is required.- Returns:
this- See Also:
-
availabilityZone
The Availability Zone of the subnet.If you update this property, you must also update the
CidrBlockproperty.- Parameters:
availabilityZone- The Availability Zone of the subnet. This parameter is required.- Returns:
this- See Also:
-
availabilityZoneId
The AZ ID of the subnet.- Parameters:
availabilityZoneId- The AZ ID of the subnet. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
cidrBlock- The IPv4 CIDR block assigned to the subnet. This parameter is required.- Returns:
this- See Also:
-
enableDns64
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a
0.0.0.0/0route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the Amazon Virtual Private Cloud User Guide .- Parameters:
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.- Returns:
this- See Also:
-
enableDns64
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a
0.0.0.0/0route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the Amazon Virtual Private Cloud User Guide .- Parameters:
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.- Returns:
this- See Also:
-
enableLniAtDeviceIndex
@Stability(Stable) public CfnSubnetPropsMixin.Builder enableLniAtDeviceIndex(Number enableLniAtDeviceIndex) Indicates the device position for local network interfaces in this subnet.For example,
1indicates local network interfaces in this subnet are the secondary network interface (eth1).- Parameters:
enableLniAtDeviceIndex- Indicates the device position for local network interfaces in this subnet. This parameter is required.- Returns:
this- See Also:
-
ipv4IpamPoolId
An IPv4 IPAM pool ID for the subnet.- Parameters:
ipv4IpamPoolId- An IPv4 IPAM pool ID for the subnet. This parameter is required.- Returns:
this- See Also:
-
ipv4NetmaskLength
An IPv4 netmask length for the subnet.- Parameters:
ipv4NetmaskLength- An IPv4 netmask length for the subnet. This parameter is required.- Returns:
this- See Also:
-
ipv6CidrBlock
The IPv6 CIDR block.If you specify
AssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.- Parameters:
ipv6CidrBlock- The IPv6 CIDR block. This parameter is required.- Returns:
this- See Also:
-
ipv6IpamPoolId
An IPv6 IPAM pool ID for the subnet.- Parameters:
ipv6IpamPoolId- An IPv6 IPAM pool ID for the subnet. This parameter is required.- Returns:
this- See Also:
-
ipv6Native
Indicates whether this is an IPv6 only subnet.For more information, see Subnet basics in the Amazon Virtual Private Cloud User Guide .
- Parameters:
ipv6Native- Indicates whether this is an IPv6 only subnet. This parameter is required.- Returns:
this- See Also:
-
ipv6Native
Indicates whether this is an IPv6 only subnet.For more information, see Subnet basics in the Amazon Virtual Private Cloud User Guide .
- Parameters:
ipv6Native- Indicates whether this is an IPv6 only subnet. This parameter is required.- Returns:
this- See Also:
-
ipv6NetmaskLength
An IPv6 netmask length for the subnet.- Parameters:
ipv6NetmaskLength- An IPv6 netmask length for the subnet. This parameter is required.- Returns:
this- See Also:
-
mapPublicIpOnLaunch
@Stability(Stable) public CfnSubnetPropsMixin.Builder mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch) Indicates whether instances launched in this subnet receive a public IPv4 address. The default value isfalse.AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the VPC pricing page .
- Parameters:
mapPublicIpOnLaunch- Indicates whether instances launched in this subnet receive a public IPv4 address. The default value isfalse. This parameter is required.- Returns:
this- See Also:
-
mapPublicIpOnLaunch
@Stability(Stable) public CfnSubnetPropsMixin.Builder mapPublicIpOnLaunch(IResolvable mapPublicIpOnLaunch) Indicates whether instances launched in this subnet receive a public IPv4 address. The default value isfalse.AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the VPC pricing page .
- Parameters:
mapPublicIpOnLaunch- Indicates whether instances launched in this subnet receive a public IPv4 address. The default value isfalse. This parameter is required.- Returns:
this- See Also:
-
outpostArn
The Amazon Resource Name (ARN) of the Outpost.- Parameters:
outpostArn- The Amazon Resource Name (ARN) of the Outpost. This parameter is required.- Returns:
this- See Also:
-
privateDnsNameOptionsOnLaunch
@Stability(Stable) public CfnSubnetPropsMixin.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.For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .
Available options:
- EnableResourceNameDnsAAAARecord (true | false)
- EnableResourceNameDnsARecord (true | false)
- HostnameType (ip-name | resource-name)
- Parameters:
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.- Returns:
this- See Also:
-
tags
Any tags assigned to the subnet.- Parameters:
tags- Any tags assigned to the subnet. This parameter is required.- Returns:
this- See Also:
-
vpcId
The ID of the VPC the subnet is in.If you update this property, you must also update the
CidrBlockproperty.- Parameters:
vpcId- The ID of the VPC the subnet is in. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubnetPropsMixin>- Returns:
- a newly built instance of
CfnSubnetPropsMixin.
-