paws.management (version 0.1.0)

autoscaling_detach_load_balancers: Detaches one or more Classic Load Balancers from the specified Auto Scaling group

Description

Detaches one or more Classic Load Balancers from the specified Auto Scaling group.

Usage

autoscaling_detach_load_balancers(AutoScalingGroupName,
  LoadBalancerNames)

Arguments

AutoScalingGroupName

[required] The name of the Auto Scaling group.

LoadBalancerNames

[required] The names of the load balancers. You can specify up to 10 load balancers.

Request syntax

svc$detach_load_balancers(
  AutoScalingGroupName = "string",
  LoadBalancerNames = list(
    "string"
  )
)

Details

This operation detaches only Classic Load Balancers. If you have Application Load Balancers or Network Load Balancers, use DetachLoadBalancerTargetGroups instead.

When you detach a load balancer, it enters the Removing state while deregistering the instances in the group. When all instances are deregistered, then you can no longer describe the load balancer using DescribeLoadBalancers. The instances remain running.

Examples

Run this code
# NOT RUN {
# This example detaches the specified load balancer from the specified
# Auto Scaling group.
# }
# NOT RUN {
svc$detach_load_balancers(
  AutoScalingGroupName = "my-auto-scaling-group",
  LoadBalancerNames = list(
    "my-load-balancer"
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab