Amazon.AutoScaling.AmazonAutoScalingClient.DetachInstances C# (CSharp) Метод

DetachInstances() публичный Метод

Removes one or more instances from the specified Auto Scaling group.

After the instances are detached, you can manage them independently from the rest of the Auto Scaling group.

If you do not specify the option to decrement the desired capacity, Auto Scaling launches instances to replace the ones that are detached.

If there is a Classic load balancer attached to the Auto Scaling group, the instances are deregistered from the load balancer. If there are target groups attached to the Auto Scaling group, the instances are deregistered from the target groups.

For more information, see Detach EC2 Instances from Your Auto Scaling Group in the Auto Scaling User Guide.

/// You already have a pending update to an Auto Scaling resource (for example, a group, /// instance, or load balancer). ///
public DetachInstances ( DetachInstancesRequest request ) : DetachInstancesResponse
request DetachInstancesRequest Container for the necessary parameters to execute the DetachInstances service method.
Результат DetachInstancesResponse
        public DetachInstancesResponse DetachInstances(DetachInstancesRequest request)
        {
            var marshaller = new DetachInstancesRequestMarshaller();
            var unmarshaller = DetachInstancesResponseUnmarshaller.Instance;

            return Invoke<DetachInstancesRequest,DetachInstancesResponse>(request, marshaller, unmarshaller);
        }
AmazonAutoScalingClient