Class CfnLifecycleHookPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecycleHookPropsMixin>
- Enclosing class:
CfnLifecycleHookPropsMixin
CfnLifecycleHookPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionautoScalingGroupName(String autoScalingGroupName) The name of the Auto Scaling group.autoScalingGroupName(IAutoScalingGroupRef autoScalingGroupName) The name of the Auto Scaling group.build()create()create(CfnPropertyMixinOptions options) defaultResult(String defaultResult) The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.heartbeatTimeout(Number heartbeatTimeout) The maximum time, in seconds, that can elapse before the lifecycle hook times out.lifecycleHookName(String lifecycleHookName) The name of the lifecycle hook.lifecycleTransition(String lifecycleTransition) The lifecycle transition.notificationMetadata(String notificationMetadata) Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.notificationTargetArn(String notificationTargetArn) The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook.notificationTargetArn(ITopicRef notificationTargetArn) The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook.notificationTargetArn(IQueueRef notificationTargetArn) The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook.The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
-
Method Details
-
create
@Stability(Stable) public static CfnLifecycleHookPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnLifecycleHookPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnLifecycleHookPropsMixin.Builder.
-
autoScalingGroupName
@Stability(Stable) public CfnLifecycleHookPropsMixin.Builder autoScalingGroupName(String autoScalingGroupName) The name of the Auto Scaling group.- Parameters:
autoScalingGroupName- The name of the Auto Scaling group. This parameter is required.- Returns:
this- See Also:
-
autoScalingGroupName
@Stability(Stable) public CfnLifecycleHookPropsMixin.Builder autoScalingGroupName(IAutoScalingGroupRef autoScalingGroupName) The name of the Auto Scaling group.- Parameters:
autoScalingGroupName- The name of the Auto Scaling group. This parameter is required.- Returns:
this- See Also:
-
defaultResult
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.The default value is
ABANDON.Valid values:
CONTINUE|ABANDON- Parameters:
defaultResult- The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. This parameter is required.- Returns:
this- See Also:
-
heartbeatTimeout
@Stability(Stable) public CfnLifecycleHookPropsMixin.Builder heartbeatTimeout(Number heartbeatTimeout) The maximum time, in seconds, that can elapse before the lifecycle hook times out.The range is from
30to7200seconds. The default value is3600seconds (1 hour).- Parameters:
heartbeatTimeout- The maximum time, in seconds, that can elapse before the lifecycle hook times out. This parameter is required.- Returns:
this- See Also:
-
lifecycleHookName
@Stability(Stable) public CfnLifecycleHookPropsMixin.Builder lifecycleHookName(String lifecycleHookName) The name of the lifecycle hook.- Parameters:
lifecycleHookName- The name of the lifecycle hook. This parameter is required.- Returns:
this- See Also:
-
lifecycleTransition
@Stability(Stable) public CfnLifecycleHookPropsMixin.Builder lifecycleTransition(String lifecycleTransition) The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.- To create a lifecycle hook for scale-out events, specify
autoscaling:EC2_INSTANCE_LAUNCHING. - To create a lifecycle hook for scale-in events, specify
autoscaling:EC2_INSTANCE_TERMINATING.
- Parameters:
lifecycleTransition- The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions. This parameter is required.- Returns:
this- See Also:
- To create a lifecycle hook for scale-out events, specify
-
notificationMetadata
@Stability(Stable) public CfnLifecycleHookPropsMixin.Builder notificationMetadata(String notificationMetadata) Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.- Parameters:
notificationMetadata- Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target. This parameter is required.- Returns:
this- See Also:
-
notificationTargetArn
@Stability(Stable) public CfnLifecycleHookPropsMixin.Builder notificationTargetArn(String notificationTargetArn) The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook.You can specify an Amazon SNS topic or an Amazon SQS queue.
- Parameters:
notificationTargetArn- The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook. This parameter is required.- Returns:
this- See Also:
-
notificationTargetArn
@Stability(Stable) public CfnLifecycleHookPropsMixin.Builder notificationTargetArn(ITopicRef notificationTargetArn) The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook.You can specify an Amazon SNS topic or an Amazon SQS queue.
- Parameters:
notificationTargetArn- The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook. This parameter is required.- Returns:
this- See Also:
-
notificationTargetArn
@Stability(Stable) public CfnLifecycleHookPropsMixin.Builder notificationTargetArn(IQueueRef notificationTargetArn) The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook.You can specify an Amazon SNS topic or an Amazon SQS queue.
- Parameters:
notificationTargetArn- The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook. This parameter is required.- Returns:
this- See Also:
-
roleArn
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.For information about creating this role, see Prepare to add a lifecycle hook to your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide .
Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue.
- Parameters:
roleArn- The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target. This parameter is required.- Returns:
this- See Also:
-
roleArn
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.For information about creating this role, see Prepare to add a lifecycle hook to your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide .
Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue.
- Parameters:
roleArn- The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecycleHookPropsMixin>- Returns:
- a newly built instance of
CfnLifecycleHookPropsMixin.
-