@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
111 lines (110 loc) • 3.92 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a SWR organization resource within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = new huaweicloud.Swr.Organization("test", {});
* ```
*
* ## Import
*
* Organizations can be imported using the `name`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Swr/organization:Organization test org-name
* ```
*/
export declare class Organization extends pulumi.CustomResource {
/**
* Get an existing Organization 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?: OrganizationState, opts?: pulumi.CustomResourceOptions): Organization;
/**
* Returns true if the given object is an instance of Organization. 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 Organization;
/**
* The creator user name of the organization.
*/
readonly creator: pulumi.Output<string>;
/**
* The URL that can be used to log into the container registry.
*/
readonly loginServer: pulumi.Output<string>;
/**
* Specifies the name of the organization. The organization name must be globally
* unique.
*/
readonly name: pulumi.Output<string>;
/**
* The permission of the organization, the value can be Manage, Write, and Read.
*/
readonly permission: pulumi.Output<string>;
/**
* Specifies the region in which to create the resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* Create a Organization 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?: OrganizationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Organization resources.
*/
export interface OrganizationState {
/**
* The creator user name of the organization.
*/
creator?: pulumi.Input<string>;
/**
* The URL that can be used to log into the container registry.
*/
loginServer?: pulumi.Input<string>;
/**
* Specifies the name of the organization. The organization name must be globally
* unique.
*/
name?: pulumi.Input<string>;
/**
* The permission of the organization, the value can be Manage, Write, and Read.
*/
permission?: pulumi.Input<string>;
/**
* Specifies the region in which to create the resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Organization resource.
*/
export interface OrganizationArgs {
/**
* Specifies the name of the organization. The organization name must be globally
* unique.
*/
name?: pulumi.Input<string>;
/**
* Specifies the region in which to create the resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
}