Interface LifecycleHookProps
- All Superinterfaces:
BasicLifecycleHookProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LifecycleHookProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:14.880Z")
@Stability(Stable)
public interface LifecycleHookProps
extends software.amazon.jsii.JsiiSerializable, BasicLifecycleHookProps
Properties for a Lifecycle hook.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.autoscaling.*;
import software.amazon.awscdk.services.iam.*;
AutoScalingGroup autoScalingGroup;
ILifecycleHookTarget lifecycleHookTarget;
Role role;
LifecycleHookProps lifecycleHookProps = LifecycleHookProps.builder()
.autoScalingGroup(autoScalingGroup)
.lifecycleTransition(LifecycleTransition.INSTANCE_LAUNCHING)
// the properties below are optional
.defaultResult(DefaultResult.CONTINUE)
.heartbeatTimeout(Duration.minutes(30))
.lifecycleHookName("lifecycleHookName")
.notificationMetadata("notificationMetadata")
.notificationTarget(lifecycleHookTarget)
.role(role)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLifecycleHookPropsstatic final classAn implementation forLifecycleHookProps -
Method Summary
Modifier and TypeMethodDescriptionstatic LifecycleHookProps.Builderbuilder()The AutoScalingGroup to add the lifecycle hook to.Methods inherited from interface software.amazon.awscdk.services.autoscaling.BasicLifecycleHookProps
getDefaultResult, getHeartbeatTimeout, getLifecycleHookName, getLifecycleTransition, getNotificationMetadata, getNotificationTarget, getRoleMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutoScalingGroup
The AutoScalingGroup to add the lifecycle hook to. -
builder
- Returns:
- a
LifecycleHookProps.BuilderofLifecycleHookProps
-