1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TsfTask
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.TsfTask

Explore with Pulumi AI

Provides a resource to create a tsf task

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const task = new tencentcloud.TsfTask("task", {
    advanceSettings: {
        subTaskConcurrency: 2,
    },
    executeType: "unicast",
    groupId: "group-y8pnmoga",
    retryCount: 0,
    retryInterval: 0,
    successOperator: "GTE",
    successRatio: "100",
    taskArgument: "a=c",
    taskContent: "/test",
    taskName: "terraform-test",
    taskRule: {
        expression: "0 * 1 * * ? ",
        ruleType: "Cron",
    },
    taskType: "java",
    timeOut: 60000,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

task = tencentcloud.TsfTask("task",
    advance_settings={
        "sub_task_concurrency": 2,
    },
    execute_type="unicast",
    group_id="group-y8pnmoga",
    retry_count=0,
    retry_interval=0,
    success_operator="GTE",
    success_ratio="100",
    task_argument="a=c",
    task_content="/test",
    task_name="terraform-test",
    task_rule={
        "expression": "0 * 1 * * ? ",
        "rule_type": "Cron",
    },
    task_type="java",
    time_out=60000)
Copy
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.NewTsfTask(ctx, "task", &tencentcloud.TsfTaskArgs{
			AdvanceSettings: &tencentcloud.TsfTaskAdvanceSettingsArgs{
				SubTaskConcurrency: pulumi.Float64(2),
			},
			ExecuteType:     pulumi.String("unicast"),
			GroupId:         pulumi.String("group-y8pnmoga"),
			RetryCount:      pulumi.Float64(0),
			RetryInterval:   pulumi.Float64(0),
			SuccessOperator: pulumi.String("GTE"),
			SuccessRatio:    pulumi.String("100"),
			TaskArgument:    pulumi.String("a=c"),
			TaskContent:     pulumi.String("/test"),
			TaskName:        pulumi.String("terraform-test"),
			TaskRule: &tencentcloud.TsfTaskTaskRuleArgs{
				Expression: pulumi.String("0 * 1 * * ? "),
				RuleType:   pulumi.String("Cron"),
			},
			TaskType: pulumi.String("java"),
			TimeOut:  pulumi.Float64(60000),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var task = new Tencentcloud.TsfTask("task", new()
    {
        AdvanceSettings = new Tencentcloud.Inputs.TsfTaskAdvanceSettingsArgs
        {
            SubTaskConcurrency = 2,
        },
        ExecuteType = "unicast",
        GroupId = "group-y8pnmoga",
        RetryCount = 0,
        RetryInterval = 0,
        SuccessOperator = "GTE",
        SuccessRatio = "100",
        TaskArgument = "a=c",
        TaskContent = "/test",
        TaskName = "terraform-test",
        TaskRule = new Tencentcloud.Inputs.TsfTaskTaskRuleArgs
        {
            Expression = "0 * 1 * * ? ",
            RuleType = "Cron",
        },
        TaskType = "java",
        TimeOut = 60000,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TsfTask;
import com.pulumi.tencentcloud.TsfTaskArgs;
import com.pulumi.tencentcloud.inputs.TsfTaskAdvanceSettingsArgs;
import com.pulumi.tencentcloud.inputs.TsfTaskTaskRuleArgs;
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 task = new TsfTask("task", TsfTaskArgs.builder()
            .advanceSettings(TsfTaskAdvanceSettingsArgs.builder()
                .subTaskConcurrency(2)
                .build())
            .executeType("unicast")
            .groupId("group-y8pnmoga")
            .retryCount(0)
            .retryInterval(0)
            .successOperator("GTE")
            .successRatio("100")
            .taskArgument("a=c")
            .taskContent("/test")
            .taskName("terraform-test")
            .taskRule(TsfTaskTaskRuleArgs.builder()
                .expression("0 * 1 * * ? ")
                .ruleType("Cron")
                .build())
            .taskType("java")
            .timeOut(60000)
            .build());

    }
}
Copy
resources:
  task:
    type: tencentcloud:TsfTask
    properties:
      advanceSettings:
        subTaskConcurrency: 2
      executeType: unicast
      groupId: group-y8pnmoga
      retryCount: 0
      retryInterval: 0
      successOperator: GTE
      successRatio: '100'
      taskArgument: a=c
      taskContent: /test
      taskName: terraform-test
      taskRule:
        expression: '0 * 1 * * ? '
        ruleType: Cron
      taskType: java
      timeOut: 60000
Copy

Create TsfTask Resource

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

Constructor syntax

new TsfTask(name: string, args: TsfTaskArgs, opts?: CustomResourceOptions);
@overload
def TsfTask(resource_name: str,
            args: TsfTaskArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def TsfTask(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            task_content: Optional[str] = None,
            execute_type: Optional[str] = None,
            group_id: Optional[str] = None,
            time_out: Optional[float] = None,
            task_type: Optional[str] = None,
            task_name: Optional[str] = None,
            retry_count: Optional[float] = None,
            shard_count: Optional[float] = None,
            success_operator: Optional[str] = None,
            success_ratio: Optional[str] = None,
            task_argument: Optional[str] = None,
            shard_arguments: Optional[Sequence[TsfTaskShardArgumentArgs]] = None,
            retry_interval: Optional[float] = None,
            task_rule: Optional[TsfTaskTaskRuleArgs] = None,
            advance_settings: Optional[TsfTaskAdvanceSettingsArgs] = None,
            program_id_lists: Optional[Sequence[str]] = None,
            tsf_task_id: Optional[str] = None)
func NewTsfTask(ctx *Context, name string, args TsfTaskArgs, opts ...ResourceOption) (*TsfTask, error)
public TsfTask(string name, TsfTaskArgs args, CustomResourceOptions? opts = null)
public TsfTask(String name, TsfTaskArgs args)
public TsfTask(String name, TsfTaskArgs args, CustomResourceOptions options)
type: tencentcloud:TsfTask
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TsfTaskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TsfTaskArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TsfTaskArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TsfTaskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TsfTaskArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

ExecuteType This property is required. string
execution type, unicast/broadcast.
GroupId This property is required. string
deployment group ID.
TaskContent This property is required. string
task content, length limit 65536 bytes.
TaskName This property is required. string
task name, task length 64 characters.
TaskType This property is required. string
task type, java.
TimeOut This property is required. double
task timeout, time unit ms.
AdvanceSettings TsfTaskAdvanceSettings
advanced settings.
ProgramIdLists List<string>
Program id list.
RetryCount double
number of retries, 0 &lt;= RetryCount&lt;= 10.
RetryInterval double
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
ShardArguments List<TsfTaskShardArgument>
Fragmentation parameters.
ShardCount double
number of shards.
SuccessOperator string
the operator to judge the success of the task.
SuccessRatio string
The threshold for judging the success rate of the task, such as 100.
TaskArgument string
task parameters, the length limit is 10000 characters.
TaskRule TsfTaskTaskRule
trigger rule.
TsfTaskId string
ID of the resource.
ExecuteType This property is required. string
execution type, unicast/broadcast.
GroupId This property is required. string
deployment group ID.
TaskContent This property is required. string
task content, length limit 65536 bytes.
TaskName This property is required. string
task name, task length 64 characters.
TaskType This property is required. string
task type, java.
TimeOut This property is required. float64
task timeout, time unit ms.
AdvanceSettings TsfTaskAdvanceSettingsArgs
advanced settings.
ProgramIdLists []string
Program id list.
RetryCount float64
number of retries, 0 &lt;= RetryCount&lt;= 10.
RetryInterval float64
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
ShardArguments []TsfTaskShardArgumentArgs
Fragmentation parameters.
ShardCount float64
number of shards.
SuccessOperator string
the operator to judge the success of the task.
SuccessRatio string
The threshold for judging the success rate of the task, such as 100.
TaskArgument string
task parameters, the length limit is 10000 characters.
TaskRule TsfTaskTaskRuleArgs
trigger rule.
TsfTaskId string
ID of the resource.
executeType This property is required. String
execution type, unicast/broadcast.
groupId This property is required. String
deployment group ID.
taskContent This property is required. String
task content, length limit 65536 bytes.
taskName This property is required. String
task name, task length 64 characters.
taskType This property is required. String
task type, java.
timeOut This property is required. Double
task timeout, time unit ms.
advanceSettings TsfTaskAdvanceSettings
advanced settings.
programIdLists List<String>
Program id list.
retryCount Double
number of retries, 0 &lt;= RetryCount&lt;= 10.
retryInterval Double
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
shardArguments List<TsfTaskShardArgument>
Fragmentation parameters.
shardCount Double
number of shards.
successOperator String
the operator to judge the success of the task.
successRatio String
The threshold for judging the success rate of the task, such as 100.
taskArgument String
task parameters, the length limit is 10000 characters.
taskRule TsfTaskTaskRule
trigger rule.
tsfTaskId String
ID of the resource.
executeType This property is required. string
execution type, unicast/broadcast.
groupId This property is required. string
deployment group ID.
taskContent This property is required. string
task content, length limit 65536 bytes.
taskName This property is required. string
task name, task length 64 characters.
taskType This property is required. string
task type, java.
timeOut This property is required. number
task timeout, time unit ms.
advanceSettings TsfTaskAdvanceSettings
advanced settings.
programIdLists string[]
Program id list.
retryCount number
number of retries, 0 &lt;= RetryCount&lt;= 10.
retryInterval number
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
shardArguments TsfTaskShardArgument[]
Fragmentation parameters.
shardCount number
number of shards.
successOperator string
the operator to judge the success of the task.
successRatio string
The threshold for judging the success rate of the task, such as 100.
taskArgument string
task parameters, the length limit is 10000 characters.
taskRule TsfTaskTaskRule
trigger rule.
tsfTaskId string
ID of the resource.
execute_type This property is required. str
execution type, unicast/broadcast.
group_id This property is required. str
deployment group ID.
task_content This property is required. str
task content, length limit 65536 bytes.
task_name This property is required. str
task name, task length 64 characters.
task_type This property is required. str
task type, java.
time_out This property is required. float
task timeout, time unit ms.
advance_settings TsfTaskAdvanceSettingsArgs
advanced settings.
program_id_lists Sequence[str]
Program id list.
retry_count float
number of retries, 0 &lt;= RetryCount&lt;= 10.
retry_interval float
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
shard_arguments Sequence[TsfTaskShardArgumentArgs]
Fragmentation parameters.
shard_count float
number of shards.
success_operator str
the operator to judge the success of the task.
success_ratio str
The threshold for judging the success rate of the task, such as 100.
task_argument str
task parameters, the length limit is 10000 characters.
task_rule TsfTaskTaskRuleArgs
trigger rule.
tsf_task_id str
ID of the resource.
executeType This property is required. String
execution type, unicast/broadcast.
groupId This property is required. String
deployment group ID.
taskContent This property is required. String
task content, length limit 65536 bytes.
taskName This property is required. String
task name, task length 64 characters.
taskType This property is required. String
task type, java.
timeOut This property is required. Number
task timeout, time unit ms.
advanceSettings Property Map
advanced settings.
programIdLists List<String>
Program id list.
retryCount Number
number of retries, 0 &lt;= RetryCount&lt;= 10.
retryInterval Number
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
shardArguments List<Property Map>
Fragmentation parameters.
shardCount Number
number of shards.
successOperator String
the operator to judge the success of the task.
successRatio String
The threshold for judging the success rate of the task, such as 100.
taskArgument String
task parameters, the length limit is 10000 characters.
taskRule Property Map
trigger rule.
tsfTaskId String
ID of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the TsfTask resource produces the following output properties:

BelongFlowIds List<string>
ID of the workflow to which it belongs.
Id string
The provider-assigned unique ID for this managed resource.
TaskId string
task ID.
TaskLogId string
task history ID.
TaskState string
Whether to enable the task, ENABLED/DISABLED.
TriggerType string
trigger type.
BelongFlowIds []string
ID of the workflow to which it belongs.
Id string
The provider-assigned unique ID for this managed resource.
TaskId string
task ID.
TaskLogId string
task history ID.
TaskState string
Whether to enable the task, ENABLED/DISABLED.
TriggerType string
trigger type.
belongFlowIds List<String>
ID of the workflow to which it belongs.
id String
The provider-assigned unique ID for this managed resource.
taskId String
task ID.
taskLogId String
task history ID.
taskState String
Whether to enable the task, ENABLED/DISABLED.
triggerType String
trigger type.
belongFlowIds string[]
ID of the workflow to which it belongs.
id string
The provider-assigned unique ID for this managed resource.
taskId string
task ID.
taskLogId string
task history ID.
taskState string
Whether to enable the task, ENABLED/DISABLED.
triggerType string
trigger type.
belong_flow_ids Sequence[str]
ID of the workflow to which it belongs.
id str
The provider-assigned unique ID for this managed resource.
task_id str
task ID.
task_log_id str
task history ID.
task_state str
Whether to enable the task, ENABLED/DISABLED.
trigger_type str
trigger type.
belongFlowIds List<String>
ID of the workflow to which it belongs.
id String
The provider-assigned unique ID for this managed resource.
taskId String
task ID.
taskLogId String
task history ID.
taskState String
Whether to enable the task, ENABLED/DISABLED.
triggerType String
trigger type.

Look up Existing TsfTask Resource

Get an existing TsfTask 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?: TsfTaskState, opts?: CustomResourceOptions): TsfTask
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        advance_settings: Optional[TsfTaskAdvanceSettingsArgs] = None,
        belong_flow_ids: Optional[Sequence[str]] = None,
        execute_type: Optional[str] = None,
        group_id: Optional[str] = None,
        program_id_lists: Optional[Sequence[str]] = None,
        retry_count: Optional[float] = None,
        retry_interval: Optional[float] = None,
        shard_arguments: Optional[Sequence[TsfTaskShardArgumentArgs]] = None,
        shard_count: Optional[float] = None,
        success_operator: Optional[str] = None,
        success_ratio: Optional[str] = None,
        task_argument: Optional[str] = None,
        task_content: Optional[str] = None,
        task_id: Optional[str] = None,
        task_log_id: Optional[str] = None,
        task_name: Optional[str] = None,
        task_rule: Optional[TsfTaskTaskRuleArgs] = None,
        task_state: Optional[str] = None,
        task_type: Optional[str] = None,
        time_out: Optional[float] = None,
        trigger_type: Optional[str] = None,
        tsf_task_id: Optional[str] = None) -> TsfTask
func GetTsfTask(ctx *Context, name string, id IDInput, state *TsfTaskState, opts ...ResourceOption) (*TsfTask, error)
public static TsfTask Get(string name, Input<string> id, TsfTaskState? state, CustomResourceOptions? opts = null)
public static TsfTask get(String name, Output<String> id, TsfTaskState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:TsfTask    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AdvanceSettings TsfTaskAdvanceSettings
advanced settings.
BelongFlowIds List<string>
ID of the workflow to which it belongs.
ExecuteType string
execution type, unicast/broadcast.
GroupId string
deployment group ID.
ProgramIdLists List<string>
Program id list.
RetryCount double
number of retries, 0 &lt;= RetryCount&lt;= 10.
RetryInterval double
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
ShardArguments List<TsfTaskShardArgument>
Fragmentation parameters.
ShardCount double
number of shards.
SuccessOperator string
the operator to judge the success of the task.
SuccessRatio string
The threshold for judging the success rate of the task, such as 100.
TaskArgument string
task parameters, the length limit is 10000 characters.
TaskContent string
task content, length limit 65536 bytes.
TaskId string
task ID.
TaskLogId string
task history ID.
TaskName string
task name, task length 64 characters.
TaskRule TsfTaskTaskRule
trigger rule.
TaskState string
Whether to enable the task, ENABLED/DISABLED.
TaskType string
task type, java.
TimeOut double
task timeout, time unit ms.
TriggerType string
trigger type.
TsfTaskId string
ID of the resource.
AdvanceSettings TsfTaskAdvanceSettingsArgs
advanced settings.
BelongFlowIds []string
ID of the workflow to which it belongs.
ExecuteType string
execution type, unicast/broadcast.
GroupId string
deployment group ID.
ProgramIdLists []string
Program id list.
RetryCount float64
number of retries, 0 &lt;= RetryCount&lt;= 10.
RetryInterval float64
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
ShardArguments []TsfTaskShardArgumentArgs
Fragmentation parameters.
ShardCount float64
number of shards.
SuccessOperator string
the operator to judge the success of the task.
SuccessRatio string
The threshold for judging the success rate of the task, such as 100.
TaskArgument string
task parameters, the length limit is 10000 characters.
TaskContent string
task content, length limit 65536 bytes.
TaskId string
task ID.
TaskLogId string
task history ID.
TaskName string
task name, task length 64 characters.
TaskRule TsfTaskTaskRuleArgs
trigger rule.
TaskState string
Whether to enable the task, ENABLED/DISABLED.
TaskType string
task type, java.
TimeOut float64
task timeout, time unit ms.
TriggerType string
trigger type.
TsfTaskId string
ID of the resource.
advanceSettings TsfTaskAdvanceSettings
advanced settings.
belongFlowIds List<String>
ID of the workflow to which it belongs.
executeType String
execution type, unicast/broadcast.
groupId String
deployment group ID.
programIdLists List<String>
Program id list.
retryCount Double
number of retries, 0 &lt;= RetryCount&lt;= 10.
retryInterval Double
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
shardArguments List<TsfTaskShardArgument>
Fragmentation parameters.
shardCount Double
number of shards.
successOperator String
the operator to judge the success of the task.
successRatio String
The threshold for judging the success rate of the task, such as 100.
taskArgument String
task parameters, the length limit is 10000 characters.
taskContent String
task content, length limit 65536 bytes.
taskId String
task ID.
taskLogId String
task history ID.
taskName String
task name, task length 64 characters.
taskRule TsfTaskTaskRule
trigger rule.
taskState String
Whether to enable the task, ENABLED/DISABLED.
taskType String
task type, java.
timeOut Double
task timeout, time unit ms.
triggerType String
trigger type.
tsfTaskId String
ID of the resource.
advanceSettings TsfTaskAdvanceSettings
advanced settings.
belongFlowIds string[]
ID of the workflow to which it belongs.
executeType string
execution type, unicast/broadcast.
groupId string
deployment group ID.
programIdLists string[]
Program id list.
retryCount number
number of retries, 0 &lt;= RetryCount&lt;= 10.
retryInterval number
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
shardArguments TsfTaskShardArgument[]
Fragmentation parameters.
shardCount number
number of shards.
successOperator string
the operator to judge the success of the task.
successRatio string
The threshold for judging the success rate of the task, such as 100.
taskArgument string
task parameters, the length limit is 10000 characters.
taskContent string
task content, length limit 65536 bytes.
taskId string
task ID.
taskLogId string
task history ID.
taskName string
task name, task length 64 characters.
taskRule TsfTaskTaskRule
trigger rule.
taskState string
Whether to enable the task, ENABLED/DISABLED.
taskType string
task type, java.
timeOut number
task timeout, time unit ms.
triggerType string
trigger type.
tsfTaskId string
ID of the resource.
advance_settings TsfTaskAdvanceSettingsArgs
advanced settings.
belong_flow_ids Sequence[str]
ID of the workflow to which it belongs.
execute_type str
execution type, unicast/broadcast.
group_id str
deployment group ID.
program_id_lists Sequence[str]
Program id list.
retry_count float
number of retries, 0 &lt;= RetryCount&lt;= 10.
retry_interval float
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
shard_arguments Sequence[TsfTaskShardArgumentArgs]
Fragmentation parameters.
shard_count float
number of shards.
success_operator str
the operator to judge the success of the task.
success_ratio str
The threshold for judging the success rate of the task, such as 100.
task_argument str
task parameters, the length limit is 10000 characters.
task_content str
task content, length limit 65536 bytes.
task_id str
task ID.
task_log_id str
task history ID.
task_name str
task name, task length 64 characters.
task_rule TsfTaskTaskRuleArgs
trigger rule.
task_state str
Whether to enable the task, ENABLED/DISABLED.
task_type str
task type, java.
time_out float
task timeout, time unit ms.
trigger_type str
trigger type.
tsf_task_id str
ID of the resource.
advanceSettings Property Map
advanced settings.
belongFlowIds List<String>
ID of the workflow to which it belongs.
executeType String
execution type, unicast/broadcast.
groupId String
deployment group ID.
programIdLists List<String>
Program id list.
retryCount Number
number of retries, 0 &lt;= RetryCount&lt;= 10.
retryInterval Number
retry interval, 0 &lt;= RetryInterval &lt;= 600000, time unit ms.
shardArguments List<Property Map>
Fragmentation parameters.
shardCount Number
number of shards.
successOperator String
the operator to judge the success of the task.
successRatio String
The threshold for judging the success rate of the task, such as 100.
taskArgument String
task parameters, the length limit is 10000 characters.
taskContent String
task content, length limit 65536 bytes.
taskId String
task ID.
taskLogId String
task history ID.
taskName String
task name, task length 64 characters.
taskRule Property Map
trigger rule.
taskState String
Whether to enable the task, ENABLED/DISABLED.
taskType String
task type, java.
timeOut Number
task timeout, time unit ms.
triggerType String
trigger type.
tsfTaskId String
ID of the resource.

Supporting Types

TsfTaskAdvanceSettings
, TsfTaskAdvanceSettingsArgs

SubTaskConcurrency double
Subtask single-machine concurrency limit, the default value is 2.
SubTaskConcurrency float64
Subtask single-machine concurrency limit, the default value is 2.
subTaskConcurrency Double
Subtask single-machine concurrency limit, the default value is 2.
subTaskConcurrency number
Subtask single-machine concurrency limit, the default value is 2.
sub_task_concurrency float
Subtask single-machine concurrency limit, the default value is 2.
subTaskConcurrency Number
Subtask single-machine concurrency limit, the default value is 2.

TsfTaskShardArgument
, TsfTaskShardArgumentArgs

ShardKey This property is required. double
Sharding parameter KEY, integer, range [1,1000].
ShardValue This property is required. string
Shard parameter VALUE.
ShardKey This property is required. float64
Sharding parameter KEY, integer, range [1,1000].
ShardValue This property is required. string
Shard parameter VALUE.
shardKey This property is required. Double
Sharding parameter KEY, integer, range [1,1000].
shardValue This property is required. String
Shard parameter VALUE.
shardKey This property is required. number
Sharding parameter KEY, integer, range [1,1000].
shardValue This property is required. string
Shard parameter VALUE.
shard_key This property is required. float
Sharding parameter KEY, integer, range [1,1000].
shard_value This property is required. str
Shard parameter VALUE.
shardKey This property is required. Number
Sharding parameter KEY, integer, range [1,1000].
shardValue This property is required. String
Shard parameter VALUE.

TsfTaskTaskRule
, TsfTaskTaskRuleArgs

RuleType This property is required. string
trigger rule type, Cron/Repeat.
Expression string
Cron type rule, cron expression.
RepeatInterval double
time interval, in milliseconds.
RuleType This property is required. string
trigger rule type, Cron/Repeat.
Expression string
Cron type rule, cron expression.
RepeatInterval float64
time interval, in milliseconds.
ruleType This property is required. String
trigger rule type, Cron/Repeat.
expression String
Cron type rule, cron expression.
repeatInterval Double
time interval, in milliseconds.
ruleType This property is required. string
trigger rule type, Cron/Repeat.
expression string
Cron type rule, cron expression.
repeatInterval number
time interval, in milliseconds.
rule_type This property is required. str
trigger rule type, Cron/Repeat.
expression str
Cron type rule, cron expression.
repeat_interval float
time interval, in milliseconds.
ruleType This property is required. String
trigger rule type, Cron/Repeat.
expression String
Cron type rule, cron expression.
repeatInterval Number
time interval, in milliseconds.

Import

tsf task can be imported using the id, e.g.

$ pulumi import tencentcloud:index/tsfTask:TsfTask task task-y37eqq95
Copy

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.