Copyright | (c) 2013-2021 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 |
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 Balancers Guide. For more information about Proxy Protocol, see Configure Proxy Protocol Support in the Classic Load Balancers Guide.
Synopsis
- data SetLoadBalancerPoliciesForBackendServer = SetLoadBalancerPoliciesForBackendServer' {
- loadBalancerName :: Text
- instancePort :: Int
- policyNames :: [Text]
- newSetLoadBalancerPoliciesForBackendServer :: Text -> Int -> SetLoadBalancerPoliciesForBackendServer
- setLoadBalancerPoliciesForBackendServer_loadBalancerName :: Lens' SetLoadBalancerPoliciesForBackendServer Text
- setLoadBalancerPoliciesForBackendServer_instancePort :: Lens' SetLoadBalancerPoliciesForBackendServer Int
- setLoadBalancerPoliciesForBackendServer_policyNames :: Lens' SetLoadBalancerPoliciesForBackendServer [Text]
- data SetLoadBalancerPoliciesForBackendServerResponse = SetLoadBalancerPoliciesForBackendServerResponse' {
- httpStatus :: Int
- newSetLoadBalancerPoliciesForBackendServerResponse :: Int -> SetLoadBalancerPoliciesForBackendServerResponse
- setLoadBalancerPoliciesForBackendServerResponse_httpStatus :: Lens' SetLoadBalancerPoliciesForBackendServerResponse Int
Creating a Request
data SetLoadBalancerPoliciesForBackendServer Source #
Contains the parameters for SetLoadBalancerPoliciesForBackendServer.
See: newSetLoadBalancerPoliciesForBackendServer
smart constructor.
SetLoadBalancerPoliciesForBackendServer' | |
|
Instances
newSetLoadBalancerPoliciesForBackendServer Source #
:: Text |
|
-> Int | |
-> SetLoadBalancerPoliciesForBackendServer |
Create a value of SetLoadBalancerPoliciesForBackendServer
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:loadBalancerName:SetLoadBalancerPoliciesForBackendServer'
, setLoadBalancerPoliciesForBackendServer_loadBalancerName
- The name of the load balancer.
$sel:instancePort:SetLoadBalancerPoliciesForBackendServer'
, setLoadBalancerPoliciesForBackendServer_instancePort
- The port number associated with the EC2 instance.
$sel:policyNames:SetLoadBalancerPoliciesForBackendServer'
, setLoadBalancerPoliciesForBackendServer_policyNames
- The names of the policies. If the list is empty, then all current
polices are removed from the EC2 instance.
Request Lenses
setLoadBalancerPoliciesForBackendServer_loadBalancerName :: Lens' SetLoadBalancerPoliciesForBackendServer Text Source #
The name of the load balancer.
setLoadBalancerPoliciesForBackendServer_instancePort :: Lens' SetLoadBalancerPoliciesForBackendServer Int Source #
The port number associated with the EC2 instance.
setLoadBalancerPoliciesForBackendServer_policyNames :: 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
data SetLoadBalancerPoliciesForBackendServerResponse Source #
Contains the output of SetLoadBalancerPoliciesForBackendServer.
See: newSetLoadBalancerPoliciesForBackendServerResponse
smart constructor.
SetLoadBalancerPoliciesForBackendServerResponse' | |
|
Instances
Eq SetLoadBalancerPoliciesForBackendServerResponse Source # | |
Read SetLoadBalancerPoliciesForBackendServerResponse Source # | |
Show SetLoadBalancerPoliciesForBackendServerResponse Source # | |
Generic SetLoadBalancerPoliciesForBackendServerResponse Source # | |
NFData SetLoadBalancerPoliciesForBackendServerResponse Source # | |
type Rep SetLoadBalancerPoliciesForBackendServerResponse Source # | |
Defined in Amazonka.ELB.SetLoadBalancerPoliciesForBackendServer type Rep SetLoadBalancerPoliciesForBackendServerResponse = D1 ('MetaData "SetLoadBalancerPoliciesForBackendServerResponse" "Amazonka.ELB.SetLoadBalancerPoliciesForBackendServer" "libZSservicesZSamazonka-elbZSamazonka-elb" 'False) (C1 ('MetaCons "SetLoadBalancerPoliciesForBackendServerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newSetLoadBalancerPoliciesForBackendServerResponse Source #
:: Int |
|
-> SetLoadBalancerPoliciesForBackendServerResponse |
Create a value of SetLoadBalancerPoliciesForBackendServerResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:SetLoadBalancerPoliciesForBackendServerResponse'
, setLoadBalancerPoliciesForBackendServerResponse_httpStatus
- The response's http status code.
Response Lenses
setLoadBalancerPoliciesForBackendServerResponse_httpStatus :: Lens' SetLoadBalancerPoliciesForBackendServerResponse Int Source #
The response's http status code.