pulumi-aiven 6.13.0a1710156545__py3-none-any.whl → 6.31.0a1736849214__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-aiven might be problematic. Click here for more details.
- pulumi_aiven/__init__.py +127 -0
- pulumi_aiven/_inputs.py +32615 -13711
- pulumi_aiven/_utilities.py +41 -5
- pulumi_aiven/account.py +32 -45
- pulumi_aiven/account_authentication.py +24 -9
- pulumi_aiven/account_team.py +35 -14
- pulumi_aiven/account_team_member.py +48 -39
- pulumi_aiven/account_team_project.py +40 -27
- pulumi_aiven/alloydbomni.py +1335 -0
- pulumi_aiven/alloydbomni_database.py +347 -0
- pulumi_aiven/alloydbomni_user.py +433 -0
- pulumi_aiven/aws_privatelink.py +44 -43
- pulumi_aiven/aws_vpc_peering_connection.py +72 -61
- pulumi_aiven/azure_privatelink.py +54 -53
- pulumi_aiven/azure_privatelink_connection_approval.py +136 -33
- pulumi_aiven/azure_vpc_peering_connection.py +86 -77
- pulumi_aiven/billing_group.py +33 -34
- pulumi_aiven/cassandra.py +145 -126
- pulumi_aiven/cassandra_user.py +59 -58
- pulumi_aiven/clickhouse.py +133 -114
- pulumi_aiven/clickhouse_database.py +58 -62
- pulumi_aiven/clickhouse_grant.py +135 -134
- pulumi_aiven/clickhouse_role.py +36 -49
- pulumi_aiven/clickhouse_user.py +50 -49
- pulumi_aiven/config/__init__.pyi +5 -0
- pulumi_aiven/config/vars.py +5 -0
- pulumi_aiven/connection_pool.py +67 -66
- pulumi_aiven/dragonfly.py +1256 -0
- pulumi_aiven/flink.py +104 -104
- pulumi_aiven/flink_application.py +58 -55
- pulumi_aiven/flink_application_deployment.py +178 -73
- pulumi_aiven/flink_application_version.py +179 -96
- pulumi_aiven/gcp_privatelink.py +69 -42
- pulumi_aiven/gcp_privatelink_connection_approval.py +78 -49
- pulumi_aiven/gcp_vpc_peering_connection.py +49 -48
- pulumi_aiven/get_account.py +20 -9
- pulumi_aiven/get_account_authentication.py +31 -5
- pulumi_aiven/get_account_team.py +18 -5
- pulumi_aiven/get_account_team_member.py +29 -14
- pulumi_aiven/get_account_team_project.py +19 -6
- pulumi_aiven/get_alloydbomni.py +499 -0
- pulumi_aiven/get_alloydbomni_database.py +168 -0
- pulumi_aiven/get_alloydbomni_user.py +210 -0
- pulumi_aiven/get_aws_privatelink.py +33 -24
- pulumi_aiven/get_aws_vpc_peering_connection.py +56 -33
- pulumi_aiven/get_azure_privatelink.py +37 -26
- pulumi_aiven/get_azure_vpc_peering_connection.py +77 -28
- pulumi_aiven/get_billing_group.py +31 -8
- pulumi_aiven/get_cassanda.py +55 -23
- pulumi_aiven/get_cassandra.py +55 -23
- pulumi_aiven/get_cassandra_user.py +42 -30
- pulumi_aiven/get_clickhouse.py +55 -23
- pulumi_aiven/get_clickhouse_database.py +35 -26
- pulumi_aiven/get_clickhouse_user.py +40 -29
- pulumi_aiven/get_connection_pool.py +43 -30
- pulumi_aiven/get_dragonfly.py +499 -0
- pulumi_aiven/get_external_identity.py +160 -0
- pulumi_aiven/get_flink.py +55 -23
- pulumi_aiven/get_flink_application.py +44 -31
- pulumi_aiven/get_flink_application_version.py +55 -37
- pulumi_aiven/get_gcp_privatelink.py +63 -7
- pulumi_aiven/get_gcp_vpc_peering_connection.py +39 -28
- pulumi_aiven/get_grafana.py +55 -23
- pulumi_aiven/get_influx_db.py +41 -5
- pulumi_aiven/get_influxdb_database.py +18 -5
- pulumi_aiven/get_influxdb_user.py +21 -5
- pulumi_aiven/get_kafka.py +59 -25
- pulumi_aiven/get_kafka_acl.py +50 -37
- pulumi_aiven/get_kafka_connect.py +54 -36
- pulumi_aiven/get_kafka_connector.py +44 -28
- pulumi_aiven/get_kafka_mirror_maker.py +50 -32
- pulumi_aiven/get_kafka_schema.py +35 -23
- pulumi_aiven/get_kafka_schema_configuration.py +32 -21
- pulumi_aiven/get_kafka_schema_registry_acl.py +37 -20
- pulumi_aiven/get_kafka_topic.py +70 -29
- pulumi_aiven/get_kafka_user.py +42 -30
- pulumi_aiven/get_m3_aggregator.py +51 -19
- pulumi_aiven/get_m3_db.py +55 -23
- pulumi_aiven/get_m3db_user.py +38 -28
- pulumi_aiven/get_mirror_maker_replication_flow.py +86 -25
- pulumi_aiven/get_my_sql.py +50 -18
- pulumi_aiven/get_mysql_database.py +31 -22
- pulumi_aiven/get_mysql_user.py +36 -23
- pulumi_aiven/get_open_search.py +50 -18
- pulumi_aiven/get_open_search_acl_config.py +27 -19
- pulumi_aiven/get_open_search_acl_rule.py +37 -25
- pulumi_aiven/get_opensearch_security_plugin_config.py +29 -19
- pulumi_aiven/get_opensearch_user.py +32 -22
- pulumi_aiven/get_organization.py +25 -17
- pulumi_aiven/get_organization_application_user.py +176 -0
- pulumi_aiven/get_organization_user.py +18 -5
- pulumi_aiven/get_organization_user_group.py +48 -14
- pulumi_aiven/get_organization_user_list.py +121 -0
- pulumi_aiven/get_organizational_unit.py +26 -14
- pulumi_aiven/get_pg.py +55 -23
- pulumi_aiven/get_pg_database.py +39 -28
- pulumi_aiven/get_pg_user.py +44 -31
- pulumi_aiven/get_project.py +43 -26
- pulumi_aiven/get_project_user.py +27 -19
- pulumi_aiven/get_project_vpc.py +31 -23
- pulumi_aiven/get_redis.py +50 -18
- pulumi_aiven/get_redis_user.py +40 -26
- pulumi_aiven/get_service_component.py +40 -22
- pulumi_aiven/get_service_integration.py +163 -53
- pulumi_aiven/get_service_integration_endpoint.py +128 -37
- pulumi_aiven/get_thanos.py +499 -0
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +35 -22
- pulumi_aiven/get_valkey.py +499 -0
- pulumi_aiven/get_valkey_user.py +218 -0
- pulumi_aiven/grafana.py +188 -322
- pulumi_aiven/influx_db.py +127 -90
- pulumi_aiven/influxdb_database.py +40 -55
- pulumi_aiven/influxdb_user.py +47 -42
- pulumi_aiven/kafka.py +157 -144
- pulumi_aiven/kafka_acl.py +64 -57
- pulumi_aiven/kafka_connect.py +201 -332
- pulumi_aiven/kafka_connector.py +67 -60
- pulumi_aiven/kafka_mirror_maker.py +137 -320
- pulumi_aiven/kafka_native_acl.py +588 -0
- pulumi_aiven/kafka_schema.py +63 -58
- pulumi_aiven/kafka_schema_configuration.py +25 -24
- pulumi_aiven/kafka_schema_registry_acl.py +80 -35
- pulumi_aiven/kafka_topic.py +184 -65
- pulumi_aiven/kafka_user.py +59 -58
- pulumi_aiven/m3_aggregator.py +174 -310
- pulumi_aiven/m3_db.py +190 -326
- pulumi_aiven/m3db_user.py +51 -50
- pulumi_aiven/mirror_maker_replication_flow.py +215 -55
- pulumi_aiven/my_sql.py +188 -324
- pulumi_aiven/mysql_database.py +32 -51
- pulumi_aiven/mysql_user.py +37 -36
- pulumi_aiven/open_search.py +126 -107
- pulumi_aiven/open_search_acl_config.py +33 -36
- pulumi_aiven/open_search_acl_rule.py +55 -54
- pulumi_aiven/opensearch_security_plugin_config.py +69 -16
- pulumi_aiven/opensearch_user.py +30 -29
- pulumi_aiven/organization.py +18 -17
- pulumi_aiven/organization_application_user.py +345 -0
- pulumi_aiven/organization_application_user_token.py +711 -0
- pulumi_aiven/organization_group_project.py +349 -0
- pulumi_aiven/organization_permission.py +421 -0
- pulumi_aiven/organization_user.py +25 -46
- pulumi_aiven/organization_user_group.py +64 -23
- pulumi_aiven/organization_user_group_member.py +359 -0
- pulumi_aiven/organizational_unit.py +41 -36
- pulumi_aiven/outputs.py +38355 -21458
- pulumi_aiven/pg.py +92 -88
- pulumi_aiven/pg_database.py +52 -71
- pulumi_aiven/pg_user.py +80 -65
- pulumi_aiven/project.py +111 -102
- pulumi_aiven/project_user.py +44 -35
- pulumi_aiven/project_vpc.py +58 -29
- pulumi_aiven/provider.py +5 -0
- pulumi_aiven/pulumi-plugin.json +2 -1
- pulumi_aiven/redis.py +161 -297
- pulumi_aiven/redis_user.py +58 -57
- pulumi_aiven/service_integration.py +511 -165
- pulumi_aiven/service_integration_endpoint.py +466 -158
- pulumi_aiven/static_ip.py +21 -16
- pulumi_aiven/thanos.py +1262 -0
- pulumi_aiven/transit_gateway_vpc_attachment.py +44 -58
- pulumi_aiven/valkey.py +1256 -0
- pulumi_aiven/valkey_user.py +606 -0
- {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.dist-info}/METADATA +7 -6
- pulumi_aiven-6.31.0a1736849214.dist-info/RECORD +169 -0
- {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.dist-info}/WHEEL +1 -1
- pulumi_aiven-6.13.0a1710156545.dist-info/RECORD +0 -146
- {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.dist-info}/top_level.txt +0 -0
pulumi_aiven/connection_pool.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['ConnectionPoolArgs', 'ConnectionPool']
|
|
@@ -23,12 +28,12 @@ class ConnectionPoolArgs:
|
|
|
23
28
|
username: Optional[pulumi.Input[str]] = None):
|
|
24
29
|
"""
|
|
25
30
|
The set of arguments for constructing a ConnectionPool resource.
|
|
26
|
-
:param pulumi.Input[str] database_name: The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference.
|
|
27
|
-
:param pulumi.Input[str] pool_name:
|
|
28
|
-
:param pulumi.Input[str] project:
|
|
29
|
-
:param pulumi.Input[str] service_name:
|
|
30
|
-
:param pulumi.Input[str] pool_mode: The mode
|
|
31
|
-
:param pulumi.Input[int] pool_size: The number of connections
|
|
31
|
+
:param pulumi.Input[str] database_name: The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
32
|
+
:param pulumi.Input[str] pool_name: Name of the pool. Changing this property forces recreation of the resource.
|
|
33
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
34
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
35
|
+
:param pulumi.Input[str] pool_mode: The [operational mode](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling#pooling-modes). The possible values are `session`, `transaction` and `statement`. The default value is `transaction`.
|
|
36
|
+
:param pulumi.Input[int] pool_size: The number of PostgreSQL server connections this pool can use at a time. This does not affect the number of incoming connections. Each pool can handle a minimum of 5000 client connections. The default value is `10`.
|
|
32
37
|
:param pulumi.Input[str] username: 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.
|
|
33
38
|
"""
|
|
34
39
|
pulumi.set(__self__, "database_name", database_name)
|
|
@@ -46,7 +51,7 @@ class ConnectionPoolArgs:
|
|
|
46
51
|
@pulumi.getter(name="databaseName")
|
|
47
52
|
def database_name(self) -> pulumi.Input[str]:
|
|
48
53
|
"""
|
|
49
|
-
The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference.
|
|
54
|
+
The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
50
55
|
"""
|
|
51
56
|
return pulumi.get(self, "database_name")
|
|
52
57
|
|
|
@@ -58,7 +63,7 @@ class ConnectionPoolArgs:
|
|
|
58
63
|
@pulumi.getter(name="poolName")
|
|
59
64
|
def pool_name(self) -> pulumi.Input[str]:
|
|
60
65
|
"""
|
|
61
|
-
|
|
66
|
+
Name of the pool. Changing this property forces recreation of the resource.
|
|
62
67
|
"""
|
|
63
68
|
return pulumi.get(self, "pool_name")
|
|
64
69
|
|
|
@@ -70,7 +75,7 @@ class ConnectionPoolArgs:
|
|
|
70
75
|
@pulumi.getter
|
|
71
76
|
def project(self) -> pulumi.Input[str]:
|
|
72
77
|
"""
|
|
73
|
-
|
|
78
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
74
79
|
"""
|
|
75
80
|
return pulumi.get(self, "project")
|
|
76
81
|
|
|
@@ -82,7 +87,7 @@ class ConnectionPoolArgs:
|
|
|
82
87
|
@pulumi.getter(name="serviceName")
|
|
83
88
|
def service_name(self) -> pulumi.Input[str]:
|
|
84
89
|
"""
|
|
85
|
-
|
|
90
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
86
91
|
"""
|
|
87
92
|
return pulumi.get(self, "service_name")
|
|
88
93
|
|
|
@@ -94,7 +99,7 @@ class ConnectionPoolArgs:
|
|
|
94
99
|
@pulumi.getter(name="poolMode")
|
|
95
100
|
def pool_mode(self) -> Optional[pulumi.Input[str]]:
|
|
96
101
|
"""
|
|
97
|
-
The mode
|
|
102
|
+
The [operational mode](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling#pooling-modes). The possible values are `session`, `transaction` and `statement`. The default value is `transaction`.
|
|
98
103
|
"""
|
|
99
104
|
return pulumi.get(self, "pool_mode")
|
|
100
105
|
|
|
@@ -106,7 +111,7 @@ class ConnectionPoolArgs:
|
|
|
106
111
|
@pulumi.getter(name="poolSize")
|
|
107
112
|
def pool_size(self) -> Optional[pulumi.Input[int]]:
|
|
108
113
|
"""
|
|
109
|
-
The number of connections
|
|
114
|
+
The number of PostgreSQL server connections this pool can use at a time. This does not affect the number of incoming connections. Each pool can handle a minimum of 5000 client connections. The default value is `10`.
|
|
110
115
|
"""
|
|
111
116
|
return pulumi.get(self, "pool_size")
|
|
112
117
|
|
|
@@ -140,13 +145,13 @@ class _ConnectionPoolState:
|
|
|
140
145
|
username: Optional[pulumi.Input[str]] = None):
|
|
141
146
|
"""
|
|
142
147
|
Input properties used for looking up and filtering ConnectionPool resources.
|
|
143
|
-
:param pulumi.Input[str] connection_uri: The URI for connecting to the pool
|
|
144
|
-
:param pulumi.Input[str] database_name: The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference.
|
|
145
|
-
:param pulumi.Input[str] pool_mode: The mode
|
|
146
|
-
:param pulumi.Input[str] pool_name:
|
|
147
|
-
:param pulumi.Input[int] pool_size: The number of connections
|
|
148
|
-
:param pulumi.Input[str] project:
|
|
149
|
-
:param pulumi.Input[str] service_name:
|
|
148
|
+
:param pulumi.Input[str] connection_uri: The URI for connecting to the pool.
|
|
149
|
+
:param pulumi.Input[str] database_name: The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
150
|
+
:param pulumi.Input[str] pool_mode: The [operational mode](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling#pooling-modes). The possible values are `session`, `transaction` and `statement`. The default value is `transaction`.
|
|
151
|
+
:param pulumi.Input[str] pool_name: Name of the pool. Changing this property forces recreation of the resource.
|
|
152
|
+
:param pulumi.Input[int] pool_size: The number of PostgreSQL server connections this pool can use at a time. This does not affect the number of incoming connections. Each pool can handle a minimum of 5000 client connections. The default value is `10`.
|
|
153
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
154
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
150
155
|
:param pulumi.Input[str] username: 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.
|
|
151
156
|
"""
|
|
152
157
|
if connection_uri is not None:
|
|
@@ -170,7 +175,7 @@ class _ConnectionPoolState:
|
|
|
170
175
|
@pulumi.getter(name="connectionUri")
|
|
171
176
|
def connection_uri(self) -> Optional[pulumi.Input[str]]:
|
|
172
177
|
"""
|
|
173
|
-
The URI for connecting to the pool
|
|
178
|
+
The URI for connecting to the pool.
|
|
174
179
|
"""
|
|
175
180
|
return pulumi.get(self, "connection_uri")
|
|
176
181
|
|
|
@@ -182,7 +187,7 @@ class _ConnectionPoolState:
|
|
|
182
187
|
@pulumi.getter(name="databaseName")
|
|
183
188
|
def database_name(self) -> Optional[pulumi.Input[str]]:
|
|
184
189
|
"""
|
|
185
|
-
The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference.
|
|
190
|
+
The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
186
191
|
"""
|
|
187
192
|
return pulumi.get(self, "database_name")
|
|
188
193
|
|
|
@@ -194,7 +199,7 @@ class _ConnectionPoolState:
|
|
|
194
199
|
@pulumi.getter(name="poolMode")
|
|
195
200
|
def pool_mode(self) -> Optional[pulumi.Input[str]]:
|
|
196
201
|
"""
|
|
197
|
-
The mode
|
|
202
|
+
The [operational mode](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling#pooling-modes). The possible values are `session`, `transaction` and `statement`. The default value is `transaction`.
|
|
198
203
|
"""
|
|
199
204
|
return pulumi.get(self, "pool_mode")
|
|
200
205
|
|
|
@@ -206,7 +211,7 @@ class _ConnectionPoolState:
|
|
|
206
211
|
@pulumi.getter(name="poolName")
|
|
207
212
|
def pool_name(self) -> Optional[pulumi.Input[str]]:
|
|
208
213
|
"""
|
|
209
|
-
|
|
214
|
+
Name of the pool. Changing this property forces recreation of the resource.
|
|
210
215
|
"""
|
|
211
216
|
return pulumi.get(self, "pool_name")
|
|
212
217
|
|
|
@@ -218,7 +223,7 @@ class _ConnectionPoolState:
|
|
|
218
223
|
@pulumi.getter(name="poolSize")
|
|
219
224
|
def pool_size(self) -> Optional[pulumi.Input[int]]:
|
|
220
225
|
"""
|
|
221
|
-
The number of connections
|
|
226
|
+
The number of PostgreSQL server connections this pool can use at a time. This does not affect the number of incoming connections. Each pool can handle a minimum of 5000 client connections. The default value is `10`.
|
|
222
227
|
"""
|
|
223
228
|
return pulumi.get(self, "pool_size")
|
|
224
229
|
|
|
@@ -230,7 +235,7 @@ class _ConnectionPoolState:
|
|
|
230
235
|
@pulumi.getter
|
|
231
236
|
def project(self) -> Optional[pulumi.Input[str]]:
|
|
232
237
|
"""
|
|
233
|
-
|
|
238
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
234
239
|
"""
|
|
235
240
|
return pulumi.get(self, "project")
|
|
236
241
|
|
|
@@ -242,7 +247,7 @@ class _ConnectionPoolState:
|
|
|
242
247
|
@pulumi.getter(name="serviceName")
|
|
243
248
|
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
244
249
|
"""
|
|
245
|
-
|
|
250
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
246
251
|
"""
|
|
247
252
|
return pulumi.get(self, "service_name")
|
|
248
253
|
|
|
@@ -277,40 +282,38 @@ class ConnectionPool(pulumi.CustomResource):
|
|
|
277
282
|
username: Optional[pulumi.Input[str]] = None,
|
|
278
283
|
__props__=None):
|
|
279
284
|
"""
|
|
280
|
-
|
|
285
|
+
Creates and manages a [connection pool](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling) in an Aiven for PostgreSQL® service.
|
|
281
286
|
|
|
282
287
|
## Example Usage
|
|
283
288
|
|
|
284
|
-
<!--Start PulumiCodeChooser -->
|
|
285
289
|
```python
|
|
286
290
|
import pulumi
|
|
287
291
|
import pulumi_aiven as aiven
|
|
288
292
|
|
|
289
|
-
|
|
290
|
-
project=
|
|
291
|
-
service_name=
|
|
292
|
-
database_name=
|
|
293
|
+
main = aiven.ConnectionPool("main",
|
|
294
|
+
project=example_project["project"],
|
|
295
|
+
service_name=example_postgres["serviceName"],
|
|
296
|
+
database_name=main_aiven_pg_database["databaseName"],
|
|
293
297
|
pool_mode="transaction",
|
|
294
|
-
pool_name="
|
|
298
|
+
pool_name="example-pool",
|
|
295
299
|
pool_size=10,
|
|
296
|
-
username=
|
|
300
|
+
username=example_user["username"])
|
|
297
301
|
```
|
|
298
|
-
<!--End PulumiCodeChooser -->
|
|
299
302
|
|
|
300
303
|
## Import
|
|
301
304
|
|
|
302
305
|
```sh
|
|
303
|
-
$ pulumi import aiven:index/connectionPool:ConnectionPool
|
|
306
|
+
$ pulumi import aiven:index/connectionPool:ConnectionPool main PROJECT/SERVICE_NAME/POOL_NAME
|
|
304
307
|
```
|
|
305
308
|
|
|
306
309
|
:param str resource_name: The name of the resource.
|
|
307
310
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
308
|
-
:param pulumi.Input[str] database_name: The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference.
|
|
309
|
-
:param pulumi.Input[str] pool_mode: The mode
|
|
310
|
-
:param pulumi.Input[str] pool_name:
|
|
311
|
-
:param pulumi.Input[int] pool_size: The number of connections
|
|
312
|
-
:param pulumi.Input[str] project:
|
|
313
|
-
:param pulumi.Input[str] service_name:
|
|
311
|
+
:param pulumi.Input[str] database_name: The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
312
|
+
:param pulumi.Input[str] pool_mode: The [operational mode](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling#pooling-modes). The possible values are `session`, `transaction` and `statement`. The default value is `transaction`.
|
|
313
|
+
:param pulumi.Input[str] pool_name: Name of the pool. Changing this property forces recreation of the resource.
|
|
314
|
+
:param pulumi.Input[int] pool_size: The number of PostgreSQL server connections this pool can use at a time. This does not affect the number of incoming connections. Each pool can handle a minimum of 5000 client connections. The default value is `10`.
|
|
315
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
316
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
314
317
|
:param pulumi.Input[str] username: 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.
|
|
315
318
|
"""
|
|
316
319
|
...
|
|
@@ -320,30 +323,28 @@ class ConnectionPool(pulumi.CustomResource):
|
|
|
320
323
|
args: ConnectionPoolArgs,
|
|
321
324
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
322
325
|
"""
|
|
323
|
-
|
|
326
|
+
Creates and manages a [connection pool](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling) in an Aiven for PostgreSQL® service.
|
|
324
327
|
|
|
325
328
|
## Example Usage
|
|
326
329
|
|
|
327
|
-
<!--Start PulumiCodeChooser -->
|
|
328
330
|
```python
|
|
329
331
|
import pulumi
|
|
330
332
|
import pulumi_aiven as aiven
|
|
331
333
|
|
|
332
|
-
|
|
333
|
-
project=
|
|
334
|
-
service_name=
|
|
335
|
-
database_name=
|
|
334
|
+
main = aiven.ConnectionPool("main",
|
|
335
|
+
project=example_project["project"],
|
|
336
|
+
service_name=example_postgres["serviceName"],
|
|
337
|
+
database_name=main_aiven_pg_database["databaseName"],
|
|
336
338
|
pool_mode="transaction",
|
|
337
|
-
pool_name="
|
|
339
|
+
pool_name="example-pool",
|
|
338
340
|
pool_size=10,
|
|
339
|
-
username=
|
|
341
|
+
username=example_user["username"])
|
|
340
342
|
```
|
|
341
|
-
<!--End PulumiCodeChooser -->
|
|
342
343
|
|
|
343
344
|
## Import
|
|
344
345
|
|
|
345
346
|
```sh
|
|
346
|
-
$ pulumi import aiven:index/connectionPool:ConnectionPool
|
|
347
|
+
$ pulumi import aiven:index/connectionPool:ConnectionPool main PROJECT/SERVICE_NAME/POOL_NAME
|
|
347
348
|
```
|
|
348
349
|
|
|
349
350
|
:param str resource_name: The name of the resource.
|
|
@@ -420,13 +421,13 @@ class ConnectionPool(pulumi.CustomResource):
|
|
|
420
421
|
:param str resource_name: The unique name of the resulting resource.
|
|
421
422
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
422
423
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
423
|
-
:param pulumi.Input[str] connection_uri: The URI for connecting to the pool
|
|
424
|
-
:param pulumi.Input[str] database_name: The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference.
|
|
425
|
-
:param pulumi.Input[str] pool_mode: The mode
|
|
426
|
-
:param pulumi.Input[str] pool_name:
|
|
427
|
-
:param pulumi.Input[int] pool_size: The number of connections
|
|
428
|
-
:param pulumi.Input[str] project:
|
|
429
|
-
:param pulumi.Input[str] service_name:
|
|
424
|
+
:param pulumi.Input[str] connection_uri: The URI for connecting to the pool.
|
|
425
|
+
:param pulumi.Input[str] database_name: The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
426
|
+
:param pulumi.Input[str] pool_mode: The [operational mode](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling#pooling-modes). The possible values are `session`, `transaction` and `statement`. The default value is `transaction`.
|
|
427
|
+
:param pulumi.Input[str] pool_name: Name of the pool. Changing this property forces recreation of the resource.
|
|
428
|
+
:param pulumi.Input[int] pool_size: The number of PostgreSQL server connections this pool can use at a time. This does not affect the number of incoming connections. Each pool can handle a minimum of 5000 client connections. The default value is `10`.
|
|
429
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
430
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
430
431
|
:param pulumi.Input[str] username: 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.
|
|
431
432
|
"""
|
|
432
433
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -447,7 +448,7 @@ class ConnectionPool(pulumi.CustomResource):
|
|
|
447
448
|
@pulumi.getter(name="connectionUri")
|
|
448
449
|
def connection_uri(self) -> pulumi.Output[str]:
|
|
449
450
|
"""
|
|
450
|
-
The URI for connecting to the pool
|
|
451
|
+
The URI for connecting to the pool.
|
|
451
452
|
"""
|
|
452
453
|
return pulumi.get(self, "connection_uri")
|
|
453
454
|
|
|
@@ -455,7 +456,7 @@ class ConnectionPool(pulumi.CustomResource):
|
|
|
455
456
|
@pulumi.getter(name="databaseName")
|
|
456
457
|
def database_name(self) -> pulumi.Output[str]:
|
|
457
458
|
"""
|
|
458
|
-
The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference.
|
|
459
|
+
The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
459
460
|
"""
|
|
460
461
|
return pulumi.get(self, "database_name")
|
|
461
462
|
|
|
@@ -463,7 +464,7 @@ class ConnectionPool(pulumi.CustomResource):
|
|
|
463
464
|
@pulumi.getter(name="poolMode")
|
|
464
465
|
def pool_mode(self) -> pulumi.Output[Optional[str]]:
|
|
465
466
|
"""
|
|
466
|
-
The mode
|
|
467
|
+
The [operational mode](https://aiven.io/docs/products/postgresql/concepts/pg-connection-pooling#pooling-modes). The possible values are `session`, `transaction` and `statement`. The default value is `transaction`.
|
|
467
468
|
"""
|
|
468
469
|
return pulumi.get(self, "pool_mode")
|
|
469
470
|
|
|
@@ -471,7 +472,7 @@ class ConnectionPool(pulumi.CustomResource):
|
|
|
471
472
|
@pulumi.getter(name="poolName")
|
|
472
473
|
def pool_name(self) -> pulumi.Output[str]:
|
|
473
474
|
"""
|
|
474
|
-
|
|
475
|
+
Name of the pool. Changing this property forces recreation of the resource.
|
|
475
476
|
"""
|
|
476
477
|
return pulumi.get(self, "pool_name")
|
|
477
478
|
|
|
@@ -479,7 +480,7 @@ class ConnectionPool(pulumi.CustomResource):
|
|
|
479
480
|
@pulumi.getter(name="poolSize")
|
|
480
481
|
def pool_size(self) -> pulumi.Output[Optional[int]]:
|
|
481
482
|
"""
|
|
482
|
-
The number of connections
|
|
483
|
+
The number of PostgreSQL server connections this pool can use at a time. This does not affect the number of incoming connections. Each pool can handle a minimum of 5000 client connections. The default value is `10`.
|
|
483
484
|
"""
|
|
484
485
|
return pulumi.get(self, "pool_size")
|
|
485
486
|
|
|
@@ -487,7 +488,7 @@ class ConnectionPool(pulumi.CustomResource):
|
|
|
487
488
|
@pulumi.getter
|
|
488
489
|
def project(self) -> pulumi.Output[str]:
|
|
489
490
|
"""
|
|
490
|
-
|
|
491
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
491
492
|
"""
|
|
492
493
|
return pulumi.get(self, "project")
|
|
493
494
|
|
|
@@ -495,7 +496,7 @@ class ConnectionPool(pulumi.CustomResource):
|
|
|
495
496
|
@pulumi.getter(name="serviceName")
|
|
496
497
|
def service_name(self) -> pulumi.Output[str]:
|
|
497
498
|
"""
|
|
498
|
-
|
|
499
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
499
500
|
"""
|
|
500
501
|
return pulumi.get(self, "service_name")
|
|
501
502
|
|