Skip to content

RetentionTriggers

Source code in docs_src/capo_auto_scaling/types/retention_triggers.py
class RetentionTriggers(TypedDict, closed=True):
    terminate_hook_abandon: NotRequired[
        "capo_auto_scaling.types.retention_action.RetentionAction"
    ]
    """<p> Specifies the action when a termination lifecycle hook is abandoned due to failure, timeout, or explicit abandonment (calling CompleteLifecycleAction). </p> <p> Set to <code>retain</code> to move instances to a retained state. Set to <code>terminate</code> for default termination behavior. </p> <p> Retained instances don't count toward desired capacity and remain until you call <code>TerminateInstanceInAutoScalingGroup</code>. </p>"""

terminate_hook_abandon instance-attribute

terminate_hook_abandon: NotRequired[RetentionAction]

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.