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...

SetLoadBalancerPoliciesOfListener

Description

Associates, updates, or disables a policy with a listener on the LoadBalancer. You can associate multiple policies with a listener.

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

LoadBalancerPort

The external port of the LoadBalancer with which this policy applies to.

Type: Integer

Required: Yes

PolicyNames.member.N

List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener.

Type: String list

Required: Yes

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

ListenerNotFound

LoadBalancer does not have a listener configured at the given port.

HTTP Status Code: 400

PolicyNotFound

One or more specified policies were not found.

HTTP Status Code: 400