Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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 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
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:
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 Source #
Contains the parameters for CreateLoadBalancerPolicy.
See: createLoadBalancerPolicy
smart constructor.
Request Lenses
clbpPolicyAttributes :: Lens' CreateLoadBalancerPolicy [PolicyAttribute] Source #
The policy attributes.
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:
clbprsResponseStatus
- -- | The response status code.
data CreateLoadBalancerPolicyResponse Source #
Contains the output of CreateLoadBalancerPolicy.
See: createLoadBalancerPolicyResponse
smart constructor.
Response Lenses
clbprsResponseStatus :: Lens' CreateLoadBalancerPolicyResponse Int Source #
- - | The response status code.