Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.ELB.CreateLoadBalancerPolicy
Description
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 listener or the application server, depending on the policy type.
- createLoadBalancerPolicy :: Text -> Text -> Text -> CreateLoadBalancerPolicy
- data CreateLoadBalancerPolicy
- clbpPolicyAttributes :: Lens' CreateLoadBalancerPolicy [PolicyAttribute]
- clbpLoadBalancerName :: Lens' CreateLoadBalancerPolicy Text
- clbpPolicyName :: Lens' CreateLoadBalancerPolicy Text
- clbpPolicyTypeName :: Lens' CreateLoadBalancerPolicy Text
- createLoadBalancerPolicyResponse :: Int -> CreateLoadBalancerPolicyResponse
- data CreateLoadBalancerPolicyResponse
- clbprsResponseStatus :: Lens' CreateLoadBalancerPolicyResponse Int
Creating a Request
Arguments
:: Text | |
-> Text | |
-> Text | |
-> CreateLoadBalancerPolicy |
Creates a value of CreateLoadBalancerPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
clbpPolicyAttributes
- The policy attributes.clbpLoadBalancerName
- The name of the load balancer.clbpPolicyName
- The name of the load balancer policy to be created. This name must be unique within the set of policies for this load balancer.clbpPolicyTypeName
- The name of the base policy type. To get the list of policy types, useDescribeLoadBalancerPolicyTypes
.
data CreateLoadBalancerPolicy #
Contains the parameters for CreateLoadBalancerPolicy.
See: createLoadBalancerPolicy
smart constructor.
Instances
Request Lenses
clbpPolicyAttributes :: Lens' CreateLoadBalancerPolicy [PolicyAttribute] #
The policy attributes.
clbpLoadBalancerName :: Lens' CreateLoadBalancerPolicy Text #
The name of the load balancer.
clbpPolicyName :: Lens' CreateLoadBalancerPolicy Text #
The name of the load balancer policy to be created. This name must be unique within the set of policies for this load balancer.
clbpPolicyTypeName :: Lens' CreateLoadBalancerPolicy Text #
The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes
.
Destructuring the Response
createLoadBalancerPolicyResponse #
Arguments
:: Int | |
-> CreateLoadBalancerPolicyResponse |
Creates a value of CreateLoadBalancerPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
clbprsResponseStatus
- -- | The response status code.
data CreateLoadBalancerPolicyResponse #
Contains the output of CreateLoadBalancerPolicy.
See: createLoadBalancerPolicyResponse
smart constructor.
Response Lenses
clbprsResponseStatus :: Lens' CreateLoadBalancerPolicyResponse Int #
- - | The response status code.