UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

85 lines (84 loc) 2.85 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages an IAM user group resource within HuaweiCloud. * * > **NOTE:** You *must* have admin privileges to use this resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const group1 = new huaweicloud.Iam.Group("group_1", { * description: "This is a test group", * }); * ``` * * ## Import * * Groups can be imported using the `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Iam/group:Group group_1 89c60255-9bd6-460c-822a-e2b959ede9d2 * ``` */ export declare class Group extends pulumi.CustomResource { /** * Get an existing Group 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?: GroupState, opts?: pulumi.CustomResourceOptions): Group; /** * Returns true if the given object is an instance of Group. 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 Group; /** * Specifies the description of the group. */ readonly description: pulumi.Output<string | undefined>; /** * Specifies the name of the group. The length is less than or equal to 64 bytes. */ readonly name: pulumi.Output<string>; /** * Create a Group 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?: GroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Group resources. */ export interface GroupState { /** * Specifies the description of the group. */ description?: pulumi.Input<string>; /** * Specifies the name of the group. The length is less than or equal to 64 bytes. */ name?: pulumi.Input<string>; } /** * The set of arguments for constructing a Group resource. */ export interface GroupArgs { /** * Specifies the description of the group. */ description?: pulumi.Input<string>; /** * Specifies the name of the group. The length is less than or equal to 64 bytes. */ name?: pulumi.Input<string>; }