AWS SDK for .NET Documentation
CreateLoadBalancerPolicy Method (createLoadBalancerPolicyRequest)
Amazon ► Amazon.ElasticLoadBalancing ► AmazonElasticLoadBalancingClient ► CreateLoadBalancerPolicy(CreateLoadBalancerPolicyRequest)
Did this page help you? Yes No Tell us about it...

Creates a new policy that contains the necessary attributes depending on the policy type. 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 your policy type.

Declaration Syntax

C#

    public CreateLoadBalancerPolicyResponse CreateLoadBalancerPolicy(
    	CreateLoadBalancerPolicyRequest createLoadBalancerPolicyRequest
    )

Parameters

createLoadBalancerPolicyRequest (CreateLoadBalancerPolicyRequest)
  Container for the necessary parameters to execute the CreateLoadBalancerPolicy service method on AmazonElasticLoadBalancing.

Return Value
The response from the CreateLoadBalancerPolicy service method, as returned by AmazonElasticLoadBalancing.
Exceptions

Exception | Condition
--- | ---
PolicyTypeNotFoundException |
InvalidConfigurationRequestException |
DuplicatePolicyNameException |
TooManyPoliciesException |
LoadBalancerNotFoundException |

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)