public static final class EnableScalingGroupRequest.LaunchTemplateOverrides.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
EnableScalingGroupRequest.LaunchTemplateOverrides |
build() |
EnableScalingGroupRequest.LaunchTemplateOverrides.Builder |
instanceType(String instanceType)
The instance type.
|
EnableScalingGroupRequest.LaunchTemplateOverrides.Builder |
weightedCapacity(Integer weightedCapacity)
The weight of the instance type.
|
public EnableScalingGroupRequest.LaunchTemplateOverrides.Builder instanceType(String instanceType)
The instance type specified by using this parameter overwrites the instance type of the launch template. > This parameter takes effect only if you specify LaunchTemplateId. You can use this parameter to specify any instance types that are available for purchase.
public EnableScalingGroupRequest.LaunchTemplateOverrides.Builder weightedCapacity(Integer weightedCapacity)
The weight specifies the capacity of an instance of the specified instance type in the scaling group. 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 reach the expected capacity, Auto Scaling must scale out two instances of ecs.c5.xlarge. > The total capacity of the scaling group is constrained and cannot surpass the combined total of the maximum group size defined by MaxSize and the highest weight assigned to any instance type. Valid values of WeightedCapacity: 1 to 500.
public EnableScalingGroupRequest.LaunchTemplateOverrides build()
Copyright © 2024. All rights reserved.