1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. IgtmPackageInstance
tencentcloud 1.82.70 published on Wednesday, Feb 11, 2026 by tencentcloudstack
tencentcloud logo
tencentcloud 1.82.70 published on Wednesday, Feb 11, 2026 by tencentcloudstack

    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:

    AutoRenew double
    Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
    GoodsType string
    Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
    AutoVoucher double
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    IgtmPackageInstanceId string
    ID of the resource.
    TimeSpan double
    Package duration in months, required for creation and renewal. Value range: 1~120.
    AutoRenew float64
    Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
    GoodsType string
    Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
    AutoVoucher float64
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    IgtmPackageInstanceId string
    ID of the resource.
    TimeSpan float64
    Package duration in months, required for creation and renewal. Value range: 1~120.
    autoRenew Double
    Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
    goodsType String
    Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
    autoVoucher Double
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    igtmPackageInstanceId String
    ID of the resource.
    timeSpan Double
    Package duration in months, required for creation and renewal. Value range: 1~120.
    autoRenew number
    Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
    goodsType string
    Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
    autoVoucher number
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    igtmPackageInstanceId string
    ID of the resource.
    timeSpan 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_instance_id str
    ID of the resource.
    time_span float
    Package duration in months, required for creation and renewal. Value range: 1~120.
    autoRenew Number
    Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
    goodsType String
    Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
    autoVoucher Number
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    igtmPackageInstanceId String
    ID of the resource.
    timeSpan 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.
    ResourceId string
    Resource ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    Resource ID.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    Resource ID.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceId 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.
    resourceId 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) -> IgtmPackageInstance
    func 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.
    The following state arguments are supported:
    AutoRenew double
    Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
    AutoVoucher double
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    GoodsType string
    Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
    IgtmPackageInstanceId string
    ID of the resource.
    ResourceId string
    Resource ID.
    TimeSpan double
    Package duration in months, required for creation and renewal. Value range: 1~120.
    AutoRenew float64
    Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
    AutoVoucher float64
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    GoodsType string
    Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
    IgtmPackageInstanceId string
    ID of the resource.
    ResourceId string
    Resource ID.
    TimeSpan float64
    Package duration in months, required for creation and renewal. Value range: 1~120.
    autoRenew Double
    Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
    autoVoucher Double
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    goodsType String
    Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
    igtmPackageInstanceId String
    ID of the resource.
    resourceId String
    Resource ID.
    timeSpan Double
    Package duration in months, required for creation and renewal. Value range: 1~120.
    autoRenew number
    Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
    autoVoucher number
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    goodsType string
    Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
    igtmPackageInstanceId string
    ID of the resource.
    resourceId string
    Resource ID.
    timeSpan 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_instance_id str
    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.
    autoRenew Number
    Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
    autoVoucher Number
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    goodsType String
    Package type: STANDARD for standard edition; ULTIMATE for flagship edition.
    igtmPackageInstanceId String
    ID of the resource.
    resourceId String
    Resource ID.
    timeSpan 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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.70 published on Wednesday, Feb 11, 2026 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate