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
 
Creates a policy with the specified attributes for the specified load balancer.

Policies are settings that are saved for your load balancer and that can be applied to the front-end listener or the back-end application server, depending on the policy type.

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

Syntax

C#
public virtual CreateLoadBalancerPolicyResponse CreateLoadBalancerPolicy(
         CreateLoadBalancerPolicyRequest request
)

Parameters

request
Type: Amazon.ElasticLoadBalancing.Model.CreateLoadBalancerPolicyRequest

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

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

Exceptions

ExceptionCondition
AccessPointNotFoundException The specified load balancer does not exist.
DuplicatePolicyNameException A policy with the specified name already exists for this load balancer.
InvalidConfigurationRequestException The requested configuration change is not valid.
PolicyTypeNotFoundException One or more of the specified policy types do not exist.
TooManyPoliciesException The quota for the number of policies for this load balancer has been reached.

Version Information

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