Interface CfnAutoScalingGroup.InstanceLifecyclePolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAutoScalingGroup.InstanceLifecyclePolicyProperty.Jsii$Proxy
- Enclosing class:
CfnAutoScalingGroup
@Stability(Stable)
public static interface CfnAutoScalingGroup.InstanceLifecyclePolicyProperty
extends software.amazon.jsii.JsiiSerializable
The instance lifecycle policy for the Auto Scaling group.
This policy controls instance behavior when an instance transitions through its lifecycle states. Configure retention triggers to specify when instances should move to a Retained state instead of automatic termination.
For more information, see Control instance retention with instance lifecycle policies in the Amazon EC2 Auto Scaling User Guide .
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.*;
InstanceLifecyclePolicyProperty instanceLifecyclePolicyProperty = InstanceLifecyclePolicyProperty.builder()
.retentionTriggers(RetentionTriggersProperty.builder()
.terminateHookAbandon("terminateHookAbandon")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAutoScalingGroup.InstanceLifecyclePolicyPropertystatic final classAn implementation forCfnAutoScalingGroup.InstanceLifecyclePolicyProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRetentionTriggers
Specifies the conditions that trigger instance retention behavior.These triggers determine when instances should move to a
Retainedstate instead of automatic termination. This allows you to maintain control over instance management when lifecycles transition and operations fail.Returns union: either
IResolvableorCfnAutoScalingGroup.RetentionTriggersProperty- See Also:
-
builder
-