Skip to content

Disable Availability Zones For Load Balancer

elb_disable_availability_zones_for_load_balancer R Documentation

Removes the specified Availability Zones from the set of Availability Zones for the specified load balancer in EC2-Classic or a default VPC

Description

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 detach_load_balancer_from_subnets.

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.

Usage

elb_disable_availability_zones_for_load_balancer(LoadBalancerName,
  AvailabilityZones)

Arguments

LoadBalancerName

[required] The name of the load balancer.

AvailabilityZones

[required] The Availability Zones.

Value

A list with the following syntax:

list(
  AvailabilityZones = list(
    "string"
  )
)

Request syntax

svc$disable_availability_zones_for_load_balancer(
  LoadBalancerName = "string",
  AvailabilityZones = list(
    "string"
  )
)

Examples

## Not run: 
# This example removes the specified Availability Zone from the set of
# Availability Zones for the specified load balancer.
svc$disable_availability_zones_for_load_balancer(
  AvailabilityZones = list(
    "us-west-2a"
  ),
  LoadBalancerName = "my-load-balancer"
)

## End(Not run)