Skip to content

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

# 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"
  )
)