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.CompleteLifecycleAction

Description

Completes the lifecycle action for the specified token or instance with the specified result.

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 CompleteLifecycleAction Source #

See: newCompleteLifecycleAction smart constructor.

Constructors

CompleteLifecycleAction' 

Fields

Instances

Instances details
Eq CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

Read CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

Show CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

Generic CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

Associated Types

type Rep CompleteLifecycleAction :: Type -> Type #

NFData CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

Methods

rnf :: CompleteLifecycleAction -> () #

Hashable CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

AWSRequest CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

ToHeaders CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

ToPath CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

ToQuery CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

type Rep CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

type Rep CompleteLifecycleAction = D1 ('MetaData "CompleteLifecycleAction" "Amazonka.AutoScaling.CompleteLifecycleAction" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "CompleteLifecycleAction'" '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) :*: S1 ('MetaSel ('Just "lifecycleActionResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CompleteLifecycleAction Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

newCompleteLifecycleAction Source #

Create a value of CompleteLifecycleAction 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:CompleteLifecycleAction', completeLifecycleAction_instanceId - The ID of the instance.

$sel:lifecycleActionToken:CompleteLifecycleAction', completeLifecycleAction_lifecycleActionToken - A universally unique identifier (UUID) that identifies a specific lifecycle action associated with an instance. Amazon EC2 Auto Scaling sends this token to the notification target you specified when you created the lifecycle hook.

$sel:lifecycleHookName:CompleteLifecycleAction', completeLifecycleAction_lifecycleHookName - The name of the lifecycle hook.

$sel:autoScalingGroupName:CompleteLifecycleAction', completeLifecycleAction_autoScalingGroupName - The name of the Auto Scaling group.

$sel:lifecycleActionResult:CompleteLifecycleAction', completeLifecycleAction_lifecycleActionResult - The action for the group to take. This parameter can be either CONTINUE or ABANDON.

Request Lenses

completeLifecycleAction_lifecycleActionToken :: Lens' CompleteLifecycleAction (Maybe Text) Source #

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

completeLifecycleAction_lifecycleActionResult :: Lens' CompleteLifecycleAction Text Source #

The action for the group to take. This parameter can be either CONTINUE or ABANDON.

Destructuring the Response

data CompleteLifecycleActionResponse Source #

See: newCompleteLifecycleActionResponse smart constructor.

Constructors

CompleteLifecycleActionResponse' 

Fields

Instances

Instances details
Eq CompleteLifecycleActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

Read CompleteLifecycleActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

Show CompleteLifecycleActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

Generic CompleteLifecycleActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

Associated Types

type Rep CompleteLifecycleActionResponse :: Type -> Type #

NFData CompleteLifecycleActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

type Rep CompleteLifecycleActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.CompleteLifecycleAction

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

newCompleteLifecycleActionResponse Source #

Create a value of CompleteLifecycleActionResponse 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:CompleteLifecycleActionResponse', completeLifecycleActionResponse_httpStatus - The response's http status code.

Response Lenses