Provides a resource to create a IGTM package instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.IgtmPackageInstance("example", {
goodsType: "STANDARD",
autoRenew: 1,
timeSpan: 1,
autoVoucher: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.IgtmPackageInstance("example",
goods_type="STANDARD",
auto_renew=1,
time_span=1,
auto_voucher=1)
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.NewIgtmPackageInstance(ctx, "example", &tencentcloud.IgtmPackageInstanceArgs{
GoodsType: pulumi.String("STANDARD"),
AutoRenew: pulumi.Float64(1),
TimeSpan: pulumi.Float64(1),
AutoVoucher: pulumi.Float64(1),
})
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.IgtmPackageInstance("example", new()
{
GoodsType = "STANDARD",
AutoRenew = 1,
TimeSpan = 1,
AutoVoucher = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.IgtmPackageInstance;
import com.pulumi.tencentcloud.IgtmPackageInstanceArgs;
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 IgtmPackageInstance("example", IgtmPackageInstanceArgs.builder()
.goodsType("STANDARD")
.autoRenew(1.0)
.timeSpan(1.0)
.autoVoucher(1.0)
.build());
}
}
resources:
example:
type: tencentcloud:IgtmPackageInstance
properties:
goodsType: STANDARD
autoRenew: 1
timeSpan: 1
autoVoucher: 1
Create IgtmPackageInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IgtmPackageInstance(name: string, args: IgtmPackageInstanceArgs, opts?: CustomResourceOptions);@overload
def IgtmPackageInstance(resource_name: str,
args: IgtmPackageInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IgtmPackageInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_renew: Optional[float] = None,
goods_type: Optional[str] = None,
auto_voucher: Optional[float] = None,
igtm_package_instance_id: Optional[str] = None,
time_span: Optional[float] = None)func NewIgtmPackageInstance(ctx *Context, name string, args IgtmPackageInstanceArgs, opts ...ResourceOption) (*IgtmPackageInstance, error)public IgtmPackageInstance(string name, IgtmPackageInstanceArgs args, CustomResourceOptions? opts = null)
public IgtmPackageInstance(String name, IgtmPackageInstanceArgs args)
public IgtmPackageInstance(String name, IgtmPackageInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:IgtmPackageInstance
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 IgtmPackageInstanceArgs
- 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 IgtmPackageInstanceArgs
- 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 IgtmPackageInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IgtmPackageInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IgtmPackageInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IgtmPackageInstance 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 IgtmPackageInstance resource accepts the following input properties:
- Auto
Renew double - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- Goods
Type string - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- Auto
Voucher double - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- Igtm
Package stringInstance Id - ID of the resource.
- Time
Span double - Package duration in months, required for creation and renewal. Value range: 1~120.
- Auto
Renew float64 - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- Goods
Type string - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- Auto
Voucher float64 - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- Igtm
Package stringInstance Id - ID of the resource.
- Time
Span float64 - Package duration in months, required for creation and renewal. Value range: 1~120.
- auto
Renew Double - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- goods
Type String - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- auto
Voucher Double - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- igtm
Package StringInstance Id - ID of the resource.
- time
Span Double - Package duration in months, required for creation and renewal. Value range: 1~120.
- auto
Renew number - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- goods
Type string - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- auto
Voucher number - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- igtm
Package stringInstance Id - ID of the resource.
- time
Span number - Package duration in months, required for creation and renewal. Value range: 1~120.
- auto_
renew float - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- goods_
type str - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- auto_
voucher float - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- igtm_
package_ strinstance_ id - ID of the resource.
- time_
span float - Package duration in months, required for creation and renewal. Value range: 1~120.
- auto
Renew Number - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- goods
Type String - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- auto
Voucher Number - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- igtm
Package StringInstance Id - ID of the resource.
- time
Span Number - Package duration in months, required for creation and renewal. Value range: 1~120.
Outputs
All input properties are implicitly available as output properties. Additionally, the IgtmPackageInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - Resource ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - Resource ID.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - Resource ID.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Id string - Resource ID.
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
id str - Resource ID.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - Resource ID.
Look up Existing IgtmPackageInstance Resource
Get an existing IgtmPackageInstance 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?: IgtmPackageInstanceState, opts?: CustomResourceOptions): IgtmPackageInstance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew: Optional[float] = None,
auto_voucher: Optional[float] = None,
goods_type: Optional[str] = None,
igtm_package_instance_id: Optional[str] = None,
resource_id: Optional[str] = None,
time_span: Optional[float] = None) -> IgtmPackageInstancefunc GetIgtmPackageInstance(ctx *Context, name string, id IDInput, state *IgtmPackageInstanceState, opts ...ResourceOption) (*IgtmPackageInstance, error)public static IgtmPackageInstance Get(string name, Input<string> id, IgtmPackageInstanceState? state, CustomResourceOptions? opts = null)public static IgtmPackageInstance get(String name, Output<String> id, IgtmPackageInstanceState state, CustomResourceOptions options)resources: _: type: tencentcloud:IgtmPackageInstance 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.
- Auto
Renew double - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- Auto
Voucher double - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- Goods
Type string - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- Igtm
Package stringInstance Id - ID of the resource.
- Resource
Id string - Resource ID.
- Time
Span double - Package duration in months, required for creation and renewal. Value range: 1~120.
- Auto
Renew float64 - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- Auto
Voucher float64 - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- Goods
Type string - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- Igtm
Package stringInstance Id - ID of the resource.
- Resource
Id string - Resource ID.
- Time
Span float64 - Package duration in months, required for creation and renewal. Value range: 1~120.
- auto
Renew Double - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- auto
Voucher Double - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- goods
Type String - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- igtm
Package StringInstance Id - ID of the resource.
- resource
Id String - Resource ID.
- time
Span Double - Package duration in months, required for creation and renewal. Value range: 1~120.
- auto
Renew number - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- auto
Voucher number - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- goods
Type string - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- igtm
Package stringInstance Id - ID of the resource.
- resource
Id string - Resource ID.
- time
Span number - Package duration in months, required for creation and renewal. Value range: 1~120.
- auto_
renew float - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- auto_
voucher float - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- goods_
type str - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- igtm_
package_ strinstance_ id - ID of the resource.
- resource_
id str - Resource ID.
- time_
span float - Package duration in months, required for creation and renewal. Value range: 1~120.
- auto
Renew Number - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- auto
Voucher Number - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- goods
Type String - Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
- igtm
Package StringInstance Id - ID of the resource.
- resource
Id String - Resource ID.
- time
Span Number - Package duration in months, required for creation and renewal. Value range: 1~120.
Import
IGTM package instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/igtmPackageInstance:IgtmPackageInstance example ins-wtqicjwzzze
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.
