@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
121 lines (120 loc) • 4.16 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages an IAM project resource within HuaweiCloud.
*
* > **NOTE:** You *must* have admin privileges to use this resource.
*
* !> Deleting projects is not supported. The project is only 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 project1 = new huaweicloud.Iam.Project("project_1", {
* description: "This is a test project",
* });
* ```
*
* ## Import
*
* IAM projects can be imported using the `id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Iam/project:Project project_1 89c60255-9bd6-460c-822a-e2b959ede9d2
* ```
*/
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;
/**
* Specifies the description of the project.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Whether the IAM project is enabled.
*/
readonly enabled: pulumi.Output<boolean>;
/**
* Specifies the name of the project. it must start with an existing *region* and be less
* than or equal to 64 characters. Example: cn-north-1_project1.
*/
readonly name: pulumi.Output<string>;
/**
* The parent of the IAM project.
*/
readonly parentId: pulumi.Output<string>;
/**
* Specifies the status of the project.
* Valid values are **normal** and **suspended**, default is **normal**.
*/
readonly status: 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 {
/**
* Specifies the description of the project.
*/
description?: pulumi.Input<string>;
/**
* Whether the IAM project is enabled.
*/
enabled?: pulumi.Input<boolean>;
/**
* Specifies the name of the project. it must start with an existing *region* and be less
* than or equal to 64 characters. Example: cn-north-1_project1.
*/
name?: pulumi.Input<string>;
/**
* The parent of the IAM project.
*/
parentId?: pulumi.Input<string>;
/**
* Specifies the status of the project.
* Valid values are **normal** and **suspended**, default is **normal**.
*/
status?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Project resource.
*/
export interface ProjectArgs {
/**
* Specifies the description of the project.
*/
description?: pulumi.Input<string>;
/**
* Specifies the name of the project. it must start with an existing *region* and be less
* than or equal to 64 characters. Example: cn-north-1_project1.
*/
name?: pulumi.Input<string>;
/**
* Specifies the status of the project.
* Valid values are **normal** and **suspended**, default is **normal**.
*/
status?: pulumi.Input<string>;
}