tencentcloud.AsScalingConfig
Explore with Pulumi AI
Provides a resource to create a configuration for an AS (Auto scaling) instance.
NOTE: In order to ensure the integrity of customer data, if the cvm instance was destroyed due to shrinking, it will keep the cbs associate with cvm by default. If you want to destroy together, please set
delete_with_instance
totrue
.
Example Usage
Create a normal configuration
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleImages = tencentcloud.getImages({
imageTypes: ["PUBLIC_IMAGE"],
osName: "TencentOS Server 4 for x86_64",
});
const exampleAsScalingConfig = new tencentcloud.AsScalingConfig("exampleAsScalingConfig", {
configurationName: "tf-example",
imageId: exampleImages.then(exampleImages => exampleImages.images?.[0]?.imageId),
instanceTypes: ["SA5.MEDIUM4"],
projectId: 0,
systemDiskType: "CLOUD_PREMIUM",
systemDiskSize: 50,
dataDisks: [{
diskType: "CLOUD_PREMIUM",
diskSize: 50,
}],
internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
internetMaxBandwidthOut: 10,
publicIpAssigned: true,
password: "Test@123#",
enhancedSecurityService: false,
enhancedMonitorService: false,
enhancedAutomationToolsService: false,
userData: "dGVzdA==",
hostNameSettings: {
hostName: "host-name",
hostNameStyle: "UNIQUE",
},
instanceTags: {
tag: "example",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_images = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
os_name="TencentOS Server 4 for x86_64")
example_as_scaling_config = tencentcloud.AsScalingConfig("exampleAsScalingConfig",
configuration_name="tf-example",
image_id=example_images.images[0].image_id,
instance_types=["SA5.MEDIUM4"],
project_id=0,
system_disk_type="CLOUD_PREMIUM",
system_disk_size=50,
data_disks=[{
"disk_type": "CLOUD_PREMIUM",
"disk_size": 50,
}],
internet_charge_type="TRAFFIC_POSTPAID_BY_HOUR",
internet_max_bandwidth_out=10,
public_ip_assigned=True,
password="Test@123#",
enhanced_security_service=False,
enhanced_monitor_service=False,
enhanced_automation_tools_service=False,
user_data="dGVzdA==",
host_name_settings={
"host_name": "host-name",
"host_name_style": "UNIQUE",
},
instance_tags={
"tag": "example",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleImages, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
ImageTypes: []string{
"PUBLIC_IMAGE",
},
OsName: pulumi.StringRef("TencentOS Server 4 for x86_64"),
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.NewAsScalingConfig(ctx, "exampleAsScalingConfig", &tencentcloud.AsScalingConfigArgs{
ConfigurationName: pulumi.String("tf-example"),
ImageId: pulumi.String(exampleImages.Images[0].ImageId),
InstanceTypes: pulumi.StringArray{
pulumi.String("SA5.MEDIUM4"),
},
ProjectId: pulumi.Float64(0),
SystemDiskType: pulumi.String("CLOUD_PREMIUM"),
SystemDiskSize: pulumi.Float64(50),
DataDisks: tencentcloud.AsScalingConfigDataDiskArray{
&tencentcloud.AsScalingConfigDataDiskArgs{
DiskType: pulumi.String("CLOUD_PREMIUM"),
DiskSize: pulumi.Float64(50),
},
},
InternetChargeType: pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
InternetMaxBandwidthOut: pulumi.Float64(10),
PublicIpAssigned: pulumi.Bool(true),
Password: pulumi.String("Test@123#"),
EnhancedSecurityService: pulumi.Bool(false),
EnhancedMonitorService: pulumi.Bool(false),
EnhancedAutomationToolsService: pulumi.Bool(false),
UserData: pulumi.String("dGVzdA=="),
HostNameSettings: &tencentcloud.AsScalingConfigHostNameSettingsArgs{
HostName: pulumi.String("host-name"),
HostNameStyle: pulumi.String("UNIQUE"),
},
InstanceTags: pulumi.StringMap{
"tag": pulumi.String("example"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var exampleImages = Tencentcloud.GetImages.Invoke(new()
{
ImageTypes = new[]
{
"PUBLIC_IMAGE",
},
OsName = "TencentOS Server 4 for x86_64",
});
var exampleAsScalingConfig = new Tencentcloud.AsScalingConfig("exampleAsScalingConfig", new()
{
ConfigurationName = "tf-example",
ImageId = exampleImages.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
InstanceTypes = new[]
{
"SA5.MEDIUM4",
},
ProjectId = 0,
SystemDiskType = "CLOUD_PREMIUM",
SystemDiskSize = 50,
DataDisks = new[]
{
new Tencentcloud.Inputs.AsScalingConfigDataDiskArgs
{
DiskType = "CLOUD_PREMIUM",
DiskSize = 50,
},
},
InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
InternetMaxBandwidthOut = 10,
PublicIpAssigned = true,
Password = "Test@123#",
EnhancedSecurityService = false,
EnhancedMonitorService = false,
EnhancedAutomationToolsService = false,
UserData = "dGVzdA==",
HostNameSettings = new Tencentcloud.Inputs.AsScalingConfigHostNameSettingsArgs
{
HostName = "host-name",
HostNameStyle = "UNIQUE",
},
InstanceTags =
{
{ "tag", "example" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetImagesArgs;
import com.pulumi.tencentcloud.AsScalingConfig;
import com.pulumi.tencentcloud.AsScalingConfigArgs;
import com.pulumi.tencentcloud.inputs.AsScalingConfigDataDiskArgs;
import com.pulumi.tencentcloud.inputs.AsScalingConfigHostNameSettingsArgs;
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 exampleImages = TencentcloudFunctions.getImages(GetImagesArgs.builder()
.imageTypes("PUBLIC_IMAGE")
.osName("TencentOS Server 4 for x86_64")
.build());
var exampleAsScalingConfig = new AsScalingConfig("exampleAsScalingConfig", AsScalingConfigArgs.builder()
.configurationName("tf-example")
.imageId(exampleImages.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
.instanceTypes("SA5.MEDIUM4")
.projectId(0)
.systemDiskType("CLOUD_PREMIUM")
.systemDiskSize("50")
.dataDisks(AsScalingConfigDataDiskArgs.builder()
.diskType("CLOUD_PREMIUM")
.diskSize(50)
.build())
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(10)
.publicIpAssigned(true)
.password("Test@123#")
.enhancedSecurityService(false)
.enhancedMonitorService(false)
.enhancedAutomationToolsService(false)
.userData("dGVzdA==")
.hostNameSettings(AsScalingConfigHostNameSettingsArgs.builder()
.hostName("host-name")
.hostNameStyle("UNIQUE")
.build())
.instanceTags(Map.of("tag", "example"))
.build());
}
}
resources:
exampleAsScalingConfig:
type: tencentcloud:AsScalingConfig
properties:
configurationName: tf-example
imageId: ${exampleImages.images[0].imageId}
instanceTypes:
- SA5.MEDIUM4
projectId: 0
systemDiskType: CLOUD_PREMIUM
systemDiskSize: '50'
dataDisks:
- diskType: CLOUD_PREMIUM
diskSize: 50
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 10
publicIpAssigned: true
password: Test@123#
enhancedSecurityService: false
enhancedMonitorService: false
enhancedAutomationToolsService: false
userData: dGVzdA==
hostNameSettings:
hostName: host-name
hostNameStyle: UNIQUE
instanceTags:
tag: example
variables:
exampleImages:
fn::invoke:
function: tencentcloud:getImages
arguments:
imageTypes:
- PUBLIC_IMAGE
osName: TencentOS Server 4 for x86_64
charge type
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleImages = tencentcloud.getImages({
imageTypes: ["PUBLIC_IMAGE"],
osName: "TencentOS Server 4 for x86_64",
});
const exampleAsScalingConfig = new tencentcloud.AsScalingConfig("exampleAsScalingConfig", {
configurationName: "tf-example",
imageId: exampleImages.then(exampleImages => exampleImages.images?.[0]?.imageId),
instanceTypes: ["SA5.MEDIUM4"],
instanceChargeType: "SPOTPAID",
spotInstanceType: "one-time",
spotMaxPrice: "1000",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_images = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
os_name="TencentOS Server 4 for x86_64")
example_as_scaling_config = tencentcloud.AsScalingConfig("exampleAsScalingConfig",
configuration_name="tf-example",
image_id=example_images.images[0].image_id,
instance_types=["SA5.MEDIUM4"],
instance_charge_type="SPOTPAID",
spot_instance_type="one-time",
spot_max_price="1000")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleImages, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
ImageTypes: []string{
"PUBLIC_IMAGE",
},
OsName: pulumi.StringRef("TencentOS Server 4 for x86_64"),
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.NewAsScalingConfig(ctx, "exampleAsScalingConfig", &tencentcloud.AsScalingConfigArgs{
ConfigurationName: pulumi.String("tf-example"),
ImageId: pulumi.String(exampleImages.Images[0].ImageId),
InstanceTypes: pulumi.StringArray{
pulumi.String("SA5.MEDIUM4"),
},
InstanceChargeType: pulumi.String("SPOTPAID"),
SpotInstanceType: pulumi.String("one-time"),
SpotMaxPrice: pulumi.String("1000"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var exampleImages = Tencentcloud.GetImages.Invoke(new()
{
ImageTypes = new[]
{
"PUBLIC_IMAGE",
},
OsName = "TencentOS Server 4 for x86_64",
});
var exampleAsScalingConfig = new Tencentcloud.AsScalingConfig("exampleAsScalingConfig", new()
{
ConfigurationName = "tf-example",
ImageId = exampleImages.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
InstanceTypes = new[]
{
"SA5.MEDIUM4",
},
InstanceChargeType = "SPOTPAID",
SpotInstanceType = "one-time",
SpotMaxPrice = "1000",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetImagesArgs;
import com.pulumi.tencentcloud.AsScalingConfig;
import com.pulumi.tencentcloud.AsScalingConfigArgs;
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 exampleImages = TencentcloudFunctions.getImages(GetImagesArgs.builder()
.imageTypes("PUBLIC_IMAGE")
.osName("TencentOS Server 4 for x86_64")
.build());
var exampleAsScalingConfig = new AsScalingConfig("exampleAsScalingConfig", AsScalingConfigArgs.builder()
.configurationName("tf-example")
.imageId(exampleImages.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
.instanceTypes("SA5.MEDIUM4")
.instanceChargeType("SPOTPAID")
.spotInstanceType("one-time")
.spotMaxPrice("1000")
.build());
}
}
resources:
exampleAsScalingConfig:
type: tencentcloud:AsScalingConfig
properties:
configurationName: tf-example
imageId: ${exampleImages.images[0].imageId}
instanceTypes:
- SA5.MEDIUM4
instanceChargeType: SPOTPAID
spotInstanceType: one-time
spotMaxPrice: '1000'
variables:
exampleImages:
fn::invoke:
function: tencentcloud:getImages
arguments:
imageTypes:
- PUBLIC_IMAGE
osName: TencentOS Server 4 for x86_64
Using image family
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.AsScalingConfig("example", {
configurationName: "as-test-config",
diskTypePolicy: "ORIGINAL",
enhancedAutomationToolsService: false,
enhancedMonitorService: false,
enhancedSecurityService: false,
imageFamily: "business-daily-update",
instanceTags: {},
instanceTypes: ["S5.SMALL2"],
internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
internetMaxBandwidthOut: 0,
keyIds: [],
projectId: 0,
publicIpAssigned: false,
securityGroupIds: ["sg-5275dorp"],
systemDiskSize: 50,
systemDiskType: "CLOUD_BSSD",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.AsScalingConfig("example",
configuration_name="as-test-config",
disk_type_policy="ORIGINAL",
enhanced_automation_tools_service=False,
enhanced_monitor_service=False,
enhanced_security_service=False,
image_family="business-daily-update",
instance_tags={},
instance_types=["S5.SMALL2"],
internet_charge_type="TRAFFIC_POSTPAID_BY_HOUR",
internet_max_bandwidth_out=0,
key_ids=[],
project_id=0,
public_ip_assigned=False,
security_group_ids=["sg-5275dorp"],
system_disk_size=50,
system_disk_type="CLOUD_BSSD")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewAsScalingConfig(ctx, "example", &tencentcloud.AsScalingConfigArgs{
ConfigurationName: pulumi.String("as-test-config"),
DiskTypePolicy: pulumi.String("ORIGINAL"),
EnhancedAutomationToolsService: pulumi.Bool(false),
EnhancedMonitorService: pulumi.Bool(false),
EnhancedSecurityService: pulumi.Bool(false),
ImageFamily: pulumi.String("business-daily-update"),
InstanceTags: pulumi.StringMap{},
InstanceTypes: pulumi.StringArray{
pulumi.String("S5.SMALL2"),
},
InternetChargeType: pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
InternetMaxBandwidthOut: pulumi.Float64(0),
KeyIds: pulumi.StringArray{},
ProjectId: pulumi.Float64(0),
PublicIpAssigned: pulumi.Bool(false),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-5275dorp"),
},
SystemDiskSize: pulumi.Float64(50),
SystemDiskType: pulumi.String("CLOUD_BSSD"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.AsScalingConfig("example", new()
{
ConfigurationName = "as-test-config",
DiskTypePolicy = "ORIGINAL",
EnhancedAutomationToolsService = false,
EnhancedMonitorService = false,
EnhancedSecurityService = false,
ImageFamily = "business-daily-update",
InstanceTags = null,
InstanceTypes = new[]
{
"S5.SMALL2",
},
InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
InternetMaxBandwidthOut = 0,
KeyIds = new[] {},
ProjectId = 0,
PublicIpAssigned = false,
SecurityGroupIds = new[]
{
"sg-5275dorp",
},
SystemDiskSize = 50,
SystemDiskType = "CLOUD_BSSD",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.AsScalingConfig;
import com.pulumi.tencentcloud.AsScalingConfigArgs;
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) {
var example = new AsScalingConfig("example", AsScalingConfigArgs.builder()
.configurationName("as-test-config")
.diskTypePolicy("ORIGINAL")
.enhancedAutomationToolsService(false)
.enhancedMonitorService(false)
.enhancedSecurityService(false)
.imageFamily("business-daily-update")
.instanceTags()
.instanceTypes("S5.SMALL2")
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(0)
.keyIds()
.projectId(0)
.publicIpAssigned(false)
.securityGroupIds("sg-5275dorp")
.systemDiskSize(50)
.systemDiskType("CLOUD_BSSD")
.build());
}
}
resources:
example:
type: tencentcloud:AsScalingConfig
properties:
configurationName: as-test-config
diskTypePolicy: ORIGINAL
enhancedAutomationToolsService: false
enhancedMonitorService: false
enhancedSecurityService: false
imageFamily: business-daily-update
instanceTags: {}
instanceTypes:
- S5.SMALL2
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 0
keyIds: []
projectId: 0
publicIpAssigned: false
securityGroupIds:
- sg-5275dorp
systemDiskSize: 50
systemDiskType: CLOUD_BSSD
Using DisasterRecoverGroupIds
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.AsScalingConfig("example", {
configurationName: "as-test-config",
disasterRecoverGroupIds: ["ps-e2u4ew"],
diskTypePolicy: "ORIGINAL",
enhancedAutomationToolsService: false,
enhancedMonitorService: false,
enhancedSecurityService: false,
imageFamily: "business-daily-update",
instanceTags: {},
instanceTypes: ["S5.SMALL2"],
internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
internetMaxBandwidthOut: 0,
keyIds: [],
projectId: 0,
publicIpAssigned: false,
securityGroupIds: ["sg-5275dorp"],
systemDiskSize: 50,
systemDiskType: "CLOUD_BSSD",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.AsScalingConfig("example",
configuration_name="as-test-config",
disaster_recover_group_ids=["ps-e2u4ew"],
disk_type_policy="ORIGINAL",
enhanced_automation_tools_service=False,
enhanced_monitor_service=False,
enhanced_security_service=False,
image_family="business-daily-update",
instance_tags={},
instance_types=["S5.SMALL2"],
internet_charge_type="TRAFFIC_POSTPAID_BY_HOUR",
internet_max_bandwidth_out=0,
key_ids=[],
project_id=0,
public_ip_assigned=False,
security_group_ids=["sg-5275dorp"],
system_disk_size=50,
system_disk_type="CLOUD_BSSD")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewAsScalingConfig(ctx, "example", &tencentcloud.AsScalingConfigArgs{
ConfigurationName: pulumi.String("as-test-config"),
DisasterRecoverGroupIds: pulumi.StringArray{
pulumi.String("ps-e2u4ew"),
},
DiskTypePolicy: pulumi.String("ORIGINAL"),
EnhancedAutomationToolsService: pulumi.Bool(false),
EnhancedMonitorService: pulumi.Bool(false),
EnhancedSecurityService: pulumi.Bool(false),
ImageFamily: pulumi.String("business-daily-update"),
InstanceTags: pulumi.StringMap{},
InstanceTypes: pulumi.StringArray{
pulumi.String("S5.SMALL2"),
},
InternetChargeType: pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
InternetMaxBandwidthOut: pulumi.Float64(0),
KeyIds: pulumi.StringArray{},
ProjectId: pulumi.Float64(0),
PublicIpAssigned: pulumi.Bool(false),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-5275dorp"),
},
SystemDiskSize: pulumi.Float64(50),
SystemDiskType: pulumi.String("CLOUD_BSSD"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.AsScalingConfig("example", new()
{
ConfigurationName = "as-test-config",
DisasterRecoverGroupIds = new[]
{
"ps-e2u4ew",
},
DiskTypePolicy = "ORIGINAL",
EnhancedAutomationToolsService = false,
EnhancedMonitorService = false,
EnhancedSecurityService = false,
ImageFamily = "business-daily-update",
InstanceTags = null,
InstanceTypes = new[]
{
"S5.SMALL2",
},
InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
InternetMaxBandwidthOut = 0,
KeyIds = new[] {},
ProjectId = 0,
PublicIpAssigned = false,
SecurityGroupIds = new[]
{
"sg-5275dorp",
},
SystemDiskSize = 50,
SystemDiskType = "CLOUD_BSSD",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.AsScalingConfig;
import com.pulumi.tencentcloud.AsScalingConfigArgs;
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) {
var example = new AsScalingConfig("example", AsScalingConfigArgs.builder()
.configurationName("as-test-config")
.disasterRecoverGroupIds("ps-e2u4ew")
.diskTypePolicy("ORIGINAL")
.enhancedAutomationToolsService(false)
.enhancedMonitorService(false)
.enhancedSecurityService(false)
.imageFamily("business-daily-update")
.instanceTags()
.instanceTypes("S5.SMALL2")
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(0)
.keyIds()
.projectId(0)
.publicIpAssigned(false)
.securityGroupIds("sg-5275dorp")
.systemDiskSize(50)
.systemDiskType("CLOUD_BSSD")
.build());
}
}
resources:
example:
type: tencentcloud:AsScalingConfig
properties:
configurationName: as-test-config
disasterRecoverGroupIds:
- ps-e2u4ew
diskTypePolicy: ORIGINAL
enhancedAutomationToolsService: false
enhancedMonitorService: false
enhancedSecurityService: false
imageFamily: business-daily-update
instanceTags: {}
instanceTypes:
- S5.SMALL2
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 0
keyIds: []
projectId: 0
publicIpAssigned: false
securityGroupIds:
- sg-5275dorp
systemDiskSize: 50
systemDiskType: CLOUD_BSSD
Create a CDC configuration
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleImages = tencentcloud.getImages({
imageTypes: ["PUBLIC_IMAGE"],
osName: "TencentOS Server 4 for x86_64",
});
const exampleAsScalingConfig = new tencentcloud.AsScalingConfig("exampleAsScalingConfig", {
configurationName: "tf-example",
imageId: exampleImages.then(exampleImages => exampleImages.images?.[0]?.imageId),
instanceTypes: ["SA5.MEDIUM4"],
projectId: 0,
systemDiskType: "CLOUD_PREMIUM",
systemDiskSize: 50,
instanceChargeType: "CDCPAID",
dedicatedClusterId: "cluster-262n63e8",
dataDisks: [{
diskType: "CLOUD_PREMIUM",
diskSize: 50,
}],
internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
internetMaxBandwidthOut: 10,
publicIpAssigned: true,
password: "Test@123#",
enhancedSecurityService: false,
enhancedMonitorService: false,
enhancedAutomationToolsService: false,
userData: "dGVzdA==",
hostNameSettings: {
hostName: "host-name",
hostNameStyle: "UNIQUE",
},
instanceTags: {
tag: "example",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_images = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
os_name="TencentOS Server 4 for x86_64")
example_as_scaling_config = tencentcloud.AsScalingConfig("exampleAsScalingConfig",
configuration_name="tf-example",
image_id=example_images.images[0].image_id,
instance_types=["SA5.MEDIUM4"],
project_id=0,
system_disk_type="CLOUD_PREMIUM",
system_disk_size=50,
instance_charge_type="CDCPAID",
dedicated_cluster_id="cluster-262n63e8",
data_disks=[{
"disk_type": "CLOUD_PREMIUM",
"disk_size": 50,
}],
internet_charge_type="TRAFFIC_POSTPAID_BY_HOUR",
internet_max_bandwidth_out=10,
public_ip_assigned=True,
password="Test@123#",
enhanced_security_service=False,
enhanced_monitor_service=False,
enhanced_automation_tools_service=False,
user_data="dGVzdA==",
host_name_settings={
"host_name": "host-name",
"host_name_style": "UNIQUE",
},
instance_tags={
"tag": "example",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleImages, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
ImageTypes: []string{
"PUBLIC_IMAGE",
},
OsName: pulumi.StringRef("TencentOS Server 4 for x86_64"),
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.NewAsScalingConfig(ctx, "exampleAsScalingConfig", &tencentcloud.AsScalingConfigArgs{
ConfigurationName: pulumi.String("tf-example"),
ImageId: pulumi.String(exampleImages.Images[0].ImageId),
InstanceTypes: pulumi.StringArray{
pulumi.String("SA5.MEDIUM4"),
},
ProjectId: pulumi.Float64(0),
SystemDiskType: pulumi.String("CLOUD_PREMIUM"),
SystemDiskSize: pulumi.Float64(50),
InstanceChargeType: pulumi.String("CDCPAID"),
DedicatedClusterId: pulumi.String("cluster-262n63e8"),
DataDisks: tencentcloud.AsScalingConfigDataDiskArray{
&tencentcloud.AsScalingConfigDataDiskArgs{
DiskType: pulumi.String("CLOUD_PREMIUM"),
DiskSize: pulumi.Float64(50),
},
},
InternetChargeType: pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
InternetMaxBandwidthOut: pulumi.Float64(10),
PublicIpAssigned: pulumi.Bool(true),
Password: pulumi.String("Test@123#"),
EnhancedSecurityService: pulumi.Bool(false),
EnhancedMonitorService: pulumi.Bool(false),
EnhancedAutomationToolsService: pulumi.Bool(false),
UserData: pulumi.String("dGVzdA=="),
HostNameSettings: &tencentcloud.AsScalingConfigHostNameSettingsArgs{
HostName: pulumi.String("host-name"),
HostNameStyle: pulumi.String("UNIQUE"),
},
InstanceTags: pulumi.StringMap{
"tag": pulumi.String("example"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var exampleImages = Tencentcloud.GetImages.Invoke(new()
{
ImageTypes = new[]
{
"PUBLIC_IMAGE",
},
OsName = "TencentOS Server 4 for x86_64",
});
var exampleAsScalingConfig = new Tencentcloud.AsScalingConfig("exampleAsScalingConfig", new()
{
ConfigurationName = "tf-example",
ImageId = exampleImages.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
InstanceTypes = new[]
{
"SA5.MEDIUM4",
},
ProjectId = 0,
SystemDiskType = "CLOUD_PREMIUM",
SystemDiskSize = 50,
InstanceChargeType = "CDCPAID",
DedicatedClusterId = "cluster-262n63e8",
DataDisks = new[]
{
new Tencentcloud.Inputs.AsScalingConfigDataDiskArgs
{
DiskType = "CLOUD_PREMIUM",
DiskSize = 50,
},
},
InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
InternetMaxBandwidthOut = 10,
PublicIpAssigned = true,
Password = "Test@123#",
EnhancedSecurityService = false,
EnhancedMonitorService = false,
EnhancedAutomationToolsService = false,
UserData = "dGVzdA==",
HostNameSettings = new Tencentcloud.Inputs.AsScalingConfigHostNameSettingsArgs
{
HostName = "host-name",
HostNameStyle = "UNIQUE",
},
InstanceTags =
{
{ "tag", "example" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetImagesArgs;
import com.pulumi.tencentcloud.AsScalingConfig;
import com.pulumi.tencentcloud.AsScalingConfigArgs;
import com.pulumi.tencentcloud.inputs.AsScalingConfigDataDiskArgs;
import com.pulumi.tencentcloud.inputs.AsScalingConfigHostNameSettingsArgs;
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 exampleImages = TencentcloudFunctions.getImages(GetImagesArgs.builder()
.imageTypes("PUBLIC_IMAGE")
.osName("TencentOS Server 4 for x86_64")
.build());
var exampleAsScalingConfig = new AsScalingConfig("exampleAsScalingConfig", AsScalingConfigArgs.builder()
.configurationName("tf-example")
.imageId(exampleImages.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
.instanceTypes("SA5.MEDIUM4")
.projectId(0)
.systemDiskType("CLOUD_PREMIUM")
.systemDiskSize("50")
.instanceChargeType("CDCPAID")
.dedicatedClusterId("cluster-262n63e8")
.dataDisks(AsScalingConfigDataDiskArgs.builder()
.diskType("CLOUD_PREMIUM")
.diskSize(50)
.build())
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(10)
.publicIpAssigned(true)
.password("Test@123#")
.enhancedSecurityService(false)
.enhancedMonitorService(false)
.enhancedAutomationToolsService(false)
.userData("dGVzdA==")
.hostNameSettings(AsScalingConfigHostNameSettingsArgs.builder()
.hostName("host-name")
.hostNameStyle("UNIQUE")
.build())
.instanceTags(Map.of("tag", "example"))
.build());
}
}
resources:
exampleAsScalingConfig:
type: tencentcloud:AsScalingConfig
properties:
configurationName: tf-example
imageId: ${exampleImages.images[0].imageId}
instanceTypes:
- SA5.MEDIUM4
projectId: 0
systemDiskType: CLOUD_PREMIUM
systemDiskSize: '50'
instanceChargeType: CDCPAID
dedicatedClusterId: cluster-262n63e8
dataDisks:
- diskType: CLOUD_PREMIUM
diskSize: 50
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 10
publicIpAssigned: true
password: Test@123#
enhancedSecurityService: false
enhancedMonitorService: false
enhancedAutomationToolsService: false
userData: dGVzdA==
hostNameSettings:
hostName: host-name
hostNameStyle: UNIQUE
instanceTags:
tag: example
variables:
exampleImages:
fn::invoke:
function: tencentcloud:getImages
arguments:
imageTypes:
- PUBLIC_IMAGE
osName: TencentOS Server 4 for x86_64
Create AsScalingConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AsScalingConfig(name: string, args: AsScalingConfigArgs, opts?: CustomResourceOptions);
@overload
def AsScalingConfig(resource_name: str,
args: AsScalingConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AsScalingConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
configuration_name: Optional[str] = None,
instance_types: Optional[Sequence[str]] = None,
instance_name_settings: Optional[AsScalingConfigInstanceNameSettingsArgs] = None,
key_ids: Optional[Sequence[str]] = None,
dedicated_cluster_id: Optional[str] = None,
disaster_recover_group_ids: Optional[Sequence[str]] = None,
disk_type_policy: Optional[str] = None,
enhanced_automation_tools_service: Optional[bool] = None,
enhanced_monitor_service: Optional[bool] = None,
enhanced_security_service: Optional[bool] = None,
host_name_settings: Optional[AsScalingConfigHostNameSettingsArgs] = None,
image_family: Optional[str] = None,
image_id: Optional[str] = None,
instance_charge_type: Optional[str] = None,
instance_charge_type_prepaid_period: Optional[float] = None,
instance_charge_type_prepaid_renew_flag: Optional[str] = None,
data_disks: Optional[Sequence[AsScalingConfigDataDiskArgs]] = None,
as_scaling_config_id: Optional[str] = None,
project_id: Optional[float] = None,
internet_charge_type: Optional[str] = None,
internet_max_bandwidth_out: Optional[float] = None,
keep_image_login: Optional[bool] = None,
instance_tags: Optional[Mapping[str, str]] = None,
password: Optional[str] = None,
cam_role_name: Optional[str] = None,
public_ip_assigned: Optional[bool] = None,
security_group_ids: Optional[Sequence[str]] = None,
spot_instance_type: Optional[str] = None,
spot_max_price: Optional[str] = None,
system_disk_size: Optional[float] = None,
system_disk_type: Optional[str] = None,
user_data: Optional[str] = None)
func NewAsScalingConfig(ctx *Context, name string, args AsScalingConfigArgs, opts ...ResourceOption) (*AsScalingConfig, error)
public AsScalingConfig(string name, AsScalingConfigArgs args, CustomResourceOptions? opts = null)
public AsScalingConfig(String name, AsScalingConfigArgs args)
public AsScalingConfig(String name, AsScalingConfigArgs args, CustomResourceOptions options)
type: tencentcloud:AsScalingConfig
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 AsScalingConfigArgs
- 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 AsScalingConfigArgs
- 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 AsScalingConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AsScalingConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AsScalingConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AsScalingConfig 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 AsScalingConfig resource accepts the following input properties:
- Configuration
Name string - Name of a launch configuration.
- Instance
Types List<string> - Specified types of CVM instances.
- As
Scaling stringConfig Id - ID of the resource.
- Cam
Role stringName - CAM role name authorized to access.
- Data
Disks List<AsScaling Config Data Disk> - Configurations of data disk.
- Dedicated
Cluster stringId - Dedicated Cluster ID.
- Disaster
Recover List<string>Group Ids - Placement group ID. Only one is allowed.
- Disk
Type stringPolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - Enhanced
Automation boolTools Service - To specify whether to enable cloud automation tools service.
- Enhanced
Monitor boolService - To specify whether to enable cloud monitor service. Default is
TRUE
. - Enhanced
Security boolService - To specify whether to enable cloud security service. Default is
TRUE
. - Host
Name AsSettings Scaling Config Host Name Settings - Related settings of the cloud server hostname (HostName).
- Image
Family string - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- Image
Id string - An available image ID for a cvm instance.
- Instance
Charge stringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - Instance
Charge doubleType Prepaid Period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Instance
Charge stringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - Instance
Name AsSettings Scaling Config Instance Name Settings - Settings of CVM instance names.
- Dictionary<string, string>
- A list of tags used to associate different resources.
- Internet
Charge stringType - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - Internet
Max doubleBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - Keep
Image boolLogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- Key
Ids List<string> - ID list of keys.
- Password string
- Password to access.
- Project
Id double - Specifys to which project the configuration belongs.
- Public
Ip boolAssigned - Specify whether to assign an Internet IP address.
- Security
Group List<string>Ids - Security groups to which a CVM instance belongs.
- Spot
Instance stringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - Spot
Max stringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - System
Disk doubleSize - Volume of system disk in GB. Default is
50
. - System
Disk stringType - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - User
Data string - ase64-encoded User Data text, the length limit is 16KB.
- Configuration
Name string - Name of a launch configuration.
- Instance
Types []string - Specified types of CVM instances.
- As
Scaling stringConfig Id - ID of the resource.
- Cam
Role stringName - CAM role name authorized to access.
- Data
Disks []AsScaling Config Data Disk Args - Configurations of data disk.
- Dedicated
Cluster stringId - Dedicated Cluster ID.
- Disaster
Recover []stringGroup Ids - Placement group ID. Only one is allowed.
- Disk
Type stringPolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - Enhanced
Automation boolTools Service - To specify whether to enable cloud automation tools service.
- Enhanced
Monitor boolService - To specify whether to enable cloud monitor service. Default is
TRUE
. - Enhanced
Security boolService - To specify whether to enable cloud security service. Default is
TRUE
. - Host
Name AsSettings Scaling Config Host Name Settings Args - Related settings of the cloud server hostname (HostName).
- Image
Family string - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- Image
Id string - An available image ID for a cvm instance.
- Instance
Charge stringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - Instance
Charge float64Type Prepaid Period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Instance
Charge stringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - Instance
Name AsSettings Scaling Config Instance Name Settings Args - Settings of CVM instance names.
- map[string]string
- A list of tags used to associate different resources.
- Internet
Charge stringType - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - Internet
Max float64Bandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - Keep
Image boolLogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- Key
Ids []string - ID list of keys.
- Password string
- Password to access.
- Project
Id float64 - Specifys to which project the configuration belongs.
- Public
Ip boolAssigned - Specify whether to assign an Internet IP address.
- Security
Group []stringIds - Security groups to which a CVM instance belongs.
- Spot
Instance stringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - Spot
Max stringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - System
Disk float64Size - Volume of system disk in GB. Default is
50
. - System
Disk stringType - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - User
Data string - ase64-encoded User Data text, the length limit is 16KB.
- configuration
Name String - Name of a launch configuration.
- instance
Types List<String> - Specified types of CVM instances.
- as
Scaling StringConfig Id - ID of the resource.
- cam
Role StringName - CAM role name authorized to access.
- data
Disks List<AsScaling Config Data Disk> - Configurations of data disk.
- dedicated
Cluster StringId - Dedicated Cluster ID.
- disaster
Recover List<String>Group Ids - Placement group ID. Only one is allowed.
- disk
Type StringPolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - enhanced
Automation BooleanTools Service - To specify whether to enable cloud automation tools service.
- enhanced
Monitor BooleanService - To specify whether to enable cloud monitor service. Default is
TRUE
. - enhanced
Security BooleanService - To specify whether to enable cloud security service. Default is
TRUE
. - host
Name AsSettings Scaling Config Host Name Settings - Related settings of the cloud server hostname (HostName).
- image
Family String - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- image
Id String - An available image ID for a cvm instance.
- instance
Charge StringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance
Charge DoubleType Prepaid Period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance
Charge StringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance
Name AsSettings Scaling Config Instance Name Settings - Settings of CVM instance names.
- Map<String,String>
- A list of tags used to associate different resources.
- internet
Charge StringType - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet
Max DoubleBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - keep
Image BooleanLogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- key
Ids List<String> - ID list of keys.
- password String
- Password to access.
- project
Id Double - Specifys to which project the configuration belongs.
- public
Ip BooleanAssigned - Specify whether to assign an Internet IP address.
- security
Group List<String>Ids - Security groups to which a CVM instance belongs.
- spot
Instance StringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot
Max StringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - system
Disk DoubleSize - Volume of system disk in GB. Default is
50
. - system
Disk StringType - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - user
Data String - ase64-encoded User Data text, the length limit is 16KB.
- configuration
Name string - Name of a launch configuration.
- instance
Types string[] - Specified types of CVM instances.
- as
Scaling stringConfig Id - ID of the resource.
- cam
Role stringName - CAM role name authorized to access.
- data
Disks AsScaling Config Data Disk[] - Configurations of data disk.
- dedicated
Cluster stringId - Dedicated Cluster ID.
- disaster
Recover string[]Group Ids - Placement group ID. Only one is allowed.
- disk
Type stringPolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - enhanced
Automation booleanTools Service - To specify whether to enable cloud automation tools service.
- enhanced
Monitor booleanService - To specify whether to enable cloud monitor service. Default is
TRUE
. - enhanced
Security booleanService - To specify whether to enable cloud security service. Default is
TRUE
. - host
Name AsSettings Scaling Config Host Name Settings - Related settings of the cloud server hostname (HostName).
- image
Family string - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- image
Id string - An available image ID for a cvm instance.
- instance
Charge stringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance
Charge numberType Prepaid Period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance
Charge stringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance
Name AsSettings Scaling Config Instance Name Settings - Settings of CVM instance names.
- {[key: string]: string}
- A list of tags used to associate different resources.
- internet
Charge stringType - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet
Max numberBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - keep
Image booleanLogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- key
Ids string[] - ID list of keys.
- password string
- Password to access.
- project
Id number - Specifys to which project the configuration belongs.
- public
Ip booleanAssigned - Specify whether to assign an Internet IP address.
- security
Group string[]Ids - Security groups to which a CVM instance belongs.
- spot
Instance stringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot
Max stringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - system
Disk numberSize - Volume of system disk in GB. Default is
50
. - system
Disk stringType - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - user
Data string - ase64-encoded User Data text, the length limit is 16KB.
- configuration_
name str - Name of a launch configuration.
- instance_
types Sequence[str] - Specified types of CVM instances.
- as_
scaling_ strconfig_ id - ID of the resource.
- cam_
role_ strname - CAM role name authorized to access.
- data_
disks Sequence[AsScaling Config Data Disk Args] - Configurations of data disk.
- dedicated_
cluster_ strid - Dedicated Cluster ID.
- disaster_
recover_ Sequence[str]group_ ids - Placement group ID. Only one is allowed.
- disk_
type_ strpolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - enhanced_
automation_ booltools_ service - To specify whether to enable cloud automation tools service.
- enhanced_
monitor_ boolservice - To specify whether to enable cloud monitor service. Default is
TRUE
. - enhanced_
security_ boolservice - To specify whether to enable cloud security service. Default is
TRUE
. - host_
name_ Assettings Scaling Config Host Name Settings Args - Related settings of the cloud server hostname (HostName).
- image_
family str - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- image_
id str - An available image ID for a cvm instance.
- instance_
charge_ strtype - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance_
charge_ floattype_ prepaid_ period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance_
charge_ strtype_ prepaid_ renew_ flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance_
name_ Assettings Scaling Config Instance Name Settings Args - Settings of CVM instance names.
- Mapping[str, str]
- A list of tags used to associate different resources.
- internet_
charge_ strtype - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet_
max_ floatbandwidth_ out - Max bandwidth of Internet access in Mbps. Default is
0
. - keep_
image_ boollogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- key_
ids Sequence[str] - ID list of keys.
- password str
- Password to access.
- project_
id float - Specifys to which project the configuration belongs.
- public_
ip_ boolassigned - Specify whether to assign an Internet IP address.
- security_
group_ Sequence[str]ids - Security groups to which a CVM instance belongs.
- spot_
instance_ strtype - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot_
max_ strprice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - system_
disk_ floatsize - Volume of system disk in GB. Default is
50
. - system_
disk_ strtype - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - user_
data str - ase64-encoded User Data text, the length limit is 16KB.
- configuration
Name String - Name of a launch configuration.
- instance
Types List<String> - Specified types of CVM instances.
- as
Scaling StringConfig Id - ID of the resource.
- cam
Role StringName - CAM role name authorized to access.
- data
Disks List<Property Map> - Configurations of data disk.
- dedicated
Cluster StringId - Dedicated Cluster ID.
- disaster
Recover List<String>Group Ids - Placement group ID. Only one is allowed.
- disk
Type StringPolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - enhanced
Automation BooleanTools Service - To specify whether to enable cloud automation tools service.
- enhanced
Monitor BooleanService - To specify whether to enable cloud monitor service. Default is
TRUE
. - enhanced
Security BooleanService - To specify whether to enable cloud security service. Default is
TRUE
. - host
Name Property MapSettings - Related settings of the cloud server hostname (HostName).
- image
Family String - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- image
Id String - An available image ID for a cvm instance.
- instance
Charge StringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance
Charge NumberType Prepaid Period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance
Charge StringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance
Name Property MapSettings - Settings of CVM instance names.
- Map<String>
- A list of tags used to associate different resources.
- internet
Charge StringType - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet
Max NumberBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - keep
Image BooleanLogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- key
Ids List<String> - ID list of keys.
- password String
- Password to access.
- project
Id Number - Specifys to which project the configuration belongs.
- public
Ip BooleanAssigned - Specify whether to assign an Internet IP address.
- security
Group List<String>Ids - Security groups to which a CVM instance belongs.
- spot
Instance StringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot
Max StringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - system
Disk NumberSize - Volume of system disk in GB. Default is
50
. - system
Disk StringType - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - user
Data String - ase64-encoded User Data text, the length limit is 16KB.
Outputs
All input properties are implicitly available as output properties. Additionally, the AsScalingConfig resource produces the following output properties:
- Create
Time string - The time when the launch configuration was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Current statues of a launch configuration.
- Create
Time string - The time when the launch configuration was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Current statues of a launch configuration.
- create
Time String - The time when the launch configuration was created.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Current statues of a launch configuration.
- create
Time string - The time when the launch configuration was created.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Current statues of a launch configuration.
- create_
time str - The time when the launch configuration was created.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Current statues of a launch configuration.
- create
Time String - The time when the launch configuration was created.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Current statues of a launch configuration.
Look up Existing AsScalingConfig Resource
Get an existing AsScalingConfig 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?: AsScalingConfigState, opts?: CustomResourceOptions): AsScalingConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
as_scaling_config_id: Optional[str] = None,
cam_role_name: Optional[str] = None,
configuration_name: Optional[str] = None,
create_time: Optional[str] = None,
data_disks: Optional[Sequence[AsScalingConfigDataDiskArgs]] = None,
dedicated_cluster_id: Optional[str] = None,
disaster_recover_group_ids: Optional[Sequence[str]] = None,
disk_type_policy: Optional[str] = None,
enhanced_automation_tools_service: Optional[bool] = None,
enhanced_monitor_service: Optional[bool] = None,
enhanced_security_service: Optional[bool] = None,
host_name_settings: Optional[AsScalingConfigHostNameSettingsArgs] = None,
image_family: Optional[str] = None,
image_id: Optional[str] = None,
instance_charge_type: Optional[str] = None,
instance_charge_type_prepaid_period: Optional[float] = None,
instance_charge_type_prepaid_renew_flag: Optional[str] = None,
instance_name_settings: Optional[AsScalingConfigInstanceNameSettingsArgs] = None,
instance_tags: Optional[Mapping[str, str]] = None,
instance_types: Optional[Sequence[str]] = None,
internet_charge_type: Optional[str] = None,
internet_max_bandwidth_out: Optional[float] = None,
keep_image_login: Optional[bool] = None,
key_ids: Optional[Sequence[str]] = None,
password: Optional[str] = None,
project_id: Optional[float] = None,
public_ip_assigned: Optional[bool] = None,
security_group_ids: Optional[Sequence[str]] = None,
spot_instance_type: Optional[str] = None,
spot_max_price: Optional[str] = None,
status: Optional[str] = None,
system_disk_size: Optional[float] = None,
system_disk_type: Optional[str] = None,
user_data: Optional[str] = None) -> AsScalingConfig
func GetAsScalingConfig(ctx *Context, name string, id IDInput, state *AsScalingConfigState, opts ...ResourceOption) (*AsScalingConfig, error)
public static AsScalingConfig Get(string name, Input<string> id, AsScalingConfigState? state, CustomResourceOptions? opts = null)
public static AsScalingConfig get(String name, Output<String> id, AsScalingConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:AsScalingConfig 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.
- As
Scaling stringConfig Id - ID of the resource.
- Cam
Role stringName - CAM role name authorized to access.
- Configuration
Name string - Name of a launch configuration.
- Create
Time string - The time when the launch configuration was created.
- Data
Disks List<AsScaling Config Data Disk> - Configurations of data disk.
- Dedicated
Cluster stringId - Dedicated Cluster ID.
- Disaster
Recover List<string>Group Ids - Placement group ID. Only one is allowed.
- Disk
Type stringPolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - Enhanced
Automation boolTools Service - To specify whether to enable cloud automation tools service.
- Enhanced
Monitor boolService - To specify whether to enable cloud monitor service. Default is
TRUE
. - Enhanced
Security boolService - To specify whether to enable cloud security service. Default is
TRUE
. - Host
Name AsSettings Scaling Config Host Name Settings - Related settings of the cloud server hostname (HostName).
- Image
Family string - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- Image
Id string - An available image ID for a cvm instance.
- Instance
Charge stringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - Instance
Charge doubleType Prepaid Period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Instance
Charge stringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - Instance
Name AsSettings Scaling Config Instance Name Settings - Settings of CVM instance names.
- Dictionary<string, string>
- A list of tags used to associate different resources.
- Instance
Types List<string> - Specified types of CVM instances.
- Internet
Charge stringType - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - Internet
Max doubleBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - Keep
Image boolLogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- Key
Ids List<string> - ID list of keys.
- Password string
- Password to access.
- Project
Id double - Specifys to which project the configuration belongs.
- Public
Ip boolAssigned - Specify whether to assign an Internet IP address.
- Security
Group List<string>Ids - Security groups to which a CVM instance belongs.
- Spot
Instance stringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - Spot
Max stringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - Status string
- Current statues of a launch configuration.
- System
Disk doubleSize - Volume of system disk in GB. Default is
50
. - System
Disk stringType - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - User
Data string - ase64-encoded User Data text, the length limit is 16KB.
- As
Scaling stringConfig Id - ID of the resource.
- Cam
Role stringName - CAM role name authorized to access.
- Configuration
Name string - Name of a launch configuration.
- Create
Time string - The time when the launch configuration was created.
- Data
Disks []AsScaling Config Data Disk Args - Configurations of data disk.
- Dedicated
Cluster stringId - Dedicated Cluster ID.
- Disaster
Recover []stringGroup Ids - Placement group ID. Only one is allowed.
- Disk
Type stringPolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - Enhanced
Automation boolTools Service - To specify whether to enable cloud automation tools service.
- Enhanced
Monitor boolService - To specify whether to enable cloud monitor service. Default is
TRUE
. - Enhanced
Security boolService - To specify whether to enable cloud security service. Default is
TRUE
. - Host
Name AsSettings Scaling Config Host Name Settings Args - Related settings of the cloud server hostname (HostName).
- Image
Family string - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- Image
Id string - An available image ID for a cvm instance.
- Instance
Charge stringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - Instance
Charge float64Type Prepaid Period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Instance
Charge stringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - Instance
Name AsSettings Scaling Config Instance Name Settings Args - Settings of CVM instance names.
- map[string]string
- A list of tags used to associate different resources.
- Instance
Types []string - Specified types of CVM instances.
- Internet
Charge stringType - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - Internet
Max float64Bandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - Keep
Image boolLogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- Key
Ids []string - ID list of keys.
- Password string
- Password to access.
- Project
Id float64 - Specifys to which project the configuration belongs.
- Public
Ip boolAssigned - Specify whether to assign an Internet IP address.
- Security
Group []stringIds - Security groups to which a CVM instance belongs.
- Spot
Instance stringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - Spot
Max stringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - Status string
- Current statues of a launch configuration.
- System
Disk float64Size - Volume of system disk in GB. Default is
50
. - System
Disk stringType - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - User
Data string - ase64-encoded User Data text, the length limit is 16KB.
- as
Scaling StringConfig Id - ID of the resource.
- cam
Role StringName - CAM role name authorized to access.
- configuration
Name String - Name of a launch configuration.
- create
Time String - The time when the launch configuration was created.
- data
Disks List<AsScaling Config Data Disk> - Configurations of data disk.
- dedicated
Cluster StringId - Dedicated Cluster ID.
- disaster
Recover List<String>Group Ids - Placement group ID. Only one is allowed.
- disk
Type StringPolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - enhanced
Automation BooleanTools Service - To specify whether to enable cloud automation tools service.
- enhanced
Monitor BooleanService - To specify whether to enable cloud monitor service. Default is
TRUE
. - enhanced
Security BooleanService - To specify whether to enable cloud security service. Default is
TRUE
. - host
Name AsSettings Scaling Config Host Name Settings - Related settings of the cloud server hostname (HostName).
- image
Family String - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- image
Id String - An available image ID for a cvm instance.
- instance
Charge StringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance
Charge DoubleType Prepaid Period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance
Charge StringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance
Name AsSettings Scaling Config Instance Name Settings - Settings of CVM instance names.
- Map<String,String>
- A list of tags used to associate different resources.
- instance
Types List<String> - Specified types of CVM instances.
- internet
Charge StringType - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet
Max DoubleBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - keep
Image BooleanLogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- key
Ids List<String> - ID list of keys.
- password String
- Password to access.
- project
Id Double - Specifys to which project the configuration belongs.
- public
Ip BooleanAssigned - Specify whether to assign an Internet IP address.
- security
Group List<String>Ids - Security groups to which a CVM instance belongs.
- spot
Instance StringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot
Max StringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - status String
- Current statues of a launch configuration.
- system
Disk DoubleSize - Volume of system disk in GB. Default is
50
. - system
Disk StringType - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - user
Data String - ase64-encoded User Data text, the length limit is 16KB.
- as
Scaling stringConfig Id - ID of the resource.
- cam
Role stringName - CAM role name authorized to access.
- configuration
Name string - Name of a launch configuration.
- create
Time string - The time when the launch configuration was created.
- data
Disks AsScaling Config Data Disk[] - Configurations of data disk.
- dedicated
Cluster stringId - Dedicated Cluster ID.
- disaster
Recover string[]Group Ids - Placement group ID. Only one is allowed.
- disk
Type stringPolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - enhanced
Automation booleanTools Service - To specify whether to enable cloud automation tools service.
- enhanced
Monitor booleanService - To specify whether to enable cloud monitor service. Default is
TRUE
. - enhanced
Security booleanService - To specify whether to enable cloud security service. Default is
TRUE
. - host
Name AsSettings Scaling Config Host Name Settings - Related settings of the cloud server hostname (HostName).
- image
Family string - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- image
Id string - An available image ID for a cvm instance.
- instance
Charge stringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance
Charge numberType Prepaid Period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance
Charge stringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance
Name AsSettings Scaling Config Instance Name Settings - Settings of CVM instance names.
- {[key: string]: string}
- A list of tags used to associate different resources.
- instance
Types string[] - Specified types of CVM instances.
- internet
Charge stringType - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet
Max numberBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - keep
Image booleanLogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- key
Ids string[] - ID list of keys.
- password string
- Password to access.
- project
Id number - Specifys to which project the configuration belongs.
- public
Ip booleanAssigned - Specify whether to assign an Internet IP address.
- security
Group string[]Ids - Security groups to which a CVM instance belongs.
- spot
Instance stringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot
Max stringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - status string
- Current statues of a launch configuration.
- system
Disk numberSize - Volume of system disk in GB. Default is
50
. - system
Disk stringType - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - user
Data string - ase64-encoded User Data text, the length limit is 16KB.
- as_
scaling_ strconfig_ id - ID of the resource.
- cam_
role_ strname - CAM role name authorized to access.
- configuration_
name str - Name of a launch configuration.
- create_
time str - The time when the launch configuration was created.
- data_
disks Sequence[AsScaling Config Data Disk Args] - Configurations of data disk.
- dedicated_
cluster_ strid - Dedicated Cluster ID.
- disaster_
recover_ Sequence[str]group_ ids - Placement group ID. Only one is allowed.
- disk_
type_ strpolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - enhanced_
automation_ booltools_ service - To specify whether to enable cloud automation tools service.
- enhanced_
monitor_ boolservice - To specify whether to enable cloud monitor service. Default is
TRUE
. - enhanced_
security_ boolservice - To specify whether to enable cloud security service. Default is
TRUE
. - host_
name_ Assettings Scaling Config Host Name Settings Args - Related settings of the cloud server hostname (HostName).
- image_
family str - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- image_
id str - An available image ID for a cvm instance.
- instance_
charge_ strtype - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance_
charge_ floattype_ prepaid_ period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance_
charge_ strtype_ prepaid_ renew_ flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance_
name_ Assettings Scaling Config Instance Name Settings Args - Settings of CVM instance names.
- Mapping[str, str]
- A list of tags used to associate different resources.
- instance_
types Sequence[str] - Specified types of CVM instances.
- internet_
charge_ strtype - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet_
max_ floatbandwidth_ out - Max bandwidth of Internet access in Mbps. Default is
0
. - keep_
image_ boollogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- key_
ids Sequence[str] - ID list of keys.
- password str
- Password to access.
- project_
id float - Specifys to which project the configuration belongs.
- public_
ip_ boolassigned - Specify whether to assign an Internet IP address.
- security_
group_ Sequence[str]ids - Security groups to which a CVM instance belongs.
- spot_
instance_ strtype - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot_
max_ strprice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - status str
- Current statues of a launch configuration.
- system_
disk_ floatsize - Volume of system disk in GB. Default is
50
. - system_
disk_ strtype - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - user_
data str - ase64-encoded User Data text, the length limit is 16KB.
- as
Scaling StringConfig Id - ID of the resource.
- cam
Role StringName - CAM role name authorized to access.
- configuration
Name String - Name of a launch configuration.
- create
Time String - The time when the launch configuration was created.
- data
Disks List<Property Map> - Configurations of data disk.
- dedicated
Cluster StringId - Dedicated Cluster ID.
- disaster
Recover List<String>Group Ids - Placement group ID. Only one is allowed.
- disk
Type StringPolicy - Policy of cloud disk type. Valid values:
ORIGINAL
andAUTOMATIC
. Default isORIGINAL
. - enhanced
Automation BooleanTools Service - To specify whether to enable cloud automation tools service.
- enhanced
Monitor BooleanService - To specify whether to enable cloud monitor service. Default is
TRUE
. - enhanced
Security BooleanService - To specify whether to enable cloud security service. Default is
TRUE
. - host
Name Property MapSettings - Related settings of the cloud server hostname (HostName).
- image
Family String - Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
- image
Id String - An available image ID for a cvm instance.
- instance
Charge StringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
,CDCPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance
Charge NumberType Prepaid Period - The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance
Charge StringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance
Name Property MapSettings - Settings of CVM instance names.
- Map<String>
- A list of tags used to associate different resources.
- instance
Types List<String> - Specified types of CVM instances.
- internet
Charge StringType - Charge types for network traffic. Valid values:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet
Max NumberBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - keep
Image BooleanLogin - Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
- key
Ids List<String> - ID list of keys.
- password String
- Password to access.
- project
Id Number - Specifys to which project the configuration belongs.
- public
Ip BooleanAssigned - Specify whether to assign an Internet IP address.
- security
Group List<String>Ids - Security groups to which a CVM instance belongs.
- spot
Instance StringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot
Max StringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - status String
- Current statues of a launch configuration.
- system
Disk NumberSize - Volume of system disk in GB. Default is
50
. - system
Disk StringType - Type of a CVM disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. Default isCLOUD_PREMIUM
. valid when disk_type_policy is ORIGINAL. - user
Data String - ase64-encoded User Data text, the length limit is 16KB.
Supporting Types
AsScalingConfigDataDisk, AsScalingConfigDataDiskArgs
- Delete
With boolInstance - Indicates whether the disk remove after instance terminated. Default is
false
. - Disk
Size double - Volume of disk in GB. Default is
0
. - Disk
Type string - Types of disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. valid when disk_type_policy is ORIGINAL. - Snapshot
Id string - Data disk snapshot ID.
- Delete
With boolInstance - Indicates whether the disk remove after instance terminated. Default is
false
. - Disk
Size float64 - Volume of disk in GB. Default is
0
. - Disk
Type string - Types of disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. valid when disk_type_policy is ORIGINAL. - Snapshot
Id string - Data disk snapshot ID.
- delete
With BooleanInstance - Indicates whether the disk remove after instance terminated. Default is
false
. - disk
Size Double - Volume of disk in GB. Default is
0
. - disk
Type String - Types of disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. valid when disk_type_policy is ORIGINAL. - snapshot
Id String - Data disk snapshot ID.
- delete
With booleanInstance - Indicates whether the disk remove after instance terminated. Default is
false
. - disk
Size number - Volume of disk in GB. Default is
0
. - disk
Type string - Types of disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. valid when disk_type_policy is ORIGINAL. - snapshot
Id string - Data disk snapshot ID.
- delete_
with_ boolinstance - Indicates whether the disk remove after instance terminated. Default is
false
. - disk_
size float - Volume of disk in GB. Default is
0
. - disk_
type str - Types of disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. valid when disk_type_policy is ORIGINAL. - snapshot_
id str - Data disk snapshot ID.
- delete
With BooleanInstance - Indicates whether the disk remove after instance terminated. Default is
false
. - disk
Size Number - Volume of disk in GB. Default is
0
. - disk
Type String - Types of disk. Valid values:
CLOUD_PREMIUM
andCLOUD_SSD
. valid when disk_type_policy is ORIGINAL. - snapshot
Id String - Data disk snapshot ID.
AsScalingConfigHostNameSettings, AsScalingConfigHostNameSettingsArgs
- Host
Name string - The host name of the cloud server; dots (.) and dashes (-) cannot be used as the first and last characters of HostName, and cannot be used consecutively; Windows instances are not supported; other types (Linux, etc.) instances: the character length is [2, 40], it is allowed to support multiple dots, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (no uppercase and lowercase restrictions), numbers and dashes (-). Pure numbers are not allowed.
- Host
Name stringStyle - The style of the host name of the cloud server, the value range includes
ORIGINAL
andUNIQUE
, the default isORIGINAL
;ORIGINAL
, the AS directly passes the HostName filled in the input parameter to the CVM, and the CVM may append a sequence to the HostName number, the HostName of the instance in the scaling group will conflict;UNIQUE
, the HostName filled in as a parameter is equivalent to the host name prefix, AS and CVM will expand it, and the HostName of the instance in the scaling group can be guaranteed to be unique.
- Host
Name string - The host name of the cloud server; dots (.) and dashes (-) cannot be used as the first and last characters of HostName, and cannot be used consecutively; Windows instances are not supported; other types (Linux, etc.) instances: the character length is [2, 40], it is allowed to support multiple dots, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (no uppercase and lowercase restrictions), numbers and dashes (-). Pure numbers are not allowed.
- Host
Name stringStyle - The style of the host name of the cloud server, the value range includes
ORIGINAL
andUNIQUE
, the default isORIGINAL
;ORIGINAL
, the AS directly passes the HostName filled in the input parameter to the CVM, and the CVM may append a sequence to the HostName number, the HostName of the instance in the scaling group will conflict;UNIQUE
, the HostName filled in as a parameter is equivalent to the host name prefix, AS and CVM will expand it, and the HostName of the instance in the scaling group can be guaranteed to be unique.
- host
Name String - The host name of the cloud server; dots (.) and dashes (-) cannot be used as the first and last characters of HostName, and cannot be used consecutively; Windows instances are not supported; other types (Linux, etc.) instances: the character length is [2, 40], it is allowed to support multiple dots, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (no uppercase and lowercase restrictions), numbers and dashes (-). Pure numbers are not allowed.
- host
Name StringStyle - The style of the host name of the cloud server, the value range includes
ORIGINAL
andUNIQUE
, the default isORIGINAL
;ORIGINAL
, the AS directly passes the HostName filled in the input parameter to the CVM, and the CVM may append a sequence to the HostName number, the HostName of the instance in the scaling group will conflict;UNIQUE
, the HostName filled in as a parameter is equivalent to the host name prefix, AS and CVM will expand it, and the HostName of the instance in the scaling group can be guaranteed to be unique.
- host
Name string - The host name of the cloud server; dots (.) and dashes (-) cannot be used as the first and last characters of HostName, and cannot be used consecutively; Windows instances are not supported; other types (Linux, etc.) instances: the character length is [2, 40], it is allowed to support multiple dots, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (no uppercase and lowercase restrictions), numbers and dashes (-). Pure numbers are not allowed.
- host
Name stringStyle - The style of the host name of the cloud server, the value range includes
ORIGINAL
andUNIQUE
, the default isORIGINAL
;ORIGINAL
, the AS directly passes the HostName filled in the input parameter to the CVM, and the CVM may append a sequence to the HostName number, the HostName of the instance in the scaling group will conflict;UNIQUE
, the HostName filled in as a parameter is equivalent to the host name prefix, AS and CVM will expand it, and the HostName of the instance in the scaling group can be guaranteed to be unique.
- host_
name str - The host name of the cloud server; dots (.) and dashes (-) cannot be used as the first and last characters of HostName, and cannot be used consecutively; Windows instances are not supported; other types (Linux, etc.) instances: the character length is [2, 40], it is allowed to support multiple dots, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (no uppercase and lowercase restrictions), numbers and dashes (-). Pure numbers are not allowed.
- host_
name_ strstyle - The style of the host name of the cloud server, the value range includes
ORIGINAL
andUNIQUE
, the default isORIGINAL
;ORIGINAL
, the AS directly passes the HostName filled in the input parameter to the CVM, and the CVM may append a sequence to the HostName number, the HostName of the instance in the scaling group will conflict;UNIQUE
, the HostName filled in as a parameter is equivalent to the host name prefix, AS and CVM will expand it, and the HostName of the instance in the scaling group can be guaranteed to be unique.
- host
Name String - The host name of the cloud server; dots (.) and dashes (-) cannot be used as the first and last characters of HostName, and cannot be used consecutively; Windows instances are not supported; other types (Linux, etc.) instances: the character length is [2, 40], it is allowed to support multiple dots, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (no uppercase and lowercase restrictions), numbers and dashes (-). Pure numbers are not allowed.
- host
Name StringStyle - The style of the host name of the cloud server, the value range includes
ORIGINAL
andUNIQUE
, the default isORIGINAL
;ORIGINAL
, the AS directly passes the HostName filled in the input parameter to the CVM, and the CVM may append a sequence to the HostName number, the HostName of the instance in the scaling group will conflict;UNIQUE
, the HostName filled in as a parameter is equivalent to the host name prefix, AS and CVM will expand it, and the HostName of the instance in the scaling group can be guaranteed to be unique.
AsScalingConfigInstanceNameSettings, AsScalingConfigInstanceNameSettingsArgs
- Instance
Name string - CVM instance name.
- Instance
Name stringStyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default isORIGINAL
.
- Instance
Name string - CVM instance name.
- Instance
Name stringStyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default isORIGINAL
.
- instance
Name String - CVM instance name.
- instance
Name StringStyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default isORIGINAL
.
- instance
Name string - CVM instance name.
- instance
Name stringStyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default isORIGINAL
.
- instance_
name str - CVM instance name.
- instance_
name_ strstyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default isORIGINAL
.
- instance
Name String - CVM instance name.
- instance
Name StringStyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default isORIGINAL
.
Import
AutoScaling Configuration can be imported using the id, e.g.
$ pulumi import tencentcloud:index/asScalingConfig:AsScalingConfig example asc-n32ymck2
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.