Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
The Connection Pool data source provides information about the existing Aiven Connection Pool.
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var mytestpool = Output.Create(Aiven.GetConnectionPool.InvokeAsync(new Aiven.GetConnectionPoolArgs
{
Project = aiven_project.Myproject.Project,
ServiceName = aiven_service.Myservice.Service_name,
PoolName = "mypool",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v4/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.LookupConnectionPool(ctx, &GetConnectionPoolArgs{
Project: aiven_project.Myproject.Project,
ServiceName: aiven_service.Myservice.Service_name,
PoolName: "mypool",
}, nil)
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const mytestpool = aiven.getConnectionPool({
project: aiven_project.myproject.project,
serviceName: aiven_service.myservice.service_name,
poolName: "mypool",
});
import pulumi
import pulumi_aiven as aiven
mytestpool = aiven.get_connection_pool(project=aiven_project["myproject"]["project"],
service_name=aiven_service["myservice"]["service_name"],
pool_name="mypool")
Example coming soon!
Using getConnectionPool
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getConnectionPool(args: GetConnectionPoolArgs, opts?: InvokeOptions): Promise<GetConnectionPoolResult>
function getConnectionPoolOutput(args: GetConnectionPoolOutputArgs, opts?: InvokeOptions): Output<GetConnectionPoolResult>def get_connection_pool(pool_name: Optional[str] = None,
project: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectionPoolResult
def get_connection_pool_output(pool_name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConnectionPoolResult]func LookupConnectionPool(ctx *Context, args *LookupConnectionPoolArgs, opts ...InvokeOption) (*LookupConnectionPoolResult, error)
func LookupConnectionPoolOutput(ctx *Context, args *LookupConnectionPoolOutputArgs, opts ...InvokeOption) LookupConnectionPoolResultOutput> Note: This function is named LookupConnectionPool in the Go SDK.
public static class GetConnectionPool
{
public static Task<GetConnectionPoolResult> InvokeAsync(GetConnectionPoolArgs args, InvokeOptions? opts = null)
public static Output<GetConnectionPoolResult> Invoke(GetConnectionPoolInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConnectionPoolResult> getConnectionPool(GetConnectionPoolArgs args, InvokeOptions options)
public static Output<GetConnectionPoolResult> getConnectionPool(GetConnectionPoolArgs args, InvokeOptions options)
fn::invoke:
function: aiven:index/getConnectionPool:getConnectionPool
arguments:
# arguments dictionaryThe following arguments are supported:
- Pool
Name string - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Pool
Name string - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- pool
Name String - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- pool
Name string - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- pool_
name str - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- project str
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service_
name str - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- pool
Name String - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
getConnectionPool Result
The following output properties are available:
- Connection
Uri string - The URI for connecting to the pool
- Database
Name string - The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pool
Mode string - The mode the pool operates in The possible values are
session,transactionandstatement. The default value istransaction. - Pool
Name string - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- Pool
Size int - The number of connections the pool may create towards the backend server. This does not affect the number of incoming connections, which is always a much larger number. The default value is
10. - Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Username string
- The name of the service user used to connect to the database. To set up proper dependencies please refer to this variable as a reference.
- Connection
Uri string - The URI for connecting to the pool
- Database
Name string - The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pool
Mode string - The mode the pool operates in The possible values are
session,transactionandstatement. The default value istransaction. - Pool
Name string - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- Pool
Size int - The number of connections the pool may create towards the backend server. This does not affect the number of incoming connections, which is always a much larger number. The default value is
10. - Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Username string
- The name of the service user used to connect to the database. To set up proper dependencies please refer to this variable as a reference.
- connection
Uri String - The URI for connecting to the pool
- database
Name String - The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- pool
Mode String - The mode the pool operates in The possible values are
session,transactionandstatement. The default value istransaction. - pool
Name String - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- pool
Size Integer - The number of connections the pool may create towards the backend server. This does not affect the number of incoming connections, which is always a much larger number. The default value is
10. - project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- username String
- The name of the service user used to connect to the database. To set up proper dependencies please refer to this variable as a reference.
- connection
Uri string - The URI for connecting to the pool
- database
Name string - The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- pool
Mode string - The mode the pool operates in The possible values are
session,transactionandstatement. The default value istransaction. - pool
Name string - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- pool
Size number - The number of connections the pool may create towards the backend server. This does not affect the number of incoming connections, which is always a much larger number. The default value is
10. - project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- username string
- The name of the service user used to connect to the database. To set up proper dependencies please refer to this variable as a reference.
- connection_
uri str - The URI for connecting to the pool
- database_
name str - The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- pool_
mode str - The mode the pool operates in The possible values are
session,transactionandstatement. The default value istransaction. - pool_
name str - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- pool_
size int - The number of connections the pool may create towards the backend server. This does not affect the number of incoming connections, which is always a much larger number. The default value is
10. - project str
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service_
name str - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- username str
- The name of the service user used to connect to the database. To set up proper dependencies please refer to this variable as a reference.
- connection
Uri String - The URI for connecting to the pool
- database
Name String - The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- pool
Mode String - The mode the pool operates in The possible values are
session,transactionandstatement. The default value istransaction. - pool
Name String - The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
- pool
Size Number - The number of connections the pool may create towards the backend server. This does not affect the number of incoming connections, which is always a much larger number. The default value is
10. - project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- username String
- The name of the service user used to connect to the database. To set up proper dependencies please refer to this variable as a reference.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
