amazonka-autoscaling-1.5.0: Amazon Auto Scaling SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.AutoScaling.SetInstanceHealth

Contents

Description

Sets the health status of the specified instance.

For more information, see Health Checks in the Auto Scaling User Guide .

Synopsis

Creating a Request

setInstanceHealth Source #

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:

  • sihShouldRespectGracePeriod - 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 - The ID of the instance.
  • sihHealthStatus - 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.

data SetInstanceHealth Source #

See: setInstanceHealth smart constructor.

Instances

Eq SetInstanceHealth Source # 
Data SetInstanceHealth Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetInstanceHealth -> c SetInstanceHealth #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetInstanceHealth #

toConstr :: SetInstanceHealth -> Constr #

dataTypeOf :: SetInstanceHealth -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetInstanceHealth) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetInstanceHealth) #

gmapT :: (forall b. Data b => b -> b) -> SetInstanceHealth -> SetInstanceHealth #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetInstanceHealth -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetInstanceHealth -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetInstanceHealth -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetInstanceHealth -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetInstanceHealth -> m SetInstanceHealth #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetInstanceHealth -> m SetInstanceHealth #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetInstanceHealth -> m SetInstanceHealth #

Read SetInstanceHealth Source # 
Show SetInstanceHealth Source # 
Generic SetInstanceHealth Source # 
Hashable SetInstanceHealth Source # 
NFData SetInstanceHealth Source # 

Methods

rnf :: SetInstanceHealth -> () #

AWSRequest SetInstanceHealth Source # 
ToQuery SetInstanceHealth Source # 
ToPath SetInstanceHealth Source # 
ToHeaders SetInstanceHealth Source # 
type Rep SetInstanceHealth Source # 
type Rep SetInstanceHealth = D1 (MetaData "SetInstanceHealth" "Network.AWS.AutoScaling.SetInstanceHealth" "amazonka-autoscaling-1.5.0-3uSQ7rugLSPKBh89f6b4aY" False) (C1 (MetaCons "SetInstanceHealth'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sihShouldRespectGracePeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_sihInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_sihHealthStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs SetInstanceHealth Source # 

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.

Instances

Eq SetInstanceHealthResponse Source # 
Data SetInstanceHealthResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetInstanceHealthResponse -> c SetInstanceHealthResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetInstanceHealthResponse #

toConstr :: SetInstanceHealthResponse -> Constr #

dataTypeOf :: SetInstanceHealthResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetInstanceHealthResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetInstanceHealthResponse) #

gmapT :: (forall b. Data b => b -> b) -> SetInstanceHealthResponse -> SetInstanceHealthResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetInstanceHealthResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetInstanceHealthResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetInstanceHealthResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetInstanceHealthResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetInstanceHealthResponse -> m SetInstanceHealthResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetInstanceHealthResponse -> m SetInstanceHealthResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetInstanceHealthResponse -> m SetInstanceHealthResponse #

Read SetInstanceHealthResponse Source # 
Show SetInstanceHealthResponse Source # 
Generic SetInstanceHealthResponse Source # 
NFData SetInstanceHealthResponse Source # 
type Rep SetInstanceHealthResponse Source # 
type Rep SetInstanceHealthResponse = D1 (MetaData "SetInstanceHealthResponse" "Network.AWS.AutoScaling.SetInstanceHealth" "amazonka-autoscaling-1.5.0-3uSQ7rugLSPKBh89f6b4aY" False) (C1 (MetaCons "SetInstanceHealthResponse'" PrefixI False) U1)