ResourceDirectoryArgs

data class ResourceDirectoryArgs(val memberDeletionStatus: Output<String>? = null, val status: Output<String>? = null) : ConvertibleToJava<ResourceDirectoryArgs>

Provides a Resource Manager Resource Directory resource. Resource Directory enables you to establish an organizational structure for the resources used by applications of your enterprise. You can plan, build, and manage the resources in a centralized manner by using only one resource directory. For information about Resource Manager Resource Directory and how to use it, see What is Resource Manager Resource Directory.

NOTE: Available in v1.84.0+. NOTE: An account can only be used to enable a resource directory after it passes enterprise real-name verification. An account that only passed individual real-name verification cannot be used to enable a resource directory. NOTE: Before you destroy the resource, make sure that the following requirements are met:

  • All member accounts must be removed from the resource directory.

  • All folders except the root folder must be deleted from the resource directory.

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.ResourceDirectory;
import com.pulumi.alicloud.resourcemanager.ResourceDirectoryArgs;
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) {
var example = new ResourceDirectory("example", ResourceDirectoryArgs.builder()
.status("Enabled")
.build());
}
}

Import

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

$ pulumi import alicloud:resourcemanager/resourceDirectory:ResourceDirectory example rd-s3****

Constructors

Link copied to clipboard
fun ResourceDirectoryArgs(memberDeletionStatus: Output<String>? = null, status: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ResourceDirectoryArgs

Properties

Link copied to clipboard
val memberDeletionStatus: Output<String>? = null

Specifies whether to enable the member deletion feature. Valid values:Enabled and Disabled.

Link copied to clipboard
val status: Output<String>? = null

The status of control policy. Valid values:Enabled and Disabled.