@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:40.664Z") public interface LifecycleHookProps extends BasicLifecycleHookProps
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();
Modifier and Type | Interface and Description |
---|---|
static class |
LifecycleHookProps.Builder
A builder for
LifecycleHookProps |
static class |
LifecycleHookProps.Jsii$Proxy
An implementation for
LifecycleHookProps |
Modifier and Type | Method and Description |
---|---|
static LifecycleHookProps.Builder |
builder() |
IAutoScalingGroup |
getAutoScalingGroup()
The AutoScalingGroup to add the lifecycle hook to.
|
getDefaultResult, getHeartbeatTimeout, getLifecycleHookName, getLifecycleTransition, getNotificationMetadata, getNotificationTarget, getRole
IAutoScalingGroup getAutoScalingGroup()
static LifecycleHookProps.Builder builder()
builder
in interface BasicLifecycleHookProps
LifecycleHookProps.Builder
of LifecycleHookProps