public static final class ModifyLifecycleHookRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyLifecycleHookRequest |
build() |
ModifyLifecycleHookRequest.Builder |
defaultResult(String defaultResult)
The action that you want Auto Scaling to perform after the lifecycle hook ends.
|
ModifyLifecycleHookRequest.Builder |
heartbeatTimeout(Integer heartbeatTimeout)
The period of time before the lifecycle hook ends.
|
ModifyLifecycleHookRequest.Builder |
lifecycleHookId(String lifecycleHookId)
The ID of the lifecycle hook that you want to modify.
|
ModifyLifecycleHookRequest.Builder |
lifecycleHookName(String lifecycleHookName)
The name of the lifecycle hook that you want to modify.
|
ModifyLifecycleHookRequest.Builder |
lifecycleHookStatus(String lifecycleHookStatus)
The status into which you want to put the lifecycle hook.
|
ModifyLifecycleHookRequest.Builder |
lifecycleTransition(String lifecycleTransition)
The type of scaling activity to which the lifecycle hook applies.
|
ModifyLifecycleHookRequest.Builder |
notificationArn(String notificationArn)
The Alibaba Cloud Resource Name (ARN) of the notification method.
|
ModifyLifecycleHookRequest.Builder |
notificationMetadata(String notificationMetadata)
The fixed string that is included in a notification.
|
ModifyLifecycleHookRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
ModifyLifecycleHookRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ModifyLifecycleHookRequest.Builder |
regionId(String regionId)
The region ID of the scaling group.
|
ModifyLifecycleHookRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ModifyLifecycleHookRequest.Builder |
scalingGroupId(String scalingGroupId)
The ID of the scaling group to which the lifecycle hook belongs.
|
public ModifyLifecycleHookRequest.Builder defaultResult(String defaultResult)
* CONTINUE: Auto Scaling continues to respond to scaling requests. * ABANDON: Auto Scaling releases Elastic Compute Service (ECS) instances that are created during scale-out activities, or removes ECS instances from the scaling group during scale-in activities. If multiple lifecycle hooks in a scaling group are triggered during scale-in activities and you set the DefaultResult parameter to ABANDON for the lifecycle hook that you want to modify, Auto Scaling immediately performs the action after the lifecycle hook that you want to modify ends. As a result, other lifecycle hooks end ahead of schedule. In other cases, Auto Scaling performs the action only after all lifecycle hooks end.
public ModifyLifecycleHookRequest.Builder heartbeatTimeout(Integer heartbeatTimeout)
You can call the RecordLifecycleActionHeartbeat operation to prolong the length of a lifecycle hook. You can also call the CompleteLifecycleAction operation to end a lifecycle hook ahead of schedule.
public ModifyLifecycleHookRequest.Builder lifecycleHookId(String lifecycleHookId)
public ModifyLifecycleHookRequest.Builder lifecycleHookName(String lifecycleHookName)
public ModifyLifecycleHookRequest.Builder lifecycleHookStatus(String lifecycleHookStatus)
* Active * InActive If you do not specify this parameter, the status of the lifecycle hook remains unchanged after you call this operation. > By default, a lifecycle hook is in the Active state after you create it.
public ModifyLifecycleHookRequest.Builder lifecycleTransition(String lifecycleTransition)
* SCALE_OUT * SCALE_IN
public ModifyLifecycleHookRequest.Builder notificationArn(String notificationArn)
* If the notification method is a Message Service (MNS) queue, specify the value in the acs:mns:{region-id}:{account-id}:queue/{queuename} format. * If the notification method is an MNS topic, specify the value in the acs:mns:{region-id}:{account-id}:topic/{topicname} format. * If the notification method is an Operation Orchestration Service (OOS) template, specify the value in the acs:oos:{region-id}:{account-id}:template/{templatename} format. The variables in the preceding parameter formats have the following meanings: * region-id: the region ID of the scaling group. * account-id: the ID of the Alibaba Cloud account. * queuename: the name of the MNS queue. * topicname: the name of the MNS topic. * templatename: the name of the OOS template.
public ModifyLifecycleHookRequest.Builder notificationMetadata(String notificationMetadata)
Auto Scaling sends the value specified for the NotificationMetadata parameter together with the notification. This helps you categorize your notifications. The NotificationMetadata parameter takes effect only after you specify the NotificationArn parameter.
public ModifyLifecycleHookRequest.Builder ownerAccount(String ownerAccount)
public ModifyLifecycleHookRequest.Builder ownerId(Long ownerId)
public ModifyLifecycleHookRequest.Builder regionId(String regionId)
public ModifyLifecycleHookRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyLifecycleHookRequest.Builder scalingGroupId(String scalingGroupId)
public ModifyLifecycleHookRequest build()
Copyright © 2024. All rights reserved.