AWS::AutoScaling::AutoScalingGroup RetentionTriggers - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::AutoScaling::AutoScalingGroup RetentionTriggers

Defines the specific triggers that cause instances to be retained in a Retained state rather than terminated. Each trigger corresponds to a different failure scenario during the instance lifecycle. This allows fine-grained control over when to preserve instances for manual intervention.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "TerminateHookAbandon" : String }

YAML

TerminateHookAbandon: String

Properties

TerminateHookAbandon

Specifies the action when a termination lifecycle hook is abandoned due to failure, timeout, or explicit abandonment (calling CompleteLifecycleAction).

Set to Retain to move instances to a Retained state. Set to Terminate for default termination behavior.

Retained instances don't count toward desired capacity and remain until you call TerminateInstanceInAutoScalingGroup.

Required: No

Type: String

Allowed values: retain | terminate

Update requires: No interruption