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

tencentcloud.CwpLicenseOrder

Explore with Pulumi AI

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

    Provides a resource to create a cwp license_order

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CwpLicenseOrder("example", {
        alias: "tf_example",
        licenseNum: 1,
        licenseType: 0,
        projectId: 0,
        regionId: 1,
        tags: {
            createdBy: "terraform",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CwpLicenseOrder("example",
        alias="tf_example",
        license_num=1,
        license_type=0,
        project_id=0,
        region_id=1,
        tags={
            "createdBy": "terraform",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewCwpLicenseOrder(ctx, "example", &tencentcloud.CwpLicenseOrderArgs{
    			Alias:       pulumi.String("tf_example"),
    			LicenseNum:  pulumi.Float64(1),
    			LicenseType: pulumi.Float64(0),
    			ProjectId:   pulumi.Float64(0),
    			RegionId:    pulumi.Float64(1),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.CwpLicenseOrder("example", new()
        {
            Alias = "tf_example",
            LicenseNum = 1,
            LicenseType = 0,
            ProjectId = 0,
            RegionId = 1,
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CwpLicenseOrder;
    import com.pulumi.tencentcloud.CwpLicenseOrderArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new CwpLicenseOrder("example", CwpLicenseOrderArgs.builder()
                .alias("tf_example")
                .licenseNum(1)
                .licenseType(0)
                .projectId(0)
                .regionId(1)
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CwpLicenseOrder
        properties:
          alias: tf_example
          licenseNum: 1
          licenseType: 0
          projectId: 0
          regionId: 1
          tags:
            createdBy: terraform
    

    Create CwpLicenseOrder Resource

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

    Constructor syntax

    new CwpLicenseOrder(name: string, args?: CwpLicenseOrderArgs, opts?: CustomResourceOptions);
    @overload
    def CwpLicenseOrder(resource_name: str,
                        args: Optional[CwpLicenseOrderArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def CwpLicenseOrder(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        alias: Optional[str] = None,
                        cwp_license_order_id: Optional[str] = None,
                        license_num: Optional[float] = None,
                        license_type: Optional[float] = None,
                        project_id: Optional[float] = None,
                        region_id: Optional[float] = None,
                        tags: Optional[Mapping[str, str]] = None)
    func NewCwpLicenseOrder(ctx *Context, name string, args *CwpLicenseOrderArgs, opts ...ResourceOption) (*CwpLicenseOrder, error)
    public CwpLicenseOrder(string name, CwpLicenseOrderArgs? args = null, CustomResourceOptions? opts = null)
    public CwpLicenseOrder(String name, CwpLicenseOrderArgs args)
    public CwpLicenseOrder(String name, CwpLicenseOrderArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CwpLicenseOrder
    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 CwpLicenseOrderArgs
    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 CwpLicenseOrderArgs
    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 CwpLicenseOrderArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CwpLicenseOrderArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CwpLicenseOrderArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Alias string
    Resource alias.
    CwpLicenseOrderId string
    ID of the resource.
    LicenseNum double
    License quantity, Quantity to be purchased.Default is 1.
    LicenseType double
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    ProjectId double
    Project ID. Default is 0.
    RegionId double
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    Tags Dictionary<string, string>
    Tags of the license order.
    Alias string
    Resource alias.
    CwpLicenseOrderId string
    ID of the resource.
    LicenseNum float64
    License quantity, Quantity to be purchased.Default is 1.
    LicenseType float64
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    ProjectId float64
    Project ID. Default is 0.
    RegionId float64
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    Tags map[string]string
    Tags of the license order.
    alias String
    Resource alias.
    cwpLicenseOrderId String
    ID of the resource.
    licenseNum Double
    License quantity, Quantity to be purchased.Default is 1.
    licenseType Double
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    projectId Double
    Project ID. Default is 0.
    regionId Double
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    tags Map<String,String>
    Tags of the license order.
    alias string
    Resource alias.
    cwpLicenseOrderId string
    ID of the resource.
    licenseNum number
    License quantity, Quantity to be purchased.Default is 1.
    licenseType number
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    projectId number
    Project ID. Default is 0.
    regionId number
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    tags {[key: string]: string}
    Tags of the license order.
    alias str
    Resource alias.
    cwp_license_order_id str
    ID of the resource.
    license_num float
    License quantity, Quantity to be purchased.Default is 1.
    license_type float
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    project_id float
    Project ID. Default is 0.
    region_id float
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    tags Mapping[str, str]
    Tags of the license order.
    alias String
    Resource alias.
    cwpLicenseOrderId String
    ID of the resource.
    licenseNum Number
    License quantity, Quantity to be purchased.Default is 1.
    licenseType Number
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    projectId Number
    Project ID. Default is 0.
    regionId Number
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    tags Map<String>
    Tags of the license order.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    LicenseId double
    license id.
    ResourceId string
    resource id.
    Id string
    The provider-assigned unique ID for this managed resource.
    LicenseId float64
    license id.
    ResourceId string
    resource id.
    id String
    The provider-assigned unique ID for this managed resource.
    licenseId Double
    license id.
    resourceId String
    resource id.
    id string
    The provider-assigned unique ID for this managed resource.
    licenseId number
    license id.
    resourceId string
    resource id.
    id str
    The provider-assigned unique ID for this managed resource.
    license_id float
    license id.
    resource_id str
    resource id.
    id String
    The provider-assigned unique ID for this managed resource.
    licenseId Number
    license id.
    resourceId String
    resource id.

    Look up Existing CwpLicenseOrder Resource

    Get an existing CwpLicenseOrder 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?: CwpLicenseOrderState, opts?: CustomResourceOptions): CwpLicenseOrder
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alias: Optional[str] = None,
            cwp_license_order_id: Optional[str] = None,
            license_id: Optional[float] = None,
            license_num: Optional[float] = None,
            license_type: Optional[float] = None,
            project_id: Optional[float] = None,
            region_id: Optional[float] = None,
            resource_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> CwpLicenseOrder
    func GetCwpLicenseOrder(ctx *Context, name string, id IDInput, state *CwpLicenseOrderState, opts ...ResourceOption) (*CwpLicenseOrder, error)
    public static CwpLicenseOrder Get(string name, Input<string> id, CwpLicenseOrderState? state, CustomResourceOptions? opts = null)
    public static CwpLicenseOrder get(String name, Output<String> id, CwpLicenseOrderState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CwpLicenseOrder    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:
    Alias string
    Resource alias.
    CwpLicenseOrderId string
    ID of the resource.
    LicenseId double
    license id.
    LicenseNum double
    License quantity, Quantity to be purchased.Default is 1.
    LicenseType double
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    ProjectId double
    Project ID. Default is 0.
    RegionId double
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    ResourceId string
    resource id.
    Tags Dictionary<string, string>
    Tags of the license order.
    Alias string
    Resource alias.
    CwpLicenseOrderId string
    ID of the resource.
    LicenseId float64
    license id.
    LicenseNum float64
    License quantity, Quantity to be purchased.Default is 1.
    LicenseType float64
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    ProjectId float64
    Project ID. Default is 0.
    RegionId float64
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    ResourceId string
    resource id.
    Tags map[string]string
    Tags of the license order.
    alias String
    Resource alias.
    cwpLicenseOrderId String
    ID of the resource.
    licenseId Double
    license id.
    licenseNum Double
    License quantity, Quantity to be purchased.Default is 1.
    licenseType Double
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    projectId Double
    Project ID. Default is 0.
    regionId Double
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    resourceId String
    resource id.
    tags Map<String,String>
    Tags of the license order.
    alias string
    Resource alias.
    cwpLicenseOrderId string
    ID of the resource.
    licenseId number
    license id.
    licenseNum number
    License quantity, Quantity to be purchased.Default is 1.
    licenseType number
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    projectId number
    Project ID. Default is 0.
    regionId number
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    resourceId string
    resource id.
    tags {[key: string]: string}
    Tags of the license order.
    alias str
    Resource alias.
    cwp_license_order_id str
    ID of the resource.
    license_id float
    license id.
    license_num float
    License quantity, Quantity to be purchased.Default is 1.
    license_type float
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    project_id float
    Project ID. Default is 0.
    region_id float
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    resource_id str
    resource id.
    tags Mapping[str, str]
    Tags of the license order.
    alias String
    Resource alias.
    cwpLicenseOrderId String
    ID of the resource.
    licenseId Number
    license id.
    licenseNum Number
    License quantity, Quantity to be purchased.Default is 1.
    licenseType Number
    LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
    projectId Number
    Project ID. Default is 0.
    regionId Number
    Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
    resourceId String
    resource id.
    tags Map<String>
    Tags of the license order.

    Import

    cwp license_order can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cwpLicenseOrder:CwpLicenseOrder example cwplic-130715d2#1
    

    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