1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ess
  5. getScalingGroups
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.ess.getScalingGroups

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides available scaling group resources.

NOTE: Available since v1.39.0

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";

const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const defaultInteger = new random.index.Integer("default", {
    min: 10000,
    max: 99999,
});
const myName = `${name}-${defaultInteger.result}`;
const _default = alicloud.getZones({
    availableDiskCategory: "cloud_efficiency",
    availableResourceCreation: "VSwitch",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
    vpcName: myName,
    cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
    vpcId: defaultNetwork.id,
    cidrBlock: "172.16.0.0/24",
    zoneId: _default.then(_default => _default.zones?.[0]?.id),
    vswitchName: myName,
});
const defaultScalingGroup = new alicloud.ess.ScalingGroup("default", {
    minSize: 1,
    maxSize: 1,
    scalingGroupName: myName,
    removalPolicies: [
        "OldestInstance",
        "NewestInstance",
    ],
    vswitchIds: [defaultSwitch.id],
});
const scalinggroupsDs = alicloud.ess.getScalingGroupsOutput({
    ids: [defaultScalingGroup.id],
    nameRegex: myName,
});
export const firstScalingGroup = scalinggroupsDs.apply(scalinggroupsDs => scalinggroupsDs.groups?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "terraform-example"
default_integer = random.index.Integer("default",
    min=10000,
    max=99999)
my_name = f"{name}-{default_integer['result']}"
default = alicloud.get_zones(available_disk_category="cloud_efficiency",
    available_resource_creation="VSwitch")
default_network = alicloud.vpc.Network("default",
    vpc_name=my_name,
    cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("default",
    vpc_id=default_network.id,
    cidr_block="172.16.0.0/24",
    zone_id=default.zones[0].id,
    vswitch_name=my_name)
default_scaling_group = alicloud.ess.ScalingGroup("default",
    min_size=1,
    max_size=1,
    scaling_group_name=my_name,
    removal_policies=[
        "OldestInstance",
        "NewestInstance",
    ],
    vswitch_ids=[default_switch.id])
scalinggroups_ds = alicloud.ess.get_scaling_groups_output(ids=[default_scaling_group.id],
    name_regex=my_name)
pulumi.export("firstScalingGroup", scalinggroups_ds.groups[0].id)
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ess"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		myName := fmt.Sprintf("%v-%v", name, defaultInteger.Result)
		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableDiskCategory:     pulumi.StringRef("cloud_efficiency"),
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			VpcName:   pulumi.String(myName),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
			VpcId:       defaultNetwork.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/24"),
			ZoneId:      pulumi.String(_default.Zones[0].Id),
			VswitchName: pulumi.String(myName),
		})
		if err != nil {
			return err
		}
		defaultScalingGroup, err := ess.NewScalingGroup(ctx, "default", &ess.ScalingGroupArgs{
			MinSize:          pulumi.Int(1),
			MaxSize:          pulumi.Int(1),
			ScalingGroupName: pulumi.String(myName),
			RemovalPolicies: pulumi.StringArray{
				pulumi.String("OldestInstance"),
				pulumi.String("NewestInstance"),
			},
			VswitchIds: pulumi.StringArray{
				defaultSwitch.ID(),
			},
		})
		if err != nil {
			return err
		}
		scalinggroupsDs := ess.GetScalingGroupsOutput(ctx, ess.GetScalingGroupsOutputArgs{
			Ids: pulumi.StringArray{
				defaultScalingGroup.ID(),
			},
			NameRegex: pulumi.String(myName),
		}, nil)
		ctx.Export("firstScalingGroup", scalinggroupsDs.ApplyT(func(scalinggroupsDs ess.GetScalingGroupsResult) (*string, error) {
			return &scalinggroupsDs.Groups[0].Id, nil
		}).(pulumi.StringPtrOutput))
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "terraform-example";
    var defaultInteger = new Random.Index.Integer("default", new()
    {
        Min = 10000,
        Max = 99999,
    });

    var myName = $"{name}-{defaultInteger.Result}";

    var @default = AliCloud.GetZones.Invoke(new()
    {
        AvailableDiskCategory = "cloud_efficiency",
        AvailableResourceCreation = "VSwitch",
    });

    var defaultNetwork = new AliCloud.Vpc.Network("default", new()
    {
        VpcName = myName,
        CidrBlock = "172.16.0.0/16",
    });

    var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
    {
        VpcId = defaultNetwork.Id,
        CidrBlock = "172.16.0.0/24",
        ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
        VswitchName = myName,
    });

    var defaultScalingGroup = new AliCloud.Ess.ScalingGroup("default", new()
    {
        MinSize = 1,
        MaxSize = 1,
        ScalingGroupName = myName,
        RemovalPolicies = new[]
        {
            "OldestInstance",
            "NewestInstance",
        },
        VswitchIds = new[]
        {
            defaultSwitch.Id,
        },
    });

    var scalinggroupsDs = AliCloud.Ess.GetScalingGroups.Invoke(new()
    {
        Ids = new[]
        {
            defaultScalingGroup.Id,
        },
        NameRegex = myName,
    });

    return new Dictionary<string, object?>
    {
        ["firstScalingGroup"] = scalinggroupsDs.Apply(getScalingGroupsResult => getScalingGroupsResult.Groups[0]?.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ess.ScalingGroup;
import com.pulumi.alicloud.ess.ScalingGroupArgs;
import com.pulumi.alicloud.ess.EssFunctions;
import com.pulumi.alicloud.ess.inputs.GetScalingGroupsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var config = ctx.config();
        final var name = config.get("name").orElse("terraform-example");
        var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
            .min(10000)
            .max(99999)
            .build());

        final var myName = String.format("%s-%s", name,defaultInteger.result());

        final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
            .availableDiskCategory("cloud_efficiency")
            .availableResourceCreation("VSwitch")
            .build());

        var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
            .vpcName(myName)
            .cidrBlock("172.16.0.0/16")
            .build());

        var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
            .vpcId(defaultNetwork.id())
            .cidrBlock("172.16.0.0/24")
            .zoneId(default_.zones()[0].id())
            .vswitchName(myName)
            .build());

        var defaultScalingGroup = new ScalingGroup("defaultScalingGroup", ScalingGroupArgs.builder()
            .minSize(1)
            .maxSize(1)
            .scalingGroupName(myName)
            .removalPolicies(            
                "OldestInstance",
                "NewestInstance")
            .vswitchIds(defaultSwitch.id())
            .build());

        final var scalinggroupsDs = EssFunctions.getScalingGroups(GetScalingGroupsArgs.builder()
            .ids(defaultScalingGroup.id())
            .nameRegex(myName)
            .build());

        ctx.export("firstScalingGroup", scalinggroupsDs.applyValue(getScalingGroupsResult -> getScalingGroupsResult).applyValue(scalinggroupsDs -> scalinggroupsDs.applyValue(getScalingGroupsResult -> getScalingGroupsResult.groups()[0].id())));
    }
}
Copy
configuration:
  name:
    type: string
    default: terraform-example
