Interface CfnLoadBalancer.SubnetMappingProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLoadBalancer.SubnetMappingProperty.Jsii$Proxy
- Enclosing class:
CfnLoadBalancer
@Stability(Stable)
public static interface CfnLoadBalancer.SubnetMappingProperty
extends software.amazon.jsii.JsiiSerializable
Specifies a subnet for a load balancer.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
SubnetMappingProperty subnetMappingProperty = SubnetMappingProperty.builder()
.subnetId("subnetId")
// the properties below are optional
.allocationId("allocationId")
.iPv6Address("iPv6Address")
.privateIPv4Address("privateIPv4Address")
.sourceNatIpv6Prefix("sourceNatIpv6Prefix")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLoadBalancer.SubnetMappingPropertystatic final classAn implementation forCfnLoadBalancer.SubnetMappingProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default String[Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer.default String[Network Load Balancers] The IPv6 address.default String[Network Load Balancers] The private IPv4 address for an internal load balancer.default String[Network Load Balancers with UDP listeners] The IPv6 prefix to use for source NAT.The ID of the subnet.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSubnetId
The ID of the subnet.- See Also:
-
getAllocationId
[Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer.- See Also:
-
getIPv6Address
[Network Load Balancers] The IPv6 address.- See Also:
-
getPrivateIPv4Address
[Network Load Balancers] The private IPv4 address for an internal load balancer.- See Also:
-
getSourceNatIpv6Prefix
[Network Load Balancers with UDP listeners] The IPv6 prefix to use for source NAT.Specify an IPv6 prefix (/80 netmask) from the subnet CIDR block or
auto_assignedto use an IPv6 prefix selected at random from the subnet CIDR block.- See Also:
-
builder
-