volcengine.autoscaling.ScalingGroup
Explore with Pulumi AI
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:
- Max
Instance intNumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- Min
Instance intNumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- Scaling
Group stringName - The name of the scaling group.
- Subnet
Ids List<string> - The list of the subnet id to which the ENI is connected.
- Db
Instance List<string>Ids - 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 intNumber - The desire instance number of the scaling group.
- Instance
Terminate stringPolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- Launch
Template stringId - 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 List<ScalingOverrides Group Launch Template Override> - Specify instance specifications.
- Launch
Template stringVersion - The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- Multi
Az stringPolicy - The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- Project
Name string - The ProjectName of the scaling group.
- Scaling
Mode string - Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- Server
Group List<ScalingAttributes Group Server Group Attribute> - The load balancer server group attributes of the scaling group.
- List<Scaling
Group Tag> - Tags.
- Max
Instance intNumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- Min
Instance intNumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- Scaling
Group stringName - The name of the scaling group.
- Subnet
Ids []string - The list of the subnet id to which the ENI is connected.
- Db
Instance []stringIds - 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 intNumber - The desire instance number of the scaling group.
- Instance
Terminate stringPolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- Launch
Template stringId - 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 []ScalingOverrides Group Launch Template Override Args - Specify instance specifications.
- Launch
Template stringVersion - The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- Multi
Az stringPolicy - The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- Project
Name string - The ProjectName of the scaling group.
- Scaling
Mode string - Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- Server
Group []ScalingAttributes Group Server Group Attribute Args - The load balancer server group attributes of the scaling group.
- []Scaling
Group Tag Args - Tags.
- max
Instance IntegerNumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- min
Instance IntegerNumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- scaling
Group StringName - The name of the scaling group.
- subnet
Ids List<String> - The list of the subnet id to which the ENI is connected.
- db
Instance List<String>Ids - ID of the RDS database instance.
- default
Cooldown Integer - The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desire
Instance IntegerNumber - The desire instance number of the scaling group.
- instance
Terminate StringPolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launch
Template StringId - 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 List<ScalingOverrides Group Launch Template Override> - Specify instance specifications.
- launch
Template StringVersion - The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- multi
Az StringPolicy - The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- project
Name String - The ProjectName of the scaling group.
- scaling
Mode String - Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- server
Group List<ScalingAttributes Group Server Group Attribute> - The load balancer server group attributes of the scaling group.
- List<Scaling
Group Tag> - Tags.
- max
Instance numberNumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- min
Instance numberNumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- scaling
Group stringName - The name of the scaling group.
- subnet
Ids string[] - The list of the subnet id to which the ENI is connected.
- db
Instance string[]Ids - ID of the RDS database instance.
- default
Cooldown number - The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desire
Instance numberNumber - The desire instance number of the scaling group.
- instance
Terminate stringPolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launch
Template stringId - 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 ScalingOverrides Group Launch Template Override[] - Specify instance specifications.
- launch
Template stringVersion - The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- multi
Az stringPolicy - The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- project
Name string - The ProjectName of the scaling group.
- scaling
Mode string - Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- server
Group ScalingAttributes Group Server Group Attribute[] - The load balancer server group attributes of the scaling group.
- Scaling
Group Tag[] - Tags.
- max_
instance_ intnumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- min_
instance_ intnumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- scaling_
group_ strname - The name of the scaling group.
- subnet_
ids Sequence[str] - The list of the subnet id to which the ENI is connected.
- db_
instance_ Sequence[str]ids - 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_ intnumber - The desire instance number of the scaling group.
- instance_
terminate_ strpolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launch_
template_ strid - 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_ Sequence[Scalingoverrides Group Launch Template Override Args] - Specify instance specifications.
- launch_
template_ strversion - The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- multi_
az_ strpolicy - 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_ Sequence[Scalingattributes Group Server Group Attribute Args] - The load balancer server group attributes of the scaling group.
- Sequence[Scaling
Group Tag Args] - Tags.
- max
Instance NumberNumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- min
Instance NumberNumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- scaling
Group StringName - The name of the scaling group.
- subnet
Ids List<String> - The list of the subnet id to which the ENI is connected.
- db
Instance List<String>Ids - ID of the RDS database instance.
- default
Cooldown Number - The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desire
Instance NumberNumber - The desire instance number of the scaling group.
- instance
Terminate StringPolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launch
Template StringId - 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 List<Property Map>Overrides - Specify instance specifications.
- launch
Template StringVersion - The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- multi
Az StringPolicy - The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- project
Name String - The ProjectName of the scaling group.
- scaling
Mode String - Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- server
Group List<Property Map>Attributes - The load balancer server group attributes of the scaling group.
- List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScalingGroup resource produces the following output properties:
- Active
Scaling stringConfiguration Id - The scaling configuration id which used by the scaling group.
- Created
At string - The create time of the scaling group.
- Health
Check stringType - The health check type of the scaling group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - The lifecycle state of the scaling group.
- Load
Balancer intHealth Check Grace Period - Grace period for health check of CLB instance in elastic group.
- Scaling
Group stringId - The id of the scaling group.
- Stopped
Instance intCount - The number of stopped instances.
- Total
Instance intCount - The total instance count of the scaling group.
- Updated
At string - The create time of the scaling group.
- Vpc
Id string - The VPC id of the scaling group.
- Active
Scaling stringConfiguration Id - The scaling configuration id which used by the scaling group.
- Created
At string - The create time of the scaling group.
- Health
Check stringType - The health check type of the scaling group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - The lifecycle state of the scaling group.
- Load
Balancer intHealth Check Grace Period - Grace period for health check of CLB instance in elastic group.
- Scaling
Group stringId - The id of the scaling group.
- Stopped
Instance intCount - The number of stopped instances.
- Total
Instance intCount - The total instance count of the scaling group.
- Updated
At string - The create time of the scaling group.
- Vpc
Id string - The VPC id of the scaling group.
- active
Scaling StringConfiguration Id - The scaling configuration id which used by the scaling group.
- created
At String - The create time of the scaling group.
- health
Check StringType - The health check type of the scaling group.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - The lifecycle state of the scaling group.
- load
Balancer IntegerHealth Check Grace Period - Grace period for health check of CLB instance in elastic group.
- scaling
Group StringId - The id of the scaling group.
- stopped
Instance IntegerCount - The number of stopped instances.
- total
Instance IntegerCount - The total instance count of the scaling group.
- updated
At String - The create time of the scaling group.
- vpc
Id String - The VPC id of the scaling group.
- active
Scaling stringConfiguration Id - The scaling configuration id which used by the scaling group.
- created
At string - The create time of the scaling group.
- health
Check stringType - The health check type of the scaling group.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
State string - The lifecycle state of the scaling group.
- load
Balancer numberHealth Check Grace Period - Grace period for health check of CLB instance in elastic group.
- scaling
Group stringId - The id of the scaling group.
- stopped
Instance numberCount - The number of stopped instances.
- total
Instance numberCount - The total instance count of the scaling group.
- updated
At string - The create time of the scaling group.
- vpc
Id string - The VPC id of the scaling group.
- active_
scaling_ strconfiguration_ id - The scaling configuration id which used by the scaling group.
- created_
at str - The create time of the scaling group.
- health_
check_ strtype - 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_ inthealth_ check_ grace_ period - Grace period for health check of CLB instance in elastic group.
- scaling_
group_ strid - The id of the scaling group.
- stopped_
instance_ intcount - The number of stopped instances.
- total_
instance_ intcount - 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.
- active
Scaling StringConfiguration Id - The scaling configuration id which used by the scaling group.
- created
At String - The create time of the scaling group.
- health
Check StringType - The health check type of the scaling group.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - The lifecycle state of the scaling group.
- load
Balancer NumberHealth Check Grace Period - Grace period for health check of CLB instance in elastic group.
- scaling
Group StringId - The id of the scaling group.
- stopped
Instance NumberCount - The number of stopped instances.
- total
Instance NumberCount - The total instance count of the scaling group.
- updated
At String - The create time of the scaling group.
- vpc
Id 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.
- Active
Scaling stringConfiguration Id - The scaling configuration id which used by the scaling group.
- Created
At string - The create time of the scaling group.
- Db
Instance List<string>Ids - 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 intNumber - The desire instance number of the scaling group.
- Health
Check stringType - The health check type of the scaling group.
- Instance
Terminate stringPolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- Launch
Template stringId - 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 List<ScalingOverrides Group Launch Template Override> - Specify instance specifications.
- Launch
Template stringVersion - The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- Lifecycle
State string - The lifecycle state of the scaling group.
- Load
Balancer intHealth Check Grace Period - Grace period for health check of CLB instance in elastic group.
- Max
Instance intNumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- Min
Instance intNumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- Multi
Az stringPolicy - The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- Project
Name string - The ProjectName of the scaling group.
- Scaling
Group stringId - The id of the scaling group.
- Scaling
Group stringName - The name of the scaling group.
- Scaling
Mode string - Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- Server
Group List<ScalingAttributes Group Server Group Attribute> - The load balancer server group attributes of the scaling group.
- Stopped
Instance intCount - The number of stopped instances.
- Subnet
Ids List<string> - The list of the subnet id to which the ENI is connected.
- List<Scaling
Group Tag> - Tags.
- Total
Instance intCount - The total instance count of the scaling group.
- Updated
At string - The create time of the scaling group.
- Vpc
Id string - The VPC id of the scaling group.
- Active
Scaling stringConfiguration Id - The scaling configuration id which used by the scaling group.
- Created
At string - The create time of the scaling group.
- Db
Instance []stringIds - 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 intNumber - The desire instance number of the scaling group.
- Health
Check stringType - The health check type of the scaling group.
- Instance
Terminate stringPolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- Launch
Template stringId - 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 []ScalingOverrides Group Launch Template Override Args - Specify instance specifications.
- Launch
Template stringVersion - The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- Lifecycle
State string - The lifecycle state of the scaling group.
- Load
Balancer intHealth Check Grace Period - Grace period for health check of CLB instance in elastic group.
- Max
Instance intNumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- Min
Instance intNumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- Multi
Az stringPolicy - The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- Project
Name string - The ProjectName of the scaling group.
- Scaling
Group stringId - The id of the scaling group.
- Scaling
Group stringName - The name of the scaling group.
- Scaling
Mode string - Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- Server
Group []ScalingAttributes Group Server Group Attribute Args - The load balancer server group attributes of the scaling group.
- Stopped
Instance intCount - The number of stopped instances.
- Subnet
Ids []string - The list of the subnet id to which the ENI is connected.
- []Scaling
Group Tag Args - Tags.
- Total
Instance intCount - The total instance count of the scaling group.
- Updated
At string - The create time of the scaling group.
- Vpc
Id string - The VPC id of the scaling group.
- active
Scaling StringConfiguration Id - The scaling configuration id which used by the scaling group.
- created
At String - The create time of the scaling group.
- db
Instance List<String>Ids - ID of the RDS database instance.
- default
Cooldown Integer - The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desire
Instance IntegerNumber - The desire instance number of the scaling group.
- health
Check StringType - The health check type of the scaling group.
- instance
Terminate StringPolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launch
Template StringId - 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 List<ScalingOverrides Group Launch Template Override> - Specify instance specifications.
- launch
Template StringVersion - The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- lifecycle
State String - The lifecycle state of the scaling group.
- load
Balancer IntegerHealth Check Grace Period - Grace period for health check of CLB instance in elastic group.
- max
Instance IntegerNumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- min
Instance IntegerNumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- multi
Az StringPolicy - The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- project
Name String - The ProjectName of the scaling group.
- scaling
Group StringId - The id of the scaling group.
- scaling
Group StringName - The name of the scaling group.
- scaling
Mode String - Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- server
Group List<ScalingAttributes Group Server Group Attribute> - The load balancer server group attributes of the scaling group.
- stopped
Instance IntegerCount - The number of stopped instances.
- subnet
Ids List<String> - The list of the subnet id to which the ENI is connected.
- List<Scaling
Group Tag> - Tags.
- total
Instance IntegerCount - The total instance count of the scaling group.
- updated
At String - The create time of the scaling group.
- vpc
Id String - The VPC id of the scaling group.
- active
Scaling stringConfiguration Id - The scaling configuration id which used by the scaling group.
- created
At string - The create time of the scaling group.
- db
Instance string[]Ids - ID of the RDS database instance.
- default
Cooldown number - The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desire
Instance numberNumber - The desire instance number of the scaling group.
- health
Check stringType - The health check type of the scaling group.
- instance
Terminate stringPolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launch
Template stringId - 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 ScalingOverrides Group Launch Template Override[] - Specify instance specifications.
- launch
Template stringVersion - The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- lifecycle
State string - The lifecycle state of the scaling group.
- load
Balancer numberHealth Check Grace Period - Grace period for health check of CLB instance in elastic group.
- max
Instance numberNumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- min
Instance numberNumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- multi
Az stringPolicy - The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- project
Name string - The ProjectName of the scaling group.
- scaling
Group stringId - The id of the scaling group.
- scaling
Group stringName - The name of the scaling group.
- scaling
Mode string - Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- server
Group ScalingAttributes Group Server Group Attribute[] - The load balancer server group attributes of the scaling group.
- stopped
Instance numberCount - The number of stopped instances.
- subnet
Ids string[] - The list of the subnet id to which the ENI is connected.
- Scaling
Group Tag[] - Tags.
- total
Instance numberCount - The total instance count of the scaling group.
- updated
At string - The create time of the scaling group.
- vpc
Id string - The VPC id of the scaling group.
- active_
scaling_ strconfiguration_ id - The scaling configuration id which used by the scaling group.
- created_
at str - The create time of the scaling group.
- db_
instance_ Sequence[str]ids - 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_ intnumber - The desire instance number of the scaling group.
- health_
check_ strtype - The health check type of the scaling group.
- instance_
terminate_ strpolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launch_
template_ strid - 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_ Sequence[Scalingoverrides Group Launch Template Override Args] - Specify instance specifications.
- launch_
template_ strversion - 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_ inthealth_ check_ grace_ period - Grace period for health check of CLB instance in elastic group.
- max_
instance_ intnumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- min_
instance_ intnumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- multi_
az_ strpolicy - 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_ strid - The id of the scaling group.
- scaling_
group_ strname - 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_ Sequence[Scalingattributes Group Server Group Attribute Args] - The load balancer server group attributes of the scaling group.
- stopped_
instance_ intcount - The number of stopped instances.
- subnet_
ids Sequence[str] - The list of the subnet id to which the ENI is connected.
- Sequence[Scaling
Group Tag Args] - Tags.
- total_
instance_ intcount - 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.
- active
Scaling StringConfiguration Id - The scaling configuration id which used by the scaling group.
- created
At String - The create time of the scaling group.
- db
Instance List<String>Ids - ID of the RDS database instance.
- default
Cooldown Number - The default cooldown interval of the scaling group. Value range: 5 ~ 86400, unit: second. Default value: 300.
- desire
Instance NumberNumber - The desire instance number of the scaling group.
- health
Check StringType - The health check type of the scaling group.
- instance
Terminate StringPolicy - The instance terminate policy of the scaling group. Valid values: OldestInstance, NewestInstance, OldestScalingConfigurationWithOldestInstance, OldestScalingConfigurationWithNewestInstance. Default value: OldestScalingConfigurationWithOldestInstance.
- launch
Template StringId - 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 List<Property Map>Overrides - Specify instance specifications.
- launch
Template StringVersion - The version of the launch template bound to the scaling group. Valid values are the version number, Latest, or Default.
- lifecycle
State String - The lifecycle state of the scaling group.
- load
Balancer NumberHealth Check Grace Period - Grace period for health check of CLB instance in elastic group.
- max
Instance NumberNumber - The max instance number of the scaling group. Value range: 0 ~ 100.
- min
Instance NumberNumber - The min instance number of the scaling group. Value range: 0 ~ 100.
- multi
Az StringPolicy - The multi az policy of the scaling group. Valid values: PRIORITY, BALANCE. Default value: PRIORITY.
- project
Name String - The ProjectName of the scaling group.
- scaling
Group StringId - The id of the scaling group.
- scaling
Group StringName - The name of the scaling group.
- scaling
Mode String - Example recycling mode for the elastic group, with values: release (default): Release mode. recycle: Shutdown recycling mode.
- server
Group List<Property Map>Attributes - The load balancer server group attributes of the scaling group.
- stopped
Instance NumberCount - The number of stopped instances.
- subnet
Ids List<String> - The list of the subnet id to which the ENI is connected.
- List<Property Map>
- Tags.
- total
Instance NumberCount - The total instance count of the scaling group.
- updated
At String - The create time of the scaling group.
- vpc
Id String - The VPC id of the scaling group.
Supporting Types
ScalingGroupLaunchTemplateOverride, ScalingGroupLaunchTemplateOverrideArgs
- Instance
Type string - The instance type.
- Instance
Type string - The instance type.
- instance
Type String - The instance type.
- instance
Type string - The instance type.
- instance_
type str - The instance type.
- instance
Type String - The instance type.
ScalingGroupServerGroupAttribute, ScalingGroupServerGroupAttributeArgs
- Port int
- The port receiving request of the server group. Value range: 1 ~ 65535.
- Server
Group stringId - The id of the server group.
- Weight int
- The weight of the instance. Value range: 0 ~ 100.
- Load
Balancer stringId
- Port int
- The port receiving request of the server group. Value range: 1 ~ 65535.
- Server
Group stringId - The id of the server group.
- Weight int
- The weight of the instance. Value range: 0 ~ 100.
- Load
Balancer stringId
- port Integer
- The port receiving request of the server group. Value range: 1 ~ 65535.
- server
Group StringId - The id of the server group.
- weight Integer
- The weight of the instance. Value range: 0 ~ 100.
- load
Balancer StringId
- port number
- The port receiving request of the server group. Value range: 1 ~ 65535.
- server
Group stringId - The id of the server group.
- weight number
- The weight of the instance. Value range: 0 ~ 100.
- load
Balancer stringId
- port int
- The port receiving request of the server group. Value range: 1 ~ 65535.
- server_
group_ strid - The id of the server group.
- weight int
- The weight of the instance. Value range: 0 ~ 100.
- load_
balancer_ strid
- port Number
- The port receiving request of the server group. Value range: 1 ~ 65535.
- server
Group StringId - The id of the server group.
- weight Number
- The weight of the instance. Value range: 0 ~ 100.
- load
Balancer StringId
ScalingGroupTag, ScalingGroupTagArgs
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.