1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. AsScalingConfig
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.AsScalingConfig

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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 to true.

    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:

    ConfigurationName string
    Name of a launch configuration.
    InstanceTypes List<string>
    Specified types of CVM instances.
    AsScalingConfigId string
    ID of the resource.
    CamRoleName string
    CAM role name authorized to access.
    DataDisks List<AsScalingConfigDataDisk>
    Configurations of data disk.
    DedicatedClusterId string
    Dedicated Cluster ID.
    DisasterRecoverGroupIds List<string>
    Placement group ID. Only one is allowed.
    DiskTypePolicy string
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    EnhancedAutomationToolsService bool
    To specify whether to enable cloud automation tools service.
    EnhancedMonitorService bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    EnhancedSecurityService bool
    To specify whether to enable cloud security service. Default is TRUE.
    HostNameSettings AsScalingConfigHostNameSettings
    Related settings of the cloud server hostname (HostName).
    ImageFamily string
    Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
    ImageId string
    An available image ID for a cvm instance.
    InstanceChargeType string
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    InstanceChargeTypePrepaidPeriod double
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    InstanceChargeTypePrepaidRenewFlag string
    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 as NOTIFY_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 to PREPAID.
    InstanceNameSettings AsScalingConfigInstanceNameSettings
    Settings of CVM instance names.
    InstanceTags Dictionary<string, string>
    A list of tags used to associate different resources.
    InternetChargeType string
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    InternetMaxBandwidthOut double
    Max bandwidth of Internet access in Mbps. Default is 0.
    KeepImageLogin bool
    Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
    KeyIds List<string>
    ID list of keys.
    Password string
    Password to access.
    ProjectId double
    Specifys to which project the configuration belongs.
    PublicIpAssigned bool
    Specify whether to assign an Internet IP address.
    SecurityGroupIds List<string>
    Security groups to which a CVM instance belongs.
    SpotInstanceType string
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    SpotMaxPrice string
    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.
    SystemDiskSize double
    Volume of system disk in GB. Default is 50.
    SystemDiskType string
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    UserData string
    ase64-encoded User Data text, the length limit is 16KB.
    ConfigurationName string
    Name of a launch configuration.
    InstanceTypes []string
    Specified types of CVM instances.
    AsScalingConfigId string
    ID of the resource.
    CamRoleName string
    CAM role name authorized to access.
    DataDisks []AsScalingConfigDataDiskArgs
    Configurations of data disk.
    DedicatedClusterId string
    Dedicated Cluster ID.
    DisasterRecoverGroupIds []string
    Placement group ID. Only one is allowed.
    DiskTypePolicy string
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    EnhancedAutomationToolsService bool
    To specify whether to enable cloud automation tools service.
    EnhancedMonitorService bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    EnhancedSecurityService bool
    To specify whether to enable cloud security service. Default is TRUE.
    HostNameSettings AsScalingConfigHostNameSettingsArgs
    Related settings of the cloud server hostname (HostName).
    ImageFamily string
    Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
    ImageId string
    An available image ID for a cvm instance.
    InstanceChargeType string
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    InstanceChargeTypePrepaidPeriod float64
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    InstanceChargeTypePrepaidRenewFlag string
    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 as NOTIFY_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 to PREPAID.
    InstanceNameSettings AsScalingConfigInstanceNameSettingsArgs
    Settings of CVM instance names.
    InstanceTags map[string]string
    A list of tags used to associate different resources.
    InternetChargeType string
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    InternetMaxBandwidthOut float64
    Max bandwidth of Internet access in Mbps. Default is 0.
    KeepImageLogin bool
    Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
    KeyIds []string
    ID list of keys.
    Password string
    Password to access.
    ProjectId float64
    Specifys to which project the configuration belongs.
    PublicIpAssigned bool
    Specify whether to assign an Internet IP address.
    SecurityGroupIds []string
    Security groups to which a CVM instance belongs.
    SpotInstanceType string
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    SpotMaxPrice string
    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.
    SystemDiskSize float64
    Volume of system disk in GB. Default is 50.
    SystemDiskType string
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    UserData string
    ase64-encoded User Data text, the length limit is 16KB.
    configurationName String
    Name of a launch configuration.
    instanceTypes List<String>
    Specified types of CVM instances.
    asScalingConfigId String
    ID of the resource.
    camRoleName String
    CAM role name authorized to access.
    dataDisks List<AsScalingConfigDataDisk>
    Configurations of data disk.
    dedicatedClusterId String
    Dedicated Cluster ID.
    disasterRecoverGroupIds List<String>
    Placement group ID. Only one is allowed.
    diskTypePolicy String
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    enhancedAutomationToolsService Boolean
    To specify whether to enable cloud automation tools service.
    enhancedMonitorService Boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService Boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostNameSettings AsScalingConfigHostNameSettings
    Related settings of the cloud server hostname (HostName).
    imageFamily String
    Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
    imageId String
    An available image ID for a cvm instance.
    instanceChargeType String
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    instanceChargeTypePrepaidPeriod Double
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag String
    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 as NOTIFY_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 to PREPAID.
    instanceNameSettings AsScalingConfigInstanceNameSettings
    Settings of CVM instance names.
    instanceTags Map<String,String>
    A list of tags used to associate different resources.
    internetChargeType String
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    internetMaxBandwidthOut Double
    Max bandwidth of Internet access in Mbps. Default is 0.
    keepImageLogin Boolean
    Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
    keyIds List<String>
    ID list of keys.
    password String
    Password to access.
    projectId Double
    Specifys to which project the configuration belongs.
    publicIpAssigned Boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds List<String>
    Security groups to which a CVM instance belongs.
    spotInstanceType String
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    spotMaxPrice String
    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.
    systemDiskSize Double
    Volume of system disk in GB. Default is 50.
    systemDiskType String
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    userData String
    ase64-encoded User Data text, the length limit is 16KB.
    configurationName string
    Name of a launch configuration.
    instanceTypes string[]
    Specified types of CVM instances.
    asScalingConfigId string
    ID of the resource.
    camRoleName string
    CAM role name authorized to access.
    dataDisks AsScalingConfigDataDisk[]
    Configurations of data disk.
    dedicatedClusterId string
    Dedicated Cluster ID.
    disasterRecoverGroupIds string[]
    Placement group ID. Only one is allowed.
    diskTypePolicy string
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    enhancedAutomationToolsService boolean
    To specify whether to enable cloud automation tools service.
    enhancedMonitorService boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostNameSettings AsScalingConfigHostNameSettings
    Related settings of the cloud server hostname (HostName).
    imageFamily string
    Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
    imageId string
    An available image ID for a cvm instance.
    instanceChargeType string
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    instanceChargeTypePrepaidPeriod number
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag string
    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 as NOTIFY_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 to PREPAID.
    instanceNameSettings AsScalingConfigInstanceNameSettings
    Settings of CVM instance names.
    instanceTags {[key: string]: string}
    A list of tags used to associate different resources.
    internetChargeType string
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    internetMaxBandwidthOut number
    Max bandwidth of Internet access in Mbps. Default is 0.
    keepImageLogin boolean
    Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
    keyIds string[]
    ID list of keys.
    password string
    Password to access.
    projectId number
    Specifys to which project the configuration belongs.
    publicIpAssigned boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds string[]
    Security groups to which a CVM instance belongs.
    spotInstanceType string
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    spotMaxPrice string
    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.
    systemDiskSize number
    Volume of system disk in GB. Default is 50.
    systemDiskType string
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    userData 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_config_id str
    ID of the resource.
    cam_role_name str
    CAM role name authorized to access.
    data_disks Sequence[AsScalingConfigDataDiskArgs]
    Configurations of data disk.
    dedicated_cluster_id str
    Dedicated Cluster ID.
    disaster_recover_group_ids Sequence[str]
    Placement group ID. Only one is allowed.
    disk_type_policy str
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    enhanced_automation_tools_service bool
    To specify whether to enable cloud automation tools service.
    enhanced_monitor_service bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhanced_security_service bool
    To specify whether to enable cloud security service. Default is TRUE.
    host_name_settings AsScalingConfigHostNameSettingsArgs
    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_type str
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    instance_charge_type_prepaid_period float
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instance_charge_type_prepaid_renew_flag str
    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 as NOTIFY_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 to PREPAID.
    instance_name_settings AsScalingConfigInstanceNameSettingsArgs
    Settings of CVM instance names.
    instance_tags Mapping[str, str]
    A list of tags used to associate different resources.
    internet_charge_type str
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    internet_max_bandwidth_out float
    Max bandwidth of Internet access in Mbps. Default is 0.
    keep_image_login bool
    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_assigned bool
    Specify whether to assign an Internet IP address.
    security_group_ids Sequence[str]
    Security groups to which a CVM instance belongs.
    spot_instance_type str
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    spot_max_price str
    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_size float
    Volume of system disk in GB. Default is 50.
    system_disk_type str
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    user_data str
    ase64-encoded User Data text, the length limit is 16KB.
    configurationName String
    Name of a launch configuration.
    instanceTypes List<String>
    Specified types of CVM instances.
    asScalingConfigId String
    ID of the resource.
    camRoleName String
    CAM role name authorized to access.
    dataDisks List<Property Map>
    Configurations of data disk.
    dedicatedClusterId String
    Dedicated Cluster ID.
    disasterRecoverGroupIds List<String>
    Placement group ID. Only one is allowed.
    diskTypePolicy String
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    enhancedAutomationToolsService Boolean
    To specify whether to enable cloud automation tools service.
    enhancedMonitorService Boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService Boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostNameSettings Property Map
    Related settings of the cloud server hostname (HostName).
    imageFamily String
    Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
    imageId String
    An available image ID for a cvm instance.
    instanceChargeType String
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    instanceChargeTypePrepaidPeriod Number
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag String
    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 as NOTIFY_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 to PREPAID.
    instanceNameSettings Property Map
    Settings of CVM instance names.
    instanceTags Map<String>
    A list of tags used to associate different resources.
    internetChargeType String
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    internetMaxBandwidthOut Number
    Max bandwidth of Internet access in Mbps. Default is 0.
    keepImageLogin Boolean
    Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
    keyIds List<String>
    ID list of keys.
    password String
    Password to access.
    projectId Number
    Specifys to which project the configuration belongs.
    publicIpAssigned Boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds List<String>
    Security groups to which a CVM instance belongs.
    spotInstanceType String
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    spotMaxPrice String
    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.
    systemDiskSize Number
    Volume of system disk in GB. Default is 50.
    systemDiskType String
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    userData 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:

    CreateTime 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.
    CreateTime 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.
    createTime 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.
    createTime 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.
    createTime 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.
    The following state arguments are supported:
    AsScalingConfigId string
    ID of the resource.
    CamRoleName string
    CAM role name authorized to access.
    ConfigurationName string
    Name of a launch configuration.
    CreateTime string
    The time when the launch configuration was created.
    DataDisks List<AsScalingConfigDataDisk>
    Configurations of data disk.
    DedicatedClusterId string
    Dedicated Cluster ID.
    DisasterRecoverGroupIds List<string>
    Placement group ID. Only one is allowed.
    DiskTypePolicy string
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    EnhancedAutomationToolsService bool
    To specify whether to enable cloud automation tools service.
    EnhancedMonitorService bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    EnhancedSecurityService bool
    To specify whether to enable cloud security service. Default is TRUE.
    HostNameSettings AsScalingConfigHostNameSettings
    Related settings of the cloud server hostname (HostName).
    ImageFamily string
    Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
    ImageId string
    An available image ID for a cvm instance.
    InstanceChargeType string
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    InstanceChargeTypePrepaidPeriod double
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    InstanceChargeTypePrepaidRenewFlag string
    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 as NOTIFY_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 to PREPAID.
    InstanceNameSettings AsScalingConfigInstanceNameSettings
    Settings of CVM instance names.
    InstanceTags Dictionary<string, string>
    A list of tags used to associate different resources.
    InstanceTypes List<string>
    Specified types of CVM instances.
    InternetChargeType string
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    InternetMaxBandwidthOut double
    Max bandwidth of Internet access in Mbps. Default is 0.
    KeepImageLogin bool
    Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
    KeyIds List<string>
    ID list of keys.
    Password string
    Password to access.
    ProjectId double
    Specifys to which project the configuration belongs.
    PublicIpAssigned bool
    Specify whether to assign an Internet IP address.
    SecurityGroupIds List<string>
    Security groups to which a CVM instance belongs.
    SpotInstanceType string
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    SpotMaxPrice string
    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.
    SystemDiskSize double
    Volume of system disk in GB. Default is 50.
    SystemDiskType string
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    UserData string
    ase64-encoded User Data text, the length limit is 16KB.
    AsScalingConfigId string
    ID of the resource.
    CamRoleName string
    CAM role name authorized to access.
    ConfigurationName string
    Name of a launch configuration.
    CreateTime string
    The time when the launch configuration was created.
    DataDisks []AsScalingConfigDataDiskArgs
    Configurations of data disk.
    DedicatedClusterId string
    Dedicated Cluster ID.
    DisasterRecoverGroupIds []string
    Placement group ID. Only one is allowed.
    DiskTypePolicy string
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    EnhancedAutomationToolsService bool
    To specify whether to enable cloud automation tools service.
    EnhancedMonitorService bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    EnhancedSecurityService bool
    To specify whether to enable cloud security service. Default is TRUE.
    HostNameSettings AsScalingConfigHostNameSettingsArgs
    Related settings of the cloud server hostname (HostName).
    ImageFamily string
    Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
    ImageId string
    An available image ID for a cvm instance.
    InstanceChargeType string
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    InstanceChargeTypePrepaidPeriod float64
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    InstanceChargeTypePrepaidRenewFlag string
    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 as NOTIFY_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 to PREPAID.
    InstanceNameSettings AsScalingConfigInstanceNameSettingsArgs
    Settings of CVM instance names.
    InstanceTags map[string]string
    A list of tags used to associate different resources.
    InstanceTypes []string
    Specified types of CVM instances.
    InternetChargeType string
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    InternetMaxBandwidthOut float64
    Max bandwidth of Internet access in Mbps. Default is 0.
    KeepImageLogin bool
    Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
    KeyIds []string
    ID list of keys.
    Password string
    Password to access.
    ProjectId float64
    Specifys to which project the configuration belongs.
    PublicIpAssigned bool
    Specify whether to assign an Internet IP address.
    SecurityGroupIds []string
    Security groups to which a CVM instance belongs.
    SpotInstanceType string
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    SpotMaxPrice string
    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.
    SystemDiskSize float64
    Volume of system disk in GB. Default is 50.
    SystemDiskType string
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    UserData string
    ase64-encoded User Data text, the length limit is 16KB.
    asScalingConfigId String
    ID of the resource.
    camRoleName String
    CAM role name authorized to access.
    configurationName String
    Name of a launch configuration.
    createTime String
    The time when the launch configuration was created.
    dataDisks List<AsScalingConfigDataDisk>
    Configurations of data disk.
    dedicatedClusterId String
    Dedicated Cluster ID.
    disasterRecoverGroupIds List<String>
    Placement group ID. Only one is allowed.
    diskTypePolicy String
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    enhancedAutomationToolsService Boolean
    To specify whether to enable cloud automation tools service.
    enhancedMonitorService Boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService Boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostNameSettings AsScalingConfigHostNameSettings
    Related settings of the cloud server hostname (HostName).
    imageFamily String
    Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
    imageId String
    An available image ID for a cvm instance.
    instanceChargeType String
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    instanceChargeTypePrepaidPeriod Double
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag String
    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 as NOTIFY_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 to PREPAID.
    instanceNameSettings AsScalingConfigInstanceNameSettings
    Settings of CVM instance names.
    instanceTags Map<String,String>
    A list of tags used to associate different resources.
    instanceTypes List<String>
    Specified types of CVM instances.
    internetChargeType String
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    internetMaxBandwidthOut Double
    Max bandwidth of Internet access in Mbps. Default is 0.
    keepImageLogin Boolean
    Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
    keyIds List<String>
    ID list of keys.
    password String
    Password to access.
    projectId Double
    Specifys to which project the configuration belongs.
    publicIpAssigned Boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds List<String>
    Security groups to which a CVM instance belongs.
    spotInstanceType String
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    spotMaxPrice String
    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.
    systemDiskSize Double
    Volume of system disk in GB. Default is 50.
    systemDiskType String
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    userData String
    ase64-encoded User Data text, the length limit is 16KB.
    asScalingConfigId string
    ID of the resource.
    camRoleName string
    CAM role name authorized to access.
    configurationName string
    Name of a launch configuration.
    createTime string
    The time when the launch configuration was created.
    dataDisks AsScalingConfigDataDisk[]
    Configurations of data disk.
    dedicatedClusterId string
    Dedicated Cluster ID.
    disasterRecoverGroupIds string[]
    Placement group ID. Only one is allowed.
    diskTypePolicy string
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    enhancedAutomationToolsService boolean
    To specify whether to enable cloud automation tools service.
    enhancedMonitorService boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostNameSettings AsScalingConfigHostNameSettings
    Related settings of the cloud server hostname (HostName).
    imageFamily string
    Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
    imageId string
    An available image ID for a cvm instance.
    instanceChargeType string
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    instanceChargeTypePrepaidPeriod number
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag string
    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 as NOTIFY_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 to PREPAID.
    instanceNameSettings AsScalingConfigInstanceNameSettings
    Settings of CVM instance names.
    instanceTags {[key: string]: string}
    A list of tags used to associate different resources.
    instanceTypes string[]
    Specified types of CVM instances.
    internetChargeType string
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    internetMaxBandwidthOut number
    Max bandwidth of Internet access in Mbps. Default is 0.
    keepImageLogin boolean
    Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
    keyIds string[]
    ID list of keys.
    password string
    Password to access.
    projectId number
    Specifys to which project the configuration belongs.
    publicIpAssigned boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds string[]
    Security groups to which a CVM instance belongs.
    spotInstanceType string
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    spotMaxPrice string
    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.
    systemDiskSize number
    Volume of system disk in GB. Default is 50.
    systemDiskType string
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    userData string
    ase64-encoded User Data text, the length limit is 16KB.
    as_scaling_config_id str
    ID of the resource.
    cam_role_name str
    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[AsScalingConfigDataDiskArgs]
    Configurations of data disk.
    dedicated_cluster_id str
    Dedicated Cluster ID.
    disaster_recover_group_ids Sequence[str]
    Placement group ID. Only one is allowed.
    disk_type_policy str
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    enhanced_automation_tools_service bool
    To specify whether to enable cloud automation tools service.
    enhanced_monitor_service bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhanced_security_service bool
    To specify whether to enable cloud security service. Default is TRUE.
    host_name_settings AsScalingConfigHostNameSettingsArgs
    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_type str
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    instance_charge_type_prepaid_period float
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instance_charge_type_prepaid_renew_flag str
    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 as NOTIFY_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 to PREPAID.
    instance_name_settings AsScalingConfigInstanceNameSettingsArgs
    Settings of CVM instance names.
    instance_tags Mapping[str, str]
    A list of tags used to associate different resources.
    instance_types Sequence[str]
    Specified types of CVM instances.
    internet_charge_type str
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    internet_max_bandwidth_out float
    Max bandwidth of Internet access in Mbps. Default is 0.
    keep_image_login bool
    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_assigned bool
    Specify whether to assign an Internet IP address.
    security_group_ids Sequence[str]
    Security groups to which a CVM instance belongs.
    spot_instance_type str
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    spot_max_price str
    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_size float
    Volume of system disk in GB. Default is 50.
    system_disk_type str
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    user_data str
    ase64-encoded User Data text, the length limit is 16KB.
    asScalingConfigId String
    ID of the resource.
    camRoleName String
    CAM role name authorized to access.
    configurationName String
    Name of a launch configuration.
    createTime String
    The time when the launch configuration was created.
    dataDisks List<Property Map>
    Configurations of data disk.
    dedicatedClusterId String
    Dedicated Cluster ID.
    disasterRecoverGroupIds List<String>
    Placement group ID. Only one is allowed.
    diskTypePolicy String
    Policy of cloud disk type. Valid values: ORIGINAL and AUTOMATIC. Default is ORIGINAL.
    enhancedAutomationToolsService Boolean
    To specify whether to enable cloud automation tools service.
    enhancedMonitorService Boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService Boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostNameSettings Property Map
    Related settings of the cloud server hostname (HostName).
    imageFamily String
    Image Family Name. Either Image ID or Image Family Name must be provided, but not both.
    imageId String
    An available image ID for a cvm instance.
    instanceChargeType String
    Charge type of instance. Valid values are PREPAID, POSTPAID_BY_HOUR, SPOTPAID, CDCPAID. The default is POSTPAID_BY_HOUR. NOTE: SPOTPAID instance must set spot_instance_type and spot_max_price at the same time.
    instanceChargeTypePrepaidPeriod Number
    The tenancy (in month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag String
    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 as NOTIFY_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 to PREPAID.
    instanceNameSettings Property Map
    Settings of CVM instance names.
    instanceTags Map<String>
    A list of tags used to associate different resources.
    instanceTypes List<String>
    Specified types of CVM instances.
    internetChargeType String
    Charge types for network traffic. Valid values: BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    internetMaxBandwidthOut Number
    Max bandwidth of Internet access in Mbps. Default is 0.
    keepImageLogin Boolean
    Specify whether to keep original settings of a CVM image. And it can't be used with password or key_ids together.
    keyIds List<String>
    ID list of keys.
    password String
    Password to access.
    projectId Number
    Specifys to which project the configuration belongs.
    publicIpAssigned Boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds List<String>
    Security groups to which a CVM instance belongs.
    spotInstanceType String
    Type of spot instance, only support one-time now. Note: it only works when instance_charge_type is set to SPOTPAID.
    spotMaxPrice String
    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.
    systemDiskSize Number
    Volume of system disk in GB. Default is 50.
    systemDiskType String
    Type of a CVM disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM. valid when disk_type_policy is ORIGINAL.
    userData String
    ase64-encoded User Data text, the length limit is 16KB.

    Supporting Types

    AsScalingConfigDataDisk, AsScalingConfigDataDiskArgs

    DeleteWithInstance bool
    Indicates whether the disk remove after instance terminated. Default is false.
    DiskSize double
    Volume of disk in GB. Default is 0.
    DiskType string
    Types of disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. valid when disk_type_policy is ORIGINAL.
    SnapshotId string
    Data disk snapshot ID.
    DeleteWithInstance bool
    Indicates whether the disk remove after instance terminated. Default is false.
    DiskSize float64
    Volume of disk in GB. Default is 0.
    DiskType string
    Types of disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. valid when disk_type_policy is ORIGINAL.
    SnapshotId string
    Data disk snapshot ID.
    deleteWithInstance Boolean
    Indicates whether the disk remove after instance terminated. Default is false.
    diskSize Double
    Volume of disk in GB. Default is 0.
    diskType String
    Types of disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. valid when disk_type_policy is ORIGINAL.
    snapshotId String
    Data disk snapshot ID.
    deleteWithInstance boolean
    Indicates whether the disk remove after instance terminated. Default is false.
    diskSize number
    Volume of disk in GB. Default is 0.
    diskType string
    Types of disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. valid when disk_type_policy is ORIGINAL.
    snapshotId string
    Data disk snapshot ID.
    delete_with_instance bool
    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 and CLOUD_SSD. valid when disk_type_policy is ORIGINAL.
    snapshot_id str
    Data disk snapshot ID.
    deleteWithInstance Boolean
    Indicates whether the disk remove after instance terminated. Default is false.
    diskSize Number
    Volume of disk in GB. Default is 0.
    diskType String
    Types of disk. Valid values: CLOUD_PREMIUM and CLOUD_SSD. valid when disk_type_policy is ORIGINAL.
    snapshotId String
    Data disk snapshot ID.

    AsScalingConfigHostNameSettings, AsScalingConfigHostNameSettingsArgs

    HostName 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.
    HostNameStyle string
    The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, the default is ORIGINAL; 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.
    HostName 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.
    HostNameStyle string
    The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, the default is ORIGINAL; 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.
    hostName 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.
    hostNameStyle String
    The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, the default is ORIGINAL; 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.
    hostName 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.
    hostNameStyle string
    The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, the default is ORIGINAL; 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_style str
    The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, the default is ORIGINAL; 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.
    hostName 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.
    hostNameStyle String
    The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, the default is ORIGINAL; 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

    InstanceName string
    CVM instance name.
    InstanceNameStyle string
    Type of CVM instance name. Valid values: ORIGINAL and UNIQUE. Default is ORIGINAL.
    InstanceName string
    CVM instance name.
    InstanceNameStyle string
    Type of CVM instance name. Valid values: ORIGINAL and UNIQUE. Default is ORIGINAL.
    instanceName String
    CVM instance name.
    instanceNameStyle String
    Type of CVM instance name. Valid values: ORIGINAL and UNIQUE. Default is ORIGINAL.
    instanceName string
    CVM instance name.
    instanceNameStyle string
    Type of CVM instance name. Valid values: ORIGINAL and UNIQUE. Default is ORIGINAL.
    instance_name str
    CVM instance name.
    instance_name_style str
    Type of CVM instance name. Valid values: ORIGINAL and UNIQUE. Default is ORIGINAL.
    instanceName String
    CVM instance name.
    instanceNameStyle String
    Type of CVM instance name. Valid values: ORIGINAL and UNIQUE. Default is ORIGINAL.

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack