Amazon.AutoScaling.AmazonAutoScalingClient.DetachLoadBalancers C# (CSharp) Method

DetachLoadBalancers() public method

Detaches one or more Classic load balancers from the specified Auto Scaling group.

Note that this operation detaches only Classic load balancers. If you have Application 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. Note that the instances remain running.

/// You already have a pending update to an Auto Scaling resource (for example, a group, /// instance, or load balancer). ///
public DetachLoadBalancers ( DetachLoadBalancersRequest request ) : DetachLoadBalancersResponse
request DetachLoadBalancersRequest Container for the necessary parameters to execute the DetachLoadBalancers service method.
return DetachLoadBalancersResponse
        public DetachLoadBalancersResponse DetachLoadBalancers(DetachLoadBalancersRequest request)
        {
            var marshaller = new DetachLoadBalancersRequestMarshaller();
            var unmarshaller = DetachLoadBalancersResponseUnmarshaller.Instance;

            return Invoke<DetachLoadBalancersRequest,DetachLoadBalancersResponse>(request, marshaller, unmarshaller);
        }
AmazonAutoScalingClient