AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
Associates, updates, or disables a policy with a listener for the specified load balancer. You can associate multiple policies with a listener.

Namespace: Amazon.ElasticLoadBalancing
Assembly: AWSSDK.dll
Version: (assembly version)


public abstract SetLoadBalancerPoliciesOfListenerResponse SetLoadBalancerPoliciesOfListener(
         SetLoadBalancerPoliciesOfListenerRequest request


Type: Amazon.ElasticLoadBalancing.Model.SetLoadBalancerPoliciesOfListenerRequest

Container for the necessary parameters to execute the SetLoadBalancerPoliciesOfListener service method.

Return Value
Type: Amazon.ElasticLoadBalancing.Model.SetLoadBalancerPoliciesOfListenerResponse
The response from the SetLoadBalancerPoliciesOfListener service method, as returned by ElasticLoadBalancing.


AccessPointNotFoundException The specified load balancer does not exist.
InvalidConfigurationRequestException The requested configuration change is not valid.
ListenerNotFoundException The load balancer does not have a listener configured at the specified port.
PolicyNotFoundException One or more of the specified policies do not exist.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5