stratosphere-0.2.2: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.Resources.LifecycleHook

Description

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.

Synopsis

Documentation

data LifecycleHook Source #

Full data type definition for LifecycleHook. See lifecycleHook for a more convenient constructor.

Instances

Show LifecycleHook Source # 
Generic LifecycleHook Source # 

Associated Types

type Rep LifecycleHook :: * -> * #

ToJSON LifecycleHook Source # 
FromJSON LifecycleHook Source # 
type Rep LifecycleHook Source # 
type Rep LifecycleHook = D1 (MetaData "LifecycleHook" "Stratosphere.Resources.LifecycleHook" "stratosphere-0.2.2-Fnop5S0NvsvBmp7LUeJWuv" False) (C1 (MetaCons "LifecycleHook" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lifecycleHookAutoScalingGroupName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Val Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lifecycleHookDefaultResult") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) (S1 (MetaSel (Just Symbol "_lifecycleHookHeartbeatTimeout") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Integer')))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lifecycleHookLifecycleTransition") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Val Text))) (S1 (MetaSel (Just Symbol "_lifecycleHookNotificationMetadata") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_lifecycleHookNotificationTargetARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Val Text))) (S1 (MetaSel (Just Symbol "_lifecycleHookRoleARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Val Text)))))))

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.

lhRoleARN :: Lens' LifecycleHook (Val Text) Source #

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target. The role requires permissions to Amazon SNS and Amazon SQS.