import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * MongoDB instance database account. * * ## Import * * ```sh * $ pulumi import volcenginecc:mongodb/account:Account example "instance_id|account_name" * ``` */ export declare class Account extends pulumi.CustomResource { /** * Get an existing Account 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, state?: AccountState, opts?: pulumi.CustomResourceOptions): Account; /** * Returns true if the given object is an instance of Account. 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 Account; /** * Account remarks. */ readonly accountDesc: pulumi.Output; /** * Account name. */ readonly accountName: pulumi.Output; /** * Account password. */ readonly accountPassword: pulumi.Output; readonly accountPrivileges: pulumi.Output; /** * Account type. Value options: Super: Super administrator account, that is, root account; UserAdmin: High-privilege account, that is, an account with any permissions on the admin database; Normal: Regular account, that is, an account with no permissions on the admin database. */ readonly accountType: pulumi.Output; /** * Database associated with the account. */ readonly authDb: pulumi.Output; /** * Account creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). */ readonly createTime: pulumi.Output; /** * Instance ID. */ readonly instanceId: pulumi.Output; /** * Last update time of the account. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). */ readonly modifyTime: pulumi.Output; /** * Whether to reset the root account permissions to the initial state (that is, restore all permissions that can be granted to the super administrator account). Value options: false (default): Do not reset. true: Reset. Note: This parameter only applies to the root account in the admin database (that is, AuthDB is admin and AccountName is root). */ readonly resetDbAccount: pulumi.Output; /** * Create a Account 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: AccountArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Account resources. */ export interface AccountState { /** * Account remarks. */ accountDesc?: pulumi.Input; /** * Account name. */ accountName?: pulumi.Input; /** * Account password. */ accountPassword?: pulumi.Input; accountPrivileges?: pulumi.Input[]>; /** * Account type. Value options: Super: Super administrator account, that is, root account; UserAdmin: High-privilege account, that is, an account with any permissions on the admin database; Normal: Regular account, that is, an account with no permissions on the admin database. */ accountType?: pulumi.Input; /** * Database associated with the account. */ authDb?: pulumi.Input; /** * Account creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). */ createTime?: pulumi.Input; /** * Instance ID. */ instanceId?: pulumi.Input; /** * Last update time of the account. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). */ modifyTime?: pulumi.Input; /** * Whether to reset the root account permissions to the initial state (that is, restore all permissions that can be granted to the super administrator account). Value options: false (default): Do not reset. true: Reset. Note: This parameter only applies to the root account in the admin database (that is, AuthDB is admin and AccountName is root). */ resetDbAccount?: pulumi.Input; } /** * The set of arguments for constructing a Account resource. */ export interface AccountArgs { /** * Account remarks. */ accountDesc?: pulumi.Input; /** * Account name. */ accountName: pulumi.Input; /** * Account password. */ accountPassword?: pulumi.Input; accountPrivileges?: pulumi.Input[]>; /** * Database associated with the account. */ authDb?: pulumi.Input; /** * Instance ID. */ instanceId: pulumi.Input; /** * Whether to reset the root account permissions to the initial state (that is, restore all permissions that can be granted to the super administrator account). Value options: false (default): Do not reset. true: Reset. Note: This parameter only applies to the root account in the admin database (that is, AuthDB is admin and AccountName is root). */ resetDbAccount?: pulumi.Input; }