Elastic Load Balancing
API Reference (API Version 2012-06-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

AttachLoadBalancerToSubnets

Description

Adds one or more subnets to the set of configured subnets in the VPC for the LoadBalancer.

The Loadbalancers evenly distribute requests across all of the registered subnets.

Request Parameters

For information about the common parameters that all actions use, see Common Parameters.

LoadBalancerName

The name associated with the LoadBalancer. The name must be unique within the client AWS account.

Type: String

Required: Yes

Subnets.member.N

A list of subnet IDs to add for the LoadBalancer.

Type: String list

Required: Yes

Response Elements

The following element is returned in a AttachLoadBalancerToSubnetsResult structure.

Subnets

A list of subnet IDs added for the LoadBalancer.

Type: String list

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessPointNotFound

The specified LoadBalancer could not be found.

HTTP Status Code: 400

InvalidConfigurationRequest

Requested configuration change is invalid.

HTTP Status Code: 409

InvalidSubnet

The VPC has no Internet gateway.

HTTP Status Code: 400

SubnetNotFound

One or more subnets were not found.

HTTP Status Code: 400