import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Database account. * * ## Import * * ```sh * $ pulumi import volcenginecc:rdsmysql/dbAccount:DbAccount example "instance_id|account_name|host" * ``` */ export declare class DbAccount extends pulumi.CustomResource { /** * Get an existing DbAccount 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?: DbAccountState, opts?: pulumi.CustomResourceOptions): DbAccount; /** * Returns true if the given object is an instance of DbAccount. 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 DbAccount; /** * Account information description, maximum length 256 characters. */ readonly accountDesc: pulumi.Output; /** * Database account name. Naming rules: Must be 2–32 characters long. Must start with a letter and end with a letter or number. Can contain letters, numbers, underscores (_), and hyphens (-). The account name must be unique within the instance. Certain reserved words cannot be used; for disabled reserved words, see the disabled word list. Note: The keywords root and admin can be used in high-privilege account names. */ readonly accountName: pulumi.Output; /** * Database account password. Rules: Length must be 8–32 characters. Must include at least three of the following: uppercase letters, lowercase letters, numbers, special characters. Allowed special characters: !@#$%^&*()_+-=,.&?|/. */ readonly accountPassword: pulumi.Output; readonly accountPrivileges: pulumi.Output; /** * SQL statement for the account's specified database permission information. */ readonly accountPrivilegesSqls: pulumi.Output; /** * Account status. Values: Unavailable: unavailable. Available: available. */ readonly accountStatus: pulumi.Output; /** * Account type. Value options: Super: high-privilege account. Normal: regular account. */ readonly accountType: pulumi.Output; /** * The database to which the account's table/column privileges belong. Note: If the account does not have table/column privileges, this field will not be returned. */ readonly hasTableColumnPrivilegeDbNames: pulumi.Output; /** * IP address from which the specified database account can access the database. */ readonly host: pulumi.Output; /** * Instance ID. */ readonly instanceId: pulumi.Output; readonly tableColumnPrivileges: pulumi.Output; /** * Create a DbAccount 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: DbAccountArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DbAccount resources. */ export interface DbAccountState { /** * Account information description, maximum length 256 characters. */ accountDesc?: pulumi.Input; /** * Database account name. Naming rules: Must be 2–32 characters long. Must start with a letter and end with a letter or number. Can contain letters, numbers, underscores (_), and hyphens (-). The account name must be unique within the instance. Certain reserved words cannot be used; for disabled reserved words, see the disabled word list. Note: The keywords root and admin can be used in high-privilege account names. */ accountName?: pulumi.Input; /** * Database account password. Rules: Length must be 8–32 characters. Must include at least three of the following: uppercase letters, lowercase letters, numbers, special characters. Allowed special characters: !@#$%^&*()_+-=,.&?|/. */ accountPassword?: pulumi.Input; accountPrivileges?: pulumi.Input[]>; /** * SQL statement for the account's specified database permission information. */ accountPrivilegesSqls?: pulumi.Input[]>; /** * Account status. Values: Unavailable: unavailable. Available: available. */ accountStatus?: pulumi.Input; /** * Account type. Value options: Super: high-privilege account. Normal: regular account. */ accountType?: pulumi.Input; /** * The database to which the account's table/column privileges belong. Note: If the account does not have table/column privileges, this field will not be returned. */ hasTableColumnPrivilegeDbNames?: pulumi.Input[]>; /** * IP address from which the specified database account can access the database. */ host?: pulumi.Input; /** * Instance ID. */ instanceId?: pulumi.Input; tableColumnPrivileges?: pulumi.Input[]>; } /** * The set of arguments for constructing a DbAccount resource. */ export interface DbAccountArgs { /** * Account information description, maximum length 256 characters. */ accountDesc?: pulumi.Input; /** * Database account name. Naming rules: Must be 2–32 characters long. Must start with a letter and end with a letter or number. Can contain letters, numbers, underscores (_), and hyphens (-). The account name must be unique within the instance. Certain reserved words cannot be used; for disabled reserved words, see the disabled word list. Note: The keywords root and admin can be used in high-privilege account names. */ accountName: pulumi.Input; /** * Database account password. Rules: Length must be 8–32 characters. Must include at least three of the following: uppercase letters, lowercase letters, numbers, special characters. Allowed special characters: !@#$%^&*()_+-=,.&?|/. */ accountPassword: pulumi.Input; accountPrivileges?: pulumi.Input[]>; /** * Account type. Value options: Super: high-privilege account. Normal: regular account. */ accountType: pulumi.Input; /** * IP address from which the specified database account can access the database. */ host?: pulumi.Input; /** * Instance ID. */ instanceId: pulumi.Input; tableColumnPrivileges?: pulumi.Input[]>; }