tencentcloud.DlcAddUsersToWorkGroupAttachment
Explore with Pulumi AI
Provides a resource to create a DLC add users to work group attachment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.DlcAddUsersToWorkGroupAttachment("example", {addInfo: {
userIds: [
"100032717595",
"100030773831",
],
workGroupId: 70220,
}});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.DlcAddUsersToWorkGroupAttachment("example", add_info={
"user_ids": [
"100032717595",
"100030773831",
],
"work_group_id": 70220,
})
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.NewDlcAddUsersToWorkGroupAttachment(ctx, "example", &tencentcloud.DlcAddUsersToWorkGroupAttachmentArgs{
AddInfo: &tencentcloud.DlcAddUsersToWorkGroupAttachmentAddInfoArgs{
UserIds: pulumi.StringArray{
pulumi.String("100032717595"),
pulumi.String("100030773831"),
},
WorkGroupId: pulumi.Float64(70220),
},
})
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.DlcAddUsersToWorkGroupAttachment("example", new()
{
AddInfo = new Tencentcloud.Inputs.DlcAddUsersToWorkGroupAttachmentAddInfoArgs
{
UserIds = new[]
{
"100032717595",
"100030773831",
},
WorkGroupId = 70220,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DlcAddUsersToWorkGroupAttachment;
import com.pulumi.tencentcloud.DlcAddUsersToWorkGroupAttachmentArgs;
import com.pulumi.tencentcloud.inputs.DlcAddUsersToWorkGroupAttachmentAddInfoArgs;
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 DlcAddUsersToWorkGroupAttachment("example", DlcAddUsersToWorkGroupAttachmentArgs.builder()
.addInfo(DlcAddUsersToWorkGroupAttachmentAddInfoArgs.builder()
.userIds(
"100032717595",
"100030773831")
.workGroupId(70220)
.build())
.build());
}
}
resources:
example:
type: tencentcloud:DlcAddUsersToWorkGroupAttachment
properties:
addInfo:
userIds:
- '100032717595'
- '100030773831'
workGroupId: 70220
Create DlcAddUsersToWorkGroupAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DlcAddUsersToWorkGroupAttachment(name: string, args: DlcAddUsersToWorkGroupAttachmentArgs, opts?: CustomResourceOptions);
@overload
def DlcAddUsersToWorkGroupAttachment(resource_name: str,
args: DlcAddUsersToWorkGroupAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DlcAddUsersToWorkGroupAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
add_info: Optional[DlcAddUsersToWorkGroupAttachmentAddInfoArgs] = None,
dlc_add_users_to_work_group_attachment_id: Optional[str] = None)
func NewDlcAddUsersToWorkGroupAttachment(ctx *Context, name string, args DlcAddUsersToWorkGroupAttachmentArgs, opts ...ResourceOption) (*DlcAddUsersToWorkGroupAttachment, error)
public DlcAddUsersToWorkGroupAttachment(string name, DlcAddUsersToWorkGroupAttachmentArgs args, CustomResourceOptions? opts = null)
public DlcAddUsersToWorkGroupAttachment(String name, DlcAddUsersToWorkGroupAttachmentArgs args)
public DlcAddUsersToWorkGroupAttachment(String name, DlcAddUsersToWorkGroupAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:DlcAddUsersToWorkGroupAttachment
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 DlcAddUsersToWorkGroupAttachmentArgs
- 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 DlcAddUsersToWorkGroupAttachmentArgs
- 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 DlcAddUsersToWorkGroupAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlcAddUsersToWorkGroupAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DlcAddUsersToWorkGroupAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DlcAddUsersToWorkGroupAttachment 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 DlcAddUsersToWorkGroupAttachment resource accepts the following input properties:
- Add
Info DlcAdd Users To Work Group Attachment Add Info - Information about working groups and users to be operated.
- Dlc
Add stringUsers To Work Group Attachment Id - ID of the resource.
- Add
Info DlcAdd Users To Work Group Attachment Add Info Args - Information about working groups and users to be operated.
- Dlc
Add stringUsers To Work Group Attachment Id - ID of the resource.
- add
Info DlcAdd Users To Work Group Attachment Add Info - Information about working groups and users to be operated.
- dlc
Add StringUsers To Work Group Attachment Id - ID of the resource.
- add
Info DlcAdd Users To Work Group Attachment Add Info - Information about working groups and users to be operated.
- dlc
Add stringUsers To Work Group Attachment Id - ID of the resource.
- add_
info DlcAdd Users To Work Group Attachment Add Info Args - Information about working groups and users to be operated.
- dlc_
add_ strusers_ to_ work_ group_ attachment_ id - ID of the resource.
- add
Info Property Map - Information about working groups and users to be operated.
- dlc
Add StringUsers To Work Group Attachment Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DlcAddUsersToWorkGroupAttachment 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 DlcAddUsersToWorkGroupAttachment Resource
Get an existing DlcAddUsersToWorkGroupAttachment 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?: DlcAddUsersToWorkGroupAttachmentState, opts?: CustomResourceOptions): DlcAddUsersToWorkGroupAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
add_info: Optional[DlcAddUsersToWorkGroupAttachmentAddInfoArgs] = None,
dlc_add_users_to_work_group_attachment_id: Optional[str] = None) -> DlcAddUsersToWorkGroupAttachment
func GetDlcAddUsersToWorkGroupAttachment(ctx *Context, name string, id IDInput, state *DlcAddUsersToWorkGroupAttachmentState, opts ...ResourceOption) (*DlcAddUsersToWorkGroupAttachment, error)
public static DlcAddUsersToWorkGroupAttachment Get(string name, Input<string> id, DlcAddUsersToWorkGroupAttachmentState? state, CustomResourceOptions? opts = null)
public static DlcAddUsersToWorkGroupAttachment get(String name, Output<String> id, DlcAddUsersToWorkGroupAttachmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DlcAddUsersToWorkGroupAttachment 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 DlcAdd Users To Work Group Attachment Add Info - Information about working groups and users to be operated.
- Dlc
Add stringUsers To Work Group Attachment Id - ID of the resource.
- Add
Info DlcAdd Users To Work Group Attachment Add Info Args - Information about working groups and users to be operated.
- Dlc
Add stringUsers To Work Group Attachment Id - ID of the resource.
- add
Info DlcAdd Users To Work Group Attachment Add Info - Information about working groups and users to be operated.
- dlc
Add StringUsers To Work Group Attachment Id - ID of the resource.
- add
Info DlcAdd Users To Work Group Attachment Add Info - Information about working groups and users to be operated.
- dlc
Add stringUsers To Work Group Attachment Id - ID of the resource.
- add_
info DlcAdd Users To Work Group Attachment Add Info Args - Information about working groups and users to be operated.
- dlc_
add_ strusers_ to_ work_ group_ attachment_ id - ID of the resource.
- add
Info Property Map - Information about working groups and users to be operated.
- dlc
Add StringUsers To Work Group Attachment Id - ID of the resource.
Supporting Types
DlcAddUsersToWorkGroupAttachmentAddInfo, DlcAddUsersToWorkGroupAttachmentAddInfoArgs
- User
Ids List<string> - User ID which matches the Uin on the CAM side.
- Work
Group doubleId - Working group ID.
- User
Ids []string - User ID which matches the Uin on the CAM side.
- Work
Group float64Id - Working group ID.
- user
Ids List<String> - User ID which matches the Uin on the CAM side.
- work
Group DoubleId - Working group ID.
- user
Ids string[] - User ID which matches the Uin on the CAM side.
- work
Group numberId - Working group ID.
- user_
ids Sequence[str] - User ID which matches the Uin on the CAM side.
- work_
group_ floatid - Working group ID.
- user
Ids List<String> - User ID which matches the Uin on the CAM side.
- work
Group NumberId - Working group ID.
Import
DLC add users to work group attachment can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dlcAddUsersToWorkGroupAttachment:DlcAddUsersToWorkGroupAttachment example '70220#100032717595|100030773831'
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.