Container for the parameters to the SetInstanceHealth operation.
Sets the health status of a specified instance that belongs to any of your Auto Scaling groups.
For more information, see Configure Health Checks for Your Auto Scaling group .
Declaration Syntax
C# |
public class SetInstanceHealthRequest : AmazonWebServiceRequest
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
SetInstanceHealthRequest()()()() | Initializes a new instance of the SetInstanceHealthRequest 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.) | |
HealthStatus |
The health status of the instance. Set to Healthy if you want the instance to remain in service. Set to Unhealthy if you want
the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.
Constraints: | |
InstanceId |
The identifier of the Amazon EC2 instance.
Constraints: | |
ShouldRespectGracePeriod |
If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call will
respect the grace period. Set this to False, if you do not want the call to respect the grace period associated with the group. For
more information, see the HealthCheckGracePeriod parameter description in the CreateAutoScalingGroup action.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
WithHealthStatus(String) | Obsolete.
Sets the HealthStatus property
| |
WithInstanceId(String) | Obsolete.
Sets the InstanceId property
| |
WithShouldRespectGracePeriod(Boolean) | Obsolete.
Sets the ShouldRespectGracePeriod property
|
Inheritance Hierarchy
Object | ||
AmazonWebServiceRequest | ||
SetInstanceHealthRequest |