public static final class CreateScalingGroupRequest.LifecycleHooks.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
CreateScalingGroupRequest.LifecycleHooks |
build() |
CreateScalingGroupRequest.LifecycleHooks.Builder |
defaultResult(String defaultResult)
The action that Auto Scaling performs when the lifecycle hook times out.
|
CreateScalingGroupRequest.LifecycleHooks.Builder |
heartbeatTimeout(Integer heartbeatTimeout)
The period of time before the lifecycle hook times out.
|
CreateScalingGroupRequest.LifecycleHooks.Builder |
lifecycleHookName(String lifecycleHookName)
The name of the lifecycle hook.
|
CreateScalingGroupRequest.LifecycleHooks.Builder |
lifecycleTransition(String lifecycleTransition)
The type of the scaling activity to which you want to apply the lifecycle hook.
|
CreateScalingGroupRequest.LifecycleHooks.Builder |
notificationArn(String notificationArn)
The identifier of the notification recipient party when the lifecycle hook takes effect.
|
CreateScalingGroupRequest.LifecycleHooks.Builder |
notificationMetadata(String notificationMetadata)
The fixed string that you want to include in a notification.
|
public CreateScalingGroupRequest.LifecycleHooks.Builder defaultResult(String defaultResult)
* CONTINUE: Auto Scaling continues to respond to a scale-in or scale-out request. * ABANDON: Auto Scaling releases ECS instances that are created during scale-out events, or removes ECS instances from the scaling group during scale-in events. If multiple lifecycle hooks in the scaling group are triggered during scale-in events, and you set DefaultResult to ABANDON for one of the lifecycle hooks, Auto Scaling immediately performs the action after the lifecycle hook whose DefaultResult is set to ABANDON times out. In this case, other lifecycle hooks time out ahead of schedule. In other cases, Auto Scaling performs the action only after all lifecycle hooks time out. The action that Auto Scaling performs is determined by the value of DefaultResult that you specify for the lifecycle hook that most recently times out. Default value: CONTINUE.
public CreateScalingGroupRequest.LifecycleHooks.Builder heartbeatTimeout(Integer heartbeatTimeout)
After you create a lifecycle hook, you can call the RecordLifecycleActionHeartbeat operation to extend the timeout period of the lifecycle hook. You can also call the CompleteLifecycleAction operation to end the timeout period of the lifecycle hook ahead of scheduled. Default value: 600.
public CreateScalingGroupRequest.LifecycleHooks.Builder lifecycleHookName(String lifecycleHookName)
public CreateScalingGroupRequest.LifecycleHooks.Builder lifecycleTransition(String lifecycleTransition)
* SCALE_OUT * SCALE_IN > If you specify lifecycle hooks for the scaling group, you must specify LifecycleTransition. Other parameters are optional.
public CreateScalingGroupRequest.LifecycleHooks.Builder notificationArn(String notificationArn)
* region: the region ID of the scaling group * account-id: the ID of your Alibaba Cloud account. Examples: * MNS queue: acs:ess:{region}:{account-id}:queue/{queuename} * MNS topic: acs:ess:{region}:{account-id}:topic/{topicname}
public CreateScalingGroupRequest.LifecycleHooks.Builder notificationMetadata(String notificationMetadata)
public CreateScalingGroupRequest.LifecycleHooks build()
Copyright © 2024. All rights reserved.