1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DlcBindWorkGroupsToUserAttachment
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.DlcBindWorkGroupsToUserAttachment

Explore with Pulumi AI

Provides a resource to create a dlc bind_work_groups_to_user

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const bindWorkGroupsToUser = new tencentcloud.DlcBindWorkGroupsToUserAttachment("bindWorkGroupsToUser", {addInfo: {
    userId: "100032772113",
    workGroupIds: [
        23184,
        23181,
    ],
}});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

bind_work_groups_to_user = tencentcloud.DlcBindWorkGroupsToUserAttachment("bindWorkGroupsToUser", add_info={
    "user_id": "100032772113",
    "work_group_ids": [
        23184,
        23181,
    ],
})
Copy
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.NewDlcBindWorkGroupsToUserAttachment(ctx, "bindWorkGroupsToUser", &tencentcloud.DlcBindWorkGroupsToUserAttachmentArgs{
			AddInfo: &tencentcloud.DlcBindWorkGroupsToUserAttachmentAddInfoArgs{
				UserId: pulumi.String("100032772113"),
				WorkGroupIds: pulumi.Float64Array{
					pulumi.Float64(23184),
					pulumi.Float64(23181),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var bindWorkGroupsToUser = new Tencentcloud.DlcBindWorkGroupsToUserAttachment("bindWorkGroupsToUser", new()
    {
        AddInfo = new Tencentcloud.Inputs.DlcBindWorkGroupsToUserAttachmentAddInfoArgs
        {
            UserId = "100032772113",
            WorkGroupIds = new[]
            {
                23184,
                23181,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DlcBindWorkGroupsToUserAttachment;
import com.pulumi.tencentcloud.DlcBindWorkGroupsToUserAttachmentArgs;
import com.pulumi.tencentcloud.inputs.DlcBindWorkGroupsToUserAttachmentAddInfoArgs;
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 bindWorkGroupsToUser = new DlcBindWorkGroupsToUserAttachment("bindWorkGroupsToUser", DlcBindWorkGroupsToUserAttachmentArgs.builder()
            .addInfo(DlcBindWorkGroupsToUserAttachmentAddInfoArgs.builder()
                .userId("100032772113")
                .workGroupIds(                
                    23184,
                    23181)
                .build())
            .build());

    }
}
Copy
resources:
  bindWorkGroupsToUser:
    type: tencentcloud:DlcBindWorkGroupsToUserAttachment
    properties:
      addInfo:
        userId: '100032772113'
        workGroupIds:
          - 23184
          - 23181
Copy

Create DlcBindWorkGroupsToUserAttachment Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DlcBindWorkGroupsToUserAttachment(name: string, args: DlcBindWorkGroupsToUserAttachmentArgs, opts?: CustomResourceOptions);
@overload
def DlcBindWorkGroupsToUserAttachment(resource_name: str,
                                      args: DlcBindWorkGroupsToUserAttachmentArgs,
                                      opts: Optional[ResourceOptions] = None)

@overload
def DlcBindWorkGroupsToUserAttachment(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      add_info: Optional[DlcBindWorkGroupsToUserAttachmentAddInfoArgs] = None,
                                      dlc_bind_work_groups_to_user_attachment_id: Optional[str] = None)
func NewDlcBindWorkGroupsToUserAttachment(ctx *Context, name string, args DlcBindWorkGroupsToUserAttachmentArgs, opts ...ResourceOption) (*DlcBindWorkGroupsToUserAttachment, error)
public DlcBindWorkGroupsToUserAttachment(string name, DlcBindWorkGroupsToUserAttachmentArgs args, CustomResourceOptions? opts = null)
public DlcBindWorkGroupsToUserAttachment(String name, DlcBindWorkGroupsToUserAttachmentArgs args)
public DlcBindWorkGroupsToUserAttachment(String name, DlcBindWorkGroupsToUserAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:DlcBindWorkGroupsToUserAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DlcBindWorkGroupsToUserAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DlcBindWorkGroupsToUserAttachmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DlcBindWorkGroupsToUserAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DlcBindWorkGroupsToUserAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DlcBindWorkGroupsToUserAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DlcBindWorkGroupsToUserAttachment 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 DlcBindWorkGroupsToUserAttachment resource accepts the following input properties:

AddInfo This property is required. DlcBindWorkGroupsToUserAttachmentAddInfo
Bind user and workgroup information.
DlcBindWorkGroupsToUserAttachmentId string
ID of the resource.
AddInfo This property is required. DlcBindWorkGroupsToUserAttachmentAddInfoArgs
Bind user and workgroup information.
DlcBindWorkGroupsToUserAttachmentId string
ID of the resource.
addInfo This property is required. DlcBindWorkGroupsToUserAttachmentAddInfo
Bind user and workgroup information.
dlcBindWorkGroupsToUserAttachmentId String
ID of the resource.
addInfo This property is required. DlcBindWorkGroupsToUserAttachmentAddInfo
Bind user and workgroup information.
dlcBindWorkGroupsToUserAttachmentId string
ID of the resource.
add_info This property is required. DlcBindWorkGroupsToUserAttachmentAddInfoArgs
Bind user and workgroup information.
dlc_bind_work_groups_to_user_attachment_id str
ID of the resource.
addInfo This property is required. Property Map
Bind user and workgroup information.
dlcBindWorkGroupsToUserAttachmentId String
ID of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the DlcBindWorkGroupsToUserAttachment 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 DlcBindWorkGroupsToUserAttachment Resource

Get an existing DlcBindWorkGroupsToUserAttachment 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?: DlcBindWorkGroupsToUserAttachmentState, opts?: CustomResourceOptions): DlcBindWorkGroupsToUserAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        add_info: Optional[DlcBindWorkGroupsToUserAttachmentAddInfoArgs] = None,
        dlc_bind_work_groups_to_user_attachment_id: Optional[str] = None) -> DlcBindWorkGroupsToUserAttachment
func GetDlcBindWorkGroupsToUserAttachment(ctx *Context, name string, id IDInput, state *DlcBindWorkGroupsToUserAttachmentState, opts ...ResourceOption) (*DlcBindWorkGroupsToUserAttachment, error)
public static DlcBindWorkGroupsToUserAttachment Get(string name, Input<string> id, DlcBindWorkGroupsToUserAttachmentState? state, CustomResourceOptions? opts = null)
public static DlcBindWorkGroupsToUserAttachment get(String name, Output<String> id, DlcBindWorkGroupsToUserAttachmentState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:DlcBindWorkGroupsToUserAttachment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AddInfo DlcBindWorkGroupsToUserAttachmentAddInfo
Bind user and workgroup information.
DlcBindWorkGroupsToUserAttachmentId string
ID of the resource.
AddInfo DlcBindWorkGroupsToUserAttachmentAddInfoArgs
Bind user and workgroup information.
DlcBindWorkGroupsToUserAttachmentId string
ID of the resource.
addInfo DlcBindWorkGroupsToUserAttachmentAddInfo
Bind user and workgroup information.
dlcBindWorkGroupsToUserAttachmentId String
ID of the resource.
addInfo DlcBindWorkGroupsToUserAttachmentAddInfo
Bind user and workgroup information.
dlcBindWorkGroupsToUserAttachmentId string
ID of the resource.
addInfo Property Map
Bind user and workgroup information.
dlcBindWorkGroupsToUserAttachmentId String
ID of the resource.

Supporting Types

DlcBindWorkGroupsToUserAttachmentAddInfo
, DlcBindWorkGroupsToUserAttachmentAddInfoArgs

UserId This property is required. string
User id, matched with CAM side uin.
WorkGroupIds This property is required. List<double>
Work group id set.
UserId This property is required. string
User id, matched with CAM side uin.
WorkGroupIds This property is required. []float64
Work group id set.
userId This property is required. String
User id, matched with CAM side uin.
workGroupIds This property is required. List<Double>
Work group id set.
userId This property is required. string
User id, matched with CAM side uin.
workGroupIds This property is required. number[]
Work group id set.
user_id This property is required. str
User id, matched with CAM side uin.
work_group_ids This property is required. Sequence[float]
Work group id set.
userId This property is required. String
User id, matched with CAM side uin.
workGroupIds This property is required. List<Number>
Work group id set.

Import

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

$ pulumi import tencentcloud:index/dlcBindWorkGroupsToUserAttachment:DlcBindWorkGroupsToUserAttachment bind_work_groups_to_user bind_work_groups_to_user_id
Copy

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.