interface SubnetMappingProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.ElasticLoadBalancingV2.CfnLoadBalancerPropsMixin.SubnetMappingProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awselasticloadbalancingv2#CfnLoadBalancerPropsMixin_SubnetMappingProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.elasticloadbalancingv2.CfnLoadBalancerPropsMixin.SubnetMappingProperty |
Python | aws_cdk.cfn_property_mixins.aws_elasticloadbalancingv2.CfnLoadBalancerPropsMixin.SubnetMappingProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_elasticloadbalancingv2 » CfnLoadBalancerPropsMixin » SubnetMappingProperty |
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 { aws_elasticloadbalancingv2 as elasticloadbalancingv2 } from '@aws-cdk/cfn-property-mixins';
const subnetMappingProperty: elasticloadbalancingv2.CfnLoadBalancerPropsMixin.SubnetMappingProperty = {
allocationId: 'allocationId',
iPv6Address: 'iPv6Address',
privateIPv4Address: 'privateIPv4Address',
sourceNatIpv6Prefix: 'sourceNatIpv6Prefix',
subnetId: 'subnetId',
};
Properties
| Name | Type | Description |
|---|---|---|
| allocation | string | [Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer. |
| i | string | [Network Load Balancers] The IPv6 address. |
| private | string | [Network Load Balancers] The private IPv4 address for an internal load balancer. |
| source | string | [Network Load Balancers with UDP listeners] The IPv6 prefix to use for source NAT. |
| subnet | string | ISubnet | The ID of the subnet. |
allocationId?
Type:
string
(optional)
[Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer.
iPv6Address?
Type:
string
(optional)
[Network Load Balancers] The IPv6 address.
privateIPv4Address?
Type:
string
(optional)
[Network Load Balancers] The private IPv4 address for an internal load balancer.
sourceNatIpv6Prefix?
Type:
string
(optional)
[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.
subnetId?
Type:
string | ISubnet
(optional)
The ID of the subnet.

.NET
Go
Java
Python
TypeScript