import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a connection pool of a postgresql cluster associated with a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * export = async () => { * const testPool = await ovh.CloudProjectDatabase.getPostgresSqlConnectionPool({ * serviceName: "XXX", * clusterId: "YYY", * name: "ZZZ", * }); * return { * testPool: { * serviceName: testPool.serviceName, * clusterId: testPool.clusterId, * name: testPool.name, * databaseId: testPool.databaseId, * mode: testPool.mode, * size: testPool.size, * port: testPool.port, * sslMode: testPool.sslMode, * uri: testPool.uri, * userId: testPool.userId, * }, * }; * } * ``` */ export declare function getPostgresSqlConnectionPool(args: GetPostgresSqlConnectionPoolArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPostgresSqlConnectionPool. */ export interface GetPostgresSqlConnectionPoolArgs { /** * Cluster ID. */ clusterId: string; /** * Name of the Connection pool. */ 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 getPostgresSqlConnectionPool. */ export interface GetPostgresSqlConnectionPoolResult { /** * See Argument Reference above */ readonly clusterId: string; /** * Database ID for a database that belongs to the Database cluster given above. */ readonly databaseId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Connection mode to the connection pool Available modes: */ readonly mode: string; /** * See Argument Reference above */ readonly name: string; /** * Port of the connection pool. */ readonly port: number; /** * See Argument Reference above */ readonly serviceName: string; /** * Size of the connection pool. */ readonly size: number; /** * Ssl connection mode for the pool. */ readonly sslMode: string; /** * Connection URI to the pool. */ readonly uri: string; /** * Database user authorized to connect to the pool, if none all the users are allowed. */ readonly userId: string; } /** * Use this data source to get information about a connection pool of a postgresql cluster associated with a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * export = async () => { * const testPool = await ovh.CloudProjectDatabase.getPostgresSqlConnectionPool({ * serviceName: "XXX", * clusterId: "YYY", * name: "ZZZ", * }); * return { * testPool: { * serviceName: testPool.serviceName, * clusterId: testPool.clusterId, * name: testPool.name, * databaseId: testPool.databaseId, * mode: testPool.mode, * size: testPool.size, * port: testPool.port, * sslMode: testPool.sslMode, * uri: testPool.uri, * userId: testPool.userId, * }, * }; * } * ``` */ export declare function getPostgresSqlConnectionPoolOutput(args: GetPostgresSqlConnectionPoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPostgresSqlConnectionPool. */ export interface GetPostgresSqlConnectionPoolOutputArgs { /** * Cluster ID. */ clusterId: pulumi.Input; /** * Name of the Connection pool. */ name: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }