paws.networking (version 0.1.6)

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

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.

Request syntax

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

Details

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.

Examples

Run this code
# NOT RUN {
# This example detaches the specified load balancer from the specified
# subnet.
# }
# NOT RUN {
svc$detach_load_balancer_from_subnets(
  LoadBalancerName = "my-load-balancer",
  Subnets = list(
    "subnet-0ecac448"
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace