UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

117 lines (116 loc) 4.06 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a project resource within HuaweiCloud CPTS. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const test = new huaweicloud.Cpts.Project("test", { * description: "cpts project description", * }); * ``` * * ## Import * * Projects can be imported using the `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Cpts/project:Project test 1090 * ``` */ 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; /** * The creation time, in UTC format. */ readonly createdAt: pulumi.Output<string>; /** * Specifies the description of the project, which can contain a maximum of * `50` characters. */ readonly description: pulumi.Output<string | undefined>; /** * Specifies a name for the project, which can contain a maximum of `42` characters. */ readonly name: pulumi.Output<string>; /** * Specifies the region in which to create the project resource. If omitted, the * provider-level region will be used. Changing this parameter will create a new resource. */ readonly region: pulumi.Output<string>; /** * The last update time, in UTC format. */ 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 { /** * The creation time, in UTC format. */ createdAt?: pulumi.Input<string>; /** * Specifies the description of the project, which can contain a maximum of * `50` characters. */ description?: pulumi.Input<string>; /** * Specifies a name for the project, which can contain a maximum of `42` characters. */ name?: pulumi.Input<string>; /** * Specifies the region in which to create the project resource. If omitted, the * provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; /** * The last update time, in UTC format. */ updatedAt?: pulumi.Input<string>; } /** * The set of arguments for constructing a Project resource. */ export interface ProjectArgs { /** * Specifies the description of the project, which can contain a maximum of * `50` characters. */ description?: pulumi.Input<string>; /** * Specifies a name for the project, which can contain a maximum of `42` characters. */ name?: pulumi.Input<string>; /** * Specifies the region in which to create the project resource. If omitted, the * provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; }