1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WedataWorkflowPermissions
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 create a WeData workflow permissions

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WedataWorkflowPermissions("example", {
        projectId: "3108707295180644352",
        entityId: "53e78f97-f145-11f0-ba36-b8cef6a5af5c",
        entityType: "folder",
        permissionLists: [
            {
                permissionTargetType: "user",
                permissionTargetId: "100028448903",
                permissionTypeLists: ["CAN_MANAGE"],
            },
            {
                permissionTargetType: "role",
                permissionTargetId: "308335260676890624",
                permissionTypeLists: ["CAN_MANAGE"],
            },
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WedataWorkflowPermissions("example",
        project_id="3108707295180644352",
        entity_id="53e78f97-f145-11f0-ba36-b8cef6a5af5c",
        entity_type="folder",
        permission_lists=[
            {
                "permission_target_type": "user",
                "permission_target_id": "100028448903",
                "permission_type_lists": ["CAN_MANAGE"],
            },
            {
                "permission_target_type": "role",
                "permission_target_id": "308335260676890624",
                "permission_type_lists": ["CAN_MANAGE"],
            },
        ])
    
    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.NewWedataWorkflowPermissions(ctx, "example", &tencentcloud.WedataWorkflowPermissionsArgs{
    			ProjectId:  pulumi.String("3108707295180644352"),
    			EntityId:   pulumi.String("53e78f97-f145-11f0-ba36-b8cef6a5af5c"),
    			EntityType: pulumi.String("folder"),
    			PermissionLists: tencentcloud.WedataWorkflowPermissionsPermissionListArray{
    				&tencentcloud.WedataWorkflowPermissionsPermissionListArgs{
    					PermissionTargetType: pulumi.String("user"),
    					PermissionTargetId:   pulumi.String("100028448903"),
    					PermissionTypeLists: pulumi.StringArray{
    						pulumi.String("CAN_MANAGE"),
    					},
    				},
    				&tencentcloud.WedataWorkflowPermissionsPermissionListArgs{
    					PermissionTargetType: pulumi.String("role"),
    					PermissionTargetId:   pulumi.String("308335260676890624"),
    					PermissionTypeLists: pulumi.StringArray{
    						pulumi.String("CAN_MANAGE"),
    					},
    				},
    			},
    		})
    		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.WedataWorkflowPermissions("example", new()
        {
            ProjectId = "3108707295180644352",
            EntityId = "53e78f97-f145-11f0-ba36-b8cef6a5af5c",
            EntityType = "folder",
            PermissionLists = new[]
            {
                new Tencentcloud.Inputs.WedataWorkflowPermissionsPermissionListArgs
                {
                    PermissionTargetType = "user",
                    PermissionTargetId = "100028448903",
                    PermissionTypeLists = new[]
                    {
                        "CAN_MANAGE",
                    },
                },
                new Tencentcloud.Inputs.WedataWorkflowPermissionsPermissionListArgs
                {
                    PermissionTargetType = "role",
                    PermissionTargetId = "308335260676890624",
                    PermissionTypeLists = new[]
                    {
                        "CAN_MANAGE",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WedataWorkflowPermissions;
    import com.pulumi.tencentcloud.WedataWorkflowPermissionsArgs;
    import com.pulumi.tencentcloud.inputs.WedataWorkflowPermissionsPermissionListArgs;
    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 WedataWorkflowPermissions("example", WedataWorkflowPermissionsArgs.builder()
                .projectId("3108707295180644352")
                .entityId("53e78f97-f145-11f0-ba36-b8cef6a5af5c")
                .entityType("folder")
                .permissionLists(            
                    WedataWorkflowPermissionsPermissionListArgs.builder()
                        .permissionTargetType("user")
                        .permissionTargetId("100028448903")
                        .permissionTypeLists("CAN_MANAGE")
                        .build(),
                    WedataWorkflowPermissionsPermissionListArgs.builder()
                        .permissionTargetType("role")
                        .permissionTargetId("308335260676890624")
                        .permissionTypeLists("CAN_MANAGE")
                        .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WedataWorkflowPermissions
        properties:
          projectId: '3108707295180644352'
          entityId: 53e78f97-f145-11f0-ba36-b8cef6a5af5c
          entityType: folder
          permissionLists:
            - permissionTargetType: user
              permissionTargetId: '100028448903'
              permissionTypeLists:
                - CAN_MANAGE
            - permissionTargetType: role
              permissionTargetId: '308335260676890624'
              permissionTypeLists:
                - CAN_MANAGE
    

    Create WedataWorkflowPermissions Resource

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

    Constructor syntax

    new WedataWorkflowPermissions(name: string, args: WedataWorkflowPermissionsArgs, opts?: CustomResourceOptions);
    @overload
    def WedataWorkflowPermissions(resource_name: str,
                                  args: WedataWorkflowPermissionsArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def WedataWorkflowPermissions(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  entity_id: Optional[str] = None,
                                  entity_type: Optional[str] = None,
                                  permission_lists: Optional[Sequence[WedataWorkflowPermissionsPermissionListArgs]] = None,
                                  project_id: Optional[str] = None,
                                  wedata_workflow_permissions_id: Optional[str] = None)
    func NewWedataWorkflowPermissions(ctx *Context, name string, args WedataWorkflowPermissionsArgs, opts ...ResourceOption) (*WedataWorkflowPermissions, error)
    public WedataWorkflowPermissions(string name, WedataWorkflowPermissionsArgs args, CustomResourceOptions? opts = null)
    public WedataWorkflowPermissions(String name, WedataWorkflowPermissionsArgs args)
    public WedataWorkflowPermissions(String name, WedataWorkflowPermissionsArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WedataWorkflowPermissions
    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 WedataWorkflowPermissionsArgs
    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 WedataWorkflowPermissionsArgs
    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 WedataWorkflowPermissionsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WedataWorkflowPermissionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WedataWorkflowPermissionsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    EntityId string
    Authorization entity ID.
    EntityType string
    Authorization entity type, folder/workflow.
    PermissionLists List<WedataWorkflowPermissionsPermissionList>
    Authorization information array.
    ProjectId string
    Project ID.
    WedataWorkflowPermissionsId string
    ID of the resource.
    EntityId string
    Authorization entity ID.
    EntityType string
    Authorization entity type, folder/workflow.
    PermissionLists []WedataWorkflowPermissionsPermissionListArgs
    Authorization information array.
    ProjectId string
    Project ID.
    WedataWorkflowPermissionsId string
    ID of the resource.
    entityId String
    Authorization entity ID.
    entityType String
    Authorization entity type, folder/workflow.
    permissionLists List<WedataWorkflowPermissionsPermissionList>
    Authorization information array.
    projectId String
    Project ID.
    wedataWorkflowPermissionsId String
    ID of the resource.
    entityId string
    Authorization entity ID.
    entityType string
    Authorization entity type, folder/workflow.
    permissionLists WedataWorkflowPermissionsPermissionList[]
    Authorization information array.
    projectId string
    Project ID.
    wedataWorkflowPermissionsId string
    ID of the resource.
    entity_id str
    Authorization entity ID.
    entity_type str
    Authorization entity type, folder/workflow.
    permission_lists Sequence[WedataWorkflowPermissionsPermissionListArgs]
    Authorization information array.
    project_id str
    Project ID.
    wedata_workflow_permissions_id str
    ID of the resource.
    entityId String
    Authorization entity ID.
    entityType String
    Authorization entity type, folder/workflow.
    permissionLists List<Property Map>
    Authorization information array.
    projectId String
    Project ID.
    wedataWorkflowPermissionsId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WedataWorkflowPermissions 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 WedataWorkflowPermissions Resource

    Get an existing WedataWorkflowPermissions 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?: WedataWorkflowPermissionsState, opts?: CustomResourceOptions): WedataWorkflowPermissions
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            entity_id: Optional[str] = None,
            entity_type: Optional[str] = None,
            permission_lists: Optional[Sequence[WedataWorkflowPermissionsPermissionListArgs]] = None,
            project_id: Optional[str] = None,
            wedata_workflow_permissions_id: Optional[str] = None) -> WedataWorkflowPermissions
    func GetWedataWorkflowPermissions(ctx *Context, name string, id IDInput, state *WedataWorkflowPermissionsState, opts ...ResourceOption) (*WedataWorkflowPermissions, error)
    public static WedataWorkflowPermissions Get(string name, Input<string> id, WedataWorkflowPermissionsState? state, CustomResourceOptions? opts = null)
    public static WedataWorkflowPermissions get(String name, Output<String> id, WedataWorkflowPermissionsState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WedataWorkflowPermissions    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:
    EntityId string
    Authorization entity ID.
    EntityType string
    Authorization entity type, folder/workflow.
    PermissionLists List<WedataWorkflowPermissionsPermissionList>
    Authorization information array.
    ProjectId string
    Project ID.
    WedataWorkflowPermissionsId string
    ID of the resource.
    EntityId string
    Authorization entity ID.
    EntityType string
    Authorization entity type, folder/workflow.
    PermissionLists []WedataWorkflowPermissionsPermissionListArgs
    Authorization information array.
    ProjectId string
    Project ID.
    WedataWorkflowPermissionsId string
    ID of the resource.
    entityId String
    Authorization entity ID.
    entityType String
    Authorization entity type, folder/workflow.
    permissionLists List<WedataWorkflowPermissionsPermissionList>
    Authorization information array.
    projectId String
    Project ID.
    wedataWorkflowPermissionsId String
    ID of the resource.
    entityId string
    Authorization entity ID.
    entityType string
    Authorization entity type, folder/workflow.
    permissionLists WedataWorkflowPermissionsPermissionList[]
    Authorization information array.
    projectId string
    Project ID.
    wedataWorkflowPermissionsId string
    ID of the resource.
    entity_id str
    Authorization entity ID.
    entity_type str
    Authorization entity type, folder/workflow.
    permission_lists Sequence[WedataWorkflowPermissionsPermissionListArgs]
    Authorization information array.
    project_id str
    Project ID.
    wedata_workflow_permissions_id str
    ID of the resource.
    entityId String
    Authorization entity ID.
    entityType String
    Authorization entity type, folder/workflow.
    permissionLists List<Property Map>
    Authorization information array.
    projectId String
    Project ID.
    wedataWorkflowPermissionsId String
    ID of the resource.

    Supporting Types

    WedataWorkflowPermissionsPermissionList, WedataWorkflowPermissionsPermissionListArgs

    PermissionTargetId string
    Authorization target ID array (userId/roleId).
    PermissionTargetType string
    Authorization target type (user: user, role: role).
    PermissionTypeLists List<string>
    Authorization permission type array (CAN_VIEW/CAN_RUN/CAN_EDIT/CAN_MANAGE, currently only supports CAN_MANAGE).
    PermissionTargetId string
    Authorization target ID array (userId/roleId).
    PermissionTargetType string
    Authorization target type (user: user, role: role).
    PermissionTypeLists []string
    Authorization permission type array (CAN_VIEW/CAN_RUN/CAN_EDIT/CAN_MANAGE, currently only supports CAN_MANAGE).
    permissionTargetId String
    Authorization target ID array (userId/roleId).
    permissionTargetType String
    Authorization target type (user: user, role: role).
    permissionTypeLists List<String>
    Authorization permission type array (CAN_VIEW/CAN_RUN/CAN_EDIT/CAN_MANAGE, currently only supports CAN_MANAGE).
    permissionTargetId string
    Authorization target ID array (userId/roleId).
    permissionTargetType string
    Authorization target type (user: user, role: role).
    permissionTypeLists string[]
    Authorization permission type array (CAN_VIEW/CAN_RUN/CAN_EDIT/CAN_MANAGE, currently only supports CAN_MANAGE).
    permission_target_id str
    Authorization target ID array (userId/roleId).
    permission_target_type str
    Authorization target type (user: user, role: role).
    permission_type_lists Sequence[str]
    Authorization permission type array (CAN_VIEW/CAN_RUN/CAN_EDIT/CAN_MANAGE, currently only supports CAN_MANAGE).
    permissionTargetId String
    Authorization target ID array (userId/roleId).
    permissionTargetType String
    Authorization target type (user: user, role: role).
    permissionTypeLists List<String>
    Authorization permission type array (CAN_VIEW/CAN_RUN/CAN_EDIT/CAN_MANAGE, currently only supports CAN_MANAGE).

    Import

    WeData workflow permissions can be imported using the projectId#entityId#entityType, e.g.

    $ pulumi import tencentcloud:index/wedataWorkflowPermissions:WedataWorkflowPermissions example 3108707295180644352#53e78f97-f145-11f0-ba36-b8cef6a5af5c#folder
    

    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.
    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.