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,
});
}
}
Inherited Members
Namespace: Pulumi.Aiven
Assembly: Pulumi.Aiven.dll
Syntax
public class ConnectionPool : CustomResource
Constructors
View SourceConnectionPool(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 SourceConnectionUri
URI for connecting to the pool
Declaration
public Output<string> ConnectionUri { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DatabaseName
Name of the database the pool connects to
Declaration
public Output<string> DatabaseName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PoolMode
Mode the pool operates in (session, transaction, statement)
Declaration
public Output<string> PoolMode { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PoolName
Name of the pool
Declaration
public Output<string> PoolName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>> |
Project
Project to link the connection pool to
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServiceName
Service to link the connection pool to
Declaration
public Output<string> ServiceName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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 SourceGet(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 |