AWS::ElasticLoadBalancingV2::LoadBalancer SubnetMapping - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::ElasticLoadBalancingV2::LoadBalancer SubnetMapping

Specifies a subnet for a load balancer.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "AllocationId" : String, "IPv6Address" : String, "PrivateIPv4Address" : String, "SubnetId" : String }

YAML

AllocationId: String IPv6Address: String PrivateIPv4Address: String SubnetId: String

Properties

AllocationId

[Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer.

Required: No

Type: String

Update requires: No interruption

IPv6Address

[Network Load Balancers] The IPv6 address.

Required: No

Type: String

Update requires: No interruption

PrivateIPv4Address

[Network Load Balancers] The private IPv4 address for an internal load balancer.

Required: No

Type: String

Update requires: No interruption

SubnetId

The ID of the subnet.

Required: Yes

Type: String

Update requires: No interruption