UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

141 lines (140 loc) 4.64 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage rds postgresql database * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.rds_postgresql.Database("foo", { * cType: "C", * collate: "zh_CN.utf8", * dbName: "acc-test", * instanceId: "postgres-95*******233", * }); * ``` * * ## Import * * Database can be imported using the instanceId:dbName, e.g. * * ```sh * $ pulumi import volcengine:rds_postgresql/database:Database default postgres-ca7b7019****:dbname * ``` */ 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<pulumi.ID>, 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. Value range: C (default), C.UTF-8, en_US.utf8, zh_CN.utf8, and POSIX. */ readonly cType: pulumi.Output<string>; /** * Database character set. Currently supported character sets include: utf8, latin1, ascii. Default is utf8. */ readonly characterSetName: pulumi.Output<string>; /** * The collate of database. Sorting rules. Value range: C (default), C.UTF-8, en_US.utf8, zh_CN.utf8 and POSIX. */ readonly collate: pulumi.Output<string>; /** * The name of database. */ readonly dbName: pulumi.Output<string>; /** * The status of the RDS database. */ readonly dbStatus: pulumi.Output<string>; /** * The ID of the RDS instance. */ readonly instanceId: pulumi.Output<string>; /** * The owner of database. */ readonly owner: pulumi.Output<string>; /** * 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. Value range: C (default), C.UTF-8, en_US.utf8, zh_CN.utf8, and POSIX. */ cType?: pulumi.Input<string>; /** * Database character set. Currently supported character sets include: utf8, latin1, ascii. Default is utf8. */ characterSetName?: pulumi.Input<string>; /** * The collate of database. Sorting rules. Value range: C (default), C.UTF-8, en_US.utf8, zh_CN.utf8 and POSIX. */ collate?: pulumi.Input<string>; /** * The name of database. */ dbName?: pulumi.Input<string>; /** * The status of the RDS database. */ dbStatus?: pulumi.Input<string>; /** * The ID of the RDS instance. */ instanceId?: pulumi.Input<string>; /** * The owner of database. */ owner?: pulumi.Input<string>; } /** * The set of arguments for constructing a Database resource. */ export interface DatabaseArgs { /** * Character classification. Value range: C (default), C.UTF-8, en_US.utf8, zh_CN.utf8, and POSIX. */ cType?: pulumi.Input<string>; /** * Database character set. Currently supported character sets include: utf8, latin1, ascii. Default is utf8. */ characterSetName?: pulumi.Input<string>; /** * The collate of database. Sorting rules. Value range: C (default), C.UTF-8, en_US.utf8, zh_CN.utf8 and POSIX. */ collate?: pulumi.Input<string>; /** * The name of database. */ dbName: pulumi.Input<string>; /** * The ID of the RDS instance. */ instanceId: pulumi.Input<string>; /** * The owner of database. */ owner?: pulumi.Input<string>; }