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 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:
- User
Id 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.
- Dlc
User stringId - ID of the resource.
- User
Alias string - User alias, and its characters are less than 50.
- User
Description string - User description, which can make it easy to identify different users.
- User
Type 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 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.
- Dlc
User stringId - ID of the resource.
- User
Alias string - User alias, and its characters are less than 50.
- User
Description string - User description, which can make it easy to identify different users.
- User
Type 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 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.
- dlc
User StringId - ID of the resource.
- user
Alias String - User alias, and its characters are less than 50.
- user
Description String - User description, which can make it easy to identify different users.
- user
Type 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 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.
- dlc
User stringId - ID of the resource.
- user
Alias string - User alias, and its characters are less than 50.
- user
Description string - User description, which can make it easy to identify different users.
- user
Type 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_ strid - 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.
- user
Id 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.
- dlc
User StringId - ID of the resource.
- user
Alias String - User alias, and its characters are less than 50.
- user
Description String - User description, which can make it easy to identify different users.
- user
Type 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.
- Work
Group List<double>Ids - Collection of IDs of working groups bound to users.
- Id string
- The provider-assigned unique ID for this managed resource.
- Work
Group []float64Ids - Collection of IDs of working groups bound to users.
- id String
- The provider-assigned unique ID for this managed resource.
- work
Group List<Double>Ids - Collection of IDs of working groups bound to users.
- id string
- The provider-assigned unique ID for this managed resource.
- work
Group number[]Ids - Collection of IDs of working groups bound to users.
- id str
- The provider-assigned unique ID for this managed resource.
- work_
group_ Sequence[float]ids - Collection of IDs of working groups bound to users.
- id String
- The provider-assigned unique ID for this managed resource.
- work
Group List<Number>Ids - 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.
- Dlc
User stringId - ID of the resource.
- User
Alias string - User alias, and its characters are less than 50.
- User
Description string - User description, which can make it easy to identify different users.
- User
Id 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.
- User
Type 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.
- Work
Group List<double>Ids - Collection of IDs of working groups bound to users.
- Dlc
User stringId - ID of the resource.
- User
Alias string - User alias, and its characters are less than 50.
- User
Description string - User description, which can make it easy to identify different users.
- User
Id 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.
- User
Type 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.
- Work
Group []float64Ids - Collection of IDs of working groups bound to users.
- dlc
User StringId - ID of the resource.
- user
Alias String - User alias, and its characters are less than 50.
- user
Description String - User description, which can make it easy to identify different users.
- user
Id 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.
- user
Type 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.
- work
Group List<Double>Ids - Collection of IDs of working groups bound to users.
- dlc
User stringId - ID of the resource.
- user
Alias string - User alias, and its characters are less than 50.
- user
Description string - User description, which can make it easy to identify different users.
- user
Id 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.
- user
Type 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.
- work
Group number[]Ids - Collection of IDs of working groups bound to users.
- dlc_
user_ strid - 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_ Sequence[float]ids - Collection of IDs of working groups bound to users.
- dlc
User StringId - ID of the resource.
- user
Alias String - User alias, and its characters are less than 50.
- user
Description String - User description, which can make it easy to identify different users.
- user
Id 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.
- user
Type 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.
- work
Group List<Number>Ids - 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.