Aiven

Pulumi Official
Package maintained by Pulumi
v5.2.0 published on Wednesday, Jul 20, 2022 by Pulumi

getConnectionPool

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/v5/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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var mytestpool = Output.of(AivenFunctions.getConnectionPool(GetConnectionPoolArgs.builder()
            .project(aiven_project.myproject().project())
            .serviceName(aiven_service.myservice().service_name())
            .poolName("mypool")
            .build()));

    }
}
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")
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",
});
variables:
  mytestpool:
    Fn::Invoke:
      Function: aiven:getConnectionPool
      Arguments:
        project: ${aiven_project.myproject.project}
        serviceName: ${aiven_service.myservice.service_name}
        poolName: mypool

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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aiven:index/getConnectionPool:getConnectionPool
  Arguments:
    # Arguments dictionary

The following arguments are supported:

PoolName string
Project string
ServiceName string
PoolName string
Project string
ServiceName string
poolName String
project String
serviceName String
poolName string
project string
serviceName string
poolName String
project String
serviceName String

getConnectionPool Result

The following output properties are available:

ConnectionUri string
DatabaseName string
Id string

The provider-assigned unique ID for this managed resource.

PoolMode string
PoolName string
PoolSize int
Project string
ServiceName string
Username string
ConnectionUri string
DatabaseName string
Id string

The provider-assigned unique ID for this managed resource.

PoolMode string
PoolName string
PoolSize int
Project string
ServiceName string
Username string
connectionUri String
databaseName String
id String

The provider-assigned unique ID for this managed resource.

poolMode String
poolName String
poolSize Integer
project String
serviceName String
username String
connectionUri string
databaseName string
id string

The provider-assigned unique ID for this managed resource.

poolMode string
poolName string
poolSize number
project string
serviceName string
username string
connection_uri str
database_name str
id str

The provider-assigned unique ID for this managed resource.

pool_mode str
pool_name str
pool_size int
project str
service_name str
username str
connectionUri String
databaseName String
id String

The provider-assigned unique ID for this managed resource.

poolMode String
poolName String
poolSize Number
project String
serviceName String
username String

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes

This Pulumi package is based on the aiven Terraform Provider.