tencentcloud.DlcUser
Explore with Pulumi AI
Provides a resource to create a dlc user
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const user = new tencentcloud.DlcUser("user", {
userAlias: "terraform-test",
userDescription: "for terraform test",
userId: "100027012454",
userType: "COMMON",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
user = tencentcloud.DlcUser("user",
user_alias="terraform-test",
user_description="for terraform test",
user_id="100027012454",
user_type="COMMON")
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.NewDlcUser(ctx, "user", &tencentcloud.DlcUserArgs{
UserAlias: pulumi.String("terraform-test"),
UserDescription: pulumi.String("for terraform test"),
UserId: pulumi.String("100027012454"),
UserType: pulumi.String("COMMON"),
})
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 user = new Tencentcloud.DlcUser("user", new()
{
UserAlias = "terraform-test",
UserDescription = "for terraform test",
UserId = "100027012454",
UserType = "COMMON",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DlcUser;
import com.pulumi.tencentcloud.DlcUserArgs;
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 user = new DlcUser("user", DlcUserArgs.builder()
.userAlias("terraform-test")
.userDescription("for terraform test")
.userId("100027012454")
.userType("COMMON")
.build());
}
}
resources:
user:
type: tencentcloud:DlcUser
properties:
userAlias: terraform-test
userDescription: for terraform test
userId: '100027012454'
userType: COMMON
Create DlcUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DlcUser(name: string, args: DlcUserArgs, opts?: CustomResourceOptions);
@overload
def DlcUser(resource_name: str,
args: DlcUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DlcUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
user_id: Optional[str] = None,
dlc_user_id: Optional[str] = None,
user_alias: Optional[str] = None,
user_description: Optional[str] = None,
user_type: Optional[str] = None)
func NewDlcUser(ctx *Context, name string, args DlcUserArgs, opts ...ResourceOption) (*DlcUser, error)
public DlcUser(string name, DlcUserArgs args, CustomResourceOptions? opts = null)
public DlcUser(String name, DlcUserArgs args)
public DlcUser(String name, DlcUserArgs args, CustomResourceOptions options)
type: tencentcloud:DlcUser
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 DlcUserArgs
- 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 DlcUserArgs
- 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 DlcUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlcUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DlcUserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DlcUser 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 DlcUser resource accepts the following input properties:
- User
Id string - The sub-user uin that needs to be authorized.
- Dlc
User stringId - ID of the resource.
- User
Alias string - User alias, the character length is less than 50.
- User
Description string - User description information, easy to distinguish between different users.
- User
Type string - User Type.
ADMIN
orCOMMONN
.
- User
Id string - The sub-user uin that needs to be authorized.
- Dlc
User stringId - ID of the resource.
- User
Alias string - User alias, the character length is less than 50.
- User
Description string - User description information, easy to distinguish between different users.
- User
Type string - User Type.
ADMIN
orCOMMONN
.
- user
Id String - The sub-user uin that needs to be authorized.
- dlc
User StringId - ID of the resource.
- user
Alias String - User alias, the character length is less than 50.
- user
Description String - User description information, easy to distinguish between different users.
- user
Type String - User Type.
ADMIN
orCOMMONN
.
- user
Id string - The sub-user uin that needs to be authorized.
- dlc
User stringId - ID of the resource.
- user
Alias string - User alias, the character length is less than 50.
- user
Description string - User description information, easy to distinguish between different users.
- user
Type string - User Type.
ADMIN
orCOMMONN
.
- user_
id str - The sub-user uin that needs to be authorized.
- dlc_
user_ strid - ID of the resource.
- user_
alias str - User alias, the character length is less than 50.
- user_
description str - User description information, easy to distinguish between different users.
- user_
type str - User Type.
ADMIN
orCOMMONN
.
- user
Id String - The sub-user uin that needs to be authorized.
- dlc
User StringId - ID of the resource.
- user
Alias String - User alias, the character length is less than 50.
- user
Description String - User description information, easy to distinguish between different users.
- user
Type String - User Type.
ADMIN
orCOMMONN
.
Outputs
All input properties are implicitly available as output properties. Additionally, the DlcUser resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Work
Group List<double>Ids - A collection of workgroup IDs bound to the user.
- Id string
- The provider-assigned unique ID for this managed resource.
- Work
Group []float64Ids - A collection of workgroup IDs bound to the user.
- id String
- The provider-assigned unique ID for this managed resource.
- work
Group List<Double>Ids - A collection of workgroup IDs bound to the user.
- id string
- The provider-assigned unique ID for this managed resource.
- work
Group number[]Ids - A collection of workgroup IDs bound to the user.
- id str
- The provider-assigned unique ID for this managed resource.
- work_
group_ Sequence[float]ids - A collection of workgroup IDs bound to the user.
- id String
- The provider-assigned unique ID for this managed resource.
- work
Group List<Number>Ids - A collection of workgroup IDs bound to the user.
Look up Existing DlcUser Resource
Get an existing DlcUser 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?: DlcUserState, opts?: CustomResourceOptions): DlcUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dlc_user_id: Optional[str] = None,
user_alias: Optional[str] = None,
user_description: Optional[str] = None,
user_id: Optional[str] = None,
user_type: Optional[str] = None,
work_group_ids: Optional[Sequence[float]] = None) -> DlcUser
func GetDlcUser(ctx *Context, name string, id IDInput, state *DlcUserState, opts ...ResourceOption) (*DlcUser, error)
public static DlcUser Get(string name, Input<string> id, DlcUserState? state, CustomResourceOptions? opts = null)
public static DlcUser get(String name, Output<String> id, DlcUserState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DlcUser 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.
- Dlc
User stringId - ID of the resource.
- User
Alias string - User alias, the character length is less than 50.
- User
Description string - User description information, easy to distinguish between different users.
- User
Id string - The sub-user uin that needs to be authorized.
- User
Type string - User Type.
ADMIN
orCOMMONN
. - Work
Group List<double>Ids - A collection of workgroup IDs bound to the user.
- Dlc
User stringId - ID of the resource.
- User
Alias string - User alias, the character length is less than 50.
- User
Description string - User description information, easy to distinguish between different users.
- User
Id string - The sub-user uin that needs to be authorized.
- User
Type string - User Type.
ADMIN
orCOMMONN
. - Work
Group []float64Ids - A collection of workgroup IDs bound to the user.
- dlc
User StringId - ID of the resource.
- user
Alias String - User alias, the character length is less than 50.
- user
Description String - User description information, easy to distinguish between different users.
- user
Id String - The sub-user uin that needs to be authorized.
- user
Type String - User Type.
ADMIN
orCOMMONN
. - work
Group List<Double>Ids - A collection of workgroup IDs bound to the user.
- dlc
User stringId - ID of the resource.
- user
Alias string - User alias, the character length is less than 50.
- user
Description string - User description information, easy to distinguish between different users.
- user
Id string - The sub-user uin that needs to be authorized.
- user
Type string - User Type.
ADMIN
orCOMMONN
. - work
Group number[]Ids - A collection of workgroup IDs bound to the user.
- dlc_
user_ strid - ID of the resource.
- user_
alias str - User alias, the character length is less than 50.
- user_
description str - User description information, easy to distinguish between different users.
- user_
id str - The sub-user uin that needs to be authorized.
- user_
type str - User Type.
ADMIN
orCOMMONN
. - work_
group_ Sequence[float]ids - A collection of workgroup IDs bound to the user.
- dlc
User StringId - ID of the resource.
- user
Alias String - User alias, the character length is less than 50.
- user
Description String - User description information, easy to distinguish between different users.
- user
Id String - The sub-user uin that needs to be authorized.
- user
Type String - User Type.
ADMIN
orCOMMONN
. - work
Group List<Number>Ids - A collection of workgroup IDs bound to the user.
Import
dlc user can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dlcUser:DlcUser user 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.