tencentcloud.BiProjectUserRole
Explore with Pulumi AI
Provides a resource to create a bi project_user_role
NOTE: You cannot use
tencentcloud.BiUserRole
andtencentcloud.BiProjectUserRole
at the same time to modify thephone_number
and
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const projectUserRole = new tencentcloud.BiProjectUserRole("projectUserRole", {
areaCode: "+86",
email: "123456@qq.com",
phoneNumber: "13130001000",
projectId: 11015030,
roleIdLists: [10629453],
userId: "100024664626",
userName: "keep-cam-user",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
project_user_role = tencentcloud.BiProjectUserRole("projectUserRole",
area_code="+86",
email="123456@qq.com",
phone_number="13130001000",
project_id=11015030,
role_id_lists=[10629453],
user_id="100024664626",
user_name="keep-cam-user")
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.NewBiProjectUserRole(ctx, "projectUserRole", &tencentcloud.BiProjectUserRoleArgs{
AreaCode: pulumi.String("+86"),
Email: pulumi.String("123456@qq.com"),
PhoneNumber: pulumi.String("13130001000"),
ProjectId: pulumi.Float64(11015030),
RoleIdLists: pulumi.Float64Array{
pulumi.Float64(10629453),
},
UserId: pulumi.String("100024664626"),
UserName: pulumi.String("keep-cam-user"),
})
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 projectUserRole = new Tencentcloud.BiProjectUserRole("projectUserRole", new()
{
AreaCode = "+86",
Email = "123456@qq.com",
PhoneNumber = "13130001000",
ProjectId = 11015030,
RoleIdLists = new[]
{
10629453,
},
UserId = "100024664626",
UserName = "keep-cam-user",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.BiProjectUserRole;
import com.pulumi.tencentcloud.BiProjectUserRoleArgs;
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 projectUserRole = new BiProjectUserRole("projectUserRole", BiProjectUserRoleArgs.builder()
.areaCode("+86")
.email("123456@qq.com")
.phoneNumber("13130001000")
.projectId(11015030)
.roleIdLists(10629453)
.userId("100024664626")
.userName("keep-cam-user")
.build());
}
}
resources:
projectUserRole:
type: tencentcloud:BiProjectUserRole
properties:
areaCode: '+86'
email: 123456@qq.com
phoneNumber: '13130001000'
projectId: 1.101503e+07
roleIdLists:
- 1.0629453e+07
userId: '100024664626'
userName: keep-cam-user
Create BiProjectUserRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BiProjectUserRole(name: string, args: BiProjectUserRoleArgs, opts?: CustomResourceOptions);
@overload
def BiProjectUserRole(resource_name: str,
args: BiProjectUserRoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BiProjectUserRole(resource_name: str,
opts: Optional[ResourceOptions] = None,
area_code: Optional[str] = None,
email: Optional[str] = None,
phone_number: Optional[str] = None,
user_id: Optional[str] = None,
user_name: Optional[str] = None,
bi_project_user_role_id: Optional[str] = None,
project_id: Optional[float] = None,
role_id_lists: Optional[Sequence[float]] = None)
func NewBiProjectUserRole(ctx *Context, name string, args BiProjectUserRoleArgs, opts ...ResourceOption) (*BiProjectUserRole, error)
public BiProjectUserRole(string name, BiProjectUserRoleArgs args, CustomResourceOptions? opts = null)
public BiProjectUserRole(String name, BiProjectUserRoleArgs args)
public BiProjectUserRole(String name, BiProjectUserRoleArgs args, CustomResourceOptions options)
type: tencentcloud:BiProjectUserRole
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 BiProjectUserRoleArgs
- 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 BiProjectUserRoleArgs
- 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 BiProjectUserRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BiProjectUserRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BiProjectUserRoleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BiProjectUserRole 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 BiProjectUserRole resource accepts the following input properties:
- Area
Code string - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- Email string
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- Phone
Number string - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- User
Id string - User id.
- User
Name string - Username.
- Bi
Project stringUser Role Id - ID of the resource.
- Project
Id double - Project id.
- Role
Id List<double>Lists - Role id list.
- Area
Code string - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- Email string
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- Phone
Number string - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- User
Id string - User id.
- User
Name string - Username.
- Bi
Project stringUser Role Id - ID of the resource.
- Project
Id float64 - Project id.
- Role
Id []float64Lists - Role id list.
- area
Code String - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- email String
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- phone
Number String - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- user
Id String - User id.
- user
Name String - Username.
- bi
Project StringUser Role Id - ID of the resource.
- project
Id Double - Project id.
- role
Id List<Double>Lists - Role id list.
- area
Code string - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- email string
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- phone
Number string - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- user
Id string - User id.
- user
Name string - Username.
- bi
Project stringUser Role Id - ID of the resource.
- project
Id number - Project id.
- role
Id number[]Lists - Role id list.
- area_
code str - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- email str
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- phone_
number str - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- user_
id str - User id.
- user_
name str - Username.
- bi_
project_ struser_ role_ id - ID of the resource.
- project_
id float - Project id.
- role_
id_ Sequence[float]lists - Role id list.
- area
Code String - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- email String
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- phone
Number String - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- user
Id String - User id.
- user
Name String - Username.
- bi
Project StringUser Role Id - ID of the resource.
- project
Id Number - Project id.
- role
Id List<Number>Lists - Role id list.
Outputs
All input properties are implicitly available as output properties. Additionally, the BiProjectUserRole 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 BiProjectUserRole Resource
Get an existing BiProjectUserRole 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?: BiProjectUserRoleState, opts?: CustomResourceOptions): BiProjectUserRole
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
area_code: Optional[str] = None,
bi_project_user_role_id: Optional[str] = None,
email: Optional[str] = None,
phone_number: Optional[str] = None,
project_id: Optional[float] = None,
role_id_lists: Optional[Sequence[float]] = None,
user_id: Optional[str] = None,
user_name: Optional[str] = None) -> BiProjectUserRole
func GetBiProjectUserRole(ctx *Context, name string, id IDInput, state *BiProjectUserRoleState, opts ...ResourceOption) (*BiProjectUserRole, error)
public static BiProjectUserRole Get(string name, Input<string> id, BiProjectUserRoleState? state, CustomResourceOptions? opts = null)
public static BiProjectUserRole get(String name, Output<String> id, BiProjectUserRoleState state, CustomResourceOptions options)
resources: _: type: tencentcloud:BiProjectUserRole 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.
- Area
Code string - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- Bi
Project stringUser Role Id - ID of the resource.
- Email string
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- Phone
Number string - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- Project
Id double - Project id.
- Role
Id List<double>Lists - Role id list.
- User
Id string - User id.
- User
Name string - Username.
- Area
Code string - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- Bi
Project stringUser Role Id - ID of the resource.
- Email string
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- Phone
Number string - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- Project
Id float64 - Project id.
- Role
Id []float64Lists - Role id list.
- User
Id string - User id.
- User
Name string - Username.
- area
Code String - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- bi
Project StringUser Role Id - ID of the resource.
- email String
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- phone
Number String - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- project
Id Double - Project id.
- role
Id List<Double>Lists - Role id list.
- user
Id String - User id.
- user
Name String - Username.
- area
Code string - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- bi
Project stringUser Role Id - ID of the resource.
- email string
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- phone
Number string - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- project
Id number - Project id.
- role
Id number[]Lists - Role id list.
- user
Id string - User id.
- user
Name string - Username.
- area_
code str - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- bi_
project_ struser_ role_ id - ID of the resource.
- email str
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- phone_
number str - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- project_
id float - Project id.
- role_
id_ Sequence[float]lists - Role id list.
- user_
id str - User id.
- user_
name str - Username.
- area
Code String - Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
- bi
Project StringUser Role Id - ID of the resource.
- email String
- E-mail(Note: This field may return null, indicating that no valid value can be obtained).
- phone
Number String - Phone number(Note: This field may return null, indicating that no valid value can be obtained).
- project
Id Number - Project id.
- role
Id List<Number>Lists - Role id list.
- user
Id String - User id.
- user
Name String - Username.
Import
bi project_user_role can be imported using the id, e.g.
$ pulumi import tencentcloud:index/biProjectUserRole:BiProjectUserRole project_user_role projectId#userId
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.