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

tencentcloud.CvmLaunchTemplateVersion

Explore with Pulumi AI

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

    Provides a resource to create a cvm launch_template_version

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.CvmLaunchTemplateVersion("foo", {
        disableApiTermination: false,
        imageId: "img-9qrfy1xt",
        instanceType: "S5.MEDIUM4",
        launchTemplateId: "lt-r9ajalbi",
        launchTemplateVersionDescription: "version description",
        placement: {
            projectId: 0,
            zone: "ap-guangzhou-6",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.CvmLaunchTemplateVersion("foo",
        disable_api_termination=False,
        image_id="img-9qrfy1xt",
        instance_type="S5.MEDIUM4",
        launch_template_id="lt-r9ajalbi",
        launch_template_version_description="version description",
        placement={
            "project_id": 0,
            "zone": "ap-guangzhou-6",
        })
    
    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.NewCvmLaunchTemplateVersion(ctx, "foo", &tencentcloud.CvmLaunchTemplateVersionArgs{
    			DisableApiTermination:            pulumi.Bool(false),
    			ImageId:                          pulumi.String("img-9qrfy1xt"),
    			InstanceType:                     pulumi.String("S5.MEDIUM4"),
    			LaunchTemplateId:                 pulumi.String("lt-r9ajalbi"),
    			LaunchTemplateVersionDescription: pulumi.String("version description"),
    			Placement: &tencentcloud.CvmLaunchTemplateVersionPlacementArgs{
    				ProjectId: pulumi.Float64(0),
    				Zone:      pulumi.String("ap-guangzhou-6"),
    			},
    		})
    		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 foo = new Tencentcloud.CvmLaunchTemplateVersion("foo", new()
        {
            DisableApiTermination = false,
            ImageId = "img-9qrfy1xt",
            InstanceType = "S5.MEDIUM4",
            LaunchTemplateId = "lt-r9ajalbi",
            LaunchTemplateVersionDescription = "version description",
            Placement = new Tencentcloud.Inputs.CvmLaunchTemplateVersionPlacementArgs
            {
                ProjectId = 0,
                Zone = "ap-guangzhou-6",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CvmLaunchTemplateVersion;
    import com.pulumi.tencentcloud.CvmLaunchTemplateVersionArgs;
    import com.pulumi.tencentcloud.inputs.CvmLaunchTemplateVersionPlacementArgs;
    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 foo = new CvmLaunchTemplateVersion("foo", CvmLaunchTemplateVersionArgs.builder()
                .disableApiTermination(false)
                .imageId("img-9qrfy1xt")
                .instanceType("S5.MEDIUM4")
                .launchTemplateId("lt-r9ajalbi")
                .launchTemplateVersionDescription("version description")
                .placement(CvmLaunchTemplateVersionPlacementArgs.builder()
                    .projectId(0)
                    .zone("ap-guangzhou-6")
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:CvmLaunchTemplateVersion
        properties:
          disableApiTermination: false
          imageId: img-9qrfy1xt
          instanceType: S5.MEDIUM4
          launchTemplateId: lt-r9ajalbi
          launchTemplateVersionDescription: version description
          placement:
            projectId: 0
            zone: ap-guangzhou-6
    

    Create CvmLaunchTemplateVersion Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CvmLaunchTemplateVersion(name: string, args: CvmLaunchTemplateVersionArgs, opts?: CustomResourceOptions);
    @overload
    def CvmLaunchTemplateVersion(resource_name: str,
                                 args: CvmLaunchTemplateVersionArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def CvmLaunchTemplateVersion(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 launch_template_id: Optional[str] = None,
                                 placement: Optional[CvmLaunchTemplateVersionPlacementArgs] = None,
                                 instance_count: Optional[float] = None,
                                 tag_specifications: Optional[Sequence[CvmLaunchTemplateVersionTagSpecificationArgs]] = None,
                                 data_disks: Optional[Sequence[CvmLaunchTemplateVersionDataDiskArgs]] = None,
                                 disable_api_termination: Optional[bool] = None,
                                 disaster_recover_group_ids: Optional[Sequence[str]] = None,
                                 dry_run: Optional[bool] = None,
                                 enhanced_service: Optional[CvmLaunchTemplateVersionEnhancedServiceArgs] = None,
                                 host_name: Optional[str] = None,
                                 hpc_cluster_id: Optional[str] = None,
                                 image_id: Optional[str] = None,
                                 instance_charge_prepaid: Optional[CvmLaunchTemplateVersionInstanceChargePrepaidArgs] = None,
                                 instance_name: Optional[str] = None,
                                 cvm_launch_template_version_id: Optional[str] = None,
                                 action_timer: Optional[CvmLaunchTemplateVersionActionTimerArgs] = None,
                                 instance_charge_type: Optional[str] = None,
                                 instance_type: Optional[str] = None,
                                 internet_accessible: Optional[CvmLaunchTemplateVersionInternetAccessibleArgs] = None,
                                 client_token: Optional[str] = None,
                                 launch_template_version: Optional[float] = None,
                                 launch_template_version_description: Optional[str] = None,
                                 login_settings: Optional[CvmLaunchTemplateVersionLoginSettingsArgs] = None,
                                 cam_role_name: Optional[str] = None,
                                 security_group_ids: Optional[Sequence[str]] = None,
                                 system_disk: Optional[CvmLaunchTemplateVersionSystemDiskArgs] = None,
                                 instance_market_options: Optional[CvmLaunchTemplateVersionInstanceMarketOptionsArgs] = None,
                                 user_data: Optional[str] = None,
                                 virtual_private_cloud: Optional[CvmLaunchTemplateVersionVirtualPrivateCloudArgs] = None)
    func NewCvmLaunchTemplateVersion(ctx *Context, name string, args CvmLaunchTemplateVersionArgs, opts ...ResourceOption) (*CvmLaunchTemplateVersion, error)
    public CvmLaunchTemplateVersion(string name, CvmLaunchTemplateVersionArgs args, CustomResourceOptions? opts = null)
    public CvmLaunchTemplateVersion(String name, CvmLaunchTemplateVersionArgs args)
    public CvmLaunchTemplateVersion(String name, CvmLaunchTemplateVersionArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CvmLaunchTemplateVersion
    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 CvmLaunchTemplateVersionArgs
    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 CvmLaunchTemplateVersionArgs
    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 CvmLaunchTemplateVersionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CvmLaunchTemplateVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CvmLaunchTemplateVersionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CvmLaunchTemplateVersion 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 CvmLaunchTemplateVersion resource accepts the following input properties:

    LaunchTemplateId string
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    Placement CvmLaunchTemplateVersionPlacement
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    ActionTimer CvmLaunchTemplateVersionActionTimer
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    CamRoleName string
    The role name of CAM.
    ClientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    CvmLaunchTemplateVersionId string
    ID of the resource.
    DataDisks List<CvmLaunchTemplateVersionDataDisk>
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    DisableApiTermination bool
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    DisasterRecoverGroupIds List<string>
    Placement group ID. You can only specify one.
    DryRun bool
    Whether the request is a dry run only.
    EnhancedService CvmLaunchTemplateVersionEnhancedService
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    HostName string
    Hostname of a CVM.
    HpcClusterId string
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    ImageId string
    Image ID.
    InstanceChargePrepaid CvmLaunchTemplateVersionInstanceChargePrepaid
    Describes the billing method of an instance.
    InstanceChargeType string
    The charge type of instance.
    InstanceCount double
    The number of instances to be purchased.
    InstanceMarketOptions CvmLaunchTemplateVersionInstanceMarketOptions
    Options related to bidding requests.
    InstanceName string
    Instance name to be displayed.
    InstanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    InternetAccessible CvmLaunchTemplateVersionInternetAccessible
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    LaunchTemplateVersion double
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    LaunchTemplateVersionDescription string
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    LoginSettings CvmLaunchTemplateVersionLoginSettings
    Describes login settings of an instance.
    SecurityGroupIds List<string>
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    SystemDisk CvmLaunchTemplateVersionSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    TagSpecifications List<CvmLaunchTemplateVersionTagSpecification>
    Description of tags associated with resource instances during instance creation.
    UserData string
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    VirtualPrivateCloud CvmLaunchTemplateVersionVirtualPrivateCloud
    Describes information on VPC, including subnets, IP addresses, etc.
    LaunchTemplateId string
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    Placement CvmLaunchTemplateVersionPlacementArgs
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    ActionTimer CvmLaunchTemplateVersionActionTimerArgs
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    CamRoleName string
    The role name of CAM.
    ClientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    CvmLaunchTemplateVersionId string
    ID of the resource.
    DataDisks []CvmLaunchTemplateVersionDataDiskArgs
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    DisableApiTermination bool
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    DisasterRecoverGroupIds []string
    Placement group ID. You can only specify one.
    DryRun bool
    Whether the request is a dry run only.
    EnhancedService CvmLaunchTemplateVersionEnhancedServiceArgs
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    HostName string
    Hostname of a CVM.
    HpcClusterId string
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    ImageId string
    Image ID.
    InstanceChargePrepaid CvmLaunchTemplateVersionInstanceChargePrepaidArgs
    Describes the billing method of an instance.
    InstanceChargeType string
    The charge type of instance.
    InstanceCount float64
    The number of instances to be purchased.
    InstanceMarketOptions CvmLaunchTemplateVersionInstanceMarketOptionsArgs
    Options related to bidding requests.
    InstanceName string
    Instance name to be displayed.
    InstanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    InternetAccessible CvmLaunchTemplateVersionInternetAccessibleArgs
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    LaunchTemplateVersion float64
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    LaunchTemplateVersionDescription string
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    LoginSettings CvmLaunchTemplateVersionLoginSettingsArgs
    Describes login settings of an instance.
    SecurityGroupIds []string
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    SystemDisk CvmLaunchTemplateVersionSystemDiskArgs
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    TagSpecifications []CvmLaunchTemplateVersionTagSpecificationArgs
    Description of tags associated with resource instances during instance creation.
    UserData string
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    VirtualPrivateCloud CvmLaunchTemplateVersionVirtualPrivateCloudArgs
    Describes information on VPC, including subnets, IP addresses, etc.
    launchTemplateId String
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    placement CvmLaunchTemplateVersionPlacement
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    actionTimer CvmLaunchTemplateVersionActionTimer
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    camRoleName String
    The role name of CAM.
    clientToken String
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    cvmLaunchTemplateVersionId String
    ID of the resource.
    dataDisks List<CvmLaunchTemplateVersionDataDisk>
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    disableApiTermination Boolean
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    disasterRecoverGroupIds List<String>
    Placement group ID. You can only specify one.
    dryRun Boolean
    Whether the request is a dry run only.
    enhancedService CvmLaunchTemplateVersionEnhancedService
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    hostName String
    Hostname of a CVM.
    hpcClusterId String
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    imageId String
    Image ID.
    instanceChargePrepaid CvmLaunchTemplateVersionInstanceChargePrepaid
    Describes the billing method of an instance.
    instanceChargeType String
    The charge type of instance.
    instanceCount Double
    The number of instances to be purchased.
    instanceMarketOptions CvmLaunchTemplateVersionInstanceMarketOptions
    Options related to bidding requests.
    instanceName String
    Instance name to be displayed.
    instanceType String
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible CvmLaunchTemplateVersionInternetAccessible
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    launchTemplateVersion Double
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    launchTemplateVersionDescription String
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    loginSettings CvmLaunchTemplateVersionLoginSettings
    Describes login settings of an instance.
    securityGroupIds List<String>
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    systemDisk CvmLaunchTemplateVersionSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications List<CvmLaunchTemplateVersionTagSpecification>
    Description of tags associated with resource instances during instance creation.
    userData String
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    virtualPrivateCloud CvmLaunchTemplateVersionVirtualPrivateCloud
    Describes information on VPC, including subnets, IP addresses, etc.
    launchTemplateId string
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    placement CvmLaunchTemplateVersionPlacement
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    actionTimer CvmLaunchTemplateVersionActionTimer
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    camRoleName string
    The role name of CAM.
    clientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    cvmLaunchTemplateVersionId string
    ID of the resource.
    dataDisks CvmLaunchTemplateVersionDataDisk[]
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    disableApiTermination boolean
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    disasterRecoverGroupIds string[]
    Placement group ID. You can only specify one.
    dryRun boolean
    Whether the request is a dry run only.
    enhancedService CvmLaunchTemplateVersionEnhancedService
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    hostName string
    Hostname of a CVM.
    hpcClusterId string
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    imageId string
    Image ID.
    instanceChargePrepaid CvmLaunchTemplateVersionInstanceChargePrepaid
    Describes the billing method of an instance.
    instanceChargeType string
    The charge type of instance.
    instanceCount number
    The number of instances to be purchased.
    instanceMarketOptions CvmLaunchTemplateVersionInstanceMarketOptions
    Options related to bidding requests.
    instanceName string
    Instance name to be displayed.
    instanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible CvmLaunchTemplateVersionInternetAccessible
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    launchTemplateVersion number
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    launchTemplateVersionDescription string
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    loginSettings CvmLaunchTemplateVersionLoginSettings
    Describes login settings of an instance.
    securityGroupIds string[]
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    systemDisk CvmLaunchTemplateVersionSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications CvmLaunchTemplateVersionTagSpecification[]
    Description of tags associated with resource instances during instance creation.
    userData string
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    virtualPrivateCloud CvmLaunchTemplateVersionVirtualPrivateCloud
    Describes information on VPC, including subnets, IP addresses, etc.
    launch_template_id str
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    placement CvmLaunchTemplateVersionPlacementArgs
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    action_timer CvmLaunchTemplateVersionActionTimerArgs
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    cam_role_name str
    The role name of CAM.
    client_token str
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    cvm_launch_template_version_id str
    ID of the resource.
    data_disks Sequence[CvmLaunchTemplateVersionDataDiskArgs]
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    disable_api_termination bool
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    disaster_recover_group_ids Sequence[str]
    Placement group ID. You can only specify one.
    dry_run bool
    Whether the request is a dry run only.
    enhanced_service CvmLaunchTemplateVersionEnhancedServiceArgs
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    host_name str
    Hostname of a CVM.
    hpc_cluster_id str
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    image_id str
    Image ID.
    instance_charge_prepaid CvmLaunchTemplateVersionInstanceChargePrepaidArgs
    Describes the billing method of an instance.
    instance_charge_type str
    The charge type of instance.
    instance_count float
    The number of instances to be purchased.
    instance_market_options CvmLaunchTemplateVersionInstanceMarketOptionsArgs
    Options related to bidding requests.
    instance_name str
    Instance name to be displayed.
    instance_type str
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internet_accessible CvmLaunchTemplateVersionInternetAccessibleArgs
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    launch_template_version float
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    launch_template_version_description str
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    login_settings CvmLaunchTemplateVersionLoginSettingsArgs
    Describes login settings of an instance.
    security_group_ids Sequence[str]
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    system_disk CvmLaunchTemplateVersionSystemDiskArgs
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tag_specifications Sequence[CvmLaunchTemplateVersionTagSpecificationArgs]
    Description of tags associated with resource instances during instance creation.
    user_data str
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    virtual_private_cloud CvmLaunchTemplateVersionVirtualPrivateCloudArgs
    Describes information on VPC, including subnets, IP addresses, etc.
    launchTemplateId String
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    placement Property Map
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    actionTimer Property Map
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    camRoleName String
    The role name of CAM.
    clientToken String
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    cvmLaunchTemplateVersionId String
    ID of the resource.
    dataDisks List<Property Map>
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    disableApiTermination Boolean
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    disasterRecoverGroupIds List<String>
    Placement group ID. You can only specify one.
    dryRun Boolean
    Whether the request is a dry run only.
    enhancedService Property Map
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    hostName String
    Hostname of a CVM.
    hpcClusterId String
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    imageId String
    Image ID.
    instanceChargePrepaid Property Map
    Describes the billing method of an instance.
    instanceChargeType String
    The charge type of instance.
    instanceCount Number
    The number of instances to be purchased.
    instanceMarketOptions Property Map
    Options related to bidding requests.
    instanceName String
    Instance name to be displayed.
    instanceType String
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible Property Map
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    launchTemplateVersion Number
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    launchTemplateVersionDescription String
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    loginSettings Property Map
    Describes login settings of an instance.
    securityGroupIds List<String>
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    systemDisk Property Map
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications List<Property Map>
    Description of tags associated with resource instances during instance creation.
    userData String
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    virtualPrivateCloud Property Map
    Describes information on VPC, including subnets, IP addresses, etc.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CvmLaunchTemplateVersion resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CvmLaunchTemplateVersion Resource

    Get an existing CvmLaunchTemplateVersion 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?: CvmLaunchTemplateVersionState, opts?: CustomResourceOptions): CvmLaunchTemplateVersion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action_timer: Optional[CvmLaunchTemplateVersionActionTimerArgs] = None,
            cam_role_name: Optional[str] = None,
            client_token: Optional[str] = None,
            cvm_launch_template_version_id: Optional[str] = None,
            data_disks: Optional[Sequence[CvmLaunchTemplateVersionDataDiskArgs]] = None,
            disable_api_termination: Optional[bool] = None,
            disaster_recover_group_ids: Optional[Sequence[str]] = None,
            dry_run: Optional[bool] = None,
            enhanced_service: Optional[CvmLaunchTemplateVersionEnhancedServiceArgs] = None,
            host_name: Optional[str] = None,
            hpc_cluster_id: Optional[str] = None,
            image_id: Optional[str] = None,
            instance_charge_prepaid: Optional[CvmLaunchTemplateVersionInstanceChargePrepaidArgs] = None,
            instance_charge_type: Optional[str] = None,
            instance_count: Optional[float] = None,
            instance_market_options: Optional[CvmLaunchTemplateVersionInstanceMarketOptionsArgs] = None,
            instance_name: Optional[str] = None,
            instance_type: Optional[str] = None,
            internet_accessible: Optional[CvmLaunchTemplateVersionInternetAccessibleArgs] = None,
            launch_template_id: Optional[str] = None,
            launch_template_version: Optional[float] = None,
            launch_template_version_description: Optional[str] = None,
            login_settings: Optional[CvmLaunchTemplateVersionLoginSettingsArgs] = None,
            placement: Optional[CvmLaunchTemplateVersionPlacementArgs] = None,
            security_group_ids: Optional[Sequence[str]] = None,
            system_disk: Optional[CvmLaunchTemplateVersionSystemDiskArgs] = None,
            tag_specifications: Optional[Sequence[CvmLaunchTemplateVersionTagSpecificationArgs]] = None,
            user_data: Optional[str] = None,
            virtual_private_cloud: Optional[CvmLaunchTemplateVersionVirtualPrivateCloudArgs] = None) -> CvmLaunchTemplateVersion
    func GetCvmLaunchTemplateVersion(ctx *Context, name string, id IDInput, state *CvmLaunchTemplateVersionState, opts ...ResourceOption) (*CvmLaunchTemplateVersion, error)
    public static CvmLaunchTemplateVersion Get(string name, Input<string> id, CvmLaunchTemplateVersionState? state, CustomResourceOptions? opts = null)
    public static CvmLaunchTemplateVersion get(String name, Output<String> id, CvmLaunchTemplateVersionState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CvmLaunchTemplateVersion    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:
    ActionTimer CvmLaunchTemplateVersionActionTimer
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    CamRoleName string
    The role name of CAM.
    ClientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    CvmLaunchTemplateVersionId string
    ID of the resource.
    DataDisks List<CvmLaunchTemplateVersionDataDisk>
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    DisableApiTermination bool
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    DisasterRecoverGroupIds List<string>
    Placement group ID. You can only specify one.
    DryRun bool
    Whether the request is a dry run only.
    EnhancedService CvmLaunchTemplateVersionEnhancedService
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    HostName string
    Hostname of a CVM.
    HpcClusterId string
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    ImageId string
    Image ID.
    InstanceChargePrepaid CvmLaunchTemplateVersionInstanceChargePrepaid
    Describes the billing method of an instance.
    InstanceChargeType string
    The charge type of instance.
    InstanceCount double
    The number of instances to be purchased.
    InstanceMarketOptions CvmLaunchTemplateVersionInstanceMarketOptions
    Options related to bidding requests.
    InstanceName string
    Instance name to be displayed.
    InstanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    InternetAccessible CvmLaunchTemplateVersionInternetAccessible
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    LaunchTemplateId string
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    LaunchTemplateVersion double
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    LaunchTemplateVersionDescription string
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    LoginSettings CvmLaunchTemplateVersionLoginSettings
    Describes login settings of an instance.
    Placement CvmLaunchTemplateVersionPlacement
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    SecurityGroupIds List<string>
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    SystemDisk CvmLaunchTemplateVersionSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    TagSpecifications List<CvmLaunchTemplateVersionTagSpecification>
    Description of tags associated with resource instances during instance creation.
    UserData string
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    VirtualPrivateCloud CvmLaunchTemplateVersionVirtualPrivateCloud
    Describes information on VPC, including subnets, IP addresses, etc.
    ActionTimer CvmLaunchTemplateVersionActionTimerArgs
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    CamRoleName string
    The role name of CAM.
    ClientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    CvmLaunchTemplateVersionId string
    ID of the resource.
    DataDisks []CvmLaunchTemplateVersionDataDiskArgs
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    DisableApiTermination bool
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    DisasterRecoverGroupIds []string
    Placement group ID. You can only specify one.
    DryRun bool
    Whether the request is a dry run only.
    EnhancedService CvmLaunchTemplateVersionEnhancedServiceArgs
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    HostName string
    Hostname of a CVM.
    HpcClusterId string
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    ImageId string
    Image ID.
    InstanceChargePrepaid CvmLaunchTemplateVersionInstanceChargePrepaidArgs
    Describes the billing method of an instance.
    InstanceChargeType string
    The charge type of instance.
    InstanceCount float64
    The number of instances to be purchased.
    InstanceMarketOptions CvmLaunchTemplateVersionInstanceMarketOptionsArgs
    Options related to bidding requests.
    InstanceName string
    Instance name to be displayed.
    InstanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    InternetAccessible CvmLaunchTemplateVersionInternetAccessibleArgs
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    LaunchTemplateId string
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    LaunchTemplateVersion float64
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    LaunchTemplateVersionDescription string
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    LoginSettings CvmLaunchTemplateVersionLoginSettingsArgs
    Describes login settings of an instance.
    Placement CvmLaunchTemplateVersionPlacementArgs
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    SecurityGroupIds []string
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    SystemDisk CvmLaunchTemplateVersionSystemDiskArgs
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    TagSpecifications []CvmLaunchTemplateVersionTagSpecificationArgs
    Description of tags associated with resource instances during instance creation.
    UserData string
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    VirtualPrivateCloud CvmLaunchTemplateVersionVirtualPrivateCloudArgs
    Describes information on VPC, including subnets, IP addresses, etc.
    actionTimer CvmLaunchTemplateVersionActionTimer
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    camRoleName String
    The role name of CAM.
    clientToken String
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    cvmLaunchTemplateVersionId String
    ID of the resource.
    dataDisks List<CvmLaunchTemplateVersionDataDisk>
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    disableApiTermination Boolean
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    disasterRecoverGroupIds List<String>
    Placement group ID. You can only specify one.
    dryRun Boolean
    Whether the request is a dry run only.
    enhancedService CvmLaunchTemplateVersionEnhancedService
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    hostName String
    Hostname of a CVM.
    hpcClusterId String
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    imageId String
    Image ID.
    instanceChargePrepaid CvmLaunchTemplateVersionInstanceChargePrepaid
    Describes the billing method of an instance.
    instanceChargeType String
    The charge type of instance.
    instanceCount Double
    The number of instances to be purchased.
    instanceMarketOptions CvmLaunchTemplateVersionInstanceMarketOptions
    Options related to bidding requests.
    instanceName String
    Instance name to be displayed.
    instanceType String
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible CvmLaunchTemplateVersionInternetAccessible
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    launchTemplateId String
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    launchTemplateVersion Double
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    launchTemplateVersionDescription String
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    loginSettings CvmLaunchTemplateVersionLoginSettings
    Describes login settings of an instance.
    placement CvmLaunchTemplateVersionPlacement
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    securityGroupIds List<String>
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    systemDisk CvmLaunchTemplateVersionSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications List<CvmLaunchTemplateVersionTagSpecification>
    Description of tags associated with resource instances during instance creation.
    userData String
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    virtualPrivateCloud CvmLaunchTemplateVersionVirtualPrivateCloud
    Describes information on VPC, including subnets, IP addresses, etc.
    actionTimer CvmLaunchTemplateVersionActionTimer
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    camRoleName string
    The role name of CAM.
    clientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    cvmLaunchTemplateVersionId string
    ID of the resource.
    dataDisks CvmLaunchTemplateVersionDataDisk[]
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    disableApiTermination boolean
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    disasterRecoverGroupIds string[]
    Placement group ID. You can only specify one.
    dryRun boolean
    Whether the request is a dry run only.
    enhancedService CvmLaunchTemplateVersionEnhancedService
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    hostName string
    Hostname of a CVM.
    hpcClusterId string
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    imageId string
    Image ID.
    instanceChargePrepaid CvmLaunchTemplateVersionInstanceChargePrepaid
    Describes the billing method of an instance.
    instanceChargeType string
    The charge type of instance.
    instanceCount number
    The number of instances to be purchased.
    instanceMarketOptions CvmLaunchTemplateVersionInstanceMarketOptions
    Options related to bidding requests.
    instanceName string
    Instance name to be displayed.
    instanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible CvmLaunchTemplateVersionInternetAccessible
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    launchTemplateId string
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    launchTemplateVersion number
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    launchTemplateVersionDescription string
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    loginSettings CvmLaunchTemplateVersionLoginSettings
    Describes login settings of an instance.
    placement CvmLaunchTemplateVersionPlacement
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    securityGroupIds string[]
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    systemDisk CvmLaunchTemplateVersionSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications CvmLaunchTemplateVersionTagSpecification[]
    Description of tags associated with resource instances during instance creation.
    userData string
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    virtualPrivateCloud CvmLaunchTemplateVersionVirtualPrivateCloud
    Describes information on VPC, including subnets, IP addresses, etc.
    action_timer CvmLaunchTemplateVersionActionTimerArgs
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    cam_role_name str
    The role name of CAM.
    client_token str
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    cvm_launch_template_version_id str
    ID of the resource.
    data_disks Sequence[CvmLaunchTemplateVersionDataDiskArgs]
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    disable_api_termination bool
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    disaster_recover_group_ids Sequence[str]
    Placement group ID. You can only specify one.
    dry_run bool
    Whether the request is a dry run only.
    enhanced_service CvmLaunchTemplateVersionEnhancedServiceArgs
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    host_name str
    Hostname of a CVM.
    hpc_cluster_id str
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    image_id str
    Image ID.
    instance_charge_prepaid CvmLaunchTemplateVersionInstanceChargePrepaidArgs
    Describes the billing method of an instance.
    instance_charge_type str
    The charge type of instance.
    instance_count float
    The number of instances to be purchased.
    instance_market_options CvmLaunchTemplateVersionInstanceMarketOptionsArgs
    Options related to bidding requests.
    instance_name str
    Instance name to be displayed.
    instance_type str
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internet_accessible CvmLaunchTemplateVersionInternetAccessibleArgs
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    launch_template_id str
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    launch_template_version float
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    launch_template_version_description str
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    login_settings CvmLaunchTemplateVersionLoginSettingsArgs
    Describes login settings of an instance.
    placement CvmLaunchTemplateVersionPlacementArgs
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    security_group_ids Sequence[str]
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    system_disk CvmLaunchTemplateVersionSystemDiskArgs
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tag_specifications Sequence[CvmLaunchTemplateVersionTagSpecificationArgs]
    Description of tags associated with resource instances during instance creation.
    user_data str
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    virtual_private_cloud CvmLaunchTemplateVersionVirtualPrivateCloudArgs
    Describes information on VPC, including subnets, IP addresses, etc.
    actionTimer Property Map
    Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
    camRoleName String
    The role name of CAM.
    clientToken String
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    cvmLaunchTemplateVersionId String
    ID of the resource.
    dataDisks List<Property Map>
    The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default.
    disableApiTermination Boolean
    Whether the termination protection is enabled. TRUE: Enable instance protection, which means that this instance can not be deleted by an API action.FALSE: Do not enable the instance protection. Default value: FALSE.
    disasterRecoverGroupIds List<String>
    Placement group ID. You can only specify one.
    dryRun Boolean
    Whether the request is a dry run only.
    enhancedService Property Map
    Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default.
    hostName String
    Hostname of a CVM.
    hpcClusterId String
    HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
    imageId String
    Image ID.
    instanceChargePrepaid Property Map
    Describes the billing method of an instance.
    instanceChargeType String
    The charge type of instance.
    instanceCount Number
    The number of instances to be purchased.
    instanceMarketOptions Property Map
    Options related to bidding requests.
    instanceName String
    Instance name to be displayed.
    instanceType String
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible Property Map
    Describes the accessibility of an instance in the public network, including its network billing method, maximum bandwidth, etc.
    launchTemplateId String
    Instance launch template ID. This parameter is used as a basis for creating new template versions.
    launchTemplateVersion Number
    This parameter, when specified, is used to create instance launch templates. If this parameter is not specified, the default version will be used.
    launchTemplateVersionDescription String
    Description of instance launch template versions. This parameter can contain 2-256 characters.
    loginSettings Property Map
    Describes login settings of an instance.
    placement Property Map
    Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH (for dedicated CVMs).
    securityGroupIds List<String>
    Security groups to which the instance belongs. If this parameter is not specified, the instance will be associated with default security groups.
    systemDisk Property Map
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications List<Property Map>
    Description of tags associated with resource instances during instance creation.
    userData String
    User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB.
    virtualPrivateCloud Property Map
    Describes information on VPC, including subnets, IP addresses, etc.

    Supporting Types

    CvmLaunchTemplateVersionActionTimer, CvmLaunchTemplateVersionActionTimerArgs

    ActionTime string
    Execution time, displayed according to ISO8601 standard, and UTC time is used. The format is YYYY-MM-DDThh:mm:ssZ. For example, 2018-05-29T11:26:40Z, the execution must be at least 5 minutes later than the current time.
    Externals CvmLaunchTemplateVersionActionTimerExternals
    Additional data.
    TimerAction string
    Timer name. Currently TerminateInstances is the only supported value.
    ActionTime string
    Execution time, displayed according to ISO8601 standard, and UTC time is used. The format is YYYY-MM-DDThh:mm:ssZ. For example, 2018-05-29T11:26:40Z, the execution must be at least 5 minutes later than the current time.
    Externals CvmLaunchTemplateVersionActionTimerExternals
    Additional data.
    TimerAction string
    Timer name. Currently TerminateInstances is the only supported value.
    actionTime String
    Execution time, displayed according to ISO8601 standard, and UTC time is used. The format is YYYY-MM-DDThh:mm:ssZ. For example, 2018-05-29T11:26:40Z, the execution must be at least 5 minutes later than the current time.
    externals CvmLaunchTemplateVersionActionTimerExternals
    Additional data.
    timerAction String
    Timer name. Currently TerminateInstances is the only supported value.
    actionTime string
    Execution time, displayed according to ISO8601 standard, and UTC time is used. The format is YYYY-MM-DDThh:mm:ssZ. For example, 2018-05-29T11:26:40Z, the execution must be at least 5 minutes later than the current time.
    externals CvmLaunchTemplateVersionActionTimerExternals
    Additional data.
    timerAction string
    Timer name. Currently TerminateInstances is the only supported value.
    action_time str
    Execution time, displayed according to ISO8601 standard, and UTC time is used. The format is YYYY-MM-DDThh:mm:ssZ. For example, 2018-05-29T11:26:40Z, the execution must be at least 5 minutes later than the current time.
    externals CvmLaunchTemplateVersionActionTimerExternals
    Additional data.
    timer_action str
    Timer name. Currently TerminateInstances is the only supported value.
    actionTime String
    Execution time, displayed according to ISO8601 standard, and UTC time is used. The format is YYYY-MM-DDThh:mm:ssZ. For example, 2018-05-29T11:26:40Z, the execution must be at least 5 minutes later than the current time.
    externals Property Map
    Additional data.
    timerAction String
    Timer name. Currently TerminateInstances is the only supported value.

    CvmLaunchTemplateVersionActionTimerExternals, CvmLaunchTemplateVersionActionTimerExternalsArgs

    ReleaseAddress bool
    Release address.
    StorageBlockAttr CvmLaunchTemplateVersionActionTimerExternalsStorageBlockAttr
    Information on local HDD storage.
    UnsupportNetworks List<string>
    Not supported network.
    ReleaseAddress bool
    Release address.
    StorageBlockAttr CvmLaunchTemplateVersionActionTimerExternalsStorageBlockAttr
    Information on local HDD storage.
    UnsupportNetworks []string
    Not supported network.
    releaseAddress Boolean
    Release address.
    storageBlockAttr CvmLaunchTemplateVersionActionTimerExternalsStorageBlockAttr
    Information on local HDD storage.
    unsupportNetworks List<String>
    Not supported network.
    releaseAddress boolean
    Release address.
    storageBlockAttr CvmLaunchTemplateVersionActionTimerExternalsStorageBlockAttr
    Information on local HDD storage.
    unsupportNetworks string[]
    Not supported network.
    release_address bool
    Release address.
    storage_block_attr CvmLaunchTemplateVersionActionTimerExternalsStorageBlockAttr
    Information on local HDD storage.
    unsupport_networks Sequence[str]
    Not supported network.
    releaseAddress Boolean
    Release address.
    storageBlockAttr Property Map
    Information on local HDD storage.
    unsupportNetworks List<String>
    Not supported network.

    CvmLaunchTemplateVersionActionTimerExternalsStorageBlockAttr, CvmLaunchTemplateVersionActionTimerExternalsStorageBlockAttrArgs

    MaxSize double
    Maximum capacity of local HDD storage.
    MinSize double
    Minimum capacity of local HDD storage.
    Type string
    Local HDD storage type. Value: LOCAL_PRO.
    MaxSize float64
    Maximum capacity of local HDD storage.
    MinSize float64
    Minimum capacity of local HDD storage.
    Type string
    Local HDD storage type. Value: LOCAL_PRO.
    maxSize Double
    Maximum capacity of local HDD storage.
    minSize Double
    Minimum capacity of local HDD storage.
    type String
    Local HDD storage type. Value: LOCAL_PRO.
    maxSize number
    Maximum capacity of local HDD storage.
    minSize number
    Minimum capacity of local HDD storage.
    type string
    Local HDD storage type. Value: LOCAL_PRO.
    max_size float
    Maximum capacity of local HDD storage.
    min_size float
    Minimum capacity of local HDD storage.
    type str
    Local HDD storage type. Value: LOCAL_PRO.
    maxSize Number
    Maximum capacity of local HDD storage.
    minSize Number
    Minimum capacity of local HDD storage.
    type String
    Local HDD storage type. Value: LOCAL_PRO.

    CvmLaunchTemplateVersionDataDisk, CvmLaunchTemplateVersionDataDiskArgs

    DiskSize double
    Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type.
    CdcId string
    ID of the dedicated cluster to which the instance belongs.
    DeleteWithInstance bool
    Whether to terminate the data disk when its CVM is terminated. Default value: true.
    DiskId string
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    DiskType string
    The type of data disk.
    Encrypt bool
    Specifies whether the data disk is encrypted.
    KmsKeyId string
    ID of the custom CMK in the format of UUID or kms-abcd1234.
    SnapshotId string
    Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk. Note: This field may return null, indicating that no valid value is found.
    ThroughputPerformance double
    Cloud disk performance in MB/s.
    DiskSize float64
    Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type.
    CdcId string
    ID of the dedicated cluster to which the instance belongs.
    DeleteWithInstance bool
    Whether to terminate the data disk when its CVM is terminated. Default value: true.
    DiskId string
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    DiskType string
    The type of data disk.
    Encrypt bool
    Specifies whether the data disk is encrypted.
    KmsKeyId string
    ID of the custom CMK in the format of UUID or kms-abcd1234.
    SnapshotId string
    Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk. Note: This field may return null, indicating that no valid value is found.
    ThroughputPerformance float64
    Cloud disk performance in MB/s.
    diskSize Double
    Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type.
    cdcId String
    ID of the dedicated cluster to which the instance belongs.
    deleteWithInstance Boolean
    Whether to terminate the data disk when its CVM is terminated. Default value: true.
    diskId String
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    diskType String
    The type of data disk.
    encrypt Boolean
    Specifies whether the data disk is encrypted.
    kmsKeyId String
    ID of the custom CMK in the format of UUID or kms-abcd1234.
    snapshotId String
    Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk. Note: This field may return null, indicating that no valid value is found.
    throughputPerformance Double
    Cloud disk performance in MB/s.
    diskSize number
    Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type.
    cdcId string
    ID of the dedicated cluster to which the instance belongs.
    deleteWithInstance boolean
    Whether to terminate the data disk when its CVM is terminated. Default value: true.
    diskId string
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    diskType string
    The type of data disk.
    encrypt boolean
    Specifies whether the data disk is encrypted.
    kmsKeyId string
    ID of the custom CMK in the format of UUID or kms-abcd1234.
    snapshotId string
    Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk. Note: This field may return null, indicating that no valid value is found.
    throughputPerformance number
    Cloud disk performance in MB/s.
    disk_size float
    Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type.
    cdc_id str
    ID of the dedicated cluster to which the instance belongs.
    delete_with_instance bool
    Whether to terminate the data disk when its CVM is terminated. Default value: true.
    disk_id str
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    disk_type str
    The type of data disk.
    encrypt bool
    Specifies whether the data disk is encrypted.
    kms_key_id str
    ID of the custom CMK in the format of UUID or kms-abcd1234.
    snapshot_id str
    Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk. Note: This field may return null, indicating that no valid value is found.
    throughput_performance float
    Cloud disk performance in MB/s.
    diskSize Number
    Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type.
    cdcId String
    ID of the dedicated cluster to which the instance belongs.
    deleteWithInstance Boolean
    Whether to terminate the data disk when its CVM is terminated. Default value: true.
    diskId String
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    diskType String
    The type of data disk.
    encrypt Boolean
    Specifies whether the data disk is encrypted.
    kmsKeyId String
    ID of the custom CMK in the format of UUID or kms-abcd1234.
    snapshotId String
    Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk. Note: This field may return null, indicating that no valid value is found.
    throughputPerformance Number
    Cloud disk performance in MB/s.

    CvmLaunchTemplateVersionEnhancedService, CvmLaunchTemplateVersionEnhancedServiceArgs

    AutomationService CvmLaunchTemplateVersionEnhancedServiceAutomationService
    Whether to enable the TAT service. If this parameter is not specified, the TAT service is enabled for public images and disabled for other images by default.
    MonitorService CvmLaunchTemplateVersionEnhancedServiceMonitorService
    Enables cloud monitor service. If this parameter is not specified, the cloud monitor service will be enabled by default.
    SecurityService CvmLaunchTemplateVersionEnhancedServiceSecurityService
    Enables cloud security service. If this parameter is not specified, the cloud security service will be enabled by default.
    AutomationService CvmLaunchTemplateVersionEnhancedServiceAutomationService
    Whether to enable the TAT service. If this parameter is not specified, the TAT service is enabled for public images and disabled for other images by default.
    MonitorService CvmLaunchTemplateVersionEnhancedServiceMonitorService
    Enables cloud monitor service. If this parameter is not specified, the cloud monitor service will be enabled by default.
    SecurityService CvmLaunchTemplateVersionEnhancedServiceSecurityService
    Enables cloud security service. If this parameter is not specified, the cloud security service will be enabled by default.
    automationService CvmLaunchTemplateVersionEnhancedServiceAutomationService
    Whether to enable the TAT service. If this parameter is not specified, the TAT service is enabled for public images and disabled for other images by default.
    monitorService CvmLaunchTemplateVersionEnhancedServiceMonitorService
    Enables cloud monitor service. If this parameter is not specified, the cloud monitor service will be enabled by default.
    securityService CvmLaunchTemplateVersionEnhancedServiceSecurityService
    Enables cloud security service. If this parameter is not specified, the cloud security service will be enabled by default.
    automationService CvmLaunchTemplateVersionEnhancedServiceAutomationService
    Whether to enable the TAT service. If this parameter is not specified, the TAT service is enabled for public images and disabled for other images by default.
    monitorService CvmLaunchTemplateVersionEnhancedServiceMonitorService
    Enables cloud monitor service. If this parameter is not specified, the cloud monitor service will be enabled by default.
    securityService CvmLaunchTemplateVersionEnhancedServiceSecurityService
    Enables cloud security service. If this parameter is not specified, the cloud security service will be enabled by default.
    automation_service CvmLaunchTemplateVersionEnhancedServiceAutomationService
    Whether to enable the TAT service. If this parameter is not specified, the TAT service is enabled for public images and disabled for other images by default.
    monitor_service CvmLaunchTemplateVersionEnhancedServiceMonitorService
    Enables cloud monitor service. If this parameter is not specified, the cloud monitor service will be enabled by default.
    security_service CvmLaunchTemplateVersionEnhancedServiceSecurityService
    Enables cloud security service. If this parameter is not specified, the cloud security service will be enabled by default.
    automationService Property Map
    Whether to enable the TAT service. If this parameter is not specified, the TAT service is enabled for public images and disabled for other images by default.
    monitorService Property Map
    Enables cloud monitor service. If this parameter is not specified, the cloud monitor service will be enabled by default.
    securityService Property Map
    Enables cloud security service. If this parameter is not specified, the cloud security service will be enabled by default.

    CvmLaunchTemplateVersionEnhancedServiceAutomationService, CvmLaunchTemplateVersionEnhancedServiceAutomationServiceArgs

    Enabled bool
    Whether to enable the TAT service.
    Enabled bool
    Whether to enable the TAT service.
    enabled Boolean
    Whether to enable the TAT service.
    enabled boolean
    Whether to enable the TAT service.
    enabled bool
    Whether to enable the TAT service.
    enabled Boolean
    Whether to enable the TAT service.

    CvmLaunchTemplateVersionEnhancedServiceMonitorService, CvmLaunchTemplateVersionEnhancedServiceMonitorServiceArgs

    Enabled bool
    Whether to enable Cloud Monitor.
    Enabled bool
    Whether to enable Cloud Monitor.
    enabled Boolean
    Whether to enable Cloud Monitor.
    enabled boolean
    Whether to enable Cloud Monitor.
    enabled bool
    Whether to enable Cloud Monitor.
    enabled Boolean
    Whether to enable Cloud Monitor.

    CvmLaunchTemplateVersionEnhancedServiceSecurityService, CvmLaunchTemplateVersionEnhancedServiceSecurityServiceArgs

    Enabled bool
    Whether to enable Cloud Security.
    Enabled bool
    Whether to enable Cloud Security.
    enabled Boolean
    Whether to enable Cloud Security.
    enabled boolean
    Whether to enable Cloud Security.
    enabled bool
    Whether to enable Cloud Security.
    enabled Boolean
    Whether to enable Cloud Security.

    CvmLaunchTemplateVersionInstanceChargePrepaid, CvmLaunchTemplateVersionInstanceChargePrepaidArgs

    Period double
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    RenewFlag 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 <br><br>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.
    Period float64
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    RenewFlag 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 <br><br>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.
    period Double
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    renewFlag 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 <br><br>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.
    period number
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    renewFlag 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 <br><br>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.
    period float
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    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 <br><br>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.
    period Number
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    renewFlag 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 <br><br>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.

    CvmLaunchTemplateVersionInstanceMarketOptions, CvmLaunchTemplateVersionInstanceMarketOptionsArgs

    SpotOptions CvmLaunchTemplateVersionInstanceMarketOptionsSpotOptions
    Options related to bidding.
    MarketType string
    Market option type. Currently spot is the only supported value.
    SpotOptions CvmLaunchTemplateVersionInstanceMarketOptionsSpotOptions
    Options related to bidding.
    MarketType string
    Market option type. Currently spot is the only supported value.
    spotOptions CvmLaunchTemplateVersionInstanceMarketOptionsSpotOptions
    Options related to bidding.
    marketType String
    Market option type. Currently spot is the only supported value.
    spotOptions CvmLaunchTemplateVersionInstanceMarketOptionsSpotOptions
    Options related to bidding.
    marketType string
    Market option type. Currently spot is the only supported value.
    spot_options CvmLaunchTemplateVersionInstanceMarketOptionsSpotOptions
    Options related to bidding.
    market_type str
    Market option type. Currently spot is the only supported value.
    spotOptions Property Map
    Options related to bidding.
    marketType String
    Market option type. Currently spot is the only supported value.

    CvmLaunchTemplateVersionInstanceMarketOptionsSpotOptions, CvmLaunchTemplateVersionInstanceMarketOptionsSpotOptionsArgs

    MaxPrice string
    Bidding price.
    SpotInstanceType string
    Bidding request type. Currently only one-time is supported.
    MaxPrice string
    Bidding price.
    SpotInstanceType string
    Bidding request type. Currently only one-time is supported.
    maxPrice String
    Bidding price.
    spotInstanceType String
    Bidding request type. Currently only one-time is supported.
    maxPrice string
    Bidding price.
    spotInstanceType string
    Bidding request type. Currently only one-time is supported.
    max_price str
    Bidding price.
    spot_instance_type str
    Bidding request type. Currently only one-time is supported.
    maxPrice String
    Bidding price.
    spotInstanceType String
    Bidding request type. Currently only one-time is supported.

    CvmLaunchTemplateVersionInternetAccessible, CvmLaunchTemplateVersionInternetAccessibleArgs

    BandwidthPackageId string
    Bandwidth package ID.
    InternetChargeType string
    Network connection billing plan.
    InternetMaxBandwidthOut double
    The maximum outbound bandwidth of the public network, in Mbps. The default value is 0 Mbps.
    PublicIpAssigned bool
    Whether to assign a public IP.
    BandwidthPackageId string
    Bandwidth package ID.
    InternetChargeType string
    Network connection billing plan.
    InternetMaxBandwidthOut float64
    The maximum outbound bandwidth of the public network, in Mbps. The default value is 0 Mbps.
    PublicIpAssigned bool
    Whether to assign a public IP.
    bandwidthPackageId String
    Bandwidth package ID.
    internetChargeType String
    Network connection billing plan.
    internetMaxBandwidthOut Double
    The maximum outbound bandwidth of the public network, in Mbps. The default value is 0 Mbps.
    publicIpAssigned Boolean
    Whether to assign a public IP.
    bandwidthPackageId string
    Bandwidth package ID.
    internetChargeType string
    Network connection billing plan.
    internetMaxBandwidthOut number
    The maximum outbound bandwidth of the public network, in Mbps. The default value is 0 Mbps.
    publicIpAssigned boolean
    Whether to assign a public IP.
    bandwidth_package_id str
    Bandwidth package ID.
    internet_charge_type str
    Network connection billing plan.
    internet_max_bandwidth_out float
    The maximum outbound bandwidth of the public network, in Mbps. The default value is 0 Mbps.
    public_ip_assigned bool
    Whether to assign a public IP.
    bandwidthPackageId String
    Bandwidth package ID.
    internetChargeType String
    Network connection billing plan.
    internetMaxBandwidthOut Number
    The maximum outbound bandwidth of the public network, in Mbps. The default value is 0 Mbps.
    publicIpAssigned Boolean
    Whether to assign a public IP.

    CvmLaunchTemplateVersionLoginSettings, CvmLaunchTemplateVersionLoginSettingsArgs

    KeepImageLogin string
    Whether to keep the original settings of an image.
    KeyIds List<string>
    List of key IDs. After an instance is associated with a key, you can access the instance with the private key in the key pair.
    Password string
    Login password of the instance.
    KeepImageLogin string
    Whether to keep the original settings of an image.
    KeyIds []string
    List of key IDs. After an instance is associated with a key, you can access the instance with the private key in the key pair.
    Password string
    Login password of the instance.
    keepImageLogin String
    Whether to keep the original settings of an image.
    keyIds List<String>
    List of key IDs. After an instance is associated with a key, you can access the instance with the private key in the key pair.
    password String
    Login password of the instance.
    keepImageLogin string
    Whether to keep the original settings of an image.
    keyIds string[]
    List of key IDs. After an instance is associated with a key, you can access the instance with the private key in the key pair.
    password string
    Login password of the instance.
    keep_image_login str
    Whether to keep the original settings of an image.
    key_ids Sequence[str]
    List of key IDs. After an instance is associated with a key, you can access the instance with the private key in the key pair.
    password str
    Login password of the instance.
    keepImageLogin String
    Whether to keep the original settings of an image.
    keyIds List<String>
    List of key IDs. After an instance is associated with a key, you can access the instance with the private key in the key pair.
    password String
    Login password of the instance.

    CvmLaunchTemplateVersionPlacement, CvmLaunchTemplateVersionPlacementArgs

    Zone string
    ID of the availability zone where the instance resides. You can call the DescribeZones API and obtain the ID in the returned Zone field.
    HostIds List<string>
    ID list of CDHs from which the instance can be created. If you have purchased CDHs and specify this parameter, the instances you purchase will be randomly deployed on the CDHs.
    HostIps List<string>
    IPs of the hosts to create CVMs.
    ProjectId double
    ID of the project to which the instance belongs. This parameter can be obtained from the projectId returned by DescribeProject. If this is left empty, the default project is used.
    Zone string
    ID of the availability zone where the instance resides. You can call the DescribeZones API and obtain the ID in the returned Zone field.
    HostIds []string
    ID list of CDHs from which the instance can be created. If you have purchased CDHs and specify this parameter, the instances you purchase will be randomly deployed on the CDHs.
    HostIps []string
    IPs of the hosts to create CVMs.
    ProjectId float64
    ID of the project to which the instance belongs. This parameter can be obtained from the projectId returned by DescribeProject. If this is left empty, the default project is used.
    zone String
    ID of the availability zone where the instance resides. You can call the DescribeZones API and obtain the ID in the returned Zone field.
    hostIds List<String>
    ID list of CDHs from which the instance can be created. If you have purchased CDHs and specify this parameter, the instances you purchase will be randomly deployed on the CDHs.
    hostIps List<String>
    IPs of the hosts to create CVMs.
    projectId Double
    ID of the project to which the instance belongs. This parameter can be obtained from the projectId returned by DescribeProject. If this is left empty, the default project is used.
    zone string
    ID of the availability zone where the instance resides. You can call the DescribeZones API and obtain the ID in the returned Zone field.
    hostIds string[]
    ID list of CDHs from which the instance can be created. If you have purchased CDHs and specify this parameter, the instances you purchase will be randomly deployed on the CDHs.
    hostIps string[]
    IPs of the hosts to create CVMs.
    projectId number
    ID of the project to which the instance belongs. This parameter can be obtained from the projectId returned by DescribeProject. If this is left empty, the default project is used.
    zone str
    ID of the availability zone where the instance resides. You can call the DescribeZones API and obtain the ID in the returned Zone field.
    host_ids Sequence[str]
    ID list of CDHs from which the instance can be created. If you have purchased CDHs and specify this parameter, the instances you purchase will be randomly deployed on the CDHs.
    host_ips Sequence[str]
    IPs of the hosts to create CVMs.
    project_id float
    ID of the project to which the instance belongs. This parameter can be obtained from the projectId returned by DescribeProject. If this is left empty, the default project is used.
    zone String
    ID of the availability zone where the instance resides. You can call the DescribeZones API and obtain the ID in the returned Zone field.
    hostIds List<String>
    ID list of CDHs from which the instance can be created. If you have purchased CDHs and specify this parameter, the instances you purchase will be randomly deployed on the CDHs.
    hostIps List<String>
    IPs of the hosts to create CVMs.
    projectId Number
    ID of the project to which the instance belongs. This parameter can be obtained from the projectId returned by DescribeProject. If this is left empty, the default project is used.

    CvmLaunchTemplateVersionSystemDisk, CvmLaunchTemplateVersionSystemDiskArgs

    CdcId string
    ID of the dedicated cluster to which the instance belongs.
    DiskId string
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    DiskSize double
    System disk size; unit: GB; default value: 50 GB.
    DiskType string
    The type of system disk. Default value: the type of hard disk currently in stock.
    CdcId string
    ID of the dedicated cluster to which the instance belongs.
    DiskId string
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    DiskSize float64
    System disk size; unit: GB; default value: 50 GB.
    DiskType string
    The type of system disk. Default value: the type of hard disk currently in stock.
    cdcId String
    ID of the dedicated cluster to which the instance belongs.
    diskId String
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    diskSize Double
    System disk size; unit: GB; default value: 50 GB.
    diskType String
    The type of system disk. Default value: the type of hard disk currently in stock.
    cdcId string
    ID of the dedicated cluster to which the instance belongs.
    diskId string
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    diskSize number
    System disk size; unit: GB; default value: 50 GB.
    diskType string
    The type of system disk. Default value: the type of hard disk currently in stock.
    cdc_id str
    ID of the dedicated cluster to which the instance belongs.
    disk_id str
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    disk_size float
    System disk size; unit: GB; default value: 50 GB.
    disk_type str
    The type of system disk. Default value: the type of hard disk currently in stock.
    cdcId String
    ID of the dedicated cluster to which the instance belongs.
    diskId String
    System disk ID. System disks whose type is LOCAL_BASIC or LOCAL_SSD do not have an ID and do not support this parameter. It is only used as a response parameter for APIs such as DescribeInstances, and cannot be used as a request parameter for APIs such as RunInstances.
    diskSize Number
    System disk size; unit: GB; default value: 50 GB.
    diskType String
    The type of system disk. Default value: the type of hard disk currently in stock.

    CvmLaunchTemplateVersionTagSpecification, CvmLaunchTemplateVersionTagSpecificationArgs

    ResourceType string
    The type of resource that the tag is bound to.
    Tags List<CvmLaunchTemplateVersionTagSpecificationTag>
    List of tags.
    ResourceType string
    The type of resource that the tag is bound to.
    Tags []CvmLaunchTemplateVersionTagSpecificationTag
    List of tags.
    resourceType String
    The type of resource that the tag is bound to.
    tags List<CvmLaunchTemplateVersionTagSpecificationTag>
    List of tags.
    resourceType string
    The type of resource that the tag is bound to.
    tags CvmLaunchTemplateVersionTagSpecificationTag[]
    List of tags.
    resource_type str
    The type of resource that the tag is bound to.
    tags Sequence[CvmLaunchTemplateVersionTagSpecificationTag]
    List of tags.
    resourceType String
    The type of resource that the tag is bound to.
    tags List<Property Map>
    List of tags.

    CvmLaunchTemplateVersionTagSpecificationTag, CvmLaunchTemplateVersionTagSpecificationTagArgs

    Key string
    Tag key.
    Value string
    Tag value.
    Key string
    Tag key.
    Value string
    Tag value.
    key String
    Tag key.
    value String
    Tag value.
    key string
    Tag key.
    value string
    Tag value.
    key str
    Tag key.
    value str
    Tag value.
    key String
    Tag key.
    value String
    Tag value.

    CvmLaunchTemplateVersionVirtualPrivateCloud, CvmLaunchTemplateVersionVirtualPrivateCloudArgs

    SubnetId string
    VPC subnet ID in the format subnet-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    VpcId string
    VPC ID in the format of vpc-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    AsVpcGateway bool
    Whether to use a CVM instance as a public gateway. The public gateway is only available when the instance has a public IP and resides in a VPC.
    Ipv6AddressCount double
    Number of IPv6 addresses randomly generated for the ENI.
    PrivateIpAddresses List<string>
    Array of VPC subnet IPs. You can use this parameter when creating instances or modifying VPC attributes of instances. Currently you can specify multiple IPs in one subnet only when creating multiple instances at the same time.
    SubnetId string
    VPC subnet ID in the format subnet-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    VpcId string
    VPC ID in the format of vpc-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    AsVpcGateway bool
    Whether to use a CVM instance as a public gateway. The public gateway is only available when the instance has a public IP and resides in a VPC.
    Ipv6AddressCount float64
    Number of IPv6 addresses randomly generated for the ENI.
    PrivateIpAddresses []string
    Array of VPC subnet IPs. You can use this parameter when creating instances or modifying VPC attributes of instances. Currently you can specify multiple IPs in one subnet only when creating multiple instances at the same time.
    subnetId String
    VPC subnet ID in the format subnet-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    vpcId String
    VPC ID in the format of vpc-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    asVpcGateway Boolean
    Whether to use a CVM instance as a public gateway. The public gateway is only available when the instance has a public IP and resides in a VPC.
    ipv6AddressCount Double
    Number of IPv6 addresses randomly generated for the ENI.
    privateIpAddresses List<String>
    Array of VPC subnet IPs. You can use this parameter when creating instances or modifying VPC attributes of instances. Currently you can specify multiple IPs in one subnet only when creating multiple instances at the same time.
    subnetId string
    VPC subnet ID in the format subnet-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    vpcId string
    VPC ID in the format of vpc-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    asVpcGateway boolean
    Whether to use a CVM instance as a public gateway. The public gateway is only available when the instance has a public IP and resides in a VPC.
    ipv6AddressCount number
    Number of IPv6 addresses randomly generated for the ENI.
    privateIpAddresses string[]
    Array of VPC subnet IPs. You can use this parameter when creating instances or modifying VPC attributes of instances. Currently you can specify multiple IPs in one subnet only when creating multiple instances at the same time.
    subnet_id str
    VPC subnet ID in the format subnet-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    vpc_id str
    VPC ID in the format of vpc-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    as_vpc_gateway bool
    Whether to use a CVM instance as a public gateway. The public gateway is only available when the instance has a public IP and resides in a VPC.
    ipv6_address_count float
    Number of IPv6 addresses randomly generated for the ENI.
    private_ip_addresses Sequence[str]
    Array of VPC subnet IPs. You can use this parameter when creating instances or modifying VPC attributes of instances. Currently you can specify multiple IPs in one subnet only when creating multiple instances at the same time.
    subnetId String
    VPC subnet ID in the format subnet-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    vpcId String
    VPC ID in the format of vpc-xxx, if you specify DEFAULT for both VpcId and SubnetId when creating an instance, the default VPC will be used.
    asVpcGateway Boolean
    Whether to use a CVM instance as a public gateway. The public gateway is only available when the instance has a public IP and resides in a VPC.
    ipv6AddressCount Number
    Number of IPv6 addresses randomly generated for the ENI.
    privateIpAddresses List<String>
    Array of VPC subnet IPs. You can use this parameter when creating instances or modifying VPC attributes of instances. Currently you can specify multiple IPs in one subnet only when creating multiple instances at the same time.

    Import

    cvm launch_template_version can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cvmLaunchTemplateVersion:CvmLaunchTemplateVersion launch_template_version ${launch_template_id}#${launch_template_version}
    

    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