resources:
  defaultInteger:
    type: random:integer
    name: default
    properties:
      min: 10000
      max: 99999
  defaultNetwork:
    type: alicloud:vpc:Network
    name: default
    properties:
      vpcName: ${myName}
      cidrBlock: 172.16.0.0/16
  defaultSwitch:
    type: alicloud:vpc:Switch
    name: default
    properties:
      vpcId: ${defaultNetwork.id}
      cidrBlock: 172.16.0.0/24
      zoneId: ${default.zones[0].id}
      vswitchName: ${myName}
  defaultScalingGroup:
    type: alicloud:ess:ScalingGroup
    name: default
    properties:
      minSize: 1
      maxSize: 1
      scalingGroupName: ${myName}
      removalPolicies:
        - OldestInstance
        - NewestInstance
      vswitchIds:
        - ${defaultSwitch.id}
variables:
  myName: ${name}-${defaultInteger.result}
  default:
    fn::invoke:
      function: alicloud:getZones
      arguments:
        availableDiskCategory: cloud_efficiency
        availableResourceCreation: VSwitch
  scalinggroupsDs:
    fn::invoke:
      function: alicloud:ess:getScalingGroups
      arguments:
        ids:
          - ${defaultScalingGroup.id}
        nameRegex: ${myName}
outputs:
  firstScalingGroup: ${scalinggroupsDs.groups[0].id}
Copy

Using getScalingGroups

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getScalingGroups(args: GetScalingGroupsArgs, opts?: InvokeOptions): Promise<GetScalingGroupsResult>
function getScalingGroupsOutput(args: GetScalingGroupsOutputArgs, opts?: InvokeOptions): Output<GetScalingGroupsResult>
Copy
def get_scaling_groups(ids: Optional[Sequence[str]] = None,
                       name_regex: Optional[str] = None,
                       output_file: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetScalingGroupsResult
def get_scaling_groups_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       name_regex: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetScalingGroupsResult]
Copy
func GetScalingGroups(ctx *Context, args *GetScalingGroupsArgs, opts ...InvokeOption) (*GetScalingGroupsResult, error)
func GetScalingGroupsOutput(ctx *Context, args *GetScalingGroupsOutputArgs, opts ...InvokeOption) GetScalingGroupsResultOutput
Copy

> Note: This function is named GetScalingGroups in the Go SDK.

