1. Packages
  2. Volcengine
  3. API Docs
  4. autoscaling
  5. ScalingGroups
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.autoscaling.ScalingGroups

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Use this data source to query detailed information of scaling groups

    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",
                    },
                },
            }));
        }
        var @default = Volcengine.Autoscaling.ScalingGroups.Invoke(new()
        {
            Ids = fooScalingGroup.Select(__item => __item.Id).ToList(),
        });
    
    });
    
    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)
    }
    _ = autoscaling.ScalingGroupsOutput(ctx, autoscaling.ScalingGroupsOutputArgs{
    Ids: %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ #-functions-volcengine:autoscaling-scalingGroups:ScalingGroups.pp:35,9-30),
    }, nil);
    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.volcengine.autoscaling.AutoscalingFunctions;
    import com.pulumi.volcengine.autoscaling.inputs.ScalingGroupsArgs;
    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());
    
            
    }
            final var default = AutoscalingFunctions.ScalingGroups(ScalingGroupsArgs.builder()
                .ids(fooScalingGroup.stream().map(element -> element.id()).collect(toList()))
                .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",
                ),
            ]))
    default = volcengine.autoscaling.scaling_groups_output(ids=[__item.id for __item in foo_scaling_group])
    
    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",
                },
            ],
        }));
    }
    const default = volcengine.autoscaling.ScalingGroupsOutput({
        ids: fooScalingGroup.map(__item => __item.id),
    });
    

    Coming soon!

    Using ScalingGroups

    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 scalingGroups(args: ScalingGroupsArgs, opts?: InvokeOptions): Promise<ScalingGroupsResult>
    function scalingGroupsOutput(args: ScalingGroupsOutputArgs, opts?: InvokeOptions): Output<ScalingGroupsResult>
    def scaling_groups(ids: Optional[Sequence[str]] = None,
                       name_regex: Optional[str] = None,
                       output_file: Optional[str] = None,
                       project_name: Optional[str] = None,
                       scaling_group_names: Optional[Sequence[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> ScalingGroupsResult
    def 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,
                       project_name: Optional[pulumi.Input[str]] = None,
                       scaling_group_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[ScalingGroupsResult]
    func ScalingGroups(ctx *Context, args *ScalingGroupsArgs, opts ...InvokeOption) (*ScalingGroupsResult, error)
    func ScalingGroupsOutput(ctx *Context, args *ScalingGroupsOutputArgs, opts ...InvokeOption) ScalingGroupsResultOutput
    public static class ScalingGroups 
    {
        public static Task<ScalingGroupsResult> InvokeAsync(ScalingGroupsArgs args, InvokeOptions? opts = null)
        public static Output<ScalingGroupsResult> Invoke(ScalingGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<ScalingGroupsResult> scalingGroups(ScalingGroupsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:autoscaling:ScalingGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of scaling group ids.
    NameRegex string
    A Name Regex of scaling group.
    OutputFile string
    File name where to save data source results.
    ProjectName string
    The project name of the scaling group.
    ScalingGroupNames List<string>
    A list of scaling group names.
    Ids []string
    A list of scaling group ids.
    NameRegex string
    A Name Regex of scaling group.
    OutputFile string
    File name where to save data source results.
    ProjectName string
    The project name of the scaling group.
    ScalingGroupNames []string
    A list of scaling group names.
    ids List<String>
    A list of scaling group ids.
    nameRegex String
    A Name Regex of scaling group.
    outputFile String
    File name where to save data source results.
    projectName String
    The project name of the scaling group.
    scalingGroupNames List<String>
    A list of scaling group names.
    ids string[]
    A list of scaling group ids.
    nameRegex string
    A Name Regex of scaling group.
    outputFile string
    File name where to save data source results.
    projectName string
    The project name of the scaling group.
    scalingGroupNames string[]
    A list of scaling group names.
    ids Sequence[str]
    A list of scaling group ids.
    name_regex str
    A Name Regex of scaling group.
    output_file str
    File name where to save data source results.
    project_name str
    The project name of the scaling group.
    scaling_group_names Sequence[str]
    A list of scaling group names.
    ids List<String>
    A list of scaling group ids.
    nameRegex String
    A Name Regex of scaling group.
    outputFile String
    File name where to save data source results.
    projectName String
    The project name of the scaling group.
    scalingGroupNames List<String>
    A list of scaling group names.

    ScalingGroups Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ScalingGroups List<Pulumi.Volcengine.Autoscaling.Outputs.ScalingGroupsScalingGroup>
    The collection of scaling group query.
    TotalCount int
    The total count of scaling group query.
    Ids List<string>
    NameRegex string
    OutputFile string
    ProjectName string
    The ProjectName of scaling group.
    ScalingGroupNames List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    ScalingGroups []ScalingGroupsScalingGroup
    The collection of scaling group query.
    TotalCount int
    The total count of scaling group query.
    Ids []string
    NameRegex string
    OutputFile string
    ProjectName string
    The ProjectName of scaling group.
    ScalingGroupNames []string
    id String
    The provider-assigned unique ID for this managed resource.
    scalingGroups List<ScalingGroupsScalingGroup>
    The collection of scaling group query.
    totalCount Integer
    The total count of scaling group query.
    ids List<String>
    nameRegex String
    outputFile String
    projectName String
    The ProjectName of scaling group.
    scalingGroupNames List<String>
    id string
    The provider-assigned unique ID for this managed resource.
    scalingGroups ScalingGroupsScalingGroup[]
    The collection of scaling group query.
    totalCount number
    The total count of scaling group query.
    ids string[]
    nameRegex string
    outputFile string
    projectName string
    The ProjectName of scaling group.
    scalingGroupNames string[]
    id str
    The provider-assigned unique ID for this managed resource.
    scaling_groups Sequence[ScalingGroupsScalingGroup]
    The collection of scaling group query.
    total_count int
    The total count of scaling group query.
    ids Sequence[str]
    name_regex str
    output_file str
    project_name str
    The ProjectName of scaling group.
    scaling_group_names Sequence[str]
    id String
    The provider-assigned unique ID for this managed resource.
    scalingGroups List<Property Map>
    The collection of scaling group query.
    totalCount Number
    The total count of scaling group query.
    ids List<String>
    nameRegex String
    outputFile String
    projectName String
    The ProjectName of scaling group.
    scalingGroupNames List<String>

    Supporting Types

    ScalingGroupsScalingGroup

    ActiveScalingConfigurationId string
    The scaling configuration id which used by the scaling group.
    CreatedAt string
    The create time of the scaling group.
    DbInstanceIds List<string>
    The list of db instance ids.
    DefaultCooldown int
    The default cooldown interval of the scaling group.
    DesireInstanceNumber int
    The desire instance number of the scaling group.
    HealthCheckType string
    The health check type of the scaling group.
    Id string
    The id of the scaling group.
    InstanceTerminatePolicy string
    The instance terminate policy of the scaling group.
    LaunchTemplateId string
    The ID of the launch template bound to the scaling group.
    LaunchTemplateOverrides List<Pulumi.Volcengine.Autoscaling.Inputs.ScalingGroupsScalingGroupLaunchTemplateOverride>
    Instance start template information.
    LaunchTemplateVersion string
    The version of the launch template bound to the scaling group.
    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.
    MinInstanceNumber int
    The min instance number of the scaling group.
    MultiAzPolicy string
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE.
    ProjectName string
    The project name of the scaling group.
    ScalingGroupId string
    The id of the scaling group.
    ScalingGroupName string
    The name of the scaling group.
    ScalingMode string
    The scaling mode of the scaling group.
    ServerGroupAttributes List<Pulumi.Volcengine.Autoscaling.Inputs.ScalingGroupsScalingGroupServerGroupAttribute>
    The list of server group attributes.
    StoppedInstanceCount int
    The number of stopped instances.
    SubnetIds List<string>
    The list of the subnet id to which the ENI is connected.
    Tags List<Pulumi.Volcengine.Autoscaling.Inputs.ScalingGroupsScalingGroupTag>
    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
    The list of db instance ids.
    DefaultCooldown int
    The default cooldown interval of the scaling group.
    DesireInstanceNumber int
    The desire instance number of the scaling group.
    HealthCheckType string
    The health check type of the scaling group.
    Id string
    The id of the scaling group.
    InstanceTerminatePolicy string
    The instance terminate policy of the scaling group.
    LaunchTemplateId string
    The ID of the launch template bound to the scaling group.
    LaunchTemplateOverrides []ScalingGroupsScalingGroupLaunchTemplateOverride
    Instance start template information.
    LaunchTemplateVersion string
    The version of the launch template bound to the scaling group.
    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.
    MinInstanceNumber int
    The min instance number of the scaling group.
    MultiAzPolicy string
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE.
    ProjectName string
    The project name of the scaling group.
    ScalingGroupId string
    The id of the scaling group.
    ScalingGroupName string
    The name of the scaling group.
    ScalingMode string
    The scaling mode of the scaling group.
    ServerGroupAttributes []ScalingGroupsScalingGroupServerGroupAttribute
    The list of server group attributes.
    StoppedInstanceCount int
    The number of stopped instances.
    SubnetIds []string
    The list of the subnet id to which the ENI is connected.
    Tags []ScalingGroupsScalingGroupTag
    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>
    The list of db instance ids.
    defaultCooldown Integer
    The default cooldown interval of the scaling group.
    desireInstanceNumber Integer
    The desire instance number of the scaling group.
    healthCheckType String
    The health check type of the scaling group.
    id String
    The id of the scaling group.
    instanceTerminatePolicy String
    The instance terminate policy of the scaling group.
    launchTemplateId String
    The ID of the launch template bound to the scaling group.
    launchTemplateOverrides List<ScalingGroupsScalingGroupLaunchTemplateOverride>
    Instance start template information.
    launchTemplateVersion String
    The version of the launch template bound to the scaling group.
    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.
    minInstanceNumber Integer
    The min instance number of the scaling group.
    multiAzPolicy String
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE.
    projectName String
    The project name of the scaling group.
    scalingGroupId String
    The id of the scaling group.
    scalingGroupName String
    The name of the scaling group.
    scalingMode String
    The scaling mode of the scaling group.
    serverGroupAttributes List<ScalingGroupsScalingGroupServerGroupAttribute>
    The list of server group attributes.
    stoppedInstanceCount Integer
    The number of stopped instances.
    subnetIds List<String>
    The list of the subnet id to which the ENI is connected.
    tags List<ScalingGroupsScalingGroupTag>
    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[]
    The list of db instance ids.
    defaultCooldown number
    The default cooldown interval of the scaling group.
    desireInstanceNumber number
    The desire instance number of the scaling group.
    healthCheckType string
    The health check type of the scaling group.
    id string
    The id of the scaling group.
    instanceTerminatePolicy string
    The instance terminate policy of the scaling group.
    launchTemplateId string
    The ID of the launch template bound to the scaling group.
    launchTemplateOverrides ScalingGroupsScalingGroupLaunchTemplateOverride[]
    Instance start template information.
    launchTemplateVersion string
    The version of the launch template bound to the scaling group.
    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.
    minInstanceNumber number
    The min instance number of the scaling group.
    multiAzPolicy string
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE.
    projectName string
    The project name of the scaling group.
    scalingGroupId string
    The id of the scaling group.
    scalingGroupName string
    The name of the scaling group.
    scalingMode string
    The scaling mode of the scaling group.
    serverGroupAttributes ScalingGroupsScalingGroupServerGroupAttribute[]
    The list of server group attributes.
    stoppedInstanceCount number
    The number of stopped instances.
    subnetIds string[]
    The list of the subnet id to which the ENI is connected.
    tags ScalingGroupsScalingGroupTag[]
    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]
    The list of db instance ids.
    default_cooldown int
    The default cooldown interval of the scaling group.
    desire_instance_number int
    The desire instance number of the scaling group.
    health_check_type str
    The health check type of the scaling group.
    id str
    The id of the scaling group.
    instance_terminate_policy str
    The instance terminate policy of the scaling group.
    launch_template_id str
    The ID of the launch template bound to the scaling group.
    launch_template_overrides Sequence[ScalingGroupsScalingGroupLaunchTemplateOverride]
    Instance start template information.
    launch_template_version str
    The version of the launch template bound to the scaling group.
    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.
    min_instance_number int
    The min instance number of the scaling group.
    multi_az_policy str
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE.
    project_name str
    The project name 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
    The scaling mode of the scaling group.
    server_group_attributes Sequence[ScalingGroupsScalingGroupServerGroupAttribute]
    The list of server group attributes.
    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[ScalingGroupsScalingGroupTag]
    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>
    The list of db instance ids.
    defaultCooldown Number
    The default cooldown interval of the scaling group.
    desireInstanceNumber Number
    The desire instance number of the scaling group.
    healthCheckType String
    The health check type of the scaling group.
    id String
    The id of the scaling group.
    instanceTerminatePolicy String
    The instance terminate policy of the scaling group.
    launchTemplateId String
    The ID of the launch template bound to the scaling group.
    launchTemplateOverrides List<Property Map>
    Instance start template information.
    launchTemplateVersion String
    The version of the launch template bound to the scaling group.
    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.
    minInstanceNumber Number
    The min instance number of the scaling group.
    multiAzPolicy String
    The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE.
    projectName String
    The project name of the scaling group.
    scalingGroupId String
    The id of the scaling group.
    scalingGroupName String
    The name of the scaling group.
    scalingMode String
    The scaling mode of the scaling group.
    serverGroupAttributes List<Property Map>
    The list of server group attributes.
    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.

    ScalingGroupsScalingGroupLaunchTemplateOverride

    InstanceType string
    The instance type.
    WeightedCapacity int
    Weight of instance specifications.
    InstanceType string
    The instance type.
    WeightedCapacity int
    Weight of instance specifications.
    instanceType String
    The instance type.
    weightedCapacity Integer
    Weight of instance specifications.
    instanceType string
    The instance type.
    weightedCapacity number
    Weight of instance specifications.
    instance_type str
    The instance type.
    weighted_capacity int
    Weight of instance specifications.
    instanceType String
    The instance type.
    weightedCapacity Number
    Weight of instance specifications.

    ScalingGroupsScalingGroupServerGroupAttribute

    LoadBalancerId string
    The load balancer id.
    Port int
    The port receiving request of the server group.
    ServerGroupId string
    The server group id.
    Weight int
    The weight of the instance.
    LoadBalancerId string
    The load balancer id.
    Port int
    The port receiving request of the server group.
    ServerGroupId string
    The server group id.
    Weight int
    The weight of the instance.
    loadBalancerId String
    The load balancer id.
    port Integer
    The port receiving request of the server group.
    serverGroupId String
    The server group id.
    weight Integer
    The weight of the instance.
    loadBalancerId string
    The load balancer id.
    port number
    The port receiving request of the server group.
    serverGroupId string
    The server group id.
    weight number
    The weight of the instance.
    load_balancer_id str
    The load balancer id.
    port int
    The port receiving request of the server group.
    server_group_id str
    The server group id.
    weight int
    The weight of the instance.
    loadBalancerId String
    The load balancer id.
    port Number
    The port receiving request of the server group.
    serverGroupId String
    The server group id.
    weight Number
    The weight of the instance.

    ScalingGroupsScalingGroupTag

    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.

    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.24 published on Tuesday, Jun 25, 2024 by Volcengine