AccountArgs

data class AccountArgs(val abandonAbleCheckIds: Output<List<String>>? = null, val accountNamePrefix: Output<String>? = null, val displayName: Output<String>? = null, val folderId: Output<String>? = null, val payerAccountId: Output<String>? = null, val tags: Output<Map<String, Any>>? = null) : ConvertibleToJava<AccountArgs>

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*****

Constructors

Link copied to clipboard
fun AccountArgs(abandonAbleCheckIds: Output<List<String>>? = null, accountNamePrefix: Output<String>? = null, displayName: Output<String>? = null, folderId: Output<String>? = null, payerAccountId: Output<String>? = null, tags: Output<Map<String, Any>>? = null)

Functions

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

Properties

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

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
val accountNamePrefix: Output<String>? = null

The name prefix of account.

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

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>? = null

The ID of the parent folder.

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

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 tags: Output<Map<String, Any>>? = null

A mapping of tags to assign to the resource.