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",
licenseType: 0,
licenseNum: 1,
regionId: 1,
projectId: 0,
tags: {
createdBy: "terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CwpLicenseOrder("example",
alias="tf_example",
license_type=0,
license_num=1,
region_id=1,
project_id=0,
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"),
LicenseType: pulumi.Float64(0),
LicenseNum: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
ProjectId: pulumi.Float64(0),
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",
LicenseType = 0,
LicenseNum = 1,
RegionId = 1,
ProjectId = 0,
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")
.licenseType(0.0)
.licenseNum(1.0)
.regionId(1.0)
.projectId(0.0)
.tags(Map.of("createdBy", "terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:CwpLicenseOrder
properties:
alias: tf_example
licenseType: 0
licenseNum: 1
regionId: 1
projectId: 0
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.
- Cwp
License stringOrder Id - ID of the resource.
- License
Num double - Authorization quantity: the number of units that need to be purchased, The default is 1.
- License
Type double - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- Project
Id double - Project ID. Default is 0.
- Region
Id double - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- Dictionary<string, string>
- Tags of the license order.
- Alias string
- Resource alias.
- Cwp
License stringOrder Id - ID of the resource.
- License
Num float64 - Authorization quantity: the number of units that need to be purchased, The default is 1.
- License
Type float64 - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- Project
Id float64 - Project ID. Default is 0.
- Region
Id float64 - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- map[string]string
- Tags of the license order.
- alias String
- Resource alias.
- cwp
License StringOrder Id - ID of the resource.
- license
Num Double - Authorization quantity: the number of units that need to be purchased, The default is 1.
- license
Type Double - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- project
Id Double - Project ID. Default is 0.
- region
Id Double - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- Map<String,String>
- Tags of the license order.
- alias string
- Resource alias.
- cwp
License stringOrder Id - ID of the resource.
- license
Num number - Authorization quantity: the number of units that need to be purchased, The default is 1.
- license
Type number - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- project
Id number - Project ID. Default is 0.
- region
Id number - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- {[key: string]: string}
- Tags of the license order.
- alias str
- Resource alias.
- cwp_
license_ strorder_ id - ID of the resource.
- license_
num float - Authorization quantity: the number of units that need to be purchased, The default is 1.
- license_
type float - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- project_
id float - Project ID. Default is 0.
- region_
id float - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- Mapping[str, str]
- Tags of the license order.
- alias String
- Resource alias.
- cwp
License StringOrder Id - ID of the resource.
- license
Num Number - Authorization quantity: the number of units that need to be purchased, The default is 1.
- license
Type Number - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- project
Id Number - Project ID. Default is 0.
- region
Id Number - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- 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.
- License
Id double - license id.
- Resource
Id string - resource id.
- Id string
- The provider-assigned unique ID for this managed resource.
- License
Id float64 - license id.
- Resource
Id string - resource id.
- id String
- The provider-assigned unique ID for this managed resource.
- license
Id Double - license id.
- resource
Id String - resource id.
- id string
- The provider-assigned unique ID for this managed resource.
- license
Id number - license id.
- resource
Id 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.
- license
Id Number - license id.
- resource
Id 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) -> CwpLicenseOrderfunc 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.
- Alias string
- Resource alias.
- Cwp
License stringOrder Id - ID of the resource.
- License
Id double - license id.
- License
Num double - Authorization quantity: the number of units that need to be purchased, The default is 1.
- License
Type double - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- Project
Id double - Project ID. Default is 0.
- Region
Id double - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- Resource
Id string - resource id.
- Dictionary<string, string>
- Tags of the license order.
- Alias string
- Resource alias.
- Cwp
License stringOrder Id - ID of the resource.
- License
Id float64 - license id.
- License
Num float64 - Authorization quantity: the number of units that need to be purchased, The default is 1.
- License
Type float64 - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- Project
Id float64 - Project ID. Default is 0.
- Region
Id float64 - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- Resource
Id string - resource id.
- map[string]string
- Tags of the license order.
- alias String
- Resource alias.
- cwp
License StringOrder Id - ID of the resource.
- license
Id Double - license id.
- license
Num Double - Authorization quantity: the number of units that need to be purchased, The default is 1.
- license
Type Double - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- project
Id Double - Project ID. Default is 0.
- region
Id Double - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- resource
Id String - resource id.
- Map<String,String>
- Tags of the license order.
- alias string
- Resource alias.
- cwp
License stringOrder Id - ID of the resource.
- license
Id number - license id.
- license
Num number - Authorization quantity: the number of units that need to be purchased, The default is 1.
- license
Type number - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- project
Id number - Project ID. Default is 0.
- region
Id number - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- resource
Id string - resource id.
- {[key: string]: string}
- Tags of the license order.
- alias str
- Resource alias.
- cwp_
license_ strorder_ id - ID of the resource.
- license_
id float - license id.
- license_
num float - Authorization quantity: the number of units that need to be purchased, The default is 1.
- license_
type float - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- project_
id float - Project ID. Default is 0.
- region_
id float - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- resource_
id str - resource id.
- Mapping[str, str]
- Tags of the license order.
- alias String
- Resource alias.
- cwp
License StringOrder Id - ID of the resource.
- license
Id Number - license id.
- license
Num Number - Authorization quantity: the number of units that need to be purchased, The default is 1.
- license
Type Number - Authorization type. 0: Pro Edition-pay-as-you-go; 1: Pro Edition-monthly subscription; 2 - Ultimate Edition-monthly subscriptionThe default is 0.
- project
Id Number - Project ID. Default is 0.
- region
Id Number - Region of purchase order. In this case, only 1 - Guangzhou and 9 - Singapore are supported. Guangzhou is recommended. Singapore region is reserved for allowlisted users. The default is 1.
- resource
Id String - resource id.
- Map<String>
- Tags of the license order.
Import
CWP license order can be imported using the resourceId#regionId, 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
tencentcloudTerraform Provider.
