import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages a [connection pool](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling) in an Aiven for PostgreSQLĀ® service. If this resource is missing (for example, after a service power off), it's removed from the state and a new create plan is generated. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = new aiven.ConnectionPool("example", { * project: "my-project", * serviceName: "foo", * poolName: "mypool-x-y-z", * databaseName: "testdb", * poolMode: "transaction", * poolSize: 10, * username: "testuser", * }); * ``` * * ## Import * * ```sh * $ pulumi import aiven:index/connectionPool:ConnectionPool example PROJECT/SERVICE_NAME/POOL_NAME * ``` */ export declare class ConnectionPool extends pulumi.CustomResource { /** * Get an existing ConnectionPool 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?: ConnectionPoolState, opts?: pulumi.CustomResourceOptions): ConnectionPool; /** * Returns true if the given object is an instance of ConnectionPool. 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 ConnectionPool; /** * Connection URI for the DB pool. */ readonly connectionUri: pulumi.Output; /** * Service database name. Maximum length: `63`. Changing this property forces recreation of the resource. */ readonly databaseName: pulumi.Output; /** * PGBouncer pool mode. The possible values are `session`, `statement` and `transaction`. The default value is `transaction`. */ readonly poolMode: pulumi.Output; /** * PgBouncer connection pool name. Maximum length: `63`. Changing this property forces recreation of the resource. */ readonly poolName: pulumi.Output; /** * Size of PGBouncer's PostgreSQL side connection pool. Value must be between `1` and `10000`. The default value is `10`. */ readonly poolSize: pulumi.Output; /** * Project name. Changing this property forces recreation of the resource. */ readonly project: pulumi.Output; /** * Service name. Changing this property forces recreation of the resource. */ readonly serviceName: pulumi.Output; readonly timeouts: pulumi.Output; /** * Service username. Length must be between `1` and `64`. */ readonly username: pulumi.Output; /** * Create a ConnectionPool 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: ConnectionPoolArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ConnectionPool resources. */ export interface ConnectionPoolState { /** * Connection URI for the DB pool. */ connectionUri?: pulumi.Input; /** * Service database name. Maximum length: `63`. Changing this property forces recreation of the resource. */ databaseName?: pulumi.Input; /** * PGBouncer pool mode. The possible values are `session`, `statement` and `transaction`. The default value is `transaction`. */ poolMode?: pulumi.Input; /** * PgBouncer connection pool name. Maximum length: `63`. Changing this property forces recreation of the resource. */ poolName?: pulumi.Input; /** * Size of PGBouncer's PostgreSQL side connection pool. Value must be between `1` and `10000`. The default value is `10`. */ poolSize?: pulumi.Input; /** * Project name. Changing this property forces recreation of the resource. */ project?: pulumi.Input; /** * Service name. Changing this property forces recreation of the resource. */ serviceName?: pulumi.Input; timeouts?: pulumi.Input; /** * Service username. Length must be between `1` and `64`. */ username?: pulumi.Input; } /** * The set of arguments for constructing a ConnectionPool resource. */ export interface ConnectionPoolArgs { /** * Service database name. Maximum length: `63`. Changing this property forces recreation of the resource. */ databaseName: pulumi.Input; /** * PGBouncer pool mode. The possible values are `session`, `statement` and `transaction`. The default value is `transaction`. */ poolMode?: pulumi.Input; /** * PgBouncer connection pool name. Maximum length: `63`. Changing this property forces recreation of the resource. */ poolName: pulumi.Input; /** * Size of PGBouncer's PostgreSQL side connection pool. Value must be between `1` and `10000`. The default value is `10`. */ poolSize?: pulumi.Input; /** * Project name. Changing this property forces recreation of the resource. */ project: pulumi.Input; /** * Service name. Changing this property forces recreation of the resource. */ serviceName: pulumi.Input; timeouts?: pulumi.Input; /** * Service username. Length must be between `1` and `64`. */ username?: pulumi.Input; } //# sourceMappingURL=connectionPool.d.ts.map