AWS::AutoScaling::AutoScalingGroup RetentionTriggers - AWS CloudFormation

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS 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 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