tencentcloud.WedataProjectMember
Provides a resource to create a WeData project member
NOTE: This resource must exclusive in one share unit, do not declare additional roleIds resources of this project member elsewhere.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WedataProject("example", {
project: {
projectName: "tf_example",
displayName: "display_name",
projectModel: "SIMPLE",
},
dlcInfo: {
computeResources: ["svmgao_stability"],
region: "ap-guangzhou",
defaultDatabase: "db_name",
standardModeEnvTag: "Dev",
accessAccount: "OWNER",
},
resourceIds: [
"20250909193110713075",
"20250820215449817917",
],
status: 1,
});
const exampleWedataProjectMember = new tencentcloud.WedataProjectMember("example", {
projectId: example.wedataProjectId,
userUin: "100044238258",
roleIds: [
"308335260274237440",
"308335260844662784",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WedataProject("example",
project={
"project_name": "tf_example",
"display_name": "display_name",
"project_model": "SIMPLE",
},
dlc_info={
"compute_resources": ["svmgao_stability"],
"region": "ap-guangzhou",
"default_database": "db_name",
"standard_mode_env_tag": "Dev",
"access_account": "OWNER",
},
resource_ids=[
"20250909193110713075",
"20250820215449817917",
],
status=1)
example_wedata_project_member = tencentcloud.WedataProjectMember("example",
project_id=example.wedata_project_id,
user_uin="100044238258",
role_ids=[
"308335260274237440",
"308335260844662784",
])
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 {
example, err := tencentcloud.NewWedataProject(ctx, "example", &tencentcloud.WedataProjectArgs{
Project: &tencentcloud.WedataProjectProjectArgs{
ProjectName: pulumi.String("tf_example"),
DisplayName: pulumi.String("display_name"),
ProjectModel: pulumi.String("SIMPLE"),
},
DlcInfo: &tencentcloud.WedataProjectDlcInfoArgs{
ComputeResources: pulumi.StringArray{
pulumi.String("svmgao_stability"),
},
Region: pulumi.String("ap-guangzhou"),
DefaultDatabase: pulumi.String("db_name"),
StandardModeEnvTag: pulumi.String("Dev"),
AccessAccount: pulumi.String("OWNER"),
},
ResourceIds: pulumi.StringArray{
pulumi.String("20250909193110713075"),
pulumi.String("20250820215449817917"),
},
Status: pulumi.Float64(1),
})
if err != nil {
return err
}
_, err = tencentcloud.NewWedataProjectMember(ctx, "example", &tencentcloud.WedataProjectMemberArgs{
ProjectId: example.WedataProjectId,
UserUin: pulumi.String("100044238258"),
RoleIds: pulumi.StringArray{
pulumi.String("308335260274237440"),
pulumi.String("308335260844662784"),
},
})
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.WedataProject("example", new()
{
Project = new Tencentcloud.Inputs.WedataProjectProjectArgs
{
ProjectName = "tf_example",
DisplayName = "display_name",
ProjectModel = "SIMPLE",
},
DlcInfo = new Tencentcloud.Inputs.WedataProjectDlcInfoArgs
{
ComputeResources = new[]
{
"svmgao_stability",
},
Region = "ap-guangzhou",
DefaultDatabase = "db_name",
StandardModeEnvTag = "Dev",
AccessAccount = "OWNER",
},
ResourceIds = new[]
{
"20250909193110713075",
"20250820215449817917",
},
Status = 1,
});
var exampleWedataProjectMember = new Tencentcloud.WedataProjectMember("example", new()
{
ProjectId = example.WedataProjectId,
UserUin = "100044238258",
RoleIds = new[]
{
"308335260274237440",
"308335260844662784",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WedataProject;
import com.pulumi.tencentcloud.WedataProjectArgs;
import com.pulumi.tencentcloud.inputs.WedataProjectProjectArgs;
import com.pulumi.tencentcloud.inputs.WedataProjectDlcInfoArgs;
import com.pulumi.tencentcloud.WedataProjectMember;
import com.pulumi.tencentcloud.WedataProjectMemberArgs;
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 WedataProject("example", WedataProjectArgs.builder()
.project(WedataProjectProjectArgs.builder()
.projectName("tf_example")
.displayName("display_name")
.projectModel("SIMPLE")
.build())
.dlcInfo(WedataProjectDlcInfoArgs.builder()
.computeResources("svmgao_stability")
.region("ap-guangzhou")
.defaultDatabase("db_name")
.standardModeEnvTag("Dev")
.accessAccount("OWNER")
.build())
.resourceIds(
"20250909193110713075",
"20250820215449817917")
.status(1.0)
.build());
var exampleWedataProjectMember = new WedataProjectMember("exampleWedataProjectMember", WedataProjectMemberArgs.builder()
.projectId(example.wedataProjectId())
.userUin("100044238258")
.roleIds(
"308335260274237440",
"308335260844662784")
.build());
}
}
resources:
example:
type: tencentcloud:WedataProject
properties:
project:
projectName: tf_example
displayName: display_name
projectModel: SIMPLE
dlcInfo:
computeResources:
- svmgao_stability
region: ap-guangzhou
defaultDatabase: db_name
standardModeEnvTag: Dev
accessAccount: OWNER
resourceIds:
- '20250909193110713075'
- '20250820215449817917'
status: 1
exampleWedataProjectMember:
type: tencentcloud:WedataProjectMember
name: example
properties:
projectId: ${example.wedataProjectId}
userUin: '100044238258'
roleIds:
- '308335260274237440'
- '308335260844662784'
Create WedataProjectMember Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WedataProjectMember(name: string, args: WedataProjectMemberArgs, opts?: CustomResourceOptions);@overload
def WedataProjectMember(resource_name: str,
args: WedataProjectMemberArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WedataProjectMember(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
role_ids: Optional[Sequence[str]] = None,
user_uin: Optional[str] = None,
wedata_project_member_id: Optional[str] = None)func NewWedataProjectMember(ctx *Context, name string, args WedataProjectMemberArgs, opts ...ResourceOption) (*WedataProjectMember, error)public WedataProjectMember(string name, WedataProjectMemberArgs args, CustomResourceOptions? opts = null)
public WedataProjectMember(String name, WedataProjectMemberArgs args)
public WedataProjectMember(String name, WedataProjectMemberArgs args, CustomResourceOptions options)
type: tencentcloud:WedataProjectMember
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 WedataProjectMemberArgs
- 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 WedataProjectMemberArgs
- 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 WedataProjectMemberArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WedataProjectMemberArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WedataProjectMemberArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WedataProjectMember 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 WedataProjectMember resource accepts the following input properties:
- Project
Id string - Project ID.
- Role
Ids List<string> - Role ID.
- User
Uin string - User ID.
- Wedata
Project stringMember Id - ID of the resource.
- Project
Id string - Project ID.
- Role
Ids []string - Role ID.
- User
Uin string - User ID.
- Wedata
Project stringMember Id - ID of the resource.
- project
Id String - Project ID.
- role
Ids List<String> - Role ID.
- user
Uin String - User ID.
- wedata
Project StringMember Id - ID of the resource.
- project
Id string - Project ID.
- role
Ids string[] - Role ID.
- user
Uin string - User ID.
- wedata
Project stringMember Id - ID of the resource.
- project_
id str - Project ID.
- role_
ids Sequence[str] - Role ID.
- user_
uin str - User ID.
- wedata_
project_ strmember_ id - ID of the resource.
- project
Id String - Project ID.
- role
Ids List<String> - Role ID.
- user
Uin String - User ID.
- wedata
Project StringMember Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WedataProjectMember 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 WedataProjectMember Resource
Get an existing WedataProjectMember 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?: WedataProjectMemberState, opts?: CustomResourceOptions): WedataProjectMember@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
role_ids: Optional[Sequence[str]] = None,
user_uin: Optional[str] = None,
wedata_project_member_id: Optional[str] = None) -> WedataProjectMemberfunc GetWedataProjectMember(ctx *Context, name string, id IDInput, state *WedataProjectMemberState, opts ...ResourceOption) (*WedataProjectMember, error)public static WedataProjectMember Get(string name, Input<string> id, WedataProjectMemberState? state, CustomResourceOptions? opts = null)public static WedataProjectMember get(String name, Output<String> id, WedataProjectMemberState state, CustomResourceOptions options)resources: _: type: tencentcloud:WedataProjectMember 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.
- Project
Id string - Project ID.
- Role
Ids List<string> - Role ID.
- User
Uin string - User ID.
- Wedata
Project stringMember Id - ID of the resource.
- Project
Id string - Project ID.
- Role
Ids []string - Role ID.
- User
Uin string - User ID.
- Wedata
Project stringMember Id - ID of the resource.
- project
Id String - Project ID.
- role
Ids List<String> - Role ID.
- user
Uin String - User ID.
- wedata
Project StringMember Id - ID of the resource.
- project
Id string - Project ID.
- role
Ids string[] - Role ID.
- user
Uin string - User ID.
- wedata
Project stringMember Id - ID of the resource.
- project_
id str - Project ID.
- role_
ids Sequence[str] - Role ID.
- user_
uin str - User ID.
- wedata_
project_ strmember_ id - ID of the resource.
- project
Id String - Project ID.
- role
Ids List<String> - Role ID.
- user
Uin String - User ID.
- wedata
Project StringMember Id - ID of the resource.
Import
WeData project member can be imported using the projectId#userUin, e.g.
$ pulumi import tencentcloud:index/wedataProjectMember:WedataProjectMember example 2983848457986924544#100044238258
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
tencentcloudTerraform Provider.
