Skip to content

Attach Load Balancer To Subnets

elb_attach_load_balancer_to_subnets R Documentation

Adds one or more subnets to the set of configured subnets for the specified load balancer

Description

Adds one or more subnets to the set of configured subnets for the specified load balancer.

The load balancer evenly distributes requests across all registered subnets. For more information, see Add or Remove Subnets for Your Load Balancer in a VPC in the Classic Load Balancers Guide.

Usage

elb_attach_load_balancer_to_subnets(LoadBalancerName, Subnets)

Arguments

LoadBalancerName

[required] The name of the load balancer.

Subnets

[required] The IDs of the subnets to add. You can add only one subnet per Availability Zone.

Value

A list with the following syntax:

list(
  Subnets = list(
    "string"
  )
)

Request syntax

svc$attach_load_balancer_to_subnets(
  LoadBalancerName = "string",
  Subnets = list(
    "string"
  )
)

Examples

## Not run: 
# This example adds the specified subnet to the set of configured subnets
# for the specified load balancer.
svc$attach_load_balancer_to_subnets(
  LoadBalancerName = "my-load-balancer",
  Subnets = list(
    "subnet-0ecac448"
  )
)

## End(Not run)