1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WedataAuthorizeDataSource
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 authorize data source

    Example Usage

    Authorize by project ids

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WedataAuthorizeDataSource("example", {
        dataSourceId: "116203",
        authProjectIds: [
            "1857740139240632320",
            "1857740139240632318",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WedataAuthorizeDataSource("example",
        data_source_id="116203",
        auth_project_ids=[
            "1857740139240632320",
            "1857740139240632318",
        ])
    
    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.NewWedataAuthorizeDataSource(ctx, "example", &tencentcloud.WedataAuthorizeDataSourceArgs{
    			DataSourceId: pulumi.String("116203"),
    			AuthProjectIds: pulumi.StringArray{
    				pulumi.String("1857740139240632320"),
    				pulumi.String("1857740139240632318"),
    			},
    		})
    		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.WedataAuthorizeDataSource("example", new()
        {
            DataSourceId = "116203",
            AuthProjectIds = new[]
            {
                "1857740139240632320",
                "1857740139240632318",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WedataAuthorizeDataSource;
    import com.pulumi.tencentcloud.WedataAuthorizeDataSourceArgs;
    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 WedataAuthorizeDataSource("example", WedataAuthorizeDataSourceArgs.builder()
                .dataSourceId("116203")
                .authProjectIds(            
                    "1857740139240632320",
                    "1857740139240632318")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WedataAuthorizeDataSource
        properties:
          dataSourceId: '116203'
          authProjectIds:
            - '1857740139240632320'
            - '1857740139240632318'
    

    Authorize by users

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WedataAuthorizeDataSource("example", {
        dataSourceId: "116203",
        authUsers: [
            "1857740139240632320_100028448903",
            "1857740139240632320_100028578751",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WedataAuthorizeDataSource("example",
        data_source_id="116203",
        auth_users=[
            "1857740139240632320_100028448903",
            "1857740139240632320_100028578751",
        ])
    
    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.NewWedataAuthorizeDataSource(ctx, "example", &tencentcloud.WedataAuthorizeDataSourceArgs{
    			DataSourceId: pulumi.String("116203"),
    			AuthUsers: pulumi.StringArray{
    				pulumi.String("1857740139240632320_100028448903"),
    				pulumi.String("1857740139240632320_100028578751"),
    			},
    		})
    		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.WedataAuthorizeDataSource("example", new()
        {
            DataSourceId = "116203",
            AuthUsers = new[]
            {
                "1857740139240632320_100028448903",
                "1857740139240632320_100028578751",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WedataAuthorizeDataSource;
    import com.pulumi.tencentcloud.WedataAuthorizeDataSourceArgs;
    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 WedataAuthorizeDataSource("example", WedataAuthorizeDataSourceArgs.builder()
                .dataSourceId("116203")
                .authUsers(            
                    "1857740139240632320_100028448903",
                    "1857740139240632320_100028578751")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WedataAuthorizeDataSource
        properties:
          dataSourceId: '116203'
          authUsers:
            - '1857740139240632320_100028448903'
            - '1857740139240632320_100028578751'
    

    Create WedataAuthorizeDataSource Resource

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

    Constructor syntax

    new WedataAuthorizeDataSource(name: string, args: WedataAuthorizeDataSourceArgs, opts?: CustomResourceOptions);
    @overload
    def WedataAuthorizeDataSource(resource_name: str,
                                  args: WedataAuthorizeDataSourceArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def WedataAuthorizeDataSource(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  data_source_id: Optional[str] = None,
                                  auth_project_ids: Optional[Sequence[str]] = None,
                                  auth_users: Optional[Sequence[str]] = None,
                                  wedata_authorize_data_source_id: Optional[str] = None)
    func NewWedataAuthorizeDataSource(ctx *Context, name string, args WedataAuthorizeDataSourceArgs, opts ...ResourceOption) (*WedataAuthorizeDataSource, error)
    public WedataAuthorizeDataSource(string name, WedataAuthorizeDataSourceArgs args, CustomResourceOptions? opts = null)
    public WedataAuthorizeDataSource(String name, WedataAuthorizeDataSourceArgs args)
    public WedataAuthorizeDataSource(String name, WedataAuthorizeDataSourceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WedataAuthorizeDataSource
    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 WedataAuthorizeDataSourceArgs
    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 WedataAuthorizeDataSourceArgs
    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 WedataAuthorizeDataSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WedataAuthorizeDataSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WedataAuthorizeDataSourceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    DataSourceId string
    Data source ID.
    AuthProjectIds List<string>
    List of target project ID to be authorized.
    AuthUsers List<string>
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    WedataAuthorizeDataSourceId string
    ID of the resource.
    DataSourceId string
    Data source ID.
    AuthProjectIds []string
    List of target project ID to be authorized.
    AuthUsers []string
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    WedataAuthorizeDataSourceId string
    ID of the resource.
    dataSourceId String
    Data source ID.
    authProjectIds List<String>
    List of target project ID to be authorized.
    authUsers List<String>
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    wedataAuthorizeDataSourceId String
    ID of the resource.
    dataSourceId string
    Data source ID.
    authProjectIds string[]
    List of target project ID to be authorized.
    authUsers string[]
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    wedataAuthorizeDataSourceId string
    ID of the resource.
    data_source_id str
    Data source ID.
    auth_project_ids Sequence[str]
    List of target project ID to be authorized.
    auth_users Sequence[str]
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    wedata_authorize_data_source_id str
    ID of the resource.
    dataSourceId String
    Data source ID.
    authProjectIds List<String>
    List of target project ID to be authorized.
    authUsers List<String>
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    wedataAuthorizeDataSourceId String
    ID of the resource.

    Outputs

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

    Get an existing WedataAuthorizeDataSource 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?: WedataAuthorizeDataSourceState, opts?: CustomResourceOptions): WedataAuthorizeDataSource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auth_project_ids: Optional[Sequence[str]] = None,
            auth_users: Optional[Sequence[str]] = None,
            data_source_id: Optional[str] = None,
            wedata_authorize_data_source_id: Optional[str] = None) -> WedataAuthorizeDataSource
    func GetWedataAuthorizeDataSource(ctx *Context, name string, id IDInput, state *WedataAuthorizeDataSourceState, opts ...ResourceOption) (*WedataAuthorizeDataSource, error)
    public static WedataAuthorizeDataSource Get(string name, Input<string> id, WedataAuthorizeDataSourceState? state, CustomResourceOptions? opts = null)
    public static WedataAuthorizeDataSource get(String name, Output<String> id, WedataAuthorizeDataSourceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WedataAuthorizeDataSource    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:
    AuthProjectIds List<string>
    List of target project ID to be authorized.
    AuthUsers List<string>
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    DataSourceId string
    Data source ID.
    WedataAuthorizeDataSourceId string
    ID of the resource.
    AuthProjectIds []string
    List of target project ID to be authorized.
    AuthUsers []string
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    DataSourceId string
    Data source ID.
    WedataAuthorizeDataSourceId string
    ID of the resource.
    authProjectIds List<String>
    List of target project ID to be authorized.
    authUsers List<String>
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    dataSourceId String
    Data source ID.
    wedataAuthorizeDataSourceId String
    ID of the resource.
    authProjectIds string[]
    List of target project ID to be authorized.
    authUsers string[]
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    dataSourceId string
    Data source ID.
    wedataAuthorizeDataSourceId string
    ID of the resource.
    auth_project_ids Sequence[str]
    List of target project ID to be authorized.
    auth_users Sequence[str]
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    data_source_id str
    Data source ID.
    wedata_authorize_data_source_id str
    ID of the resource.
    authProjectIds List<String>
    List of target project ID to be authorized.
    authUsers List<String>
    List of users under the authorized project, format: project_id_user_id. When authorizing multiple objects, the project ID must be consistent.
    dataSourceId String
    Data source ID.
    wedataAuthorizeDataSourceId String
    ID of the resource.

    Import

    WeData authorize data source can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/wedataAuthorizeDataSource:WedataAuthorizeDataSource example 116203
    

    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.