LifecycleHook
¶
Source code in docs_src/capo_auto_scaling/types/lifecycle_hook.py
auto_scaling_group_name
instance-attribute
¶
auto_scaling_group_name: NotRequired[XmlStringMaxLen255]
The name of the Auto Scaling group for the lifecycle hook.
default_result
instance-attribute
¶
default_result: NotRequired[LifecycleActionResult]
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.
Valid values: CONTINUE | ABANDON
global_timeout
instance-attribute
¶
global_timeout: NotRequired[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.
heartbeat_timeout
instance-attribute
¶
heartbeat_timeout: NotRequired[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.
lifecycle_hook_name
instance-attribute
¶
lifecycle_hook_name: NotRequired[AsciiStringMaxLen255]
The name of the lifecycle hook.
lifecycle_transition
instance-attribute
¶
lifecycle_transition: NotRequired[LifecycleTransition]
The lifecycle transition.
Valid values: autoscaling:EC2_INSTANCE_LAUNCHING | autoscaling:EC2_INSTANCE_TERMINATING
notification_metadata
instance-attribute
¶
notification_metadata: NotRequired[AnyPrintableAsciiStringMaxLen4000]
Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.
notification_target_arn
instance-attribute
¶
notification_target_arn: NotRequired[NotificationTargetResourceName]
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.
role_arn
instance-attribute
¶
role_arn: NotRequired[XmlStringMaxLen255]
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).