tencentcloud.CwpLicenseOrder
Explore with Pulumi AI
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.
- Cwp
License stringOrder Id - ID of the resource.
- License
Num double - License quantity, Quantity to be purchased.Default is 1.
- License
Type double - LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
- Project
Id double - Project ID. Default is 0.
- Region
Id double - Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. 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 - License quantity, Quantity to be purchased.Default is 1.
- License
Type float64 - LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
- Project
Id float64 - Project ID. Default is 0.
- Region
Id float64 - Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. 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 - License quantity, Quantity to be purchased.Default is 1.
- license
Type Double - LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
- project
Id Double - Project ID. Default is 0.
- region
Id Double - Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. 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 - License quantity, Quantity to be purchased.Default is 1.
- license
Type number - LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
- project
Id number - Project ID. Default is 0.
- region
Id number - Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. 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 - 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.
- Mapping[str, str]
- Tags of the license order.
- alias String
- Resource alias.
- cwp
License StringOrder Id - ID of the resource.
- license
Num Number - License quantity, Quantity to be purchased.Default is 1.
- license
Type Number - LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
- project
Id Number - Project ID. Default is 0.
- region
Id Number - Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. 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) -> 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.
- Alias string
- Resource alias.
- Cwp
License stringOrder Id - ID of the resource.
- License
Id double - license id.
- License
Num double - License quantity, Quantity to be purchased.Default is 1.
- License
Type double - LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
- Project
Id double - Project ID. Default is 0.
- Region
Id double - Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. 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 - License quantity, Quantity to be purchased.Default is 1.
- License
Type float64 - LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
- Project
Id float64 - Project ID. Default is 0.
- Region
Id float64 - Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. 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 - License quantity, Quantity to be purchased.Default is 1.
- license
Type Double - LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
- project
Id Double - Project ID. Default is 0.
- region
Id Double - Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. 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 - License quantity, Quantity to be purchased.Default is 1.
- license
Type number - LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
- project
Id number - Project ID. Default is 0.
- region
Id number - Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. 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 - 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.
- 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 - License quantity, Quantity to be purchased.Default is 1.
- license
Type Number - LicenseType, 0 CWP Pro - Pay as you go, 1 CWP Pro - Monthly subscription, 2 CWP Ultimate - Monthly subscription. Default is 0.
- project
Id Number - Project ID. Default is 0.
- region
Id Number - Purchase order region, only 1 Guangzhou, 9 Singapore is supported here. Guangzhou is recommended. Singapore is whitelisted. Default is 1.
- resource
Id String - resource id.
- 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.