volcengine.autoscaling.ScalingConfiguration
Explore with Pulumi AI
Example Usage
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 fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
    securityGroupName: "acc-test-security-group",
    vpcId: fooVpc.id,
});
const fooImages = volcengine.ecs.Images({
    osType: "Linux",
    visibility: "public",
    instanceTypeId: "ecs.g1.large",
});
const fooScalingGroup = new volcengine.autoscaling.ScalingGroup("fooScalingGroup", {
    scalingGroupName: "acc-test-scaling-group",
    subnetIds: [fooSubnet.id],
    multiAzPolicy: "BALANCE",
    desireInstanceNumber: 0,
    minInstanceNumber: 0,
    maxInstanceNumber: 1,
    instanceTerminatePolicy: "OldestInstance",
    defaultCooldown: 10,
});
const fooScalingConfiguration = new volcengine.autoscaling.ScalingConfiguration("fooScalingConfiguration", {
    scalingConfigurationName: "tf-test",
    scalingGroupId: fooScalingGroup.id,
    imageId: fooImages.then(fooImages => fooImages.images?.[0]?.imageId),
    instanceTypes: ["ecs.g2i.large"],
    instanceName: "tf-test",
    instanceDescription: "",
    hostName: "",
    password: "",
    keyPairName: "tf-keypair",
    securityEnhancementStrategy: "InActive",
    volumes: [
        {
            volumeType: "ESSD_PL0",
            size: 20,
            deleteWithInstance: false,
        },
        {
            volumeType: "ESSD_PL0",
            size: 50,
            deleteWithInstance: true,
        },
    ],
    securityGroupIds: [fooSecurityGroup.id],
    eipBandwidth: 10,
    eipIsp: "ChinaMobile",
    eipBillingType: "PostPaidByBandwidth",
    userData: "IyEvYmluL2Jhc2gKZWNobyAidGVzdCI=",
    tags: [
        {
            key: "tf-key1",
            value: "tf-value1",
        },
        {
            key: "tf-key2",
            value: "tf-value2",
        },
    ],
    projectName: "default",
    hpcClusterId: "",
    spotStrategy: "NoSpot",
});
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_security_group = volcengine.vpc.SecurityGroup("fooSecurityGroup",
    security_group_name="acc-test-security-group",
    vpc_id=foo_vpc.id)
foo_images = volcengine.ecs.images(os_type="Linux",
    visibility="public",
    instance_type_id="ecs.g1.large")
foo_scaling_group = volcengine.autoscaling.ScalingGroup("fooScalingGroup",
    scaling_group_name="acc-test-scaling-group",
    subnet_ids=[foo_subnet.id],
    multi_az_policy="BALANCE",
    desire_instance_number=0,
    min_instance_number=0,
    max_instance_number=1,
    instance_terminate_policy="OldestInstance",
    default_cooldown=10)
foo_scaling_configuration = volcengine.autoscaling.ScalingConfiguration("fooScalingConfiguration",
    scaling_configuration_name="tf-test",
    scaling_group_id=foo_scaling_group.id,
    image_id=foo_images.images[0].image_id,
    instance_types=["ecs.g2i.large"],
    instance_name="tf-test",
    instance_description="",
    host_name="",
    password="",
    key_pair_name="tf-keypair",
    security_enhancement_strategy="InActive",
    volumes=[
        volcengine.autoscaling.ScalingConfigurationVolumeArgs(
            volume_type="ESSD_PL0",
            size=20,
            delete_with_instance=False,
        ),
        volcengine.autoscaling.ScalingConfigurationVolumeArgs(
            volume_type="ESSD_PL0",
            size=50,
            delete_with_instance=True,
        ),
    ],
    security_group_ids=[foo_security_group.id],
    eip_bandwidth=10,
    eip_isp="ChinaMobile",
    eip_billing_type="PostPaidByBandwidth",
    user_data="IyEvYmluL2Jhc2gKZWNobyAidGVzdCI=",
    tags=[
        volcengine.autoscaling.ScalingConfigurationTagArgs(
            key="tf-key1",
            value="tf-value1",
        ),
        volcengine.autoscaling.ScalingConfigurationTagArgs(
            key="tf-key2",
            value="tf-value2",
        ),
    ],
    project_name="default",
    hpc_cluster_id="",
    spot_strategy="NoSpot")
