Account

class Account : KotlinCustomResource

Provides a Resource Manager Account resource. Member accounts are containers for resources in a resource directory. These accounts isolate resources and serve as organizational units in the resource directory. You can create member accounts in a folder and then manage them in a unified manner. For information about Resource Manager Account and how to use it, see What is Resource Manager Account.

NOTE: Available since v1.83.0. NOTE: From version 1.188.0, the resource can be destroyed. The member deletion feature is in invitational preview. You can contact the service manager of Alibaba Cloud to apply for a trial. see how to destroy it.

Example 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 com.pulumi.alicloud.resourcemanager.Account;
import com.pulumi.alicloud.resourcemanager.AccountArgs;
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");
final var displayName = config.get("displayName").orElse("EAccount");
var exampleFolder = new Folder("exampleFolder", FolderArgs.builder()
.folderName(name)
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.displayName(displayName)
.folderId(exampleFolder.id())
.build());
}
}

Import

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

$ pulumi import alicloud:resourcemanager/account:Account example 13148890145*****

Properties

Link copied to clipboard

The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource alicloud.resourcemanager.getAccountDeletionCheckTask to get check ids and set them.

Link copied to clipboard

The name prefix of account.

Link copied to clipboard
val displayName: Output<String>

Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).

Link copied to clipboard
val folderId: Output<String>

The ID of the parent folder.

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

Ways for members to join the resource directory. Valid values: invited, created.

Link copied to clipboard
val joinTime: Output<String>

The time when the member joined the resource directory.

Link copied to clipboard
val modifyTime: Output<String>

The modification time of the invitation.

Link copied to clipboard
val payerAccountId: Output<String>?

The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Resource directory ID.

Link copied to clipboard
val status: Output<String>

Member joining status. Valid values: CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.

Link copied to clipboard
val tags: Output<Map<String, Any>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val type: Output<String>

Member type. The value of ResourceAccount indicates the resource account.

Link copied to clipboard
val urn: Output<String>