public static class GetScalingGroups 
{
    public static Task<GetScalingGroupsResult> InvokeAsync(GetScalingGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetScalingGroupsResult> Invoke(GetScalingGroupsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetScalingGroupsResult> getScalingGroups(GetScalingGroupsArgs args, InvokeOptions options)
public static Output<GetScalingGroupsResult> getScalingGroups(GetScalingGroupsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:ess/getScalingGroups:getScalingGroups
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
A list of scaling group IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter resulting scaling groups by name.
OutputFile Changes to this property will trigger replacement. string
File name where to save data source results (after running pulumi preview).
Ids Changes to this property will trigger replacement. []string
A list of scaling group IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter resulting scaling groups by name.
OutputFile Changes to this property will trigger replacement. string
File name where to save data source results (after running pulumi preview).
ids Changes to this property will trigger replacement. List<String>
A list of scaling group IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter resulting scaling groups by name.
outputFile Changes to this property will trigger replacement. String
File name where to save data source results (after running pulumi preview).
ids Changes to this property will trigger replacement. string[]
A list of scaling group IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter resulting scaling groups by name.
outputFile Changes to this property will trigger replacement. string
File name where to save data source results (after running pulumi preview).
ids Changes to this property will trigger replacement. Sequence[str]
A list of scaling group IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter resulting scaling groups by name.
output_file Changes to this property will trigger replacement. str
File name where to save data source results (after running pulumi preview).
ids Changes to this property will trigger replacement. List<String>
A list of scaling group IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter resulting scaling groups by name.
outputFile Changes to this property will trigger replacement. String
File name where to save data source results (after running pulumi preview).

getScalingGroups Result

The following output properties are available:

Groups List<Pulumi.AliCloud.Ess.Outputs.GetScalingGroupsGroup>
A list of scaling groups. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
A list of scaling group ids.
Names List<string>
A list of scaling group names.
NameRegex string
OutputFile string
Groups []GetScalingGroupsGroup
A list of scaling groups. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
A list of scaling group ids.
Names []string
A list of scaling group names.
NameRegex string
OutputFile string
groups List<GetScalingGroupsGroup>
A list of scaling groups. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of scaling group ids.
names List<String>
A list of scaling group names.
nameRegex String
outputFile String
groups GetScalingGroupsGroup[]
A list of scaling groups. Each element contains the following attributes:
id string
The provider-assigned unique ID for this managed resource.
ids string[]
A list of scaling group ids.
names string[]
A list of scaling group names.
nameRegex string
outputFile string
groups Sequence[GetScalingGroupsGroup]
A list of scaling groups. Each element contains the following attributes:
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of scaling group ids.
names Sequence[str]
A list of scaling group names.
name_regex str
output_file str
groups List<Property Map>
A list of scaling groups. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of scaling group ids.
names List<String>
A list of scaling group names.
nameRegex String
outputFile String

Supporting Types

GetScalingGroupsGroup

ActiveCapacity This property is required. int
Number of active instances in scaling group.
ActiveScalingConfiguration This property is required. string
Active scaling configuration for scaling group.
AllocationStrategy This property is required. string
(Available since v1.242.0) The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The allocation policy applies to pay-as-you-go and preemptible instances.
AzBalance This property is required. bool
(Available since v1.242.0) Indicates whether instances in the scaling group are evenly distributed across multiple zones.
CooldownTime This property is required. int
Default cooldown time of scaling group.
CreationTime This property is required. string
Creation time of scaling group.
DbInstanceIds This property is required. List<string>
Db instances id which the ECS instance attached to.
DesiredCapacity This property is required. int
(Available since v1.242.0) The expected number of ECS instances in the scaling group. Auto Scaling automatically maintains the expected number of ECS instances that you specified.
EnableDesiredCapacity This property is required. bool
(Available since v1.242.0) Indicates whether the Expected Number of Instances feature is enabled.
GroupDeletionProtection This property is required. bool
Whether the scaling group deletion protection is enabled.
GroupType This property is required. string
(Available since v1.242.0) The type of the instances in the scaling group.
HealthCheckType This property is required. string
The health check method of the scaling group.
Id This property is required. string
ID of the scaling group.
InitCapacity This property is required. int
(Available since v1.242.0) The number of instances that are in the Initialized state and ready to be scaled out in the scaling group.
LaunchTemplateId This property is required. string
Active launch template ID for scaling group.
LaunchTemplateVersion This property is required. string
Version of active launch template.
LifecycleState This property is required. string
Lifecycle state of scaling group.
LoadBalancerIds This property is required. List<string>
Slb instances id which the ECS instance attached to.
MaxInstanceLifetime This property is required. int
(Available since v1.242.0) The maximum life span of each instance in the scaling group. Unit: seconds.
MaxSize This property is required. int
The maximum number of ECS instances.
MinSize This property is required. int
The minimum number of ECS instances.
ModificationTime This property is required. string
The modification time.
MonitorGroupId This property is required. string
(Available since v1.242.0) The ID of the CloudMonitor application group that is associated with the scaling group.
MultiAzPolicy This property is required. string
(Available since v1.242.0) The scaling policy of the multi-zone scaling group of the ECS type.
Name This property is required. string
Name of the scaling group.
OnDemandBaseCapacity This property is required. int
(Available since v1.242.0) The lower limit of the number of pay-as-you-go instances in the scaling group.
OnDemandPercentageAboveBaseCapacity This property is required. int
(Available since v1.242.0) The percentage of pay-as-you-go instances in the excess instances when the minimum number of pay-as-you-go instances is reached. OnDemandBaseCapacity specifies the minimum number of pay-as-you-go instances that must be contained in the scaling group.
PendingCapacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are being added to the scaling group and still being configured.
PendingWaitCapacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are in the Pending Add state in the scaling group.
ProtectedCapacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are in the Protected state in the scaling group.
RegionId This property is required. string
Region ID the scaling group belongs to.
RemovalPolicies This property is required. List<string>
Removal policy used to select the ECS instance to remove from the scaling group.
RemovingCapacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are being removed from the scaling group.
RemovingWaitCapacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are in the Pending Remove state in the scaling group.
ResourceGroupId This property is required. string
(Available since v1.242.0) The ID of the resource group to which the scaling group that you want to query belongs.
ScalingPolicy This property is required. string
(Available since v1.242.0) The reclaim mode of the scaling group.
SpotAllocationStrategy This property is required. string
(Available since v1.242.0) The allocation policy of preemptible instances. This parameter indicates the method used by Auto Scaling to select instance types to create the required number of preemptible instances. This parameter takes effect only if you set multi_az_policy to COMPOSABLE.
SpotCapacity This property is required. int
(Available since v1.242.0) The number of preemptible instances in the scaling group.
SpotInstancePools This property is required. int
(Available since v1.242.0) The number of instance types. Auto Scaling creates preemptible instances of multiple instance types that are provided at the lowest price.
SpotInstanceRemedy This property is required. bool
(Available since v1.242.0) Indicates whether supplementation of preemptible instances is enabled. If this parameter is set to true, Auto Scaling creates an instance to replace a preemptible instance when Auto Scaling receives a system message indicating that the preemptible instance is to be reclaimed.
StandbyCapacity This property is required. int
(Available since v1.242.0) The number of instances that are in the Standby state in the scaling group.
StopInstanceTimeout This property is required. int
(Available since v1.242.0) The period of time that is required by an ECS instance to enter the Stopped state during the scale-in process. Unit: seconds.
StoppedCapacity This property is required. int
(Available since v1.242.0) The number of instances that are in Economical Mode in the scaling group.
SuspendedProcesses This property is required. List<string>
The Process in suspension.
SystemSuspended This property is required. bool
(Available since v1.242.0) Indicates whether Auto Scaling stops executing the scaling operation in the scaling group.
Tags This property is required. Dictionary<string, string>
A mapping of tags to assign to the resource.
TotalCapacity This property is required. int
Number of instances in scaling group.
TotalInstanceCount This property is required. int
The number of all ECS instances in the scaling group.
VpcId This property is required. string
The ID of the VPC to which the scaling group belongs.
VswitchId This property is required. string
The ID of the vSwitch to which the scaling group belongs.
VswitchIds This property is required. List<string>
Vswitches id in which the ECS instance launched.
ActiveCapacity This property is required. int
Number of active instances in scaling group.
ActiveScalingConfiguration This property is required. string
Active scaling configuration for scaling group.
AllocationStrategy This property is required. string
(Available since v1.242.0) The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The allocation policy applies to pay-as-you-go and preemptible instances.
AzBalance This property is required. bool
(Available since v1.242.0) Indicates whether instances in the scaling group are evenly distributed across multiple zones.
CooldownTime This property is required. int
Default cooldown time of scaling group.
CreationTime This property is required. string
Creation time of scaling group.
DbInstanceIds This property is required. []string
Db instances id which the ECS instance attached to.
DesiredCapacity This property is required. int
(Available since v1.242.0) The expected number of ECS instances in the scaling group. Auto Scaling automatically maintains the expected number of ECS instances that you specified.
EnableDesiredCapacity This property is required. bool
(Available since v1.242.0) Indicates whether the Expected Number of Instances feature is enabled.
GroupDeletionProtection This property is required. bool
Whether the scaling group deletion protection is enabled.
GroupType This property is required. string
(Available since v1.242.0) The type of the instances in the scaling group.
HealthCheckType This property is required. string
The health check method of the scaling group.
Id This property is required. string
ID of the scaling group.
InitCapacity This property is required. int
(Available since v1.242.0) The number of instances that are in the Initialized state and ready to be scaled out in the scaling group.
LaunchTemplateId This property is required. string
Active launch template ID for scaling group.
LaunchTemplateVersion This property is required. string
Version of active launch template.
LifecycleState This property is required. string
Lifecycle state of scaling group.
LoadBalancerIds This property is required. []string
Slb instances id which the ECS instance attached to.
MaxInstanceLifetime This property is required. int
(Available since v1.242.0) The maximum life span of each instance in the scaling group. Unit: seconds.
MaxSize This property is required. int
The maximum number of ECS instances.
MinSize This property is required. int
The minimum number of ECS instances.
ModificationTime This property is required. string
The modification time.
MonitorGroupId This property is required. string
(Available since v1.242.0) The ID of the CloudMonitor application group that is associated with the scaling group.
MultiAzPolicy This property is required. string
(Available since v1.242.0) The scaling policy of the multi-zone scaling group of the ECS type.
Name This property is required. string
Name of the scaling group.
OnDemandBaseCapacity This property is required. int
(Available since v1.242.0) The lower limit of the number of pay-as-you-go instances in the scaling group.
OnDemandPercentageAboveBaseCapacity This property is required. int
(Available since v1.242.0) The percentage of pay-as-you-go instances in the excess instances when the minimum number of pay-as-you-go instances is reached. OnDemandBaseCapacity specifies the minimum number of pay-as-you-go instances that must be contained in the scaling group.
PendingCapacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are being added to the scaling group and still being configured.
PendingWaitCapacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are in the Pending Add state in the scaling group.
ProtectedCapacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are in the Protected state in the scaling group.
RegionId This property is required. string
Region ID the scaling group belongs to.
RemovalPolicies This property is required. []string
Removal policy used to select the ECS instance to remove from the scaling group.
RemovingCapacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are being removed from the scaling group.
RemovingWaitCapacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are in the Pending Remove state in the scaling group.
ResourceGroupId This property is required. string
(Available since v1.242.0) The ID of the resource group to which the scaling group that you want to query belongs.
ScalingPolicy This property is required. string
(Available since v1.242.0) The reclaim mode of the scaling group.
SpotAllocationStrategy This property is required. string
(Available since v1.242.0) The allocation policy of preemptible instances. This parameter indicates the method used by Auto Scaling to select instance types to create the required number of preemptible instances. This parameter takes effect only if you set multi_az_policy to COMPOSABLE.
SpotCapacity This property is required. int
(Available since v1.242.0) The number of preemptible instances in the scaling group.
SpotInstancePools This property is required. int
(Available since v1.242.0) The number of instance types. Auto Scaling creates preemptible instances of multiple instance types that are provided at the lowest price.
SpotInstanceRemedy This property is required. bool
(Available since v1.242.0) Indicates whether supplementation of preemptible instances is enabled. If this parameter is set to true, Auto Scaling creates an instance to replace a preemptible instance when Auto Scaling receives a system message indicating that the preemptible instance is to be reclaimed.
StandbyCapacity This property is required. int
(Available since v1.242.0) The number of instances that are in the Standby state in the scaling group.
StopInstanceTimeout This property is required. int
(Available since v1.242.0) The period of time that is required by an ECS instance to enter the Stopped state during the scale-in process. Unit: seconds.
StoppedCapacity This property is required. int
(Available since v1.242.0) The number of instances that are in Economical Mode in the scaling group.
SuspendedProcesses This property is required. []string
The Process in suspension.
SystemSuspended This property is required. bool
(Available since v1.242.0) Indicates whether Auto Scaling stops executing the scaling operation in the scaling group.
Tags This property is required. map[string]string
A mapping of tags to assign to the resource.
TotalCapacity This property is required. int
Number of instances in scaling group.
TotalInstanceCount This property is required. int
The number of all ECS instances in the scaling group.
VpcId This property is required. string
The ID of the VPC to which the scaling group belongs.
VswitchId This property is required. string
The ID of the vSwitch to which the scaling group belongs.
VswitchIds This property is required. []string
Vswitches id in which the ECS instance launched.
activeCapacity This property is required. Integer
Number of active instances in scaling group.
activeScalingConfiguration This property is required. String
Active scaling configuration for scaling group.
allocationStrategy This property is required. String
(Available since v1.242.0) The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The allocation policy applies to pay-as-you-go and preemptible instances.
azBalance This property is required. Boolean
(Available since v1.242.0) Indicates whether instances in the scaling group are evenly distributed across multiple zones.
cooldownTime This property is required. Integer
Default cooldown time of scaling group.
creationTime This property is required. String
Creation time of scaling group.
dbInstanceIds This property is required. List<String>
Db instances id which the ECS instance attached to.
desiredCapacity This property is required. Integer
(Available since v1.242.0) The expected number of ECS instances in the scaling group. Auto Scaling automatically maintains the expected number of ECS instances that you specified.
enableDesiredCapacity This property is required. Boolean
(Available since v1.242.0) Indicates whether the Expected Number of Instances feature is enabled.
groupDeletionProtection This property is required. Boolean
Whether the scaling group deletion protection is enabled.
groupType This property is required. String
(Available since v1.242.0) The type of the instances in the scaling group.
healthCheckType This property is required. String
The health check method of the scaling group.
id This property is required. String
ID of the scaling group.
initCapacity This property is required. Integer
(Available since v1.242.0) The number of instances that are in the Initialized state and ready to be scaled out in the scaling group.
launchTemplateId This property is required. String
Active launch template ID for scaling group.
launchTemplateVersion This property is required. String
Version of active launch template.
lifecycleState This property is required. String
Lifecycle state of scaling group.
loadBalancerIds This property is required. List<String>
Slb instances id which the ECS instance attached to.
maxInstanceLifetime This property is required. Integer
(Available since v1.242.0) The maximum life span of each instance in the scaling group. Unit: seconds.
maxSize This property is required. Integer
The maximum number of ECS instances.
minSize This property is required. Integer
The minimum number of ECS instances.
modificationTime This property is required. String
The modification time.
monitorGroupId This property is required. String
(Available since v1.242.0) The ID of the CloudMonitor application group that is associated with the scaling group.
multiAzPolicy This property is required. String
(Available since v1.242.0) The scaling policy of the multi-zone scaling group of the ECS type.
name This property is required. String
Name of the scaling group.
onDemandBaseCapacity This property is required. Integer
(Available since v1.242.0) The lower limit of the number of pay-as-you-go instances in the scaling group.
onDemandPercentageAboveBaseCapacity This property is required. Integer
(Available since v1.242.0) The percentage of pay-as-you-go instances in the excess instances when the minimum number of pay-as-you-go instances is reached. OnDemandBaseCapacity specifies the minimum number of pay-as-you-go instances that must be contained in the scaling group.
pendingCapacity This property is required. Integer
(Available since v1.242.0) The number of ECS instances that are being added to the scaling group and still being configured.
pendingWaitCapacity This property is required. Integer
(Available since v1.242.0) The number of ECS instances that are in the Pending Add state in the scaling group.
protectedCapacity This property is required. Integer
(Available since v1.242.0) The number of ECS instances that are in the Protected state in the scaling group.
regionId This property is required. String
Region ID the scaling group belongs to.
removalPolicies This property is required. List<String>
Removal policy used to select the ECS instance to remove from the scaling group.
removingCapacity This property is required. Integer
(Available since v1.242.0) The number of ECS instances that are being removed from the scaling group.
removingWaitCapacity This property is required. Integer
(Available since v1.242.0) The number of ECS instances that are in the Pending Remove state in the scaling group.
resourceGroupId This property is required. String
(Available since v1.242.0) The ID of the resource group to which the scaling group that you want to query belongs.
scalingPolicy This property is required. String
(Available since v1.242.0) The reclaim mode of the scaling group.
spotAllocationStrategy This property is required. String
(Available since v1.242.0) The allocation policy of preemptible instances. This parameter indicates the method used by Auto Scaling to select instance types to create the required number of preemptible instances. This parameter takes effect only if you set multi_az_policy to COMPOSABLE.
spotCapacity This property is required. Integer
(Available since v1.242.0) The number of preemptible instances in the scaling group.
spotInstancePools This property is required. Integer
(Available since v1.242.0) The number of instance types. Auto Scaling creates preemptible instances of multiple instance types that are provided at the lowest price.
spotInstanceRemedy This property is required. Boolean
(Available since v1.242.0) Indicates whether supplementation of preemptible instances is enabled. If this parameter is set to true, Auto Scaling creates an instance to replace a preemptible instance when Auto Scaling receives a system message indicating that the preemptible instance is to be reclaimed.
standbyCapacity This property is required. Integer
(Available since v1.242.0) The number of instances that are in the Standby state in the scaling group.
stopInstanceTimeout This property is required. Integer
(Available since v1.242.0) The period of time that is required by an ECS instance to enter the Stopped state during the scale-in process. Unit: seconds.
stoppedCapacity This property is required. Integer
(Available since v1.242.0) The number of instances that are in Economical Mode in the scaling group.
suspendedProcesses This property is required. List<String>
The Process in suspension.
systemSuspended This property is required. Boolean
(Available since v1.242.0) Indicates whether Auto Scaling stops executing the scaling operation in the scaling group.
tags This property is required. Map<String,String>
A mapping of tags to assign to the resource.
totalCapacity This property is required. Integer
Number of instances in scaling group.
totalInstanceCount This property is required. Integer
The number of all ECS instances in the scaling group.
vpcId This property is required. String
The ID of the VPC to which the scaling group belongs.
vswitchId This property is required. String
The ID of the vSwitch to which the scaling group belongs.
vswitchIds This property is required. List<String>
Vswitches id in which the ECS instance launched.
activeCapacity This property is required. number
Number of active instances in scaling group.
activeScalingConfiguration This property is required. string
Active scaling configuration for scaling group.
allocationStrategy This property is required. string
(Available since v1.242.0) The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The allocation policy applies to pay-as-you-go and preemptible instances.
azBalance This property is required. boolean
(Available since v1.242.0) Indicates whether instances in the scaling group are evenly distributed across multiple zones.
cooldownTime This property is required. number
Default cooldown time of scaling group.
creationTime This property is required. string
Creation time of scaling group.
dbInstanceIds This property is required. string[]
Db instances id which the ECS instance attached to.
desiredCapacity This property is required. number
(Available since v1.242.0) The expected number of ECS instances in the scaling group. Auto Scaling automatically maintains the expected number of ECS instances that you specified.
enableDesiredCapacity This property is required. boolean
(Available since v1.242.0) Indicates whether the Expected Number of Instances feature is enabled.
groupDeletionProtection This property is required. boolean
Whether the scaling group deletion protection is enabled.
groupType This property is required. string
(Available since v1.242.0) The type of the instances in the scaling group.
healthCheckType This property is required. string
The health check method of the scaling group.
id This property is required. string
ID of the scaling group.
initCapacity This property is required. number
(Available since v1.242.0) The number of instances that are in the Initialized state and ready to be scaled out in the scaling group.
launchTemplateId This property is required. string
Active launch template ID for scaling group.
launchTemplateVersion This property is required. string
Version of active launch template.
lifecycleState This property is required. string
Lifecycle state of scaling group.
loadBalancerIds This property is required. string[]
Slb instances id which the ECS instance attached to.
maxInstanceLifetime This property is required. number
(Available since v1.242.0) The maximum life span of each instance in the scaling group. Unit: seconds.
maxSize This property is required. number
The maximum number of ECS instances.
minSize This property is required. number
The minimum number of ECS instances.
modificationTime This property is required. string
The modification time.
monitorGroupId This property is required. string
(Available since v1.242.0) The ID of the CloudMonitor application group that is associated with the scaling group.
multiAzPolicy This property is required. string
(Available since v1.242.0) The scaling policy of the multi-zone scaling group of the ECS type.
name This property is required. string
Name of the scaling group.
onDemandBaseCapacity This property is required. number
(Available since v1.242.0) The lower limit of the number of pay-as-you-go instances in the scaling group.
onDemandPercentageAboveBaseCapacity This property is required. number
(Available since v1.242.0) The percentage of pay-as-you-go instances in the excess instances when the minimum number of pay-as-you-go instances is reached. OnDemandBaseCapacity specifies the minimum number of pay-as-you-go instances that must be contained in the scaling group.
pendingCapacity This property is required. number
(Available since v1.242.0) The number of ECS instances that are being added to the scaling group and still being configured.
pendingWaitCapacity This property is required. number
(Available since v1.242.0) The number of ECS instances that are in the Pending Add state in the scaling group.
protectedCapacity This property is required. number
(Available since v1.242.0) The number of ECS instances that are in the Protected state in the scaling group.
regionId This property is required. string
Region ID the scaling group belongs to.
removalPolicies This property is required. string[]
Removal policy used to select the ECS instance to remove from the scaling group.
removingCapacity This property is required. number
(Available since v1.242.0) The number of ECS instances that are being removed from the scaling group.
removingWaitCapacity This property is required. number
(Available since v1.242.0) The number of ECS instances that are in the Pending Remove state in the scaling group.
resourceGroupId This property is required. string
(Available since v1.242.0) The ID of the resource group to which the scaling group that you want to query belongs.
scalingPolicy This property is required. string
(Available since v1.242.0) The reclaim mode of the scaling group.
spotAllocationStrategy This property is required. string
(Available since v1.242.0) The allocation policy of preemptible instances. This parameter indicates the method used by Auto Scaling to select instance types to create the required number of preemptible instances. This parameter takes effect only if you set multi_az_policy to COMPOSABLE.
spotCapacity This property is required. number
(Available since v1.242.0) The number of preemptible instances in the scaling group.
spotInstancePools This property is required. number
(Available since v1.242.0) The number of instance types. Auto Scaling creates preemptible instances of multiple instance types that are provided at the lowest price.
spotInstanceRemedy This property is required. boolean
(Available since v1.242.0) Indicates whether supplementation of preemptible instances is enabled. If this parameter is set to true, Auto Scaling creates an instance to replace a preemptible instance when Auto Scaling receives a system message indicating that the preemptible instance is to be reclaimed.
standbyCapacity This property is required. number
(Available since v1.242.0) The number of instances that are in the Standby state in the scaling group.
stopInstanceTimeout This property is required. number
(Available since v1.242.0) The period of time that is required by an ECS instance to enter the Stopped state during the scale-in process. Unit: seconds.
stoppedCapacity This property is required. number
(Available since v1.242.0) The number of instances that are in Economical Mode in the scaling group.
suspendedProcesses This property is required. string[]
The Process in suspension.
systemSuspended This property is required. boolean
(Available since v1.242.0) Indicates whether Auto Scaling stops executing the scaling operation in the scaling group.
tags This property is required. {[key: string]: string}
A mapping of tags to assign to the resource.
totalCapacity This property is required. number
Number of instances in scaling group.
totalInstanceCount This property is required. number
The number of all ECS instances in the scaling group.
vpcId This property is required. string
The ID of the VPC to which the scaling group belongs.
vswitchId This property is required. string
The ID of the vSwitch to which the scaling group belongs.
vswitchIds This property is required. string[]
Vswitches id in which the ECS instance launched.
active_capacity This property is required. int
Number of active instances in scaling group.
active_scaling_configuration This property is required. str
Active scaling configuration for scaling group.
allocation_strategy This property is required. str
(Available since v1.242.0) The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The allocation policy applies to pay-as-you-go and preemptible instances.
az_balance This property is required. bool
(Available since v1.242.0) Indicates whether instances in the scaling group are evenly distributed across multiple zones.
cooldown_time This property is required. int
Default cooldown time of scaling group.
creation_time This property is required. str
Creation time of scaling group.
db_instance_ids This property is required. Sequence[str]
Db instances id which the ECS instance attached to.
desired_capacity This property is required. int
(Available since v1.242.0) The expected number of ECS instances in the scaling group. Auto Scaling automatically maintains the expected number of ECS instances that you specified.
enable_desired_capacity This property is required. bool
(Available since v1.242.0) Indicates whether the Expected Number of Instances feature is enabled.
group_deletion_protection This property is required. bool
Whether the scaling group deletion protection is enabled.
group_type This property is required. str
(Available since v1.242.0) The type of the instances in the scaling group.
health_check_type This property is required. str
The health check method of the scaling group.
id This property is required. str
ID of the scaling group.
init_capacity This property is required. int
(Available since v1.242.0) The number of instances that are in the Initialized state and ready to be scaled out in the scaling group.
launch_template_id This property is required. str
Active launch template ID for scaling group.
launch_template_version This property is required. str
Version of active launch template.
lifecycle_state This property is required. str
Lifecycle state of scaling group.
load_balancer_ids This property is required. Sequence[str]
Slb instances id which the ECS instance attached to.
max_instance_lifetime This property is required. int
(Available since v1.242.0) The maximum life span of each instance in the scaling group. Unit: seconds.
max_size This property is required. int
The maximum number of ECS instances.
min_size This property is required. int
The minimum number of ECS instances.
modification_time This property is required. str
The modification time.
monitor_group_id This property is required. str
(Available since v1.242.0) The ID of the CloudMonitor application group that is associated with the scaling group.
multi_az_policy This property is required. str
(Available since v1.242.0) The scaling policy of the multi-zone scaling group of the ECS type.
name This property is required. str
Name of the scaling group.
on_demand_base_capacity This property is required. int
(Available since v1.242.0) The lower limit of the number of pay-as-you-go instances in the scaling group.
on_demand_percentage_above_base_capacity This property is required. int
(Available since v1.242.0) The percentage of pay-as-you-go instances in the excess instances when the minimum number of pay-as-you-go instances is reached. OnDemandBaseCapacity specifies the minimum number of pay-as-you-go instances that must be contained in the scaling group.
pending_capacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are being added to the scaling group and still being configured.
pending_wait_capacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are in the Pending Add state in the scaling group.
protected_capacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are in the Protected state in the scaling group.
region_id This property is required. str
Region ID the scaling group belongs to.
removal_policies This property is required. Sequence[str]
Removal policy used to select the ECS instance to remove from the scaling group.
removing_capacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are being removed from the scaling group.
removing_wait_capacity This property is required. int
(Available since v1.242.0) The number of ECS instances that are in the Pending Remove state in the scaling group.
resource_group_id This property is required. str
(Available since v1.242.0) The ID of the resource group to which the scaling group that you want to query belongs.
scaling_policy This property is required. str
(Available since v1.242.0) The reclaim mode of the scaling group.
spot_allocation_strategy This property is required. str
(Available since v1.242.0) The allocation policy of preemptible instances. This parameter indicates the method used by Auto Scaling to select instance types to create the required number of preemptible instances. This parameter takes effect only if you set multi_az_policy to COMPOSABLE.
spot_capacity This property is required. int
(Available since v1.242.0) The number of preemptible instances in the scaling group.
spot_instance_pools This property is required. int
(Available since v1.242.0) The number of instance types. Auto Scaling creates preemptible instances of multiple instance types that are provided at the lowest price.
spot_instance_remedy This property is required. bool
(Available since v1.242.0) Indicates whether supplementation of preemptible instances is enabled. If this parameter is set to true, Auto Scaling creates an instance to replace a preemptible instance when Auto Scaling receives a system message indicating that the preemptible instance is to be reclaimed.
standby_capacity This property is required. int
(Available since v1.242.0) The number of instances that are in the Standby state in the scaling group.
stop_instance_timeout This property is required. int
(Available since v1.242.0) The period of time that is required by an ECS instance to enter the Stopped state during the scale-in process. Unit: seconds.
stopped_capacity This property is required. int
(Available since v1.242.0) The number of instances that are in Economical Mode in the scaling group.
suspended_processes This property is required. Sequence[str]
The Process in suspension.
system_suspended This property is required. bool
(Available since v1.242.0) Indicates whether Auto Scaling stops executing the scaling operation in the scaling group.
tags This property is required. Mapping[str, str]
A mapping of tags to assign to the resource.
total_capacity This property is required. int
Number of instances in scaling group.
total_instance_count This property is required. int
The number of all ECS instances in the scaling group.
vpc_id This property is required. str
The ID of the VPC to which the scaling group belongs.
vswitch_id This property is required. str
The ID of the vSwitch to which the scaling group belongs.
vswitch_ids This property is required. Sequence[str]
Vswitches id in which the ECS instance launched.
activeCapacity This property is required. Number
Number of active instances in scaling group.
activeScalingConfiguration This property is required. String
Active scaling configuration for scaling group.
allocationStrategy This property is required. String
(Available since v1.242.0) The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The allocation policy applies to pay-as-you-go and preemptible instances.
azBalance This property is required. Boolean
(Available since v1.242.0) Indicates whether instances in the scaling group are evenly distributed across multiple zones.
cooldownTime This property is required. Number
Default cooldown time of scaling group.
creationTime This property is required. String
Creation time of scaling group.
dbInstanceIds This property is required. List<String>
Db instances id which the ECS instance attached to.
desiredCapacity This property is required. Number
(Available since v1.242.0) The expected number of ECS instances in the scaling group. Auto Scaling automatically maintains the expected number of ECS instances that you specified.
enableDesiredCapacity This property is required. Boolean
(Available since v1.242.0) Indicates whether the Expected Number of Instances feature is enabled.
groupDeletionProtection This property is required. Boolean
Whether the scaling group deletion protection is enabled.
groupType This property is required. String
(Available since v1.242.0) The type of the instances in the scaling group.
healthCheckType This property is required. String
The health check method of the scaling group.
id This property is required. String
ID of the scaling group.
initCapacity This property is required. Number
(Available since v1.242.0) The number of instances that are in the Initialized state and ready to be scaled out in the scaling group.
launchTemplateId This property is required. String
Active launch template ID for scaling group.
launchTemplateVersion This property is required. String
Version of active launch template.
lifecycleState This property is required. String
Lifecycle state of scaling group.
loadBalancerIds This property is required. List<String>
Slb instances id which the ECS instance attached to.
maxInstanceLifetime This property is required. Number
(Available since v1.242.0) The maximum life span of each instance in the scaling group. Unit: seconds.
maxSize This property is required. Number
The maximum number of ECS instances.
minSize This property is required. Number
The minimum number of ECS instances.
modificationTime This property is required. String
The modification time.
monitorGroupId This property is required. String
(Available since v1.242.0) The ID of the CloudMonitor application group that is associated with the scaling group.
multiAzPolicy This property is required. String
(Available since v1.242.0) The scaling policy of the multi-zone scaling group of the ECS type.
name This property is required. String
Name of the scaling group.
onDemandBaseCapacity This property is required. Number
(Available since v1.242.0) The lower limit of the number of pay-as-you-go instances in the scaling group.
onDemandPercentageAboveBaseCapacity This property is required. Number
(Available since v1.242.0) The percentage of pay-as-you-go instances in the excess instances when the minimum number of pay-as-you-go instances is reached. OnDemandBaseCapacity specifies the minimum number of pay-as-you-go instances that must be contained in the scaling group.
pendingCapacity This property is required. Number
(Available since v1.242.0) The number of ECS instances that are being added to the scaling group and still being configured.
pendingWaitCapacity This property is required. Number
(Available since v1.242.0) The number of ECS instances that are in the Pending Add state in the scaling group.
protectedCapacity This property is required. Number
(Available since v1.242.0) The number of ECS instances that are in the Protected state in the scaling group.
regionId This property is required. String
Region ID the scaling group belongs to.
removalPolicies This property is required. List<String>
Removal policy used to select the ECS instance to remove from the scaling group.
removingCapacity This property is required. Number
(Available since v1.242.0) The number of ECS instances that are being removed from the scaling group.
removingWaitCapacity This property is required. Number
(Available since v1.242.0) The number of ECS instances that are in the Pending Remove state in the scaling group.
resourceGroupId This property is required. String
(Available since v1.242.0) The ID of the resource group to which the scaling group that you want to query belongs.
scalingPolicy This property is required. String
(Available since v1.242.0) The reclaim mode of the scaling group.
spotAllocationStrategy This property is required. String
(Available since v1.242.0) The allocation policy of preemptible instances. This parameter indicates the method used by Auto Scaling to select instance types to create the required number of preemptible instances. This parameter takes effect only if you set multi_az_policy to COMPOSABLE.
spotCapacity This property is required. Number
(Available since v1.242.0) The number of preemptible instances in the scaling group.
spotInstancePools This property is required. Number
(Available since v1.242.0) The number of instance types. Auto Scaling creates preemptible instances of multiple instance types that are provided at the lowest price.
spotInstanceRemedy This property is required. Boolean
(Available since v1.242.0) Indicates whether supplementation of preemptible instances is enabled. If this parameter is set to true, Auto Scaling creates an instance to replace a preemptible instance when Auto Scaling receives a system message indicating that the preemptible instance is to be reclaimed.
standbyCapacity This property is required. Number
(Available since v1.242.0) The number of instances that are in the Standby state in the scaling group.
stopInstanceTimeout This property is required. Number
(Available since v1.242.0) The period of time that is required by an ECS instance to enter the Stopped state during the scale-in process. Unit: seconds.
stoppedCapacity This property is required. Number
(Available since v1.242.0) The number of instances that are in Economical Mode in the scaling group.
suspendedProcesses This property is required. List<String>
The Process in suspension.
systemSuspended This property is required. Boolean
(Available since v1.242.0) Indicates whether Auto Scaling stops executing the scaling operation in the scaling group.
tags This property is required. Map<String>
A mapping of tags to assign to the resource.
totalCapacity This property is required. Number
Number of instances in scaling group.
totalInstanceCount This property is required. Number
The number of all ECS instances in the scaling group.
vpcId This property is required. String
The ID of the VPC to which the scaling group belongs.
vswitchId This property is required. String
The ID of the vSwitch to which the scaling group belongs.
vswitchIds This property is required. List<String>
Vswitches id in which the ECS instance launched.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi