Folder

class Folder : KotlinCustomResource

Provides a Resource Manager Folder resource. A folder is an organizational unit in a resource directory. You can use folders to build an organizational structure for resources. For information about Resource Manager Foler and how to use it, see What is Resource Manager Folder.

NOTE: Available since v1.82.0. NOTE: A maximum of five levels of folders can be created under the root folder.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.Folder;
import com.pulumi.alicloud.resourcemanager.FolderArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
var example = new Folder("example", FolderArgs.builder()
.folderName(name)
.build());
}
}

Import

Resource Manager Folder can be imported using the id, e.g.

$ pulumi import alicloud:resourcemanager/folder:Folder example fd-u8B321****

Properties

Link copied to clipboard
val folderName: Output<String>

The name of the folder. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (_), periods (.), and hyphens (-).

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val parentFolderId: Output<String>

The ID of the parent folder. If not set, the system default value will be used.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>