@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
108 lines (107 loc) • 3.89 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Allows creation and management of Cloud Folders for an existing Yandex Cloud. See [the official documentation](https://cloud.yandex.com/docs/resource-manager/concepts/resources-hierarchy) for additional info.
* Note: deletion of folders may take up to 30 minutes as it requires a lot of communication between cloud services.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const folder1 = new yandex.ResourcemanagerFolder("folder1", {
* cloudId: "my_cloud_id",
* });
* ```
*/
export declare class ResourcemanagerFolder extends pulumi.CustomResource {
/**
* Get an existing ResourcemanagerFolder 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?: ResourcemanagerFolderState, opts?: pulumi.CustomResourceOptions): ResourcemanagerFolder;
/**
* Returns true if the given object is an instance of ResourcemanagerFolder. 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 ResourcemanagerFolder;
/**
* Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
*/
readonly cloudId: pulumi.Output<string>;
readonly createdAt: pulumi.Output<string>;
/**
* A description of the Folder.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* A set of key/value label pairs to assign to the Folder.
*/
readonly labels: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* The name of the Folder.
*/
readonly name: pulumi.Output<string>;
/**
* Create a ResourcemanagerFolder 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?: ResourcemanagerFolderArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ResourcemanagerFolder resources.
*/
export interface ResourcemanagerFolderState {
/**
* Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
*/
cloudId?: pulumi.Input<string>;
createdAt?: pulumi.Input<string>;
/**
* A description of the Folder.
*/
description?: pulumi.Input<string>;
/**
* A set of key/value label pairs to assign to the Folder.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The name of the Folder.
*/
name?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ResourcemanagerFolder resource.
*/
export interface ResourcemanagerFolderArgs {
/**
* Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
*/
cloudId?: pulumi.Input<string>;
/**
* A description of the Folder.
*/
description?: pulumi.Input<string>;
/**
* A set of key/value label pairs to assign to the Folder.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The name of the Folder.
*/
name?: pulumi.Input<string>;
}