@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
96 lines (95 loc) • 3.22 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage cloud identity user attachment
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooGroup = new volcengine.cloud_identity.Group("fooGroup", {
* groupName: "acc-test-group",
* displayName: "tf-test-group",
* joinType: "Manual",
* description: "tf",
* });
* const fooUser = new volcengine.cloud_identity.User("fooUser", {
* userName: "acc-test-user",
* displayName: "tf-test-user",
* description: "tf",
* email: "88@qq.com",
* phone: "181",
* });
* const fooUserAttachment = new volcengine.cloud_identity.UserAttachment("fooUserAttachment", {
* userId: fooUser.id,
* groupId: fooGroup.id,
* });
* ```
*
* ## Import
*
* CloudIdentityUserAttachment can be imported using the group_id:user_id, e.g.
*
* ```sh
* $ pulumi import volcengine:cloud_identity/userAttachment:UserAttachment default resource_id
* ```
*/
export declare class UserAttachment extends pulumi.CustomResource {
/**
* Get an existing UserAttachment resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserAttachmentState, opts?: pulumi.CustomResourceOptions): UserAttachment;
/**
* Returns true if the given object is an instance of UserAttachment. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is UserAttachment;
/**
* The id of the cloud identity group.
*/
readonly groupId: pulumi.Output<string>;
/**
* The id of the cloud identity user.
*/
readonly userId: pulumi.Output<string>;
/**
* Create a UserAttachment resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: UserAttachmentArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering UserAttachment resources.
*/
export interface UserAttachmentState {
/**
* The id of the cloud identity group.
*/
groupId?: pulumi.Input<string>;
/**
* The id of the cloud identity user.
*/
userId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a UserAttachment resource.
*/
export interface UserAttachmentArgs {
/**
* The id of the cloud identity group.
*/
groupId: pulumi.Input<string>;
/**
* The id of the cloud identity user.
*/
userId: pulumi.Input<string>;
}