伸缩组用于管理一组云资源实例。通过伸缩组可以定义云资源池中的实例数/容量、冷却时间、负载均衡等信息。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
autoScalingScalingGroupDemo:
type: bytepluscc:autoscaling:ScalingGroup
name: AutoScalingScalingGroupDemo
properties:
healthCheckType: ECS
scalingMode: release
instancesDistribution:
compensate_with_on_demand: true
on_demand_base_capacity: 0
on_demand_percentage_above_base_capacity: 50
spot_instance_remedy: true
tags:
- key: env
value: test
launchTemplateOverrides:
- instance_type: ecs.g4il.large
price_limit: 0
launchTemplateId: lt-ye9dsl3ucffig992xxxxfncd
projectName: default
serverGroupAttributes:
- port: 8080
server_group_id: rsp-13g2ktevofhfk3n6nxxxu4mqjq0o
type: CLB
weight: 50
- port: 8080
server_group_id: rsp-bde4j3yuu8008dv4xxxx0nkn203g
type: ALB
weight: 50
launchTemplateVersion: Default
subnetIds:
- subnet-3nrd6qaq3log0931ecxxxh3re2r
defaultCooldown: 300
desireInstanceNumber: -1
instanceTerminatePolicy: OldestScalingConfigurationWithOldestInstance
maxInstanceNumber: 6
minInstanceNumber: 1
multiAzPolicy: PRIORITY
scalingGroupName: AutoScalingScalingGroupDemo
Create ScalingGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScalingGroup(name: string, args: ScalingGroupArgs, opts?: CustomResourceOptions);@overload
def ScalingGroup(resource_name: str,
args: ScalingGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScalingGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
max_instance_number: Optional[int] = None,
subnet_ids: Optional[Sequence[str]] = None,
scaling_group_name: Optional[str] = None,
min_instance_number: Optional[int] = None,
instances_distribution: Optional[ScalingGroupInstancesDistributionArgs] = None,
health_check_type: Optional[str] = None,
is_enable_scaling_group: Optional[bool] = None,
launch_template_id: Optional[str] = None,
launch_template_overrides: Optional[Sequence[ScalingGroupLaunchTemplateOverrideArgs]] = None,
launch_template_version: Optional[str] = None,
instance_terminate_policy: Optional[str] = None,
active_scaling_configuration_id: Optional[str] = None,
multi_az_policy: Optional[str] = None,
project_name: Optional[str] = None,
desire_instance_number: Optional[int] = None,
scaling_mode: Optional[str] = None,
server_group_attributes: Optional[Sequence[ScalingGroupServerGroupAttributeArgs]] = None,
default_cooldown: Optional[int] = None,
suspended_processes: Optional[Sequence[str]] = None,
tags: Optional[Sequence[ScalingGroupTagArgs]] = None)func NewScalingGroup(ctx *Context, name string, args ScalingGroupArgs, opts ...ResourceOption) (*ScalingGroup, error)public ScalingGroup(string name, ScalingGroupArgs args, CustomResourceOptions? opts = null)
public ScalingGroup(String name, ScalingGroupArgs args)
public ScalingGroup(String name, ScalingGroupArgs args, CustomResourceOptions options)
type: bytepluscc:autoscaling:ScalingGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ScalingGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ScalingGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ScalingGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScalingGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScalingGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var scalingGroupResource = new Bytepluscc.Autoscaling.ScalingGroup("scalingGroupResource", new()
{
MaxInstanceNumber = 0,
SubnetIds = new[]
{
"string",
},
ScalingGroupName = "string",
MinInstanceNumber = 0,
InstancesDistribution = new Bytepluscc.Autoscaling.Inputs.ScalingGroupInstancesDistributionArgs
{
CompensateWithOnDemand = false,
OnDemandBaseCapacity = 0,
OnDemandPercentageAboveBaseCapacity = 0,
SpotInstanceRemedy = false,
},
HealthCheckType = "string",
IsEnableScalingGroup = false,
LaunchTemplateId = "string",
LaunchTemplateOverrides = new[]
{
new Bytepluscc.Autoscaling.Inputs.ScalingGroupLaunchTemplateOverrideArgs
{
InstanceType = "string",
PriceLimit = 0,
},
},
LaunchTemplateVersion = "string",
InstanceTerminatePolicy = "string",
ActiveScalingConfigurationId = "string",
MultiAzPolicy = "string",
ProjectName = "string",
DesireInstanceNumber = 0,
ScalingMode = "string",
ServerGroupAttributes = new[]
{
new Bytepluscc.Autoscaling.Inputs.ScalingGroupServerGroupAttributeArgs
{
Port = 0,
ServerGroupId = "string",
Type = "string",
Weight = 0,
},
},
DefaultCooldown = 0,
SuspendedProcesses = new[]
{
"string",
},
Tags = new[]
{
new Bytepluscc.Autoscaling.Inputs.ScalingGroupTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := autoscaling.NewScalingGroup(ctx, "scalingGroupResource", &autoscaling.ScalingGroupArgs{
MaxInstanceNumber: pulumi.Int(0),
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
ScalingGroupName: pulumi.String("string"),
MinInstanceNumber: pulumi.Int(0),
InstancesDistribution: &autoscaling.ScalingGroupInstancesDistributionArgs{
CompensateWithOnDemand: pulumi.Bool(false),
OnDemandBaseCapacity: pulumi.Int(0),
OnDemandPercentageAboveBaseCapacity: pulumi.Int(0),
SpotInstanceRemedy: pulumi.Bool(false),
},
HealthCheckType: pulumi.String("string"),
IsEnableScalingGroup: pulumi.Bool(false),
LaunchTemplateId: pulumi.String("string"),
LaunchTemplateOverrides: autoscaling.ScalingGroupLaunchTemplateOverrideArray{
&autoscaling.ScalingGroupLaunchTemplateOverrideArgs{
InstanceType: pulumi.String("string"),
PriceLimit: pulumi.Float64(0),
},
},
LaunchTemplateVersion: pulumi.String("string"),
InstanceTerminatePolicy: pulumi.String("string"),
ActiveScalingConfigurationId: pulumi.String("string"),
MultiAzPolicy: pulumi.String("string"),
ProjectName: pulumi.String("string"),
DesireInstanceNumber: pulumi.Int(0),
ScalingMode: pulumi.String("string"),
ServerGroupAttributes: autoscaling.ScalingGroupServerGroupAttributeArray{
&autoscaling.ScalingGroupServerGroupAttributeArgs{
Port: pulumi.Int(0),
ServerGroupId: pulumi.String("string"),
Type: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
DefaultCooldown: pulumi.Int(0),
SuspendedProcesses: pulumi.StringArray{
pulumi.String("string"),
},
Tags: autoscaling.ScalingGroupTagArray{
&autoscaling.ScalingGroupTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var scalingGroupResource = new ScalingGroup("scalingGroupResource", ScalingGroupArgs.builder()
.maxInstanceNumber(0)
.subnetIds("string")
.scalingGroupName("string")
.minInstanceNumber(0)
.instancesDistribution(ScalingGroupInstancesDistributionArgs.builder()
.compensateWithOnDemand(false)
.onDemandBaseCapacity(0)
.onDemandPercentageAboveBaseCapacity(0)
.spotInstanceRemedy(false)
.build())
.healthCheckType("string")
.isEnableScalingGroup(false)
.launchTemplateId("string")
.launchTemplateOverrides(ScalingGroupLaunchTemplateOverrideArgs.builder()
.instanceType("string")
.priceLimit(0.0)
.build())
.launchTemplateVersion("string")
.instanceTerminatePolicy("string")
.activeScalingConfigurationId("string")
.multiAzPolicy("string")
.projectName("string")
.desireInstanceNumber(0)
.scalingMode("string")
.serverGroupAttributes(ScalingGroupServerGroupAttributeArgs.builder()
.port(0)
.serverGroupId("string")
.type("string")
.weight(0)
.build())
.defaultCooldown(0)
.suspendedProcesses("string")
.tags(ScalingGroupTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
scaling_group_resource = bytepluscc.autoscaling.ScalingGroup("scalingGroupResource",
max_instance_number=0,
subnet_ids=["string"],
scaling_group_name="string",
min_instance_number=0,
instances_distribution={
"compensate_with_on_demand": False,
"on_demand_base_capacity": 0,
"on_demand_percentage_above_base_capacity": 0,
"spot_instance_remedy": False,
},
health_check_type="string",
is_enable_scaling_group=False,
launch_template_id="string",
launch_template_overrides=[{
"instance_type": "string",
"price_limit": 0,
}],
launch_template_version="string",
instance_terminate_policy="string",
active_scaling_configuration_id="string",
multi_az_policy="string",
project_name="string",
desire_instance_number=0,
scaling_mode="string",
server_group_attributes=[{
"port": 0,
"server_group_id": "string",
"type": "string",
"weight": 0,
}],
default_cooldown=0,
suspended_processes=["string"],
tags=[{
"key": "string",
"value": "string",
}])
const scalingGroupResource = new bytepluscc.autoscaling.ScalingGroup("scalingGroupResource", {
maxInstanceNumber: 0,
subnetIds: ["string"],
scalingGroupName: "string",
minInstanceNumber: 0,
instancesDistribution: {
compensateWithOnDemand: false,
onDemandBaseCapacity: 0,
onDemandPercentageAboveBaseCapacity: 0,
spotInstanceRemedy: false,
},
healthCheckType: "string",
isEnableScalingGroup: false,
launchTemplateId: "string",
launchTemplateOverrides: [{
instanceType: "string",
priceLimit: 0,
}],
launchTemplateVersion: "string",
instanceTerminatePolicy: "string",
activeScalingConfigurationId: "string",
multiAzPolicy: "string",
projectName: "string",
desireInstanceNumber: 0,
scalingMode: "string",
serverGroupAttributes: [{
port: 0,
serverGroupId: "string",
type: "string",
weight: 0,
}],
defaultCooldown: 0,
suspendedProcesses: ["string"],
tags: [{
key: "string",
value: "string",
}],
});
type: bytepluscc:autoscaling:ScalingGroup
properties:
activeScalingConfigurationId: string
defaultCooldown: 0
desireInstanceNumber: 0
healthCheckType: string
instanceTerminatePolicy: string
instancesDistribution:
compensateWithOnDemand: false
onDemandBaseCapacity: 0
onDemandPercentageAboveBaseCapacity: 0
spotInstanceRemedy: false
isEnableScalingGroup: false
launchTemplateId: string
launchTemplateOverrides:
- instanceType: string
priceLimit: 0
launchTemplateVersion: string
maxInstanceNumber: 0
minInstanceNumber: 0
multiAzPolicy: string
projectName: string
scalingGroupName: string
scalingMode: string
serverGroupAttributes:
- port: 0
serverGroupId: string
type: string
weight: 0
subnetIds:
- string
suspendedProcesses:
- string
tags:
- key: string
value: string
ScalingGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ScalingGroup resource accepts the following input properties:
- Max
Instance intNumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- Min
Instance intNumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- Scaling
Group stringName - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- Subnet
Ids List<string> - 伸缩组中实例主网卡的子网ID列表。
- Active
Scaling stringConfiguration Id - 伸缩组绑定的伸缩配置的ID。
- Default
Cooldown int - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- Desire
Instance intNumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- Health
Check stringType - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- Instance
Terminate stringPolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- Instances
Distribution Byteplus.Scaling Group Instances Distribution - 实例分布策略。
- Is
Enable boolScaling Group - 是否启用伸缩组。true:启用。false:停止
- Launch
Template stringId - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- Launch
Template List<Byteplus.Overrides Scaling Group Launch Template Override> - Launch
Template stringVersion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- Multi
Az stringPolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- Project
Name string - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- Scaling
Mode string - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- Server
Group List<Byteplus.Attributes Scaling Group Server Group Attribute> - Suspended
Processes List<string> - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
-
List<Byteplus.
Scaling Group Tag>
- Max
Instance intNumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- Min
Instance intNumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- Scaling
Group stringName - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- Subnet
Ids []string - 伸缩组中实例主网卡的子网ID列表。
- Active
Scaling stringConfiguration Id - 伸缩组绑定的伸缩配置的ID。
- Default
Cooldown int - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- Desire
Instance intNumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- Health
Check stringType - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- Instance
Terminate stringPolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- Instances
Distribution ScalingGroup Instances Distribution Args - 实例分布策略。
- Is
Enable boolScaling Group - 是否启用伸缩组。true:启用。false:停止
- Launch
Template stringId - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- Launch
Template []ScalingOverrides Group Launch Template Override Args - Launch
Template stringVersion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- Multi
Az stringPolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- Project
Name string - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- Scaling
Mode string - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- Server
Group []ScalingAttributes Group Server Group Attribute Args - Suspended
Processes []string - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
-
[]Scaling
Group Tag Args
- max
Instance IntegerNumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- min
Instance IntegerNumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- scaling
Group StringName - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- subnet
Ids List<String> - 伸缩组中实例主网卡的子网ID列表。
- active
Scaling StringConfiguration Id - 伸缩组绑定的伸缩配置的ID。
- default
Cooldown Integer - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- desire
Instance IntegerNumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- health
Check StringType - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- instance
Terminate StringPolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- instances
Distribution ScalingGroup Instances Distribution - 实例分布策略。
- is
Enable BooleanScaling Group - 是否启用伸缩组。true:启用。false:停止
- launch
Template StringId - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- launch
Template List<ScalingOverrides Group Launch Template Override> - launch
Template StringVersion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- multi
Az StringPolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- project
Name String - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- scaling
Mode String - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- server
Group List<ScalingAttributes Group Server Group Attribute> - suspended
Processes List<String> - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
-
List<Scaling
Group Tag>
- max
Instance numberNumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- min
Instance numberNumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- scaling
Group stringName - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- subnet
Ids string[] - 伸缩组中实例主网卡的子网ID列表。
- active
Scaling stringConfiguration Id - 伸缩组绑定的伸缩配置的ID。
- default
Cooldown number - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- desire
Instance numberNumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- health
Check stringType - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- instance
Terminate stringPolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- instances
Distribution ScalingGroup Instances Distribution - 实例分布策略。
- is
Enable booleanScaling Group - 是否启用伸缩组。true:启用。false:停止
- launch
Template stringId - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- launch
Template ScalingOverrides Group Launch Template Override[] - launch
Template stringVersion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- multi
Az stringPolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- project
Name string - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- scaling
Mode string - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- server
Group ScalingAttributes Group Server Group Attribute[] - suspended
Processes string[] - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
-
Scaling
Group Tag[]
- max_
instance_ intnumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- min_
instance_ intnumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- scaling_
group_ strname - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- subnet_
ids Sequence[str] - 伸缩组中实例主网卡的子网ID列表。
- active_
scaling_ strconfiguration_ id - 伸缩组绑定的伸缩配置的ID。
- default_
cooldown int - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- desire_
instance_ intnumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- health_
check_ strtype - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- instance_
terminate_ strpolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- instances_
distribution ScalingGroup Instances Distribution Args - 实例分布策略。
- is_
enable_ boolscaling_ group - 是否启用伸缩组。true:启用。false:停止
- launch_
template_ strid - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- launch_
template_ Sequence[Scalingoverrides Group Launch Template Override Args] - launch_
template_ strversion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- multi_
az_ strpolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- project_
name str - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- scaling_
mode str - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- server_
group_ Sequence[Scalingattributes Group Server Group Attribute Args] - suspended_
processes Sequence[str] - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
-
Sequence[Scaling
Group Tag Args]
- max
Instance NumberNumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- min
Instance NumberNumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- scaling
Group StringName - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- subnet
Ids List<String> - 伸缩组中实例主网卡的子网ID列表。
- active
Scaling StringConfiguration Id - 伸缩组绑定的伸缩配置的ID。
- default
Cooldown Number - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- desire
Instance NumberNumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- health
Check StringType - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- instance
Terminate StringPolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- instances
Distribution Property Map - 实例分布策略。
- is
Enable BooleanScaling Group - 是否启用伸缩组。true:启用。false:停止
- launch
Template StringId - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- launch
Template List<Property Map>Overrides - launch
Template StringVersion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- multi
Az StringPolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- project
Name String - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- scaling
Mode String - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- server
Group List<Property Map>Attributes - suspended
Processes List<String> - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the ScalingGroup resource produces the following output properties:
- Created
Time string - 伸缩组创建时间。
- Db
Instance List<string>Ids - RDS数据库实例的ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- Load
Balancer intHealth Check Grace Period - 伸缩组实例CLB健康状况检查宽限期。
- Scaling
Group stringId - 伸缩组ID。
- Stopped
Instance intCount - 伸缩组内处于停用中状态的实例数量。
- Total
Instance intCount - 当前伸缩组内实例的个数。
- Updated
Time string - 伸缩组更新时间。
- Vpc
Id string - 伸缩组所属私有网络ID。
- Created
Time string - 伸缩组创建时间。
- Db
Instance []stringIds - RDS数据库实例的ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- Load
Balancer intHealth Check Grace Period - 伸缩组实例CLB健康状况检查宽限期。
- Scaling
Group stringId - 伸缩组ID。
- Stopped
Instance intCount - 伸缩组内处于停用中状态的实例数量。
- Total
Instance intCount - 当前伸缩组内实例的个数。
- Updated
Time string - 伸缩组更新时间。
- Vpc
Id string - 伸缩组所属私有网络ID。
- created
Time String - 伸缩组创建时间。
- db
Instance List<String>Ids - RDS数据库实例的ID。
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- load
Balancer IntegerHealth Check Grace Period - 伸缩组实例CLB健康状况检查宽限期。
- scaling
Group StringId - 伸缩组ID。
- stopped
Instance IntegerCount - 伸缩组内处于停用中状态的实例数量。
- total
Instance IntegerCount - 当前伸缩组内实例的个数。
- updated
Time String - 伸缩组更新时间。
- vpc
Id String - 伸缩组所属私有网络ID。
- created
Time string - 伸缩组创建时间。
- db
Instance string[]Ids - RDS数据库实例的ID。
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
State string - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- load
Balancer numberHealth Check Grace Period - 伸缩组实例CLB健康状况检查宽限期。
- scaling
Group stringId - 伸缩组ID。
- stopped
Instance numberCount - 伸缩组内处于停用中状态的实例数量。
- total
Instance numberCount - 当前伸缩组内实例的个数。
- updated
Time string - 伸缩组更新时间。
- vpc
Id string - 伸缩组所属私有网络ID。
- created_
time str - 伸缩组创建时间。
- db_
instance_ Sequence[str]ids - RDS数据库实例的ID。
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
state str - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- load_
balancer_ inthealth_ check_ grace_ period - 伸缩组实例CLB健康状况检查宽限期。
- scaling_
group_ strid - 伸缩组ID。
- stopped_
instance_ intcount - 伸缩组内处于停用中状态的实例数量。
- total_
instance_ intcount - 当前伸缩组内实例的个数。
- updated_
time str - 伸缩组更新时间。
- vpc_
id str - 伸缩组所属私有网络ID。
- created
Time String - 伸缩组创建时间。
- db
Instance List<String>Ids - RDS数据库实例的ID。
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- load
Balancer NumberHealth Check Grace Period - 伸缩组实例CLB健康状况检查宽限期。
- scaling
Group StringId - 伸缩组ID。
- stopped
Instance NumberCount - 伸缩组内处于停用中状态的实例数量。
- total
Instance NumberCount - 当前伸缩组内实例的个数。
- updated
Time String - 伸缩组更新时间。
- vpc
Id String - 伸缩组所属私有网络ID。
Look up Existing ScalingGroup Resource
Get an existing ScalingGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ScalingGroupState, opts?: CustomResourceOptions): ScalingGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active_scaling_configuration_id: Optional[str] = None,
created_time: Optional[str] = None,
db_instance_ids: Optional[Sequence[str]] = None,
default_cooldown: Optional[int] = None,
desire_instance_number: Optional[int] = None,
health_check_type: Optional[str] = None,
instance_terminate_policy: Optional[str] = None,
instances_distribution: Optional[ScalingGroupInstancesDistributionArgs] = None,
is_enable_scaling_group: Optional[bool] = None,
launch_template_id: Optional[str] = None,
launch_template_overrides: Optional[Sequence[ScalingGroupLaunchTemplateOverrideArgs]] = None,
launch_template_version: Optional[str] = None,
lifecycle_state: Optional[str] = None,
load_balancer_health_check_grace_period: Optional[int] = None,
max_instance_number: Optional[int] = None,
min_instance_number: Optional[int] = None,
multi_az_policy: Optional[str] = None,
project_name: Optional[str] = None,
scaling_group_id: Optional[str] = None,
scaling_group_name: Optional[str] = None,
scaling_mode: Optional[str] = None,
server_group_attributes: Optional[Sequence[ScalingGroupServerGroupAttributeArgs]] = None,
stopped_instance_count: Optional[int] = None,
subnet_ids: Optional[Sequence[str]] = None,
suspended_processes: Optional[Sequence[str]] = None,
tags: Optional[Sequence[ScalingGroupTagArgs]] = None,
total_instance_count: Optional[int] = None,
updated_time: Optional[str] = None,
vpc_id: Optional[str] = None) -> ScalingGroupfunc GetScalingGroup(ctx *Context, name string, id IDInput, state *ScalingGroupState, opts ...ResourceOption) (*ScalingGroup, error)public static ScalingGroup Get(string name, Input<string> id, ScalingGroupState? state, CustomResourceOptions? opts = null)public static ScalingGroup get(String name, Output<String> id, ScalingGroupState state, CustomResourceOptions options)resources: _: type: bytepluscc:autoscaling:ScalingGroup get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Active
Scaling stringConfiguration Id - 伸缩组绑定的伸缩配置的ID。
- Created
Time string - 伸缩组创建时间。
- Db
Instance List<string>Ids - RDS数据库实例的ID。
- Default
Cooldown int - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- Desire
Instance intNumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- Health
Check stringType - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- Instance
Terminate stringPolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- Instances
Distribution Byteplus.Scaling Group Instances Distribution - 实例分布策略。
- Is
Enable boolScaling Group - 是否启用伸缩组。true:启用。false:停止
- Launch
Template stringId - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- Launch
Template List<Byteplus.Overrides Scaling Group Launch Template Override> - Launch
Template stringVersion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- Lifecycle
State string - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- Load
Balancer intHealth Check Grace Period - 伸缩组实例CLB健康状况检查宽限期。
- Max
Instance intNumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- Min
Instance intNumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- Multi
Az stringPolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- Project
Name string - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- Scaling
Group stringId - 伸缩组ID。
- Scaling
Group stringName - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- Scaling
Mode string - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- Server
Group List<Byteplus.Attributes Scaling Group Server Group Attribute> - Stopped
Instance intCount - 伸缩组内处于停用中状态的实例数量。
- Subnet
Ids List<string> - 伸缩组中实例主网卡的子网ID列表。
- Suspended
Processes List<string> - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
-
List<Byteplus.
Scaling Group Tag> - Total
Instance intCount - 当前伸缩组内实例的个数。
- Updated
Time string - 伸缩组更新时间。
- Vpc
Id string - 伸缩组所属私有网络ID。
- Active
Scaling stringConfiguration Id - 伸缩组绑定的伸缩配置的ID。
- Created
Time string - 伸缩组创建时间。
- Db
Instance []stringIds - RDS数据库实例的ID。
- Default
Cooldown int - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- Desire
Instance intNumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- Health
Check stringType - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- Instance
Terminate stringPolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- Instances
Distribution ScalingGroup Instances Distribution Args - 实例分布策略。
- Is
Enable boolScaling Group - 是否启用伸缩组。true:启用。false:停止
- Launch
Template stringId - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- Launch
Template []ScalingOverrides Group Launch Template Override Args - Launch
Template stringVersion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- Lifecycle
State string - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- Load
Balancer intHealth Check Grace Period - 伸缩组实例CLB健康状况检查宽限期。
- Max
Instance intNumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- Min
Instance intNumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- Multi
Az stringPolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- Project
Name string - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- Scaling
Group stringId - 伸缩组ID。
- Scaling
Group stringName - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- Scaling
Mode string - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- Server
Group []ScalingAttributes Group Server Group Attribute Args - Stopped
Instance intCount - 伸缩组内处于停用中状态的实例数量。
- Subnet
Ids []string - 伸缩组中实例主网卡的子网ID列表。
- Suspended
Processes []string - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
-
[]Scaling
Group Tag Args - Total
Instance intCount - 当前伸缩组内实例的个数。
- Updated
Time string - 伸缩组更新时间。
- Vpc
Id string - 伸缩组所属私有网络ID。
- active
Scaling StringConfiguration Id - 伸缩组绑定的伸缩配置的ID。
- created
Time String - 伸缩组创建时间。
- db
Instance List<String>Ids - RDS数据库实例的ID。
- default
Cooldown Integer - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- desire
Instance IntegerNumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- health
Check StringType - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- instance
Terminate StringPolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- instances
Distribution ScalingGroup Instances Distribution - 实例分布策略。
- is
Enable BooleanScaling Group - 是否启用伸缩组。true:启用。false:停止
- launch
Template StringId - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- launch
Template List<ScalingOverrides Group Launch Template Override> - launch
Template StringVersion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- lifecycle
State String - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- load
Balancer IntegerHealth Check Grace Period - 伸缩组实例CLB健康状况检查宽限期。
- max
Instance IntegerNumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- min
Instance IntegerNumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- multi
Az StringPolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- project
Name String - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- scaling
Group StringId - 伸缩组ID。
- scaling
Group StringName - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- scaling
Mode String - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- server
Group List<ScalingAttributes Group Server Group Attribute> - stopped
Instance IntegerCount - 伸缩组内处于停用中状态的实例数量。
- subnet
Ids List<String> - 伸缩组中实例主网卡的子网ID列表。
- suspended
Processes List<String> - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
-
List<Scaling
Group Tag> - total
Instance IntegerCount - 当前伸缩组内实例的个数。
- updated
Time String - 伸缩组更新时间。
- vpc
Id String - 伸缩组所属私有网络ID。
- active
Scaling stringConfiguration Id - 伸缩组绑定的伸缩配置的ID。
- created
Time string - 伸缩组创建时间。
- db
Instance string[]Ids - RDS数据库实例的ID。
- default
Cooldown number - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- desire
Instance numberNumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- health
Check stringType - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- instance
Terminate stringPolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- instances
Distribution ScalingGroup Instances Distribution - 实例分布策略。
- is
Enable booleanScaling Group - 是否启用伸缩组。true:启用。false:停止
- launch
Template stringId - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- launch
Template ScalingOverrides Group Launch Template Override[] - launch
Template stringVersion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- lifecycle
State string - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- load
Balancer numberHealth Check Grace Period - 伸缩组实例CLB健康状况检查宽限期。
- max
Instance numberNumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- min
Instance numberNumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- multi
Az stringPolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- project
Name string - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- scaling
Group stringId - 伸缩组ID。
- scaling
Group stringName - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- scaling
Mode string - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- server
Group ScalingAttributes Group Server Group Attribute[] - stopped
Instance numberCount - 伸缩组内处于停用中状态的实例数量。
- subnet
Ids string[] - 伸缩组中实例主网卡的子网ID列表。
- suspended
Processes string[] - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
-
Scaling
Group Tag[] - total
Instance numberCount - 当前伸缩组内实例的个数。
- updated
Time string - 伸缩组更新时间。
- vpc
Id string - 伸缩组所属私有网络ID。
- active_
scaling_ strconfiguration_ id - 伸缩组绑定的伸缩配置的ID。
- created_
time str - 伸缩组创建时间。
- db_
instance_ Sequence[str]ids - RDS数据库实例的ID。
- default_
cooldown int - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- desire_
instance_ intnumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- health_
check_ strtype - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- instance_
terminate_ strpolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- instances_
distribution ScalingGroup Instances Distribution Args - 实例分布策略。
- is_
enable_ boolscaling_ group - 是否启用伸缩组。true:启用。false:停止
- launch_
template_ strid - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- launch_
template_ Sequence[Scalingoverrides Group Launch Template Override Args] - launch_
template_ strversion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- lifecycle_
state str - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- load_
balancer_ inthealth_ check_ grace_ period - 伸缩组实例CLB健康状况检查宽限期。
- max_
instance_ intnumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- min_
instance_ intnumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- multi_
az_ strpolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- project_
name str - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- scaling_
group_ strid - 伸缩组ID。
- scaling_
group_ strname - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- scaling_
mode str - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- server_
group_ Sequence[Scalingattributes Group Server Group Attribute Args] - stopped_
instance_ intcount - 伸缩组内处于停用中状态的实例数量。
- subnet_
ids Sequence[str] - 伸缩组中实例主网卡的子网ID列表。
- suspended_
processes Sequence[str] - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
-
Sequence[Scaling
Group Tag Args] - total_
instance_ intcount - 当前伸缩组内实例的个数。
- updated_
time str - 伸缩组更新时间。
- vpc_
id str - 伸缩组所属私有网络ID。
- active
Scaling StringConfiguration Id - 伸缩组绑定的伸缩配置的ID。
- created
Time String - 伸缩组创建时间。
- db
Instance List<String>Ids - RDS数据库实例的ID。
- default
Cooldown Number - 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
- desire
Instance NumberNumber - 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
- health
Check StringType - 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
- instance
Terminate StringPolicy - 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
- instances
Distribution Property Map - 实例分布策略。
- is
Enable BooleanScaling Group - 是否启用伸缩组。true:启用。false:停止
- launch
Template StringId - 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
- launch
Template List<Property Map>Overrides - launch
Template StringVersion - 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
- lifecycle
State String - 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
- load
Balancer NumberHealth Check Grace Period - 伸缩组实例CLB健康状况检查宽限期。
- max
Instance NumberNumber - 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
- min
Instance NumberNumber - 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
- multi
Az StringPolicy - 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
- project
Name String - 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
- scaling
Group StringId - 伸缩组ID。
- scaling
Group StringName - 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
- scaling
Mode String - 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
- server
Group List<Property Map>Attributes - stopped
Instance NumberCount - 伸缩组内处于停用中状态的实例数量。
- subnet
Ids List<String> - 伸缩组中实例主网卡的子网ID列表。
- suspended
Processes List<String> - 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
- List<Property Map>
- total
Instance NumberCount - 当前伸缩组内实例的个数。
- updated
Time String - 伸缩组更新时间。
- vpc
Id String - 伸缩组所属私有网络ID。
Supporting Types
ScalingGroupInstancesDistribution, ScalingGroupInstancesDistributionArgs
- Compensate
With boolOn Demand - 当因价格、库存等原因无法创建足够的抢占式实例时,是否允许使用按量实例补充抢占式容量。true: 允许。false(默认): 不允许。
- On
Demand intBase Capacity - 伸缩组中按量计费实例个数的最小值,取值范围:0~2000。当组中按量计费实例个数少于该值时,将优先创建按量计费的实例。
- On
Demand intPercentage Above Base Capacity - 伸缩组满足最小按量实例数要求后,超出的实例中按量实例应占的比例,取值范围:0~100。
- Spot
Instance boolRemedy - 是否允许抢占式实例到期替换。开启则表示在抢占式实例被回收前5分钟左右,伸缩组将主动新建新的抢占式实例替换掉当前抢占式实例。true: 允许。false(默认): 不允许。
- Compensate
With boolOn Demand - 当因价格、库存等原因无法创建足够的抢占式实例时,是否允许使用按量实例补充抢占式容量。true: 允许。false(默认): 不允许。
- On
Demand intBase Capacity - 伸缩组中按量计费实例个数的最小值,取值范围:0~2000。当组中按量计费实例个数少于该值时,将优先创建按量计费的实例。
- On
Demand intPercentage Above Base Capacity - 伸缩组满足最小按量实例数要求后,超出的实例中按量实例应占的比例,取值范围:0~100。
- Spot
Instance boolRemedy - 是否允许抢占式实例到期替换。开启则表示在抢占式实例被回收前5分钟左右,伸缩组将主动新建新的抢占式实例替换掉当前抢占式实例。true: 允许。false(默认): 不允许。
- compensate
With BooleanOn Demand - 当因价格、库存等原因无法创建足够的抢占式实例时,是否允许使用按量实例补充抢占式容量。true: 允许。false(默认): 不允许。
- on
Demand IntegerBase Capacity - 伸缩组中按量计费实例个数的最小值,取值范围:0~2000。当组中按量计费实例个数少于该值时,将优先创建按量计费的实例。
- on
Demand IntegerPercentage Above Base Capacity - 伸缩组满足最小按量实例数要求后,超出的实例中按量实例应占的比例,取值范围:0~100。
- spot
Instance BooleanRemedy - 是否允许抢占式实例到期替换。开启则表示在抢占式实例被回收前5分钟左右,伸缩组将主动新建新的抢占式实例替换掉当前抢占式实例。true: 允许。false(默认): 不允许。
- compensate
With booleanOn Demand - 当因价格、库存等原因无法创建足够的抢占式实例时,是否允许使用按量实例补充抢占式容量。true: 允许。false(默认): 不允许。
- on
Demand numberBase Capacity - 伸缩组中按量计费实例个数的最小值,取值范围:0~2000。当组中按量计费实例个数少于该值时,将优先创建按量计费的实例。
- on
Demand numberPercentage Above Base Capacity - 伸缩组满足最小按量实例数要求后,超出的实例中按量实例应占的比例,取值范围:0~100。
- spot
Instance booleanRemedy - 是否允许抢占式实例到期替换。开启则表示在抢占式实例被回收前5分钟左右,伸缩组将主动新建新的抢占式实例替换掉当前抢占式实例。true: 允许。false(默认): 不允许。
- compensate_
with_ boolon_ demand - 当因价格、库存等原因无法创建足够的抢占式实例时,是否允许使用按量实例补充抢占式容量。true: 允许。false(默认): 不允许。
- on_
demand_ intbase_ capacity - 伸缩组中按量计费实例个数的最小值,取值范围:0~2000。当组中按量计费实例个数少于该值时,将优先创建按量计费的实例。
- on_
demand_ intpercentage_ above_ base_ capacity - 伸缩组满足最小按量实例数要求后,超出的实例中按量实例应占的比例,取值范围:0~100。
- spot_
instance_ boolremedy - 是否允许抢占式实例到期替换。开启则表示在抢占式实例被回收前5分钟左右,伸缩组将主动新建新的抢占式实例替换掉当前抢占式实例。true: 允许。false(默认): 不允许。
- compensate
With BooleanOn Demand - 当因价格、库存等原因无法创建足够的抢占式实例时,是否允许使用按量实例补充抢占式容量。true: 允许。false(默认): 不允许。
- on
Demand NumberBase Capacity - 伸缩组中按量计费实例个数的最小值,取值范围:0~2000。当组中按量计费实例个数少于该值时,将优先创建按量计费的实例。
- on
Demand NumberPercentage Above Base Capacity - 伸缩组满足最小按量实例数要求后,超出的实例中按量实例应占的比例,取值范围:0~100。
- spot
Instance BooleanRemedy - 是否允许抢占式实例到期替换。开启则表示在抢占式实例被回收前5分钟左右,伸缩组将主动新建新的抢占式实例替换掉当前抢占式实例。true: 允许。false(默认): 不允许。
ScalingGroupLaunchTemplateOverride, ScalingGroupLaunchTemplateOverrideArgs
- Instance
Type string - 指定实例规格。本参数仅当LaunchTemplateId参数存在取值时生有效。
- Price
Limit double - 指定抢占式实例规格每小时的最高价格。本参数仅当LaunchTemplateId参数存在取值,且启动模版的计费模式为设置出价上限的抢占式实例(即SpotWithPriceLimit)时有效。
- Instance
Type string - 指定实例规格。本参数仅当LaunchTemplateId参数存在取值时生有效。
- Price
Limit float64 - 指定抢占式实例规格每小时的最高价格。本参数仅当LaunchTemplateId参数存在取值,且启动模版的计费模式为设置出价上限的抢占式实例(即SpotWithPriceLimit)时有效。
- instance
Type String - 指定实例规格。本参数仅当LaunchTemplateId参数存在取值时生有效。
- price
Limit Double - 指定抢占式实例规格每小时的最高价格。本参数仅当LaunchTemplateId参数存在取值,且启动模版的计费模式为设置出价上限的抢占式实例(即SpotWithPriceLimit)时有效。
- instance
Type string - 指定实例规格。本参数仅当LaunchTemplateId参数存在取值时生有效。
- price
Limit number - 指定抢占式实例规格每小时的最高价格。本参数仅当LaunchTemplateId参数存在取值,且启动模版的计费模式为设置出价上限的抢占式实例(即SpotWithPriceLimit)时有效。
- instance_
type str - 指定实例规格。本参数仅当LaunchTemplateId参数存在取值时生有效。
- price_
limit float - 指定抢占式实例规格每小时的最高价格。本参数仅当LaunchTemplateId参数存在取值,且启动模版的计费模式为设置出价上限的抢占式实例(即SpotWithPriceLimit)时有效。
- instance
Type String - 指定实例规格。本参数仅当LaunchTemplateId参数存在取值时生有效。
- price
Limit Number - 指定抢占式实例规格每小时的最高价格。本参数仅当LaunchTemplateId参数存在取值,且启动模版的计费模式为设置出价上限的抢占式实例(即SpotWithPriceLimit)时有效。
ScalingGroupServerGroupAttribute, ScalingGroupServerGroupAttributeArgs
- Port int
- 负载均衡后端服务器组中服务器的端口号。取值1 ~ 65535。
- Server
Group stringId - 负载均衡后端服务器组的ID。
- Type string
- 负载均衡服务器组类型。单个CLB/ALB最多支持添加20个后端服务器组,所有CLB/ALB最多支持添加100个后端服务器。ALB:应用型负载均衡。CLB:传统型型负载均衡(默认)。
- Weight int
- 负载均衡后端服务器组中服务器的权重。
- Port int
- 负载均衡后端服务器组中服务器的端口号。取值1 ~ 65535。
- Server
Group stringId - 负载均衡后端服务器组的ID。
- Type string
- 负载均衡服务器组类型。单个CLB/ALB最多支持添加20个后端服务器组,所有CLB/ALB最多支持添加100个后端服务器。ALB:应用型负载均衡。CLB:传统型型负载均衡(默认)。
- Weight int
- 负载均衡后端服务器组中服务器的权重。
- port Integer
- 负载均衡后端服务器组中服务器的端口号。取值1 ~ 65535。
- server
Group StringId - 负载均衡后端服务器组的ID。
- type String
- 负载均衡服务器组类型。单个CLB/ALB最多支持添加20个后端服务器组,所有CLB/ALB最多支持添加100个后端服务器。ALB:应用型负载均衡。CLB:传统型型负载均衡(默认)。
- weight Integer
- 负载均衡后端服务器组中服务器的权重。
- port number
- 负载均衡后端服务器组中服务器的端口号。取值1 ~ 65535。
- server
Group stringId - 负载均衡后端服务器组的ID。
- type string
- 负载均衡服务器组类型。单个CLB/ALB最多支持添加20个后端服务器组,所有CLB/ALB最多支持添加100个后端服务器。ALB:应用型负载均衡。CLB:传统型型负载均衡(默认)。
- weight number
- 负载均衡后端服务器组中服务器的权重。
- port int
- 负载均衡后端服务器组中服务器的端口号。取值1 ~ 65535。
- server_
group_ strid - 负载均衡后端服务器组的ID。
- type str
- 负载均衡服务器组类型。单个CLB/ALB最多支持添加20个后端服务器组,所有CLB/ALB最多支持添加100个后端服务器。ALB:应用型负载均衡。CLB:传统型型负载均衡(默认)。
- weight int
- 负载均衡后端服务器组中服务器的权重。
- port Number
- 负载均衡后端服务器组中服务器的端口号。取值1 ~ 65535。
- server
Group StringId - 负载均衡后端服务器组的ID。
- type String
- 负载均衡服务器组类型。单个CLB/ALB最多支持添加20个后端服务器组,所有CLB/ALB最多支持添加100个后端服务器。ALB:应用型负载均衡。CLB:传统型型负载均衡(默认)。
- weight Number
- 负载均衡后端服务器组中服务器的权重。
ScalingGroupTag, ScalingGroupTagArgs
Import
$ pulumi import bytepluscc:autoscaling/scalingGroup:ScalingGroup example "scaling_group_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
