Safe Haskell | None |
---|---|
Language | Haskell2010 |
Use AWS::AutoScaling::LifecycleHook to control the state of an instance in an Auto Scaling group after it is launched or terminated. When you use a lifecycle hook, the Auto Scaling group either pauses the instance after it is launched (before it is put into service) or pauses the instance as it is terminated (before it is fully terminated). For more information, see Examples of How to Use Lifecycle Hooks in the Auto Scaling User Guide.
- data LifecycleHook = LifecycleHook {
- _lifecycleHookAutoScalingGroupName :: Val Text
- _lifecycleHookDefaultResult :: Maybe (Val Text)
- _lifecycleHookHeartbeatTimeout :: Maybe (Val Integer')
- _lifecycleHookLifecycleTransition :: Val Text
- _lifecycleHookNotificationMetadata :: Maybe (Val Text)
- _lifecycleHookNotificationTargetARN :: Val Text
- _lifecycleHookRoleARN :: Val Text
- lifecycleHook :: Val Text -> Val Text -> Val Text -> Val Text -> LifecycleHook
- lhAutoScalingGroupName :: Lens' LifecycleHook (Val Text)
- lhDefaultResult :: Lens' LifecycleHook (Maybe (Val Text))
- lhHeartbeatTimeout :: Lens' LifecycleHook (Maybe (Val Integer'))
- lhLifecycleTransition :: Lens' LifecycleHook (Val Text)
- lhNotificationMetadata :: Lens' LifecycleHook (Maybe (Val Text))
- lhNotificationTargetARN :: Lens' LifecycleHook (Val Text)
- lhRoleARN :: Lens' LifecycleHook (Val Text)
Documentation
data LifecycleHook Source #
Full data type definition for LifecycleHook. See lifecycleHook
for a
more convenient constructor.
Constructor for LifecycleHook
containing required fields as arguments.
lhAutoScalingGroupName :: Lens' LifecycleHook (Val Text) Source #
The name of the Auto Scaling group for the lifecycle hook.
lhDefaultResult :: Lens' LifecycleHook (Maybe (Val Text)) Source #
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.
lhHeartbeatTimeout :: Lens' LifecycleHook (Maybe (Val Integer')) Source #
The amount of time that can elapse before the lifecycle hook times out. When the lifecycle hook times out, Auto Scaling performs the action that you specified in the DefaultResult property.
lhLifecycleTransition :: Lens' LifecycleHook (Val Text) Source #
The state of the Amazon EC2 instance to which you want to attach the lifecycle hook.
lhNotificationMetadata :: Lens' LifecycleHook (Maybe (Val Text)) Source #
Additional information that you want to include when Auto Scaling sends a message to the notification target.
lhNotificationTargetARN :: Lens' LifecycleHook (Val Text) Source #
The Amazon resource name (ARN) of the notification target that 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. The notification message includes the following information: lifecycle action token, user account ID, Auto Scaling group name, lifecycle hook name, instance ID, lifecycle transition, and notification metadata.