public static interface LifecycleHook.Builder extends SdkPojo, CopyableBuilder<LifecycleHook.Builder,LifecycleHook>
| Modifier and Type | Method and Description |
|---|---|
LifecycleHook.Builder |
autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group for the lifecycle hook.
|
LifecycleHook.Builder |
defaultResult(String defaultResult)
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure
occurs.
|
LifecycleHook.Builder |
globalTimeout(Integer globalTimeout)
The maximum time, in seconds, that an instance can remain in a wait state.
|
LifecycleHook.Builder |
heartbeatTimeout(Integer heartbeatTimeout)
The maximum time, in seconds, that can elapse before the lifecycle hook times out.
|
LifecycleHook.Builder |
lifecycleHookName(String lifecycleHookName)
The name of the lifecycle hook.
|
LifecycleHook.Builder |
lifecycleTransition(String lifecycleTransition)
The lifecycle transition.
|
LifecycleHook.Builder |
notificationMetadata(String notificationMetadata)
Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification
target.
|
LifecycleHook.Builder |
notificationTargetARN(String notificationTargetARN)
The ARN of the target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state
for the lifecycle hook.
|
LifecycleHook.Builder |
roleARN(String roleARN)
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target
(an Amazon SNS topic or an Amazon SQS queue).
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildLifecycleHook.Builder lifecycleHookName(String lifecycleHookName)
The name of the lifecycle hook.
lifecycleHookName - The name of the lifecycle hook.LifecycleHook.Builder autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group for the lifecycle hook.
autoScalingGroupName - The name of the Auto Scaling group for the lifecycle hook.LifecycleHook.Builder lifecycleTransition(String lifecycleTransition)
The lifecycle transition.
Valid values: autoscaling:EC2_INSTANCE_LAUNCHING |
autoscaling:EC2_INSTANCE_TERMINATING
lifecycleTransition - The lifecycle transition.
Valid values: autoscaling:EC2_INSTANCE_LAUNCHING |
autoscaling:EC2_INSTANCE_TERMINATING
LifecycleHook.Builder notificationTargetARN(String notificationTargetARN)
The ARN of the target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook.
notificationTargetARN - The ARN of the target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a
wait state for the lifecycle hook.LifecycleHook.Builder roleARN(String roleARN)
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target (an Amazon SNS topic or an Amazon SQS queue).
roleARN - The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification
target (an Amazon SNS topic or an Amazon SQS queue).LifecycleHook.Builder notificationMetadata(String notificationMetadata)
Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.
notificationMetadata - Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the
notification target.LifecycleHook.Builder heartbeatTimeout(Integer 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 action that you specified in the DefaultResult
property.
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 action that you specified in the
DefaultResult property.LifecycleHook.Builder globalTimeout(Integer globalTimeout)
The maximum time, in seconds, that an instance can remain in a wait state. The maximum is 172800 seconds (48
hours) or 100 times HeartbeatTimeout, whichever is smaller.
globalTimeout - The maximum time, in seconds, that an instance can remain in a wait state. The maximum is 172800
seconds (48 hours) or 100 times HeartbeatTimeout, whichever is smaller.LifecycleHook.Builder defaultResult(String defaultResult)
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.
Valid values: CONTINUE | ABANDON
defaultResult - The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected
failure occurs.
Valid values: CONTINUE | ABANDON
Copyright © 2022. All rights reserved.