import * as pulumi from "@pulumi/pulumi"; /** * The database is an independent database within a PostgreSQL instance, used to store and manage data. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const rDSPostgreSQLDatabaseDemo = new volcenginecc.rdspostgresql.Database("RDSPostgreSQLDatabaseDemo", { * instanceId: "postgres-8d1fcxxxxxx", * dbName: "ccapi-terraform-1001", * characterSetName: "utf8", * owner: "test-1", * collate: "C", * cType: "C.UTF-8", * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:rdspostgresql/database:Database example "instance_id|db_name" * ``` */ export declare class Database extends pulumi.CustomResource { /** * Get an existing Database 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?: DatabaseState, opts?: pulumi.CustomResourceOptions): Database; /** * Returns true if the given object is an instance of Database. 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 Database; /** * Character classification. Supported values: C (default), C.UTF-8, en*US.utf8, zh*CN.utf8, and POSIX */ readonly cType: pulumi.Output; /** * Database character set. Supported character sets: utf8 (default), latin1, ascii */ readonly characterSetName: pulumi.Output; /** * Collation. Supported values: C (default), C.UTF-8, en*US.utf8, zh*CN.utf8, and POSIX */ readonly collate: pulumi.Output; /** * Database name. Naming rules: 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. Reserved keywords are not allowed. For a list of all disabled keywords, see Disabled Keywords. */ readonly dbName: pulumi.Output; /** * Database status: Unavailable: Not available. Available: Available. */ readonly dbStatus: pulumi.Output; /** * Instance ID */ readonly instanceId: pulumi.Output; /** * Database owner. Note: Read-only instance accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the database owner. If no value is provided or the value is empty, this field defaults to rds superuser */ readonly owner: pulumi.Output; /** * Create a Database 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: DatabaseArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Database resources. */ export interface DatabaseState { /** * Character classification. Supported values: C (default), C.UTF-8, en*US.utf8, zh*CN.utf8, and POSIX */ cType?: pulumi.Input; /** * Database character set. Supported character sets: utf8 (default), latin1, ascii */ characterSetName?: pulumi.Input; /** * Collation. Supported values: C (default), C.UTF-8, en*US.utf8, zh*CN.utf8, and POSIX */ collate?: pulumi.Input; /** * Database name. Naming rules: 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. Reserved keywords are not allowed. For a list of all disabled keywords, see Disabled Keywords. */ dbName?: pulumi.Input; /** * Database status: Unavailable: Not available. Available: Available. */ dbStatus?: pulumi.Input; /** * Instance ID */ instanceId?: pulumi.Input; /** * Database owner. Note: Read-only instance accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the database owner. If no value is provided or the value is empty, this field defaults to rds superuser */ owner?: pulumi.Input; } /** * The set of arguments for constructing a Database resource. */ export interface DatabaseArgs { /** * Character classification. Supported values: C (default), C.UTF-8, en*US.utf8, zh*CN.utf8, and POSIX */ cType?: pulumi.Input; /** * Database character set. Supported character sets: utf8 (default), latin1, ascii */ characterSetName?: pulumi.Input; /** * Collation. Supported values: C (default), C.UTF-8, en*US.utf8, zh*CN.utf8, and POSIX */ collate?: pulumi.Input; /** * Database name. Naming rules: 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. Reserved keywords are not allowed. For a list of all disabled keywords, see Disabled Keywords. */ dbName: pulumi.Input; /** * Instance ID */ instanceId: pulumi.Input; /** * Database owner. Note: Read-only instance accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the database owner. If no value is provided or the value is empty, this field defaults to rds superuser */ owner?: pulumi.Input; }