@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutLifecycleHookRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutLifecycleHookRequest() |
Modifier and Type | Method and Description |
---|---|
PutLifecycleHookRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
String |
getDefaultResult()
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure
occurs.
|
Integer |
getHeartbeatTimeout()
The maximum time, in seconds, that can elapse before the lifecycle hook times out.
|
String |
getLifecycleHookName()
The name of the lifecycle hook.
|
String |
getLifecycleTransition()
The lifecycle transition.
|
String |
getNotificationMetadata()
Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the
notification target.
|
String |
getNotificationTargetARN()
The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an
instance is in a wait state for the lifecycle hook.
|
String |
getRoleARN()
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
|
int |
hashCode() |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setDefaultResult(String defaultResult)
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure
occurs.
|
void |
setHeartbeatTimeout(Integer heartbeatTimeout)
The maximum time, in seconds, that can elapse before the lifecycle hook times out.
|
void |
setLifecycleHookName(String lifecycleHookName)
The name of the lifecycle hook.
|
void |
setLifecycleTransition(String lifecycleTransition)
The lifecycle transition.
|
void |
setNotificationMetadata(String notificationMetadata)
Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the
notification target.
|
void |
setNotificationTargetARN(String notificationTargetARN)
The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an
instance is in a wait state for the lifecycle hook.
|
void |
setRoleARN(String roleARN)
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
|
String |
toString()
Returns a string representation of this object.
|
PutLifecycleHookRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
PutLifecycleHookRequest |
withDefaultResult(String defaultResult)
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure
occurs.
|
PutLifecycleHookRequest |
withHeartbeatTimeout(Integer heartbeatTimeout)
The maximum time, in seconds, that can elapse before the lifecycle hook times out.
|
PutLifecycleHookRequest |
withLifecycleHookName(String lifecycleHookName)
The name of the lifecycle hook.
|
PutLifecycleHookRequest |
withLifecycleTransition(String lifecycleTransition)
The lifecycle transition.
|
PutLifecycleHookRequest |
withNotificationMetadata(String notificationMetadata)
Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the
notification target.
|
PutLifecycleHookRequest |
withNotificationTargetARN(String notificationTargetARN)
The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an
instance is in a wait state for the lifecycle hook.
|
PutLifecycleHookRequest |
withRoleARN(String roleARN)
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setLifecycleHookName(String lifecycleHookName)
The name of the lifecycle hook.
lifecycleHookName
- The name of the lifecycle hook.public String getLifecycleHookName()
The name of the lifecycle hook.
public PutLifecycleHookRequest withLifecycleHookName(String lifecycleHookName)
The name of the lifecycle hook.
lifecycleHookName
- The name of the lifecycle hook.public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public String getAutoScalingGroupName()
The name of the Auto Scaling group.
public PutLifecycleHookRequest withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public void setLifecycleTransition(String lifecycleTransition)
The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.
To create a lifecycle hook for scale-out events, specify autoscaling:EC2_INSTANCE_LAUNCHING
.
To create a lifecycle hook for scale-in events, specify autoscaling:EC2_INSTANCE_TERMINATING
.
Required for new lifecycle hooks, but optional when updating existing hooks.
lifecycleTransition
- The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.
To create a lifecycle hook for scale-out events, specify autoscaling:EC2_INSTANCE_LAUNCHING
.
To create a lifecycle hook for scale-in events, specify autoscaling:EC2_INSTANCE_TERMINATING
.
Required for new lifecycle hooks, but optional when updating existing hooks.
public String getLifecycleTransition()
The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.
To create a lifecycle hook for scale-out events, specify autoscaling:EC2_INSTANCE_LAUNCHING
.
To create a lifecycle hook for scale-in events, specify autoscaling:EC2_INSTANCE_TERMINATING
.
Required for new lifecycle hooks, but optional when updating existing hooks.
To create a lifecycle hook for scale-out events, specify autoscaling:EC2_INSTANCE_LAUNCHING
.
To create a lifecycle hook for scale-in events, specify autoscaling:EC2_INSTANCE_TERMINATING
.
Required for new lifecycle hooks, but optional when updating existing hooks.
public PutLifecycleHookRequest withLifecycleTransition(String lifecycleTransition)
The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.
To create a lifecycle hook for scale-out events, specify autoscaling:EC2_INSTANCE_LAUNCHING
.
To create a lifecycle hook for scale-in events, specify autoscaling:EC2_INSTANCE_TERMINATING
.
Required for new lifecycle hooks, but optional when updating existing hooks.
lifecycleTransition
- The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.
To create a lifecycle hook for scale-out events, specify autoscaling:EC2_INSTANCE_LAUNCHING
.
To create a lifecycle hook for scale-in events, specify autoscaling:EC2_INSTANCE_TERMINATING
.
Required for new lifecycle hooks, but optional when updating existing hooks.
public void setRoleARN(String roleARN)
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue. Required for new lifecycle hooks, but optional when updating existing hooks.
roleARN
- The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification
target.
Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue. Required for new lifecycle hooks, but optional when updating existing hooks.
public String getRoleARN()
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue. Required for new lifecycle hooks, but optional when updating existing hooks.
Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue. Required for new lifecycle hooks, but optional when updating existing hooks.
public PutLifecycleHookRequest withRoleARN(String roleARN)
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue. Required for new lifecycle hooks, but optional when updating existing hooks.
roleARN
- The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification
target.
Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue. Required for new lifecycle hooks, but optional when updating existing hooks.
public void setNotificationTargetARN(String notificationTargetARN)
The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in a wait state for the lifecycle hook. You can specify either an Amazon SNS topic or an Amazon SQS queue.
If you specify an empty string, this overrides the current ARN.
This operation uses the JSON format when sending notifications to an Amazon SQS queue, and an email key-value pair format when sending notifications to an Amazon SNS topic.
When you specify a notification target, Amazon EC2 Auto Scaling sends it a test message. Test messages contain
the following additional key-value pair: "Event": "autoscaling:TEST_NOTIFICATION"
.
notificationTargetARN
- The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you
when an instance is in a wait state for the lifecycle hook. You can specify either an Amazon SNS topic or
an Amazon SQS queue.
If you specify an empty string, this overrides the current ARN.
This operation uses the JSON format when sending notifications to an Amazon SQS queue, and an email key-value pair format when sending notifications to an Amazon SNS topic.
When you specify a notification target, Amazon EC2 Auto Scaling sends it a test message. Test messages
contain the following additional key-value pair: "Event": "autoscaling:TEST_NOTIFICATION"
.
public String getNotificationTargetARN()
The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in a wait state for the lifecycle hook. You can specify either an Amazon SNS topic or an Amazon SQS queue.
If you specify an empty string, this overrides the current ARN.
This operation uses the JSON format when sending notifications to an Amazon SQS queue, and an email key-value pair format when sending notifications to an Amazon SNS topic.
When you specify a notification target, Amazon EC2 Auto Scaling sends it a test message. Test messages contain
the following additional key-value pair: "Event": "autoscaling:TEST_NOTIFICATION"
.
If you specify an empty string, this overrides the current ARN.
This operation uses the JSON format when sending notifications to an Amazon SQS queue, and an email key-value pair format when sending notifications to an Amazon SNS topic.
When you specify a notification target, Amazon EC2 Auto Scaling sends it a test message. Test messages
contain the following additional key-value pair: "Event": "autoscaling:TEST_NOTIFICATION"
.
public PutLifecycleHookRequest withNotificationTargetARN(String notificationTargetARN)
The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in a wait state for the lifecycle hook. You can specify either an Amazon SNS topic or an Amazon SQS queue.
If you specify an empty string, this overrides the current ARN.
This operation uses the JSON format when sending notifications to an Amazon SQS queue, and an email key-value pair format when sending notifications to an Amazon SNS topic.
When you specify a notification target, Amazon EC2 Auto Scaling sends it a test message. Test messages contain
the following additional key-value pair: "Event": "autoscaling:TEST_NOTIFICATION"
.
notificationTargetARN
- The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you
when an instance is in a wait state for the lifecycle hook. You can specify either an Amazon SNS topic or
an Amazon SQS queue.
If you specify an empty string, this overrides the current ARN.
This operation uses the JSON format when sending notifications to an Amazon SQS queue, and an email key-value pair format when sending notifications to an Amazon SNS topic.
When you specify a notification target, Amazon EC2 Auto Scaling sends it a test message. Test messages
contain the following additional key-value pair: "Event": "autoscaling:TEST_NOTIFICATION"
.
public void setNotificationMetadata(String notificationMetadata)
Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.
notificationMetadata
- Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the
notification target.public String getNotificationMetadata()
Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.
public PutLifecycleHookRequest withNotificationMetadata(String notificationMetadata)
Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.
notificationMetadata
- Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the
notification target.public void setHeartbeatTimeout(Integer heartbeatTimeout)
The maximum time, in seconds, that can elapse before the lifecycle hook times out. The range is from
30
to 7200
seconds. The default value is 3600
seconds (1 hour).
heartbeatTimeout
- The maximum time, in seconds, that can elapse before the lifecycle hook times out. The range is from
30
to 7200
seconds. The default value is 3600
seconds (1 hour).public Integer getHeartbeatTimeout()
The maximum time, in seconds, that can elapse before the lifecycle hook times out. The range is from
30
to 7200
seconds. The default value is 3600
seconds (1 hour).
30
to 7200
seconds. The default value is 3600
seconds (1 hour).public PutLifecycleHookRequest withHeartbeatTimeout(Integer heartbeatTimeout)
The maximum time, in seconds, that can elapse before the lifecycle hook times out. The range is from
30
to 7200
seconds. The default value is 3600
seconds (1 hour).
heartbeatTimeout
- The maximum time, in seconds, that can elapse before the lifecycle hook times out. The range is from
30
to 7200
seconds. The default value is 3600
seconds (1 hour).public void setDefaultResult(String defaultResult)
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure
occurs. The default value is ABANDON
.
Valid values: CONTINUE
| ABANDON
defaultResult
- The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected
failure occurs. The default value is ABANDON
.
Valid values: CONTINUE
| ABANDON
public String getDefaultResult()
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure
occurs. The default value is ABANDON
.
Valid values: CONTINUE
| ABANDON
ABANDON
.
Valid values: CONTINUE
| ABANDON
public PutLifecycleHookRequest withDefaultResult(String defaultResult)
The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure
occurs. The default value is ABANDON
.
Valid values: CONTINUE
| ABANDON
defaultResult
- The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected
failure occurs. The default value is ABANDON
.
Valid values: CONTINUE
| ABANDON
public String toString()
toString
in class Object
Object.toString()
public PutLifecycleHookRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()