Show / Hide Table of Contents

Class ConnectionPool

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
public MyStack()
{
    var mytestpool = new Aiven.ConnectionPool("mytestpool", new Aiven.ConnectionPoolArgs
    {
        DatabaseName = aiven_database.Mydatabase.Database_name,
        PoolMode = "transaction",
        PoolName = "mypool",
        PoolSize = 10,
        Project = aiven_project.Myproject.Project,
        ServiceName = aiven_service.Myservice.Service_name,
        Username = aiven_service_user.Myserviceuser.Username,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ConnectionPool
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aiven
Assembly: Pulumi.Aiven.dll
Syntax
public class ConnectionPool : CustomResource

Constructors

View Source

ConnectionPool(String, ConnectionPoolArgs, CustomResourceOptions)

Create a ConnectionPool resource with the given unique name, arguments, and options.

Declaration
public ConnectionPool(string name, ConnectionPoolArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ConnectionPoolArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

ConnectionUri

URI for connecting to the pool

Declaration
public Output<string> ConnectionUri { get; }
Property Value
Type Description
Output<System.String>
View Source

DatabaseName

Name of the database the pool connects to

Declaration
public Output<string> DatabaseName { get; }
Property Value
Type Description
Output<System.String>
View Source

PoolMode

Mode the pool operates in (session, transaction, statement)

Declaration
public Output<string> PoolMode { get; }
Property Value
Type Description
Output<System.String>
View Source

PoolName

Name of the pool

Declaration
public Output<string> PoolName { get; }
Property Value
Type Description
Output<System.String>
View Source

PoolSize

Number of connections the pool may create towards the backend server

Declaration
public Output<int?> PoolSize { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Project

Project to link the connection pool to

Declaration
public Output<string> Project { get; }
Property Value
Type Description
Output<System.String>
View Source

ServiceName

Service to link the connection pool to

Declaration
public Output<string> ServiceName { get; }
Property Value
Type Description
Output<System.String>
View Source

Username

Name of the service user used to connect to the database

Declaration
public Output<string> Username { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, ConnectionPoolState, CustomResourceOptions)

Get an existing ConnectionPool resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ConnectionPool Get(string name, Input<string> id, ConnectionPoolState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ConnectionPoolState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ConnectionPool
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.