1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WedataKillTriggerWorkflowRun
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack
tencentcloud logo
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack

    Provides a resource to kill wedata trigger workflow run

    NOTE: Both “all” and “pending” require obtaining the execution_id through the query interface before passing it as a parameter..

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const triggerWorkflowRuns = tencentcloud.getWedataTriggerWorkflowRuns({
        projectId: "3108707295180644352",
        filters: [{
            name: "WorkflowId",
            values: ["333368d7-bc8e-4b95-9a66-7a5151063eb2"],
        }],
        orderFields: [{
            name: "CreateTime",
            direction: "DESC",
        }],
    });
    const killAll = new tencentcloud.WedataKillTriggerWorkflowRun("kill_all", {
        projectId: "3108707295180644352",
        workflowId: "333368d7-bc8e-4b95-9a66-7a5151063eb2",
        workflowExecutionId: triggerWorkflowRuns.then(triggerWorkflowRuns => triggerWorkflowRuns.datas?.[0]?.items?.[0]?.executionId),
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    trigger_workflow_runs = tencentcloud.get_wedata_trigger_workflow_runs(project_id="3108707295180644352",
        filters=[{
            "name": "WorkflowId",
            "values": ["333368d7-bc8e-4b95-9a66-7a5151063eb2"],
        }],
        order_fields=[{
            "name": "CreateTime",
            "direction": "DESC",
        }])
    kill_all = tencentcloud.WedataKillTriggerWorkflowRun("kill_all",
        project_id="3108707295180644352",
        workflow_id="333368d7-bc8e-4b95-9a66-7a5151063eb2",
        workflow_execution_id=trigger_workflow_runs.datas[0].items[0].execution_id)
    
    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 {
    		triggerWorkflowRuns, err := tencentcloud.GetWedataTriggerWorkflowRuns(ctx, &tencentcloud.GetWedataTriggerWorkflowRunsArgs{
    			ProjectId: "3108707295180644352",
    			Filters: []tencentcloud.GetWedataTriggerWorkflowRunsFilter{
    				{
    					Name: pulumi.StringRef("WorkflowId"),
    					Values: []string{
    						"333368d7-bc8e-4b95-9a66-7a5151063eb2",
    					},
    				},
    			},
    			OrderFields: []tencentcloud.GetWedataTriggerWorkflowRunsOrderField{
    				{
    					Name:      "CreateTime",
    					Direction: "DESC",
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewWedataKillTriggerWorkflowRun(ctx, "kill_all", &tencentcloud.WedataKillTriggerWorkflowRunArgs{
    			ProjectId:           pulumi.String("3108707295180644352"),
    			WorkflowId:          pulumi.String("333368d7-bc8e-4b95-9a66-7a5151063eb2"),
    			WorkflowExecutionId: pulumi.String(triggerWorkflowRuns.Datas[0].Items[0].ExecutionId),
    		})
    		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 triggerWorkflowRuns = Tencentcloud.GetWedataTriggerWorkflowRuns.Invoke(new()
        {
            ProjectId = "3108707295180644352",
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetWedataTriggerWorkflowRunsFilterInputArgs
                {
                    Name = "WorkflowId",
                    Values = new[]
                    {
                        "333368d7-bc8e-4b95-9a66-7a5151063eb2",
                    },
                },
            },
            OrderFields = new[]
            {
                new Tencentcloud.Inputs.GetWedataTriggerWorkflowRunsOrderFieldInputArgs
                {
                    Name = "CreateTime",
                    Direction = "DESC",
                },
            },
        });
    
        var killAll = new Tencentcloud.WedataKillTriggerWorkflowRun("kill_all", new()
        {
            ProjectId = "3108707295180644352",
            WorkflowId = "333368d7-bc8e-4b95-9a66-7a5151063eb2",
            WorkflowExecutionId = triggerWorkflowRuns.Apply(getWedataTriggerWorkflowRunsResult => getWedataTriggerWorkflowRunsResult.Datas[0]?.Items[0]?.ExecutionId),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetWedataTriggerWorkflowRunsArgs;
    import com.pulumi.tencentcloud.WedataKillTriggerWorkflowRun;
    import com.pulumi.tencentcloud.WedataKillTriggerWorkflowRunArgs;
    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) {
            final var triggerWorkflowRuns = TencentcloudFunctions.getWedataTriggerWorkflowRuns(GetWedataTriggerWorkflowRunsArgs.builder()
                .projectId("3108707295180644352")
                .filters(GetWedataTriggerWorkflowRunsFilterArgs.builder()
                    .name("WorkflowId")
                    .values("333368d7-bc8e-4b95-9a66-7a5151063eb2")
                    .build())
                .orderFields(GetWedataTriggerWorkflowRunsOrderFieldArgs.builder()
                    .name("CreateTime")
                    .direction("DESC")
                    .build())
                .build());
    
            var killAll = new WedataKillTriggerWorkflowRun("killAll", WedataKillTriggerWorkflowRunArgs.builder()
                .projectId("3108707295180644352")
                .workflowId("333368d7-bc8e-4b95-9a66-7a5151063eb2")
                .workflowExecutionId(triggerWorkflowRuns.datas()[0].items()[0].executionId())
                .build());
    
        }
    }
    
    resources:
      killAll:
        type: tencentcloud:WedataKillTriggerWorkflowRun
        name: kill_all
        properties:
          projectId: '3108707295180644352'
          workflowId: 333368d7-bc8e-4b95-9a66-7a5151063eb2
          workflowExecutionId: ${triggerWorkflowRuns.datas[0].items[0].executionId}
    variables:
      triggerWorkflowRuns:
        fn::invoke:
          function: tencentcloud:getWedataTriggerWorkflowRuns
          arguments:
            projectId: '3108707295180644352'
            filters:
              - name: WorkflowId
                values:
                  - 333368d7-bc8e-4b95-9a66-7a5151063eb2
            orderFields:
              - name: CreateTime
                direction: DESC
    

    Create WedataKillTriggerWorkflowRun Resource

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

    Constructor syntax

    new WedataKillTriggerWorkflowRun(name: string, args: WedataKillTriggerWorkflowRunArgs, opts?: CustomResourceOptions);
    @overload
    def WedataKillTriggerWorkflowRun(resource_name: str,
                                     args: WedataKillTriggerWorkflowRunArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def WedataKillTriggerWorkflowRun(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     project_id: Optional[str] = None,
                                     workflow_execution_id: Optional[str] = None,
                                     workflow_id: Optional[str] = None,
                                     wedata_kill_trigger_workflow_run_id: Optional[str] = None)
    func NewWedataKillTriggerWorkflowRun(ctx *Context, name string, args WedataKillTriggerWorkflowRunArgs, opts ...ResourceOption) (*WedataKillTriggerWorkflowRun, error)
    public WedataKillTriggerWorkflowRun(string name, WedataKillTriggerWorkflowRunArgs args, CustomResourceOptions? opts = null)
    public WedataKillTriggerWorkflowRun(String name, WedataKillTriggerWorkflowRunArgs args)
    public WedataKillTriggerWorkflowRun(String name, WedataKillTriggerWorkflowRunArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WedataKillTriggerWorkflowRun
    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 WedataKillTriggerWorkflowRunArgs
    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 WedataKillTriggerWorkflowRunArgs
    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 WedataKillTriggerWorkflowRunArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WedataKillTriggerWorkflowRunArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WedataKillTriggerWorkflowRunArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ProjectId string
    Project ID.
    WorkflowExecutionId string
    Workflow execution ID to stop.
    WorkflowId string
    Workflow ID.
    WedataKillTriggerWorkflowRunId string
    ID of the resource.
    ProjectId string
    Project ID.
    WorkflowExecutionId string
    Workflow execution ID to stop.
    WorkflowId string
    Workflow ID.
    WedataKillTriggerWorkflowRunId string
    ID of the resource.
    projectId String
    Project ID.
    workflowExecutionId String
    Workflow execution ID to stop.
    workflowId String
    Workflow ID.
    wedataKillTriggerWorkflowRunId String
    ID of the resource.
    projectId string
    Project ID.
    workflowExecutionId string
    Workflow execution ID to stop.
    workflowId string
    Workflow ID.
    wedataKillTriggerWorkflowRunId string
    ID of the resource.
    project_id str
    Project ID.
    workflow_execution_id str
    Workflow execution ID to stop.
    workflow_id str
    Workflow ID.
    wedata_kill_trigger_workflow_run_id str
    ID of the resource.
    projectId String
    Project ID.
    workflowExecutionId String
    Workflow execution ID to stop.
    workflowId String
    Workflow ID.
    wedataKillTriggerWorkflowRunId String
    ID of the resource.

    Outputs

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

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

    Look up Existing WedataKillTriggerWorkflowRun Resource

    Get an existing WedataKillTriggerWorkflowRun 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?: WedataKillTriggerWorkflowRunState, opts?: CustomResourceOptions): WedataKillTriggerWorkflowRun
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            project_id: Optional[str] = None,
            wedata_kill_trigger_workflow_run_id: Optional[str] = None,
            workflow_execution_id: Optional[str] = None,
            workflow_id: Optional[str] = None) -> WedataKillTriggerWorkflowRun
    func GetWedataKillTriggerWorkflowRun(ctx *Context, name string, id IDInput, state *WedataKillTriggerWorkflowRunState, opts ...ResourceOption) (*WedataKillTriggerWorkflowRun, error)
    public static WedataKillTriggerWorkflowRun Get(string name, Input<string> id, WedataKillTriggerWorkflowRunState? state, CustomResourceOptions? opts = null)
    public static WedataKillTriggerWorkflowRun get(String name, Output<String> id, WedataKillTriggerWorkflowRunState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WedataKillTriggerWorkflowRun    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:
    ProjectId string
    Project ID.
    WedataKillTriggerWorkflowRunId string
    ID of the resource.
    WorkflowExecutionId string
    Workflow execution ID to stop.
    WorkflowId string
    Workflow ID.
    ProjectId string
    Project ID.
    WedataKillTriggerWorkflowRunId string
    ID of the resource.
    WorkflowExecutionId string
    Workflow execution ID to stop.
    WorkflowId string
    Workflow ID.
    projectId String
    Project ID.
    wedataKillTriggerWorkflowRunId String
    ID of the resource.
    workflowExecutionId String
    Workflow execution ID to stop.
    workflowId String
    Workflow ID.
    projectId string
    Project ID.
    wedataKillTriggerWorkflowRunId string
    ID of the resource.
    workflowExecutionId string
    Workflow execution ID to stop.
    workflowId string
    Workflow ID.
    project_id str
    Project ID.
    wedata_kill_trigger_workflow_run_id str
    ID of the resource.
    workflow_execution_id str
    Workflow execution ID to stop.
    workflow_id str
    Workflow ID.
    projectId String
    Project ID.
    wedataKillTriggerWorkflowRunId String
    ID of the resource.
    workflowExecutionId String
    Workflow execution ID to stop.
    workflowId String
    Workflow ID.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    Viewing docs for tencentcloud 1.82.79
    published on Friday, Mar 27, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.