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

Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

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 the PutLifecycleHook API call.

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

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.
  2. (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 Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.
  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
  4. __If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.__
  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide.

Synopsis

Creating a Request

data RecordLifecycleActionHeartbeat Source #

See: newRecordLifecycleActionHeartbeat smart constructor.

Constructors

RecordLifecycleActionHeartbeat' 

Fields

Instances

Instances details
Eq RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

Read RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

Show RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

Generic RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

Associated Types

type Rep RecordLifecycleActionHeartbeat :: Type -> Type #

NFData RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

Hashable RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

AWSRequest RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

ToHeaders RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

ToPath RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

ToQuery RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

type Rep RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

type Rep RecordLifecycleActionHeartbeat = D1 ('MetaData "RecordLifecycleActionHeartbeat" "Amazonka.AutoScaling.RecordLifecycleActionHeartbeat" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "RecordLifecycleActionHeartbeat'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lifecycleActionToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "lifecycleHookName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "autoScalingGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse RecordLifecycleActionHeartbeat Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

newRecordLifecycleActionHeartbeat Source #

Create a value of RecordLifecycleActionHeartbeat with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:instanceId:RecordLifecycleActionHeartbeat', recordLifecycleActionHeartbeat_instanceId - The ID of the instance.

$sel:lifecycleActionToken:RecordLifecycleActionHeartbeat', recordLifecycleActionHeartbeat_lifecycleActionToken - A token that uniquely identifies a specific lifecycle action associated with an instance. Amazon EC2 Auto Scaling sends this token to the notification target that you specified when you created the lifecycle hook.

$sel:lifecycleHookName:RecordLifecycleActionHeartbeat', recordLifecycleActionHeartbeat_lifecycleHookName - The name of the lifecycle hook.

$sel:autoScalingGroupName:RecordLifecycleActionHeartbeat', recordLifecycleActionHeartbeat_autoScalingGroupName - The name of the Auto Scaling group.

Request Lenses

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

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

Destructuring the Response

data RecordLifecycleActionHeartbeatResponse Source #

Constructors

RecordLifecycleActionHeartbeatResponse' 

Fields

Instances

Instances details
Eq RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

Read RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

Show RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

Generic RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

NFData RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

type Rep RecordLifecycleActionHeartbeatResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.RecordLifecycleActionHeartbeat

type Rep RecordLifecycleActionHeartbeatResponse = D1 ('MetaData "RecordLifecycleActionHeartbeatResponse" "Amazonka.AutoScaling.RecordLifecycleActionHeartbeat" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "RecordLifecycleActionHeartbeatResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newRecordLifecycleActionHeartbeatResponse Source #

Create a value of RecordLifecycleActionHeartbeatResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:RecordLifecycleActionHeartbeatResponse', recordLifecycleActionHeartbeatResponse_httpStatus - The response's http status code.

Response Lenses