@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
130 lines (129 loc) • 3.9 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage organization unit
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooOrganization = new volcengine.organization.Organization("fooOrganization", {});
* const fooUnits = volcengine.organization.getUnits({});
* const fooUnit = new volcengine.organization.Unit("fooUnit", {
* parentId: fooUnits.then(fooUnits => .filter(unit => unit.parentId == "0").map(unit => (unit.id))[0]),
* description: "tf-test",
* });
* ```
*
* ## Import
*
* OrganizationUnit can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:organization/unit:Unit default ID
* ```
*/
export declare class Unit extends pulumi.CustomResource {
/**
* Get an existing Unit 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?: UnitState, opts?: pulumi.CustomResourceOptions): Unit;
/**
* Returns true if the given object is an instance of Unit. 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 Unit;
/**
* The depth of the organization unit.
*/
readonly depth: pulumi.Output<number>;
/**
* Description of the organization unit.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Name of the organization unit.
*/
readonly name: pulumi.Output<string>;
/**
* The id of the organization.
*/
readonly orgId: pulumi.Output<string>;
/**
* The organization type.
*/
readonly orgType: pulumi.Output<number>;
/**
* The owner of the organization unit.
*/
readonly owner: pulumi.Output<string>;
/**
* Parent Organization Unit ID.
*/
readonly parentId: pulumi.Output<string>;
/**
* Create a Unit 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: UnitArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Unit resources.
*/
export interface UnitState {
/**
* The depth of the organization unit.
*/
depth?: pulumi.Input<number>;
/**
* Description of the organization unit.
*/
description?: pulumi.Input<string>;
/**
* Name of the organization unit.
*/
name?: pulumi.Input<string>;
/**
* The id of the organization.
*/
orgId?: pulumi.Input<string>;
/**
* The organization type.
*/
orgType?: pulumi.Input<number>;
/**
* The owner of the organization unit.
*/
owner?: pulumi.Input<string>;
/**
* Parent Organization Unit ID.
*/
parentId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Unit resource.
*/
export interface UnitArgs {
/**
* Description of the organization unit.
*/
description?: pulumi.Input<string>;
/**
* Name of the organization unit.
*/
name?: pulumi.Input<string>;
/**
* Parent Organization Unit ID.
*/
parentId: pulumi.Input<string>;
}