package main
import (
	"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
		}
		fooSecurityGroup, err := vpc.NewSecurityGroup(ctx, "fooSecurityGroup", &vpc.SecurityGroupArgs{
			SecurityGroupName: pulumi.String("acc-test-security-group"),
			VpcId:             fooVpc.ID(),
		})
		if err != nil {
			return err
		}
		fooImages, err := ecs.Images(ctx, &ecs.ImagesArgs{
			OsType:         pulumi.StringRef("Linux"),
			Visibility:     pulumi.StringRef("public"),
			InstanceTypeId: pulumi.StringRef("ecs.g1.large"),
		}, nil)
		if err != nil {
			return err
		}
		fooScalingGroup, err := autoscaling.NewScalingGroup(ctx, "fooScalingGroup", &autoscaling.ScalingGroupArgs{
			ScalingGroupName: pulumi.String("acc-test-scaling-group"),
			SubnetIds: pulumi.StringArray{
				fooSubnet.ID(),
			},
			MultiAzPolicy:           pulumi.String("BALANCE"),
			DesireInstanceNumber:    pulumi.Int(0),
			MinInstanceNumber:       pulumi.Int(0),
			MaxInstanceNumber:       pulumi.Int(1),
			InstanceTerminatePolicy: pulumi.String("OldestInstance"),
			DefaultCooldown:         pulumi.Int(10),
		})
		if err != nil {
			return err
		}
		_, err = autoscaling.NewScalingConfiguration(ctx, "fooScalingConfiguration", &autoscaling.ScalingConfigurationArgs{
			ScalingConfigurationName: pulumi.String("tf-test"),
			ScalingGroupId:           fooScalingGroup.ID(),
			ImageId:                  pulumi.String(fooImages.Images[0].ImageId),
			InstanceTypes: pulumi.StringArray{
				pulumi.String("ecs.g2i.large"),
			},
			InstanceName:                pulumi.String("tf-test"),
			InstanceDescription:         pulumi.String(""),
			HostName:                    pulumi.String(""),
			Password:                    pulumi.String(""),
			KeyPairName:                 pulumi.String("tf-keypair"),
			SecurityEnhancementStrategy: pulumi.String("InActive"),
			Volumes: autoscaling.ScalingConfigurationVolumeArray{
				&autoscaling.ScalingConfigurationVolumeArgs{
					VolumeType:         pulumi.String("ESSD_PL0"),
					Size:               pulumi.Int(20),
					DeleteWithInstance: pulumi.Bool(false),
				},
				&autoscaling.ScalingConfigurationVolumeArgs{
					VolumeType:         pulumi.String("ESSD_PL0"),
					Size:               pulumi.Int(50),
					DeleteWithInstance: pulumi.Bool(true),
				},
			},
			SecurityGroupIds: pulumi.StringArray{
				fooSecurityGroup.ID(),
			},
			EipBandwidth:   pulumi.Int(10),
			EipIsp:         pulumi.String("ChinaMobile"),
			EipBillingType: pulumi.String("PostPaidByBandwidth"),
			UserData:       pulumi.String("IyEvYmluL2Jhc2gKZWNobyAidGVzdCI="),
			Tags: autoscaling.ScalingConfigurationTagArray{
				&autoscaling.ScalingConfigurationTagArgs{
					Key:   pulumi.String("tf-key1"),
					Value: pulumi.String("tf-value1"),
				},
				&autoscaling.ScalingConfigurationTagArgs{
					Key:   pulumi.String("tf-key2"),
					Value: pulumi.String("tf-value2"),
				},
			},
			ProjectName:  pulumi.String("default"),
			HpcClusterId: pulumi.String(""),
			SpotStrategy: pulumi.String("NoSpot"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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 fooSecurityGroup = new Volcengine.Vpc.SecurityGroup("fooSecurityGroup", new()
    {
        SecurityGroupName = "acc-test-security-group",
        VpcId = fooVpc.Id,
    });
    var fooImages = Volcengine.Ecs.Images.Invoke(new()
    {
        OsType = "Linux",
        Visibility = "public",
        InstanceTypeId = "ecs.g1.large",
    });
    var fooScalingGroup = new Volcengine.Autoscaling.ScalingGroup("fooScalingGroup", new()
    {
        ScalingGroupName = "acc-test-scaling-group",
        SubnetIds = new[]
        {
            fooSubnet.Id,
        },
        MultiAzPolicy = "BALANCE",
        DesireInstanceNumber = 0,
        MinInstanceNumber = 0,
        MaxInstanceNumber = 1,
        InstanceTerminatePolicy = "OldestInstance",
        DefaultCooldown = 10,
    });
    var fooScalingConfiguration = new Volcengine.Autoscaling.ScalingConfiguration("fooScalingConfiguration", new()
    {
        ScalingConfigurationName = "tf-test",
        ScalingGroupId = fooScalingGroup.Id,
        ImageId = fooImages.Apply(imagesResult => imagesResult.Images[0]?.ImageId),
        InstanceTypes = new[]
        {
            "ecs.g2i.large",
        },
        InstanceName = "tf-test",
        InstanceDescription = "",
        HostName = "",
        Password = "",
        KeyPairName = "tf-keypair",
        SecurityEnhancementStrategy = "InActive",
        Volumes = new[]
        {
            new Volcengine.Autoscaling.Inputs.ScalingConfigurationVolumeArgs
            {
                VolumeType = "ESSD_PL0",
                Size = 20,
                DeleteWithInstance = false,
            },
            new Volcengine.Autoscaling.Inputs.ScalingConfigurationVolumeArgs
            {
                VolumeType = "ESSD_PL0",
                Size = 50,
                DeleteWithInstance = true,
            },
        },
        SecurityGroupIds = new[]
        {
            fooSecurityGroup.Id,
        },
        EipBandwidth = 10,
        EipIsp = "ChinaMobile",
        EipBillingType = "PostPaidByBandwidth",
        UserData = "IyEvYmluL2Jhc2gKZWNobyAidGVzdCI=",
        Tags = new[]
        {
            new Volcengine.Autoscaling.Inputs.ScalingConfigurationTagArgs
            {
                Key = "tf-key1",
                Value = "tf-value1",
            },
            new Volcengine.Autoscaling.Inputs.ScalingConfigurationTagArgs
            {
                Key = "tf-key2",
                Value = "tf-value2",
            },
        },
        ProjectName = "default",
        HpcClusterId = "",
        SpotStrategy = "NoSpot",
    });
});
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.vpc.SecurityGroup;
import com.pulumi.volcengine.vpc.SecurityGroupArgs;
import com.pulumi.volcengine.ecs.inputs.ImagesArgs;
import com.pulumi.volcengine.autoscaling.ScalingGroup;
import com.pulumi.volcengine.autoscaling.ScalingGroupArgs;
import com.pulumi.volcengine.autoscaling.ScalingConfiguration;
import com.pulumi.volcengine.autoscaling.ScalingConfigurationArgs;
import com.pulumi.volcengine.autoscaling.inputs.ScalingConfigurationVolumeArgs;
import com.pulumi.volcengine.autoscaling.inputs.ScalingConfigurationTagArgs;
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());
        var fooSecurityGroup = new SecurityGroup("fooSecurityGroup", SecurityGroupArgs.builder()        
            .securityGroupName("acc-test-security-group")
            .vpcId(fooVpc.id())
            .build());
        final var fooImages = EcsFunctions.Images(ImagesArgs.builder()
            .osType("Linux")
            .visibility("public")
            .instanceTypeId("ecs.g1.large")
            .build());
        var fooScalingGroup = new ScalingGroup("fooScalingGroup", ScalingGroupArgs.builder()        
            .scalingGroupName("acc-test-scaling-group")
            .subnetIds(fooSubnet.id())
            .multiAzPolicy("BALANCE")
            .desireInstanceNumber(0)
            .minInstanceNumber(0)
            .maxInstanceNumber(1)
            .instanceTerminatePolicy("OldestInstance")
            .defaultCooldown(10)
            .build());
        var fooScalingConfiguration = new ScalingConfiguration("fooScalingConfiguration", ScalingConfigurationArgs.builder()        
            .scalingConfigurationName("tf-test")
            .scalingGroupId(fooScalingGroup.id())
            .imageId(fooImages.applyValue(imagesResult -> imagesResult.images()[0].imageId()))
            .instanceTypes("ecs.g2i.large")
            .instanceName("tf-test")
            .instanceDescription("")
            .hostName("")
            .password("")
            .keyPairName("tf-keypair")
            .securityEnhancementStrategy("InActive")
            .volumes(            
                ScalingConfigurationVolumeArgs.builder()
                    .volumeType("ESSD_PL0")
                    .size(20)
                    .deleteWithInstance(false)
                    .build(),
                ScalingConfigurationVolumeArgs.builder()
                    .volumeType("ESSD_PL0")
                    .size(50)
                    .deleteWithInstance(true)
                    .build())
            .securityGroupIds(fooSecurityGroup.id())
            .eipBandwidth(10)
            .eipIsp("ChinaMobile")
            .eipBillingType("PostPaidByBandwidth")
            .userData("IyEvYmluL2Jhc2gKZWNobyAidGVzdCI=")
            .tags(            
                ScalingConfigurationTagArgs.builder()
                    .key("tf-key1")
                    .value("tf-value1")
                    .build(),
                ScalingConfigurationTagArgs.builder()
                    .key("tf-key2")
                    .value("tf-value2")
                    .build())
            .projectName("default")
            .hpcClusterId("")
            .spotStrategy("NoSpot")
            .build());
    }
}
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}
  fooSecurityGroup:
    type: volcengine:vpc:SecurityGroup
    properties:
      securityGroupName: acc-test-security-group
      vpcId: ${fooVpc.id}
  fooScalingGroup:
    type: volcengine:autoscaling:ScalingGroup
    properties:
      scalingGroupName: acc-test-scaling-group
      subnetIds:
        - ${fooSubnet.id}
      multiAzPolicy: BALANCE
      desireInstanceNumber: 0
      minInstanceNumber: 0
      maxInstanceNumber: 1
      instanceTerminatePolicy: OldestInstance
      defaultCooldown: 10
  fooScalingConfiguration:
    type: volcengine:autoscaling:ScalingConfiguration
    properties:
      scalingConfigurationName: tf-test
      scalingGroupId: ${fooScalingGroup.id}
      imageId: ${fooImages.images[0].imageId}
      instanceTypes:
        - ecs.g2i.large
      instanceName: tf-test
      instanceDescription:
      hostName:
      password:
      keyPairName: tf-keypair
      securityEnhancementStrategy: InActive
      volumes:
        - volumeType: ESSD_PL0
          size: 20
          deleteWithInstance: false
        - volumeType: ESSD_PL0
          size: 50
          deleteWithInstance: true
      securityGroupIds:
        - ${fooSecurityGroup.id}
      eipBandwidth: 10
      eipIsp: ChinaMobile
      eipBillingType: PostPaidByBandwidth
      userData: IyEvYmluL2Jhc2gKZWNobyAidGVzdCI=
      tags:
        - key: tf-key1
          value: tf-value1
        - key: tf-key2
          value: tf-value2
      projectName: default
      hpcClusterId:
      spotStrategy: NoSpot
