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:
- Auto
Renew double - Auto renewal: 1 enable auto renewal; 2 disable auto renewal.
- Task
Detection doubleQuantity - Value range: 1~10000.
- Auto
Voucher double - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- Igtm
Package stringTask 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.
- Task
Detection float64Quantity - Value range: 1~10000.
- Auto
Voucher float64 - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- Igtm
Package stringTask 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.
- task
Detection DoubleQuantity - Value range: 1~10000.
- auto
Voucher Double - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- igtm
Package StringTask 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.
- task
Detection numberQuantity - Value range: 1~10000.
- auto
Voucher number - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- igtm
Package stringTask 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.
- task_
detection_ floatquantity - Value range: 1~10000.
- auto_
voucher float - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- igtm_
package_ strtask_ 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.
- task
Detection NumberQuantity - Value range: 1~10000.
- auto
Voucher Number - Whether to automatically select vouchers, 1 yes; 0 no, default is 0.
- igtm
Package StringTask 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 IgtmPackageTask resource produces the following output properties:
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) -> IgtmPackageTaskfunc 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.
- 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.
- Igtm
Package stringTask Id - ID of the resource.
- Task
Detection doubleQuantity - Value range: 1~10000.
- Task
Id string - Task 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.
- Igtm
Package stringTask Id - ID of the resource.
- Task
Detection float64Quantity - Value range: 1~10000.
- Task
Id string - Task 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.
- igtm
Package StringTask Id - ID of the resource.
- task
Detection DoubleQuantity - Value range: 1~10000.
- task
Id String - Task 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.
- igtm
Package stringTask Id - ID of the resource.
- task
Detection numberQuantity - Value range: 1~10000.
- task
Id string - Task 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.
- igtm_
package_ strtask_ id - ID of the resource.
- task_
detection_ floatquantity - 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.
- 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.
- igtm
Package StringTask Id - ID of the resource.
- task
Detection NumberQuantity - Value range: 1~10000.
- task
Id String - Task ID.
- time
Span 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
tencentcloudTerraform Provider.
