paws.networking (version 0.1.6)

elb_enable_availability_zones_for_load_balancer: 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.

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.

Request syntax

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

Details

For load balancers in a non-default VPC, use AttachLoadBalancerToSubnets.

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.

Examples

Run this code
# NOT RUN {
# This example adds the specified Availability Zone to the specified load
# balancer.
# }
# NOT RUN {
svc$enable_availability_zones_for_load_balancer(
  AvailabilityZones = list(
    "us-west-2b"
  ),
  LoadBalancerName = "my-load-balancer"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace