Safe Haskell | None |
---|---|
Language | Haskell2010 |
Sets the health status of the specified instance. For more information, see Health Checks in the Auto Scaling Developer Guide.
http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_SetInstanceHealth.html
- data SetInstanceHealth
- setInstanceHealth :: Text -> Text -> SetInstanceHealth
- sihHealthStatus :: Lens' SetInstanceHealth Text
- sihInstanceId :: Lens' SetInstanceHealth Text
- sihShouldRespectGracePeriod :: Lens' SetInstanceHealth (Maybe Bool)
- data SetInstanceHealthResponse
- setInstanceHealthResponse :: SetInstanceHealthResponse
Request
data SetInstanceHealth Source
Request constructor
SetInstanceHealth
constructor.
The fields accessible through corresponding lenses are:
Request lenses
sihHealthStatus :: Lens' SetInstanceHealth Text Source
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.
sihInstanceId :: Lens' SetInstanceHealth Text Source
The ID of the EC2 instance.
sihShouldRespectGracePeriod :: Lens' SetInstanceHealth (Maybe Bool) Source
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 for CreateAutoScalingGroup.