AWS CloudFormation
User Guide (Version )

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: