Skip to content

/AWS1/CL_ELB=>DISABLEAZSFORLOADBALANCER()

About DisableAvailabilityZonesForLoadBalancer

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.

Method Signature

IMPORTING

Required arguments:

IV_LOADBALANCERNAME TYPE /AWS1/ELBACCESSPOINTNAME /AWS1/ELBACCESSPOINTNAME

The name of the load balancer.

IT_AVAILABILITYZONES TYPE /AWS1/CL_ELBAZS_W=>TT_AVAILABILITYZONES TT_AVAILABILITYZONES

The Availability Zones.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ELBREMOVEAZSOUTPUT /AWS1/CL_ELBREMOVEAZSOUTPUT