Copyright | (c) 2013-2015 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 |
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.
See: AWS API Reference for CreateLoadBalancerPolicy.
- 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
createLoadBalancerPolicy Source
:: 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:
data CreateLoadBalancerPolicy Source
See: createLoadBalancerPolicy
smart constructor.
Request Lenses
clbpPolicyAttributes :: Lens' CreateLoadBalancerPolicy [PolicyAttribute] Source
The attributes for the policy.
clbpLoadBalancerName :: Lens' CreateLoadBalancerPolicy Text Source
The name of the load balancer.
clbpPolicyName :: Lens' CreateLoadBalancerPolicy Text Source
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 Source
The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
Destructuring the Response
createLoadBalancerPolicyResponse Source
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:
data CreateLoadBalancerPolicyResponse Source
See: createLoadBalancerPolicyResponse
smart constructor.
Response Lenses
clbprsResponseStatus :: Lens' CreateLoadBalancerPolicyResponse Int Source
The response status code.