AWS SDK for .NET Documentation
SetInstanceHealthRequest Class
AmazonAmazon.AutoScaling.ModelSetInstanceHealthRequest Did this page help you?   Yes   No    Tell us about it...
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 MembersConstructorsMethodsProperties



IconMemberDescription
SetInstanceHealthRequest()()()()
Initializes a new instance of the SetInstanceHealthRequest class

Equals(Object)
Determines whether the specified Object is equal to the current 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:

Length
1 - 32
Pattern
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*


InstanceId
The identifier of the Amazon EC2 instance.

Constraints:

Length
1 - 16
Pattern
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*


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
See Also

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)