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.
| C# |
public class TerminateInstanceInAutoScalingGroupRequest : AmazonWebServiceRequest
| 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
|
| Object | ||
| AmazonWebServiceRequest | ||
| TerminateInstanceInAutoScalingGroupRequest | ||