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 example = new tencentcloud.DlcBindWorkGroupsToUserAttachment("example", {addInfo: {
userId: "100032772113",
workGroupIds: [
23184,
23181,
],
}});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.DlcBindWorkGroupsToUserAttachment("example", add_info={
"user_id": "100032772113",
"work_group_ids": [
23184,
23181,
],
})
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, "example", &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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.DlcBindWorkGroupsToUserAttachment("example", new()
{
AddInfo = new Tencentcloud.Inputs.DlcBindWorkGroupsToUserAttachmentAddInfoArgs
{
UserId = "100032772113",
WorkGroupIds = new[]
{
23184,
23181,
},
},
});
});
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 example = new DlcBindWorkGroupsToUserAttachment("example", DlcBindWorkGroupsToUserAttachmentArgs.builder()
.addInfo(DlcBindWorkGroupsToUserAttachmentAddInfoArgs.builder()
.userId("100032772113")
.workGroupIds(
23184,
23181)
.build())
.build());
}
}
resources:
example:
type: tencentcloud:DlcBindWorkGroupsToUserAttachment
properties:
addInfo:
userId: '100032772113'
workGroupIds:
- 23184
- 23181
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 string
- The unique name of the resource.
- args DlcBindWorkGroupsToUserAttachmentArgs
- 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 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 string
- The unique name of the resource.
- args DlcBindWorkGroupsToUserAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlcBindWorkGroupsToUserAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Add
Info DlcBind Work Groups To User Attachment Add Info - Information about bound working groups and users.
- Dlc
Bind stringWork Groups To User Attachment Id - ID of the resource.
- Add
Info DlcBind Work Groups To User Attachment Add Info Args - Information about bound working groups and users.
- Dlc
Bind stringWork Groups To User Attachment Id - ID of the resource.
- add
Info DlcBind Work Groups To User Attachment Add Info - Information about bound working groups and users.
- dlc
Bind StringWork Groups To User Attachment Id - ID of the resource.
- add
Info DlcBind Work Groups To User Attachment Add Info - Information about bound working groups and users.
- dlc
Bind stringWork Groups To User Attachment Id - ID of the resource.
- add_
info DlcBind Work Groups To User Attachment Add Info Args - Information about bound working groups and users.
- dlc_
bind_ strwork_ groups_ to_ user_ attachment_ id - ID of the resource.
- add
Info Property Map - Information about bound working groups and users.
- dlc
Bind StringWork Groups To User Attachment Id - 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
- 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.
- Add
Info DlcBind Work Groups To User Attachment Add Info - Information about bound working groups and users.
- Dlc
Bind stringWork Groups To User Attachment Id - ID of the resource.
- Add
Info DlcBind Work Groups To User Attachment Add Info Args - Information about bound working groups and users.
- Dlc
Bind stringWork Groups To User Attachment Id - ID of the resource.
- add
Info DlcBind Work Groups To User Attachment Add Info - Information about bound working groups and users.
- dlc
Bind StringWork Groups To User Attachment Id - ID of the resource.
- add
Info DlcBind Work Groups To User Attachment Add Info - Information about bound working groups and users.
- dlc
Bind stringWork Groups To User Attachment Id - ID of the resource.
- add_
info DlcBind Work Groups To User Attachment Add Info Args - Information about bound working groups and users.
- dlc_
bind_ strwork_ groups_ to_ user_ attachment_ id - ID of the resource.
- add
Info Property Map - Information about bound working groups and users.
- dlc
Bind StringWork Groups To User Attachment Id - ID of the resource.
Supporting Types
DlcBindWorkGroupsToUserAttachmentAddInfo, DlcBindWorkGroupsToUserAttachmentAddInfoArgs
- User
Id string - User ID, which matches Uin on the CAM side.
- Work
Group List<double>Ids - Collections of IDs of working groups.
- User
Id string - User ID, which matches Uin on the CAM side.
- Work
Group []float64Ids - Collections of IDs of working groups.
- user
Id String - User ID, which matches Uin on the CAM side.
- work
Group List<Double>Ids - Collections of IDs of working groups.
- user
Id string - User ID, which matches Uin on the CAM side.
- work
Group number[]Ids - Collections of IDs of working groups.
- user_
id str - User ID, which matches Uin on the CAM side.
- work_
group_ Sequence[float]ids - Collections of IDs of working groups.
- user
Id String - User ID, which matches Uin on the CAM side.
- work
Group List<Number>Ids - Collections of IDs of working groups.
Import
DLC bind work groups to user can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dlcBindWorkGroupsToUserAttachment:DlcBindWorkGroupsToUserAttachment example 100032772113
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.