AWS SDK for C++  1.9.73
AWS SDK for C++
Public Member Functions | List of all members
Aws::AutoScaling::Model::LifecycleHookSpecification Class Reference

#include <LifecycleHookSpecification.h>

Public Member Functions

 LifecycleHookSpecification ()
 
 LifecycleHookSpecification (const Aws::Utils::Xml::XmlNode &xmlNode)
 
LifecycleHookSpecificationoperator= (const Aws::Utils::Xml::XmlNode &xmlNode)
 
void OutputToStream (Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
 
void OutputToStream (Aws::OStream &oStream, const char *location) const
 
const Aws::StringGetLifecycleHookName () const
 
bool LifecycleHookNameHasBeenSet () const
 
void SetLifecycleHookName (const Aws::String &value)
 
void SetLifecycleHookName (Aws::String &&value)
 
void SetLifecycleHookName (const char *value)
 
LifecycleHookSpecificationWithLifecycleHookName (const Aws::String &value)
 
LifecycleHookSpecificationWithLifecycleHookName (Aws::String &&value)
 
LifecycleHookSpecificationWithLifecycleHookName (const char *value)
 
const Aws::StringGetLifecycleTransition () const
 
bool LifecycleTransitionHasBeenSet () const
 
void SetLifecycleTransition (const Aws::String &value)
 
void SetLifecycleTransition (Aws::String &&value)
 
void SetLifecycleTransition (const char *value)
 
LifecycleHookSpecificationWithLifecycleTransition (const Aws::String &value)
 
LifecycleHookSpecificationWithLifecycleTransition (Aws::String &&value)
 
LifecycleHookSpecificationWithLifecycleTransition (const char *value)
 
const Aws::StringGetNotificationMetadata () const
 
bool NotificationMetadataHasBeenSet () const
 
void SetNotificationMetadata (const Aws::String &value)
 
void SetNotificationMetadata (Aws::String &&value)
 
void SetNotificationMetadata (const char *value)
 
LifecycleHookSpecificationWithNotificationMetadata (const Aws::String &value)
 
LifecycleHookSpecificationWithNotificationMetadata (Aws::String &&value)
 
LifecycleHookSpecificationWithNotificationMetadata (const char *value)
 
int GetHeartbeatTimeout () const
 
bool HeartbeatTimeoutHasBeenSet () const
 
void SetHeartbeatTimeout (int value)
 
LifecycleHookSpecificationWithHeartbeatTimeout (int value)
 
const Aws::StringGetDefaultResult () const
 
bool DefaultResultHasBeenSet () const
 
void SetDefaultResult (const Aws::String &value)
 
void SetDefaultResult (Aws::String &&value)
 
void SetDefaultResult (const char *value)
 
LifecycleHookSpecificationWithDefaultResult (const Aws::String &value)
 
LifecycleHookSpecificationWithDefaultResult (Aws::String &&value)
 
LifecycleHookSpecificationWithDefaultResult (const char *value)
 
const Aws::StringGetNotificationTargetARN () const
 
bool NotificationTargetARNHasBeenSet () const
 
void SetNotificationTargetARN (const Aws::String &value)
 
void SetNotificationTargetARN (Aws::String &&value)
 
void SetNotificationTargetARN (const char *value)
 
LifecycleHookSpecificationWithNotificationTargetARN (const Aws::String &value)
 
LifecycleHookSpecificationWithNotificationTargetARN (Aws::String &&value)
 
LifecycleHookSpecificationWithNotificationTargetARN (const char *value)
 
const Aws::StringGetRoleARN () const
 
bool RoleARNHasBeenSet () const
 
void SetRoleARN (const Aws::String &value)
 
void SetRoleARN (Aws::String &&value)
 
void SetRoleARN (const char *value)
 
LifecycleHookSpecificationWithRoleARN (const Aws::String &value)
 
LifecycleHookSpecificationWithRoleARN (Aws::String &&value)
 
LifecycleHookSpecificationWithRoleARN (const char *value)
 

Detailed Description

Describes information used to specify a lifecycle hook for an Auto Scaling group.

A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on an instance when the instance launches (before it is put into service) or as the instance terminates (before it is fully terminated).

This step is a part of the procedure for creating a lifecycle hook for an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide.

See Also:

AWS API Reference

Definition at line 49 of file LifecycleHookSpecification.h.

Constructor & Destructor Documentation

◆ LifecycleHookSpecification() [1/2]

Aws::AutoScaling::Model::LifecycleHookSpecification::LifecycleHookSpecification ( )

◆ LifecycleHookSpecification() [2/2]

Aws::AutoScaling::Model::LifecycleHookSpecification::LifecycleHookSpecification ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ DefaultResultHasBeenSet()

bool Aws::AutoScaling::Model::LifecycleHookSpecification::DefaultResultHasBeenSet ( ) const
inline

Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON. The default value is ABANDON.

Definition at line 258 of file LifecycleHookSpecification.h.

◆ GetDefaultResult()

const Aws::String& Aws::AutoScaling::Model::LifecycleHookSpecification::GetDefaultResult ( ) const
inline

Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON. The default value is ABANDON.

Definition at line 250 of file LifecycleHookSpecification.h.

◆ GetHeartbeatTimeout()

int Aws::AutoScaling::Model::LifecycleHookSpecification::GetHeartbeatTimeout ( ) const
inline

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. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat.

Definition at line 214 of file LifecycleHookSpecification.h.

◆ GetLifecycleHookName()

const Aws::String& Aws::AutoScaling::Model::LifecycleHookSpecification::GetLifecycleHookName ( ) const
inline

The name of the lifecycle hook.

Definition at line 63 of file LifecycleHookSpecification.h.

◆ GetLifecycleTransition()

const Aws::String& Aws::AutoScaling::Model::LifecycleHookSpecification::GetLifecycleTransition ( ) const
inline

The state of the EC2 instance to which you want to attach the lifecycle hook. The valid values are:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

Definition at line 106 of file LifecycleHookSpecification.h.

◆ GetNotificationMetadata()

const Aws::String& Aws::AutoScaling::Model::LifecycleHookSpecification::GetNotificationMetadata ( ) const
inline

Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.

Definition at line 162 of file LifecycleHookSpecification.h.

◆ GetNotificationTargetARN()

const Aws::String& Aws::AutoScaling::Model::LifecycleHookSpecification::GetNotificationTargetARN ( ) const
inline

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.

Definition at line 314 of file LifecycleHookSpecification.h.

◆ GetRoleARN()

const Aws::String& Aws::AutoScaling::Model::LifecycleHookSpecification::GetRoleARN ( ) const
inline

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.

Definition at line 371 of file LifecycleHookSpecification.h.

◆ HeartbeatTimeoutHasBeenSet()

bool Aws::AutoScaling::Model::LifecycleHookSpecification::HeartbeatTimeoutHasBeenSet ( ) const
inline

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. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat.

Definition at line 223 of file LifecycleHookSpecification.h.

◆ LifecycleHookNameHasBeenSet()

bool Aws::AutoScaling::Model::LifecycleHookSpecification::LifecycleHookNameHasBeenSet ( ) const
inline

The name of the lifecycle hook.

Definition at line 68 of file LifecycleHookSpecification.h.

◆ LifecycleTransitionHasBeenSet()

bool Aws::AutoScaling::Model::LifecycleHookSpecification::LifecycleTransitionHasBeenSet ( ) const
inline

The state of the EC2 instance to which you want to attach the lifecycle hook. The valid values are:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

Definition at line 113 of file LifecycleHookSpecification.h.

◆ NotificationMetadataHasBeenSet()

bool Aws::AutoScaling::Model::LifecycleHookSpecification::NotificationMetadataHasBeenSet ( ) const
inline

Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.

Definition at line 168 of file LifecycleHookSpecification.h.

◆ NotificationTargetARNHasBeenSet()

bool Aws::AutoScaling::Model::LifecycleHookSpecification::NotificationTargetARNHasBeenSet ( ) const
inline

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.

Definition at line 321 of file LifecycleHookSpecification.h.

◆ operator=()

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutputToStream() [1/2]

void Aws::AutoScaling::Model::LifecycleHookSpecification::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ OutputToStream() [2/2]

void Aws::AutoScaling::Model::LifecycleHookSpecification::OutputToStream ( Aws::OStream ostream,
const char *  location,
unsigned  index,
const char *  locationValue 
) const

◆ RoleARNHasBeenSet()

bool Aws::AutoScaling::Model::LifecycleHookSpecification::RoleARNHasBeenSet ( ) const
inline

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.

Definition at line 378 of file LifecycleHookSpecification.h.

◆ SetDefaultResult() [1/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetDefaultResult ( Aws::String &&  value)
inline

Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON. The default value is ABANDON.

Definition at line 274 of file LifecycleHookSpecification.h.

◆ SetDefaultResult() [2/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetDefaultResult ( const Aws::String value)
inline

Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON. The default value is ABANDON.

Definition at line 266 of file LifecycleHookSpecification.h.

◆ SetDefaultResult() [3/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetDefaultResult ( const char *  value)
inline

Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON. The default value is ABANDON.

Definition at line 282 of file LifecycleHookSpecification.h.

◆ SetHeartbeatTimeout()

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetHeartbeatTimeout ( int  value)
inline

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. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat.

Definition at line 232 of file LifecycleHookSpecification.h.

◆ SetLifecycleHookName() [1/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleHookName ( Aws::String &&  value)
inline

The name of the lifecycle hook.

Definition at line 78 of file LifecycleHookSpecification.h.

◆ SetLifecycleHookName() [2/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleHookName ( const Aws::String value)
inline

The name of the lifecycle hook.

Definition at line 73 of file LifecycleHookSpecification.h.

◆ SetLifecycleHookName() [3/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleHookName ( const char *  value)
inline

The name of the lifecycle hook.

Definition at line 83 of file LifecycleHookSpecification.h.

◆ SetLifecycleTransition() [1/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleTransition ( Aws::String &&  value)
inline

The state of the EC2 instance to which you want to attach the lifecycle hook. The valid values are:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

Definition at line 127 of file LifecycleHookSpecification.h.

◆ SetLifecycleTransition() [2/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleTransition ( const Aws::String value)
inline

The state of the EC2 instance to which you want to attach the lifecycle hook. The valid values are:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

Definition at line 120 of file LifecycleHookSpecification.h.

◆ SetLifecycleTransition() [3/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleTransition ( const char *  value)
inline

The state of the EC2 instance to which you want to attach the lifecycle hook. The valid values are:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

Definition at line 134 of file LifecycleHookSpecification.h.

◆ SetNotificationMetadata() [1/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationMetadata ( Aws::String &&  value)
inline

Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.

Definition at line 180 of file LifecycleHookSpecification.h.

◆ SetNotificationMetadata() [2/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationMetadata ( const Aws::String value)
inline

Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.

Definition at line 174 of file LifecycleHookSpecification.h.

◆ SetNotificationMetadata() [3/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationMetadata ( const char *  value)
inline

Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.

Definition at line 186 of file LifecycleHookSpecification.h.

◆ SetNotificationTargetARN() [1/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationTargetARN ( Aws::String &&  value)
inline

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.

Definition at line 335 of file LifecycleHookSpecification.h.

◆ SetNotificationTargetARN() [2/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationTargetARN ( const Aws::String value)
inline

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.

Definition at line 328 of file LifecycleHookSpecification.h.

◆ SetNotificationTargetARN() [3/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationTargetARN ( const char *  value)
inline

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.

Definition at line 342 of file LifecycleHookSpecification.h.

◆ SetRoleARN() [1/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetRoleARN ( Aws::String &&  value)
inline

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.

Definition at line 392 of file LifecycleHookSpecification.h.

◆ SetRoleARN() [2/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetRoleARN ( const Aws::String value)
inline

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.

Definition at line 385 of file LifecycleHookSpecification.h.

◆ SetRoleARN() [3/3]

void Aws::AutoScaling::Model::LifecycleHookSpecification::SetRoleARN ( const char *  value)
inline

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.

Definition at line 399 of file LifecycleHookSpecification.h.

◆ WithDefaultResult() [1/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithDefaultResult ( Aws::String &&  value)
inline

Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON. The default value is ABANDON.

Definition at line 298 of file LifecycleHookSpecification.h.

◆ WithDefaultResult() [2/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithDefaultResult ( const Aws::String value)
inline

Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON. The default value is ABANDON.

Definition at line 290 of file LifecycleHookSpecification.h.

◆ WithDefaultResult() [3/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithDefaultResult ( const char *  value)
inline

Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON. The default value is ABANDON.

Definition at line 306 of file LifecycleHookSpecification.h.

◆ WithHeartbeatTimeout()

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithHeartbeatTimeout ( int  value)
inline

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. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat.

Definition at line 241 of file LifecycleHookSpecification.h.

◆ WithLifecycleHookName() [1/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleHookName ( Aws::String &&  value)
inline

The name of the lifecycle hook.

Definition at line 93 of file LifecycleHookSpecification.h.

◆ WithLifecycleHookName() [2/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleHookName ( const Aws::String value)
inline

The name of the lifecycle hook.

Definition at line 88 of file LifecycleHookSpecification.h.

◆ WithLifecycleHookName() [3/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleHookName ( const char *  value)
inline

The name of the lifecycle hook.

Definition at line 98 of file LifecycleHookSpecification.h.

◆ WithLifecycleTransition() [1/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleTransition ( Aws::String &&  value)
inline

The state of the EC2 instance to which you want to attach the lifecycle hook. The valid values are:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

Definition at line 148 of file LifecycleHookSpecification.h.

◆ WithLifecycleTransition() [2/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleTransition ( const Aws::String value)
inline

The state of the EC2 instance to which you want to attach the lifecycle hook. The valid values are:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

Definition at line 141 of file LifecycleHookSpecification.h.

◆ WithLifecycleTransition() [3/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleTransition ( const char *  value)
inline

The state of the EC2 instance to which you want to attach the lifecycle hook. The valid values are:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

Definition at line 155 of file LifecycleHookSpecification.h.

◆ WithNotificationMetadata() [1/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationMetadata ( Aws::String &&  value)
inline

Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.

Definition at line 198 of file LifecycleHookSpecification.h.

◆ WithNotificationMetadata() [2/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationMetadata ( const Aws::String value)
inline

Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.

Definition at line 192 of file LifecycleHookSpecification.h.

◆ WithNotificationMetadata() [3/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationMetadata ( const char *  value)
inline

Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.

Definition at line 204 of file LifecycleHookSpecification.h.

◆ WithNotificationTargetARN() [1/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationTargetARN ( Aws::String &&  value)
inline

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.

Definition at line 356 of file LifecycleHookSpecification.h.

◆ WithNotificationTargetARN() [2/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationTargetARN ( const Aws::String value)
inline

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.

Definition at line 349 of file LifecycleHookSpecification.h.

◆ WithNotificationTargetARN() [3/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationTargetARN ( const char *  value)
inline

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.

Definition at line 363 of file LifecycleHookSpecification.h.

◆ WithRoleARN() [1/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithRoleARN ( Aws::String &&  value)
inline

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.

Definition at line 413 of file LifecycleHookSpecification.h.

◆ WithRoleARN() [2/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithRoleARN ( const Aws::String value)
inline

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.

Definition at line 406 of file LifecycleHookSpecification.h.

◆ WithRoleARN() [3/3]

LifecycleHookSpecification& Aws::AutoScaling::Model::LifecycleHookSpecification::WithRoleARN ( const char *  value)
inline

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.

Definition at line 420 of file LifecycleHookSpecification.h.


The documentation for this class was generated from the following file: