paws.networking (version 0.1.6)

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

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.

Request syntax

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

Details

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.

Examples

Run this code
# NOT RUN {
# This example adds the specified subnet to the set of configured subnets
# for the specified load balancer.
# }
# NOT RUN {
svc$attach_load_balancer_to_subnets(
  LoadBalancerName = "my-load-balancer",
  Subnets = list(
    "subnet-0ecac448"
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace