1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DlcUser
tencentcloud 1.82.18 published on Thursday, Aug 21, 2025 by tencentcloudstack

tencentcloud.DlcUser

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.82.18 published on Thursday, Aug 21, 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 example = new tencentcloud.DlcUser("example", {
        userAlias: "terraform-test",
        userDescription: "for terraform test",
        userId: "100027012454",
        userType: "COMMON",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.DlcUser("example",
        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, "example", &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 example = new Tencentcloud.DlcUser("example", 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 example = new DlcUser("example", DlcUserArgs.builder()
                .userAlias("terraform-test")
                .userDescription("for terraform test")
                .userId("100027012454")
                .userType("COMMON")
                .build());
    
        }
    }
    
    resources:
      example:
        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
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    DlcUserId string
    ID of the resource.
    UserAlias string
    User alias, and its characters are less than 50.
    UserDescription string
    User description, which can make it easy to identify different users.
    UserType string
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.
    UserId string
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    DlcUserId string
    ID of the resource.
    UserAlias string
    User alias, and its characters are less than 50.
    UserDescription string
    User description, which can make it easy to identify different users.
    UserType string
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.
    userId String
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    dlcUserId String
    ID of the resource.
    userAlias String
    User alias, and its characters are less than 50.
    userDescription String
    User description, which can make it easy to identify different users.
    userType String
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.
    userId string
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    dlcUserId string
    ID of the resource.
    userAlias string
    User alias, and its characters are less than 50.
    userDescription string
    User description, which can make it easy to identify different users.
    userType string
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.
    user_id str
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    dlc_user_id str
    ID of the resource.
    user_alias str
    User alias, and its characters are less than 50.
    user_description str
    User description, which can make it easy to identify different users.
    user_type str
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.
    userId String
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    dlcUserId String
    ID of the resource.
    userAlias String
    User alias, and its characters are less than 50.
    userDescription String
    User description, which can make it easy to identify different users.
    userType String
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.

    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>
    Collection of IDs of working groups bound to users.
    Id string
    The provider-assigned unique ID for this managed resource.
    WorkGroupIds []float64
    Collection of IDs of working groups bound to users.
    id String
    The provider-assigned unique ID for this managed resource.
    workGroupIds List<Double>
    Collection of IDs of working groups bound to users.
    id string
    The provider-assigned unique ID for this managed resource.
    workGroupIds number[]
    Collection of IDs of working groups bound to users.
    id str
    The provider-assigned unique ID for this managed resource.
    work_group_ids Sequence[float]
    Collection of IDs of working groups bound to users.
    id String
    The provider-assigned unique ID for this managed resource.
    workGroupIds List<Number>
    Collection of IDs of working groups bound to users.

    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, and its characters are less than 50.
    UserDescription string
    User description, which can make it easy to identify different users.
    UserId string
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    UserType string
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.
    WorkGroupIds List<double>
    Collection of IDs of working groups bound to users.
    DlcUserId string
    ID of the resource.
    UserAlias string
    User alias, and its characters are less than 50.
    UserDescription string
    User description, which can make it easy to identify different users.
    UserId string
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    UserType string
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.
    WorkGroupIds []float64
    Collection of IDs of working groups bound to users.
    dlcUserId String
    ID of the resource.
    userAlias String
    User alias, and its characters are less than 50.
    userDescription String
    User description, which can make it easy to identify different users.
    userId String
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    userType String
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.
    workGroupIds List<Double>
    Collection of IDs of working groups bound to users.
    dlcUserId string
    ID of the resource.
    userAlias string
    User alias, and its characters are less than 50.
    userDescription string
    User description, which can make it easy to identify different users.
    userId string
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    userType string
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.
    workGroupIds number[]
    Collection of IDs of working groups bound to users.
    dlc_user_id str
    ID of the resource.
    user_alias str
    User alias, and its characters are less than 50.
    user_description str
    User description, which can make it easy to identify different users.
    user_id str
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    user_type str
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.
    work_group_ids Sequence[float]
    Collection of IDs of working groups bound to users.
    dlcUserId String
    ID of the resource.
    userAlias String
    User alias, and its characters are less than 50.
    userDescription String
    User description, which can make it easy to identify different users.
    userId String
    Sub-user UIN that needs to be granted permissions. It can be checked through the upper right corner of Tencent Cloud Console > Account Information > Account ID.
    userType String
    Types of users. ADMIN: administrators; COMMON: general users. When the type of user is administrator, the collections of permissions and bound working groups cannot be set. Administrators own all the permissions by default. If the parameter is not filled in, it will be COMMON by default.
    workGroupIds List<Number>
    Collection of IDs of working groups bound to users.

    Import

    dlc user can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/dlcUser:DlcUser example 100027012454
    

    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.82.18 published on Thursday, Aug 21, 2025 by tencentcloudstack