SubnetMappingProperty Struct
Specifies a subnet for a load balancer.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
const subnetMappingProperty: elbv2.CfnLoadBalancer.SubnetMappingProperty = {
subnetId: 'subnetId',
// the properties below are optional
allocationId: 'allocationId',
iPv6Address: 'iPv6Address',
privateIPv4Address: 'privateIPv4Address',
sourceNatIpv6Prefix: 'sourceNatIpv6Prefix',
};
Properties
allocationIdoptionalstringallocation_idoptionalstrallocationIdoptionalStringAllocationIdoptionalstringAllocationIdoptional*string#[Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer.
iPv6Addressoptionalstringi_pv6_addressoptionalstriPv6AddressoptionalStringIPv6AddressoptionalstringIPv6Addressoptional*string#[Network Load Balancers] The IPv6 address.
privateIPv4Addressoptionalstringprivate_i_pv4_addressoptionalstrprivateIPv4AddressoptionalStringPrivateIPv4AddressoptionalstringPrivateIPv4Addressoptional*string#[Network Load Balancers] The private IPv4 address for an internal load balancer.
sourceNatIpv6Prefixoptionalstringsource_nat_ipv6_prefixoptionalstrsourceNatIpv6PrefixoptionalStringSourceNatIpv6PrefixoptionalstringSourceNatIpv6Prefixoptional*string#[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_assigned to use an IPv6 prefix selected at random from the subnet CIDR block.
The ID of the subnet.