1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. autoscaling
  6. ScalingGroup
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine

    Scaling groups are used to manage a set of cloud resource instances. You can use scaling groups to define the number/capacity of instances in the resource pool, cooldown time, load balancing, and other information.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      autoScalingScalingGroupDemo:
        type: volcenginecc: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,
                     launch_template_overrides: Optional[Sequence[ScalingGroupLaunchTemplateOverrideArgs]] = None,
                     health_check_type: Optional[str] = None,
                     instances: Optional[Sequence[ScalingGroupInstanceArgs]] = None,
                     instances_distribution: Optional[ScalingGroupInstancesDistributionArgs] = None,
                     is_enable_scaling_group: Optional[bool] = None,
                     launch_template_id: Optional[str] = None,
                     active_scaling_configuration_id: Optional[str] = None,
                     launch_template_version: Optional[str] = None,
                     instance_remove_policies: Optional[Sequence[ScalingGroupInstanceRemovePolicyArgs]] = None,
                     instance_terminate_policy: 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: volcenginecc: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.

    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:

    MaxInstanceNumber int
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    MinInstanceNumber int
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    ScalingGroupName string
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    SubnetIds List<string>
    List of subnet IDs for the primary network interface of instances in the scaling group
    ActiveScalingConfigurationId string
    ID of the scaling configuration bound to the scaling group
    DefaultCooldown int
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    DesireInstanceNumber int
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    HealthCheckType string
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    InstanceRemovePolicies List<Volcengine.ScalingGroupInstanceRemovePolicy>
    InstanceTerminatePolicy string
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    Instances List<Volcengine.ScalingGroupInstance>
    InstancesDistribution Volcengine.ScalingGroupInstancesDistribution
    Instance distribution policy.
    IsEnableScalingGroup bool
    Whether to enable the scaling group. true: enabled. false: stopped
    LaunchTemplateId string
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    LaunchTemplateOverrides List<Volcengine.ScalingGroupLaunchTemplateOverride>
    LaunchTemplateVersion string
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    MultiAzPolicy string
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    ProjectName string
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    ScalingMode string
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    ServerGroupAttributes List<Volcengine.ScalingGroupServerGroupAttribute>
    SuspendedProcesses List<string>
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    Tags List<Volcengine.ScalingGroupTag>
    MaxInstanceNumber int
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    MinInstanceNumber int
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    ScalingGroupName string
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    SubnetIds []string
    List of subnet IDs for the primary network interface of instances in the scaling group
    ActiveScalingConfigurationId string
    ID of the scaling configuration bound to the scaling group
    DefaultCooldown int
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    DesireInstanceNumber int
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    HealthCheckType string
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    InstanceRemovePolicies []ScalingGroupInstanceRemovePolicyArgs
    InstanceTerminatePolicy string
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    Instances []ScalingGroupInstanceArgs
    InstancesDistribution ScalingGroupInstancesDistributionArgs
    Instance distribution policy.
    IsEnableScalingGroup bool
    Whether to enable the scaling group. true: enabled. false: stopped
    LaunchTemplateId string
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    LaunchTemplateOverrides []ScalingGroupLaunchTemplateOverrideArgs
    LaunchTemplateVersion string
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    MultiAzPolicy string
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    ProjectName string
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    ScalingMode string
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    ServerGroupAttributes []ScalingGroupServerGroupAttributeArgs
    SuspendedProcesses []string
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    Tags []ScalingGroupTagArgs
    maxInstanceNumber Integer
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    minInstanceNumber Integer
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    scalingGroupName String
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    subnetIds List<String>
    List of subnet IDs for the primary network interface of instances in the scaling group
    activeScalingConfigurationId String
    ID of the scaling configuration bound to the scaling group
    defaultCooldown Integer
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    desireInstanceNumber Integer
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    healthCheckType String
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    instanceRemovePolicies List<ScalingGroupInstanceRemovePolicy>
    instanceTerminatePolicy String
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    instances List<ScalingGroupInstance>
    instancesDistribution ScalingGroupInstancesDistribution
    Instance distribution policy.
    isEnableScalingGroup Boolean
    Whether to enable the scaling group. true: enabled. false: stopped
    launchTemplateId String
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    launchTemplateOverrides List<ScalingGroupLaunchTemplateOverride>
    launchTemplateVersion String
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    multiAzPolicy String
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    projectName String
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    scalingMode String
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    serverGroupAttributes List<ScalingGroupServerGroupAttribute>
    suspendedProcesses List<String>
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    tags List<ScalingGroupTag>
    maxInstanceNumber number
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    minInstanceNumber number
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    scalingGroupName string
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    subnetIds string[]
    List of subnet IDs for the primary network interface of instances in the scaling group
    activeScalingConfigurationId string
    ID of the scaling configuration bound to the scaling group
    defaultCooldown number
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    desireInstanceNumber number
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    healthCheckType string
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    instanceRemovePolicies ScalingGroupInstanceRemovePolicy[]
    instanceTerminatePolicy string
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    instances ScalingGroupInstance[]
    instancesDistribution ScalingGroupInstancesDistribution
    Instance distribution policy.
    isEnableScalingGroup boolean
    Whether to enable the scaling group. true: enabled. false: stopped
    launchTemplateId string
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    launchTemplateOverrides ScalingGroupLaunchTemplateOverride[]
    launchTemplateVersion string
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    multiAzPolicy string
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    projectName string
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    scalingMode string
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    serverGroupAttributes ScalingGroupServerGroupAttribute[]
    suspendedProcesses string[]
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    tags ScalingGroupTag[]
    max_instance_number int
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    min_instance_number int
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    scaling_group_name str
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    subnet_ids Sequence[str]
    List of subnet IDs for the primary network interface of instances in the scaling group
    active_scaling_configuration_id str
    ID of the scaling configuration bound to the scaling group
    default_cooldown int
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    desire_instance_number int
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    health_check_type str
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    instance_remove_policies Sequence[ScalingGroupInstanceRemovePolicyArgs]
    instance_terminate_policy str
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    instances Sequence[ScalingGroupInstanceArgs]
    instances_distribution ScalingGroupInstancesDistributionArgs
    Instance distribution policy.
    is_enable_scaling_group bool
    Whether to enable the scaling group. true: enabled. false: stopped
    launch_template_id str
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    launch_template_overrides Sequence[ScalingGroupLaunchTemplateOverrideArgs]
    launch_template_version str
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    multi_az_policy str
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    project_name str
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    scaling_mode str
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    server_group_attributes Sequence[ScalingGroupServerGroupAttributeArgs]
    suspended_processes Sequence[str]
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    tags Sequence[ScalingGroupTagArgs]
    maxInstanceNumber Number
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    minInstanceNumber Number
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    scalingGroupName String
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    subnetIds List<String>
    List of subnet IDs for the primary network interface of instances in the scaling group
    activeScalingConfigurationId String
    ID of the scaling configuration bound to the scaling group
    defaultCooldown Number
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    desireInstanceNumber Number
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    healthCheckType String
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    instanceRemovePolicies List<Property Map>
    instanceTerminatePolicy String
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    instances List<Property Map>
    instancesDistribution Property Map
    Instance distribution policy.
    isEnableScalingGroup Boolean
    Whether to enable the scaling group. true: enabled. false: stopped
    launchTemplateId String
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    launchTemplateOverrides List<Property Map>
    launchTemplateVersion String
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    multiAzPolicy String
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    projectName String
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    scalingMode String
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    serverGroupAttributes List<Property Map>
    suspendedProcesses List<String>
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    tags List<Property Map>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ScalingGroup resource produces the following output properties:

    CreatedTime string
    Scaling group creation time
    DbInstanceIds List<string>
    ID of the RDS database instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleState string
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    LoadBalancerHealthCheckGracePeriod int
    Grace period for CLB health checks on scaling group instances
    ScalingGroupId string
    Scaling group ID.
    StoppedInstanceCount int
    Number of instances in the scaling group that are in the disabled state.
    TotalInstanceCount int
    Number of instances currently in the scaling group
    UpdatedTime string
    Scaling group update time.
    VpcId string
    VPC ID to which the scaling group belongs
    CreatedTime string
    Scaling group creation time
    DbInstanceIds []string
    ID of the RDS database instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleState string
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    LoadBalancerHealthCheckGracePeriod int
    Grace period for CLB health checks on scaling group instances
    ScalingGroupId string
    Scaling group ID.
    StoppedInstanceCount int
    Number of instances in the scaling group that are in the disabled state.
    TotalInstanceCount int
    Number of instances currently in the scaling group
    UpdatedTime string
    Scaling group update time.
    VpcId string
    VPC ID to which the scaling group belongs
    createdTime String
    Scaling group creation time
    dbInstanceIds List<String>
    ID of the RDS database instance.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleState String
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    loadBalancerHealthCheckGracePeriod Integer
    Grace period for CLB health checks on scaling group instances
    scalingGroupId String
    Scaling group ID.
    stoppedInstanceCount Integer
    Number of instances in the scaling group that are in the disabled state.
    totalInstanceCount Integer
    Number of instances currently in the scaling group
    updatedTime String
    Scaling group update time.
    vpcId String
    VPC ID to which the scaling group belongs
    createdTime string
    Scaling group creation time
    dbInstanceIds string[]
    ID of the RDS database instance.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleState string
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    loadBalancerHealthCheckGracePeriod number
    Grace period for CLB health checks on scaling group instances
    scalingGroupId string
    Scaling group ID.
    stoppedInstanceCount number
    Number of instances in the scaling group that are in the disabled state.
    totalInstanceCount number
    Number of instances currently in the scaling group
    updatedTime string
    Scaling group update time.
    vpcId string
    VPC ID to which the scaling group belongs
    created_time str
    Scaling group creation time
    db_instance_ids Sequence[str]
    ID of the RDS database instance.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_state str
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    load_balancer_health_check_grace_period int
    Grace period for CLB health checks on scaling group instances
    scaling_group_id str
    Scaling group ID.
    stopped_instance_count int
    Number of instances in the scaling group that are in the disabled state.
    total_instance_count int
    Number of instances currently in the scaling group
    updated_time str
    Scaling group update time.
    vpc_id str
    VPC ID to which the scaling group belongs
    createdTime String
    Scaling group creation time
    dbInstanceIds List<String>
    ID of the RDS database instance.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleState String
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    loadBalancerHealthCheckGracePeriod Number
    Grace period for CLB health checks on scaling group instances
    scalingGroupId String
    Scaling group ID.
    stoppedInstanceCount Number
    Number of instances in the scaling group that are in the disabled state.
    totalInstanceCount Number
    Number of instances currently in the scaling group
    updatedTime String
    Scaling group update time.
    vpcId String
    VPC ID to which the scaling group belongs

    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_remove_policies: Optional[Sequence[ScalingGroupInstanceRemovePolicyArgs]] = None,
            instance_terminate_policy: Optional[str] = None,
            instances: Optional[Sequence[ScalingGroupInstanceArgs]] = 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) -> ScalingGroup
    func 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: volcenginecc: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.
    The following state arguments are supported:
    ActiveScalingConfigurationId string
    ID of the scaling configuration bound to the scaling group
    CreatedTime string
    Scaling group creation time
    DbInstanceIds List<string>
    ID of the RDS database instance.
    DefaultCooldown int
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    DesireInstanceNumber int
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    HealthCheckType string
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    InstanceRemovePolicies List<Volcengine.ScalingGroupInstanceRemovePolicy>
    InstanceTerminatePolicy string
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    Instances List<Volcengine.ScalingGroupInstance>
    InstancesDistribution Volcengine.ScalingGroupInstancesDistribution
    Instance distribution policy.
    IsEnableScalingGroup bool
    Whether to enable the scaling group. true: enabled. false: stopped
    LaunchTemplateId string
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    LaunchTemplateOverrides List<Volcengine.ScalingGroupLaunchTemplateOverride>
    LaunchTemplateVersion string
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    LifecycleState string
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    LoadBalancerHealthCheckGracePeriod int
    Grace period for CLB health checks on scaling group instances
    MaxInstanceNumber int
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    MinInstanceNumber int
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    MultiAzPolicy string
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    ProjectName string
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    ScalingGroupId string
    Scaling group ID.
    ScalingGroupName string
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    ScalingMode string
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    ServerGroupAttributes List<Volcengine.ScalingGroupServerGroupAttribute>
    StoppedInstanceCount int
    Number of instances in the scaling group that are in the disabled state.
    SubnetIds List<string>
    List of subnet IDs for the primary network interface of instances in the scaling group
    SuspendedProcesses List<string>
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    Tags List<Volcengine.ScalingGroupTag>
    TotalInstanceCount int
    Number of instances currently in the scaling group
    UpdatedTime string
    Scaling group update time.
    VpcId string
    VPC ID to which the scaling group belongs
    ActiveScalingConfigurationId string
    ID of the scaling configuration bound to the scaling group
    CreatedTime string
    Scaling group creation time
    DbInstanceIds []string
    ID of the RDS database instance.
    DefaultCooldown int
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    DesireInstanceNumber int
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    HealthCheckType string
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    InstanceRemovePolicies []ScalingGroupInstanceRemovePolicyArgs
    InstanceTerminatePolicy string
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    Instances []ScalingGroupInstanceArgs
    InstancesDistribution ScalingGroupInstancesDistributionArgs
    Instance distribution policy.
    IsEnableScalingGroup bool
    Whether to enable the scaling group. true: enabled. false: stopped
    LaunchTemplateId string
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    LaunchTemplateOverrides []ScalingGroupLaunchTemplateOverrideArgs
    LaunchTemplateVersion string
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    LifecycleState string
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    LoadBalancerHealthCheckGracePeriod int
    Grace period for CLB health checks on scaling group instances
    MaxInstanceNumber int
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    MinInstanceNumber int
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    MultiAzPolicy string
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    ProjectName string
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    ScalingGroupId string
    Scaling group ID.
    ScalingGroupName string
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    ScalingMode string
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    ServerGroupAttributes []ScalingGroupServerGroupAttributeArgs
    StoppedInstanceCount int
    Number of instances in the scaling group that are in the disabled state.
    SubnetIds []string
    List of subnet IDs for the primary network interface of instances in the scaling group
    SuspendedProcesses []string
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    Tags []ScalingGroupTagArgs
    TotalInstanceCount int
    Number of instances currently in the scaling group
    UpdatedTime string
    Scaling group update time.
    VpcId string
    VPC ID to which the scaling group belongs
    activeScalingConfigurationId String
    ID of the scaling configuration bound to the scaling group
    createdTime String
    Scaling group creation time
    dbInstanceIds List<String>
    ID of the RDS database instance.
    defaultCooldown Integer
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    desireInstanceNumber Integer
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    healthCheckType String
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    instanceRemovePolicies List<ScalingGroupInstanceRemovePolicy>
    instanceTerminatePolicy String
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    instances List<ScalingGroupInstance>
    instancesDistribution ScalingGroupInstancesDistribution
    Instance distribution policy.
    isEnableScalingGroup Boolean
    Whether to enable the scaling group. true: enabled. false: stopped
    launchTemplateId String
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    launchTemplateOverrides List<ScalingGroupLaunchTemplateOverride>
    launchTemplateVersion String
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    lifecycleState String
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    loadBalancerHealthCheckGracePeriod Integer
    Grace period for CLB health checks on scaling group instances
    maxInstanceNumber Integer
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    minInstanceNumber Integer
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    multiAzPolicy String
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    projectName String
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    scalingGroupId String
    Scaling group ID.
    scalingGroupName String
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    scalingMode String
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    serverGroupAttributes List<ScalingGroupServerGroupAttribute>
    stoppedInstanceCount Integer
    Number of instances in the scaling group that are in the disabled state.
    subnetIds List<String>
    List of subnet IDs for the primary network interface of instances in the scaling group
    suspendedProcesses List<String>
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    tags List<ScalingGroupTag>
    totalInstanceCount Integer
    Number of instances currently in the scaling group
    updatedTime String
    Scaling group update time.
    vpcId String
    VPC ID to which the scaling group belongs
    activeScalingConfigurationId string
    ID of the scaling configuration bound to the scaling group
    createdTime string
    Scaling group creation time
    dbInstanceIds string[]
    ID of the RDS database instance.
    defaultCooldown number
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    desireInstanceNumber number
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    healthCheckType string
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    instanceRemovePolicies ScalingGroupInstanceRemovePolicy[]
    instanceTerminatePolicy string
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    instances ScalingGroupInstance[]
    instancesDistribution ScalingGroupInstancesDistribution
    Instance distribution policy.
    isEnableScalingGroup boolean
    Whether to enable the scaling group. true: enabled. false: stopped
    launchTemplateId string
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    launchTemplateOverrides ScalingGroupLaunchTemplateOverride[]
    launchTemplateVersion string
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    lifecycleState string
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    loadBalancerHealthCheckGracePeriod number
    Grace period for CLB health checks on scaling group instances
    maxInstanceNumber number
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    minInstanceNumber number
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    multiAzPolicy string
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    projectName string
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    scalingGroupId string
    Scaling group ID.
    scalingGroupName string
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    scalingMode string
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    serverGroupAttributes ScalingGroupServerGroupAttribute[]
    stoppedInstanceCount number
    Number of instances in the scaling group that are in the disabled state.
    subnetIds string[]
    List of subnet IDs for the primary network interface of instances in the scaling group
    suspendedProcesses string[]
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    tags ScalingGroupTag[]
    totalInstanceCount number
    Number of instances currently in the scaling group
    updatedTime string
    Scaling group update time.
    vpcId string
    VPC ID to which the scaling group belongs
    active_scaling_configuration_id str
    ID of the scaling configuration bound to the scaling group
    created_time str
    Scaling group creation time
    db_instance_ids Sequence[str]
    ID of the RDS database instance.
    default_cooldown int
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    desire_instance_number int
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    health_check_type str
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    instance_remove_policies Sequence[ScalingGroupInstanceRemovePolicyArgs]
    instance_terminate_policy str
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    instances Sequence[ScalingGroupInstanceArgs]
    instances_distribution ScalingGroupInstancesDistributionArgs
    Instance distribution policy.
    is_enable_scaling_group bool
    Whether to enable the scaling group. true: enabled. false: stopped
    launch_template_id str
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    launch_template_overrides Sequence[ScalingGroupLaunchTemplateOverrideArgs]
    launch_template_version str
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    lifecycle_state str
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    load_balancer_health_check_grace_period int
    Grace period for CLB health checks on scaling group instances
    max_instance_number int
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    min_instance_number int
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    multi_az_policy str
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    project_name str
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    scaling_group_id str
    Scaling group ID.
    scaling_group_name str
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    scaling_mode str
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    server_group_attributes Sequence[ScalingGroupServerGroupAttributeArgs]
    stopped_instance_count int
    Number of instances in the scaling group that are in the disabled state.
    subnet_ids Sequence[str]
    List of subnet IDs for the primary network interface of instances in the scaling group
    suspended_processes Sequence[str]
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    tags Sequence[ScalingGroupTagArgs]
    total_instance_count int
    Number of instances currently in the scaling group
    updated_time str
    Scaling group update time.
    vpc_id str
    VPC ID to which the scaling group belongs
    activeScalingConfigurationId String
    ID of the scaling configuration bound to the scaling group
    createdTime String
    Scaling group creation time
    dbInstanceIds List<String>
    ID of the RDS database instance.
    defaultCooldown Number
    Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300.
    desireInstanceNumber Number
    Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances.
    healthCheckType String
    Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group.
    instanceRemovePolicies List<Property Map>
    instanceTerminatePolicy String
    Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group.
    instances List<Property Map>
    instancesDistribution Property Map
    Instance distribution policy.
    isEnableScalingGroup Boolean
    Whether to enable the scaling group. true: enabled. false: stopped
    launchTemplateId String
    Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration.
    launchTemplateOverrides List<Property Map>
    launchTemplateVersion String
    Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version.
    lifecycleState String
    Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status.
    loadBalancerHealthCheckGracePeriod Number
    Grace period for CLB health checks on scaling group instances
    maxInstanceNumber Number
    Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center.
    minInstanceNumber Number
    Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center.
    multiAzPolicy String
    Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy.
    projectName String
    Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters.
    scalingGroupId String
    Scaling group ID.
    scalingGroupName String
    Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported.
    scalingMode String
    Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode.
    serverGroupAttributes List<Property Map>
    stoppedInstanceCount Number
    Number of instances in the scaling group that are in the disabled state.
    subnetIds List<String>
    List of subnet IDs for the primary network interface of instances in the scaling group
    suspendedProcesses List<String>
    Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task.
    tags List<Property Map>
    totalInstanceCount Number
    Number of instances currently in the scaling group
    updatedTime String
    Scaling group update time.
    vpcId String
    VPC ID to which the scaling group belongs

    Supporting Types

    ScalingGroupInstance, ScalingGroupInstanceArgs

    CreatedTime string
    Time when the instance joined the scaling group
    CreationType string
    How the instance joined the scaling group (Attached / AutoCreated)
    Entrusted bool
    Whether to enable managed mode for the instance when AttachInstances is performed
    InstanceId string
    ECS instance ID, unique identifier of the subresource
    LaunchTemplateId string
    Launch template ID used by the instance
    LaunchTemplateVersion string
    Launch template version used by the instance
    LifecycleHook bool
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    ScalingConfigurationId string
    Scaling configuration ID associated with the instance
    ScalingPolicyId string
    Scaling policy ID associated with the instance
    Status string
    Current status of the instance in the scaling group
    ZoneId string
    Availability zone of the instance
    CreatedTime string
    Time when the instance joined the scaling group
    CreationType string
    How the instance joined the scaling group (Attached / AutoCreated)
    Entrusted bool
    Whether to enable managed mode for the instance when AttachInstances is performed
    InstanceId string
    ECS instance ID, unique identifier of the subresource
    LaunchTemplateId string
    Launch template ID used by the instance
    LaunchTemplateVersion string
    Launch template version used by the instance
    LifecycleHook bool
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    ScalingConfigurationId string
    Scaling configuration ID associated with the instance
    ScalingPolicyId string
    Scaling policy ID associated with the instance
    Status string
    Current status of the instance in the scaling group
    ZoneId string
    Availability zone of the instance
    createdTime String
    Time when the instance joined the scaling group
    creationType String
    How the instance joined the scaling group (Attached / AutoCreated)
    entrusted Boolean
    Whether to enable managed mode for the instance when AttachInstances is performed
    instanceId String
    ECS instance ID, unique identifier of the subresource
    launchTemplateId String
    Launch template ID used by the instance
    launchTemplateVersion String
    Launch template version used by the instance
    lifecycleHook Boolean
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    scalingConfigurationId String
    Scaling configuration ID associated with the instance
    scalingPolicyId String
    Scaling policy ID associated with the instance
    status String
    Current status of the instance in the scaling group
    zoneId String
    Availability zone of the instance
    createdTime string
    Time when the instance joined the scaling group
    creationType string
    How the instance joined the scaling group (Attached / AutoCreated)
    entrusted boolean
    Whether to enable managed mode for the instance when AttachInstances is performed
    instanceId string
    ECS instance ID, unique identifier of the subresource
    launchTemplateId string
    Launch template ID used by the instance
    launchTemplateVersion string
    Launch template version used by the instance
    lifecycleHook boolean
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    scalingConfigurationId string
    Scaling configuration ID associated with the instance
    scalingPolicyId string
    Scaling policy ID associated with the instance
    status string
    Current status of the instance in the scaling group
    zoneId string
    Availability zone of the instance
    created_time str
    Time when the instance joined the scaling group
    creation_type str
    How the instance joined the scaling group (Attached / AutoCreated)
    entrusted bool
    Whether to enable managed mode for the instance when AttachInstances is performed
    instance_id str
    ECS instance ID, unique identifier of the subresource
    launch_template_id str
    Launch template ID used by the instance
    launch_template_version str
    Launch template version used by the instance
    lifecycle_hook bool
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    scaling_configuration_id str
    Scaling configuration ID associated with the instance
    scaling_policy_id str
    Scaling policy ID associated with the instance
    status str
    Current status of the instance in the scaling group
    zone_id str
    Availability zone of the instance
    createdTime String
    Time when the instance joined the scaling group
    creationType String
    How the instance joined the scaling group (Attached / AutoCreated)
    entrusted Boolean
    Whether to enable managed mode for the instance when AttachInstances is performed
    instanceId String
    ECS instance ID, unique identifier of the subresource
    launchTemplateId String
    Launch template ID used by the instance
    launchTemplateVersion String
    Launch template version used by the instance
    lifecycleHook Boolean
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    scalingConfigurationId String
    Scaling configuration ID associated with the instance
    scalingPolicyId String
    Scaling policy ID associated with the instance
    status String
    Current status of the instance in the scaling group
    zoneId String
    Availability zone of the instance

    ScalingGroupInstanceRemovePolicy, ScalingGroupInstanceRemovePolicyArgs

    DecreaseDesiredCapacity bool
    Whether to decrease the desired instance count synchronously when DetachInstances or RemoveInstances is performed
    DetachOption string
    Instance removal policy for DetachInstances
    ForceDelete bool
    Whether to force delete the instance when RemoveInstances is performed
    InstanceId string
    ECS instance ID, unique identifier of the subresource
    LifecycleHook bool
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    Mode string
    Mode: How to handle an instance when it is removed from the scaling group: Detach means only remove from the scaling group, Remove means remove and delete the instance
    RemoveMode string
    Removal mode for RemoveInstances
    DecreaseDesiredCapacity bool
    Whether to decrease the desired instance count synchronously when DetachInstances or RemoveInstances is performed
    DetachOption string
    Instance removal policy for DetachInstances
    ForceDelete bool
    Whether to force delete the instance when RemoveInstances is performed
    InstanceId string
    ECS instance ID, unique identifier of the subresource
    LifecycleHook bool
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    Mode string
    Mode: How to handle an instance when it is removed from the scaling group: Detach means only remove from the scaling group, Remove means remove and delete the instance
    RemoveMode string
    Removal mode for RemoveInstances
    decreaseDesiredCapacity Boolean
    Whether to decrease the desired instance count synchronously when DetachInstances or RemoveInstances is performed
    detachOption String
    Instance removal policy for DetachInstances
    forceDelete Boolean
    Whether to force delete the instance when RemoveInstances is performed
    instanceId String
    ECS instance ID, unique identifier of the subresource
    lifecycleHook Boolean
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    mode String
    Mode: How to handle an instance when it is removed from the scaling group: Detach means only remove from the scaling group, Remove means remove and delete the instance
    removeMode String
    Removal mode for RemoveInstances
    decreaseDesiredCapacity boolean
    Whether to decrease the desired instance count synchronously when DetachInstances or RemoveInstances is performed
    detachOption string
    Instance removal policy for DetachInstances
    forceDelete boolean
    Whether to force delete the instance when RemoveInstances is performed
    instanceId string
    ECS instance ID, unique identifier of the subresource
    lifecycleHook boolean
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    mode string
    Mode: How to handle an instance when it is removed from the scaling group: Detach means only remove from the scaling group, Remove means remove and delete the instance
    removeMode string
    Removal mode for RemoveInstances
    decrease_desired_capacity bool
    Whether to decrease the desired instance count synchronously when DetachInstances or RemoveInstances is performed
    detach_option str
    Instance removal policy for DetachInstances
    force_delete bool
    Whether to force delete the instance when RemoveInstances is performed
    instance_id str
    ECS instance ID, unique identifier of the subresource
    lifecycle_hook bool
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    mode str
    Mode: How to handle an instance when it is removed from the scaling group: Detach means only remove from the scaling group, Remove means remove and delete the instance
    remove_mode str
    Removal mode for RemoveInstances
    decreaseDesiredCapacity Boolean
    Whether to decrease the desired instance count synchronously when DetachInstances or RemoveInstances is performed
    detachOption String
    Instance removal policy for DetachInstances
    forceDelete Boolean
    Whether to force delete the instance when RemoveInstances is performed
    instanceId String
    ECS instance ID, unique identifier of the subresource
    lifecycleHook Boolean
    Whether to trigger lifecycle hooks when the instance is attached, detached, or removed
    mode String
    Mode: How to handle an instance when it is removed from the scaling group: Detach means only remove from the scaling group, Remove means remove and delete the instance
    removeMode String
    Removal mode for RemoveInstances

    ScalingGroupInstancesDistribution, ScalingGroupInstancesDistributionArgs

    CompensateWithOnDemand bool
    Whether pay-as-you-go instances are allowed to supplement spot capacity if spot instances cannot be created due to price or inventory constraints. true: allowed. false (default): not allowed.
    OnDemandBaseCapacity int
    Minimum number of pay-as-you-go instances in the scaling group. Value range: 0~2000. If the number of pay-as-you-go instances in the group is less than this value, pay-as-you-go instances will be prioritized for creation.
    OnDemandPercentageAboveBaseCapacity int
    After the scaling group meets the minimum number of pay-as-you-go instances, the proportion of pay-as-you-go instances among the excess instances. Value range: 0–100.
    SpotInstanceRemedy bool
    Whether to allow preemptible instance replacement upon expiration. If enabled, the scaling group will proactively create a new preemptible instance to replace the current one about 5 minutes before the preemptible instance is reclaimed. true: allowed. false (default): not allowed.
    CompensateWithOnDemand bool
    Whether pay-as-you-go instances are allowed to supplement spot capacity if spot instances cannot be created due to price or inventory constraints. true: allowed. false (default): not allowed.
    OnDemandBaseCapacity int
    Minimum number of pay-as-you-go instances in the scaling group. Value range: 0~2000. If the number of pay-as-you-go instances in the group is less than this value, pay-as-you-go instances will be prioritized for creation.
    OnDemandPercentageAboveBaseCapacity int
    After the scaling group meets the minimum number of pay-as-you-go instances, the proportion of pay-as-you-go instances among the excess instances. Value range: 0–100.
    SpotInstanceRemedy bool
    Whether to allow preemptible instance replacement upon expiration. If enabled, the scaling group will proactively create a new preemptible instance to replace the current one about 5 minutes before the preemptible instance is reclaimed. true: allowed. false (default): not allowed.
    compensateWithOnDemand Boolean
    Whether pay-as-you-go instances are allowed to supplement spot capacity if spot instances cannot be created due to price or inventory constraints. true: allowed. false (default): not allowed.
    onDemandBaseCapacity Integer
    Minimum number of pay-as-you-go instances in the scaling group. Value range: 0~2000. If the number of pay-as-you-go instances in the group is less than this value, pay-as-you-go instances will be prioritized for creation.
    onDemandPercentageAboveBaseCapacity Integer
    After the scaling group meets the minimum number of pay-as-you-go instances, the proportion of pay-as-you-go instances among the excess instances. Value range: 0–100.
    spotInstanceRemedy Boolean
    Whether to allow preemptible instance replacement upon expiration. If enabled, the scaling group will proactively create a new preemptible instance to replace the current one about 5 minutes before the preemptible instance is reclaimed. true: allowed. false (default): not allowed.
    compensateWithOnDemand boolean
    Whether pay-as-you-go instances are allowed to supplement spot capacity if spot instances cannot be created due to price or inventory constraints. true: allowed. false (default): not allowed.
    onDemandBaseCapacity number
    Minimum number of pay-as-you-go instances in the scaling group. Value range: 0~2000. If the number of pay-as-you-go instances in the group is less than this value, pay-as-you-go instances will be prioritized for creation.
    onDemandPercentageAboveBaseCapacity number
    After the scaling group meets the minimum number of pay-as-you-go instances, the proportion of pay-as-you-go instances among the excess instances. Value range: 0–100.
    spotInstanceRemedy boolean
    Whether to allow preemptible instance replacement upon expiration. If enabled, the scaling group will proactively create a new preemptible instance to replace the current one about 5 minutes before the preemptible instance is reclaimed. true: allowed. false (default): not allowed.
    compensate_with_on_demand bool
    Whether pay-as-you-go instances are allowed to supplement spot capacity if spot instances cannot be created due to price or inventory constraints. true: allowed. false (default): not allowed.
    on_demand_base_capacity int
    Minimum number of pay-as-you-go instances in the scaling group. Value range: 0~2000. If the number of pay-as-you-go instances in the group is less than this value, pay-as-you-go instances will be prioritized for creation.
    on_demand_percentage_above_base_capacity int
    After the scaling group meets the minimum number of pay-as-you-go instances, the proportion of pay-as-you-go instances among the excess instances. Value range: 0–100.
    spot_instance_remedy bool
    Whether to allow preemptible instance replacement upon expiration. If enabled, the scaling group will proactively create a new preemptible instance to replace the current one about 5 minutes before the preemptible instance is reclaimed. true: allowed. false (default): not allowed.
    compensateWithOnDemand Boolean
    Whether pay-as-you-go instances are allowed to supplement spot capacity if spot instances cannot be created due to price or inventory constraints. true: allowed. false (default): not allowed.
    onDemandBaseCapacity Number
    Minimum number of pay-as-you-go instances in the scaling group. Value range: 0~2000. If the number of pay-as-you-go instances in the group is less than this value, pay-as-you-go instances will be prioritized for creation.
    onDemandPercentageAboveBaseCapacity Number
    After the scaling group meets the minimum number of pay-as-you-go instances, the proportion of pay-as-you-go instances among the excess instances. Value range: 0–100.
    spotInstanceRemedy Boolean
    Whether to allow preemptible instance replacement upon expiration. If enabled, the scaling group will proactively create a new preemptible instance to replace the current one about 5 minutes before the preemptible instance is reclaimed. true: allowed. false (default): not allowed.

    ScalingGroupLaunchTemplateOverride, ScalingGroupLaunchTemplateOverrideArgs

    InstanceType string
    Specify the instance type. This parameter is valid only when the LaunchTemplateId parameter is set.
    PriceLimit double
    Specify the maximum hourly price for spot instance types. This parameter is valid only when the LaunchTemplateId parameter is set and the launch template's billing mode is SpotWithPriceLimit.
    InstanceType string
    Specify the instance type. This parameter is valid only when the LaunchTemplateId parameter is set.
    PriceLimit float64
    Specify the maximum hourly price for spot instance types. This parameter is valid only when the LaunchTemplateId parameter is set and the launch template's billing mode is SpotWithPriceLimit.
    instanceType String
    Specify the instance type. This parameter is valid only when the LaunchTemplateId parameter is set.
    priceLimit Double
    Specify the maximum hourly price for spot instance types. This parameter is valid only when the LaunchTemplateId parameter is set and the launch template's billing mode is SpotWithPriceLimit.
    instanceType string
    Specify the instance type. This parameter is valid only when the LaunchTemplateId parameter is set.
    priceLimit number
    Specify the maximum hourly price for spot instance types. This parameter is valid only when the LaunchTemplateId parameter is set and the launch template's billing mode is SpotWithPriceLimit.
    instance_type str
    Specify the instance type. This parameter is valid only when the LaunchTemplateId parameter is set.
    price_limit float
    Specify the maximum hourly price for spot instance types. This parameter is valid only when the LaunchTemplateId parameter is set and the launch template's billing mode is SpotWithPriceLimit.
    instanceType String
    Specify the instance type. This parameter is valid only when the LaunchTemplateId parameter is set.
    priceLimit Number
    Specify the maximum hourly price for spot instance types. This parameter is valid only when the LaunchTemplateId parameter is set and the launch template's billing mode is SpotWithPriceLimit.

    ScalingGroupServerGroupAttribute, ScalingGroupServerGroupAttributeArgs

    Port int
    Port number of the server in the backend server group for load balancing. Range: 1–65535.
    ServerGroupId string
    Backend server group ID for load balancing.
    Type string
    Load balancing server group type. A single CLB/ALB supports up to 20 backend server groups, and the total number of backend servers supported by all CLB/ALB is 100. ALB: Application Load Balancer. CLB: Classic Load Balancer (default).
    Weight int
    Weight of servers in the backend server group of the load balancer
    Port int
    Port number of the server in the backend server group for load balancing. Range: 1–65535.
    ServerGroupId string
    Backend server group ID for load balancing.
    Type string
    Load balancing server group type. A single CLB/ALB supports up to 20 backend server groups, and the total number of backend servers supported by all CLB/ALB is 100. ALB: Application Load Balancer. CLB: Classic Load Balancer (default).
    Weight int
    Weight of servers in the backend server group of the load balancer
    port Integer
    Port number of the server in the backend server group for load balancing. Range: 1–65535.
    serverGroupId String
    Backend server group ID for load balancing.
    type String
    Load balancing server group type. A single CLB/ALB supports up to 20 backend server groups, and the total number of backend servers supported by all CLB/ALB is 100. ALB: Application Load Balancer. CLB: Classic Load Balancer (default).
    weight Integer
    Weight of servers in the backend server group of the load balancer
    port number
    Port number of the server in the backend server group for load balancing. Range: 1–65535.
    serverGroupId string
    Backend server group ID for load balancing.
    type string
    Load balancing server group type. A single CLB/ALB supports up to 20 backend server groups, and the total number of backend servers supported by all CLB/ALB is 100. ALB: Application Load Balancer. CLB: Classic Load Balancer (default).
    weight number
    Weight of servers in the backend server group of the load balancer
    port int
    Port number of the server in the backend server group for load balancing. Range: 1–65535.
    server_group_id str
    Backend server group ID for load balancing.
    type str
    Load balancing server group type. A single CLB/ALB supports up to 20 backend server groups, and the total number of backend servers supported by all CLB/ALB is 100. ALB: Application Load Balancer. CLB: Classic Load Balancer (default).
    weight int
    Weight of servers in the backend server group of the load balancer
    port Number
    Port number of the server in the backend server group for load balancing. Range: 1–65535.
    serverGroupId String
    Backend server group ID for load balancing.
    type String
    Load balancing server group type. A single CLB/ALB supports up to 20 backend server groups, and the total number of backend servers supported by all CLB/ALB is 100. ALB: Application Load Balancer. CLB: Classic Load Balancer (default).
    weight Number
    Weight of servers in the backend server group of the load balancer

    ScalingGroupTag, ScalingGroupTagArgs

    Key string
    User label tag key
    Value string
    The value of the user tag.
    Key string
    User label tag key
    Value string
    The value of the user tag.
    key String
    User label tag key
    value String
    The value of the user tag.
    key string
    User label tag key
    value string
    The value of the user tag.
    key str
    User label tag key
    value str
    The value of the user tag.
    key String
    User label tag key
    value String
    The value of the user tag.

    Import

    $ pulumi import volcenginecc:autoscaling/scalingGroup:ScalingGroup example "scaling_group_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.