@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.724Z") @Stability(value=Stable) public interface BasicLifecycleHookProps extends software.amazon.jsii.JsiiSerializable
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.*;
ILifecycleHookTarget lifecycleHookTarget;
Role role;
BasicLifecycleHookProps basicLifecycleHookProps = BasicLifecycleHookProps.builder()
.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 |
BasicLifecycleHookProps.Builder
A builder for
BasicLifecycleHookProps |
static class |
BasicLifecycleHookProps.Jsii$Proxy
An implementation for
BasicLifecycleHookProps |
| Modifier and Type | Method and Description |
|---|---|
static BasicLifecycleHookProps.Builder |
builder() |
default DefaultResult |
getDefaultResult()
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.
|
default Duration |
getHeartbeatTimeout()
Maximum time between calls to RecordLifecycleActionHeartbeat for the hook.
|
default String |
getLifecycleHookName()
Name of the lifecycle hook.
|
LifecycleTransition |
getLifecycleTransition()
The state of the Amazon EC2 instance to which you want to attach the lifecycle hook.
|
default String |
getNotificationMetadata()
Additional data to pass to the lifecycle hook target.
|
default ILifecycleHookTarget |
getNotificationTarget()
The target of the lifecycle hook.
|
default IRole |
getRole()
The role that allows publishing to the notification target.
|
@Stability(value=Stable) @NotNull LifecycleTransition getLifecycleTransition()
@Stability(value=Stable) @Nullable default DefaultResult getDefaultResult()
Default: Continue
@Stability(value=Stable) @Nullable default Duration getHeartbeatTimeout()
If the lifecycle hook times out, perform the action in DefaultResult.
Default: - No heartbeat timeout.
@Stability(value=Stable) @Nullable default String getLifecycleHookName()
Default: - Automatically generated name.
@Stability(value=Stable) @Nullable default String getNotificationMetadata()
Default: - No metadata.
@Stability(value=Stable) @Nullable default ILifecycleHookTarget getNotificationTarget()
Default: - No target.
@Stability(value=Stable) @Nullable default IRole getRole()
Default: - A role will be created if a target is provided. Otherwise, no role is created.
@Stability(value=Stable) static BasicLifecycleHookProps.Builder builder()
BasicLifecycleHookProps.Builder of BasicLifecycleHookPropsCopyright © 2022. All rights reserved.