@Stability(value=Experimental) public static final class LifecycleHook.Builder extends Object implements software.amazon.jsii.Builder<LifecycleHook>
LifecycleHook.| Modifier and Type | Method and Description |
|---|---|
LifecycleHook.Builder |
autoScalingGroup(IAutoScalingGroup autoScalingGroup)
(experimental) The AutoScalingGroup to add the lifecycle hook to.
|
LifecycleHook |
build() |
static LifecycleHook.Builder |
create(software.constructs.Construct scope,
String id) |
LifecycleHook.Builder |
defaultResult(DefaultResult defaultResult)
(experimental) The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.
|
LifecycleHook.Builder |
heartbeatTimeout(Duration heartbeatTimeout)
(experimental) Maximum time between calls to RecordLifecycleActionHeartbeat for the hook.
|
LifecycleHook.Builder |
lifecycleHookName(String lifecycleHookName)
(experimental) Name of the lifecycle hook.
|
LifecycleHook.Builder |
lifecycleTransition(LifecycleTransition lifecycleTransition)
(experimental) The state of the Amazon EC2 instance to which you want to attach the lifecycle hook.
|
LifecycleHook.Builder |
notificationMetadata(String notificationMetadata)
(experimental) Additional data to pass to the lifecycle hook target.
|
LifecycleHook.Builder |
notificationTarget(ILifecycleHookTarget notificationTarget)
(experimental) The target of the lifecycle hook.
|
LifecycleHook.Builder |
role(IRole role)
(experimental) The role that allows publishing to the notification target.
|
@Stability(value=Experimental) public static LifecycleHook.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.LifecycleHook.Builder.@Stability(value=Experimental) public LifecycleHook.Builder lifecycleTransition(LifecycleTransition lifecycleTransition)
lifecycleTransition - The state of the Amazon EC2 instance to which you want to attach the lifecycle hook. This parameter is required.this@Stability(value=Experimental) public LifecycleHook.Builder notificationTarget(ILifecycleHookTarget notificationTarget)
notificationTarget - The target of the lifecycle hook. This parameter is required.this@Stability(value=Experimental) public LifecycleHook.Builder defaultResult(DefaultResult defaultResult)
Default: Continue
defaultResult - The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. This parameter is required.this@Stability(value=Experimental) public LifecycleHook.Builder heartbeatTimeout(Duration heartbeatTimeout)
If the lifecycle hook times out, perform the action in DefaultResult.
Default: - No heartbeat timeout.
heartbeatTimeout - Maximum time between calls to RecordLifecycleActionHeartbeat for the hook. This parameter is required.this@Stability(value=Experimental) public LifecycleHook.Builder lifecycleHookName(String lifecycleHookName)
Default: - Automatically generated name.
lifecycleHookName - Name of the lifecycle hook. This parameter is required.this@Stability(value=Experimental) public LifecycleHook.Builder notificationMetadata(String notificationMetadata)
Default: - No metadata.
notificationMetadata - Additional data to pass to the lifecycle hook target. This parameter is required.this@Stability(value=Experimental) public LifecycleHook.Builder role(IRole role)
Default: - A role is automatically created.
role - The role that allows publishing to the notification target. This parameter is required.this@Stability(value=Experimental) public LifecycleHook.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
autoScalingGroup - The AutoScalingGroup to add the lifecycle hook to. This parameter is required.this@Stability(value=Experimental) public LifecycleHook build()
build in interface software.amazon.jsii.Builder<LifecycleHook>Copyright © 2021. All rights reserved.