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: