Interface CfnAutoScalingGroup.LifecycleHookSpecificationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAutoScalingGroup.LifecycleHookSpecificationProperty.Jsii$Proxy
Enclosing class:
CfnAutoScalingGroup

@Stability(Stable) public static interface CfnAutoScalingGroup.LifecycleHookSpecificationProperty extends software.amazon.jsii.JsiiSerializable
LifecycleHookSpecification specifies a lifecycle hook for the LifecycleHookSpecificationList property of the AWS::AutoScaling::AutoScalingGroup resource. A lifecycle hook specifies actions to perform when Amazon EC2 Auto Scaling launches or terminates instances.

For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide . You can find a sample template snippet in the Examples section of the AWS::AutoScaling::LifecycleHook resource.

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.*;
 LifecycleHookSpecificationProperty lifecycleHookSpecificationProperty = LifecycleHookSpecificationProperty.builder()
         .lifecycleHookName("lifecycleHookName")
         .lifecycleTransition("lifecycleTransition")
         // the properties below are optional
         .defaultResult("defaultResult")
         .heartbeatTimeout(123)
         .notificationMetadata("notificationMetadata")
         .notificationTargetArn("notificationTargetArn")
         .roleArn("roleArn")
         .build();
 

See Also: