amazonka-autoscaling-2.0: Amazon Auto Scaling SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AutoScaling.Types.LifecycleHook

Description

 
Synopsis

Documentation

data LifecycleHook Source #

Describes a lifecycle hook. A lifecycle hook lets you create solutions that are aware of events in the Auto Scaling instance lifecycle, and then perform a custom action on instances when the corresponding lifecycle event occurs.

See: newLifecycleHook smart constructor.

Constructors

LifecycleHook' 

Fields

  • autoScalingGroupName :: Maybe Text

    The name of the Auto Scaling group for the lifecycle hook.

  • defaultResult :: Maybe Text

    The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.

    Valid values: CONTINUE | ABANDON

  • globalTimeout :: Maybe Int

    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.

  • heartbeatTimeout :: Maybe Int

    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.

  • lifecycleHookName :: Maybe Text

    The name of the lifecycle hook.

  • lifecycleTransition :: Maybe Text

    The lifecycle transition.

    Valid values: autoscaling:EC2_INSTANCE_LAUNCHING | autoscaling:EC2_INSTANCE_TERMINATING

  • notificationMetadata :: Maybe Text

    Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.

  • notificationTargetARN :: Maybe Text

    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.

  • roleARN :: Maybe Text

    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).

Instances

Instances details
FromXML LifecycleHook Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LifecycleHook

Generic LifecycleHook Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LifecycleHook

Associated Types

type Rep LifecycleHook :: Type -> Type #

Read LifecycleHook Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LifecycleHook

Show LifecycleHook Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LifecycleHook

NFData LifecycleHook Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LifecycleHook

Methods

rnf :: LifecycleHook -> () #

Eq LifecycleHook Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LifecycleHook

Hashable LifecycleHook Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LifecycleHook

type Rep LifecycleHook Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LifecycleHook

type Rep LifecycleHook = D1 ('MetaData "LifecycleHook" "Amazonka.AutoScaling.Types.LifecycleHook" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "LifecycleHook'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "autoScalingGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "defaultResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "globalTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "heartbeatTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: ((S1 ('MetaSel ('Just "lifecycleHookName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lifecycleTransition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "notificationMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "notificationTargetARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "roleARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newLifecycleHook :: LifecycleHook Source #

Create a value of LifecycleHook with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:autoScalingGroupName:LifecycleHook', lifecycleHook_autoScalingGroupName - The name of the Auto Scaling group for the lifecycle hook.

$sel:defaultResult:LifecycleHook', lifecycleHook_defaultResult - The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.

Valid values: CONTINUE | ABANDON

$sel:globalTimeout:LifecycleHook', lifecycleHook_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.

$sel:heartbeatTimeout:LifecycleHook', lifecycleHook_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.

$sel:lifecycleHookName:LifecycleHook', lifecycleHook_lifecycleHookName - The name of the lifecycle hook.

$sel:lifecycleTransition:LifecycleHook', lifecycleHook_lifecycleTransition - The lifecycle transition.

Valid values: autoscaling:EC2_INSTANCE_LAUNCHING | autoscaling:EC2_INSTANCE_TERMINATING

$sel:notificationMetadata:LifecycleHook', lifecycleHook_notificationMetadata - Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.

$sel:notificationTargetARN:LifecycleHook', lifecycleHook_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.

$sel:roleARN:LifecycleHook', lifecycleHook_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_autoScalingGroupName :: Lens' LifecycleHook (Maybe Text) Source #

The name of the Auto Scaling group for the lifecycle hook.

lifecycleHook_defaultResult :: Lens' LifecycleHook (Maybe Text) Source #

The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.

Valid values: CONTINUE | ABANDON

lifecycleHook_globalTimeout :: Lens' LifecycleHook (Maybe Int) Source #

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_heartbeatTimeout :: Lens' LifecycleHook (Maybe Int) Source #

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_lifecycleTransition :: Lens' LifecycleHook (Maybe Text) Source #

The lifecycle transition.

Valid values: autoscaling:EC2_INSTANCE_LAUNCHING | autoscaling:EC2_INSTANCE_TERMINATING

lifecycleHook_notificationMetadata :: Lens' LifecycleHook (Maybe Text) Source #

Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.

lifecycleHook_notificationTargetARN :: Lens' LifecycleHook (Maybe Text) Source #

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_roleARN :: Lens' LifecycleHook (Maybe Text) Source #

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).