import * as pulumi from "@pulumi/pulumi"; /** * ## Import * * OVHcloud Managed PostgreSQL clusters connection pools can be imported using the `service_name`, `cluster_id` and `id` of the connection pool, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProjectDatabase/postgresSqlConnectionPool:PostgresSqlConnectionPool my_connection_pool service_name/cluster_id/id * ``` */ export declare class PostgresSqlConnectionPool extends pulumi.CustomResource { /** * Get an existing PostgresSqlConnectionPool 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, state?: PostgresSqlConnectionPoolState, opts?: pulumi.CustomResourceOptions): PostgresSqlConnectionPool; /** * Returns true if the given object is an instance of PostgresSqlConnectionPool. 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 PostgresSqlConnectionPool; /** * Cluster ID. */ readonly clusterId: pulumi.Output; /** * Database ID for a database that belongs to the Database cluster given above. */ readonly databaseId: pulumi.Output; /** * Connection mode to the connection pool Available modes: */ readonly mode: pulumi.Output; /** * Name of the connection pool. */ readonly name: pulumi.Output; /** * Port of the connection pool. */ readonly port: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Size of the connection pool. */ readonly size: pulumi.Output; /** * Ssl connection mode for the pool. */ readonly sslMode: pulumi.Output; /** * Connection URI to the pool. */ readonly uri: pulumi.Output; /** * Database user authorized to connect to the pool, if none all the users are allowed. */ readonly userId: pulumi.Output; /** * Create a PostgresSqlConnectionPool 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: PostgresSqlConnectionPoolArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PostgresSqlConnectionPool resources. */ export interface PostgresSqlConnectionPoolState { /** * Cluster ID. */ clusterId?: pulumi.Input; /** * Database ID for a database that belongs to the Database cluster given above. */ databaseId?: pulumi.Input; /** * Connection mode to the connection pool Available modes: */ mode?: pulumi.Input; /** * Name of the connection pool. */ name?: pulumi.Input; /** * Port of the connection pool. */ port?: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Size of the connection pool. */ size?: pulumi.Input; /** * Ssl connection mode for the pool. */ sslMode?: pulumi.Input; /** * Connection URI to the pool. */ uri?: pulumi.Input; /** * Database user authorized to connect to the pool, if none all the users are allowed. */ userId?: pulumi.Input; } /** * The set of arguments for constructing a PostgresSqlConnectionPool resource. */ export interface PostgresSqlConnectionPoolArgs { /** * Cluster ID. */ clusterId: pulumi.Input; /** * Database ID for a database that belongs to the Database cluster given above. */ databaseId: pulumi.Input; /** * Connection mode to the connection pool Available modes: */ mode: 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; /** * Size of the connection pool. */ size: pulumi.Input; /** * Database user authorized to connect to the pool, if none all the users are allowed. */ userId?: pulumi.Input; }