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 |
Removes the specified Availability Zones from 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 DetachLoadBalancerFromSubnets.
There must be at least one Availability Zone registered with a load
balancer at all times. After an Availability Zone is removed, all
instances registered with the load balancer that are in the removed
Availability Zone go into the OutOfService
state. Then, the load
balancer attempts to equally balance the traffic among its remaining
Availability Zones.
For more information, see Add or Remove Availability Zones in the Classic Load Balancers Guide.
Synopsis
- data DisableAvailabilityZonesForLoadBalancer = DisableAvailabilityZonesForLoadBalancer' {}
- newDisableAvailabilityZonesForLoadBalancer :: Text -> DisableAvailabilityZonesForLoadBalancer
- disableAvailabilityZonesForLoadBalancer_loadBalancerName :: Lens' DisableAvailabilityZonesForLoadBalancer Text
- disableAvailabilityZonesForLoadBalancer_availabilityZones :: Lens' DisableAvailabilityZonesForLoadBalancer [Text]
- data DisableAvailabilityZonesForLoadBalancerResponse = DisableAvailabilityZonesForLoadBalancerResponse' {
- availabilityZones :: Maybe [Text]
- httpStatus :: Int
- newDisableAvailabilityZonesForLoadBalancerResponse :: Int -> DisableAvailabilityZonesForLoadBalancerResponse
- disableAvailabilityZonesForLoadBalancerResponse_availabilityZones :: Lens' DisableAvailabilityZonesForLoadBalancerResponse (Maybe [Text])
- disableAvailabilityZonesForLoadBalancerResponse_httpStatus :: Lens' DisableAvailabilityZonesForLoadBalancerResponse Int
Creating a Request
data DisableAvailabilityZonesForLoadBalancer Source #
Contains the parameters for DisableAvailabilityZonesForLoadBalancer.
See: newDisableAvailabilityZonesForLoadBalancer
smart constructor.
DisableAvailabilityZonesForLoadBalancer' | |
|
Instances
newDisableAvailabilityZonesForLoadBalancer Source #
:: Text |
|
-> DisableAvailabilityZonesForLoadBalancer |
Create a value of DisableAvailabilityZonesForLoadBalancer
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:DisableAvailabilityZonesForLoadBalancer'
, disableAvailabilityZonesForLoadBalancer_loadBalancerName
- The name of the load balancer.
$sel:availabilityZones:DisableAvailabilityZonesForLoadBalancer'
, disableAvailabilityZonesForLoadBalancer_availabilityZones
- The Availability Zones.
Request Lenses
disableAvailabilityZonesForLoadBalancer_loadBalancerName :: Lens' DisableAvailabilityZonesForLoadBalancer Text Source #
The name of the load balancer.
disableAvailabilityZonesForLoadBalancer_availabilityZones :: Lens' DisableAvailabilityZonesForLoadBalancer [Text] Source #
The Availability Zones.
Destructuring the Response
data DisableAvailabilityZonesForLoadBalancerResponse Source #
Contains the output for DisableAvailabilityZonesForLoadBalancer.
See: newDisableAvailabilityZonesForLoadBalancerResponse
smart constructor.
DisableAvailabilityZonesForLoadBalancerResponse' | |
|
Instances
Eq DisableAvailabilityZonesForLoadBalancerResponse Source # | |
Read DisableAvailabilityZonesForLoadBalancerResponse Source # | |
Show DisableAvailabilityZonesForLoadBalancerResponse Source # | |
Generic DisableAvailabilityZonesForLoadBalancerResponse Source # | |
NFData DisableAvailabilityZonesForLoadBalancerResponse Source # | |
type Rep DisableAvailabilityZonesForLoadBalancerResponse Source # | |
Defined in Amazonka.ELB.DisableAvailabilityZonesForLoadBalancer type Rep DisableAvailabilityZonesForLoadBalancerResponse = D1 ('MetaData "DisableAvailabilityZonesForLoadBalancerResponse" "Amazonka.ELB.DisableAvailabilityZonesForLoadBalancer" "libZSservicesZSamazonka-elbZSamazonka-elb" 'False) (C1 ('MetaCons "DisableAvailabilityZonesForLoadBalancerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "availabilityZones") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDisableAvailabilityZonesForLoadBalancerResponse Source #
:: Int |
|
-> DisableAvailabilityZonesForLoadBalancerResponse |
Create a value of DisableAvailabilityZonesForLoadBalancerResponse
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:DisableAvailabilityZonesForLoadBalancer'
, disableAvailabilityZonesForLoadBalancerResponse_availabilityZones
- The remaining Availability Zones for the load balancer.
$sel:httpStatus:DisableAvailabilityZonesForLoadBalancerResponse'
, disableAvailabilityZonesForLoadBalancerResponse_httpStatus
- The response's http status code.
Response Lenses
disableAvailabilityZonesForLoadBalancerResponse_availabilityZones :: Lens' DisableAvailabilityZonesForLoadBalancerResponse (Maybe [Text]) Source #
The remaining Availability Zones for the load balancer.
disableAvailabilityZonesForLoadBalancerResponse_httpStatus :: Lens' DisableAvailabilityZonesForLoadBalancerResponse Int Source #
The response's http status code.