@Stability(value=Stable) public static final class CfnAutoScalingGroup.LifecycleHookSpecificationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnAutoScalingGroup.LifecycleHookSpecificationProperty>
CfnAutoScalingGroup.LifecycleHookSpecificationProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnAutoScalingGroup.LifecycleHookSpecificationProperty.Builder lifecycleHookName(String lifecycleHookName)
lifecycleHookName - The name of the lifecycle hook. This parameter is required.this@Stability(value=Stable) public CfnAutoScalingGroup.LifecycleHookSpecificationProperty.Builder lifecycleTransition(String lifecycleTransition)
lifecycleTransition - The state of the EC2 instance to attach the lifecycle hook to. The valid values are:. This parameter is required.
this@Stability(value=Stable) public CfnAutoScalingGroup.LifecycleHookSpecificationProperty.Builder defaultResult(String defaultResult)
defaultResult - The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.
The valid values are CONTINUE and ABANDON (default).
For more information, see Add lifecycle hooks in the Amazon EC2 Auto Scaling User Guide .
this@Stability(value=Stable) public CfnAutoScalingGroup.LifecycleHookSpecificationProperty.Builder heartbeatTimeout(Number heartbeatTimeout)
heartbeatTimeout - The maximum time, in seconds, that can elapse before the lifecycle hook times out.
If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the default action.this@Stability(value=Stable) public CfnAutoScalingGroup.LifecycleHookSpecificationProperty.Builder notificationMetadata(String notificationMetadata)
notificationMetadata - Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.this@Stability(value=Stable) public CfnAutoScalingGroup.LifecycleHookSpecificationProperty.Builder notificationTargetArn(String notificationTargetArn)
notificationTargetArn - The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in the transition state for the lifecycle hook.
You can specify an Amazon SQS queue or an Amazon SNS topic.this@Stability(value=Stable) public CfnAutoScalingGroup.LifecycleHookSpecificationProperty.Builder roleArn(String roleArn)
CfnAutoScalingGroup.LifecycleHookSpecificationProperty.getRoleArn()roleArn - The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.
For information about creating this role, see Configure a notification target for a lifecycle hook in the Amazon EC2 Auto Scaling User Guide .this@Stability(value=Stable) public CfnAutoScalingGroup.LifecycleHookSpecificationProperty build()
build in interface software.amazon.jsii.Builder<CfnAutoScalingGroup.LifecycleHookSpecificationProperty>CfnAutoScalingGroup.LifecycleHookSpecificationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.