interface RetentionTriggersProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.AutoScaling.CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsautoscaling#CfnAutoScalingGroupPropsMixin_RetentionTriggersProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.autoscaling.CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty |
Python | aws_cdk.cfn_property_mixins.aws_autoscaling.CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_autoscaling » CfnAutoScalingGroupPropsMixin » 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/cfn-property-mixins';
const retentionTriggersProperty: autoscaling.CfnAutoScalingGroupPropsMixin.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