/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a lifecycle hook, which tells Amazon EC2 Auto Scaling that you want
* to perform an action whenever it launches instances or terminates
* instances.See Also:
AWS
* API Reference
The name of the lifecycle hook.
*/ inline const Aws::String& GetLifecycleHookName() const{ return m_lifecycleHookName; } /** *The name of the lifecycle hook.
*/ inline bool LifecycleHookNameHasBeenSet() const { return m_lifecycleHookNameHasBeenSet; } /** *The name of the lifecycle hook.
*/ inline void SetLifecycleHookName(const Aws::String& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = value; } /** *The name of the lifecycle hook.
*/ inline void SetLifecycleHookName(Aws::String&& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = std::move(value); } /** *The name of the lifecycle hook.
*/ inline void SetLifecycleHookName(const char* value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName.assign(value); } /** *The name of the lifecycle hook.
*/ inline LifecycleHook& WithLifecycleHookName(const Aws::String& value) { SetLifecycleHookName(value); return *this;} /** *The name of the lifecycle hook.
*/ inline LifecycleHook& WithLifecycleHookName(Aws::String&& value) { SetLifecycleHookName(std::move(value)); return *this;} /** *The name of the lifecycle hook.
*/ inline LifecycleHook& WithLifecycleHookName(const char* value) { SetLifecycleHookName(value); return *this;} /** *The name of the Auto Scaling group for the lifecycle hook.
*/ inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; } /** *The name of the Auto Scaling group for the lifecycle hook.
*/ inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; } /** *The name of the Auto Scaling group for the lifecycle hook.
*/ inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; } /** *The name of the Auto Scaling group for the lifecycle hook.
*/ inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); } /** *The name of the Auto Scaling group for the lifecycle hook.
*/ inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); } /** *The name of the Auto Scaling group for the lifecycle hook.
*/ inline LifecycleHook& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;} /** *The name of the Auto Scaling group for the lifecycle hook.
*/ inline LifecycleHook& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;} /** *The name of the Auto Scaling group for the lifecycle hook.
*/ inline LifecycleHook& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;} /** *The state of the EC2 instance to which to attach the lifecycle hook. The * following are possible values:
autoscaling:EC2_INSTANCE_LAUNCHING
autoscaling:EC2_INSTANCE_TERMINATING
The state of the EC2 instance to which to attach the lifecycle hook. The * following are possible values:
autoscaling:EC2_INSTANCE_LAUNCHING
autoscaling:EC2_INSTANCE_TERMINATING
The state of the EC2 instance to which to attach the lifecycle hook. The * following are possible values:
autoscaling:EC2_INSTANCE_LAUNCHING
autoscaling:EC2_INSTANCE_TERMINATING
The state of the EC2 instance to which to attach the lifecycle hook. The * following are possible values:
autoscaling:EC2_INSTANCE_LAUNCHING
autoscaling:EC2_INSTANCE_TERMINATING
The state of the EC2 instance to which to attach the lifecycle hook. The * following are possible values:
autoscaling:EC2_INSTANCE_LAUNCHING
autoscaling:EC2_INSTANCE_TERMINATING
The state of the EC2 instance to which to attach the lifecycle hook. The * following are possible values:
autoscaling:EC2_INSTANCE_LAUNCHING
autoscaling:EC2_INSTANCE_TERMINATING
The state of the EC2 instance to which to attach the lifecycle hook. The * following are possible values:
autoscaling:EC2_INSTANCE_LAUNCHING
autoscaling:EC2_INSTANCE_TERMINATING
The state of the EC2 instance to which to attach the lifecycle hook. The * following are possible values:
autoscaling:EC2_INSTANCE_LAUNCHING
autoscaling:EC2_INSTANCE_TERMINATING
The ARN of the target that Amazon EC2 Auto Scaling sends notifications to * when an instance is in the transition state for the lifecycle hook. The * notification target can be either an SQS queue or an SNS topic.
*/ inline const Aws::String& GetNotificationTargetARN() const{ return m_notificationTargetARN; } /** *The ARN of the target that Amazon EC2 Auto Scaling sends notifications to * when an instance is in the transition state for the lifecycle hook. The * notification target can be either an SQS queue or an SNS topic.
*/ inline bool NotificationTargetARNHasBeenSet() const { return m_notificationTargetARNHasBeenSet; } /** *The ARN of the target that Amazon EC2 Auto Scaling sends notifications to * when an instance is in the transition state for the lifecycle hook. The * notification target can be either an SQS queue or an SNS topic.
*/ inline void SetNotificationTargetARN(const Aws::String& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = value; } /** *The ARN of the target that Amazon EC2 Auto Scaling sends notifications to * when an instance is in the transition state for the lifecycle hook. The * notification target can be either an SQS queue or an SNS topic.
*/ inline void SetNotificationTargetARN(Aws::String&& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = std::move(value); } /** *The ARN of the target that Amazon EC2 Auto Scaling sends notifications to * when an instance is in the transition state for the lifecycle hook. The * notification target can be either an SQS queue or an SNS topic.
*/ inline void SetNotificationTargetARN(const char* value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN.assign(value); } /** *The ARN of the target that Amazon EC2 Auto Scaling sends notifications to * when an instance is in the transition state for the lifecycle hook. The * notification target can be either an SQS queue or an SNS topic.
*/ inline LifecycleHook& WithNotificationTargetARN(const Aws::String& value) { SetNotificationTargetARN(value); return *this;} /** *The ARN of the target that Amazon EC2 Auto Scaling sends notifications to * when an instance is in the transition state for the lifecycle hook. The * notification target can be either an SQS queue or an SNS topic.
*/ inline LifecycleHook& WithNotificationTargetARN(Aws::String&& value) { SetNotificationTargetARN(std::move(value)); return *this;} /** *The ARN of the target that Amazon EC2 Auto Scaling sends notifications to * when an instance is in the transition state for the lifecycle hook. The * notification target can be either an SQS queue or an SNS topic.
*/ inline LifecycleHook& WithNotificationTargetARN(const char* value) { SetNotificationTargetARN(value); return *this;} /** *The ARN of the IAM role that allows the Auto Scaling group to publish to the * specified notification target.
*/ inline const Aws::String& GetRoleARN() const{ return m_roleARN; } /** *The ARN of the IAM role that allows the Auto Scaling group to publish to the * specified notification target.
*/ inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; } /** *The ARN of the IAM role that allows the Auto Scaling group to publish to the * specified notification target.
*/ inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; } /** *The ARN of the IAM role that allows the Auto Scaling group to publish to the * specified notification target.
*/ inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); } /** *The ARN of the IAM role that allows the Auto Scaling group to publish to the * specified notification target.
*/ inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); } /** *The ARN of the IAM role that allows the Auto Scaling group to publish to the * specified notification target.
*/ inline LifecycleHook& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;} /** *The ARN of the IAM role that allows the Auto Scaling group to publish to the * specified notification target.
*/ inline LifecycleHook& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;} /** *The ARN of the IAM role that allows the Auto Scaling group to publish to the * specified notification target.
*/ inline LifecycleHook& WithRoleARN(const char* value) { SetRoleARN(value); return *this;} /** *Additional information that is included any time Amazon EC2 Auto Scaling * sends a message to the notification target.
*/ inline const Aws::String& GetNotificationMetadata() const{ return m_notificationMetadata; } /** *Additional information that is included any time Amazon EC2 Auto Scaling * sends a message to the notification target.
*/ inline bool NotificationMetadataHasBeenSet() const { return m_notificationMetadataHasBeenSet; } /** *Additional information that is included any time Amazon EC2 Auto Scaling * sends a message to the notification target.
*/ inline void SetNotificationMetadata(const Aws::String& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = value; } /** *Additional information that is included any time Amazon EC2 Auto Scaling * sends a message to the notification target.
*/ inline void SetNotificationMetadata(Aws::String&& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = std::move(value); } /** *Additional information that is included any time Amazon EC2 Auto Scaling * sends a message to the notification target.
*/ inline void SetNotificationMetadata(const char* value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata.assign(value); } /** *Additional information that is included any time Amazon EC2 Auto Scaling * sends a message to the notification target.
*/ inline LifecycleHook& WithNotificationMetadata(const Aws::String& value) { SetNotificationMetadata(value); return *this;} /** *Additional information that is included any time Amazon EC2 Auto Scaling * sends a message to the notification target.
*/ inline LifecycleHook& WithNotificationMetadata(Aws::String&& value) { SetNotificationMetadata(std::move(value)); return *this;} /** *Additional information that is included any time Amazon EC2 Auto Scaling * sends a message to the notification target.
*/ inline LifecycleHook& WithNotificationMetadata(const char* value) { SetNotificationMetadata(value); return *this;} /** *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 parameter.
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 parameter.
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 parameter.
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 parameter.
The maximum time, in seconds, that an instance can remain in a
* Pending:Wait or Terminating:Wait state. The maximum is
* 172800 seconds (48 hours) or 100 times HeartbeatTimeout, whichever
* is smaller.
The maximum time, in seconds, that an instance can remain in a
* Pending:Wait or Terminating:Wait state. The maximum is
* 172800 seconds (48 hours) or 100 times HeartbeatTimeout, whichever
* is smaller.
The maximum time, in seconds, that an instance can remain in a
* Pending:Wait or Terminating:Wait state. The maximum is
* 172800 seconds (48 hours) or 100 times HeartbeatTimeout, whichever
* is smaller.
The maximum time, in seconds, that an instance can remain in a
* Pending:Wait or Terminating:Wait state. The maximum is
* 172800 seconds (48 hours) or 100 times HeartbeatTimeout, whichever
* is smaller.
Defines the action the Auto Scaling group should take when the lifecycle hook
* timeout elapses or if an unexpected failure occurs. The possible values are
* CONTINUE and ABANDON.
Defines the action the Auto Scaling group should take when the lifecycle hook
* timeout elapses or if an unexpected failure occurs. The possible values are
* CONTINUE and ABANDON.
Defines the action the Auto Scaling group should take when the lifecycle hook
* timeout elapses or if an unexpected failure occurs. The possible values are
* CONTINUE and ABANDON.
Defines the action the Auto Scaling group should take when the lifecycle hook
* timeout elapses or if an unexpected failure occurs. The possible values are
* CONTINUE and ABANDON.
Defines the action the Auto Scaling group should take when the lifecycle hook
* timeout elapses or if an unexpected failure occurs. The possible values are
* CONTINUE and ABANDON.
Defines the action the Auto Scaling group should take when the lifecycle hook
* timeout elapses or if an unexpected failure occurs. The possible values are
* CONTINUE and ABANDON.
Defines the action the Auto Scaling group should take when the lifecycle hook
* timeout elapses or if an unexpected failure occurs. The possible values are
* CONTINUE and ABANDON.
Defines the action the Auto Scaling group should take when the lifecycle hook
* timeout elapses or if an unexpected failure occurs. The possible values are
* CONTINUE and ABANDON.