public static final class ModifyScalingGroupRequest.LaunchTemplateOverrides.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyScalingGroupRequest.LaunchTemplateOverrides |
build() |
ModifyScalingGroupRequest.LaunchTemplateOverrides.Builder |
instanceType(String instanceType)
The instance type.
|
ModifyScalingGroupRequest.LaunchTemplateOverrides.Builder |
spotPriceLimit(Float spotPriceLimit)
SpotPriceLimit.
|
ModifyScalingGroupRequest.LaunchTemplateOverrides.Builder |
weightedCapacity(Integer weightedCapacity)
The weight of the instance type.
|
public ModifyScalingGroupRequest.LaunchTemplateOverrides.Builder instanceType(String instanceType)
If you want Auto Scaling to scale instances in the scaling group based on the instance type weight, you must specify both the InstanceType and WeightedCapacity parameters. > This parameter takes effect only after you specify the LaunchTemplateId parameter. You can use the InstanceType parameter to specify only instance types that are available for purchase.
public ModifyScalingGroupRequest.LaunchTemplateOverrides.Builder spotPriceLimit(Float spotPriceLimit)
public ModifyScalingGroupRequest.LaunchTemplateOverrides.Builder weightedCapacity(Integer weightedCapacity)
A higher weight specifies that a smaller number of instances of the specified instance type are required to meet the expected capacity. Performance metrics, such as the number of vCPUs and the memory size of each instance type, may vary. You can specify different weights for different instance types based on your business requirements. Example: * Current capacity: 0 * Expected capacity: 6 * Capacity of ecs.c5.xlarge: 4 To meet the expected capacity requirement, Auto Scaling must create and add two ecs.c5.xlarge instances. > The capacity of the scaling group cannot exceed the sum of the maximum number of instances that is specified by the MaxSize parameter and the maximum weight of the instance type. Valid values of the WeightedCapacity parameter: 1 to 500.
public ModifyScalingGroupRequest.LaunchTemplateOverrides build()
Copyright © 2024. All rights reserved.