import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Gets information about a connection pool in an Aiven for PostgreSQL® service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = aiven.getConnectionPool({ * project: "my-project", * serviceName: "foo", * poolName: "mypool-x-y-z", * }); * ``` */ export declare function getConnectionPool(args: GetConnectionPoolArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getConnectionPool. */ export interface GetConnectionPoolArgs { /** * PgBouncer connection pool name. */ poolName: string; /** * Project name. */ project: string; /** * Service name. */ serviceName: string; timeouts?: inputs.GetConnectionPoolTimeouts; } /** * A collection of values returned by getConnectionPool. */ export interface GetConnectionPoolResult { /** * Connection URI for the DB pool. */ readonly connectionUri: string; /** * Service database name. */ readonly databaseName: string; /** * Resource ID composed as: `project/service_name/pool_name`. */ readonly id: string; /** * PGBouncer pool mode. The possible values are `session`, `statement` and `transaction`. The default value is `transaction`. */ readonly poolMode: string; /** * PgBouncer connection pool name. */ readonly poolName: string; /** * Size of PGBouncer's PostgreSQL side connection pool. The default value is `10`. */ readonly poolSize: number; /** * Project name. */ readonly project: string; /** * Service name. */ readonly serviceName: string; readonly timeouts?: outputs.GetConnectionPoolTimeouts; /** * Service username. */ readonly username: string; } /** * Gets information about a connection pool in an Aiven for PostgreSQL® service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = aiven.getConnectionPool({ * project: "my-project", * serviceName: "foo", * poolName: "mypool-x-y-z", * }); * ``` */ export declare function getConnectionPoolOutput(args: GetConnectionPoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getConnectionPool. */ export interface GetConnectionPoolOutputArgs { /** * PgBouncer connection pool name. */ poolName: pulumi.Input; /** * Project name. */ project: pulumi.Input; /** * Service name. */ serviceName: pulumi.Input; timeouts?: pulumi.Input; } //# sourceMappingURL=getConnectionPool.d.ts.map