Interface LifecycleHookProps
- All Superinterfaces:
BasicLifecycleHookProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LifecycleHookProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.393Z")
@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.services.autoscaling.*; import software.amazon.awscdk.services.iam.*; import software.amazon.awscdk.core.*; 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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forLifecycleHookProps
static final class
An implementation forLifecycleHookProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic LifecycleHookProps.Builder
builder()
The AutoScalingGroup to add the lifecycle hook to.Methods inherited from interface software.amazon.awscdk.services.autoscaling.BasicLifecycleHookProps
getDefaultResult, getHeartbeatTimeout, getLifecycleHookName, getLifecycleTransition, getNotificationMetadata, getNotificationTarget, getRole
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutoScalingGroup
The AutoScalingGroup to add the lifecycle hook to. -
builder
- Returns:
- a
LifecycleHookProps.Builder
ofLifecycleHookProps
-