1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DlcUser
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.DlcUser

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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:

    UserId string
    The sub-user uin that needs to be authorized.
    DlcUserId string
    ID of the resource.
    UserAlias string
    User alias, the character length is less than 50.
    UserDescription string
    User description information, easy to distinguish between different users.
    UserType string
    User Type. ADMIN or COMMONN.
    UserId string
    The sub-user uin that needs to be authorized.
    DlcUserId string
    ID of the resource.
    UserAlias string
    User alias, the character length is less than 50.
    UserDescription string
    User description information, easy to distinguish between different users.
    UserType string
    User Type. ADMIN or COMMONN.
    userId String
    The sub-user uin that needs to be authorized.
    dlcUserId String
    ID of the resource.
    userAlias String
    User alias, the character length is less than 50.
    userDescription String
    User description information, easy to distinguish between different users.
    userType String
    User Type. ADMIN or COMMONN.
    userId string
    The sub-user uin that needs to be authorized.
    dlcUserId string
    ID of the resource.
    userAlias string
    User alias, the character length is less than 50.
    userDescription string
    User description information, easy to distinguish between different users.
    userType string
    User Type. ADMIN or COMMONN.
    user_id str
    The sub-user uin that needs to be authorized.
    dlc_user_id str
    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 or COMMONN.
    userId String
    The sub-user uin that needs to be authorized.
    dlcUserId String
    ID of the resource.
    userAlias String
    User alias, the character length is less than 50.
    userDescription String
    User description information, easy to distinguish between different users.
    userType String
    User Type. ADMIN or COMMONN.

    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.
    WorkGroupIds List<double>
    A collection of workgroup IDs bound to the user.
    Id string
    The provider-assigned unique ID for this managed resource.
    WorkGroupIds []float64
    A collection of workgroup IDs bound to the user.
    id String
    The provider-assigned unique ID for this managed resource.
    workGroupIds List<Double>
    A collection of workgroup IDs bound to the user.
    id string
    The provider-assigned unique ID for this managed resource.
    workGroupIds number[]
    A collection of workgroup IDs bound to the user.
    id str
    The provider-assigned unique ID for this managed resource.
    work_group_ids Sequence[float]
    A collection of workgroup IDs bound to the user.
    id String
    The provider-assigned unique ID for this managed resource.
    workGroupIds List<Number>
    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.
    The following state arguments are supported:
    DlcUserId string
    ID of the resource.
    UserAlias string
    User alias, the character length is less than 50.
    UserDescription string
    User description information, easy to distinguish between different users.
    UserId string
    The sub-user uin that needs to be authorized.
    UserType string
    User Type. ADMIN or COMMONN.
    WorkGroupIds List<double>
    A collection of workgroup IDs bound to the user.
    DlcUserId string
    ID of the resource.
    UserAlias string
    User alias, the character length is less than 50.
    UserDescription string
    User description information, easy to distinguish between different users.
    UserId string
    The sub-user uin that needs to be authorized.
    UserType string
    User Type. ADMIN or COMMONN.
    WorkGroupIds []float64
    A collection of workgroup IDs bound to the user.
    dlcUserId String
    ID of the resource.
    userAlias String
    User alias, the character length is less than 50.
    userDescription String
    User description information, easy to distinguish between different users.
    userId String
    The sub-user uin that needs to be authorized.
    userType String
    User Type. ADMIN or COMMONN.
    workGroupIds List<Double>
    A collection of workgroup IDs bound to the user.
    dlcUserId string
    ID of the resource.
    userAlias string
    User alias, the character length is less than 50.
    userDescription string
    User description information, easy to distinguish between different users.
    userId string
    The sub-user uin that needs to be authorized.
    userType string
    User Type. ADMIN or COMMONN.
    workGroupIds number[]
    A collection of workgroup IDs bound to the user.
    dlc_user_id str
    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 or COMMONN.
    work_group_ids Sequence[float]
    A collection of workgroup IDs bound to the user.
    dlcUserId String
    ID of the resource.
    userAlias String
    User alias, the character length is less than 50.
    userDescription String
    User description information, easy to distinguish between different users.
    userId String
    The sub-user uin that needs to be authorized.
    userType String
    User Type. ADMIN or COMMONN.
    workGroupIds List<Number>
    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack