Container for the parameters to the TerminateInstanceInAutoScalingGroup operation.
Terminates 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.
![](../icons/collapse_all.gif)
C# |
public class TerminateInstanceInAutoScalingGroupRequest : AmazonWebServiceRequest
![](../icons/collapse_all.gif)
All Members | Constructors | Methods | Properties | ||
Icon | 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 Amazon 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()()()() | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WithInstanceId(String) | Obsolete.
Sets the InstanceId property
|
![]() | WithShouldDecrementDesiredCapacity(Boolean) | Obsolete.
Sets the ShouldDecrementDesiredCapacity property
|
![](../icons/collapse_all.gif)
Object | ||
![]() | AmazonWebServiceRequest | |
![]() | TerminateInstanceInAutoScalingGroupRequest |