public static final class CreateScalingGroupRequest.LaunchTemplateOverrides.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
CreateScalingGroupRequest.LaunchTemplateOverrides |
build() |
CreateScalingGroupRequest.LaunchTemplateOverrides.Builder |
instanceType(String instanceType)
The instance type that you want to use to override the instance type that is specified in the launch template.
|
CreateScalingGroupRequest.LaunchTemplateOverrides.Builder |
spotPriceLimit(Float spotPriceLimit)
The maximum bid price of the instance type that is specified by the `InstanceType` parameter.
|
CreateScalingGroupRequest.LaunchTemplateOverrides.Builder |
weightedCapacity(Integer weightedCapacity)
The weight of the instance type.
|
public CreateScalingGroupRequest.LaunchTemplateOverrides.Builder instanceType(String instanceType)
If you want to scale instances based on the weighted capacities of the instances, you must specify both the InstanceType and WeightedCapacity parameters. > This parameter is available only if you specify the LaunchTemplateId parameter. You can use the InstanceType parameter to specify only instance types that are available for purchase.
public CreateScalingGroupRequest.LaunchTemplateOverrides.Builder spotPriceLimit(Float spotPriceLimit)
> This parameter is available only if you specify the `LaunchTemplateId` parameter.
public CreateScalingGroupRequest.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 requirement. 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 types. Valid values of the WeightedCapacity parameter: 1 to 500.
public CreateScalingGroupRequest.LaunchTemplateOverrides build()
Copyright © 2024. All rights reserved.