Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
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.
- setInstanceHealth :: Text -> Text -> SetInstanceHealth
- data SetInstanceHealth
- sihShouldRespectGracePeriod :: Lens' SetInstanceHealth (Maybe Bool)
- sihInstanceId :: Lens' SetInstanceHealth Text
- sihHealthStatus :: Lens' SetInstanceHealth Text
- setInstanceHealthResponse :: SetInstanceHealthResponse
- data SetInstanceHealthResponse
Creating a Request
Creates a value of SetInstanceHealth
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SetInstanceHealth Source
See: setInstanceHealth
smart constructor.
Request Lenses
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 description of the health check grace period for CreateAutoScalingGroup.
sihInstanceId :: Lens' SetInstanceHealth Text Source
The ID of the instance.
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.
Destructuring the Response
setInstanceHealthResponse :: SetInstanceHealthResponse Source
Creates a value of SetInstanceHealthResponse
with the minimum fields required to make a request.
data SetInstanceHealthResponse Source
See: setInstanceHealthResponse
smart constructor.