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

tencentcloud.ThpcWorkspaces

Explore with Pulumi AI

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

    Provides a resource to create a THPC workspaces

    Note: If space_charge_type is UNDERWRITE, Not currently supported for deletion.

    Example Usage

    Create a PREPAID THPC workspaces

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.get("availabilityZone") || "ap-nanjing-1";
    const images = tencentcloud.getImages({
        imageTypes: ["PUBLIC_IMAGE"],
        osName: "TencentOS Server 3.1 (TK4) UEFI",
    });
    // create vpc
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "172.16.0.0/16"});
    // create subnet
    const subnet = new tencentcloud.Subnet("subnet", {
        availabilityZone: availabilityZone,
        vpcId: vpc.vpcId,
        cidrBlock: "172.16.0.0/24",
        isMulticast: false,
    });
    // create security group
    const exampleSecurityGroup = new tencentcloud.SecurityGroup("exampleSecurityGroup", {
        description: "security group desc.",
        tags: {
            createBy: "Terraform",
        },
    });
    // create thpc workspaces
    const exampleThpcWorkspaces = new tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces", {
        spaceName: "tf-example",
        spaceChargeType: "PREPAID",
        spaceType: "96A.96XLARGE2304",
        hpcClusterId: "hpc-l9anqcbl",
        imageId: images.then(images => images.images?.[0]?.imageId),
        securityGroupIds: [exampleSecurityGroup.securityGroupId],
        placement: {
            zone: availabilityZone,
            projectId: 0,
        },
        spaceChargePrepaid: {
            period: 1,
            renewFlag: "NOTIFY_AND_AUTO_RENEW",
        },
        systemDisk: {
            diskSize: 100,
            diskType: "CLOUD_HSSD",
        },
        dataDisks: [{
            diskSize: 200,
            diskType: "CLOUD_HSSD",
            encrypt: false,
        }],
        virtualPrivateCloud: {
            vpcId: vpc.vpcId,
            subnetId: subnet.subnetId,
            asVpcGateway: false,
            ipv6AddressCount: 0,
        },
        internetAccessible: {
            internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
            internetMaxBandwidthOut: 200,
            publicIpAssigned: true,
        },
        loginSettings: {
            password: "Password@123",
        },
        enhancedService: {
            securityService: {
                enabled: true,
            },
            monitorService: {
                enabled: true,
            },
            automationService: {
                enabled: true,
            },
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    availability_zone = config.get("availabilityZone")
    if availability_zone is None:
        availability_zone = "ap-nanjing-1"
    images = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
        os_name="TencentOS Server 3.1 (TK4) UEFI")
    # create vpc
    vpc = tencentcloud.Vpc("vpc", cidr_block="172.16.0.0/16")
    # create subnet
    subnet = tencentcloud.Subnet("subnet",
        availability_zone=availability_zone,
        vpc_id=vpc.vpc_id,
        cidr_block="172.16.0.0/24",
        is_multicast=False)
    # create security group
    example_security_group = tencentcloud.SecurityGroup("exampleSecurityGroup",
        description="security group desc.",
        tags={
            "createBy": "Terraform",
        })
    # create thpc workspaces
    example_thpc_workspaces = tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces",
        space_name="tf-example",
        space_charge_type="PREPAID",
        space_type="96A.96XLARGE2304",
        hpc_cluster_id="hpc-l9anqcbl",
        image_id=images.images[0].image_id,
        security_group_ids=[example_security_group.security_group_id],
        placement={
            "zone": availability_zone,
            "project_id": 0,
        },
        space_charge_prepaid={
            "period": 1,
            "renew_flag": "NOTIFY_AND_AUTO_RENEW",
        },
        system_disk={
            "disk_size": 100,
            "disk_type": "CLOUD_HSSD",
        },
        data_disks=[{
            "disk_size": 200,
            "disk_type": "CLOUD_HSSD",
            "encrypt": False,
        }],
        virtual_private_cloud={
            "vpc_id": vpc.vpc_id,
            "subnet_id": subnet.subnet_id,
            "as_vpc_gateway": False,
            "ipv6_address_count": 0,
        },
        internet_accessible={
            "internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
            "internet_max_bandwidth_out": 200,
            "public_ip_assigned": True,
        },
        login_settings={
            "password": "Password@123",
        },
        enhanced_service={
            "security_service": {
                "enabled": True,
            },
            "monitor_service": {
                "enabled": True,
            },
            "automation_service": {
                "enabled": True,
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		availabilityZone := "ap-nanjing-1"
    		if param := cfg.Get("availabilityZone"); param != "" {
    			availabilityZone = param
    		}
    		images, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
    			ImageTypes: []string{
    				"PUBLIC_IMAGE",
    			},
    			OsName: pulumi.StringRef("TencentOS Server 3.1 (TK4) UEFI"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// create vpc
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		// create subnet
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			AvailabilityZone: pulumi.String(availabilityZone),
    			VpcId:            vpc.VpcId,
    			CidrBlock:        pulumi.String("172.16.0.0/24"),
    			IsMulticast:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// create security group
    		exampleSecurityGroup, err := tencentcloud.NewSecurityGroup(ctx, "exampleSecurityGroup", &tencentcloud.SecurityGroupArgs{
    			Description: pulumi.String("security group desc."),
    			Tags: pulumi.StringMap{
    				"createBy": pulumi.String("Terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// create thpc workspaces
    		_, err = tencentcloud.NewThpcWorkspaces(ctx, "exampleThpcWorkspaces", &tencentcloud.ThpcWorkspacesArgs{
    			SpaceName:       pulumi.String("tf-example"),
    			SpaceChargeType: pulumi.String("PREPAID"),
    			SpaceType:       pulumi.String("96A.96XLARGE2304"),
    			HpcClusterId:    pulumi.String("hpc-l9anqcbl"),
    			ImageId:         pulumi.String(images.Images[0].ImageId),
    			SecurityGroupIds: pulumi.StringArray{
    				exampleSecurityGroup.SecurityGroupId,
    			},
    			Placement: &tencentcloud.ThpcWorkspacesPlacementArgs{
    				Zone:      pulumi.String(availabilityZone),
    				ProjectId: pulumi.Float64(0),
    			},
    			SpaceChargePrepaid: &tencentcloud.ThpcWorkspacesSpaceChargePrepaidArgs{
    				Period:    pulumi.Float64(1),
    				RenewFlag: pulumi.String("NOTIFY_AND_AUTO_RENEW"),
    			},
    			SystemDisk: &tencentcloud.ThpcWorkspacesSystemDiskArgs{
    				DiskSize: pulumi.Float64(100),
    				DiskType: pulumi.String("CLOUD_HSSD"),
    			},
    			DataDisks: tencentcloud.ThpcWorkspacesDataDiskArray{
    				&tencentcloud.ThpcWorkspacesDataDiskArgs{
    					DiskSize: pulumi.Float64(200),
    					DiskType: pulumi.String("CLOUD_HSSD"),
    					Encrypt:  pulumi.Bool(false),
    				},
    			},
    			VirtualPrivateCloud: &tencentcloud.ThpcWorkspacesVirtualPrivateCloudArgs{
    				VpcId:            vpc.VpcId,
    				SubnetId:         subnet.SubnetId,
    				AsVpcGateway:     pulumi.Bool(false),
    				Ipv6AddressCount: pulumi.Float64(0),
    			},
    			InternetAccessible: &tencentcloud.ThpcWorkspacesInternetAccessibleArgs{
    				InternetChargeType:      pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
    				InternetMaxBandwidthOut: pulumi.Float64(200),
    				PublicIpAssigned:        pulumi.Bool(true),
    			},
    			LoginSettings: &tencentcloud.ThpcWorkspacesLoginSettingsArgs{
    				Password: pulumi.String("Password@123"),
    			},
    			EnhancedService: &tencentcloud.ThpcWorkspacesEnhancedServiceArgs{
    				SecurityService: &tencentcloud.ThpcWorkspacesEnhancedServiceSecurityServiceArgs{
    					Enabled: pulumi.Bool(true),
    				},
    				MonitorService: &tencentcloud.ThpcWorkspacesEnhancedServiceMonitorServiceArgs{
    					Enabled: pulumi.Bool(true),
    				},
    				AutomationService: &tencentcloud.ThpcWorkspacesEnhancedServiceAutomationServiceArgs{
    					Enabled: pulumi.Bool(true),
    				},
    			},
    		})
    		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 config = new Config();
        var availabilityZone = config.Get("availabilityZone") ?? "ap-nanjing-1";
        var images = Tencentcloud.GetImages.Invoke(new()
        {
            ImageTypes = new[]
            {
                "PUBLIC_IMAGE",
            },
            OsName = "TencentOS Server 3.1 (TK4) UEFI",
        });
    
        // create vpc
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "172.16.0.0/16",
        });
    
        // create subnet
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            AvailabilityZone = availabilityZone,
            VpcId = vpc.VpcId,
            CidrBlock = "172.16.0.0/24",
            IsMulticast = false,
        });
    
        // create security group
        var exampleSecurityGroup = new Tencentcloud.SecurityGroup("exampleSecurityGroup", new()
        {
            Description = "security group desc.",
            Tags = 
            {
                { "createBy", "Terraform" },
            },
        });
    
        // create thpc workspaces
        var exampleThpcWorkspaces = new Tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces", new()
        {
            SpaceName = "tf-example",
            SpaceChargeType = "PREPAID",
            SpaceType = "96A.96XLARGE2304",
            HpcClusterId = "hpc-l9anqcbl",
            ImageId = images.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
            SecurityGroupIds = new[]
            {
                exampleSecurityGroup.SecurityGroupId,
            },
            Placement = new Tencentcloud.Inputs.ThpcWorkspacesPlacementArgs
            {
                Zone = availabilityZone,
                ProjectId = 0,
            },
            SpaceChargePrepaid = new Tencentcloud.Inputs.ThpcWorkspacesSpaceChargePrepaidArgs
            {
                Period = 1,
                RenewFlag = "NOTIFY_AND_AUTO_RENEW",
            },
            SystemDisk = new Tencentcloud.Inputs.ThpcWorkspacesSystemDiskArgs
            {
                DiskSize = 100,
                DiskType = "CLOUD_HSSD",
            },
            DataDisks = new[]
            {
                new Tencentcloud.Inputs.ThpcWorkspacesDataDiskArgs
                {
                    DiskSize = 200,
                    DiskType = "CLOUD_HSSD",
                    Encrypt = false,
                },
            },
            VirtualPrivateCloud = new Tencentcloud.Inputs.ThpcWorkspacesVirtualPrivateCloudArgs
            {
                VpcId = vpc.VpcId,
                SubnetId = subnet.SubnetId,
                AsVpcGateway = false,
                Ipv6AddressCount = 0,
            },
            InternetAccessible = new Tencentcloud.Inputs.ThpcWorkspacesInternetAccessibleArgs
            {
                InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
                InternetMaxBandwidthOut = 200,
                PublicIpAssigned = true,
            },
            LoginSettings = new Tencentcloud.Inputs.ThpcWorkspacesLoginSettingsArgs
            {
                Password = "Password@123",
            },
            EnhancedService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceArgs
            {
                SecurityService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceSecurityServiceArgs
                {
                    Enabled = true,
                },
                MonitorService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceMonitorServiceArgs
                {
                    Enabled = true,
                },
                AutomationService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceAutomationServiceArgs
                {
                    Enabled = true,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetImagesArgs;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.SecurityGroup;
    import com.pulumi.tencentcloud.SecurityGroupArgs;
    import com.pulumi.tencentcloud.ThpcWorkspaces;
    import com.pulumi.tencentcloud.ThpcWorkspacesArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesPlacementArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesSpaceChargePrepaidArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesSystemDiskArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesDataDiskArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesVirtualPrivateCloudArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesInternetAccessibleArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesLoginSettingsArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceSecurityServiceArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceMonitorServiceArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceAutomationServiceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var availabilityZone = config.get("availabilityZone").orElse("ap-nanjing-1");
            final var images = TencentcloudFunctions.getImages(GetImagesArgs.builder()
                .imageTypes("PUBLIC_IMAGE")
                .osName("TencentOS Server 3.1 (TK4) UEFI")
                .build());
    
            // create vpc
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("172.16.0.0/16")
                .build());
    
            // create subnet
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .availabilityZone(availabilityZone)
                .vpcId(vpc.vpcId())
                .cidrBlock("172.16.0.0/24")
                .isMulticast(false)
                .build());
    
            // create security group
            var exampleSecurityGroup = new SecurityGroup("exampleSecurityGroup", SecurityGroupArgs.builder()
                .description("security group desc.")
                .tags(Map.of("createBy", "Terraform"))
                .build());
    
            // create thpc workspaces
            var exampleThpcWorkspaces = new ThpcWorkspaces("exampleThpcWorkspaces", ThpcWorkspacesArgs.builder()
                .spaceName("tf-example")
                .spaceChargeType("PREPAID")
                .spaceType("96A.96XLARGE2304")
                .hpcClusterId("hpc-l9anqcbl")
                .imageId(images.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
                .securityGroupIds(exampleSecurityGroup.securityGroupId())
                .placement(ThpcWorkspacesPlacementArgs.builder()
                    .zone(availabilityZone)
                    .projectId(0)
                    .build())
                .spaceChargePrepaid(ThpcWorkspacesSpaceChargePrepaidArgs.builder()
                    .period(1)
                    .renewFlag("NOTIFY_AND_AUTO_RENEW")
                    .build())
                .systemDisk(ThpcWorkspacesSystemDiskArgs.builder()
                    .diskSize(100)
                    .diskType("CLOUD_HSSD")
                    .build())
                .dataDisks(ThpcWorkspacesDataDiskArgs.builder()
                    .diskSize(200)
                    .diskType("CLOUD_HSSD")
                    .encrypt(false)
                    .build())
                .virtualPrivateCloud(ThpcWorkspacesVirtualPrivateCloudArgs.builder()
                    .vpcId(vpc.vpcId())
                    .subnetId(subnet.subnetId())
                    .asVpcGateway(false)
                    .ipv6AddressCount(0)
                    .build())
                .internetAccessible(ThpcWorkspacesInternetAccessibleArgs.builder()
                    .internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
                    .internetMaxBandwidthOut(200)
                    .publicIpAssigned(true)
                    .build())
                .loginSettings(ThpcWorkspacesLoginSettingsArgs.builder()
                    .password("Password@123")
                    .build())
                .enhancedService(ThpcWorkspacesEnhancedServiceArgs.builder()
                    .securityService(ThpcWorkspacesEnhancedServiceSecurityServiceArgs.builder()
                        .enabled(true)
                        .build())
                    .monitorService(ThpcWorkspacesEnhancedServiceMonitorServiceArgs.builder()
                        .enabled(true)
                        .build())
                    .automationService(ThpcWorkspacesEnhancedServiceAutomationServiceArgs.builder()
                        .enabled(true)
                        .build())
                    .build())
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: string
        default: ap-nanjing-1
    resources:
      # create vpc
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 172.16.0.0/16
      # create subnet
      subnet:
        type: tencentcloud:Subnet
        properties:
          availabilityZone: ${availabilityZone}
          vpcId: ${vpc.vpcId}
          cidrBlock: 172.16.0.0/24
          isMulticast: false
      # create security group
      exampleSecurityGroup:
        type: tencentcloud:SecurityGroup
        properties:
          description: security group desc.
          tags:
            createBy: Terraform
      # create thpc workspaces
      exampleThpcWorkspaces:
        type: tencentcloud:ThpcWorkspaces
        properties:
          spaceName: tf-example
          spaceChargeType: PREPAID
          spaceType: 96A.96XLARGE2304
          hpcClusterId: hpc-l9anqcbl
          imageId: ${images.images[0].imageId}
          securityGroupIds:
            - ${exampleSecurityGroup.securityGroupId}
          placement:
            zone: ${availabilityZone}
            projectId: 0
          spaceChargePrepaid:
            period: 1
            renewFlag: NOTIFY_AND_AUTO_RENEW
          systemDisk:
            diskSize: 100
            diskType: CLOUD_HSSD
          dataDisks:
            - diskSize: 200
              diskType: CLOUD_HSSD
              encrypt: false
          virtualPrivateCloud:
            vpcId: ${vpc.vpcId}
            subnetId: ${subnet.subnetId}
            asVpcGateway: false
            ipv6AddressCount: 0
          internetAccessible:
            internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
            internetMaxBandwidthOut: 200
            publicIpAssigned: true
          loginSettings:
            password: Password@123
          enhancedService:
            securityService:
              enabled: true
            monitorService:
              enabled: true
            automationService:
              enabled: true
    variables:
      images:
        fn::invoke:
          function: tencentcloud:getImages
          arguments:
            imageTypes:
              - PUBLIC_IMAGE
            osName: TencentOS Server 3.1 (TK4) UEFI
    

    Create a UNDERWRITE THPC workspaces

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.get("availabilityZone") || "ap-nanjing-1";
    const images = tencentcloud.getImages({
        imageTypes: ["PUBLIC_IMAGE"],
        osName: "TencentOS Server 3.1 (TK4) UEFI",
    });
    // create vpc
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "172.16.0.0/16"});
    // create subnet
    const subnet = new tencentcloud.Subnet("subnet", {
        availabilityZone: availabilityZone,
        vpcId: vpc.vpcId,
        cidrBlock: "172.16.0.0/24",
        isMulticast: false,
    });
    // create security group
    const exampleSecurityGroup = new tencentcloud.SecurityGroup("exampleSecurityGroup", {
        description: "security group desc.",
        tags: {
            createBy: "Terraform",
        },
    });
    // create thpc workspaces
    const exampleThpcWorkspaces = new tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces", {
        spaceName: "tf-example",
        spaceChargeType: "UNDERWRITE",
        spaceType: "96A.96XLARGE2304",
        hpcClusterId: "hpc-l9anqcbl",
        imageId: images.then(images => images.images?.[0]?.imageId),
        securityGroupIds: [exampleSecurityGroup.securityGroupId],
        placement: {
            zone: availabilityZone,
            projectId: 0,
        },
        spaceChargePrepaid: {
            period: 12,
            renewFlag: "NOTIFY_AND_AUTO_RENEW",
        },
        systemDisk: {
            diskSize: 100,
            diskType: "CLOUD_HSSD",
        },
        dataDisks: [{
            diskSize: 200,
            diskType: "CLOUD_HSSD",
            encrypt: false,
        }],
        virtualPrivateCloud: {
            vpcId: vpc.vpcId,
            subnetId: subnet.subnetId,
            asVpcGateway: false,
            ipv6AddressCount: 0,
            privateIpAddresses: ["172.16.0.2"],
        },
        internetAccessible: {
            internetChargeType: "BANDWIDTH_PREPAID",
            internetMaxBandwidthOut: 200,
            publicIpAssigned: true,
        },
        loginSettings: {
            keyIds: ["skey-qxjpz7uj"],
        },
        enhancedService: {
            securityService: {
                enabled: true,
            },
            monitorService: {
                enabled: true,
            },
            automationService: {
                enabled: true,
            },
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    availability_zone = config.get("availabilityZone")
    if availability_zone is None:
        availability_zone = "ap-nanjing-1"
    images = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
        os_name="TencentOS Server 3.1 (TK4) UEFI")
    # create vpc
    vpc = tencentcloud.Vpc("vpc", cidr_block="172.16.0.0/16")
    # create subnet
    subnet = tencentcloud.Subnet("subnet",
        availability_zone=availability_zone,
        vpc_id=vpc.vpc_id,
        cidr_block="172.16.0.0/24",
        is_multicast=False)
    # create security group
    example_security_group = tencentcloud.SecurityGroup("exampleSecurityGroup",
        description="security group desc.",
        tags={
            "createBy": "Terraform",
        })
    # create thpc workspaces
    example_thpc_workspaces = tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces",
        space_name="tf-example",
        space_charge_type="UNDERWRITE",
        space_type="96A.96XLARGE2304",
        hpc_cluster_id="hpc-l9anqcbl",
        image_id=images.images[0].image_id,
        security_group_ids=[example_security_group.security_group_id],
        placement={
            "zone": availability_zone,
            "project_id": 0,
        },
        space_charge_prepaid={
            "period": 12,
            "renew_flag": "NOTIFY_AND_AUTO_RENEW",
        },
        system_disk={
            "disk_size": 100,
            "disk_type": "CLOUD_HSSD",
        },
        data_disks=[{
            "disk_size": 200,
            "disk_type": "CLOUD_HSSD",
            "encrypt": False,
        }],
        virtual_private_cloud={
            "vpc_id": vpc.vpc_id,
            "subnet_id": subnet.subnet_id,
            "as_vpc_gateway": False,
            "ipv6_address_count": 0,
            "private_ip_addresses": ["172.16.0.2"],
        },
        internet_accessible={
            "internet_charge_type": "BANDWIDTH_PREPAID",
            "internet_max_bandwidth_out": 200,
            "public_ip_assigned": True,
        },
        login_settings={
            "key_ids": ["skey-qxjpz7uj"],
        },
        enhanced_service={
            "security_service": {
                "enabled": True,
            },
            "monitor_service": {
                "enabled": True,
            },
            "automation_service": {
                "enabled": True,
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		availabilityZone := "ap-nanjing-1"
    		if param := cfg.Get("availabilityZone"); param != "" {
    			availabilityZone = param
    		}
    		images, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
    			ImageTypes: []string{
    				"PUBLIC_IMAGE",
    			},
    			OsName: pulumi.StringRef("TencentOS Server 3.1 (TK4) UEFI"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// create vpc
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		// create subnet
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			AvailabilityZone: pulumi.String(availabilityZone),
    			VpcId:            vpc.VpcId,
    			CidrBlock:        pulumi.String("172.16.0.0/24"),
    			IsMulticast:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// create security group
    		exampleSecurityGroup, err := tencentcloud.NewSecurityGroup(ctx, "exampleSecurityGroup", &tencentcloud.SecurityGroupArgs{
    			Description: pulumi.String("security group desc."),
    			Tags: pulumi.StringMap{
    				"createBy": pulumi.String("Terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// create thpc workspaces
    		_, err = tencentcloud.NewThpcWorkspaces(ctx, "exampleThpcWorkspaces", &tencentcloud.ThpcWorkspacesArgs{
    			SpaceName:       pulumi.String("tf-example"),
    			SpaceChargeType: pulumi.String("UNDERWRITE"),
    			SpaceType:       pulumi.String("96A.96XLARGE2304"),
    			HpcClusterId:    pulumi.String("hpc-l9anqcbl"),
    			ImageId:         pulumi.String(images.Images[0].ImageId),
    			SecurityGroupIds: pulumi.StringArray{
    				exampleSecurityGroup.SecurityGroupId,
    			},
    			Placement: &tencentcloud.ThpcWorkspacesPlacementArgs{
    				Zone:      pulumi.String(availabilityZone),
    				ProjectId: pulumi.Float64(0),
    			},
    			SpaceChargePrepaid: &tencentcloud.ThpcWorkspacesSpaceChargePrepaidArgs{
    				Period:    pulumi.Float64(12),
    				RenewFlag: pulumi.String("NOTIFY_AND_AUTO_RENEW"),
    			},
    			SystemDisk: &tencentcloud.ThpcWorkspacesSystemDiskArgs{
    				DiskSize: pulumi.Float64(100),
    				DiskType: pulumi.String("CLOUD_HSSD"),
    			},
    			DataDisks: tencentcloud.ThpcWorkspacesDataDiskArray{
    				&tencentcloud.ThpcWorkspacesDataDiskArgs{
    					DiskSize: pulumi.Float64(200),
    					DiskType: pulumi.String("CLOUD_HSSD"),
    					Encrypt:  pulumi.Bool(false),
    				},
    			},
    			VirtualPrivateCloud: &tencentcloud.ThpcWorkspacesVirtualPrivateCloudArgs{
    				VpcId:            vpc.VpcId,
    				SubnetId:         subnet.SubnetId,
    				AsVpcGateway:     pulumi.Bool(false),
    				Ipv6AddressCount: pulumi.Float64(0),
    				PrivateIpAddresses: pulumi.StringArray{
    					pulumi.String("172.16.0.2"),
    				},
    			},
    			InternetAccessible: &tencentcloud.ThpcWorkspacesInternetAccessibleArgs{
    				InternetChargeType:      pulumi.String("BANDWIDTH_PREPAID"),
    				InternetMaxBandwidthOut: pulumi.Float64(200),
    				PublicIpAssigned:        pulumi.Bool(true),
    			},
    			LoginSettings: &tencentcloud.ThpcWorkspacesLoginSettingsArgs{
    				KeyIds: pulumi.StringArray{
    					pulumi.String("skey-qxjpz7uj"),
    				},
    			},
    			EnhancedService: &tencentcloud.ThpcWorkspacesEnhancedServiceArgs{
    				SecurityService: &tencentcloud.ThpcWorkspacesEnhancedServiceSecurityServiceArgs{
    					Enabled: pulumi.Bool(true),
    				},
    				MonitorService: &tencentcloud.ThpcWorkspacesEnhancedServiceMonitorServiceArgs{
    					Enabled: pulumi.Bool(true),
    				},
    				AutomationService: &tencentcloud.ThpcWorkspacesEnhancedServiceAutomationServiceArgs{
    					Enabled: pulumi.Bool(true),
    				},
    			},
    		})
    		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 config = new Config();
        var availabilityZone = config.Get("availabilityZone") ?? "ap-nanjing-1";
        var images = Tencentcloud.GetImages.Invoke(new()
        {
            ImageTypes = new[]
            {
                "PUBLIC_IMAGE",
            },
            OsName = "TencentOS Server 3.1 (TK4) UEFI",
        });
    
        // create vpc
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "172.16.0.0/16",
        });
    
        // create subnet
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            AvailabilityZone = availabilityZone,
            VpcId = vpc.VpcId,
            CidrBlock = "172.16.0.0/24",
            IsMulticast = false,
        });
    
        // create security group
        var exampleSecurityGroup = new Tencentcloud.SecurityGroup("exampleSecurityGroup", new()
        {
            Description = "security group desc.",
            Tags = 
            {
                { "createBy", "Terraform" },
            },
        });
    
        // create thpc workspaces
        var exampleThpcWorkspaces = new Tencentcloud.ThpcWorkspaces("exampleThpcWorkspaces", new()
        {
            SpaceName = "tf-example",
            SpaceChargeType = "UNDERWRITE",
            SpaceType = "96A.96XLARGE2304",
            HpcClusterId = "hpc-l9anqcbl",
            ImageId = images.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
            SecurityGroupIds = new[]
            {
                exampleSecurityGroup.SecurityGroupId,
            },
            Placement = new Tencentcloud.Inputs.ThpcWorkspacesPlacementArgs
            {
                Zone = availabilityZone,
                ProjectId = 0,
            },
            SpaceChargePrepaid = new Tencentcloud.Inputs.ThpcWorkspacesSpaceChargePrepaidArgs
            {
                Period = 12,
                RenewFlag = "NOTIFY_AND_AUTO_RENEW",
            },
            SystemDisk = new Tencentcloud.Inputs.ThpcWorkspacesSystemDiskArgs
            {
                DiskSize = 100,
                DiskType = "CLOUD_HSSD",
            },
            DataDisks = new[]
            {
                new Tencentcloud.Inputs.ThpcWorkspacesDataDiskArgs
                {
                    DiskSize = 200,
                    DiskType = "CLOUD_HSSD",
                    Encrypt = false,
                },
            },
            VirtualPrivateCloud = new Tencentcloud.Inputs.ThpcWorkspacesVirtualPrivateCloudArgs
            {
                VpcId = vpc.VpcId,
                SubnetId = subnet.SubnetId,
                AsVpcGateway = false,
                Ipv6AddressCount = 0,
                PrivateIpAddresses = new[]
                {
                    "172.16.0.2",
                },
            },
            InternetAccessible = new Tencentcloud.Inputs.ThpcWorkspacesInternetAccessibleArgs
            {
                InternetChargeType = "BANDWIDTH_PREPAID",
                InternetMaxBandwidthOut = 200,
                PublicIpAssigned = true,
            },
            LoginSettings = new Tencentcloud.Inputs.ThpcWorkspacesLoginSettingsArgs
            {
                KeyIds = new[]
                {
                    "skey-qxjpz7uj",
                },
            },
            EnhancedService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceArgs
            {
                SecurityService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceSecurityServiceArgs
                {
                    Enabled = true,
                },
                MonitorService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceMonitorServiceArgs
                {
                    Enabled = true,
                },
                AutomationService = new Tencentcloud.Inputs.ThpcWorkspacesEnhancedServiceAutomationServiceArgs
                {
                    Enabled = true,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetImagesArgs;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.SecurityGroup;
    import com.pulumi.tencentcloud.SecurityGroupArgs;
    import com.pulumi.tencentcloud.ThpcWorkspaces;
    import com.pulumi.tencentcloud.ThpcWorkspacesArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesPlacementArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesSpaceChargePrepaidArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesSystemDiskArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesDataDiskArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesVirtualPrivateCloudArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesInternetAccessibleArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesLoginSettingsArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceSecurityServiceArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceMonitorServiceArgs;
    import com.pulumi.tencentcloud.inputs.ThpcWorkspacesEnhancedServiceAutomationServiceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var availabilityZone = config.get("availabilityZone").orElse("ap-nanjing-1");
            final var images = TencentcloudFunctions.getImages(GetImagesArgs.builder()
                .imageTypes("PUBLIC_IMAGE")
                .osName("TencentOS Server 3.1 (TK4) UEFI")
                .build());
    
            // create vpc
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("172.16.0.0/16")
                .build());
    
            // create subnet
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .availabilityZone(availabilityZone)
                .vpcId(vpc.vpcId())
                .cidrBlock("172.16.0.0/24")
                .isMulticast(false)
                .build());
    
            // create security group
            var exampleSecurityGroup = new SecurityGroup("exampleSecurityGroup", SecurityGroupArgs.builder()
                .description("security group desc.")
                .tags(Map.of("createBy", "Terraform"))
                .build());
    
            // create thpc workspaces
            var exampleThpcWorkspaces = new ThpcWorkspaces("exampleThpcWorkspaces", ThpcWorkspacesArgs.builder()
                .spaceName("tf-example")
                .spaceChargeType("UNDERWRITE")
                .spaceType("96A.96XLARGE2304")
                .hpcClusterId("hpc-l9anqcbl")
                .imageId(images.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
                .securityGroupIds(exampleSecurityGroup.securityGroupId())
                .placement(ThpcWorkspacesPlacementArgs.builder()
                    .zone(availabilityZone)
                    .projectId(0)
                    .build())
                .spaceChargePrepaid(ThpcWorkspacesSpaceChargePrepaidArgs.builder()
                    .period(12)
                    .renewFlag("NOTIFY_AND_AUTO_RENEW")
                    .build())
                .systemDisk(ThpcWorkspacesSystemDiskArgs.builder()
                    .diskSize(100)
                    .diskType("CLOUD_HSSD")
                    .build())
                .dataDisks(ThpcWorkspacesDataDiskArgs.builder()
                    .diskSize(200)
                    .diskType("CLOUD_HSSD")
                    .encrypt(false)
                    .build())
                .virtualPrivateCloud(ThpcWorkspacesVirtualPrivateCloudArgs.builder()
                    .vpcId(vpc.vpcId())
                    .subnetId(subnet.subnetId())
                    .asVpcGateway(false)
                    .ipv6AddressCount(0)
                    .privateIpAddresses("172.16.0.2")
                    .build())
                .internetAccessible(ThpcWorkspacesInternetAccessibleArgs.builder()
                    .internetChargeType("BANDWIDTH_PREPAID")
                    .internetMaxBandwidthOut(200)
                    .publicIpAssigned(true)
                    .build())
                .loginSettings(ThpcWorkspacesLoginSettingsArgs.builder()
                    .keyIds("skey-qxjpz7uj")
                    .build())
                .enhancedService(ThpcWorkspacesEnhancedServiceArgs.builder()
                    .securityService(ThpcWorkspacesEnhancedServiceSecurityServiceArgs.builder()
                        .enabled(true)
                        .build())
                    .monitorService(ThpcWorkspacesEnhancedServiceMonitorServiceArgs.builder()
                        .enabled(true)
                        .build())
                    .automationService(ThpcWorkspacesEnhancedServiceAutomationServiceArgs.builder()
                        .enabled(true)
                        .build())
                    .build())
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: string
        default: ap-nanjing-1
    resources:
      # create vpc
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 172.16.0.0/16
      # create subnet
      subnet:
        type: tencentcloud:Subnet
        properties:
          availabilityZone: ${availabilityZone}
          vpcId: ${vpc.vpcId}
          cidrBlock: 172.16.0.0/24
          isMulticast: false
      # create security group
      exampleSecurityGroup:
        type: tencentcloud:SecurityGroup
        properties:
          description: security group desc.
          tags:
            createBy: Terraform
      # create thpc workspaces
      exampleThpcWorkspaces:
        type: tencentcloud:ThpcWorkspaces
        properties:
          spaceName: tf-example
          spaceChargeType: UNDERWRITE
          spaceType: 96A.96XLARGE2304
          hpcClusterId: hpc-l9anqcbl
          imageId: ${images.images[0].imageId}
          securityGroupIds:
            - ${exampleSecurityGroup.securityGroupId}
          placement:
            zone: ${availabilityZone}
            projectId: 0
          spaceChargePrepaid:
            period: 12
            renewFlag: NOTIFY_AND_AUTO_RENEW
          systemDisk:
            diskSize: 100
            diskType: CLOUD_HSSD
          dataDisks:
            - diskSize: 200
              diskType: CLOUD_HSSD
              encrypt: false
          virtualPrivateCloud:
            vpcId: ${vpc.vpcId}
            subnetId: ${subnet.subnetId}
            asVpcGateway: false
            ipv6AddressCount: 0
            privateIpAddresses:
              - 172.16.0.2
          internetAccessible:
            internetChargeType: BANDWIDTH_PREPAID
            internetMaxBandwidthOut: 200
            publicIpAssigned: true
          loginSettings:
            keyIds:
              - skey-qxjpz7uj
          enhancedService:
            securityService:
              enabled: true
            monitorService:
              enabled: true
            automationService:
              enabled: true
    variables:
      images:
        fn::invoke:
          function: tencentcloud:getImages
          arguments:
            imageTypes:
              - PUBLIC_IMAGE
            osName: TencentOS Server 3.1 (TK4) UEFI
    

    Create ThpcWorkspaces Resource

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

    Constructor syntax

    new ThpcWorkspaces(name: string, args?: ThpcWorkspacesArgs, opts?: CustomResourceOptions);
    @overload
    def ThpcWorkspaces(resource_name: str,
                       args: Optional[ThpcWorkspacesArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ThpcWorkspaces(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       cam_role_name: Optional[str] = None,
                       client_token: Optional[str] = None,
                       data_disks: Optional[Sequence[ThpcWorkspacesDataDiskArgs]] = None,
                       disaster_recover_group_id: Optional[str] = None,
                       enhanced_service: Optional[ThpcWorkspacesEnhancedServiceArgs] = None,
                       host_name: Optional[str] = None,
                       hpc_cluster_id: Optional[str] = None,
                       image_id: Optional[str] = None,
                       internet_accessible: Optional[ThpcWorkspacesInternetAccessibleArgs] = None,
                       login_settings: Optional[ThpcWorkspacesLoginSettingsArgs] = None,
                       placement: Optional[ThpcWorkspacesPlacementArgs] = None,
                       security_group_ids: Optional[Sequence[str]] = None,
                       space_charge_prepaid: Optional[ThpcWorkspacesSpaceChargePrepaidArgs] = None,
                       space_charge_type: Optional[str] = None,
                       space_name: Optional[str] = None,
                       space_type: Optional[str] = None,
                       system_disk: Optional[ThpcWorkspacesSystemDiskArgs] = None,
                       tag_specifications: Optional[Sequence[ThpcWorkspacesTagSpecificationArgs]] = None,
                       thpc_workspaces_id: Optional[str] = None,
                       user_data: Optional[str] = None,
                       virtual_private_cloud: Optional[ThpcWorkspacesVirtualPrivateCloudArgs] = None)
    func NewThpcWorkspaces(ctx *Context, name string, args *ThpcWorkspacesArgs, opts ...ResourceOption) (*ThpcWorkspaces, error)
    public ThpcWorkspaces(string name, ThpcWorkspacesArgs? args = null, CustomResourceOptions? opts = null)
    public ThpcWorkspaces(String name, ThpcWorkspacesArgs args)
    public ThpcWorkspaces(String name, ThpcWorkspacesArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ThpcWorkspaces
    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 ThpcWorkspacesArgs
    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 ThpcWorkspacesArgs
    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 ThpcWorkspacesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ThpcWorkspacesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ThpcWorkspacesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    CamRoleName string
    CAM role name authorized to access.
    ClientToken string
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    DataDisks List<ThpcWorkspacesDataDisk>
    Workspace data disk information.
    DisasterRecoverGroupId string
    Placement Group ID.
    EnhancedService ThpcWorkspacesEnhancedService
    Enhanced Services.
    HostName string
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    HpcClusterId string
    Hyper Computing Cluster ID.
    ImageId string
    Image ID.
    InternetAccessible ThpcWorkspacesInternetAccessible
    Public network bandwidth settings.
    LoginSettings ThpcWorkspacesLoginSettings
    Workspace Login Settings.
    Placement ThpcWorkspacesPlacement
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    SecurityGroupIds List<string>
    Workspace Security Group.
    SpaceChargePrepaid ThpcWorkspacesSpaceChargePrepaid
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    SpaceChargeType string
    Workspace billing type.
    SpaceName string
    Workspace Display Name.
    SpaceType string
    Workspace specifications.
    SystemDisk ThpcWorkspacesSystemDisk
    Workspace system disk information.
    TagSpecifications List<ThpcWorkspacesTagSpecification>
    Tag Description List.
    ThpcWorkspacesId string
    ID of the resource.
    UserData string
    User Data for Workspace.
    VirtualPrivateCloud ThpcWorkspacesVirtualPrivateCloud
    VPC related information.
    CamRoleName string
    CAM role name authorized to access.
    ClientToken string
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    DataDisks []ThpcWorkspacesDataDiskArgs
    Workspace data disk information.
    DisasterRecoverGroupId string
    Placement Group ID.
    EnhancedService ThpcWorkspacesEnhancedServiceArgs
    Enhanced Services.
    HostName string
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    HpcClusterId string
    Hyper Computing Cluster ID.
    ImageId string
    Image ID.
    InternetAccessible ThpcWorkspacesInternetAccessibleArgs
    Public network bandwidth settings.
    LoginSettings ThpcWorkspacesLoginSettingsArgs
    Workspace Login Settings.
    Placement ThpcWorkspacesPlacementArgs
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    SecurityGroupIds []string
    Workspace Security Group.
    SpaceChargePrepaid ThpcWorkspacesSpaceChargePrepaidArgs
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    SpaceChargeType string
    Workspace billing type.
    SpaceName string
    Workspace Display Name.
    SpaceType string
    Workspace specifications.
    SystemDisk ThpcWorkspacesSystemDiskArgs
    Workspace system disk information.
    TagSpecifications []ThpcWorkspacesTagSpecificationArgs
    Tag Description List.
    ThpcWorkspacesId string
    ID of the resource.
    UserData string
    User Data for Workspace.
    VirtualPrivateCloud ThpcWorkspacesVirtualPrivateCloudArgs
    VPC related information.
    camRoleName String
    CAM role name authorized to access.
    clientToken String
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    dataDisks List<ThpcWorkspacesDataDisk>
    Workspace data disk information.
    disasterRecoverGroupId String
    Placement Group ID.
    enhancedService ThpcWorkspacesEnhancedService
    Enhanced Services.
    hostName String
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    hpcClusterId String
    Hyper Computing Cluster ID.
    imageId String
    Image ID.
    internetAccessible ThpcWorkspacesInternetAccessible
    Public network bandwidth settings.
    loginSettings ThpcWorkspacesLoginSettings
    Workspace Login Settings.
    placement ThpcWorkspacesPlacement
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    securityGroupIds List<String>
    Workspace Security Group.
    spaceChargePrepaid ThpcWorkspacesSpaceChargePrepaid
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    spaceChargeType String
    Workspace billing type.
    spaceName String
    Workspace Display Name.
    spaceType String
    Workspace specifications.
    systemDisk ThpcWorkspacesSystemDisk
    Workspace system disk information.
    tagSpecifications List<ThpcWorkspacesTagSpecification>
    Tag Description List.
    thpcWorkspacesId String
    ID of the resource.
    userData String
    User Data for Workspace.
    virtualPrivateCloud ThpcWorkspacesVirtualPrivateCloud
    VPC related information.
    camRoleName string
    CAM role name authorized to access.
    clientToken string
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    dataDisks ThpcWorkspacesDataDisk[]
    Workspace data disk information.
    disasterRecoverGroupId string
    Placement Group ID.
    enhancedService ThpcWorkspacesEnhancedService
    Enhanced Services.
    hostName string
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    hpcClusterId string
    Hyper Computing Cluster ID.
    imageId string
    Image ID.
    internetAccessible ThpcWorkspacesInternetAccessible
    Public network bandwidth settings.
    loginSettings ThpcWorkspacesLoginSettings
    Workspace Login Settings.
    placement ThpcWorkspacesPlacement
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    securityGroupIds string[]
    Workspace Security Group.
    spaceChargePrepaid ThpcWorkspacesSpaceChargePrepaid
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    spaceChargeType string
    Workspace billing type.
    spaceName string
    Workspace Display Name.
    spaceType string
    Workspace specifications.
    systemDisk ThpcWorkspacesSystemDisk
    Workspace system disk information.
    tagSpecifications ThpcWorkspacesTagSpecification[]
    Tag Description List.
    thpcWorkspacesId string
    ID of the resource.
    userData string
    User Data for Workspace.
    virtualPrivateCloud ThpcWorkspacesVirtualPrivateCloud
    VPC related information.
    cam_role_name str
    CAM role name authorized to access.
    client_token str
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    data_disks Sequence[ThpcWorkspacesDataDiskArgs]
    Workspace data disk information.
    disaster_recover_group_id str
    Placement Group ID.
    enhanced_service ThpcWorkspacesEnhancedServiceArgs
    Enhanced Services.
    host_name str
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    hpc_cluster_id str
    Hyper Computing Cluster ID.
    image_id str
    Image ID.
    internet_accessible ThpcWorkspacesInternetAccessibleArgs
    Public network bandwidth settings.
    login_settings ThpcWorkspacesLoginSettingsArgs
    Workspace Login Settings.
    placement ThpcWorkspacesPlacementArgs
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    security_group_ids Sequence[str]
    Workspace Security Group.
    space_charge_prepaid ThpcWorkspacesSpaceChargePrepaidArgs
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    space_charge_type str
    Workspace billing type.
    space_name str
    Workspace Display Name.
    space_type str
    Workspace specifications.
    system_disk ThpcWorkspacesSystemDiskArgs
    Workspace system disk information.
    tag_specifications Sequence[ThpcWorkspacesTagSpecificationArgs]
    Tag Description List.
    thpc_workspaces_id str
    ID of the resource.
    user_data str
    User Data for Workspace.
    virtual_private_cloud ThpcWorkspacesVirtualPrivateCloudArgs
    VPC related information.
    camRoleName String
    CAM role name authorized to access.
    clientToken String
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    dataDisks List<Property Map>
    Workspace data disk information.
    disasterRecoverGroupId String
    Placement Group ID.
    enhancedService Property Map
    Enhanced Services.
    hostName String
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    hpcClusterId String
    Hyper Computing Cluster ID.
    imageId String
    Image ID.
    internetAccessible Property Map
    Public network bandwidth settings.
    loginSettings Property Map
    Workspace Login Settings.
    placement Property Map
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    securityGroupIds List<String>
    Workspace Security Group.
    spaceChargePrepaid Property Map
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    spaceChargeType String
    Workspace billing type.
    spaceName String
    Workspace Display Name.
    spaceType String
    Workspace specifications.
    systemDisk Property Map
    Workspace system disk information.
    tagSpecifications List<Property Map>
    Tag Description List.
    thpcWorkspacesId String
    ID of the resource.
    userData String
    User Data for Workspace.
    virtualPrivateCloud Property Map
    VPC related information.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    CVM instance ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    CVM instance ID.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    CVM instance ID.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceId string
    CVM instance ID.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_id str
    CVM instance ID.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    CVM instance ID.

    Look up Existing ThpcWorkspaces Resource

    Get an existing ThpcWorkspaces 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?: ThpcWorkspacesState, opts?: CustomResourceOptions): ThpcWorkspaces
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cam_role_name: Optional[str] = None,
            client_token: Optional[str] = None,
            data_disks: Optional[Sequence[ThpcWorkspacesDataDiskArgs]] = None,
            disaster_recover_group_id: Optional[str] = None,
            enhanced_service: Optional[ThpcWorkspacesEnhancedServiceArgs] = None,
            host_name: Optional[str] = None,
            hpc_cluster_id: Optional[str] = None,
            image_id: Optional[str] = None,
            internet_accessible: Optional[ThpcWorkspacesInternetAccessibleArgs] = None,
            login_settings: Optional[ThpcWorkspacesLoginSettingsArgs] = None,
            placement: Optional[ThpcWorkspacesPlacementArgs] = None,
            resource_id: Optional[str] = None,
            security_group_ids: Optional[Sequence[str]] = None,
            space_charge_prepaid: Optional[ThpcWorkspacesSpaceChargePrepaidArgs] = None,
            space_charge_type: Optional[str] = None,
            space_name: Optional[str] = None,
            space_type: Optional[str] = None,
            system_disk: Optional[ThpcWorkspacesSystemDiskArgs] = None,
            tag_specifications: Optional[Sequence[ThpcWorkspacesTagSpecificationArgs]] = None,
            thpc_workspaces_id: Optional[str] = None,
            user_data: Optional[str] = None,
            virtual_private_cloud: Optional[ThpcWorkspacesVirtualPrivateCloudArgs] = None) -> ThpcWorkspaces
    func GetThpcWorkspaces(ctx *Context, name string, id IDInput, state *ThpcWorkspacesState, opts ...ResourceOption) (*ThpcWorkspaces, error)
    public static ThpcWorkspaces Get(string name, Input<string> id, ThpcWorkspacesState? state, CustomResourceOptions? opts = null)
    public static ThpcWorkspaces get(String name, Output<String> id, ThpcWorkspacesState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ThpcWorkspaces    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:
    CamRoleName string
    CAM role name authorized to access.
    ClientToken string
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    DataDisks List<ThpcWorkspacesDataDisk>
    Workspace data disk information.
    DisasterRecoverGroupId string
    Placement Group ID.
    EnhancedService ThpcWorkspacesEnhancedService
    Enhanced Services.
    HostName string
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    HpcClusterId string
    Hyper Computing Cluster ID.
    ImageId string
    Image ID.
    InternetAccessible ThpcWorkspacesInternetAccessible
    Public network bandwidth settings.
    LoginSettings ThpcWorkspacesLoginSettings
    Workspace Login Settings.
    Placement ThpcWorkspacesPlacement
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    ResourceId string
    CVM instance ID.
    SecurityGroupIds List<string>
    Workspace Security Group.
    SpaceChargePrepaid ThpcWorkspacesSpaceChargePrepaid
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    SpaceChargeType string
    Workspace billing type.
    SpaceName string
    Workspace Display Name.
    SpaceType string
    Workspace specifications.
    SystemDisk ThpcWorkspacesSystemDisk
    Workspace system disk information.
    TagSpecifications List<ThpcWorkspacesTagSpecification>
    Tag Description List.
    ThpcWorkspacesId string
    ID of the resource.
    UserData string
    User Data for Workspace.
    VirtualPrivateCloud ThpcWorkspacesVirtualPrivateCloud
    VPC related information.
    CamRoleName string
    CAM role name authorized to access.
    ClientToken string
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    DataDisks []ThpcWorkspacesDataDiskArgs
    Workspace data disk information.
    DisasterRecoverGroupId string
    Placement Group ID.
    EnhancedService ThpcWorkspacesEnhancedServiceArgs
    Enhanced Services.
    HostName string
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    HpcClusterId string
    Hyper Computing Cluster ID.
    ImageId string
    Image ID.
    InternetAccessible ThpcWorkspacesInternetAccessibleArgs
    Public network bandwidth settings.
    LoginSettings ThpcWorkspacesLoginSettingsArgs
    Workspace Login Settings.
    Placement ThpcWorkspacesPlacementArgs
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    ResourceId string
    CVM instance ID.
    SecurityGroupIds []string
    Workspace Security Group.
    SpaceChargePrepaid ThpcWorkspacesSpaceChargePrepaidArgs
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    SpaceChargeType string
    Workspace billing type.
    SpaceName string
    Workspace Display Name.
    SpaceType string
    Workspace specifications.
    SystemDisk ThpcWorkspacesSystemDiskArgs
    Workspace system disk information.
    TagSpecifications []ThpcWorkspacesTagSpecificationArgs
    Tag Description List.
    ThpcWorkspacesId string
    ID of the resource.
    UserData string
    User Data for Workspace.
    VirtualPrivateCloud ThpcWorkspacesVirtualPrivateCloudArgs
    VPC related information.
    camRoleName String
    CAM role name authorized to access.
    clientToken String
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    dataDisks List<ThpcWorkspacesDataDisk>
    Workspace data disk information.
    disasterRecoverGroupId String
    Placement Group ID.
    enhancedService ThpcWorkspacesEnhancedService
    Enhanced Services.
    hostName String
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    hpcClusterId String
    Hyper Computing Cluster ID.
    imageId String
    Image ID.
    internetAccessible ThpcWorkspacesInternetAccessible
    Public network bandwidth settings.
    loginSettings ThpcWorkspacesLoginSettings
    Workspace Login Settings.
    placement ThpcWorkspacesPlacement
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    resourceId String
    CVM instance ID.
    securityGroupIds List<String>
    Workspace Security Group.
    spaceChargePrepaid ThpcWorkspacesSpaceChargePrepaid
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    spaceChargeType String
    Workspace billing type.
    spaceName String
    Workspace Display Name.
    spaceType String
    Workspace specifications.
    systemDisk ThpcWorkspacesSystemDisk
    Workspace system disk information.
    tagSpecifications List<ThpcWorkspacesTagSpecification>
    Tag Description List.
    thpcWorkspacesId String
    ID of the resource.
    userData String
    User Data for Workspace.
    virtualPrivateCloud ThpcWorkspacesVirtualPrivateCloud
    VPC related information.
    camRoleName string
    CAM role name authorized to access.
    clientToken string
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    dataDisks ThpcWorkspacesDataDisk[]
    Workspace data disk information.
    disasterRecoverGroupId string
    Placement Group ID.
    enhancedService ThpcWorkspacesEnhancedService
    Enhanced Services.
    hostName string
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    hpcClusterId string
    Hyper Computing Cluster ID.
    imageId string
    Image ID.
    internetAccessible ThpcWorkspacesInternetAccessible
    Public network bandwidth settings.
    loginSettings ThpcWorkspacesLoginSettings
    Workspace Login Settings.
    placement ThpcWorkspacesPlacement
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    resourceId string
    CVM instance ID.
    securityGroupIds string[]
    Workspace Security Group.
    spaceChargePrepaid ThpcWorkspacesSpaceChargePrepaid
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    spaceChargeType string
    Workspace billing type.
    spaceName string
    Workspace Display Name.
    spaceType string
    Workspace specifications.
    systemDisk ThpcWorkspacesSystemDisk
    Workspace system disk information.
    tagSpecifications ThpcWorkspacesTagSpecification[]
    Tag Description List.
    thpcWorkspacesId string
    ID of the resource.
    userData string
    User Data for Workspace.
    virtualPrivateCloud ThpcWorkspacesVirtualPrivateCloud
    VPC related information.
    cam_role_name str
    CAM role name authorized to access.
    client_token str
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    data_disks Sequence[ThpcWorkspacesDataDiskArgs]
    Workspace data disk information.
    disaster_recover_group_id str
    Placement Group ID.
    enhanced_service ThpcWorkspacesEnhancedServiceArgs
    Enhanced Services.
    host_name str
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    hpc_cluster_id str
    Hyper Computing Cluster ID.
    image_id str
    Image ID.
    internet_accessible ThpcWorkspacesInternetAccessibleArgs
    Public network bandwidth settings.
    login_settings ThpcWorkspacesLoginSettingsArgs
    Workspace Login Settings.
    placement ThpcWorkspacesPlacementArgs
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    resource_id str
    CVM instance ID.
    security_group_ids Sequence[str]
    Workspace Security Group.
    space_charge_prepaid ThpcWorkspacesSpaceChargePrepaidArgs
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    space_charge_type str
    Workspace billing type.
    space_name str
    Workspace Display Name.
    space_type str
    Workspace specifications.
    system_disk ThpcWorkspacesSystemDiskArgs
    Workspace system disk information.
    tag_specifications Sequence[ThpcWorkspacesTagSpecificationArgs]
    Tag Description List.
    thpc_workspaces_id str
    ID of the resource.
    user_data str
    User Data for Workspace.
    virtual_private_cloud ThpcWorkspacesVirtualPrivateCloudArgs
    VPC related information.
    camRoleName String
    CAM role name authorized to access.
    clientToken String
    A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
    dataDisks List<Property Map>
    Workspace data disk information.
    disasterRecoverGroupId String
    Placement Group ID.
    enhancedService Property Map
    Enhanced Services.
    hostName String
    The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
    hpcClusterId String
    Hyper Computing Cluster ID.
    imageId String
    Image ID.
    internetAccessible Property Map
    Public network bandwidth settings.
    loginSettings Property Map
    Workspace Login Settings.
    placement Property Map
    The position of the instance. This parameter allows you to specify attributes such as the availability zone, project, and host machine (when creating a sub-instance on CDH) that the instance belongs to. Note: If you do not specify the LaunchTemplate parameter, Placement is a mandatory parameter. If both Placement and LaunchTemplate are passed, the values in Placement override the corresponding values in LaunchTemplate by default.
    resourceId String
    CVM instance ID.
    securityGroupIds List<String>
    Workspace Security Group.
    spaceChargePrepaid Property Map
    Prepaid mode: This refers to the parameters related to the annual and monthly subscription. By this parameter, you can specify the purchase duration of the prepaid instances, whether to set auto-renewal, and other attributes. If the instance's billing mode is prepaid, this parameter is required.
    spaceChargeType String
    Workspace billing type.
    spaceName String
    Workspace Display Name.
    spaceType String
    Workspace specifications.
    systemDisk Property Map
    Workspace system disk information.
    tagSpecifications List<Property Map>
    Tag Description List.
    thpcWorkspacesId String
    ID of the resource.
    userData String
    User Data for Workspace.
    virtualPrivateCloud Property Map
    VPC related information.

    Supporting Types

    ThpcWorkspacesDataDisk, ThpcWorkspacesDataDiskArgs

    BurstPerformance bool
    Sudden performance. PS: During testing.
    DeleteWithInstance bool
    Decides whether the disk is deleted with instance(only applied to CLOUD_BASIC, CLOUD_SSD and CLOUD_PREMIUM disk with POSTPAID_BY_HOUR instance), Default is true.
    DiskId string
    Data disk ID used to initialize the data disk. When data disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    DiskSize double
    Size of the data disk, and unit is GB.
    DiskType string
    Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
    Encrypt bool
    Decides whether the disk is encrypted. Default is false.
    KmsKeyId string
    Kms key ID.
    SnapshotId string
    Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
    ThroughputPerformance double
    Add extra performance to the data disk. Only works when disk type is CLOUD_TSSD or CLOUD_HSSD.
    BurstPerformance bool
    Sudden performance. PS: During testing.
    DeleteWithInstance bool
    Decides whether the disk is deleted with instance(only applied to CLOUD_BASIC, CLOUD_SSD and CLOUD_PREMIUM disk with POSTPAID_BY_HOUR instance), Default is true.
    DiskId string
    Data disk ID used to initialize the data disk. When data disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    DiskSize float64
    Size of the data disk, and unit is GB.
    DiskType string
    Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
    Encrypt bool
    Decides whether the disk is encrypted. Default is false.
    KmsKeyId string
    Kms key ID.
    SnapshotId string
    Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
    ThroughputPerformance float64
    Add extra performance to the data disk. Only works when disk type is CLOUD_TSSD or CLOUD_HSSD.
    burstPerformance Boolean
    Sudden performance. PS: During testing.
    deleteWithInstance Boolean
    Decides whether the disk is deleted with instance(only applied to CLOUD_BASIC, CLOUD_SSD and CLOUD_PREMIUM disk with POSTPAID_BY_HOUR instance), Default is true.
    diskId String
    Data disk ID used to initialize the data disk. When data disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    diskSize Double
    Size of the data disk, and unit is GB.
    diskType String
    Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
    encrypt Boolean
    Decides whether the disk is encrypted. Default is false.
    kmsKeyId String
    Kms key ID.
    snapshotId String
    Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
    throughputPerformance Double
    Add extra performance to the data disk. Only works when disk type is CLOUD_TSSD or CLOUD_HSSD.
    burstPerformance boolean
    Sudden performance. PS: During testing.
    deleteWithInstance boolean
    Decides whether the disk is deleted with instance(only applied to CLOUD_BASIC, CLOUD_SSD and CLOUD_PREMIUM disk with POSTPAID_BY_HOUR instance), Default is true.
    diskId string
    Data disk ID used to initialize the data disk. When data disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    diskSize number
    Size of the data disk, and unit is GB.
    diskType string
    Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
    encrypt boolean
    Decides whether the disk is encrypted. Default is false.
    kmsKeyId string
    Kms key ID.
    snapshotId string
    Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
    throughputPerformance number
    Add extra performance to the data disk. Only works when disk type is CLOUD_TSSD or CLOUD_HSSD.
    burst_performance bool
    Sudden performance. PS: During testing.
    delete_with_instance bool
    Decides whether the disk is deleted with instance(only applied to CLOUD_BASIC, CLOUD_SSD and CLOUD_PREMIUM disk with POSTPAID_BY_HOUR instance), Default is true.
    disk_id str
    Data disk ID used to initialize the data disk. When data disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    disk_size float
    Size of the data disk, and unit is GB.
    disk_type str
    Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
    encrypt bool
    Decides whether the disk is encrypted. Default is false.
    kms_key_id str
    Kms key ID.
    snapshot_id str
    Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
    throughput_performance float
    Add extra performance to the data disk. Only works when disk type is CLOUD_TSSD or CLOUD_HSSD.
    burstPerformance Boolean
    Sudden performance. PS: During testing.
    deleteWithInstance Boolean
    Decides whether the disk is deleted with instance(only applied to CLOUD_BASIC, CLOUD_SSD and CLOUD_PREMIUM disk with POSTPAID_BY_HOUR instance), Default is true.
    diskId String
    Data disk ID used to initialize the data disk. When data disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    diskSize Number
    Size of the data disk, and unit is GB.
    diskType String
    Data disk type. For more information about limits on different data disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
    encrypt Boolean
    Decides whether the disk is encrypted. Default is false.
    kmsKeyId String
    Kms key ID.
    snapshotId String
    Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
    throughputPerformance Number
    Add extra performance to the data disk. Only works when disk type is CLOUD_TSSD or CLOUD_HSSD.

    ThpcWorkspacesEnhancedService, ThpcWorkspacesEnhancedServiceArgs

    AutomationService ThpcWorkspacesEnhancedServiceAutomationService
    Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
    MonitorService ThpcWorkspacesEnhancedServiceMonitorService
    Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
    SecurityService ThpcWorkspacesEnhancedServiceSecurityService
    Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.
    AutomationService ThpcWorkspacesEnhancedServiceAutomationService
    Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
    MonitorService ThpcWorkspacesEnhancedServiceMonitorService
    Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
    SecurityService ThpcWorkspacesEnhancedServiceSecurityService
    Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.
    automationService ThpcWorkspacesEnhancedServiceAutomationService
    Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
    monitorService ThpcWorkspacesEnhancedServiceMonitorService
    Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
    securityService ThpcWorkspacesEnhancedServiceSecurityService
    Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.
    automationService ThpcWorkspacesEnhancedServiceAutomationService
    Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
    monitorService ThpcWorkspacesEnhancedServiceMonitorService
    Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
    securityService ThpcWorkspacesEnhancedServiceSecurityService
    Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.
    automation_service ThpcWorkspacesEnhancedServiceAutomationService
    Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
    monitor_service ThpcWorkspacesEnhancedServiceMonitorService
    Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
    security_service ThpcWorkspacesEnhancedServiceSecurityService
    Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.
    automationService Property Map
    Enable the TencentCloud Automation Tools (TAT) service. If this parameter is not specified, the cloud automation tools service will be enabled by default.
    monitorService Property Map
    Activate Tencent Cloud Observable Platform service. If this parameter is not specified, the Tencent Cloud Observable Platform service will be enabled by default.
    securityService Property Map
    Activate cloud security services. If this parameter is not specified, cloud security services will be enabled by default.

    ThpcWorkspacesEnhancedServiceAutomationService, ThpcWorkspacesEnhancedServiceAutomationServiceArgs

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

    ThpcWorkspacesEnhancedServiceMonitorService, ThpcWorkspacesEnhancedServiceMonitorServiceArgs

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

    ThpcWorkspacesEnhancedServiceSecurityService, ThpcWorkspacesEnhancedServiceSecurityServiceArgs

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

    ThpcWorkspacesInternetAccessible, ThpcWorkspacesInternetAccessibleArgs

    BandwidthPackageId string
    Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    InternetChargeType string
    Internet charge type of the instance, Valid values are BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set when allocate_public_ip is false.
    InternetMaxBandwidthOut double
    Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when allocate_public_ip is false.
    PublicIpAssigned bool
    Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
    BandwidthPackageId string
    Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    InternetChargeType string
    Internet charge type of the instance, Valid values are BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set when allocate_public_ip is false.
    InternetMaxBandwidthOut float64
    Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when allocate_public_ip is false.
    PublicIpAssigned bool
    Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
    bandwidthPackageId String
    Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    internetChargeType String
    Internet charge type of the instance, Valid values are BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set when allocate_public_ip is false.
    internetMaxBandwidthOut Double
    Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when allocate_public_ip is false.
    publicIpAssigned Boolean
    Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
    bandwidthPackageId string
    Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    internetChargeType string
    Internet charge type of the instance, Valid values are BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set when allocate_public_ip is false.
    internetMaxBandwidthOut number
    Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when allocate_public_ip is false.
    publicIpAssigned boolean
    Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
    bandwidth_package_id str
    Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    internet_charge_type str
    Internet charge type of the instance, Valid values are BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set when allocate_public_ip is false.
    internet_max_bandwidth_out float
    Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when allocate_public_ip is false.
    public_ip_assigned bool
    Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
    bandwidthPackageId String
    Bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    internetChargeType String
    Internet charge type of the instance, Valid values are BANDWIDTH_PREPAID, TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set when allocate_public_ip is false.
    internetMaxBandwidthOut Number
    Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when allocate_public_ip is false.
    publicIpAssigned Boolean
    Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.

    ThpcWorkspacesLoginSettings, ThpcWorkspacesLoginSettingsArgs

    KeyIds List<string>
    The key pair to use for the instance, it looks like skey-16jig7tx. Modifying will cause the instance reset.
    Password string
    Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
    KeyIds []string
    The key pair to use for the instance, it looks like skey-16jig7tx. Modifying will cause the instance reset.
    Password string
    Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
    keyIds List<String>
    The key pair to use for the instance, it looks like skey-16jig7tx. Modifying will cause the instance reset.
    password String
    Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
    keyIds string[]
    The key pair to use for the instance, it looks like skey-16jig7tx. Modifying will cause the instance reset.
    password string
    Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
    key_ids Sequence[str]
    The key pair to use for the instance, it looks like skey-16jig7tx. Modifying will cause the instance reset.
    password str
    Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
    keyIds List<String>
    The key pair to use for the instance, it looks like skey-16jig7tx. Modifying will cause the instance reset.
    password String
    Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.

    ThpcWorkspacesPlacement, ThpcWorkspacesPlacementArgs

    Zone string
    The available zone for the CVM instance.
    ProjectId double
    The project the instance belongs to, default to 0.
    Zone string
    The available zone for the CVM instance.
    ProjectId float64
    The project the instance belongs to, default to 0.
    zone String
    The available zone for the CVM instance.
    projectId Double
    The project the instance belongs to, default to 0.
    zone string
    The available zone for the CVM instance.
    projectId number
    The project the instance belongs to, default to 0.
    zone str
    The available zone for the CVM instance.
    project_id float
    The project the instance belongs to, default to 0.
    zone String
    The available zone for the CVM instance.
    projectId Number
    The project the instance belongs to, default to 0.

    ThpcWorkspacesSpaceChargePrepaid, ThpcWorkspacesSpaceChargePrepaidArgs

    Period double
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 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. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    Period float64
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 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. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    period Double
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 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. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    period number
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 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. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    period float
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 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. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    period Number
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 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. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.

    ThpcWorkspacesSystemDisk, ThpcWorkspacesSystemDiskArgs

    DiskId string
    System disk snapshot ID used to initialize the system disk. When system disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    DiskSize double
    Size of the system disk. unit is GB, Default is 50GB.
    DiskType string
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_BASIC: cloud disk, CLOUD_SSD: cloud SSD disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: Basic SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD. NOTE: If modified, the instance may force stop.
    DiskId string
    System disk snapshot ID used to initialize the system disk. When system disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    DiskSize float64
    Size of the system disk. unit is GB, Default is 50GB.
    DiskType string
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_BASIC: cloud disk, CLOUD_SSD: cloud SSD disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: Basic SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD. NOTE: If modified, the instance may force stop.
    diskId String
    System disk snapshot ID used to initialize the system disk. When system disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    diskSize Double
    Size of the system disk. unit is GB, Default is 50GB.
    diskType String
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_BASIC: cloud disk, CLOUD_SSD: cloud SSD disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: Basic SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD. NOTE: If modified, the instance may force stop.
    diskId string
    System disk snapshot ID used to initialize the system disk. When system disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    diskSize number
    Size of the system disk. unit is GB, Default is 50GB.
    diskType string
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_BASIC: cloud disk, CLOUD_SSD: cloud SSD disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: Basic SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD. NOTE: If modified, the instance may force stop.
    disk_id str
    System disk snapshot ID used to initialize the system disk. When system disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    disk_size float
    Size of the system disk. unit is GB, Default is 50GB.
    disk_type str
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_BASIC: cloud disk, CLOUD_SSD: cloud SSD disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: Basic SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD. NOTE: If modified, the instance may force stop.
    diskId String
    System disk snapshot ID used to initialize the system disk. When system disk type is LOCAL_BASIC and LOCAL_SSD, disk id is not supported.
    diskSize Number
    Size of the system disk. unit is GB, Default is 50GB.
    diskType String
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_BASIC: cloud disk, CLOUD_SSD: cloud SSD disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: Basic SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD. NOTE: If modified, the instance may force stop.

    ThpcWorkspacesTagSpecification, ThpcWorkspacesTagSpecificationArgs

    ThpcWorkspacesTagSpecificationTag, ThpcWorkspacesTagSpecificationTagArgs

    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.

    ThpcWorkspacesVirtualPrivateCloud, ThpcWorkspacesVirtualPrivateCloudArgs

    SubnetId string
    The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
    VpcId string
    The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
    AsVpcGateway bool
    Is it used as a public network gateway.
    Ipv6AddressCount double
    IPV6 address count.
    PrivateIpAddresses List<string>
    Array of private ip address.
    SubnetId string
    The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
    VpcId string
    The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
    AsVpcGateway bool
    Is it used as a public network gateway.
    Ipv6AddressCount float64
    IPV6 address count.
    PrivateIpAddresses []string
    Array of private ip address.
    subnetId String
    The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
    vpcId String
    The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
    asVpcGateway Boolean
    Is it used as a public network gateway.
    ipv6AddressCount Double
    IPV6 address count.
    privateIpAddresses List<String>
    Array of private ip address.
    subnetId string
    The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
    vpcId string
    The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
    asVpcGateway boolean
    Is it used as a public network gateway.
    ipv6AddressCount number
    IPV6 address count.
    privateIpAddresses string[]
    Array of private ip address.
    subnet_id str
    The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
    vpc_id str
    The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
    as_vpc_gateway bool
    Is it used as a public network gateway.
    ipv6_address_count float
    IPV6 address count.
    private_ip_addresses Sequence[str]
    Array of private ip address.
    subnetId String
    The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
    vpcId String
    The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
    asVpcGateway Boolean
    Is it used as a public network gateway.
    ipv6AddressCount Number
    IPV6 address count.
    privateIpAddresses List<String>
    Array of private ip address.

    Import

    THPC workspaces can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/thpcWorkspaces:ThpcWorkspaces example wks-gwg3ygz1
    

    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