Skip to content

Enable Availability Zones For Load Balancer

elb_enable_availability_zones_for_load_balancer R Documentation

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

Description

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

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.

Usage

elb_enable_availability_zones_for_load_balancer(LoadBalancerName,
  AvailabilityZones)

Arguments

LoadBalancerName

[required] The name of the load balancer.

AvailabilityZones

[required] The Availability Zones. These must be in the same region as the load balancer.

Value

A list with the following syntax:

list(
  AvailabilityZones = list(
    "string"
  )
)

Request syntax

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

Examples

## Not run: 
# This example adds the specified Availability Zone to the specified load
# balancer.
svc$enable_availability_zones_for_load_balancer(
  AvailabilityZones = list(
    "us-west-2b"
  ),
  LoadBalancerName = "my-load-balancer"
)

## End(Not run)