Skip to content

Detach Load Balancer From Subnets

elb_detach_load_balancer_from_subnets R Documentation

Removes the specified subnets from the set of configured subnets for the load balancer

Description

Removes the specified subnets from the set of configured subnets for the load balancer.

After a subnet is removed, all EC2 instances registered with the load balancer in the removed subnet go into the OutOfService state. Then, the load balancer balances the traffic among the remaining routable subnets.

Usage

elb_detach_load_balancer_from_subnets(LoadBalancerName, Subnets)

Arguments

LoadBalancerName

[required] The name of the load balancer.

Subnets

[required] The IDs of the subnets.

Value

A list with the following syntax:

list(
  Subnets = list(
    "string"
  )
)

Request syntax

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

Examples

## Not run: 
# This example detaches the specified load balancer from the specified
# subnet.
svc$detach_load_balancer_from_subnets(
  LoadBalancerName = "my-load-balancer",
  Subnets = list(
    "subnet-0ecac448"
  )
)

## End(Not run)