UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

93 lines (92 loc) 3.18 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage iam user group attachment * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const fooUser = new volcengine.iam.User("fooUser", { * userName: "acc-test-user", * description: "acc test", * displayName: "name", * }); * const fooUserGroup = new volcengine.iam.UserGroup("fooUserGroup", { * userGroupName: "acc-test-group", * description: "acc-test", * displayName: "acctest", * }); * const fooUserGroupAttachment = new volcengine.iam.UserGroupAttachment("fooUserGroupAttachment", { * userGroupName: fooUserGroup.userGroupName, * userName: fooUser.userName, * }); * ``` * * ## Import * * IamUserGroupAttachment can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:iam/userGroupAttachment:UserGroupAttachment default user_group_id:user_id * ``` */ export declare class UserGroupAttachment extends pulumi.CustomResource { /** * Get an existing UserGroupAttachment 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?: UserGroupAttachmentState, opts?: pulumi.CustomResourceOptions): UserGroupAttachment; /** * Returns true if the given object is an instance of UserGroupAttachment. 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 UserGroupAttachment; /** * The name of the user group. */ readonly userGroupName: pulumi.Output<string>; /** * The name of the user. */ readonly userName: pulumi.Output<string>; /** * Create a UserGroupAttachment 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: UserGroupAttachmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering UserGroupAttachment resources. */ export interface UserGroupAttachmentState { /** * The name of the user group. */ userGroupName?: pulumi.Input<string>; /** * The name of the user. */ userName?: pulumi.Input<string>; } /** * The set of arguments for constructing a UserGroupAttachment resource. */ export interface UserGroupAttachmentArgs { /** * The name of the user group. */ userGroupName: pulumi.Input<string>; /** * The name of the user. */ userName: pulumi.Input<string>; }