variables:
  fooZones:
    fn::invoke:
      Function: volcengine:ecs:Zones
      Arguments: {}
  fooImages:
    fn::invoke:
      Function: volcengine:ecs:Images
      Arguments:
        osType: Linux
        visibility: public
        instanceTypeId: ecs.g1.large
Create ScalingConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScalingConfiguration(name: string, args: ScalingConfigurationArgs, opts?: CustomResourceOptions);@overload
def ScalingConfiguration(resource_name: str,
                         args: ScalingConfigurationArgs,
                         opts: Optional[ResourceOptions] = None)
@overload
def ScalingConfiguration(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         instance_name: Optional[str] = None,
                         volumes: Optional[Sequence[ScalingConfigurationVolumeArgs]] = None,
                         security_group_ids: Optional[Sequence[str]] = None,
                         scaling_group_id: Optional[str] = None,
                         scaling_configuration_name: Optional[str] = None,
                         image_id: Optional[str] = None,
                         instance_types: Optional[Sequence[str]] = None,
                         key_pair_name: Optional[str] = None,
                         host_name: Optional[str] = None,
                         ipv6_address_count: Optional[int] = None,
                         eip_bandwidth: Optional[int] = None,
                         password: Optional[str] = None,
                         project_name: Optional[str] = None,
                         hpc_cluster_id: Optional[str] = None,
                         instance_description: Optional[str] = None,
                         security_enhancement_strategy: Optional[str] = None,
                         eip_isp: Optional[str] = None,
                         spot_strategy: Optional[str] = None,
                         tags: Optional[Sequence[ScalingConfigurationTagArgs]] = None,
                         user_data: Optional[str] = None,
                         eip_billing_type: Optional[str] = None)func NewScalingConfiguration(ctx *Context, name string, args ScalingConfigurationArgs, opts ...ResourceOption) (*ScalingConfiguration, error)public ScalingConfiguration(string name, ScalingConfigurationArgs args, CustomResourceOptions? opts = null)
public ScalingConfiguration(String name, ScalingConfigurationArgs args)
public ScalingConfiguration(String name, ScalingConfigurationArgs args, CustomResourceOptions options)
type: volcengine:autoscaling:ScalingConfiguration
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 ScalingConfigurationArgs
- 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 ScalingConfigurationArgs
- 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 ScalingConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScalingConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScalingConfigurationArgs
- 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 scalingConfigurationResource = new Volcengine.Autoscaling.ScalingConfiguration("scalingConfigurationResource", new()
{
    InstanceName = "string",
    Volumes = new[]
    {
        new Volcengine.Autoscaling.Inputs.ScalingConfigurationVolumeArgs
        {
            Size = 0,
            VolumeType = "string",
            DeleteWithInstance = false,
        },
    },
    SecurityGroupIds = new[]
    {
        "string",
    },
    ScalingGroupId = "string",
    ScalingConfigurationName = "string",
    ImageId = "string",
    InstanceTypes = new[]
    {
        "string",
    },
    KeyPairName = "string",
    HostName = "string",
    Ipv6AddressCount = 0,
    EipBandwidth = 0,
    Password = "string",
    ProjectName = "string",
    HpcClusterId = "string",
    InstanceDescription = "string",
    SecurityEnhancementStrategy = "string",
    EipIsp = "string",
    SpotStrategy = "string",
    Tags = new[]
    {
        new Volcengine.Autoscaling.Inputs.ScalingConfigurationTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
    UserData = "string",
    EipBillingType = "string",
});
example, err := autoscaling.NewScalingConfiguration(ctx, "scalingConfigurationResource", &autoscaling.ScalingConfigurationArgs{
	InstanceName: pulumi.String("string"),
	Volumes: autoscaling.ScalingConfigurationVolumeArray{
		&autoscaling.ScalingConfigurationVolumeArgs{
			Size:               pulumi.Int(0),
			VolumeType:         pulumi.String("string"),
			DeleteWithInstance: pulumi.Bool(false),
		},
	},
	SecurityGroupIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	ScalingGroupId:           pulumi.String("string"),
	ScalingConfigurationName: pulumi.String("string"),
	ImageId:                  pulumi.String("string"),
	InstanceTypes: pulumi.StringArray{
		pulumi.String("string"),
	},
	KeyPairName:                 pulumi.String("string"),
	HostName:                    pulumi.String("string"),
	Ipv6AddressCount:            pulumi.Int(0),
	EipBandwidth:                pulumi.Int(0),
	Password:                    pulumi.String("string"),
	ProjectName:                 pulumi.String("string"),
	HpcClusterId:                pulumi.String("string"),
	InstanceDescription:         pulumi.String("string"),
	SecurityEnhancementStrategy: pulumi.String("string"),
	EipIsp:                      pulumi.String("string"),
	SpotStrategy:                pulumi.String("string"),
	Tags: autoscaling.ScalingConfigurationTagArray{
		&autoscaling.ScalingConfigurationTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	UserData:       pulumi.String("string"),
	EipBillingType: pulumi.String("string"),
})
var scalingConfigurationResource = new ScalingConfiguration("scalingConfigurationResource", ScalingConfigurationArgs.builder()
    .instanceName("string")
    .volumes(ScalingConfigurationVolumeArgs.builder()
        .size(0)
        .volumeType("string")
        .deleteWithInstance(false)
        .build())
    .securityGroupIds("string")
    .scalingGroupId("string")
    .scalingConfigurationName("string")
    .imageId("string")
    .instanceTypes("string")
    .keyPairName("string")
    .hostName("string")
    .ipv6AddressCount(0)
    .eipBandwidth(0)
    .password("string")
    .projectName("string")
    .hpcClusterId("string")
    .instanceDescription("string")
    .securityEnhancementStrategy("string")
    .eipIsp("string")
    .spotStrategy("string")
    .tags(ScalingConfigurationTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .userData("string")
    .eipBillingType("string")
    .build());
scaling_configuration_resource = volcengine.autoscaling.ScalingConfiguration("scalingConfigurationResource",
    instance_name="string",
    volumes=[{
        "size": 0,
        "volume_type": "string",
        "delete_with_instance": False,
    }],
    security_group_ids=["string"],
    scaling_group_id="string",
    scaling_configuration_name="string",
    image_id="string",
    instance_types=["string"],
    key_pair_name="string",
    host_name="string",
    ipv6_address_count=0,
    eip_bandwidth=0,
    password="string",
    project_name="string",
    hpc_cluster_id="string",
    instance_description="string",
    security_enhancement_strategy="string",
    eip_isp="string",
    spot_strategy="string",
    tags=[{
        "key": "string",
        "value": "string",
    }],
    user_data="string",
    eip_billing_type="string")
const scalingConfigurationResource = new volcengine.autoscaling.ScalingConfiguration("scalingConfigurationResource", {
    instanceName: "string",
    volumes: [{
        size: 0,
        volumeType: "string",
        deleteWithInstance: false,
    }],
    securityGroupIds: ["string"],
    scalingGroupId: "string",
    scalingConfigurationName: "string",
    imageId: "string",
    instanceTypes: ["string"],
    keyPairName: "string",
    hostName: "string",
    ipv6AddressCount: 0,
    eipBandwidth: 0,
    password: "string",
    projectName: "string",
    hpcClusterId: "string",
    instanceDescription: "string",
    securityEnhancementStrategy: "string",
    eipIsp: "string",
    spotStrategy: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
    userData: "string",
    eipBillingType: "string",
});
type: volcengine:autoscaling:ScalingConfiguration
properties:
    eipBandwidth: 0
    eipBillingType: string
    eipIsp: string
    hostName: string
    hpcClusterId: string
    imageId: string
    instanceDescription: string
    instanceName: string
    instanceTypes:
        - string
    ipv6AddressCount: 0
    keyPairName: string
    password: string
    projectName: string
    scalingConfigurationName: string
    scalingGroupId: string
    securityEnhancementStrategy: string
    securityGroupIds:
        - string
    spotStrategy: string
    tags:
        - key: string
          value: string
    userData: string
    volumes:
        - deleteWithInstance: false
          size: 0
          volumeType: string
ScalingConfiguration 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 ScalingConfiguration resource accepts the following input properties:
- ImageId string
- The ECS image id which the scaling configuration set.
- InstanceName string
- The ECS instance name which the scaling configuration set.
- InstanceTypes List<string>
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- ScalingConfiguration stringName 
- The name of the scaling configuration.
- ScalingGroup stringId 
- The id of the scaling group to which the scaling configuration belongs.
- SecurityGroup List<string>Ids 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- Volumes
List<ScalingConfiguration Volume> 
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- EipBandwidth int
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- EipBilling stringType 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- EipIsp string
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- HostName string
- The ECS hostname which the scaling configuration set.
- HpcCluster stringId 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- InstanceDescription string
- The ECS instance description which the scaling configuration set.
- Ipv6AddressCount int
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- KeyPair stringName 
- The ECS key pair name which the scaling configuration set.
- Password string
- The ECS password which the scaling configuration set.
- ProjectName string
- The project to which the instance created by the scaling configuration belongs.
- SecurityEnhancement stringStrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- SpotStrategy string
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- 
List<ScalingConfiguration Tag> 
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- UserData string
- The ECS user data which the scaling configuration set.
- ImageId string
- The ECS image id which the scaling configuration set.
- InstanceName string
- The ECS instance name which the scaling configuration set.
- InstanceTypes []string
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- ScalingConfiguration stringName 
- The name of the scaling configuration.
- ScalingGroup stringId 
- The id of the scaling group to which the scaling configuration belongs.
- SecurityGroup []stringIds 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- Volumes
[]ScalingConfiguration Volume Args 
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- EipBandwidth int
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- EipBilling stringType 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- EipIsp string
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- HostName string
- The ECS hostname which the scaling configuration set.
- HpcCluster stringId 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- InstanceDescription string
- The ECS instance description which the scaling configuration set.
- Ipv6AddressCount int
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- KeyPair stringName 
- The ECS key pair name which the scaling configuration set.
- Password string
- The ECS password which the scaling configuration set.
- ProjectName string
- The project to which the instance created by the scaling configuration belongs.
- SecurityEnhancement stringStrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- SpotStrategy string
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- 
[]ScalingConfiguration Tag Args 
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- UserData string
- The ECS user data which the scaling configuration set.
- imageId String
- The ECS image id which the scaling configuration set.
- instanceName String
- The ECS instance name which the scaling configuration set.
- instanceTypes List<String>
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- scalingConfiguration StringName 
- The name of the scaling configuration.
- scalingGroup StringId 
- The id of the scaling group to which the scaling configuration belongs.
- securityGroup List<String>Ids 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- volumes
List<ScalingConfiguration Volume> 
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- eipBandwidth Integer
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- eipBilling StringType 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eipIsp String
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- hostName String
- The ECS hostname which the scaling configuration set.
- hpcCluster StringId 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- instanceDescription String
- The ECS instance description which the scaling configuration set.
- ipv6AddressCount Integer
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- keyPair StringName 
- The ECS key pair name which the scaling configuration set.
- password String
- The ECS password which the scaling configuration set.
- projectName String
- The project to which the instance created by the scaling configuration belongs.
- securityEnhancement StringStrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- spotStrategy String
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- 
List<ScalingConfiguration Tag> 
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- userData String
- The ECS user data which the scaling configuration set.
- imageId string
- The ECS image id which the scaling configuration set.
- instanceName string
- The ECS instance name which the scaling configuration set.
- instanceTypes string[]
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- scalingConfiguration stringName 
- The name of the scaling configuration.
- scalingGroup stringId 
- The id of the scaling group to which the scaling configuration belongs.
- securityGroup string[]Ids 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- volumes
ScalingConfiguration Volume[] 
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- eipBandwidth number
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- eipBilling stringType 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eipIsp string
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- hostName string
- The ECS hostname which the scaling configuration set.
- hpcCluster stringId 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- instanceDescription string
- The ECS instance description which the scaling configuration set.
- ipv6AddressCount number
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- keyPair stringName 
- The ECS key pair name which the scaling configuration set.
- password string
- The ECS password which the scaling configuration set.
- projectName string
- The project to which the instance created by the scaling configuration belongs.
- securityEnhancement stringStrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- spotStrategy string
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- 
ScalingConfiguration Tag[] 
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- userData string
- The ECS user data which the scaling configuration set.
- image_id str
- The ECS image id which the scaling configuration set.
- instance_name str
- The ECS instance name which the scaling configuration set.
- instance_types Sequence[str]
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- scaling_configuration_ strname 
- The name of the scaling configuration.
- scaling_group_ strid 
- The id of the scaling group to which the scaling configuration belongs.
- security_group_ Sequence[str]ids 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- volumes
Sequence[ScalingConfiguration Volume Args] 
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- eip_bandwidth int
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- eip_billing_ strtype 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip_isp str
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host_name str
- The ECS hostname which the scaling configuration set.
- hpc_cluster_ strid 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- instance_description str
- The ECS instance description which the scaling configuration set.
- ipv6_address_ intcount 
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- key_pair_ strname 
- The ECS key pair name which the scaling configuration set.
- password str
- The ECS password which the scaling configuration set.
- project_name str
- The project to which the instance created by the scaling configuration belongs.
- security_enhancement_ strstrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- spot_strategy str
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- 
Sequence[ScalingConfiguration Tag Args] 
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- user_data str
- The ECS user data which the scaling configuration set.
- imageId String
- The ECS image id which the scaling configuration set.
- instanceName String
- The ECS instance name which the scaling configuration set.
- instanceTypes List<String>
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- scalingConfiguration StringName 
- The name of the scaling configuration.
- scalingGroup StringId 
- The id of the scaling group to which the scaling configuration belongs.
- securityGroup List<String>Ids 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- volumes List<Property Map>
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- eipBandwidth Number
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- eipBilling StringType 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eipIsp String
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- hostName String
- The ECS hostname which the scaling configuration set.
- hpcCluster StringId 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- instanceDescription String
- The ECS instance description which the scaling configuration set.
- ipv6AddressCount Number
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- keyPair StringName 
- The ECS key pair name which the scaling configuration set.
- password String
- The ECS password which the scaling configuration set.
- projectName String
- The project to which the instance created by the scaling configuration belongs.
- securityEnhancement StringStrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- spotStrategy String
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- List<Property Map>
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- userData String
- The ECS user data which the scaling configuration set.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScalingConfiguration resource produces the following output properties:
- CreatedAt string
- The create time of the scaling configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleState string
- The lifecycle state of the scaling configuration.
- ScalingConfiguration stringId 
- The id of the scaling configuration.
- UpdatedAt string
- The create time of the scaling configuration.
- CreatedAt string
- The create time of the scaling configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleState string
- The lifecycle state of the scaling configuration.
- ScalingConfiguration stringId 
- The id of the scaling configuration.
- UpdatedAt string
- The create time of the scaling configuration.
- createdAt String
- The create time of the scaling configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleState String
- The lifecycle state of the scaling configuration.
- scalingConfiguration StringId 
- The id of the scaling configuration.
- updatedAt String
- The create time of the scaling configuration.
- createdAt string
- The create time of the scaling configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycleState string
- The lifecycle state of the scaling configuration.
- scalingConfiguration stringId 
- The id of the scaling configuration.
- updatedAt string
- The create time of the scaling configuration.
- created_at str
- The create time of the scaling configuration.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_state str
- The lifecycle state of the scaling configuration.
- scaling_configuration_ strid 
- The id of the scaling configuration.
- updated_at str
- The create time of the scaling configuration.
- createdAt String
- The create time of the scaling configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleState String
- The lifecycle state of the scaling configuration.
- scalingConfiguration StringId 
- The id of the scaling configuration.
- updatedAt String
- The create time of the scaling configuration.
Look up Existing ScalingConfiguration Resource
Get an existing ScalingConfiguration 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?: ScalingConfigurationState, opts?: CustomResourceOptions): ScalingConfiguration@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        eip_bandwidth: Optional[int] = None,
        eip_billing_type: Optional[str] = None,
        eip_isp: Optional[str] = None,
        host_name: Optional[str] = None,
        hpc_cluster_id: Optional[str] = None,
        image_id: Optional[str] = None,
        instance_description: Optional[str] = None,
        instance_name: Optional[str] = None,
        instance_types: Optional[Sequence[str]] = None,
        ipv6_address_count: Optional[int] = None,
        key_pair_name: Optional[str] = None,
        lifecycle_state: Optional[str] = None,
        password: Optional[str] = None,
        project_name: Optional[str] = None,
        scaling_configuration_id: Optional[str] = None,
        scaling_configuration_name: Optional[str] = None,
        scaling_group_id: Optional[str] = None,
        security_enhancement_strategy: Optional[str] = None,
        security_group_ids: Optional[Sequence[str]] = None,
        spot_strategy: Optional[str] = None,
        tags: Optional[Sequence[ScalingConfigurationTagArgs]] = None,
        updated_at: Optional[str] = None,
        user_data: Optional[str] = None,
        volumes: Optional[Sequence[ScalingConfigurationVolumeArgs]] = None) -> ScalingConfigurationfunc GetScalingConfiguration(ctx *Context, name string, id IDInput, state *ScalingConfigurationState, opts ...ResourceOption) (*ScalingConfiguration, error)public static ScalingConfiguration Get(string name, Input<string> id, ScalingConfigurationState? state, CustomResourceOptions? opts = null)public static ScalingConfiguration get(String name, Output<String> id, ScalingConfigurationState state, CustomResourceOptions options)resources:  _:    type: volcengine:autoscaling:ScalingConfiguration    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CreatedAt string
- The create time of the scaling configuration.
- EipBandwidth int
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- EipBilling stringType 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- EipIsp string
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- HostName string
- The ECS hostname which the scaling configuration set.
- HpcCluster stringId 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- ImageId string
- The ECS image id which the scaling configuration set.
- InstanceDescription string
- The ECS instance description which the scaling configuration set.
- InstanceName string
- The ECS instance name which the scaling configuration set.
- InstanceTypes List<string>
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- Ipv6AddressCount int
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- KeyPair stringName 
- The ECS key pair name which the scaling configuration set.
- LifecycleState string
- The lifecycle state of the scaling configuration.
- Password string
- The ECS password which the scaling configuration set.
- ProjectName string
- The project to which the instance created by the scaling configuration belongs.
- ScalingConfiguration stringId 
- The id of the scaling configuration.
- ScalingConfiguration stringName 
- The name of the scaling configuration.
- ScalingGroup stringId 
- The id of the scaling group to which the scaling configuration belongs.
- SecurityEnhancement stringStrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- SecurityGroup List<string>Ids 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- SpotStrategy string
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- 
List<ScalingConfiguration Tag> 
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- UpdatedAt string
- The create time of the scaling configuration.
- UserData string
- The ECS user data which the scaling configuration set.
- Volumes
List<ScalingConfiguration Volume> 
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- CreatedAt string
- The create time of the scaling configuration.
- EipBandwidth int
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- EipBilling stringType 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- EipIsp string
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- HostName string
- The ECS hostname which the scaling configuration set.
- HpcCluster stringId 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- ImageId string
- The ECS image id which the scaling configuration set.
- InstanceDescription string
- The ECS instance description which the scaling configuration set.
- InstanceName string
- The ECS instance name which the scaling configuration set.
- InstanceTypes []string
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- Ipv6AddressCount int
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- KeyPair stringName 
- The ECS key pair name which the scaling configuration set.
- LifecycleState string
- The lifecycle state of the scaling configuration.
- Password string
- The ECS password which the scaling configuration set.
- ProjectName string
- The project to which the instance created by the scaling configuration belongs.
- ScalingConfiguration stringId 
- The id of the scaling configuration.
- ScalingConfiguration stringName 
- The name of the scaling configuration.
- ScalingGroup stringId 
- The id of the scaling group to which the scaling configuration belongs.
- SecurityEnhancement stringStrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- SecurityGroup []stringIds 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- SpotStrategy string
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- 
[]ScalingConfiguration Tag Args 
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- UpdatedAt string
- The create time of the scaling configuration.
- UserData string
- The ECS user data which the scaling configuration set.
- Volumes
[]ScalingConfiguration Volume Args 
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- createdAt String
- The create time of the scaling configuration.
- eipBandwidth Integer
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- eipBilling StringType 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eipIsp String
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- hostName String
- The ECS hostname which the scaling configuration set.
- hpcCluster StringId 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- imageId String
- The ECS image id which the scaling configuration set.
- instanceDescription String
- The ECS instance description which the scaling configuration set.
- instanceName String
- The ECS instance name which the scaling configuration set.
- instanceTypes List<String>
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- ipv6AddressCount Integer
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- keyPair StringName 
- The ECS key pair name which the scaling configuration set.
- lifecycleState String
- The lifecycle state of the scaling configuration.
- password String
- The ECS password which the scaling configuration set.
- projectName String
- The project to which the instance created by the scaling configuration belongs.
- scalingConfiguration StringId 
- The id of the scaling configuration.
- scalingConfiguration StringName 
- The name of the scaling configuration.
- scalingGroup StringId 
- The id of the scaling group to which the scaling configuration belongs.
- securityEnhancement StringStrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- securityGroup List<String>Ids 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- spotStrategy String
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- 
List<ScalingConfiguration Tag> 
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- updatedAt String
- The create time of the scaling configuration.
- userData String
- The ECS user data which the scaling configuration set.
- volumes
List<ScalingConfiguration Volume> 
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- createdAt string
- The create time of the scaling configuration.
- eipBandwidth number
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- eipBilling stringType 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eipIsp string
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- hostName string
- The ECS hostname which the scaling configuration set.
- hpcCluster stringId 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- imageId string
- The ECS image id which the scaling configuration set.
- instanceDescription string
- The ECS instance description which the scaling configuration set.
- instanceName string
- The ECS instance name which the scaling configuration set.
- instanceTypes string[]
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- ipv6AddressCount number
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- keyPair stringName 
- The ECS key pair name which the scaling configuration set.
- lifecycleState string
- The lifecycle state of the scaling configuration.
- password string
- The ECS password which the scaling configuration set.
- projectName string
- The project to which the instance created by the scaling configuration belongs.
- scalingConfiguration stringId 
- The id of the scaling configuration.
- scalingConfiguration stringName 
- The name of the scaling configuration.
- scalingGroup stringId 
- The id of the scaling group to which the scaling configuration belongs.
- securityEnhancement stringStrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- securityGroup string[]Ids 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- spotStrategy string
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- 
ScalingConfiguration Tag[] 
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- updatedAt string
- The create time of the scaling configuration.
- userData string
- The ECS user data which the scaling configuration set.
- volumes
ScalingConfiguration Volume[] 
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- created_at str
- The create time of the scaling configuration.
- eip_bandwidth int
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- eip_billing_ strtype 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip_isp str
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host_name str
- The ECS hostname which the scaling configuration set.
- hpc_cluster_ strid 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- image_id str
- The ECS image id which the scaling configuration set.
- instance_description str
- The ECS instance description which the scaling configuration set.
- instance_name str
- The ECS instance name which the scaling configuration set.
- instance_types Sequence[str]
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- ipv6_address_ intcount 
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- key_pair_ strname 
- The ECS key pair name which the scaling configuration set.
- lifecycle_state str
- The lifecycle state of the scaling configuration.
- password str
- The ECS password which the scaling configuration set.
- project_name str
- The project to which the instance created by the scaling configuration belongs.
- scaling_configuration_ strid 
- The id of the scaling configuration.
- scaling_configuration_ strname 
- The name of the scaling configuration.
- scaling_group_ strid 
- The id of the scaling group to which the scaling configuration belongs.
- security_enhancement_ strstrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- security_group_ Sequence[str]ids 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- spot_strategy str
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- 
Sequence[ScalingConfiguration Tag Args] 
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- updated_at str
- The create time of the scaling configuration.
- user_data str
- The ECS user data which the scaling configuration set.
- volumes
Sequence[ScalingConfiguration Volume Args] 
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- createdAt String
- The create time of the scaling configuration.
- eipBandwidth Number
- The EIP bandwidth which the scaling configuration set. When the value of Eip.BillingType is PostPaidByBandwidth, the value is 1 to 500. When the value of Eip.BillingType is PostPaidByTraffic, the value is 1 to 200.
- eipBilling StringType 
- The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eipIsp String
- The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- hostName String
- The ECS hostname which the scaling configuration set.
- hpcCluster StringId 
- The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- imageId String
- The ECS image id which the scaling configuration set.
- instanceDescription String
- The ECS instance description which the scaling configuration set.
- instanceName String
- The ECS instance name which the scaling configuration set.
- instanceTypes List<String>
- The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- ipv6AddressCount Number
- Assign IPv6 address to instance network card. Possible values: 0: Do not assign IPv6 address. 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
- keyPair StringName 
- The ECS key pair name which the scaling configuration set.
- lifecycleState String
- The lifecycle state of the scaling configuration.
- password String
- The ECS password which the scaling configuration set.
- projectName String
- The project to which the instance created by the scaling configuration belongs.
- scalingConfiguration StringId 
- The id of the scaling configuration.
- scalingConfiguration StringName 
- The name of the scaling configuration.
- scalingGroup StringId 
- The id of the scaling group to which the scaling configuration belongs.
- securityEnhancement StringStrategy 
- The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- securityGroup List<String>Ids 
- The list of the security group id of the networkInterface which the scaling configuration set. A maximum of 5 security groups can be bound at the same time, and the value ranges from 1 to 5.
- spotStrategy String
- The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- List<Property Map>
- The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- updatedAt String
- The create time of the scaling configuration.
- userData String
- The ECS user data which the scaling configuration set.
- volumes List<Property Map>
- The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
Supporting Types
ScalingConfigurationTag, ScalingConfigurationTagArgs      
ScalingConfigurationVolume, ScalingConfigurationVolumeArgs      
- Size int
- The size of volume. System disk value range: 10 - 500. The value range of the data disk: 10 - 8192.
- VolumeType string
- The type of volume.
- DeleteWith boolInstance 
- The delete with instance flag of volume. Valid values: true, false. Default value: true.
- Size int
- The size of volume. System disk value range: 10 - 500. The value range of the data disk: 10 - 8192.
- VolumeType string
- The type of volume.
- DeleteWith boolInstance 
- The delete with instance flag of volume. Valid values: true, false. Default value: true.
- size Integer
- The size of volume. System disk value range: 10 - 500. The value range of the data disk: 10 - 8192.
- volumeType String
- The type of volume.
- deleteWith BooleanInstance 
- The delete with instance flag of volume. Valid values: true, false. Default value: true.
- size number
- The size of volume. System disk value range: 10 - 500. The value range of the data disk: 10 - 8192.
- volumeType string
- The type of volume.
- deleteWith booleanInstance 
- The delete with instance flag of volume. Valid values: true, false. Default value: true.
- size int
- The size of volume. System disk value range: 10 - 500. The value range of the data disk: 10 - 8192.
- volume_type str
- The type of volume.
- delete_with_ boolinstance 
- The delete with instance flag of volume. Valid values: true, false. Default value: true.
- size Number
- The size of volume. System disk value range: 10 - 500. The value range of the data disk: 10 - 8192.
- volumeType String
- The type of volume.
- deleteWith BooleanInstance 
- The delete with instance flag of volume. Valid values: true, false. Default value: true.
Import
ScalingConfiguration can be imported using the id, e.g.
$ pulumi import volcengine:autoscaling/scalingConfiguration:ScalingConfiguration default scc-ybkuck3mx8cm9tm5yglz
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 volcengineTerraform Provider.