1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. ecs
  5. LaunchTemplateVersion
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus

    实例启动模板版本是一系列实例配置信息的集合,用于快速购买实例。在模板中,您可以存储除密码外的全部配置信息,包括密钥对、计算规格、云盘、网络等,如果配置信息均有效,便可以一键成功购买实例,无需进行重复配置。

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      ecsLaunchTemplateVersionDemo:
        type: bytepluscc:ecs:LaunchTemplateVersion
        name: EcsLaunchTemplateVersionDemo
        properties:
          deploymentSetGroupNumber: 0
          deploymentSetId: dps-ydzc5xxxxxx5b9vu
          description: ecs_launch_template_version test
          eip:
            bandwidth: 1
            bandwidth_package_id: bwp-1a1fvbxxxxxx8nvepl9jzfmf
            billing_type: 0
            isp: BGP
            release_with_instance: true
            security_protection_instance_id: 0
            security_protection_types:
              - AntiDDoS_Enhanced
          hostName: myname
          imageId: image-yzpvmxxxxxxgqcsdamq
          imageName: Ubuntu 24.04 with LLM Knowledge Base 64 bit
          instanceChargeType: PostPaid
          instanceName: test-version
          instanceTypeId: ecs.g4i.large
          keepImageCredential: false
          keyPairName: MigrationKey-job-yecd7dromy38dfaxgxt8
          launchTemplateId: lt-yefdzjlbxxxxxxylmkj
          networkInterfaces:
            - security_group_ids:
                - sg-1jolcljxxxxxx1n7ampe70vpx
              subnet_id: subnet-btd4nxxxxxxb2tl1jdsb
          projectName: default
          scheduledInstance:
            scheduled_instance_description: test
            scheduled_instance_name: test-template
          securityEnhancementStrategy: Active
          spotStrategy: NoSpot
          suffixIndex: 1
          tags:
            - key: env
              value: test
          uniqueSuffix: false
          userData: ZWNobyBoZWxsbyBlY3Mh
          versionDescription: test
          volumes:
            - delete_with_instance: true
              extra_performance_iops: 0
              extra_performance_throughput_mb: 0
              extra_performance_type_id: ""
              size: 50
              snapshot_id: ""
              volume_type: ESSD_PL0
          vpcId: vpc-1jolcldhxxxxxxmq5q7yms
          zoneId: cn-beijing-a
    

    Create LaunchTemplateVersion Resource

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

    Constructor syntax

    new LaunchTemplateVersion(name: string, args?: LaunchTemplateVersionArgs, opts?: CustomResourceOptions);
    @overload
    def LaunchTemplateVersion(resource_name: str,
                              args: Optional[LaunchTemplateVersionArgs] = None,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def LaunchTemplateVersion(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              deployment_set_group_number: Optional[int] = None,
                              deployment_set_id: Optional[str] = None,
                              description: Optional[str] = None,
                              eip: Optional[LaunchTemplateVersionEipArgs] = None,
                              host_name: Optional[str] = None,
                              hpc_cluster_id: Optional[str] = None,
                              image_id: Optional[str] = None,
                              image_name: Optional[str] = None,
                              instance_charge_type: Optional[str] = None,
                              instance_name: Optional[str] = None,
                              instance_type_id: Optional[str] = None,
                              keep_image_credential: Optional[bool] = None,
                              key_pair_name: Optional[str] = None,
                              launch_template_id: Optional[str] = None,
                              network_interfaces: Optional[Sequence[LaunchTemplateVersionNetworkInterfaceArgs]] = None,
                              project_name: Optional[str] = None,
                              scheduled_instance: Optional[LaunchTemplateVersionScheduledInstanceArgs] = None,
                              security_enhancement_strategy: Optional[str] = None,
                              spot_price_limit: Optional[float] = None,
                              spot_strategy: Optional[str] = None,
                              suffix_index: Optional[int] = None,
                              tags: Optional[Sequence[LaunchTemplateVersionTagArgs]] = None,
                              unique_suffix: Optional[bool] = None,
                              user_data: Optional[str] = None,
                              version_description: Optional[str] = None,
                              volumes: Optional[Sequence[LaunchTemplateVersionVolumeArgs]] = None,
                              vpc_id: Optional[str] = None,
                              zone_id: Optional[str] = None)
    func NewLaunchTemplateVersion(ctx *Context, name string, args *LaunchTemplateVersionArgs, opts ...ResourceOption) (*LaunchTemplateVersion, error)
    public LaunchTemplateVersion(string name, LaunchTemplateVersionArgs? args = null, CustomResourceOptions? opts = null)
    public LaunchTemplateVersion(String name, LaunchTemplateVersionArgs args)
    public LaunchTemplateVersion(String name, LaunchTemplateVersionArgs args, CustomResourceOptions options)
    
    type: bytepluscc:ecs:LaunchTemplateVersion
    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 LaunchTemplateVersionArgs
    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 LaunchTemplateVersionArgs
    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 LaunchTemplateVersionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LaunchTemplateVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LaunchTemplateVersionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var launchTemplateVersionResource = new Bytepluscc.Ecs.LaunchTemplateVersion("launchTemplateVersionResource", new()
    {
        DeploymentSetGroupNumber = 0,
        DeploymentSetId = "string",
        Description = "string",
        Eip = new Bytepluscc.Ecs.Inputs.LaunchTemplateVersionEipArgs
        {
            Bandwidth = 0,
            BandwidthPackageId = "string",
            BillingType = 0,
            Isp = "string",
            ReleaseWithInstance = false,
            SecurityProtectionInstanceId = 0,
            SecurityProtectionTypes = new[]
            {
                "string",
            },
        },
        HostName = "string",
        HpcClusterId = "string",
        ImageId = "string",
        ImageName = "string",
        InstanceChargeType = "string",
        InstanceName = "string",
        InstanceTypeId = "string",
        KeepImageCredential = false,
        KeyPairName = "string",
        LaunchTemplateId = "string",
        NetworkInterfaces = new[]
        {
            new Bytepluscc.Ecs.Inputs.LaunchTemplateVersionNetworkInterfaceArgs
            {
                SecurityGroupIds = new[]
                {
                    "string",
                },
                SubnetId = "string",
            },
        },
        ProjectName = "string",
        ScheduledInstance = new Bytepluscc.Ecs.Inputs.LaunchTemplateVersionScheduledInstanceArgs
        {
            ScheduledInstanceDescription = "string",
            ScheduledInstanceName = "string",
        },
        SecurityEnhancementStrategy = "string",
        SpotPriceLimit = 0,
        SpotStrategy = "string",
        SuffixIndex = 0,
        Tags = new[]
        {
            new Bytepluscc.Ecs.Inputs.LaunchTemplateVersionTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        UniqueSuffix = false,
        UserData = "string",
        VersionDescription = "string",
        Volumes = new[]
        {
            new Bytepluscc.Ecs.Inputs.LaunchTemplateVersionVolumeArgs
            {
                DeleteWithInstance = false,
                ExtraPerformanceIops = 0,
                ExtraPerformanceThroughputMb = 0,
                ExtraPerformanceTypeId = "string",
                Size = 0,
                SnapshotId = "string",
                VolumeType = "string",
            },
        },
        VpcId = "string",
        ZoneId = "string",
    });
    
    example, err := ecs.NewLaunchTemplateVersion(ctx, "launchTemplateVersionResource", &ecs.LaunchTemplateVersionArgs{
    	DeploymentSetGroupNumber: pulumi.Int(0),
    	DeploymentSetId:          pulumi.String("string"),
    	Description:              pulumi.String("string"),
    	Eip: &ecs.LaunchTemplateVersionEipArgs{
    		Bandwidth:                    pulumi.Int(0),
    		BandwidthPackageId:           pulumi.String("string"),
    		BillingType:                  pulumi.Int(0),
    		Isp:                          pulumi.String("string"),
    		ReleaseWithInstance:          pulumi.Bool(false),
    		SecurityProtectionInstanceId: pulumi.Int(0),
    		SecurityProtectionTypes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	HostName:            pulumi.String("string"),
    	HpcClusterId:        pulumi.String("string"),
    	ImageId:             pulumi.String("string"),
    	ImageName:           pulumi.String("string"),
    	InstanceChargeType:  pulumi.String("string"),
    	InstanceName:        pulumi.String("string"),
    	InstanceTypeId:      pulumi.String("string"),
    	KeepImageCredential: pulumi.Bool(false),
    	KeyPairName:         pulumi.String("string"),
    	LaunchTemplateId:    pulumi.String("string"),
    	NetworkInterfaces: ecs.LaunchTemplateVersionNetworkInterfaceArray{
    		&ecs.LaunchTemplateVersionNetworkInterfaceArgs{
    			SecurityGroupIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			SubnetId: pulumi.String("string"),
    		},
    	},
    	ProjectName: pulumi.String("string"),
    	ScheduledInstance: &ecs.LaunchTemplateVersionScheduledInstanceArgs{
    		ScheduledInstanceDescription: pulumi.String("string"),
    		ScheduledInstanceName:        pulumi.String("string"),
    	},
    	SecurityEnhancementStrategy: pulumi.String("string"),
    	SpotPriceLimit:              pulumi.Float64(0),
    	SpotStrategy:                pulumi.String("string"),
    	SuffixIndex:                 pulumi.Int(0),
    	Tags: ecs.LaunchTemplateVersionTagArray{
    		&ecs.LaunchTemplateVersionTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	UniqueSuffix:       pulumi.Bool(false),
    	UserData:           pulumi.String("string"),
    	VersionDescription: pulumi.String("string"),
    	Volumes: ecs.LaunchTemplateVersionVolumeArray{
    		&ecs.LaunchTemplateVersionVolumeArgs{
    			DeleteWithInstance:           pulumi.Bool(false),
    			ExtraPerformanceIops:         pulumi.Int(0),
    			ExtraPerformanceThroughputMb: pulumi.Int(0),
    			ExtraPerformanceTypeId:       pulumi.String("string"),
    			Size:                         pulumi.Int(0),
    			SnapshotId:                   pulumi.String("string"),
    			VolumeType:                   pulumi.String("string"),
    		},
    	},
    	VpcId:  pulumi.String("string"),
    	ZoneId: pulumi.String("string"),
    })
    
    var launchTemplateVersionResource = new LaunchTemplateVersion("launchTemplateVersionResource", LaunchTemplateVersionArgs.builder()
        .deploymentSetGroupNumber(0)
        .deploymentSetId("string")
        .description("string")
        .eip(LaunchTemplateVersionEipArgs.builder()
            .bandwidth(0)
            .bandwidthPackageId("string")
            .billingType(0)
            .isp("string")
            .releaseWithInstance(false)
            .securityProtectionInstanceId(0)
            .securityProtectionTypes("string")
            .build())
        .hostName("string")
        .hpcClusterId("string")
        .imageId("string")
        .imageName("string")
        .instanceChargeType("string")
        .instanceName("string")
        .instanceTypeId("string")
        .keepImageCredential(false)
        .keyPairName("string")
        .launchTemplateId("string")
        .networkInterfaces(LaunchTemplateVersionNetworkInterfaceArgs.builder()
            .securityGroupIds("string")
            .subnetId("string")
            .build())
        .projectName("string")
        .scheduledInstance(LaunchTemplateVersionScheduledInstanceArgs.builder()
            .scheduledInstanceDescription("string")
            .scheduledInstanceName("string")
            .build())
        .securityEnhancementStrategy("string")
        .spotPriceLimit(0.0)
        .spotStrategy("string")
        .suffixIndex(0)
        .tags(LaunchTemplateVersionTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .uniqueSuffix(false)
        .userData("string")
        .versionDescription("string")
        .volumes(LaunchTemplateVersionVolumeArgs.builder()
            .deleteWithInstance(false)
            .extraPerformanceIops(0)
            .extraPerformanceThroughputMb(0)
            .extraPerformanceTypeId("string")
            .size(0)
            .snapshotId("string")
            .volumeType("string")
            .build())
        .vpcId("string")
        .zoneId("string")
        .build());
    
    launch_template_version_resource = bytepluscc.ecs.LaunchTemplateVersion("launchTemplateVersionResource",
        deployment_set_group_number=0,
        deployment_set_id="string",
        description="string",
        eip={
            "bandwidth": 0,
            "bandwidth_package_id": "string",
            "billing_type": 0,
            "isp": "string",
            "release_with_instance": False,
            "security_protection_instance_id": 0,
            "security_protection_types": ["string"],
        },
        host_name="string",
        hpc_cluster_id="string",
        image_id="string",
        image_name="string",
        instance_charge_type="string",
        instance_name="string",
        instance_type_id="string",
        keep_image_credential=False,
        key_pair_name="string",
        launch_template_id="string",
        network_interfaces=[{
            "security_group_ids": ["string"],
            "subnet_id": "string",
        }],
        project_name="string",
        scheduled_instance={
            "scheduled_instance_description": "string",
            "scheduled_instance_name": "string",
        },
        security_enhancement_strategy="string",
        spot_price_limit=0,
        spot_strategy="string",
        suffix_index=0,
        tags=[{
            "key": "string",
            "value": "string",
        }],
        unique_suffix=False,
        user_data="string",
        version_description="string",
        volumes=[{
            "delete_with_instance": False,
            "extra_performance_iops": 0,
            "extra_performance_throughput_mb": 0,
            "extra_performance_type_id": "string",
            "size": 0,
            "snapshot_id": "string",
            "volume_type": "string",
        }],
        vpc_id="string",
        zone_id="string")
    
    const launchTemplateVersionResource = new bytepluscc.ecs.LaunchTemplateVersion("launchTemplateVersionResource", {
        deploymentSetGroupNumber: 0,
        deploymentSetId: "string",
        description: "string",
        eip: {
            bandwidth: 0,
            bandwidthPackageId: "string",
            billingType: 0,
            isp: "string",
            releaseWithInstance: false,
            securityProtectionInstanceId: 0,
            securityProtectionTypes: ["string"],
        },
        hostName: "string",
        hpcClusterId: "string",
        imageId: "string",
        imageName: "string",
        instanceChargeType: "string",
        instanceName: "string",
        instanceTypeId: "string",
        keepImageCredential: false,
        keyPairName: "string",
        launchTemplateId: "string",
        networkInterfaces: [{
            securityGroupIds: ["string"],
            subnetId: "string",
        }],
        projectName: "string",
        scheduledInstance: {
            scheduledInstanceDescription: "string",
            scheduledInstanceName: "string",
        },
        securityEnhancementStrategy: "string",
        spotPriceLimit: 0,
        spotStrategy: "string",
        suffixIndex: 0,
        tags: [{
            key: "string",
            value: "string",
        }],
        uniqueSuffix: false,
        userData: "string",
        versionDescription: "string",
        volumes: [{
            deleteWithInstance: false,
            extraPerformanceIops: 0,
            extraPerformanceThroughputMb: 0,
            extraPerformanceTypeId: "string",
            size: 0,
            snapshotId: "string",
            volumeType: "string",
        }],
        vpcId: "string",
        zoneId: "string",
    });
    
    type: bytepluscc:ecs:LaunchTemplateVersion
    properties:
        deploymentSetGroupNumber: 0
        deploymentSetId: string
        description: string
        eip:
            bandwidth: 0
            bandwidthPackageId: string
            billingType: 0
            isp: string
            releaseWithInstance: false
            securityProtectionInstanceId: 0
            securityProtectionTypes:
                - string
        hostName: string
        hpcClusterId: string
        imageId: string
        imageName: string
        instanceChargeType: string
        instanceName: string
        instanceTypeId: string
        keepImageCredential: false
        keyPairName: string
        launchTemplateId: string
        networkInterfaces:
            - securityGroupIds:
                - string
              subnetId: string
        projectName: string
        scheduledInstance:
            scheduledInstanceDescription: string
            scheduledInstanceName: string
        securityEnhancementStrategy: string
        spotPriceLimit: 0
        spotStrategy: string
        suffixIndex: 0
        tags:
            - key: string
              value: string
        uniqueSuffix: false
        userData: string
        versionDescription: string
        volumes:
            - deleteWithInstance: false
              extraPerformanceIops: 0
              extraPerformanceThroughputMb: 0
              extraPerformanceTypeId: string
              size: 0
              snapshotId: string
              volumeType: string
        vpcId: string
        zoneId: string
    

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

    DeploymentSetGroupNumber int
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    DeploymentSetId string
    实例需要加入的部署集ID。
    Description string
    实例的描述。
    Eip Byteplus.LaunchTemplateVersionEip
    实例绑定的公网IP信息。
    HostName string
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    HpcClusterId string
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    ImageId string
    镜像ID。
    ImageName string
    镜像名称。
    InstanceChargeType string
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    InstanceName string
    实例的名称。
    InstanceTypeId string
    实例的规格。
    KeepImageCredential bool
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    KeyPairName string
    实例绑定的密钥对。
    LaunchTemplateId string
    实例启动模板 ID。
    NetworkInterfaces List<Byteplus.LaunchTemplateVersionNetworkInterface>
    ProjectName string
    实例所属项目。
    ScheduledInstance Byteplus.LaunchTemplateVersionScheduledInstance
    弹性预约单信息。
    SecurityEnhancementStrategy string
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    SpotPriceLimit double
    抢占式实例的每小时最高价格。
    SpotStrategy string
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    SuffixIndex int
    有序后缀的起始序号。
    Tags List<Byteplus.LaunchTemplateVersionTag>
    UniqueSuffix bool
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    UserData string
    实例的自定义数据。
    VersionDescription string
    模版版本描述。
    Volumes List<Byteplus.LaunchTemplateVersionVolume>
    VpcId string
    私有网络ID。
    ZoneId string
    实例所属可用区ID。
    DeploymentSetGroupNumber int
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    DeploymentSetId string
    实例需要加入的部署集ID。
    Description string
    实例的描述。
    Eip LaunchTemplateVersionEipArgs
    实例绑定的公网IP信息。
    HostName string
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    HpcClusterId string
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    ImageId string
    镜像ID。
    ImageName string
    镜像名称。
    InstanceChargeType string
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    InstanceName string
    实例的名称。
    InstanceTypeId string
    实例的规格。
    KeepImageCredential bool
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    KeyPairName string
    实例绑定的密钥对。
    LaunchTemplateId string
    实例启动模板 ID。
    NetworkInterfaces []LaunchTemplateVersionNetworkInterfaceArgs
    ProjectName string
    实例所属项目。
    ScheduledInstance LaunchTemplateVersionScheduledInstanceArgs
    弹性预约单信息。
    SecurityEnhancementStrategy string
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    SpotPriceLimit float64
    抢占式实例的每小时最高价格。
    SpotStrategy string
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    SuffixIndex int
    有序后缀的起始序号。
    Tags []LaunchTemplateVersionTagArgs
    UniqueSuffix bool
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    UserData string
    实例的自定义数据。
    VersionDescription string
    模版版本描述。
    Volumes []LaunchTemplateVersionVolumeArgs
    VpcId string
    私有网络ID。
    ZoneId string
    实例所属可用区ID。
    deploymentSetGroupNumber Integer
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    deploymentSetId String
    实例需要加入的部署集ID。
    description String
    实例的描述。
    eip LaunchTemplateVersionEip
    实例绑定的公网IP信息。
    hostName String
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    hpcClusterId String
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    imageId String
    镜像ID。
    imageName String
    镜像名称。
    instanceChargeType String
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    instanceName String
    实例的名称。
    instanceTypeId String
    实例的规格。
    keepImageCredential Boolean
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    keyPairName String
    实例绑定的密钥对。
    launchTemplateId String
    实例启动模板 ID。
    networkInterfaces List<LaunchTemplateVersionNetworkInterface>
    projectName String
    实例所属项目。
    scheduledInstance LaunchTemplateVersionScheduledInstance
    弹性预约单信息。
    securityEnhancementStrategy String
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    spotPriceLimit Double
    抢占式实例的每小时最高价格。
    spotStrategy String
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    suffixIndex Integer
    有序后缀的起始序号。
    tags List<LaunchTemplateVersionTag>
    uniqueSuffix Boolean
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    userData String
    实例的自定义数据。
    versionDescription String
    模版版本描述。
    volumes List<LaunchTemplateVersionVolume>
    vpcId String
    私有网络ID。
    zoneId String
    实例所属可用区ID。
    deploymentSetGroupNumber number
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    deploymentSetId string
    实例需要加入的部署集ID。
    description string
    实例的描述。
    eip LaunchTemplateVersionEip
    实例绑定的公网IP信息。
    hostName string
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    hpcClusterId string
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    imageId string
    镜像ID。
    imageName string
    镜像名称。
    instanceChargeType string
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    instanceName string
    实例的名称。
    instanceTypeId string
    实例的规格。
    keepImageCredential boolean
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    keyPairName string
    实例绑定的密钥对。
    launchTemplateId string
    实例启动模板 ID。
    networkInterfaces LaunchTemplateVersionNetworkInterface[]
    projectName string
    实例所属项目。
    scheduledInstance LaunchTemplateVersionScheduledInstance
    弹性预约单信息。
    securityEnhancementStrategy string
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    spotPriceLimit number
    抢占式实例的每小时最高价格。
    spotStrategy string
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    suffixIndex number
    有序后缀的起始序号。
    tags LaunchTemplateVersionTag[]
    uniqueSuffix boolean
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    userData string
    实例的自定义数据。
    versionDescription string
    模版版本描述。
    volumes LaunchTemplateVersionVolume[]
    vpcId string
    私有网络ID。
    zoneId string
    实例所属可用区ID。
    deployment_set_group_number int
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    deployment_set_id str
    实例需要加入的部署集ID。
    description str
    实例的描述。
    eip LaunchTemplateVersionEipArgs
    实例绑定的公网IP信息。
    host_name str
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    hpc_cluster_id str
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    image_id str
    镜像ID。
    image_name str
    镜像名称。
    instance_charge_type str
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    instance_name str
    实例的名称。
    instance_type_id str
    实例的规格。
    keep_image_credential bool
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    key_pair_name str
    实例绑定的密钥对。
    launch_template_id str
    实例启动模板 ID。
    network_interfaces Sequence[LaunchTemplateVersionNetworkInterfaceArgs]
    project_name str
    实例所属项目。
    scheduled_instance LaunchTemplateVersionScheduledInstanceArgs
    弹性预约单信息。
    security_enhancement_strategy str
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    spot_price_limit float
    抢占式实例的每小时最高价格。
    spot_strategy str
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    suffix_index int
    有序后缀的起始序号。
    tags Sequence[LaunchTemplateVersionTagArgs]
    unique_suffix bool
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    user_data str
    实例的自定义数据。
    version_description str
    模版版本描述。
    volumes Sequence[LaunchTemplateVersionVolumeArgs]
    vpc_id str
    私有网络ID。
    zone_id str
    实例所属可用区ID。
    deploymentSetGroupNumber Number
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    deploymentSetId String
    实例需要加入的部署集ID。
    description String
    实例的描述。
    eip Property Map
    实例绑定的公网IP信息。
    hostName String
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    hpcClusterId String
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    imageId String
    镜像ID。
    imageName String
    镜像名称。
    instanceChargeType String
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    instanceName String
    实例的名称。
    instanceTypeId String
    实例的规格。
    keepImageCredential Boolean
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    keyPairName String
    实例绑定的密钥对。
    launchTemplateId String
    实例启动模板 ID。
    networkInterfaces List<Property Map>
    projectName String
    实例所属项目。
    scheduledInstance Property Map
    弹性预约单信息。
    securityEnhancementStrategy String
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    spotPriceLimit Number
    抢占式实例的每小时最高价格。
    spotStrategy String
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    suffixIndex Number
    有序后缀的起始序号。
    tags List<Property Map>
    uniqueSuffix Boolean
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    userData String
    实例的自定义数据。
    versionDescription String
    模版版本描述。
    volumes List<Property Map>
    vpcId String
    私有网络ID。
    zoneId String
    实例所属可用区ID。

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    VersionNumber string
    模板版本号。
    Id string
    The provider-assigned unique ID for this managed resource.
    VersionNumber string
    模板版本号。
    id String
    The provider-assigned unique ID for this managed resource.
    versionNumber String
    模板版本号。
    id string
    The provider-assigned unique ID for this managed resource.
    versionNumber string
    模板版本号。
    id str
    The provider-assigned unique ID for this managed resource.
    version_number str
    模板版本号。
    id String
    The provider-assigned unique ID for this managed resource.
    versionNumber String
    模板版本号。

    Look up Existing LaunchTemplateVersion Resource

    Get an existing LaunchTemplateVersion 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?: LaunchTemplateVersionState, opts?: CustomResourceOptions): LaunchTemplateVersion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            deployment_set_group_number: Optional[int] = None,
            deployment_set_id: Optional[str] = None,
            description: Optional[str] = None,
            eip: Optional[LaunchTemplateVersionEipArgs] = None,
            host_name: Optional[str] = None,
            hpc_cluster_id: Optional[str] = None,
            image_id: Optional[str] = None,
            image_name: Optional[str] = None,
            instance_charge_type: Optional[str] = None,
            instance_name: Optional[str] = None,
            instance_type_id: Optional[str] = None,
            keep_image_credential: Optional[bool] = None,
            key_pair_name: Optional[str] = None,
            launch_template_id: Optional[str] = None,
            network_interfaces: Optional[Sequence[LaunchTemplateVersionNetworkInterfaceArgs]] = None,
            project_name: Optional[str] = None,
            scheduled_instance: Optional[LaunchTemplateVersionScheduledInstanceArgs] = None,
            security_enhancement_strategy: Optional[str] = None,
            spot_price_limit: Optional[float] = None,
            spot_strategy: Optional[str] = None,
            suffix_index: Optional[int] = None,
            tags: Optional[Sequence[LaunchTemplateVersionTagArgs]] = None,
            unique_suffix: Optional[bool] = None,
            user_data: Optional[str] = None,
            version_description: Optional[str] = None,
            version_number: Optional[str] = None,
            volumes: Optional[Sequence[LaunchTemplateVersionVolumeArgs]] = None,
            vpc_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> LaunchTemplateVersion
    func GetLaunchTemplateVersion(ctx *Context, name string, id IDInput, state *LaunchTemplateVersionState, opts ...ResourceOption) (*LaunchTemplateVersion, error)
    public static LaunchTemplateVersion Get(string name, Input<string> id, LaunchTemplateVersionState? state, CustomResourceOptions? opts = null)
    public static LaunchTemplateVersion get(String name, Output<String> id, LaunchTemplateVersionState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:ecs:LaunchTemplateVersion    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:
    DeploymentSetGroupNumber int
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    DeploymentSetId string
    实例需要加入的部署集ID。
    Description string
    实例的描述。
    Eip Byteplus.LaunchTemplateVersionEip
    实例绑定的公网IP信息。
    HostName string
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    HpcClusterId string
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    ImageId string
    镜像ID。
    ImageName string
    镜像名称。
    InstanceChargeType string
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    InstanceName string
    实例的名称。
    InstanceTypeId string
    实例的规格。
    KeepImageCredential bool
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    KeyPairName string
    实例绑定的密钥对。
    LaunchTemplateId string
    实例启动模板 ID。
    NetworkInterfaces List<Byteplus.LaunchTemplateVersionNetworkInterface>
    ProjectName string
    实例所属项目。
    ScheduledInstance Byteplus.LaunchTemplateVersionScheduledInstance
    弹性预约单信息。
    SecurityEnhancementStrategy string
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    SpotPriceLimit double
    抢占式实例的每小时最高价格。
    SpotStrategy string
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    SuffixIndex int
    有序后缀的起始序号。
    Tags List<Byteplus.LaunchTemplateVersionTag>
    UniqueSuffix bool
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    UserData string
    实例的自定义数据。
    VersionDescription string
    模版版本描述。
    VersionNumber string
    模板版本号。
    Volumes List<Byteplus.LaunchTemplateVersionVolume>
    VpcId string
    私有网络ID。
    ZoneId string
    实例所属可用区ID。
    DeploymentSetGroupNumber int
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    DeploymentSetId string
    实例需要加入的部署集ID。
    Description string
    实例的描述。
    Eip LaunchTemplateVersionEipArgs
    实例绑定的公网IP信息。
    HostName string
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    HpcClusterId string
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    ImageId string
    镜像ID。
    ImageName string
    镜像名称。
    InstanceChargeType string
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    InstanceName string
    实例的名称。
    InstanceTypeId string
    实例的规格。
    KeepImageCredential bool
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    KeyPairName string
    实例绑定的密钥对。
    LaunchTemplateId string
    实例启动模板 ID。
    NetworkInterfaces []LaunchTemplateVersionNetworkInterfaceArgs
    ProjectName string
    实例所属项目。
    ScheduledInstance LaunchTemplateVersionScheduledInstanceArgs
    弹性预约单信息。
    SecurityEnhancementStrategy string
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    SpotPriceLimit float64
    抢占式实例的每小时最高价格。
    SpotStrategy string
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    SuffixIndex int
    有序后缀的起始序号。
    Tags []LaunchTemplateVersionTagArgs
    UniqueSuffix bool
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    UserData string
    实例的自定义数据。
    VersionDescription string
    模版版本描述。
    VersionNumber string
    模板版本号。
    Volumes []LaunchTemplateVersionVolumeArgs
    VpcId string
    私有网络ID。
    ZoneId string
    实例所属可用区ID。
    deploymentSetGroupNumber Integer
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    deploymentSetId String
    实例需要加入的部署集ID。
    description String
    实例的描述。
    eip LaunchTemplateVersionEip
    实例绑定的公网IP信息。
    hostName String
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    hpcClusterId String
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    imageId String
    镜像ID。
    imageName String
    镜像名称。
    instanceChargeType String
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    instanceName String
    实例的名称。
    instanceTypeId String
    实例的规格。
    keepImageCredential Boolean
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    keyPairName String
    实例绑定的密钥对。
    launchTemplateId String
    实例启动模板 ID。
    networkInterfaces List<LaunchTemplateVersionNetworkInterface>
    projectName String
    实例所属项目。
    scheduledInstance LaunchTemplateVersionScheduledInstance
    弹性预约单信息。
    securityEnhancementStrategy String
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    spotPriceLimit Double
    抢占式实例的每小时最高价格。
    spotStrategy String
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    suffixIndex Integer
    有序后缀的起始序号。
    tags List<LaunchTemplateVersionTag>
    uniqueSuffix Boolean
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    userData String
    实例的自定义数据。
    versionDescription String
    模版版本描述。
    versionNumber String
    模板版本号。
    volumes List<LaunchTemplateVersionVolume>
    vpcId String
    私有网络ID。
    zoneId String
    实例所属可用区ID。
    deploymentSetGroupNumber number
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    deploymentSetId string
    实例需要加入的部署集ID。
    description string
    实例的描述。
    eip LaunchTemplateVersionEip
    实例绑定的公网IP信息。
    hostName string
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    hpcClusterId string
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    imageId string
    镜像ID。
    imageName string
    镜像名称。
    instanceChargeType string
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    instanceName string
    实例的名称。
    instanceTypeId string
    实例的规格。
    keepImageCredential boolean
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    keyPairName string
    实例绑定的密钥对。
    launchTemplateId string
    实例启动模板 ID。
    networkInterfaces LaunchTemplateVersionNetworkInterface[]
    projectName string
    实例所属项目。
    scheduledInstance LaunchTemplateVersionScheduledInstance
    弹性预约单信息。
    securityEnhancementStrategy string
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    spotPriceLimit number
    抢占式实例的每小时最高价格。
    spotStrategy string
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    suffixIndex number
    有序后缀的起始序号。
    tags LaunchTemplateVersionTag[]
    uniqueSuffix boolean
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    userData string
    实例的自定义数据。
    versionDescription string
    模版版本描述。
    versionNumber string
    模板版本号。
    volumes LaunchTemplateVersionVolume[]
    vpcId string
    私有网络ID。
    zoneId string
    实例所属可用区ID。
    deployment_set_group_number int
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    deployment_set_id str
    实例需要加入的部署集ID。
    description str
    实例的描述。
    eip LaunchTemplateVersionEipArgs
    实例绑定的公网IP信息。
    host_name str
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    hpc_cluster_id str
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    image_id str
    镜像ID。
    image_name str
    镜像名称。
    instance_charge_type str
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    instance_name str
    实例的名称。
    instance_type_id str
    实例的规格。
    keep_image_credential bool
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    key_pair_name str
    实例绑定的密钥对。
    launch_template_id str
    实例启动模板 ID。
    network_interfaces Sequence[LaunchTemplateVersionNetworkInterfaceArgs]
    project_name str
    实例所属项目。
    scheduled_instance LaunchTemplateVersionScheduledInstanceArgs
    弹性预约单信息。
    security_enhancement_strategy str
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    spot_price_limit float
    抢占式实例的每小时最高价格。
    spot_strategy str
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    suffix_index int
    有序后缀的起始序号。
    tags Sequence[LaunchTemplateVersionTagArgs]
    unique_suffix bool
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    user_data str
    实例的自定义数据。
    version_description str
    模版版本描述。
    version_number str
    模板版本号。
    volumes Sequence[LaunchTemplateVersionVolumeArgs]
    vpc_id str
    私有网络ID。
    zone_id str
    实例所属可用区ID。
    deploymentSetGroupNumber Number
    当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
    deploymentSetId String
    实例需要加入的部署集ID。
    description String
    实例的描述。
    eip Property Map
    实例绑定的公网IP信息。
    hostName String
    实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
    hpcClusterId String
    当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
    imageId String
    镜像ID。
    imageName String
    镜像名称。
    instanceChargeType String
    实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
    instanceName String
    实例的名称。
    instanceTypeId String
    实例的规格。
    keepImageCredential Boolean
    是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
    keyPairName String
    实例绑定的密钥对。
    launchTemplateId String
    实例启动模板 ID。
    networkInterfaces List<Property Map>
    projectName String
    实例所属项目。
    scheduledInstance Property Map
    弹性预约单信息。
    securityEnhancementStrategy String
    是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
    spotPriceLimit Number
    抢占式实例的每小时最高价格。
    spotStrategy String
    按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
    suffixIndex Number
    有序后缀的起始序号。
    tags List<Property Map>
    uniqueSuffix Boolean
    表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
    userData String
    实例的自定义数据。
    versionDescription String
    模版版本描述。
    versionNumber String
    模板版本号。
    volumes List<Property Map>
    vpcId String
    私有网络ID。
    zoneId String
    实例所属可用区ID。

    Supporting Types

    LaunchTemplateVersionEip, LaunchTemplateVersionEipArgs

    Bandwidth int
    公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
    BandwidthPackageId string
    共享带宽包的ID,表示将公网IP加入到共享带宽包。
    BillingType int
    公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    Isp string
    公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
    ReleaseWithInstance bool
    公网IP是否随实例删除,仅按量计费公网IP生效。
    SecurityProtectionInstanceId int
    安全防护包ID。
    SecurityProtectionTypes List<string>
    公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。
    Bandwidth int
    公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
    BandwidthPackageId string
    共享带宽包的ID,表示将公网IP加入到共享带宽包。
    BillingType int
    公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    Isp string
    公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
    ReleaseWithInstance bool
    公网IP是否随实例删除,仅按量计费公网IP生效。
    SecurityProtectionInstanceId int
    安全防护包ID。
    SecurityProtectionTypes []string
    公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。
    bandwidth Integer
    公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
    bandwidthPackageId String
    共享带宽包的ID,表示将公网IP加入到共享带宽包。
    billingType Integer
    公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    isp String
    公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
    releaseWithInstance Boolean
    公网IP是否随实例删除,仅按量计费公网IP生效。
    securityProtectionInstanceId Integer
    安全防护包ID。
    securityProtectionTypes List<String>
    公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。
    bandwidth number
    公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
    bandwidthPackageId string
    共享带宽包的ID,表示将公网IP加入到共享带宽包。
    billingType number
    公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    isp string
    公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
    releaseWithInstance boolean
    公网IP是否随实例删除,仅按量计费公网IP生效。
    securityProtectionInstanceId number
    安全防护包ID。
    securityProtectionTypes string[]
    公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。
    bandwidth int
    公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
    bandwidth_package_id str
    共享带宽包的ID,表示将公网IP加入到共享带宽包。
    billing_type int
    公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    isp str
    公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
    release_with_instance bool
    公网IP是否随实例删除,仅按量计费公网IP生效。
    security_protection_instance_id int
    安全防护包ID。
    security_protection_types Sequence[str]
    公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。
    bandwidth Number
    公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
    bandwidthPackageId String
    共享带宽包的ID,表示将公网IP加入到共享带宽包。
    billingType Number
    公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    isp String
    公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
    releaseWithInstance Boolean
    公网IP是否随实例删除,仅按量计费公网IP生效。
    securityProtectionInstanceId Number
    安全防护包ID。
    securityProtectionTypes List<String>
    公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。

    LaunchTemplateVersionNetworkInterface, LaunchTemplateVersionNetworkInterfaceArgs

    SecurityGroupIds List<string>
    网卡关联的安全组ID。
    SubnetId string
    实例的私有网络子网ID。
    SecurityGroupIds []string
    网卡关联的安全组ID。
    SubnetId string
    实例的私有网络子网ID。
    securityGroupIds List<String>
    网卡关联的安全组ID。
    subnetId String
    实例的私有网络子网ID。
    securityGroupIds string[]
    网卡关联的安全组ID。
    subnetId string
    实例的私有网络子网ID。
    security_group_ids Sequence[str]
    网卡关联的安全组ID。
    subnet_id str
    实例的私有网络子网ID。
    securityGroupIds List<String>
    网卡关联的安全组ID。
    subnetId String
    实例的私有网络子网ID。

    LaunchTemplateVersionScheduledInstance, LaunchTemplateVersionScheduledInstanceArgs

    ScheduledInstanceDescription string
    弹性预约单的描述。
    ScheduledInstanceName string
    弹性预约单的名称。
    ScheduledInstanceDescription string
    弹性预约单的描述。
    ScheduledInstanceName string
    弹性预约单的名称。
    scheduledInstanceDescription String
    弹性预约单的描述。
    scheduledInstanceName String
    弹性预约单的名称。
    scheduledInstanceDescription string
    弹性预约单的描述。
    scheduledInstanceName string
    弹性预约单的名称。
    scheduled_instance_description str
    弹性预约单的描述。
    scheduled_instance_name str
    弹性预约单的名称。
    scheduledInstanceDescription String
    弹性预约单的描述。
    scheduledInstanceName String
    弹性预约单的名称。

    LaunchTemplateVersionTag, LaunchTemplateVersionTagArgs

    Key string
    给资源添加的用户标签的标签键。
    Value string
    给资源添加的用户标签的标签值。
    Key string
    给资源添加的用户标签的标签键。
    Value string
    给资源添加的用户标签的标签值。
    key String
    给资源添加的用户标签的标签键。
    value String
    给资源添加的用户标签的标签值。
    key string
    给资源添加的用户标签的标签键。
    value string
    给资源添加的用户标签的标签值。
    key str
    给资源添加的用户标签的标签键。
    value str
    给资源添加的用户标签的标签值。
    key String
    给资源添加的用户标签的标签键。
    value String
    给资源添加的用户标签的标签值。

    LaunchTemplateVersionVolume, LaunchTemplateVersionVolumeArgs

    DeleteWithInstance bool
    云盘是否随实例释放。
    ExtraPerformanceIops int
    云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
    ExtraPerformanceThroughputMb int
    云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
    ExtraPerformanceTypeId string
    云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
    Size int
    云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
    SnapshotId string
    使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
    VolumeType string
    云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。
    DeleteWithInstance bool
    云盘是否随实例释放。
    ExtraPerformanceIops int
    云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
    ExtraPerformanceThroughputMb int
    云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
    ExtraPerformanceTypeId string
    云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
    Size int
    云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
    SnapshotId string
    使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
    VolumeType string
    云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。
    deleteWithInstance Boolean
    云盘是否随实例释放。
    extraPerformanceIops Integer
    云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
    extraPerformanceThroughputMb Integer
    云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
    extraPerformanceTypeId String
    云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
    size Integer
    云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
    snapshotId String
    使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
    volumeType String
    云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。
    deleteWithInstance boolean
    云盘是否随实例释放。
    extraPerformanceIops number
    云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
    extraPerformanceThroughputMb number
    云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
    extraPerformanceTypeId string
    云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
    size number
    云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
    snapshotId string
    使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
    volumeType string
    云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。
    delete_with_instance bool
    云盘是否随实例释放。
    extra_performance_iops int
    云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
    extra_performance_throughput_mb int
    云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
    extra_performance_type_id str
    云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
    size int
    云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
    snapshot_id str
    使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
    volume_type str
    云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。
    deleteWithInstance Boolean
    云盘是否随实例释放。
    extraPerformanceIops Number
    云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
    extraPerformanceThroughputMb Number
    云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
    extraPerformanceTypeId String
    云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
    size Number
    云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
    snapshotId String
    使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
    volumeType String
    云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。

    Import

    $ pulumi import bytepluscc:ecs/launchTemplateVersion:LaunchTemplateVersion example "launch_template_id|version_number"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.16
    published on Monday, Mar 9, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.