import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a database of a database cluster associated with a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const database = ovh.CloudProjectDatabase.getDatabaseInstance({ * serviceName: "XXX", * engine: "YYY", * clusterId: "ZZZ", * name: "UUU", * }); * export const databaseName = database.then(database => database.name); * ``` */ export declare function getDatabaseInstance(args: GetDatabaseInstanceArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDatabaseInstance. */ export interface GetDatabaseInstanceArgs { /** * Cluster ID */ clusterId: string; /** * The engine of the database cluster you want database information. To get a full list of available engine visit: [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). Available engines: */ engine: string; /** * Name of the database. */ name: string; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: string; } /** * A collection of values returned by getDatabaseInstance. */ export interface GetDatabaseInstanceResult { /** * See Argument Reference above. */ readonly clusterId: string; /** * Defines if the database has been created by default. */ readonly default: boolean; /** * See Argument Reference above. */ readonly engine: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Name of the database. */ readonly name: string; /** * Current status of the database. */ readonly serviceName: string; } /** * Use this data source to get information about a database of a database cluster associated with a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const database = ovh.CloudProjectDatabase.getDatabaseInstance({ * serviceName: "XXX", * engine: "YYY", * clusterId: "ZZZ", * name: "UUU", * }); * export const databaseName = database.then(database => database.name); * ``` */ export declare function getDatabaseInstanceOutput(args: GetDatabaseInstanceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDatabaseInstance. */ export interface GetDatabaseInstanceOutputArgs { /** * Cluster ID */ clusterId: pulumi.Input; /** * The engine of the database cluster you want database information. To get a full list of available engine visit: [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). Available engines: */ engine: pulumi.Input; /** * Name of the database. */ name: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }