import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface TsfTaskConfig extends cdktf.TerraformMetaArguments { /** * execution type, unicast/broadcast. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#execute_type TsfTask#execute_type} */ readonly executeType: string; /** * deployment group ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#group_id TsfTask#group_id} */ readonly groupId: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#id TsfTask#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * Program id list. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#program_id_list TsfTask#program_id_list} */ readonly programIdList?: string[]; /** * number of retries, 0 <= RetryCount<= 10. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#retry_count TsfTask#retry_count} */ readonly retryCount?: number; /** * retry interval, 0 <= RetryInterval <= 600000, time unit ms. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#retry_interval TsfTask#retry_interval} */ readonly retryInterval?: number; /** * number of shards. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#shard_count TsfTask#shard_count} */ readonly shardCount?: number; /** * the operator to judge the success of the task. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#success_operator TsfTask#success_operator} */ readonly successOperator?: string; /** * The threshold for judging the success rate of the task, such as 100. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#success_ratio TsfTask#success_ratio} */ readonly successRatio?: string; /** * task parameters, the length limit is 10000 characters. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#task_argument TsfTask#task_argument} */ readonly taskArgument?: string; /** * task content, length limit 65536 bytes. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#task_content TsfTask#task_content} */ readonly taskContent: string; /** * task name, task length 64 characters. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#task_name TsfTask#task_name} */ readonly taskName: string; /** * task type, java. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#task_type TsfTask#task_type} */ readonly taskType: string; /** * task timeout, time unit ms. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#time_out TsfTask#time_out} */ readonly timeOut: number; /** * advance_settings block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#advance_settings TsfTask#advance_settings} */ readonly advanceSettings?: TsfTaskAdvanceSettings; /** * shard_arguments block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#shard_arguments TsfTask#shard_arguments} */ readonly shardArguments?: TsfTaskShardArguments[] | cdktf.IResolvable; /** * task_rule block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#task_rule TsfTask#task_rule} */ readonly taskRule?: TsfTaskTaskRule; } export interface TsfTaskAdvanceSettings { /** * Subtask single-machine concurrency limit, the default value is 2. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#sub_task_concurrency TsfTask#sub_task_concurrency} */ readonly subTaskConcurrency?: number; } export declare function tsfTaskAdvanceSettingsToTerraform(struct?: TsfTaskAdvanceSettingsOutputReference | TsfTaskAdvanceSettings): any; export declare function tsfTaskAdvanceSettingsToHclTerraform(struct?: TsfTaskAdvanceSettingsOutputReference | TsfTaskAdvanceSettings): any; export declare class TsfTaskAdvanceSettingsOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): TsfTaskAdvanceSettings | undefined; set internalValue(value: TsfTaskAdvanceSettings | undefined); private _subTaskConcurrency?; get subTaskConcurrency(): number; set subTaskConcurrency(value: number); resetSubTaskConcurrency(): void; get subTaskConcurrencyInput(): number; } export interface TsfTaskShardArguments { /** * Sharding parameter KEY, integer, range [1,1000]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#shard_key TsfTask#shard_key} */ readonly shardKey: number; /** * Shard parameter VALUE. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#shard_value TsfTask#shard_value} */ readonly shardValue: string; } export declare function tsfTaskShardArgumentsToTerraform(struct?: TsfTaskShardArguments | cdktf.IResolvable): any; export declare function tsfTaskShardArgumentsToHclTerraform(struct?: TsfTaskShardArguments | cdktf.IResolvable): any; export declare class TsfTaskShardArgumentsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): TsfTaskShardArguments | cdktf.IResolvable | undefined; set internalValue(value: TsfTaskShardArguments | cdktf.IResolvable | undefined); private _shardKey?; get shardKey(): number; set shardKey(value: number); get shardKeyInput(): number; private _shardValue?; get shardValue(): string; set shardValue(value: string); get shardValueInput(): string; } export declare class TsfTaskShardArgumentsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: TsfTaskShardArguments[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): TsfTaskShardArgumentsOutputReference; } export interface TsfTaskTaskRule { /** * Cron type rule, cron expression. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#expression TsfTask#expression} */ readonly expression?: string; /** * time interval, in milliseconds. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#repeat_interval TsfTask#repeat_interval} */ readonly repeatInterval?: number; /** * trigger rule type, Cron/Repeat. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#rule_type TsfTask#rule_type} */ readonly ruleType: string; } export declare function tsfTaskTaskRuleToTerraform(struct?: TsfTaskTaskRuleOutputReference | TsfTaskTaskRule): any; export declare function tsfTaskTaskRuleToHclTerraform(struct?: TsfTaskTaskRuleOutputReference | TsfTaskTaskRule): any; export declare class TsfTaskTaskRuleOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): TsfTaskTaskRule | undefined; set internalValue(value: TsfTaskTaskRule | undefined); private _expression?; get expression(): string; set expression(value: string); resetExpression(): void; get expressionInput(): string; private _repeatInterval?; get repeatInterval(): number; set repeatInterval(value: number); resetRepeatInterval(): void; get repeatIntervalInput(): number; private _ruleType?; get ruleType(): string; set ruleType(value: string); get ruleTypeInput(): string; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task tencentcloud_tsf_task} */ export declare class TsfTask extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_tsf_task"; /** * Generates CDKTF code for importing a TsfTask resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the TsfTask to import * @param importFromId The id of the existing TsfTask that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the TsfTask to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tsf_task tencentcloud_tsf_task} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options TsfTaskConfig */ constructor(scope: Construct, id: string, config: TsfTaskConfig); get belongFlowIds(): any; private _executeType?; get executeType(): string; set executeType(value: string); get executeTypeInput(): string; private _groupId?; get groupId(): string; set groupId(value: string); get groupIdInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _programIdList?; get programIdList(): string[]; set programIdList(value: string[]); resetProgramIdList(): void; get programIdListInput(): string[]; private _retryCount?; get retryCount(): number; set retryCount(value: number); resetRetryCount(): void; get retryCountInput(): number; private _retryInterval?; get retryInterval(): number; set retryInterval(value: number); resetRetryInterval(): void; get retryIntervalInput(): number; private _shardCount?; get shardCount(): number; set shardCount(value: number); resetShardCount(): void; get shardCountInput(): number; private _successOperator?; get successOperator(): string; set successOperator(value: string); resetSuccessOperator(): void; get successOperatorInput(): string; private _successRatio?; get successRatio(): string; set successRatio(value: string); resetSuccessRatio(): void; get successRatioInput(): string; private _taskArgument?; get taskArgument(): string; set taskArgument(value: string); resetTaskArgument(): void; get taskArgumentInput(): string; private _taskContent?; get taskContent(): string; set taskContent(value: string); get taskContentInput(): string; get taskId(): any; get taskLogId(): any; private _taskName?; get taskName(): string; set taskName(value: string); get taskNameInput(): string; get taskState(): any; private _taskType?; get taskType(): string; set taskType(value: string); get taskTypeInput(): string; private _timeOut?; get timeOut(): number; set timeOut(value: number); get timeOutInput(): number; get triggerType(): any; private _advanceSettings; get advanceSettings(): TsfTaskAdvanceSettingsOutputReference; putAdvanceSettings(value: TsfTaskAdvanceSettings): void; resetAdvanceSettings(): void; get advanceSettingsInput(): TsfTaskAdvanceSettings; private _shardArguments; get shardArguments(): TsfTaskShardArgumentsList; putShardArguments(value: TsfTaskShardArguments[] | cdktf.IResolvable): void; resetShardArguments(): void; get shardArgumentsInput(): any; private _taskRule; get taskRule(): TsfTaskTaskRuleOutputReference; putTaskRule(value: TsfTaskTaskRule): void; resetTaskRule(): void; get taskRuleInput(): TsfTaskTaskRule; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }