import * as pulumi from "@pulumi/pulumi"; /** * RDS PostgreSQL Database Account * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const rDSPostgreSQLDBAccountNormalDemo = new volcenginecc.rdspostgresql.DbAccount("RDSPostgreSQLDBAccountNormalDemo", { * instanceId: "postgres-xxxxxxx", * accountName: "ccapi-test-Normal", * accountPassword: "**********", * accountType: "Normal", * accountPrivileges: "Inherit,Login,CreateRole,CreateDB", * notAllowPrivileges: ["DDL"], * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:rdspostgresql/dbAccount:DbAccount example "instance_id|account_name" * ``` */ 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; /** * Database account name. The account name rules are as follows: Length must be 2–63 characters. Can contain letters, numbers, underscores (*), or hyphens (-). Must start with a letter and end with a letter or number. Cannot start with pg*. Reserved keywords cannot be used. For all disabled keywords, see Disabled Keywords. */ readonly accountName: pulumi.Output; /** * Database account password. The password rules are as follows: Length must be 8–32 characters. Must contain any three of the following: uppercase letters, lowercase letters, numbers, special characters. Supported special characters: !@#$%^*()&_+-=. */ readonly accountPassword: pulumi.Output; /** * Account permission information. Separate multiple permissions with commas (,). Valid values: Login: Login permission. Inherit: Inherit permission. CreateRole: Create role permission. CreateDB: Create database permission. Note: If the account type is high privilege, you do not need to provide this parameter; all permissions are supported by default. If the account type is normal, you can provide this parameter; the default values are Login and Inherit. If the account type is instance read-only, that is, AccountType is set to InstanceReadOnly, this parameter is not supported. */ readonly accountPrivileges: pulumi.Output; /** * Database account type. Valid values: Super: High privilege account. Normal: Normal account. InstanceReadOnly: Instance read-only account. */ readonly accountType: pulumi.Output; /** * Instance ID */ readonly instanceId: pulumi.Output; /** * Permissions disabled for the account. Currently, only DDL is supported. Note: This field can only be provided for high privilege or normal accounts, that is, when AccountType is set to Super or Normal. */ readonly notAllowPrivileges: 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 { /** * Database account name. The account name rules are as follows: Length must be 2–63 characters. Can contain letters, numbers, underscores (*), or hyphens (-). Must start with a letter and end with a letter or number. Cannot start with pg*. Reserved keywords cannot be used. For all disabled keywords, see Disabled Keywords. */ accountName?: pulumi.Input; /** * Database account password. The password rules are as follows: Length must be 8–32 characters. Must contain any three of the following: uppercase letters, lowercase letters, numbers, special characters. Supported special characters: !@#$%^*()&_+-=. */ accountPassword?: pulumi.Input; /** * Account permission information. Separate multiple permissions with commas (,). Valid values: Login: Login permission. Inherit: Inherit permission. CreateRole: Create role permission. CreateDB: Create database permission. Note: If the account type is high privilege, you do not need to provide this parameter; all permissions are supported by default. If the account type is normal, you can provide this parameter; the default values are Login and Inherit. If the account type is instance read-only, that is, AccountType is set to InstanceReadOnly, this parameter is not supported. */ accountPrivileges?: pulumi.Input; /** * Database account type. Valid values: Super: High privilege account. Normal: Normal account. InstanceReadOnly: Instance read-only account. */ accountType?: pulumi.Input; /** * Instance ID */ instanceId?: pulumi.Input; /** * Permissions disabled for the account. Currently, only DDL is supported. Note: This field can only be provided for high privilege or normal accounts, that is, when AccountType is set to Super or Normal. */ notAllowPrivileges?: pulumi.Input[]>; } /** * The set of arguments for constructing a DbAccount resource. */ export interface DbAccountArgs { /** * Database account name. The account name rules are as follows: Length must be 2–63 characters. Can contain letters, numbers, underscores (*), or hyphens (-). Must start with a letter and end with a letter or number. Cannot start with pg*. Reserved keywords cannot be used. For all disabled keywords, see Disabled Keywords. */ accountName: pulumi.Input; /** * Database account password. The password rules are as follows: Length must be 8–32 characters. Must contain any three of the following: uppercase letters, lowercase letters, numbers, special characters. Supported special characters: !@#$%^*()&_+-=. */ accountPassword: pulumi.Input; /** * Account permission information. Separate multiple permissions with commas (,). Valid values: Login: Login permission. Inherit: Inherit permission. CreateRole: Create role permission. CreateDB: Create database permission. Note: If the account type is high privilege, you do not need to provide this parameter; all permissions are supported by default. If the account type is normal, you can provide this parameter; the default values are Login and Inherit. If the account type is instance read-only, that is, AccountType is set to InstanceReadOnly, this parameter is not supported. */ accountPrivileges?: pulumi.Input; /** * Database account type. Valid values: Super: High privilege account. Normal: Normal account. InstanceReadOnly: Instance read-only account. */ accountType: pulumi.Input; /** * Instance ID */ instanceId?: pulumi.Input; /** * Permissions disabled for the account. Currently, only DDL is supported. Note: This field can only be provided for high privilege or normal accounts, that is, when AccountType is set to Super or Normal. */ notAllowPrivileges?: pulumi.Input[]>; }