interface RetentionTriggersProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AutoScaling.CfnAutoScalingGroup.RetentionTriggersProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#CfnAutoScalingGroup_RetentionTriggersProperty |
Java | software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.RetentionTriggersProperty |
Python | aws_cdk.aws_autoscaling.CfnAutoScalingGroup.RetentionTriggersProperty |
TypeScript | aws-cdk-lib » aws_autoscaling » CfnAutoScalingGroup » RetentionTriggersProperty |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_autoscaling as autoscaling } from 'aws-cdk-lib';
const retentionTriggersProperty: autoscaling.CfnAutoScalingGroup.RetentionTriggersProperty = {
terminateHookAbandon: 'terminateHookAbandon',
};
Properties
| Name | Type | Description |
|---|---|---|
| terminate | string | Specifies the action when a termination lifecycle hook is abandoned due to failure, timeout, or explicit abandonment (calling CompleteLifecycleAction). |
terminateHookAbandon?
Type:
string
(optional)
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 .

.NET
Go
Java
Python
TypeScript