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 |
Adds the specified Availability Zones to the set of Availability Zones for the specified load balancer in EC2-Classic or a default VPC.
For load balancers in a non-default VPC, use AttachLoadBalancerToSubnets.
The load balancer evenly distributes requests across all its registered Availability Zones that contain instances. For more information, see Add or Remove Availability Zones in the Classic Load Balancers Guide.
Synopsis
- data EnableAvailabilityZonesForLoadBalancer = EnableAvailabilityZonesForLoadBalancer' {}
- newEnableAvailabilityZonesForLoadBalancer :: Text -> EnableAvailabilityZonesForLoadBalancer
- enableAvailabilityZonesForLoadBalancer_loadBalancerName :: Lens' EnableAvailabilityZonesForLoadBalancer Text
- enableAvailabilityZonesForLoadBalancer_availabilityZones :: Lens' EnableAvailabilityZonesForLoadBalancer [Text]
- data EnableAvailabilityZonesForLoadBalancerResponse = EnableAvailabilityZonesForLoadBalancerResponse' {
- availabilityZones :: Maybe [Text]
- httpStatus :: Int
- newEnableAvailabilityZonesForLoadBalancerResponse :: Int -> EnableAvailabilityZonesForLoadBalancerResponse
- enableAvailabilityZonesForLoadBalancerResponse_availabilityZones :: Lens' EnableAvailabilityZonesForLoadBalancerResponse (Maybe [Text])
- enableAvailabilityZonesForLoadBalancerResponse_httpStatus :: Lens' EnableAvailabilityZonesForLoadBalancerResponse Int
Creating a Request
data EnableAvailabilityZonesForLoadBalancer Source #
Contains the parameters for EnableAvailabilityZonesForLoadBalancer.
See: newEnableAvailabilityZonesForLoadBalancer
smart constructor.
EnableAvailabilityZonesForLoadBalancer' | |
|
Instances
newEnableAvailabilityZonesForLoadBalancer Source #
:: Text |
|
-> EnableAvailabilityZonesForLoadBalancer |
Create a value of EnableAvailabilityZonesForLoadBalancer
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:EnableAvailabilityZonesForLoadBalancer'
, enableAvailabilityZonesForLoadBalancer_loadBalancerName
- The name of the load balancer.
$sel:availabilityZones:EnableAvailabilityZonesForLoadBalancer'
, enableAvailabilityZonesForLoadBalancer_availabilityZones
- The Availability Zones. These must be in the same region as the load
balancer.
Request Lenses
enableAvailabilityZonesForLoadBalancer_loadBalancerName :: Lens' EnableAvailabilityZonesForLoadBalancer Text Source #
The name of the load balancer.
enableAvailabilityZonesForLoadBalancer_availabilityZones :: Lens' EnableAvailabilityZonesForLoadBalancer [Text] Source #
The Availability Zones. These must be in the same region as the load balancer.
Destructuring the Response
data EnableAvailabilityZonesForLoadBalancerResponse Source #
Contains the output of EnableAvailabilityZonesForLoadBalancer.
See: newEnableAvailabilityZonesForLoadBalancerResponse
smart constructor.
EnableAvailabilityZonesForLoadBalancerResponse' | |
|
Instances
Eq EnableAvailabilityZonesForLoadBalancerResponse Source # | |
Read EnableAvailabilityZonesForLoadBalancerResponse Source # | |
Show EnableAvailabilityZonesForLoadBalancerResponse Source # | |
Generic EnableAvailabilityZonesForLoadBalancerResponse Source # | |
NFData EnableAvailabilityZonesForLoadBalancerResponse Source # | |
type Rep EnableAvailabilityZonesForLoadBalancerResponse Source # | |
Defined in Amazonka.ELB.EnableAvailabilityZonesForLoadBalancer type Rep EnableAvailabilityZonesForLoadBalancerResponse = D1 ('MetaData "EnableAvailabilityZonesForLoadBalancerResponse" "Amazonka.ELB.EnableAvailabilityZonesForLoadBalancer" "libZSservicesZSamazonka-elbZSamazonka-elb" 'False) (C1 ('MetaCons "EnableAvailabilityZonesForLoadBalancerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "availabilityZones") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newEnableAvailabilityZonesForLoadBalancerResponse Source #
:: Int |
|
-> EnableAvailabilityZonesForLoadBalancerResponse |
Create a value of EnableAvailabilityZonesForLoadBalancerResponse
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:availabilityZones:EnableAvailabilityZonesForLoadBalancer'
, enableAvailabilityZonesForLoadBalancerResponse_availabilityZones
- The updated list of Availability Zones for the load balancer.
$sel:httpStatus:EnableAvailabilityZonesForLoadBalancerResponse'
, enableAvailabilityZonesForLoadBalancerResponse_httpStatus
- The response's http status code.
Response Lenses
enableAvailabilityZonesForLoadBalancerResponse_availabilityZones :: Lens' EnableAvailabilityZonesForLoadBalancerResponse (Maybe [Text]) Source #
The updated list of Availability Zones for the load balancer.
enableAvailabilityZonesForLoadBalancerResponse_httpStatus :: Lens' EnableAvailabilityZonesForLoadBalancerResponse Int Source #
The response's http status code.