/AWS1/CL_ASCRETENTIONTRIGGERS¶
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.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_terminatehookabandon TYPE /AWS1/ASCRETENTIONACTION /AWS1/ASCRETENTIONACTION¶
Specifies the action when a termination lifecycle hook is abandoned due to failure, timeout, or explicit abandonment (calling CompleteLifecycleAction).
Set to
Retainto move instances to aRetainedstate. Set toTerminatefor default termination behavior.Retained instances don't count toward desired capacity and remain until you call
TerminateInstanceInAutoScalingGroup.
Queryable Attributes¶
TerminateHookAbandon¶
Specifies the action when a termination lifecycle hook is abandoned due to failure, timeout, or explicit abandonment (calling CompleteLifecycleAction).
Set to
Retainto move instances to aRetainedstate. Set toTerminatefor default termination behavior.Retained instances don't count toward desired capacity and remain until you call
TerminateInstanceInAutoScalingGroup.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TERMINATEHOOKABANDON() |
Getter for TERMINATEHOOKABANDON, with configurable default |
ASK_TERMINATEHOOKABANDON() |
Getter for TERMINATEHOOKABANDON w/ exceptions if field has n |
HAS_TERMINATEHOOKABANDON() |
Determine if TERMINATEHOOKABANDON has a value |