UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

165 lines (164 loc) 6.3 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this resource to manage an enterprise project within HuaweiCloud. * * > **NOTE:** Deleting enterprise projects is not support. If you destroy a resource of enterprise project, * the project is only disabled and removed from the state, but it remains in the cloud * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const test = new huaweicloud.Eps.Project("test", { * description: "example project", * }); * ``` * * ## Import * * Enterprise projects can be imported using their `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Eps/project:Project test <id> * ``` */ export declare class Project extends pulumi.CustomResource { /** * Get an existing Project 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?: ProjectState, opts?: pulumi.CustomResourceOptions): Project; /** * Returns true if the given object is an instance of Project. 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 Project; /** * Indicates the time (UTC) when the enterprise project was created. Example: **2018-05-18T06:49:06Z**. */ readonly createdAt: pulumi.Output<string>; /** * Specifies the description of the enterprise project. */ readonly description: pulumi.Output<string | undefined>; /** * Specifies whether to enable the enterprise project. Defaults to **true**. */ readonly enable: pulumi.Output<boolean | undefined>; /** * Specifies the name of the enterprise project. * This parameter can contain `1` to `64` characters. Only English letters, Chinese characters, digits, underscores (_), * and hyphens (-) are allowed. * The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance). */ readonly name: pulumi.Output<string>; /** * Specifies whether to skip disable the enterprise project on destroy. * Defaults to **false**. */ readonly skipDisableOnDestroy: pulumi.Output<boolean | undefined>; /** * Indicates the status of an enterprise project. * + **1**: Indicates enabled. * + **2**: Indicates disabled. */ readonly status: pulumi.Output<number>; /** * Specifies the type of the enterprise project. * The valid values are **poc** and **prod**, defaults to **prod**. */ readonly type: pulumi.Output<string>; /** * Indicates the time (UTC) when the enterprise project was modified. Example: **2018-05-28T02:21:36Z**. */ readonly updatedAt: pulumi.Output<string>; /** * Create a Project 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?: ProjectArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Project resources. */ export interface ProjectState { /** * Indicates the time (UTC) when the enterprise project was created. Example: **2018-05-18T06:49:06Z**. */ createdAt?: pulumi.Input<string>; /** * Specifies the description of the enterprise project. */ description?: pulumi.Input<string>; /** * Specifies whether to enable the enterprise project. Defaults to **true**. */ enable?: pulumi.Input<boolean>; /** * Specifies the name of the enterprise project. * This parameter can contain `1` to `64` characters. Only English letters, Chinese characters, digits, underscores (_), * and hyphens (-) are allowed. * The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance). */ name?: pulumi.Input<string>; /** * Specifies whether to skip disable the enterprise project on destroy. * Defaults to **false**. */ skipDisableOnDestroy?: pulumi.Input<boolean>; /** * Indicates the status of an enterprise project. * + **1**: Indicates enabled. * + **2**: Indicates disabled. */ status?: pulumi.Input<number>; /** * Specifies the type of the enterprise project. * The valid values are **poc** and **prod**, defaults to **prod**. */ type?: pulumi.Input<string>; /** * Indicates the time (UTC) when the enterprise project was modified. Example: **2018-05-28T02:21:36Z**. */ updatedAt?: pulumi.Input<string>; } /** * The set of arguments for constructing a Project resource. */ export interface ProjectArgs { /** * Specifies the description of the enterprise project. */ description?: pulumi.Input<string>; /** * Specifies whether to enable the enterprise project. Defaults to **true**. */ enable?: pulumi.Input<boolean>; /** * Specifies the name of the enterprise project. * This parameter can contain `1` to `64` characters. Only English letters, Chinese characters, digits, underscores (_), * and hyphens (-) are allowed. * The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance). */ name?: pulumi.Input<string>; /** * Specifies whether to skip disable the enterprise project on destroy. * Defaults to **false**. */ skipDisableOnDestroy?: pulumi.Input<boolean>; /** * Specifies the type of the enterprise project. * The valid values are **poc** and **prod**, defaults to **prod**. */ type?: pulumi.Input<string>; }