AWS SDK for .NET Documentation
DisableAvailabilityZonesForLoadBalancer Method (disableAvailabilityZonesForLoadBalancerRequest)
Amazon ► Amazon.ElasticLoadBalancing ► AmazonElasticLoadBalancing ► DisableAvailabilityZonesForLoadBalancer(DisableAvailabilityZonesForLoadBalancerRequest)
Did this page help you? Yes No Tell us about it...

Removes the specified EC2 Availability Zones from the set of configured Availability Zones for the load balancer.

There must be at least one Availability Zone registered with a load balancer at all times. Once an Availability Zone is removed, all the instances registered with the load balancer that are in the removed Availability Zone go into the OutOfService state. Upon Availability Zone removal, the load balancer attempts to equally balance the traffic among its remaining usable Availability Zones. Trying to remove an Availability Zone that was not associated with the load balancer does nothing.

For more information, see Disable an Availability Zone from a Load-Balanced Application in the Elastic Load Balancing Developer Guide .

Declaration Syntax

C#

    DisableAvailabilityZonesForLoadBalancerResponse DisableAvailabilityZonesForLoadBalancer(
    	DisableAvailabilityZonesForLoadBalancerRequest disableAvailabilityZonesForLoadBalancerRequest
    )

Parameters

disableAvailabilityZonesForLoadBalancerRequest (DisableAvailabilityZonesForLoadBalancerRequest)
  Container for the necessary parameters to execute the DisableAvailabilityZonesForLoadBalancer service method on AmazonElasticLoadBalancing.

Return Value
The response from the DisableAvailabilityZonesForLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Exceptions

Exception | Condition
--- | ---
InvalidConfigurationRequestException |
LoadBalancerNotFoundException |

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)