public class CreateLifecycleHookRequest extends AbstractModel
Constructor and Description |
---|
CreateLifecycleHookRequest() |
CreateLifecycleHookRequest(CreateLifecycleHookRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getAutoScalingGroupId()
Get Auto scaling group ID
|
String |
getDefaultResult()
Get Defined actions when lifecycle hook times out.
|
Long |
getHeartbeatTimeout()
Get The maximum length of time (in seconds) that can elapse before the lifecycle hook times out.
|
LifecycleCommand |
getLifecycleCommand()
Get Remote command execution object.
|
String |
getLifecycleHookName()
Get Lifecycle hook name, which can contain Chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.) with a maximum length of 128 bytes.
|
String |
getLifecycleTransition()
Get Scenario for the lifecycle hook.
|
String |
getLifecycleTransitionType()
Get The scenario where the lifecycle hook is applied.
|
String |
getNotificationMetadata()
Get Additional information of a notification that Auto Scaling sends to targets.
|
NotificationTarget |
getNotificationTarget()
Get Notification target.
|
void |
setAutoScalingGroupId(String AutoScalingGroupId)
Set Auto scaling group ID
|
void |
setDefaultResult(String DefaultResult)
Set Defined actions when lifecycle hook times out.
|
void |
setHeartbeatTimeout(Long HeartbeatTimeout)
Set The maximum length of time (in seconds) that can elapse before the lifecycle hook times out.
|
void |
setLifecycleCommand(LifecycleCommand LifecycleCommand)
Set Remote command execution object.
|
void |
setLifecycleHookName(String LifecycleHookName)
Set Lifecycle hook name, which can contain Chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.) with a maximum length of 128 bytes.
|
void |
setLifecycleTransition(String LifecycleTransition)
Set Scenario for the lifecycle hook.
|
void |
setLifecycleTransitionType(String LifecycleTransitionType)
Set The scenario where the lifecycle hook is applied.
|
void |
setNotificationMetadata(String NotificationMetadata)
Set Additional information of a notification that Auto Scaling sends to targets.
|
void |
setNotificationTarget(NotificationTarget NotificationTarget)
Set Notification target.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateLifecycleHookRequest()
public CreateLifecycleHookRequest(CreateLifecycleHookRequest source)
public String getAutoScalingGroupId()
public void setAutoScalingGroupId(String AutoScalingGroupId)
AutoScalingGroupId
- Auto scaling group IDpublic String getLifecycleHookName()
public void setLifecycleHookName(String LifecycleHookName)
LifecycleHookName
- Lifecycle hook name, which can contain Chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.) with a maximum length of 128 bytes.public String getLifecycleTransition()
public void setLifecycleTransition(String LifecycleTransition)
LifecycleTransition
- Scenario for the lifecycle hook. Valid values: "INSTANCE_LAUNCHING" and "INSTANCE_TERMINATING"public String getDefaultResult()
public void setDefaultResult(String DefaultResult)
DefaultResult
- Defined actions when lifecycle hook times out. Valid values: "CONTINUE" and "ABANDON". Default value: "CONTINUE"public Long getHeartbeatTimeout()
public void setHeartbeatTimeout(Long HeartbeatTimeout)
HeartbeatTimeout
- The maximum length of time (in seconds) that can elapse before the lifecycle hook times out. Value range: 30-7200. Default value: 300public String getNotificationMetadata()
public void setNotificationMetadata(String NotificationMetadata)
NotificationMetadata
- Additional information of a notification that Auto Scaling sends to targets. This parameter is set when you configure a notification (default value: ""). Up to 1024 characters are allowed.public NotificationTarget getNotificationTarget()
public void setNotificationTarget(NotificationTarget NotificationTarget)
NotificationTarget
- Notification target. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time.public String getLifecycleTransitionType()
public void setLifecycleTransitionType(String LifecycleTransitionType)
LifecycleTransitionType
- The scenario where the lifecycle hook is applied. `EXTENSION`: the lifecycle hook will be triggered when AttachInstances, DetachInstances or RemoveInstaces is called. `NORMAL`: the lifecycle hook is not triggered by the above APIs.public LifecycleCommand getLifecycleCommand()
public void setLifecycleCommand(LifecycleCommand LifecycleCommand)
LifecycleCommand
- Remote command execution object. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time.Copyright © 2023. All rights reserved.