Container for the parameters to the TerminateInstanceInAutoScalingGroup operation.
Namespace: Amazon.AutoScaling.ModelTerminates the specified instance. Optionally, the desired group size can be adjusted.
NOTE: This call simply registers a termination request. The termination of the instance cannot happen immediately.
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class TerminateInstanceInAutoScalingGroupRequest : AmazonWebServiceRequest
Public Class TerminateInstanceInAutoScalingGroupRequest _ Inherits AmazonWebServiceRequest
public ref class TerminateInstanceInAutoScalingGroupRequest : public AmazonWebServiceRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| TerminateInstanceInAutoScalingGroupRequest()()()() | Initializes a new instance of the TerminateInstanceInAutoScalingGroupRequest class | |
| Equals(Object) | (Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| InstanceId |
The ID of the EC2 instance to be terminated.
Constraints: | |
| ShouldDecrementDesiredCapacity |
Specifies whether (true) or not (false) terminating this instance should also decrement the size of the
AutoScalingGroup.
| |
| ToString()()()() | (Inherited from Object.) | |
| WithInstanceId(String) |
Sets the InstanceId property
| |
| WithShouldDecrementDesiredCapacity(Boolean) |
Sets the ShouldDecrementDesiredCapacity property
|
Inheritance Hierarchy
System..::..Object
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.AutoScaling.Model..::..TerminateInstanceInAutoScalingGroupRequest
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.AutoScaling.Model..::..TerminateInstanceInAutoScalingGroupRequest