Interface CfnAutoScalingGroup.RetentionTriggersProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAutoScalingGroup.RetentionTriggersProperty.Jsii$Proxy
- Enclosing class:
CfnAutoScalingGroup
@Stability(Stable)
public static interface CfnAutoScalingGroup.RetentionTriggersProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.autoscaling.*;
RetentionTriggersProperty retentionTriggersProperty = RetentionTriggersProperty.builder()
.terminateHookAbandon("terminateHookAbandon")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAutoScalingGroup.RetentionTriggersPropertystatic final classAn implementation forCfnAutoScalingGroup.RetentionTriggersProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTerminateHookAbandon
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.- See Also:
-
builder
-