import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a database in a Cloud SQL instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const qa = gcp.sql.getDatabase({ * name: "test-sql-database", * instance: main.name, * }); * ``` */ export declare function getDatabase(args: GetDatabaseArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDatabase. */ export interface GetDatabaseArgs { /** * The name of the Cloud SQL database instance in which the database belongs. */ instance: string; /** * The name of the database. */ name: string; /** * The ID of the project in which the instance belongs. */ project?: string; } /** * A collection of values returned by getDatabase. */ export interface GetDatabaseResult { readonly charset: string; readonly collation: string; readonly deletionPolicy: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instance: string; readonly name: string; readonly project?: string; readonly selfLink: string; } /** * Use this data source to get information about a database in a Cloud SQL instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const qa = gcp.sql.getDatabase({ * name: "test-sql-database", * instance: main.name, * }); * ``` */ export declare function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDatabase. */ export interface GetDatabaseOutputArgs { /** * The name of the Cloud SQL database instance in which the database belongs. */ instance: pulumi.Input; /** * The name of the database. */ name: pulumi.Input; /** * The ID of the project in which the instance belongs. */ project?: pulumi.Input; }