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 |
Replaces the set of policies associated with the specified port on which the EC2 instance is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the instance ports; this policy type is composed of multiple public key policies.
Each time you use SetLoadBalancerPoliciesForBackendServer
to enable the policies, use the PolicyNames
parameter to list the policies that you want to enable.
You can use DescribeLoadBalancers
or DescribeLoadBalancerPolicies
to verify that the policy is associated with the EC2 instance.
For more information about enabling back-end instance authentication, see Configure Back-end Instance Authentication in the Classic Load Balancer Guide . For more information about Proxy Protocol, see Configure Proxy Protocol Support in the Classic Load Balancer Guide .
- setLoadBalancerPoliciesForBackendServer :: Text -> Int -> SetLoadBalancerPoliciesForBackendServer
- data SetLoadBalancerPoliciesForBackendServer
- slbpfbsLoadBalancerName :: Lens' SetLoadBalancerPoliciesForBackendServer Text
- slbpfbsInstancePort :: Lens' SetLoadBalancerPoliciesForBackendServer Int
- slbpfbsPolicyNames :: Lens' SetLoadBalancerPoliciesForBackendServer [Text]
- setLoadBalancerPoliciesForBackendServerResponse :: Int -> SetLoadBalancerPoliciesForBackendServerResponse
- data SetLoadBalancerPoliciesForBackendServerResponse
- slbpfbsrsResponseStatus :: Lens' SetLoadBalancerPoliciesForBackendServerResponse Int
Creating a Request
setLoadBalancerPoliciesForBackendServer Source #
Creates a value of SetLoadBalancerPoliciesForBackendServer
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
slbpfbsLoadBalancerName
- The name of the load balancer.slbpfbsInstancePort
- The port number associated with the EC2 instance.slbpfbsPolicyNames
- The names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.
data SetLoadBalancerPoliciesForBackendServer Source #
Contains the parameters for SetLoadBalancerPoliciesForBackendServer.
See: setLoadBalancerPoliciesForBackendServer
smart constructor.
Request Lenses
slbpfbsLoadBalancerName :: Lens' SetLoadBalancerPoliciesForBackendServer Text Source #
The name of the load balancer.
slbpfbsInstancePort :: Lens' SetLoadBalancerPoliciesForBackendServer Int Source #
The port number associated with the EC2 instance.
slbpfbsPolicyNames :: Lens' SetLoadBalancerPoliciesForBackendServer [Text] Source #
The names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.
Destructuring the Response
setLoadBalancerPoliciesForBackendServerResponse Source #
Creates a value of SetLoadBalancerPoliciesForBackendServerResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
slbpfbsrsResponseStatus
- -- | The response status code.
data SetLoadBalancerPoliciesForBackendServerResponse Source #
Contains the output of SetLoadBalancerPoliciesForBackendServer.
See: setLoadBalancerPoliciesForBackendServerResponse
smart constructor.
Response Lenses
slbpfbsrsResponseStatus :: Lens' SetLoadBalancerPoliciesForBackendServerResponse Int Source #
- - | The response status code.