tencentcloud.BiUserRole
Explore with Pulumi AI
Provides a resource to create a bi user_role
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const userRole = new tencentcloud.BiUserRole("userRole", {
areaCode: "+83",
email: "1055000000@qq.com",
phoneNumber: "13470010000",
roleIdLists: [10629359],
userId: "100032767426",
userName: "keep-iac-test",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
user_role = tencentcloud.BiUserRole("userRole",
area_code="+83",
email="1055000000@qq.com",
phone_number="13470010000",
role_id_lists=[10629359],
user_id="100032767426",
user_name="keep-iac-test")
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.NewBiUserRole(ctx, "userRole", &tencentcloud.BiUserRoleArgs{
AreaCode: pulumi.String("+83"),
Email: pulumi.String("1055000000@qq.com"),
PhoneNumber: pulumi.String("13470010000"),
RoleIdLists: pulumi.Float64Array{
pulumi.Float64(10629359),
},
UserId: pulumi.String("100032767426"),
UserName: pulumi.String("keep-iac-test"),
})
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 userRole = new Tencentcloud.BiUserRole("userRole", new()
{
AreaCode = "+83",
Email = "1055000000@qq.com",
PhoneNumber = "13470010000",
RoleIdLists = new[]
{
10629359,
},
UserId = "100032767426",
UserName = "keep-iac-test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.BiUserRole;
import com.pulumi.tencentcloud.BiUserRoleArgs;
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 userRole = new BiUserRole("userRole", BiUserRoleArgs.builder()
.areaCode("+83")
.email("1055000000@qq.com")
.phoneNumber("13470010000")
.roleIdLists(10629359)
.userId("100032767426")
.userName("keep-iac-test")
.build());
}
}
resources:
userRole:
type: tencentcloud:BiUserRole
properties:
areaCode: '+83'
email: 1055000000@qq.com
phoneNumber: '13470010000'
roleIdLists:
- 1.0629359e+07
userId: '100032767426'
userName: keep-iac-test
Create BiUserRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BiUserRole(name: string, args: BiUserRoleArgs, opts?: CustomResourceOptions);
@overload
def BiUserRole(resource_name: str,
args: BiUserRoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BiUserRole(resource_name: str,
opts: Optional[ResourceOptions] = None,
area_code: Optional[str] = None,
email: Optional[str] = None,
phone_number: Optional[str] = None,
role_id_lists: Optional[Sequence[float]] = None,
user_id: Optional[str] = None,
user_name: Optional[str] = None,
bi_user_role_id: Optional[str] = None)
func NewBiUserRole(ctx *Context, name string, args BiUserRoleArgs, opts ...ResourceOption) (*BiUserRole, error)
public BiUserRole(string name, BiUserRoleArgs args, CustomResourceOptions? opts = null)
public BiUserRole(String name, BiUserRoleArgs args)
public BiUserRole(String name, BiUserRoleArgs args, CustomResourceOptions options)
type: tencentcloud:BiUserRole
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 BiUserRoleArgs
- 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 BiUserRoleArgs
- 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 BiUserRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BiUserRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BiUserRoleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BiUserRole 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 BiUserRole 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).
- Role
Id List<double>Lists - Role id list.
- User
Id string - User id.
- User
Name string - Username.
- Bi
User stringRole Id - ID of the resource.
- 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).
- Role
Id []float64Lists - Role id list.
- User
Id string - User id.
- User
Name string - Username.
- Bi
User stringRole Id - ID of the resource.
- 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).
- role
Id List<Double>Lists - Role id list.
- user
Id String - User id.
- user
Name String - Username.
- bi
User StringRole Id - ID of the resource.
- 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).
- role
Id number[]Lists - Role id list.
- user
Id string - User id.
- user
Name string - Username.
- bi
User stringRole Id - ID of the resource.
- 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).
- role_
id_ Sequence[float]lists - Role id list.
- user_
id str - User id.
- user_
name str - Username.
- bi_
user_ strrole_ id - ID of the resource.
- 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).
- role
Id List<Number>Lists - Role id list.
- user
Id String - User id.
- user
Name String - Username.
- bi
User StringRole Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the BiUserRole 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 BiUserRole Resource
Get an existing BiUserRole 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?: BiUserRoleState, opts?: CustomResourceOptions): BiUserRole
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
area_code: Optional[str] = None,
bi_user_role_id: Optional[str] = None,
email: Optional[str] = None,
phone_number: Optional[str] = None,
role_id_lists: Optional[Sequence[float]] = None,
user_id: Optional[str] = None,
user_name: Optional[str] = None) -> BiUserRole
func GetBiUserRole(ctx *Context, name string, id IDInput, state *BiUserRoleState, opts ...ResourceOption) (*BiUserRole, error)
public static BiUserRole Get(string name, Input<string> id, BiUserRoleState? state, CustomResourceOptions? opts = null)
public static BiUserRole get(String name, Output<String> id, BiUserRoleState state, CustomResourceOptions options)
resources: _: type: tencentcloud:BiUserRole 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
User stringRole 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).
- 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
User stringRole 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).
- 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
User StringRole 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).
- 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
User stringRole 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).
- 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_
user_ strrole_ 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).
- 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
User StringRole 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).
- role
Id List<Number>Lists - Role id list.
- user
Id String - User id.
- user
Name String - Username.
Import
bi user_role can be imported using the id, e.g.
$ pulumi import tencentcloud:index/biUserRole:BiUserRole user_role user_id
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.