1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. IgtmPackageTask
tencentcloud 1.82.68 published on Friday, Feb 6, 2026 by tencentcloudstack
tencentcloud logo
tencentcloud 1.82.68 published on Friday, Feb 6, 2026 by tencentcloudstack

    Provides a resource to create a IGTM package task

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.IgtmPackageTask("example", {
        taskDetectionQuantity: 100,
        autoRenew: 2,
        timeSpan: 1,
        autoVoucher: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.IgtmPackageTask("example",
        task_detection_quantity=100,
        auto_renew=2,
        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.NewIgtmPackageTask(ctx, "example", &tencentcloud.IgtmPackageTaskArgs{
    			TaskDetectionQuantity: pulumi.Float64(100),
    			AutoRenew:             pulumi.Float64(2),
    			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.IgtmPackageTask("example", new()
        {
            TaskDetectionQuantity = 100,
            AutoRenew = 2,
            TimeSpan = 1,
            AutoVoucher = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.IgtmPackageTask;
    import com.pulumi.tencentcloud.IgtmPackageTaskArgs;
    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 IgtmPackageTask("example", IgtmPackageTaskArgs.builder()
                .taskDetectionQuantity(100.0)
                .autoRenew(2.0)
                .timeSpan(1.0)
                .autoVoucher(1.0)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:IgtmPackageTask
        properties:
          taskDetectionQuantity: 100
          autoRenew: 2
          timeSpan: 1
          autoVoucher: 1
    

    Create IgtmPackageTask Resource

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

    Constructor syntax

    new IgtmPackageTask(name: string, args: IgtmPackageTaskArgs, opts?: CustomResourceOptions);
    @overload
    def IgtmPackageTask(resource_name: str,
                        args: IgtmPackageTaskArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def IgtmPackageTask(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        auto_renew: Optional[float] = None,
                        task_detection_quantity: Optional[float] = None,
                        auto_voucher: Optional[float] = None,
                        igtm_package_task_id: Optional[str] = None,
                        time_span: Optional[float] = None)
    func NewIgtmPackageTask(ctx *Context, name string, args IgtmPackageTaskArgs, opts ...ResourceOption) (*IgtmPackageTask, error)
    public IgtmPackageTask(string name, IgtmPackageTaskArgs args, CustomResourceOptions? opts = null)
    public IgtmPackageTask(String name, IgtmPackageTaskArgs args)
    public IgtmPackageTask(String name, IgtmPackageTaskArgs args, CustomResourceOptions options)
    
    type: tencentcloud:IgtmPackageTask
    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 IgtmPackageTaskArgs
    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 IgtmPackageTaskArgs
    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 IgtmPackageTaskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IgtmPackageTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IgtmPackageTaskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AutoRenew double
    Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
    TaskDetectionQuantity double
    Value range: 1~10000.
    AutoVoucher double
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    IgtmPackageTaskId 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.
    TaskDetectionQuantity float64
    Value range: 1~10000.
    AutoVoucher float64
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    IgtmPackageTaskId 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.
    taskDetectionQuantity Double
    Value range: 1~10000.
    autoVoucher Double
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    igtmPackageTaskId 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.
    taskDetectionQuantity number
    Value range: 1~10000.
    autoVoucher number
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    igtmPackageTaskId 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.
    task_detection_quantity float
    Value range: 1~10000.
    auto_voucher float
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    igtm_package_task_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.
    taskDetectionQuantity Number
    Value range: 1~10000.
    autoVoucher Number
    Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
    igtmPackageTaskId 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 IgtmPackageTask resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    TaskId string
    Task ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    TaskId string
    Task ID.
    id String
    The provider-assigned unique ID for this managed resource.
    taskId String
    Task ID.
    id string
    The provider-assigned unique ID for this managed resource.
    taskId string
    Task ID.
    id str
    The provider-assigned unique ID for this managed resource.
    task_id str
    Task ID.
    id String
    The provider-assigned unique ID for this managed resource.
    taskId String
    Task ID.

    Look up Existing IgtmPackageTask Resource

    Get an existing IgtmPackageTask 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?: IgtmPackageTaskState, opts?: CustomResourceOptions): IgtmPackageTask
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_renew: Optional[float] = None,
            auto_voucher: Optional[float] = None,
            igtm_package_task_id: Optional[str] = None,
            task_detection_quantity: Optional[float] = None,
            task_id: Optional[str] = None,
            time_span: Optional[float] = None) -> IgtmPackageTask
    func GetIgtmPackageTask(ctx *Context, name string, id IDInput, state *IgtmPackageTaskState, opts ...ResourceOption) (*IgtmPackageTask, error)
    public static IgtmPackageTask Get(string name, Input<string> id, IgtmPackageTaskState? state, CustomResourceOptions? opts = null)
    public static IgtmPackageTask get(String name, Output<String> id, IgtmPackageTaskState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:IgtmPackageTask    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.
    IgtmPackageTaskId string
    ID of the resource.
    TaskDetectionQuantity double
    Value range: 1~10000.
    TaskId string
    Task 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.
    IgtmPackageTaskId string
    ID of the resource.
    TaskDetectionQuantity float64
    Value range: 1~10000.
    TaskId string
    Task 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.
    igtmPackageTaskId String
    ID of the resource.
    taskDetectionQuantity Double
    Value range: 1~10000.
    taskId String
    Task 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.
    igtmPackageTaskId string
    ID of the resource.
    taskDetectionQuantity number
    Value range: 1~10000.
    taskId string
    Task 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.
    igtm_package_task_id str
    ID of the resource.
    task_detection_quantity float
    Value range: 1~10000.
    task_id str
    Task 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.
    igtmPackageTaskId String
    ID of the resource.
    taskDetectionQuantity Number
    Value range: 1~10000.
    taskId String
    Task ID.
    timeSpan Number
    Package duration in months, required for creation and renewal. Value range: 1~120.

    Import

    IGTM package task can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/igtmPackageTask:IgtmPackageTask example task-dahygvmzawgn
    

    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.68 published on Friday, Feb 6, 2026 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate