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,
});
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)
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
})
}
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,
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args TsfTaskArgs
- 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 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 string
- The unique name of the resource.
- args TsfTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TsfTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Execute
Type string - execution type, unicast/broadcast.
- Group
Id string - deployment group ID.
- Task
Content string - task content, length limit 65536 bytes.
- Task
Name string - task name, task length 64 characters.
- Task
Type string - task type, java.
- Time
Out double - task timeout, time unit ms.
- Advance
Settings TsfTask Advance Settings - advanced settings.
- Program
Id List<string>Lists - Program id list.
- Retry
Count double - number of retries, 0 <= RetryCount<= 10.
- Retry
Interval double - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- List<Tsf
Task Shard Argument> - Fragmentation parameters.
- double
- number of shards.
- Success
Operator string - the operator to judge the success of the task.
- Success
Ratio string - The threshold for judging the success rate of the task, such as 100.
- Task
Argument string - task parameters, the length limit is 10000 characters.
- Task
Rule TsfTask Task Rule - trigger rule.
- Tsf
Task stringId - ID of the resource.
- Execute
Type string - execution type, unicast/broadcast.
- Group
Id string - deployment group ID.
- Task
Content string - task content, length limit 65536 bytes.
- Task
Name string - task name, task length 64 characters.
- Task
Type string - task type, java.
- Time
Out float64 - task timeout, time unit ms.
- Advance
Settings TsfTask Advance Settings Args - advanced settings.
- Program
Id []stringLists - Program id list.
- Retry
Count float64 - number of retries, 0 <= RetryCount<= 10.
- Retry
Interval float64 - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- []Tsf
Task Shard Argument Args - Fragmentation parameters.
- float64
- number of shards.
- Success
Operator string - the operator to judge the success of the task.
- Success
Ratio string - The threshold for judging the success rate of the task, such as 100.
- Task
Argument string - task parameters, the length limit is 10000 characters.
- Task
Rule TsfTask Task Rule Args - trigger rule.
- Tsf
Task stringId - ID of the resource.
- execute
Type String - execution type, unicast/broadcast.
- group
Id String - deployment group ID.
- task
Content String - task content, length limit 65536 bytes.
- task
Name String - task name, task length 64 characters.
- task
Type String - task type, java.
- time
Out Double - task timeout, time unit ms.
- advance
Settings TsfTask Advance Settings - advanced settings.
- program
Id List<String>Lists - Program id list.
- retry
Count Double - number of retries, 0 <= RetryCount<= 10.
- retry
Interval Double - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- List<Tsf
Task Shard Argument> - Fragmentation parameters.
- Double
- number of shards.
- success
Operator String - the operator to judge the success of the task.
- success
Ratio String - The threshold for judging the success rate of the task, such as 100.
- task
Argument String - task parameters, the length limit is 10000 characters.
- task
Rule TsfTask Task Rule - trigger rule.
- tsf
Task StringId - ID of the resource.
- execute
Type string - execution type, unicast/broadcast.
- group
Id string - deployment group ID.
- task
Content string - task content, length limit 65536 bytes.
- task
Name string - task name, task length 64 characters.
- task
Type string - task type, java.
- time
Out number - task timeout, time unit ms.
- advance
Settings TsfTask Advance Settings - advanced settings.
- program
Id string[]Lists - Program id list.
- retry
Count number - number of retries, 0 <= RetryCount<= 10.
- retry
Interval number - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- Tsf
Task Shard Argument[] - Fragmentation parameters.
- number
- number of shards.
- success
Operator string - the operator to judge the success of the task.
- success
Ratio string - The threshold for judging the success rate of the task, such as 100.
- task
Argument string - task parameters, the length limit is 10000 characters.
- task
Rule TsfTask Task Rule - trigger rule.
- tsf
Task stringId - ID of the resource.
- execute_
type str - execution type, unicast/broadcast.
- group_
id str - deployment group ID.
- task_
content str - task content, length limit 65536 bytes.
- task_
name str - task name, task length 64 characters.
- task_
type str - task type, java.
- time_
out float - task timeout, time unit ms.
- advance_
settings TsfTask Advance Settings Args - advanced settings.
- program_
id_ Sequence[str]lists - Program id list.
- retry_
count float - number of retries, 0 <= RetryCount<= 10.
- retry_
interval float - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- Sequence[Tsf
Task Shard Argument Args] - Fragmentation parameters.
- 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 TsfTask Task Rule Args - trigger rule.
- tsf_
task_ strid - ID of the resource.
- execute
Type String - execution type, unicast/broadcast.
- group
Id String - deployment group ID.
- task
Content String - task content, length limit 65536 bytes.
- task
Name String - task name, task length 64 characters.
- task
Type String - task type, java.
- time
Out Number - task timeout, time unit ms.
- advance
Settings Property Map - advanced settings.
- program
Id List<String>Lists - Program id list.
- retry
Count Number - number of retries, 0 <= RetryCount<= 10.
- retry
Interval Number - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- List<Property Map>
- Fragmentation parameters.
- Number
- number of shards.
- success
Operator String - the operator to judge the success of the task.
- success
Ratio String - The threshold for judging the success rate of the task, such as 100.
- task
Argument String - task parameters, the length limit is 10000 characters.
- task
Rule Property Map - trigger rule.
- tsf
Task StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TsfTask resource produces the following output properties:
- Belong
Flow List<string>Ids - ID of the workflow to which it belongs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Task
Id string - task ID.
- Task
Log stringId - task history ID.
- Task
State string - Whether to enable the task, ENABLED/DISABLED.
- Trigger
Type string - trigger type.
- Belong
Flow []stringIds - ID of the workflow to which it belongs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Task
Id string - task ID.
- Task
Log stringId - task history ID.
- Task
State string - Whether to enable the task, ENABLED/DISABLED.
- Trigger
Type string - trigger type.
- belong
Flow List<String>Ids - ID of the workflow to which it belongs.
- id String
- The provider-assigned unique ID for this managed resource.
- task
Id String - task ID.
- task
Log StringId - task history ID.
- task
State String - Whether to enable the task, ENABLED/DISABLED.
- trigger
Type String - trigger type.
- belong
Flow string[]Ids - ID of the workflow to which it belongs.
- id string
- The provider-assigned unique ID for this managed resource.
- task
Id string - task ID.
- task
Log stringId - task history ID.
- task
State string - Whether to enable the task, ENABLED/DISABLED.
- trigger
Type string - trigger type.
- belong_
flow_ Sequence[str]ids - 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_ strid - task history ID.
- task_
state str - Whether to enable the task, ENABLED/DISABLED.
- trigger_
type str - trigger type.
- belong
Flow List<String>Ids - ID of the workflow to which it belongs.
- id String
- The provider-assigned unique ID for this managed resource.
- task
Id String - task ID.
- task
Log StringId - task history ID.
- task
State String - Whether to enable the task, ENABLED/DISABLED.
- trigger
Type 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
- 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.
- Advance
Settings TsfTask Advance Settings - advanced settings.
- Belong
Flow List<string>Ids - ID of the workflow to which it belongs.
- Execute
Type string - execution type, unicast/broadcast.
- Group
Id string - deployment group ID.
- Program
Id List<string>Lists - Program id list.
- Retry
Count double - number of retries, 0 <= RetryCount<= 10.
- Retry
Interval double - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- Shard
Arguments List<TsfTask Shard Argument> - Fragmentation parameters.
- Shard
Count double - number of shards.
- Success
Operator string - the operator to judge the success of the task.
- Success
Ratio string - The threshold for judging the success rate of the task, such as 100.
- Task
Argument string - task parameters, the length limit is 10000 characters.
- Task
Content string - task content, length limit 65536 bytes.
- Task
Id string - task ID.
- Task
Log stringId - task history ID.
- Task
Name string - task name, task length 64 characters.
- Task
Rule TsfTask Task Rule - trigger rule.
- Task
State string - Whether to enable the task, ENABLED/DISABLED.
- Task
Type string - task type, java.
- Time
Out double - task timeout, time unit ms.
- Trigger
Type string - trigger type.
- Tsf
Task stringId - ID of the resource.
- Advance
Settings TsfTask Advance Settings Args - advanced settings.
- Belong
Flow []stringIds - ID of the workflow to which it belongs.
- Execute
Type string - execution type, unicast/broadcast.
- Group
Id string - deployment group ID.
- Program
Id []stringLists - Program id list.
- Retry
Count float64 - number of retries, 0 <= RetryCount<= 10.
- Retry
Interval float64 - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- Shard
Arguments []TsfTask Shard Argument Args - Fragmentation parameters.
- Shard
Count float64 - number of shards.
- Success
Operator string - the operator to judge the success of the task.
- Success
Ratio string - The threshold for judging the success rate of the task, such as 100.
- Task
Argument string - task parameters, the length limit is 10000 characters.
- Task
Content string - task content, length limit 65536 bytes.
- Task
Id string - task ID.
- Task
Log stringId - task history ID.
- Task
Name string - task name, task length 64 characters.
- Task
Rule TsfTask Task Rule Args - trigger rule.
- Task
State string - Whether to enable the task, ENABLED/DISABLED.
- Task
Type string - task type, java.
- Time
Out float64 - task timeout, time unit ms.
- Trigger
Type string - trigger type.
- Tsf
Task stringId - ID of the resource.
- advance
Settings TsfTask Advance Settings - advanced settings.
- belong
Flow List<String>Ids - ID of the workflow to which it belongs.
- execute
Type String - execution type, unicast/broadcast.
- group
Id String - deployment group ID.
- program
Id List<String>Lists - Program id list.
- retry
Count Double - number of retries, 0 <= RetryCount<= 10.
- retry
Interval Double - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- shard
Arguments List<TsfTask Shard Argument> - Fragmentation parameters.
- shard
Count Double - number of shards.
- success
Operator String - the operator to judge the success of the task.
- success
Ratio String - The threshold for judging the success rate of the task, such as 100.
- task
Argument String - task parameters, the length limit is 10000 characters.
- task
Content String - task content, length limit 65536 bytes.
- task
Id String - task ID.
- task
Log StringId - task history ID.
- task
Name String - task name, task length 64 characters.
- task
Rule TsfTask Task Rule - trigger rule.
- task
State String - Whether to enable the task, ENABLED/DISABLED.
- task
Type String - task type, java.
- time
Out Double - task timeout, time unit ms.
- trigger
Type String - trigger type.
- tsf
Task StringId - ID of the resource.
- advance
Settings TsfTask Advance Settings - advanced settings.
- belong
Flow string[]Ids - ID of the workflow to which it belongs.
- execute
Type string - execution type, unicast/broadcast.
- group
Id string - deployment group ID.
- program
Id string[]Lists - Program id list.
- retry
Count number - number of retries, 0 <= RetryCount<= 10.
- retry
Interval number - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- shard
Arguments TsfTask Shard Argument[] - Fragmentation parameters.
- shard
Count number - number of shards.
- success
Operator string - the operator to judge the success of the task.
- success
Ratio string - The threshold for judging the success rate of the task, such as 100.
- task
Argument string - task parameters, the length limit is 10000 characters.
- task
Content string - task content, length limit 65536 bytes.
- task
Id string - task ID.
- task
Log stringId - task history ID.
- task
Name string - task name, task length 64 characters.
- task
Rule TsfTask Task Rule - trigger rule.
- task
State string - Whether to enable the task, ENABLED/DISABLED.
- task
Type string - task type, java.
- time
Out number - task timeout, time unit ms.
- trigger
Type string - trigger type.
- tsf
Task stringId - ID of the resource.
- advance_
settings TsfTask Advance Settings Args - advanced settings.
- belong_
flow_ Sequence[str]ids - ID of the workflow to which it belongs.
- execute_
type str - execution type, unicast/broadcast.
- group_
id str - deployment group ID.
- program_
id_ Sequence[str]lists - Program id list.
- retry_
count float - number of retries, 0 <= RetryCount<= 10.
- retry_
interval float - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- shard_
arguments Sequence[TsfTask Shard Argument Args] - 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_ strid - task history ID.
- task_
name str - task name, task length 64 characters.
- task_
rule TsfTask Task Rule Args - 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_ strid - ID of the resource.
- advance
Settings Property Map - advanced settings.
- belong
Flow List<String>Ids - ID of the workflow to which it belongs.
- execute
Type String - execution type, unicast/broadcast.
- group
Id String - deployment group ID.
- program
Id List<String>Lists - Program id list.
- retry
Count Number - number of retries, 0 <= RetryCount<= 10.
- retry
Interval Number - retry interval, 0 <= RetryInterval <= 600000, time unit ms.
- shard
Arguments List<Property Map> - Fragmentation parameters.
- shard
Count Number - number of shards.
- success
Operator String - the operator to judge the success of the task.
- success
Ratio String - The threshold for judging the success rate of the task, such as 100.
- task
Argument String - task parameters, the length limit is 10000 characters.
- task
Content String - task content, length limit 65536 bytes.
- task
Id String - task ID.
- task
Log StringId - task history ID.
- task
Name String - task name, task length 64 characters.
- task
Rule Property Map - trigger rule.
- task
State String - Whether to enable the task, ENABLED/DISABLED.
- task
Type String - task type, java.
- time
Out Number - task timeout, time unit ms.
- trigger
Type String - trigger type.
- tsf
Task StringId - ID of the resource.
Supporting Types
TsfTaskAdvanceSettings, TsfTaskAdvanceSettingsArgs
- Sub
Task doubleConcurrency - Subtask single-machine concurrency limit, the default value is 2.
- Sub
Task float64Concurrency - Subtask single-machine concurrency limit, the default value is 2.
- sub
Task DoubleConcurrency - Subtask single-machine concurrency limit, the default value is 2.
- sub
Task numberConcurrency - Subtask single-machine concurrency limit, the default value is 2.
- sub_
task_ floatconcurrency - Subtask single-machine concurrency limit, the default value is 2.
- sub
Task NumberConcurrency - Subtask single-machine concurrency limit, the default value is 2.
TsfTaskShardArgument, TsfTaskShardArgumentArgs
- double
- Sharding parameter KEY, integer, range [1,1000].
- string
- Shard parameter VALUE.
- float64
- Sharding parameter KEY, integer, range [1,1000].
- string
- Shard parameter VALUE.
- Double
- Sharding parameter KEY, integer, range [1,1000].
- String
- Shard parameter VALUE.
- number
- Sharding parameter KEY, integer, range [1,1000].
- string
- Shard parameter VALUE.
- float
- Sharding parameter KEY, integer, range [1,1000].
- str
- Shard parameter VALUE.
- Number
- Sharding parameter KEY, integer, range [1,1000].
- String
- Shard parameter VALUE.
TsfTaskTaskRule, TsfTaskTaskRuleArgs
- Rule
Type string - trigger rule type, Cron/Repeat.
- Expression string
- Cron type rule, cron expression.
- Repeat
Interval double - time interval, in milliseconds.
- Rule
Type string - trigger rule type, Cron/Repeat.
- Expression string
- Cron type rule, cron expression.
- Repeat
Interval float64 - time interval, in milliseconds.
- rule
Type String - trigger rule type, Cron/Repeat.
- expression String
- Cron type rule, cron expression.
- repeat
Interval Double - time interval, in milliseconds.
- rule
Type string - trigger rule type, Cron/Repeat.
- expression string
- Cron type rule, cron expression.
- repeat
Interval number - time interval, in milliseconds.
- rule_
type str - trigger rule type, Cron/Repeat.
- expression str
- Cron type rule, cron expression.
- repeat_
interval float - time interval, in milliseconds.
- rule
Type String - trigger rule type, Cron/Repeat.
- expression String
- Cron type rule, cron expression.
- repeat
Interval 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
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.