@Stability(value=Experimental) public static final class LifecycleHookProps.Builder extends Object implements software.amazon.jsii.Builder<LifecycleHookProps>
LifecycleHookProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public LifecycleHookProps.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
LifecycleHookProps.getAutoScalingGroup()autoScalingGroup - The AutoScalingGroup to add the lifecycle hook to. This parameter is required.this@Stability(value=Experimental) public LifecycleHookProps.Builder lifecycleTransition(LifecycleTransition lifecycleTransition)
BasicLifecycleHookProps.getLifecycleTransition()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 LifecycleHookProps.Builder notificationTarget(ILifecycleHookTarget notificationTarget)
BasicLifecycleHookProps.getNotificationTarget()notificationTarget - The target of the lifecycle hook. This parameter is required.this@Stability(value=Experimental) public LifecycleHookProps.Builder defaultResult(DefaultResult defaultResult)
BasicLifecycleHookProps.getDefaultResult()defaultResult - The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.this@Stability(value=Experimental) public LifecycleHookProps.Builder heartbeatTimeout(Duration heartbeatTimeout)
BasicLifecycleHookProps.getHeartbeatTimeout()heartbeatTimeout - Maximum time between calls to RecordLifecycleActionHeartbeat for the hook.
If the lifecycle hook times out, perform the action in DefaultResult.this@Stability(value=Experimental) public LifecycleHookProps.Builder lifecycleHookName(String lifecycleHookName)
BasicLifecycleHookProps.getLifecycleHookName()lifecycleHookName - Name of the lifecycle hook.this@Stability(value=Experimental) public LifecycleHookProps.Builder notificationMetadata(String notificationMetadata)
BasicLifecycleHookProps.getNotificationMetadata()notificationMetadata - Additional data to pass to the lifecycle hook target.this@Stability(value=Experimental) public LifecycleHookProps.Builder role(IRole role)
BasicLifecycleHookProps.getRole()role - The role that allows publishing to the notification target.this@Stability(value=Experimental) public LifecycleHookProps build()
build in interface software.amazon.jsii.Builder<LifecycleHookProps>LifecycleHookPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.