1. Packages
  2. Volcengine
  3. API Docs
  4. autoscaling
  5. ScalingGroup
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.autoscaling.ScalingGroup

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage scaling group

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooZones = Volcengine.Ecs.Zones.Invoke();
    
        var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
        {
            VpcName = "acc-test-vpc",
            CidrBlock = "172.16.0.0/16",
        });
    
        var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
        {
            SubnetName = "acc-test-subnet",
            CidrBlock = "172.16.0.0/24",
            ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
            VpcId = fooVpc.Id,
        });
    
        var fooScalingGroup = new List<Volcengine.Autoscaling.ScalingGroup>();
        for (var rangeIndex = 0; rangeIndex < 3; rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            fooScalingGroup.Add(new Volcengine.Autoscaling.ScalingGroup($"fooScalingGroup-{range.Value}", new()
            {
                ScalingGroupName = $"acc-test-scaling-group-{range.Value}",
                SubnetIds = new[]
                {
                    fooSubnet.Id,
                },
                MultiAzPolicy = "BALANCE",
                DesireInstanceNumber = 0,
                MinInstanceNumber = 0,
                MaxInstanceNumber = 10,
                InstanceTerminatePolicy = "OldestInstance",
                DefaultCooldown = 30,
                Tags = new[]
                {
                    new Volcengine.Autoscaling.Inputs.ScalingGroupTagArgs
                    {
                        Key = "k2",
                        Value = "v2",
                    },
                    new Volcengine.Autoscaling.Inputs.ScalingGroupTagArgs
                    {
                        Key = "k1",
                        Value = "v1",
                    },
                },
            }));
        }
    });
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/autoscaling"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooZones, err := ecs.Zones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
    			VpcName:   pulumi.String("acc-test-vpc"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
    			SubnetName: pulumi.String("acc-test-subnet"),
    			CidrBlock:  pulumi.String("172.16.0.0/24"),
    			ZoneId:     *pulumi.String(fooZones.Zones[0].Id),
    			VpcId:      fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		var fooScalingGroup []*autoscaling.ScalingGroup
    		for index := 0; index < 3; index++ {
    			key0 := index
    			val0 := index
    			__res, err := autoscaling.NewScalingGroup(ctx, fmt.Sprintf("fooScalingGroup-%v", key0), &autoscaling.ScalingGroupArgs{
    				ScalingGroupName: pulumi.String(fmt.Sprintf("acc-test-scaling-group-%v", val0)),
    				SubnetIds: pulumi.StringArray{
    					fooSubnet.ID(),
    				},
    				MultiAzPolicy:           pulumi.String("BALANCE"),
    				DesireInstanceNumber:    pulumi.Int(0),
    				MinInstanceNumber:       pulumi.Int(0),
    				MaxInstanceNumber:       pulumi.Int(10),
    				InstanceTerminatePolicy: pulumi.String("OldestInstance"),
    				DefaultCooldown:         pulumi.Int(30),
    				Tags: autoscaling.ScalingGroupTagArray{
    					&autoscaling.ScalingGroupTagArgs{
    						Key:   pulumi.String("k2"),
    						Value: pulumi.String("v2"),
    					},
    					&autoscaling.ScalingGroupTagArgs{
    						Key:   pulumi.String("k1"),
    						Value: pulumi.String("v1"),
    					},
    				},
    			})
    			if err != nil {
    				return err
    			}
    			fooScalingGroup = append(fooScalingGroup, __res)
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.ecs.EcsFunctions;
    import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
    import com.pulumi.volcengine.vpc.Vpc;
    import com.pulumi.volcengine.vpc.VpcArgs;
    import com.pulumi.volcengine.vpc.Subnet;
    import com.pulumi.volcengine.vpc.SubnetArgs;
    import com.pulumi.volcengine.autoscaling.ScalingGroup;
    import com.pulumi.volcengine.autoscaling.ScalingGroupArgs;
    import com.pulumi.volcengine.autoscaling.inputs.ScalingGroupTagArgs;
    import com.pulumi.codegen.internal.KeyedValue;
    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 fooZones = EcsFunctions.Zones();
    
            var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
                .vpcName("acc-test-vpc")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
                .subnetName("acc-test-subnet")
                .cidrBlock("172.16.0.0/24")
                .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
                .vpcId(fooVpc.id())
                .build());
    
            for (var i = 0; i < 3; i++) {
                new ScalingGroup("fooScalingGroup-" + i, ScalingGroupArgs.builder()            
                    .scalingGroupName(String.format("acc-test-scaling-group-%s", range.value()))
                    .subnetIds(fooSubnet.id())
                    .multiAzPolicy("BALANCE")
                    .desireInstanceNumber(0)
                    .minInstanceNumber(0)
                    .maxInstanceNumber(10)
                    .instanceTerminatePolicy("OldestInstance")
                    .defaultCooldown(30)
                    .tags(                
                        ScalingGroupTagArgs.builder()
                            .key("k2")
                            .value("v2")
                            .build(),
                        ScalingGroupTagArgs.builder()
                            .key("k1")
                            .value("v1")
                            .build())
                    .build());
    
            
    }
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_zones = volcengine.ecs.zones()
    foo_vpc = volcengine.vpc.Vpc("fooVpc",
        vpc_name="acc-test-vpc",
        cidr_block="172.16.0.0/16")
    foo_subnet = volcengine.vpc.Subnet("fooSubnet",
        subnet_name="acc-test-subnet",
        cidr_block="172.16.0.0/24",
        zone_id=foo_zones.zones[0].id,
        vpc_id=foo_vpc.id)
    foo_scaling_group = []
    for range in [{"value": i} for i in range(0, 3)]:
        foo_scaling_group.append(volcengine.autoscaling.ScalingGroup(f"fooScalingGroup-{range['value']}",
            scaling_group_name=f"acc-test-scaling-group-{range['value']}",
            subnet_ids=[foo_subnet.id],
            multi_az_policy="BALANCE",
            desire_instance_number=0,
            min_instance_number=0,
            max_instance_number=10,
            instance_terminate_policy="OldestInstance",
            default_cooldown=30,
            tags=[
                volcengine.autoscaling.ScalingGroupTagArgs(
                    key="k2",
                    value="v2",
                ),
                volcengine.autoscaling.ScalingGroupTagArgs(
                    key="k1",
                    value="v1",
                ),
            ]))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooZones = volcengine.ecs.Zones({});
    const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
        vpcName: "acc-test-vpc",
        cidrBlock: "172.16.0.0/16",
    });
    const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
        subnetName: "acc-test-subnet",
        cidrBlock: "172.16.0.0/24",
        zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
        vpcId: fooVpc.id,
    });
    const fooScalingGroup: volcengine.autoscaling.ScalingGroup[] = [];
    for (const range = {value: 0}; range.value < 3; range.value++) {
        fooScalingGroup.push(new volcengine.autoscaling.ScalingGroup(`fooScalingGroup-${range.value}`, {
            scalingGroupName: `acc-test-scaling-group-${range.value}`,
            subnetIds: [fooSubnet.id],
            multiAzPolicy: "BALANCE",
            desireInstanceNumber: 0,
            minInstanceNumber: 0,
            maxInstanceNumber: 10,
            instanceTerminatePolicy: "OldestInstance",
            defaultCooldown: 30,
            tags: [
                {
                    key: "k2",
                    value: "v2",
                },
                {
                    key: "k1",
                    value: "v1",
                },
            ],
        }));
    }
    
    resources:
      fooVpc:
        type: volcengine:vpc:Vpc
        properties:
          vpcName: acc-test-vpc
          cidrBlock: 172.16.0.0/16
      fooSubnet:
        type: volcengine:vpc:Subnet
        properties:
          subnetName: acc-test-subnet
          cidrBlock: 172.16.0.0/24
          zoneId: ${fooZones.zones[0].id}
          vpcId: ${fooVpc.id}
      fooScalingGroup:
        type: volcengine:autoscaling:ScalingGroup
        properties:
          scalingGroupName: acc-test-scaling-group-${range.value}
          subnetIds:
            - ${fooSubnet.id}
          multiAzPolicy: BALANCE
          desireInstanceNumber: 0
          minInstanceNumber: 0
          maxInstanceNumber: 10
          instanceTerminatePolicy: OldestInstance
          defaultCooldown: 30
          tags:
            - key: k2
              value: v2
            - key: k1
              value: v1
        options: {}
    variables:
      fooZones:
        fn::invoke:
          Function: volcengine:ecs:Zones
          Arguments: {}
    

    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_id: Optional[str] = None,
                     launch_template_overrides: Optional[Sequence[ScalingGroupLaunchTemplateOverrideArgs]] = None,
                     launch_template_version: Optional[str] = None,
                     db_instance_ids: Optional[Sequence[str]] = 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,
                     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: volcengine:autoscaling:ScalingGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ScalingGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ScalingGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ScalingGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScalingGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScalingGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var scalingGroupResource = new Volcengine.Autoscaling.ScalingGroup("scalingGroupResource", new()
    {
        MaxInstanceNumber = 0,
        SubnetIds = new[]
        {
            "string",
        },
        ScalingGroupName = "string",
        MinInstanceNumber = 0,
        LaunchTemplateId = "string",
        LaunchTemplateOverrides = new[]
        {
            new Volcengine.Autoscaling.Inputs.ScalingGroupLaunchTemplateOverrideArgs
            {
                InstanceType = "string",
            },
        },
        LaunchTemplateVersion = "string",
        DbInstanceIds = new[]
        {
            "string",
        },
        InstanceTerminatePolicy = "string",
        MultiAzPolicy = "string",
        ProjectName = "string",
        DesireInstanceNumber = 0,
        ScalingMode = "string",
        ServerGroupAttributes = new[]
        {
            new Volcengine.Autoscaling.Inputs.ScalingGroupServerGroupAttributeArgs
            {
                Port = 0,
                ServerGroupId = "string",
                Weight = 0,
                LoadBalancerId = "string",
            },
        },
        DefaultCooldown = 0,
        Tags = new[]
        {
            new Volcengine.Autoscaling.Inputs.ScalingGroupTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := autoscaling.NewScalingGroup(ctx, "scalingGroupResource", &autoscaling.ScalingGroupArgs{
    	MaxInstanceNumber: pulumi.Int(0),
    	SubnetIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ScalingGroupName:  pulumi.String("string"),
    	MinInstanceNumber: pulumi.Int(0),
    	LaunchTemplateId:  pulumi.String("string"),
    	LaunchTemplateOverrides: autoscaling.ScalingGroupLaunchTemplateOverrideArray{
    		&autoscaling.ScalingGroupLaunchTemplateOverrideArgs{
    			InstanceType: pulumi.String("string"),
    		},
    	},
    	LaunchTemplateVersion: pulumi.String("string"),
    	DbInstanceIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	InstanceTerminatePolicy: pulumi.String("string"),
    	MultiAzPolicy:           pulumi.String("string"),
    	ProjectName:             pulumi.String("string"),
    	DesireInstanceNumber:    pulumi.Int(0),
    	ScalingMode:             pulumi.String("string"),
    	ServerGroupAttributes: autoscaling.ScalingGroupServerGroupAttributeArray{
    		&autoscaling.ScalingGroupServerGroupAttributeArgs{
    			Port:           pulumi.Int(0),
    			ServerGroupId:  pulumi.String("string"),
    			Weight:         pulumi.Int(0),
    			LoadBalancerId: pulumi.String("string"),
    		},
    	},
    	DefaultCooldown: pulumi.Int(0),
    	Tags: autoscaling.ScalingGroupTagArray{
    		&autoscaling.ScalingGroupTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var scalingGroupResource = new ScalingGroup("scalingGroupResource", ScalingGroupArgs.builder()
        .maxInstanceNumber(0)
        .subnetIds("string")
        .scalingGroupName("string")
        .minInstanceNumber(0)
        .launchTemplateId("string")
        .launchTemplateOverrides(ScalingGroupLaunchTemplateOverrideArgs.builder()
            .instanceType("string")
            .build())
        .launchTemplateVersion("string")
        .dbInstanceIds("string")
        .instanceTerminatePolicy("string")
        .multiAzPolicy("string")
        .projectName("string")
        .desireInstanceNumber(0)
        .scalingMode("string")
        .serverGroupAttributes(ScalingGroupServerGroupAttributeArgs.builder()
            .port(0)
            .serverGroupId("string")
            .weight(0)
            .loadBalancerId("string")
            .build())
        .defaultCooldown(0)
        .tags(ScalingGroupTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    scaling_group_resource = volcengine.autoscaling.ScalingGroup("scalingGroupResource",
        max_instance_number=0,
        subnet_ids=["string"],
        scaling_group_name="string",
        min_instance_number=0,
        launch_template_id="string",
        launch_template_overrides=[{
            "instance_type": "string",
        }],
        launch_template_version="string",
        db_instance_ids=["string"],
        instance_terminate_policy="string",
        multi_az_policy="string",
        project_name="string",
        desire_instance_number=0,
        scaling_mode="string",
        server_group_attributes=[{
            "port": 0,
            "server_group_id": "string",
            "weight": 0,
            "load_balancer_id": "string",
        }],
        default_cooldown=0,
        tags=[{
            "key": "string",
            "value": "string",
        }])
    
    const scalingGroupResource = new volcengine.autoscaling.ScalingGroup("scalingGroupResource", {
        maxInstanceNumber: 0,
        subnetIds: ["string"],
        scalingGroupName: "string",
        minInstanceNumber: 0,
        launchTemplateId: "string",
        launchTemplateOverrides: [{
            instanceType: "string",
        }],
        launchTemplateVersion: "string",
        dbInstanceIds: ["string"],
        instanceTerminatePolicy: "string",
        multiAzPolicy: "string",
        projectName: "string",
        desireInstanceNumber: 0,
        scalingMode: "string",
        serverGroupAttributes: [{
            port: 0,
            serverGroupId: "string",
            weight: 0,
            loadBalancerId: "string",
        }],
        defaultCooldown: 0,
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcengine:autoscaling:ScalingGroup
    properties:
        dbInstanceIds:
            - string
        defaultCooldown: 0
        desireInstanceNumber: 0
        instanceTerminatePolicy: string
        launchTemplateId: string
        launchTemplateOverrides:
            - instanceType: string
        launchTemplateVersion: string
        maxInstanceNumber: 0
        minInstanceNumber: 0
        multiAzPolicy: string
        projectName: string
        scalingGroupName: string
        scalingMode: string
        serverGroupAttributes:
            - loadBalancerId: string
              port: 0
              serverGroupId: string
              weight: 0
        subnetIds:
            - string
        tags:
            - key: string
              value: string
    

    ScalingGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ScalingGroup resource accepts the following input properties:

    MaxInstanceNumber int
    The max instance number of the scaling group. Value range: 0 ~ 100.
    MinInstanceNumber int
    The min instance number of the scaling group. Value range: 0 ~ 100.
    ScalingGroupName string
    The name of the scaling group.
    SubnetIds List<string>
    The list of the subnet id to which the ENI is connected.
    DbInstanceIds List<string>
    ID of the RDS database instance.
    DefaultCooldown int
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    DesireInstanceNumber int
    The desire instance number of the scaling group.
    InstanceTerminatePolicy string
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    LaunchTemplateId string
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    LaunchTemplateOverrides List<ScalingGroupLaunchTemplateOverride>
    Specify instance specifications.
    LaunchTemplateVersion string
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    MultiAzPolicy string
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    ProjectName string
    The ProjectName of the scaling group.
    ScalingMode string
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    ServerGroupAttributes List<ScalingGroupServerGroupAttribute>
    The load balancer server group attributes of the scaling group.
    Tags List<ScalingGroupTag>
    Tags.
    MaxInstanceNumber int
    The max instance number of the scaling group. Value range: 0 ~ 100.
    MinInstanceNumber int
    The min instance number of the scaling group. Value range: 0 ~ 100.
    ScalingGroupName string
    The name of the scaling group.
    SubnetIds []string
    The list of the subnet id to which the ENI is connected.
    DbInstanceIds []string
    ID of the RDS database instance.
    DefaultCooldown int
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    DesireInstanceNumber int
    The desire instance number of the scaling group.
    InstanceTerminatePolicy string
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    LaunchTemplateId string
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    LaunchTemplateOverrides []ScalingGroupLaunchTemplateOverrideArgs
    Specify instance specifications.
    LaunchTemplateVersion string
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    MultiAzPolicy string
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    ProjectName string
    The ProjectName of the scaling group.
    ScalingMode string
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    ServerGroupAttributes []ScalingGroupServerGroupAttributeArgs
    The load balancer server group attributes of the scaling group.
    Tags []ScalingGroupTagArgs
    Tags.
    maxInstanceNumber Integer
    The max instance number of the scaling group. Value range: 0 ~ 100.
    minInstanceNumber Integer
    The min instance number of the scaling group. Value range: 0 ~ 100.
    scalingGroupName String
    The name of the scaling group.
    subnetIds List<String>
    The list of the subnet id to which the ENI is connected.
    dbInstanceIds List<String>
    ID of the RDS database instance.
    defaultCooldown Integer
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    desireInstanceNumber Integer
    The desire instance number of the scaling group.
    instanceTerminatePolicy String
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    launchTemplateId String
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    launchTemplateOverrides List<ScalingGroupLaunchTemplateOverride>
    Specify instance specifications.
    launchTemplateVersion String
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    multiAzPolicy String
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    projectName String
    The ProjectName of the scaling group.
    scalingMode String
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    serverGroupAttributes List<ScalingGroupServerGroupAttribute>
    The load balancer server group attributes of the scaling group.
    tags List<ScalingGroupTag>
    Tags.
    maxInstanceNumber number
    The max instance number of the scaling group. Value range: 0 ~ 100.
    minInstanceNumber number
    The min instance number of the scaling group. Value range: 0 ~ 100.
    scalingGroupName string
    The name of the scaling group.
    subnetIds string[]
    The list of the subnet id to which the ENI is connected.
    dbInstanceIds string[]
    ID of the RDS database instance.
    defaultCooldown number
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    desireInstanceNumber number
    The desire instance number of the scaling group.
    instanceTerminatePolicy string
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    launchTemplateId string
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    launchTemplateOverrides ScalingGroupLaunchTemplateOverride[]
    Specify instance specifications.
    launchTemplateVersion string
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    multiAzPolicy string
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    projectName string
    The ProjectName of the scaling group.
    scalingMode string
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    serverGroupAttributes ScalingGroupServerGroupAttribute[]
    The load balancer server group attributes of the scaling group.
    tags ScalingGroupTag[]
    Tags.
    max_instance_number int
    The max instance number of the scaling group. Value range: 0 ~ 100.
    min_instance_number int
    The min instance number of the scaling group. Value range: 0 ~ 100.
    scaling_group_name str
    The name of the scaling group.
    subnet_ids Sequence[str]
    The list of the subnet id to which the ENI is connected.
    db_instance_ids Sequence[str]
    ID of the RDS database instance.
    default_cooldown int
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    desire_instance_number int
    The desire instance number of the scaling group.
    instance_terminate_policy str
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    launch_template_id str
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    launch_template_overrides Sequence[ScalingGroupLaunchTemplateOverrideArgs]
    Specify instance specifications.
    launch_template_version str
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    multi_az_policy str
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    project_name str
    The ProjectName of the scaling group.
    scaling_mode str
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    server_group_attributes Sequence[ScalingGroupServerGroupAttributeArgs]
    The load balancer server group attributes of the scaling group.
    tags Sequence[ScalingGroupTagArgs]
    Tags.
    maxInstanceNumber Number
    The max instance number of the scaling group. Value range: 0 ~ 100.
    minInstanceNumber Number
    The min instance number of the scaling group. Value range: 0 ~ 100.
    scalingGroupName String
    The name of the scaling group.
    subnetIds List<String>
    The list of the subnet id to which the ENI is connected.
    dbInstanceIds List<String>
    ID of the RDS database instance.
    defaultCooldown Number
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    desireInstanceNumber Number
    The desire instance number of the scaling group.
    instanceTerminatePolicy String
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    launchTemplateId String
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    launchTemplateOverrides List<Property Map>
    Specify instance specifications.
    launchTemplateVersion String
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    multiAzPolicy String
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    projectName String
    The ProjectName of the scaling group.
    scalingMode String
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    serverGroupAttributes List<Property Map>
    The load balancer server group attributes of the scaling group.
    tags List<Property Map>
    Tags.

    Outputs

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

    ActiveScalingConfigurationId string
    The scaling configuration id which used by the scaling group.
    CreatedAt string
    The create time of the scaling group.
    HealthCheckType string
    The health check type of the scaling group.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleState string
    The lifecycle state of the scaling group.
    LoadBalancerHealthCheckGracePeriod int
    Grace period for health check of CLB instance in elastic group.
    ScalingGroupId string
    The id of the scaling group.
    StoppedInstanceCount int
    The number of stopped instances.
    TotalInstanceCount int
    The total instance count of the scaling group.
    UpdatedAt string
    The create time of the scaling group.
    VpcId string
    The VPC id of the scaling group.
    ActiveScalingConfigurationId string
    The scaling configuration id which used by the scaling group.
    CreatedAt string
    The create time of the scaling group.
    HealthCheckType string
    The health check type of the scaling group.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleState string
    The lifecycle state of the scaling group.
    LoadBalancerHealthCheckGracePeriod int
    Grace period for health check of CLB instance in elastic group.
    ScalingGroupId string
    The id of the scaling group.
    StoppedInstanceCount int
    The number of stopped instances.
    TotalInstanceCount int
    The total instance count of the scaling group.
    UpdatedAt string
    The create time of the scaling group.
    VpcId string
    The VPC id of the scaling group.
    activeScalingConfigurationId String
    The scaling configuration id which used by the scaling group.
    createdAt String
    The create time of the scaling group.
    healthCheckType String
    The health check type of the scaling group.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleState String
    The lifecycle state of the scaling group.
    loadBalancerHealthCheckGracePeriod Integer
    Grace period for health check of CLB instance in elastic group.
    scalingGroupId String
    The id of the scaling group.
    stoppedInstanceCount Integer
    The number of stopped instances.
    totalInstanceCount Integer
    The total instance count of the scaling group.
    updatedAt String
    The create time of the scaling group.
    vpcId String
    The VPC id of the scaling group.
    activeScalingConfigurationId string
    The scaling configuration id which used by the scaling group.
    createdAt string
    The create time of the scaling group.
    healthCheckType string
    The health check type of the scaling group.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleState string
    The lifecycle state of the scaling group.
    loadBalancerHealthCheckGracePeriod number
    Grace period for health check of CLB instance in elastic group.
    scalingGroupId string
    The id of the scaling group.
    stoppedInstanceCount number
    The number of stopped instances.
    totalInstanceCount number
    The total instance count of the scaling group.
    updatedAt string
    The create time of the scaling group.
    vpcId string
    The VPC id of the scaling group.
    active_scaling_configuration_id str
    The scaling configuration id which used by the scaling group.
    created_at str
    The create time of the scaling group.
    health_check_type str
    The health check type of the scaling group.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_state str
    The lifecycle state of the scaling group.
    load_balancer_health_check_grace_period int
    Grace period for health check of CLB instance in elastic group.
    scaling_group_id str
    The id of the scaling group.
    stopped_instance_count int
    The number of stopped instances.
    total_instance_count int
    The total instance count of the scaling group.
    updated_at str
    The create time of the scaling group.
    vpc_id str
    The VPC id of the scaling group.
    activeScalingConfigurationId String
    The scaling configuration id which used by the scaling group.
    createdAt String
    The create time of the scaling group.
    healthCheckType String
    The health check type of the scaling group.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleState String
    The lifecycle state of the scaling group.
    loadBalancerHealthCheckGracePeriod Number
    Grace period for health check of CLB instance in elastic group.
    scalingGroupId String
    The id of the scaling group.
    stoppedInstanceCount Number
    The number of stopped instances.
    totalInstanceCount Number
    The total instance count of the scaling group.
    updatedAt String
    The create time of the scaling group.
    vpcId String
    The VPC id of the scaling group.

    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_at: Optional[str] = None,
            db_instance_ids: Optional[Sequence[str]] = None,
            default_cooldown: Optional[int] = None,
            desire_instance_number: Optional[int] = None,
            health_check_type: Optional[str] = None,
            instance_terminate_policy: Optional[str] = None,
            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,
            tags: Optional[Sequence[ScalingGroupTagArgs]] = None,
            total_instance_count: Optional[int] = None,
            updated_at: 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)
    Resource lookup is not supported in YAML
    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
    The scaling configuration id which used by the scaling group.
    CreatedAt string
    The create time of the scaling group.
    DbInstanceIds List<string>
    ID of the RDS database instance.
    DefaultCooldown int
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    DesireInstanceNumber int
    The desire instance number of the scaling group.
    HealthCheckType string
    The health check type of the scaling group.
    InstanceTerminatePolicy string
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    LaunchTemplateId string
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    LaunchTemplateOverrides List<ScalingGroupLaunchTemplateOverride>
    Specify instance specifications.
    LaunchTemplateVersion string
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    LifecycleState string
    The lifecycle state of the scaling group.
    LoadBalancerHealthCheckGracePeriod int
    Grace period for health check of CLB instance in elastic group.
    MaxInstanceNumber int
    The max instance number of the scaling group. Value range: 0 ~ 100.
    MinInstanceNumber int
    The min instance number of the scaling group. Value range: 0 ~ 100.
    MultiAzPolicy string
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    ProjectName string
    The ProjectName of the scaling group.
    ScalingGroupId string
    The id of the scaling group.
    ScalingGroupName string
    The name of the scaling group.
    ScalingMode string
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    ServerGroupAttributes List<ScalingGroupServerGroupAttribute>
    The load balancer server group attributes of the scaling group.
    StoppedInstanceCount int
    The number of stopped instances.
    SubnetIds List<string>
    The list of the subnet id to which the ENI is connected.
    Tags List<ScalingGroupTag>
    Tags.
    TotalInstanceCount int
    The total instance count of the scaling group.
    UpdatedAt string
    The create time of the scaling group.
    VpcId string
    The VPC id of the scaling group.
    ActiveScalingConfigurationId string
    The scaling configuration id which used by the scaling group.
    CreatedAt string
    The create time of the scaling group.
    DbInstanceIds []string
    ID of the RDS database instance.
    DefaultCooldown int
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    DesireInstanceNumber int
    The desire instance number of the scaling group.
    HealthCheckType string
    The health check type of the scaling group.
    InstanceTerminatePolicy string
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    LaunchTemplateId string
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    LaunchTemplateOverrides []ScalingGroupLaunchTemplateOverrideArgs
    Specify instance specifications.
    LaunchTemplateVersion string
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    LifecycleState string
    The lifecycle state of the scaling group.
    LoadBalancerHealthCheckGracePeriod int
    Grace period for health check of CLB instance in elastic group.
    MaxInstanceNumber int
    The max instance number of the scaling group. Value range: 0 ~ 100.
    MinInstanceNumber int
    The min instance number of the scaling group. Value range: 0 ~ 100.
    MultiAzPolicy string
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    ProjectName string
    The ProjectName of the scaling group.
    ScalingGroupId string
    The id of the scaling group.
    ScalingGroupName string
    The name of the scaling group.
    ScalingMode string
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    ServerGroupAttributes []ScalingGroupServerGroupAttributeArgs
    The load balancer server group attributes of the scaling group.
    StoppedInstanceCount int
    The number of stopped instances.
    SubnetIds []string
    The list of the subnet id to which the ENI is connected.
    Tags []ScalingGroupTagArgs
    Tags.
    TotalInstanceCount int
    The total instance count of the scaling group.
    UpdatedAt string
    The create time of the scaling group.
    VpcId string
    The VPC id of the scaling group.
    activeScalingConfigurationId String
    The scaling configuration id which used by the scaling group.
    createdAt String
    The create time of the scaling group.
    dbInstanceIds List<String>
    ID of the RDS database instance.
    defaultCooldown Integer
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    desireInstanceNumber Integer
    The desire instance number of the scaling group.
    healthCheckType String
    The health check type of the scaling group.
    instanceTerminatePolicy String
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    launchTemplateId String
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    launchTemplateOverrides List<ScalingGroupLaunchTemplateOverride>
    Specify instance specifications.
    launchTemplateVersion String
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    lifecycleState String
    The lifecycle state of the scaling group.
    loadBalancerHealthCheckGracePeriod Integer
    Grace period for health check of CLB instance in elastic group.
    maxInstanceNumber Integer
    The max instance number of the scaling group. Value range: 0 ~ 100.
    minInstanceNumber Integer
    The min instance number of the scaling group. Value range: 0 ~ 100.
    multiAzPolicy String
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    projectName String
    The ProjectName of the scaling group.
    scalingGroupId String
    The id of the scaling group.
    scalingGroupName String
    The name of the scaling group.
    scalingMode String
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    serverGroupAttributes List<ScalingGroupServerGroupAttribute>
    The load balancer server group attributes of the scaling group.
    stoppedInstanceCount Integer
    The number of stopped instances.
    subnetIds List<String>
    The list of the subnet id to which the ENI is connected.
    tags List<ScalingGroupTag>
    Tags.
    totalInstanceCount Integer
    The total instance count of the scaling group.
    updatedAt String
    The create time of the scaling group.
    vpcId String
    The VPC id of the scaling group.
    activeScalingConfigurationId string
    The scaling configuration id which used by the scaling group.
    createdAt string
    The create time of the scaling group.
    dbInstanceIds string[]
    ID of the RDS database instance.
    defaultCooldown number
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    desireInstanceNumber number
    The desire instance number of the scaling group.
    healthCheckType string
    The health check type of the scaling group.
    instanceTerminatePolicy string
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    launchTemplateId string
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    launchTemplateOverrides ScalingGroupLaunchTemplateOverride[]
    Specify instance specifications.
    launchTemplateVersion string
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    lifecycleState string
    The lifecycle state of the scaling group.
    loadBalancerHealthCheckGracePeriod number
    Grace period for health check of CLB instance in elastic group.
    maxInstanceNumber number
    The max instance number of the scaling group. Value range: 0 ~ 100.
    minInstanceNumber number
    The min instance number of the scaling group. Value range: 0 ~ 100.
    multiAzPolicy string
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    projectName string
    The ProjectName of the scaling group.
    scalingGroupId string
    The id of the scaling group.
    scalingGroupName string
    The name of the scaling group.
    scalingMode string
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    serverGroupAttributes ScalingGroupServerGroupAttribute[]
    The load balancer server group attributes of the scaling group.
    stoppedInstanceCount number
    The number of stopped instances.
    subnetIds string[]
    The list of the subnet id to which the ENI is connected.
    tags ScalingGroupTag[]
    Tags.
    totalInstanceCount number
    The total instance count of the scaling group.
    updatedAt string
    The create time of the scaling group.
    vpcId string
    The VPC id of the scaling group.
    active_scaling_configuration_id str
    The scaling configuration id which used by the scaling group.
    created_at str
    The create time of the scaling group.
    db_instance_ids Sequence[str]
    ID of the RDS database instance.
    default_cooldown int
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    desire_instance_number int
    The desire instance number of the scaling group.
    health_check_type str
    The health check type of the scaling group.
    instance_terminate_policy str
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    launch_template_id str
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    launch_template_overrides Sequence[ScalingGroupLaunchTemplateOverrideArgs]
    Specify instance specifications.
    launch_template_version str
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    lifecycle_state str
    The lifecycle state of the scaling group.
    load_balancer_health_check_grace_period int
    Grace period for health check of CLB instance in elastic group.
    max_instance_number int
    The max instance number of the scaling group. Value range: 0 ~ 100.
    min_instance_number int
    The min instance number of the scaling group. Value range: 0 ~ 100.
    multi_az_policy str
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    project_name str
    The ProjectName of the scaling group.
    scaling_group_id str
    The id of the scaling group.
    scaling_group_name str
    The name of the scaling group.
    scaling_mode str
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    server_group_attributes Sequence[ScalingGroupServerGroupAttributeArgs]
    The load balancer server group attributes of the scaling group.
    stopped_instance_count int
    The number of stopped instances.
    subnet_ids Sequence[str]
    The list of the subnet id to which the ENI is connected.
    tags Sequence[ScalingGroupTagArgs]
    Tags.
    total_instance_count int
    The total instance count of the scaling group.
    updated_at str
    The create time of the scaling group.
    vpc_id str
    The VPC id of the scaling group.
    activeScalingConfigurationId String
    The scaling configuration id which used by the scaling group.
    createdAt String
    The create time of the scaling group.
    dbInstanceIds List<String>
    ID of the RDS database instance.
    defaultCooldown Number
    The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
    desireInstanceNumber Number
    The desire instance number of the scaling group.
    healthCheckType String
    The health check type of the scaling group.
    instanceTerminatePolicy String
    The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
    launchTemplateId String
    The ID of the launch template bound to the scaling group. The launch template and scaling configuration cannot take effect at the same time.
    launchTemplateOverrides List<Property Map>
    Specify instance specifications.
    launchTemplateVersion String
    The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
    lifecycleState String
    The lifecycle state of the scaling group.
    loadBalancerHealthCheckGracePeriod Number
    Grace period for health check of CLB instance in elastic group.
    maxInstanceNumber Number
    The max instance number of the scaling group. Value range: 0 ~ 100.
    minInstanceNumber Number
    The min instance number of the scaling group. Value range: 0 ~ 100.
    multiAzPolicy String
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
    projectName String
    The ProjectName of the scaling group.
    scalingGroupId String
    The id of the scaling group.
    scalingGroupName String
    The name of the scaling group.
    scalingMode String
    Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
    serverGroupAttributes List<Property Map>
    The load balancer server group attributes of the scaling group.
    stoppedInstanceCount Number
    The number of stopped instances.
    subnetIds List<String>
    The list of the subnet id to which the ENI is connected.
    tags List<Property Map>
    Tags.
    totalInstanceCount Number
    The total instance count of the scaling group.
    updatedAt String
    The create time of the scaling group.
    vpcId String
    The VPC id of the scaling group.

    Supporting Types

    ScalingGroupLaunchTemplateOverride, ScalingGroupLaunchTemplateOverrideArgs

    InstanceType string
    The instance type.
    InstanceType string
    The instance type.
    instanceType String
    The instance type.
    instanceType string
    The instance type.
    instance_type str
    The instance type.
    instanceType String
    The instance type.

    ScalingGroupServerGroupAttribute, ScalingGroupServerGroupAttributeArgs

    Port int
    The port receiving request of the server group. Value range: 1 ~ 65535.
    ServerGroupId string
    The id of the server group.
    Weight int
    The weight of the instance. Value range: 0 ~ 100.
    LoadBalancerId string
    Port int
    The port receiving request of the server group. Value range: 1 ~ 65535.
    ServerGroupId string
    The id of the server group.
    Weight int
    The weight of the instance. Value range: 0 ~ 100.
    LoadBalancerId string
    port Integer
    The port receiving request of the server group. Value range: 1 ~ 65535.
    serverGroupId String
    The id of the server group.
    weight Integer
    The weight of the instance. Value range: 0 ~ 100.
    loadBalancerId String
    port number
    The port receiving request of the server group. Value range: 1 ~ 65535.
    serverGroupId string
    The id of the server group.
    weight number
    The weight of the instance. Value range: 0 ~ 100.
    loadBalancerId string
    port int
    The port receiving request of the server group. Value range: 1 ~ 65535.
    server_group_id str
    The id of the server group.
    weight int
    The weight of the instance. Value range: 0 ~ 100.
    load_balancer_id str
    port Number
    The port receiving request of the server group. Value range: 1 ~ 65535.
    serverGroupId String
    The id of the server group.
    weight Number
    The weight of the instance. Value range: 0 ~ 100.
    loadBalancerId String

    ScalingGroupTag, ScalingGroupTagArgs

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Import

    ScalingGroup can be imported using the id, e.g.

     $ pulumi import volcengine:autoscaling/scalingGroup:ScalingGroup default scg-mizl7m1kqccg5smt1bdpijuj
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine