Class CfnSubnetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetMixinProps>
- Enclosing interface:
CfnSubnetMixinProps
CfnSubnetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation) Sets the value ofCfnSubnetMixinProps.getAssignIpv6AddressOnCreation()assignIpv6AddressOnCreation(IResolvable assignIpv6AddressOnCreation) Sets the value ofCfnSubnetMixinProps.getAssignIpv6AddressOnCreation()availabilityZone(String availabilityZone) Sets the value ofCfnSubnetMixinProps.getAvailabilityZone()availabilityZoneId(String availabilityZoneId) Sets the value ofCfnSubnetMixinProps.getAvailabilityZoneId()build()Builds the configured instance.Sets the value ofCfnSubnetMixinProps.getCidrBlock()enableDns64(Boolean enableDns64) Sets the value ofCfnSubnetMixinProps.getEnableDns64()enableDns64(IResolvable enableDns64) Sets the value ofCfnSubnetMixinProps.getEnableDns64()enableLniAtDeviceIndex(Number enableLniAtDeviceIndex) Sets the value ofCfnSubnetMixinProps.getEnableLniAtDeviceIndex()ipv4IpamPoolId(String ipv4IpamPoolId) Sets the value ofCfnSubnetMixinProps.getIpv4IpamPoolId()ipv4NetmaskLength(Number ipv4NetmaskLength) Sets the value ofCfnSubnetMixinProps.getIpv4NetmaskLength()ipv6CidrBlock(String ipv6CidrBlock) Sets the value ofCfnSubnetMixinProps.getIpv6CidrBlock()ipv6IpamPoolId(String ipv6IpamPoolId) Sets the value ofCfnSubnetMixinProps.getIpv6IpamPoolId()ipv6Native(Boolean ipv6Native) Sets the value ofCfnSubnetMixinProps.getIpv6Native()ipv6Native(IResolvable ipv6Native) Sets the value ofCfnSubnetMixinProps.getIpv6Native()ipv6NetmaskLength(Number ipv6NetmaskLength) Sets the value ofCfnSubnetMixinProps.getIpv6NetmaskLength()mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch) Sets the value ofCfnSubnetMixinProps.getMapPublicIpOnLaunch()mapPublicIpOnLaunch(IResolvable mapPublicIpOnLaunch) Sets the value ofCfnSubnetMixinProps.getMapPublicIpOnLaunch()outpostArn(String outpostArn) Sets the value ofCfnSubnetMixinProps.getOutpostArn()privateDnsNameOptionsOnLaunch(Object privateDnsNameOptionsOnLaunch) Sets the value ofCfnSubnetMixinProps.getPrivateDnsNameOptionsOnLaunch()Sets the value ofCfnSubnetMixinProps.getTags()Sets the value ofCfnSubnetMixinProps.getVpcId()Sets the value ofCfnSubnetMixinProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assignIpv6AddressOnCreation
@Stability(Stable) public CfnSubnetMixinProps.Builder assignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation) Sets the value ofCfnSubnetMixinProps.getAssignIpv6AddressOnCreation()- Parameters:
assignIpv6AddressOnCreation- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value isfalse. If you specifyAssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.- Returns:
this
-
assignIpv6AddressOnCreation
@Stability(Stable) public CfnSubnetMixinProps.Builder assignIpv6AddressOnCreation(IResolvable assignIpv6AddressOnCreation) Sets the value ofCfnSubnetMixinProps.getAssignIpv6AddressOnCreation()- Parameters:
assignIpv6AddressOnCreation- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value isfalse. If you specifyAssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.- Returns:
this
-
availabilityZone
Sets the value ofCfnSubnetMixinProps.getAvailabilityZone()- Parameters:
availabilityZone- The Availability Zone of the subnet. If you update this property, you must also update theCidrBlockproperty.- Returns:
this
-
availabilityZoneId
Sets the value ofCfnSubnetMixinProps.getAvailabilityZoneId()- Parameters:
availabilityZoneId- The AZ ID of the subnet.- Returns:
this
-
cidrBlock
Sets the value ofCfnSubnetMixinProps.getCidrBlock()- Parameters:
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.- Returns:
this
-
enableDns64
Sets the value ofCfnSubnetMixinProps.getEnableDns64()- 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.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 .- Returns:
this
-
enableDns64
Sets the value ofCfnSubnetMixinProps.getEnableDns64()- 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.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 .- Returns:
this
-
enableLniAtDeviceIndex
@Stability(Stable) public CfnSubnetMixinProps.Builder enableLniAtDeviceIndex(Number enableLniAtDeviceIndex) Sets the value ofCfnSubnetMixinProps.getEnableLniAtDeviceIndex()- Parameters:
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).- Returns:
this
-
ipv4IpamPoolId
Sets the value ofCfnSubnetMixinProps.getIpv4IpamPoolId()- Parameters:
ipv4IpamPoolId- An IPv4 IPAM pool ID for the subnet.- Returns:
this
-
ipv4NetmaskLength
Sets the value ofCfnSubnetMixinProps.getIpv4NetmaskLength()- Parameters:
ipv4NetmaskLength- An IPv4 netmask length for the subnet.- Returns:
this
-
ipv6CidrBlock
Sets the value ofCfnSubnetMixinProps.getIpv6CidrBlock()- Parameters:
ipv6CidrBlock- The IPv6 CIDR block. If you specifyAssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.- Returns:
this
-
ipv6IpamPoolId
Sets the value ofCfnSubnetMixinProps.getIpv6IpamPoolId()- Parameters:
ipv6IpamPoolId- An IPv6 IPAM pool ID for the subnet.- Returns:
this
-
ipv6Native
Sets the value ofCfnSubnetMixinProps.getIpv6Native()- Parameters:
ipv6Native- Indicates whether this is an IPv6 only subnet. For more information, see Subnet basics in the Amazon Virtual Private Cloud User Guide .- Returns:
this
-
ipv6Native
Sets the value ofCfnSubnetMixinProps.getIpv6Native()- Parameters:
ipv6Native- Indicates whether this is an IPv6 only subnet. For more information, see Subnet basics in the Amazon Virtual Private Cloud User Guide .- Returns:
this
-
ipv6NetmaskLength
Sets the value ofCfnSubnetMixinProps.getIpv6NetmaskLength()- Parameters:
ipv6NetmaskLength- An IPv6 netmask length for the subnet.- Returns:
this
-
mapPublicIpOnLaunch
@Stability(Stable) public CfnSubnetMixinProps.Builder mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch) Sets the value ofCfnSubnetMixinProps.getMapPublicIpOnLaunch()- Parameters:
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 .- Returns:
this
-
mapPublicIpOnLaunch
@Stability(Stable) public CfnSubnetMixinProps.Builder mapPublicIpOnLaunch(IResolvable mapPublicIpOnLaunch) Sets the value ofCfnSubnetMixinProps.getMapPublicIpOnLaunch()- Parameters:
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 .- Returns:
this
-
outpostArn
Sets the value ofCfnSubnetMixinProps.getOutpostArn()- Parameters:
outpostArn- The Amazon Resource Name (ARN) of the Outpost.- Returns:
this
-
privateDnsNameOptionsOnLaunch
@Stability(Stable) public CfnSubnetMixinProps.Builder privateDnsNameOptionsOnLaunch(Object privateDnsNameOptionsOnLaunch) Sets the value ofCfnSubnetMixinProps.getPrivateDnsNameOptionsOnLaunch()- 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. 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)
- Returns:
this
-
tags
Sets the value ofCfnSubnetMixinProps.getTags()- Parameters:
tags- Any tags assigned to the subnet.- Returns:
this
-
vpcId
Sets the value ofCfnSubnetMixinProps.getVpcId()- Parameters:
vpcId- The ID of the VPC the subnet is in. If you update this property, you must also update theCidrBlockproperty.- Returns:
this
-
vpcId
Sets the value ofCfnSubnetMixinProps.getVpcId()- Parameters:
vpcId- The ID of the VPC the subnet is in. If you update this property, you must also update theCidrBlockproperty.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubnetMixinProps>- Returns:
- a new instance of
CfnSubnetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-