AWS CloudFormation
User Guide (Version )

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

AWS::ElasticLoadBalancingV2::LoadBalancer SubnetMapping

Specifies a subnet to attach to an Application Load Balancer or a Network Load Balancer.

Syntax

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

JSON

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

YAML

AllocationId: String SubnetId: String

Properties

AllocationId

[Network Load Balancers] The allocation ID of the Elastic IP address.

Required: Yes

Type: String

Update requires: No interruption

SubnetId

The ID of the subnet.

Required: Yes

Type: String

Update requires: No interruption

On this page: