amazonka-autoscaling-1.6.1: Amazon Auto Scaling SDK.

Copyright(c) 2013-2018 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.RecordLifecycleActionHeartbeat

Contents

Description

Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using PutLifecycleHook .

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  • (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
  • (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
  • Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
  • If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
  • If you finish before the timeout period ends, complete the lifecycle action.

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

Synopsis

Creating a Request

recordLifecycleActionHeartbeat Source #

Creates a value of RecordLifecycleActionHeartbeat with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data RecordLifecycleActionHeartbeat Source #

See: recordLifecycleActionHeartbeat smart constructor.

Instances
Eq RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

Data RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

Methods

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

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

toConstr :: RecordLifecycleActionHeartbeat -> Constr #

dataTypeOf :: RecordLifecycleActionHeartbeat -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

Show RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

Generic RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

Associated Types

type Rep RecordLifecycleActionHeartbeat :: Type -> Type #

Hashable RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

AWSRequest RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

Associated Types

type Rs RecordLifecycleActionHeartbeat :: Type #

ToHeaders RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

ToPath RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

ToQuery RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

NFData RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

type Rep RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

type Rep RecordLifecycleActionHeartbeat = D1 (MetaData "RecordLifecycleActionHeartbeat" "Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat" "amazonka-autoscaling-1.6.1-AbdWdH026wCXAk2CK79vG" False) (C1 (MetaCons "RecordLifecycleActionHeartbeat'" PrefixI True) ((S1 (MetaSel (Just "_rlahInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rlahLifecycleActionToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_rlahLifecycleHookName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rlahAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

Request Lenses

rlahLifecycleActionToken :: Lens' RecordLifecycleActionHeartbeat (Maybe Text) Source #

A token that uniquely identifies a specific lifecycle action associated with an instance. Auto Scaling sends this token to the notification target you specified when you created the lifecycle hook.

Destructuring the Response

recordLifecycleActionHeartbeatResponse Source #

Creates a value of RecordLifecycleActionHeartbeatResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data RecordLifecycleActionHeartbeatResponse Source #

Instances
Eq RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

Data RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

Methods

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

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

toConstr :: RecordLifecycleActionHeartbeatResponse -> Constr #

dataTypeOf :: RecordLifecycleActionHeartbeatResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

Show RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

Generic RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

NFData RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

type Rep RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat

type Rep RecordLifecycleActionHeartbeatResponse = D1 (MetaData "RecordLifecycleActionHeartbeatResponse" "Network.AWS.AutoScaling.RecordLifecycleActionHeartbeat" "amazonka-autoscaling-1.6.1-AbdWdH026wCXAk2CK79vG" True) (C1 (MetaCons "RecordLifecycleActionHeartbeatResponse'" PrefixI True) (S1 (MetaSel (Just "_rlahrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses