volcengine.autoscaling.ScalingConfiguration
Explore with Pulumi AI
Import
ScalingConfiguration can be imported using the id, e.g.
$ pulumi import volcengine:autoscaling/scalingConfiguration:ScalingConfiguration default scc-ybkuck3mx8cm9tm5yglz
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 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 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
})
}
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());
}
}
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")
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",
});
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=[volcengine.autoscaling.ScalingConfigurationVolumeArgs(
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=[volcengine.autoscaling.ScalingConfigurationTagArgs(
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
The ScalingConfiguration resource accepts the following input properties:
- Image
Id string - The ECS image id which the scaling configuration set.
- Instance
Name string - The ECS instance name which the scaling configuration set.
- Instance
Types List<string> - The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- Scaling
Configuration stringName - The name of the scaling configuration.
- Scaling
Group stringId - The id of the scaling group to which the scaling configuration belongs.
- Security
Group 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<Pulumi.
Volcengine. Autoscaling. Inputs. Scaling Configuration Volume> - 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 stringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- Eip
Isp string - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- Host
Name string - The ECS hostname which the scaling configuration set.
- Hpc
Cluster stringId - The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- Instance
Description string - The ECS instance description which the scaling configuration set.
- Ipv6Address
Count 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.
- Key
Pair stringName - The ECS key pair name which the scaling configuration set.
- Password string
- The ECS password which the scaling configuration set.
- Project
Name string - The project to which the instance created by the scaling configuration belongs.
- Security
Enhancement stringStrategy - The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- Spot
Strategy string - The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- List<Pulumi.
Volcengine. Autoscaling. Inputs. Scaling Configuration Tag> - The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- User
Data string - The ECS user data which the scaling configuration set.
- Image
Id string - The ECS image id which the scaling configuration set.
- Instance
Name string - The ECS instance name which the scaling configuration set.
- Instance
Types []string - The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- Scaling
Configuration stringName - The name of the scaling configuration.
- Scaling
Group stringId - The id of the scaling group to which the scaling configuration belongs.
- Security
Group []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
[]Scaling
Configuration 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 stringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- Eip
Isp string - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- Host
Name string - The ECS hostname which the scaling configuration set.
- Hpc
Cluster stringId - The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- Instance
Description string - The ECS instance description which the scaling configuration set.
- Ipv6Address
Count 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.
- Key
Pair stringName - The ECS key pair name which the scaling configuration set.
- Password string
- The ECS password which the scaling configuration set.
- Project
Name string - The project to which the instance created by the scaling configuration belongs.
- Security
Enhancement stringStrategy - The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- Spot
Strategy string - The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- []Scaling
Configuration Tag Args - The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- User
Data string - The ECS user data which the scaling configuration set.
- image
Id String - The ECS image id which the scaling configuration set.
- instance
Name String - The ECS instance name which the scaling configuration set.
- instance
Types List<String> - The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- scaling
Configuration StringName - The name of the scaling configuration.
- scaling
Group StringId - The id of the scaling group to which the scaling configuration belongs.
- security
Group 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<Scaling
Configuration Volume> - The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- eip
Bandwidth 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.
- eip
Billing StringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip
Isp String - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host
Name String - The ECS hostname which the scaling configuration set.
- hpc
Cluster StringId - The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- instance
Description String - The ECS instance description which the scaling configuration set.
- ipv6Address
Count 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.
- key
Pair StringName - The ECS key pair name which the scaling configuration set.
- password String
- The ECS password which the scaling configuration set.
- project
Name String - The project to which the instance created by the scaling configuration belongs.
- security
Enhancement StringStrategy - The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- spot
Strategy String - The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- List<Scaling
Configuration Tag> - The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- user
Data String - The ECS user data which the scaling configuration set.
- image
Id string - The ECS image id which the scaling configuration set.
- instance
Name string - The ECS instance name which the scaling configuration set.
- instance
Types string[] - The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- scaling
Configuration stringName - The name of the scaling configuration.
- scaling
Group stringId - The id of the scaling group to which the scaling configuration belongs.
- security
Group 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
Scaling
Configuration Volume[] - The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- eip
Bandwidth 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.
- eip
Billing stringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip
Isp string - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host
Name string - The ECS hostname which the scaling configuration set.
- hpc
Cluster stringId - The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- instance
Description string - The ECS instance description which the scaling configuration set.
- ipv6Address
Count 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.
- key
Pair stringName - The ECS key pair name which the scaling configuration set.
- password string
- The ECS password which the scaling configuration set.
- project
Name string - The project to which the instance created by the scaling configuration belongs.
- security
Enhancement stringStrategy - The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- spot
Strategy string - The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- Scaling
Configuration Tag[] - The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- user
Data 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[Scaling
Configuration 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[Scaling
Configuration 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.
- image
Id String - The ECS image id which the scaling configuration set.
- instance
Name String - The ECS instance name which the scaling configuration set.
- instance
Types List<String> - The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- scaling
Configuration StringName - The name of the scaling configuration.
- scaling
Group StringId - The id of the scaling group to which the scaling configuration belongs.
- security
Group 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.
- eip
Bandwidth 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.
- eip
Billing StringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip
Isp String - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host
Name String - The ECS hostname which the scaling configuration set.
- hpc
Cluster StringId - The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- instance
Description String - The ECS instance description which the scaling configuration set.
- ipv6Address
Count 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.
- key
Pair StringName - The ECS key pair name which the scaling configuration set.
- password String
- The ECS password which the scaling configuration set.
- project
Name String - The project to which the instance created by the scaling configuration belongs.
- security
Enhancement StringStrategy - The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- spot
Strategy 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.
- user
Data 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:
- Created
At string - The create time of the scaling configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - The lifecycle state of the scaling configuration.
- Scaling
Configuration stringId - The id of the scaling configuration.
- Updated
At string - The create time of the scaling configuration.
- Created
At string - The create time of the scaling configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - The lifecycle state of the scaling configuration.
- Scaling
Configuration stringId - The id of the scaling configuration.
- Updated
At string - The create time of the scaling configuration.
- created
At String - The create time of the scaling configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - The lifecycle state of the scaling configuration.
- scaling
Configuration StringId - The id of the scaling configuration.
- updated
At String - The create time of the scaling configuration.
- created
At string - The create time of the scaling configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
State string - The lifecycle state of the scaling configuration.
- scaling
Configuration stringId - The id of the scaling configuration.
- updated
At 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.
- created
At String - The create time of the scaling configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - The lifecycle state of the scaling configuration.
- scaling
Configuration StringId - The id of the scaling configuration.
- updated
At 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) -> ScalingConfiguration
func 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)
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.
- Created
At string - 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 stringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- Eip
Isp string - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- Host
Name string - The ECS hostname which the scaling configuration set.
- Hpc
Cluster stringId - The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- Image
Id string - The ECS image id which the scaling configuration set.
- Instance
Description string - The ECS instance description which the scaling configuration set.
- Instance
Name string - The ECS instance name which the scaling configuration set.
- Instance
Types List<string> - The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- Ipv6Address
Count 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.
- Key
Pair stringName - The ECS key pair name which the scaling configuration set.
- Lifecycle
State string - The lifecycle state of the scaling configuration.
- Password string
- The ECS password which the scaling configuration set.
- Project
Name string - The project to which the instance created by the scaling configuration belongs.
- Scaling
Configuration stringId - The id of the scaling configuration.
- Scaling
Configuration stringName - The name of the scaling configuration.
- Scaling
Group stringId - The id of the scaling group to which the scaling configuration belongs.
- Security
Enhancement stringStrategy - The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- Security
Group 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.
- Spot
Strategy string - The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- List<Pulumi.
Volcengine. Autoscaling. Inputs. Scaling Configuration Tag> - The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- Updated
At string - The create time of the scaling configuration.
- User
Data string - The ECS user data which the scaling configuration set.
- Volumes
List<Pulumi.
Volcengine. Autoscaling. Inputs. Scaling Configuration Volume> - The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- Created
At string - 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 stringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- Eip
Isp string - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- Host
Name string - The ECS hostname which the scaling configuration set.
- Hpc
Cluster stringId - The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- Image
Id string - The ECS image id which the scaling configuration set.
- Instance
Description string - The ECS instance description which the scaling configuration set.
- Instance
Name string - The ECS instance name which the scaling configuration set.
- Instance
Types []string - The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- Ipv6Address
Count 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.
- Key
Pair stringName - The ECS key pair name which the scaling configuration set.
- Lifecycle
State string - The lifecycle state of the scaling configuration.
- Password string
- The ECS password which the scaling configuration set.
- Project
Name string - The project to which the instance created by the scaling configuration belongs.
- Scaling
Configuration stringId - The id of the scaling configuration.
- Scaling
Configuration stringName - The name of the scaling configuration.
- Scaling
Group stringId - The id of the scaling group to which the scaling configuration belongs.
- Security
Enhancement stringStrategy - The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- Security
Group []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.
- Spot
Strategy string - The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- []Scaling
Configuration Tag Args - The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- Updated
At string - The create time of the scaling configuration.
- User
Data string - The ECS user data which the scaling configuration set.
- Volumes
[]Scaling
Configuration Volume Args - The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- created
At String - The create time of the scaling configuration.
- eip
Bandwidth 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.
- eip
Billing StringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip
Isp String - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host
Name String - The ECS hostname which the scaling configuration set.
- hpc
Cluster StringId - The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- image
Id String - The ECS image id which the scaling configuration set.
- instance
Description String - The ECS instance description which the scaling configuration set.
- instance
Name String - The ECS instance name which the scaling configuration set.
- instance
Types List<String> - The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- ipv6Address
Count 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.
- key
Pair StringName - The ECS key pair name which the scaling configuration set.
- lifecycle
State String - The lifecycle state of the scaling configuration.
- password String
- The ECS password which the scaling configuration set.
- project
Name String - The project to which the instance created by the scaling configuration belongs.
- scaling
Configuration StringId - The id of the scaling configuration.
- scaling
Configuration StringName - The name of the scaling configuration.
- scaling
Group StringId - The id of the scaling group to which the scaling configuration belongs.
- security
Enhancement StringStrategy - The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- security
Group 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.
- spot
Strategy String - The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- List<Scaling
Configuration Tag> - The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- updated
At String - The create time of the scaling configuration.
- user
Data String - The ECS user data which the scaling configuration set.
- volumes
List<Scaling
Configuration Volume> - The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- created
At string - The create time of the scaling configuration.
- eip
Bandwidth 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.
- eip
Billing stringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip
Isp string - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host
Name string - The ECS hostname which the scaling configuration set.
- hpc
Cluster stringId - The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- image
Id string - The ECS image id which the scaling configuration set.
- instance
Description string - The ECS instance description which the scaling configuration set.
- instance
Name string - The ECS instance name which the scaling configuration set.
- instance
Types string[] - The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- ipv6Address
Count 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.
- key
Pair stringName - The ECS key pair name which the scaling configuration set.
- lifecycle
State string - The lifecycle state of the scaling configuration.
- password string
- The ECS password which the scaling configuration set.
- project
Name string - The project to which the instance created by the scaling configuration belongs.
- scaling
Configuration stringId - The id of the scaling configuration.
- scaling
Configuration stringName - The name of the scaling configuration.
- scaling
Group stringId - The id of the scaling group to which the scaling configuration belongs.
- security
Enhancement stringStrategy - The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- security
Group 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.
- spot
Strategy string - The preemption policy of the instance. Valid Value: NoSpot (default), SpotAsPriceGo.
- Scaling
Configuration Tag[] - The label of the instance created by the scaling configuration. Up to 20 tags are supported.
- updated
At string - The create time of the scaling configuration.
- user
Data string - The ECS user data which the scaling configuration set.
- volumes
Scaling
Configuration 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[Scaling
Configuration 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[Scaling
Configuration Volume Args] - The list of volume of the scaling configuration. The number of supported volumes ranges from 1 to 15.
- created
At String - The create time of the scaling configuration.
- eip
Bandwidth 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.
- eip
Billing StringType - The EIP billing type which the scaling configuration set. Valid values: PostPaidByBandwidth, PostPaidByTraffic.
- eip
Isp String - The EIP ISP which the scaling configuration set. Valid values: BGP, ChinaMobile, ChinaUnicom, ChinaTelecom.
- host
Name String - The ECS hostname which the scaling configuration set.
- hpc
Cluster StringId - The ID of the HPC cluster to which the instance belongs. Valid only when InstanceTypes.N specifies High Performance Computing GPU Type.
- image
Id String - The ECS image id which the scaling configuration set.
- instance
Description String - The ECS instance description which the scaling configuration set.
- instance
Name String - The ECS instance name which the scaling configuration set.
- instance
Types List<String> - The list of the ECS instance type which the scaling configuration set. The maximum number of instance types is 10.
- ipv6Address
Count 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.
- key
Pair StringName - The ECS key pair name which the scaling configuration set.
- lifecycle
State String - The lifecycle state of the scaling configuration.
- password String
- The ECS password which the scaling configuration set.
- project
Name String - The project to which the instance created by the scaling configuration belongs.
- scaling
Configuration StringId - The id of the scaling configuration.
- scaling
Configuration StringName - The name of the scaling configuration.
- scaling
Group StringId - The id of the scaling group to which the scaling configuration belongs.
- security
Enhancement StringStrategy - The Ecs security enhancement strategy which the scaling configuration set. Valid values: Active, InActive.
- security
Group 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.
- spot
Strategy 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.
- updated
At String - The create time of the scaling configuration.
- user
Data 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.
- Volume
Type string - The type of volume.
- Delete
With 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.
- Volume
Type string - The type of volume.
- Delete
With 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.
- volume
Type String - The type of volume.
- delete
With 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.
- volume
Type string - The type of volume.
- delete
With 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.
- volume
Type String - The type of volume.
- delete
With BooleanInstance - The delete with instance flag of volume. Valid values: true, false. Default value: true.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.