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
|
@@ -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__ = [
|
|
@@ -56,7 +61,7 @@ class GetClickhouseUserResult:
|
|
|
56
61
|
@pulumi.getter
|
|
57
62
|
def password(self) -> str:
|
|
58
63
|
"""
|
|
59
|
-
The password of the
|
|
64
|
+
The password of the ClickHouse user.
|
|
60
65
|
"""
|
|
61
66
|
return pulumi.get(self, "password")
|
|
62
67
|
|
|
@@ -64,7 +69,7 @@ class GetClickhouseUserResult:
|
|
|
64
69
|
@pulumi.getter
|
|
65
70
|
def project(self) -> str:
|
|
66
71
|
"""
|
|
67
|
-
|
|
72
|
+
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.
|
|
68
73
|
"""
|
|
69
74
|
return pulumi.get(self, "project")
|
|
70
75
|
|
|
@@ -72,7 +77,7 @@ class GetClickhouseUserResult:
|
|
|
72
77
|
@pulumi.getter
|
|
73
78
|
def required(self) -> bool:
|
|
74
79
|
"""
|
|
75
|
-
Indicates if a
|
|
80
|
+
Indicates if a ClickHouse user is required.
|
|
76
81
|
"""
|
|
77
82
|
return pulumi.get(self, "required")
|
|
78
83
|
|
|
@@ -80,7 +85,7 @@ class GetClickhouseUserResult:
|
|
|
80
85
|
@pulumi.getter(name="serviceName")
|
|
81
86
|
def service_name(self) -> str:
|
|
82
87
|
"""
|
|
83
|
-
|
|
88
|
+
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.
|
|
84
89
|
"""
|
|
85
90
|
return pulumi.get(self, "service_name")
|
|
86
91
|
|
|
@@ -88,7 +93,7 @@ class GetClickhouseUserResult:
|
|
|
88
93
|
@pulumi.getter
|
|
89
94
|
def username(self) -> str:
|
|
90
95
|
"""
|
|
91
|
-
The
|
|
96
|
+
The name of the ClickHouse user. Changing this property forces recreation of the resource.
|
|
92
97
|
"""
|
|
93
98
|
return pulumi.get(self, "username")
|
|
94
99
|
|
|
@@ -96,7 +101,7 @@ class GetClickhouseUserResult:
|
|
|
96
101
|
@pulumi.getter
|
|
97
102
|
def uuid(self) -> str:
|
|
98
103
|
"""
|
|
99
|
-
UUID of the
|
|
104
|
+
UUID of the ClickHouse user.
|
|
100
105
|
"""
|
|
101
106
|
return pulumi.get(self, "uuid")
|
|
102
107
|
|
|
@@ -121,25 +126,23 @@ def get_clickhouse_user(project: Optional[str] = None,
|
|
|
121
126
|
username: Optional[str] = None,
|
|
122
127
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetClickhouseUserResult:
|
|
123
128
|
"""
|
|
124
|
-
|
|
129
|
+
Gets information about a ClickHouse user.
|
|
125
130
|
|
|
126
131
|
## Example Usage
|
|
127
132
|
|
|
128
|
-
<!--Start PulumiCodeChooser -->
|
|
129
133
|
```python
|
|
130
134
|
import pulumi
|
|
131
135
|
import pulumi_aiven as aiven
|
|
132
136
|
|
|
133
|
-
|
|
134
|
-
service_name=
|
|
135
|
-
username="
|
|
137
|
+
example_user = aiven.get_clickhouse_user(project=example_project["project"],
|
|
138
|
+
service_name=example_clickhouse["serviceName"],
|
|
139
|
+
username="analyst")
|
|
136
140
|
```
|
|
137
|
-
<!--End PulumiCodeChooser -->
|
|
138
141
|
|
|
139
142
|
|
|
140
|
-
:param str project:
|
|
141
|
-
:param str service_name:
|
|
142
|
-
:param str username: The
|
|
143
|
+
:param 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.
|
|
144
|
+
:param 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.
|
|
145
|
+
:param str username: The name of the ClickHouse user. Changing this property forces recreation of the resource.
|
|
143
146
|
"""
|
|
144
147
|
__args__ = dict()
|
|
145
148
|
__args__['project'] = project
|
|
@@ -156,32 +159,40 @@ def get_clickhouse_user(project: Optional[str] = None,
|
|
|
156
159
|
service_name=pulumi.get(__ret__, 'service_name'),
|
|
157
160
|
username=pulumi.get(__ret__, 'username'),
|
|
158
161
|
uuid=pulumi.get(__ret__, 'uuid'))
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
@_utilities.lift_output_func(get_clickhouse_user)
|
|
162
162
|
def get_clickhouse_user_output(project: Optional[pulumi.Input[str]] = None,
|
|
163
163
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
164
164
|
username: Optional[pulumi.Input[str]] = None,
|
|
165
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClickhouseUserResult]:
|
|
165
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClickhouseUserResult]:
|
|
166
166
|
"""
|
|
167
|
-
|
|
167
|
+
Gets information about a ClickHouse user.
|
|
168
168
|
|
|
169
169
|
## Example Usage
|
|
170
170
|
|
|
171
|
-
<!--Start PulumiCodeChooser -->
|
|
172
171
|
```python
|
|
173
172
|
import pulumi
|
|
174
173
|
import pulumi_aiven as aiven
|
|
175
174
|
|
|
176
|
-
|
|
177
|
-
service_name=
|
|
178
|
-
username="
|
|
175
|
+
example_user = aiven.get_clickhouse_user(project=example_project["project"],
|
|
176
|
+
service_name=example_clickhouse["serviceName"],
|
|
177
|
+
username="analyst")
|
|
179
178
|
```
|
|
180
|
-
<!--End PulumiCodeChooser -->
|
|
181
179
|
|
|
182
180
|
|
|
183
|
-
:param str project:
|
|
184
|
-
:param str service_name:
|
|
185
|
-
:param str username: The
|
|
181
|
+
:param 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.
|
|
182
|
+
:param 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.
|
|
183
|
+
:param str username: The name of the ClickHouse user. Changing this property forces recreation of the resource.
|
|
186
184
|
"""
|
|
187
|
-
|
|
185
|
+
__args__ = dict()
|
|
186
|
+
__args__['project'] = project
|
|
187
|
+
__args__['serviceName'] = service_name
|
|
188
|
+
__args__['username'] = username
|
|
189
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
190
|
+
__ret__ = pulumi.runtime.invoke_output('aiven:index/getClickhouseUser:getClickhouseUser', __args__, opts=opts, typ=GetClickhouseUserResult)
|
|
191
|
+
return __ret__.apply(lambda __response__: GetClickhouseUserResult(
|
|
192
|
+
id=pulumi.get(__response__, 'id'),
|
|
193
|
+
password=pulumi.get(__response__, 'password'),
|
|
194
|
+
project=pulumi.get(__response__, 'project'),
|
|
195
|
+
required=pulumi.get(__response__, 'required'),
|
|
196
|
+
service_name=pulumi.get(__response__, 'service_name'),
|
|
197
|
+
username=pulumi.get(__response__, 'username'),
|
|
198
|
+
uuid=pulumi.get(__response__, 'uuid')))
|
|
@@ -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__ = [
|
|
@@ -54,7 +59,7 @@ class GetConnectionPoolResult:
|
|
|
54
59
|
@pulumi.getter(name="connectionUri")
|
|
55
60
|
def connection_uri(self) -> str:
|
|
56
61
|
"""
|
|
57
|
-
The URI for connecting to the pool
|
|
62
|
+
The URI for connecting to the pool.
|
|
58
63
|
"""
|
|
59
64
|
return pulumi.get(self, "connection_uri")
|
|
60
65
|
|
|
@@ -62,7 +67,7 @@ class GetConnectionPoolResult:
|
|
|
62
67
|
@pulumi.getter(name="databaseName")
|
|
63
68
|
def database_name(self) -> str:
|
|
64
69
|
"""
|
|
65
|
-
The name of the database the pool connects to. To set up proper dependencies please refer to this variable as a reference.
|
|
70
|
+
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.
|
|
66
71
|
"""
|
|
67
72
|
return pulumi.get(self, "database_name")
|
|
68
73
|
|
|
@@ -78,7 +83,7 @@ class GetConnectionPoolResult:
|
|
|
78
83
|
@pulumi.getter(name="poolMode")
|
|
79
84
|
def pool_mode(self) -> str:
|
|
80
85
|
"""
|
|
81
|
-
The mode
|
|
86
|
+
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`.
|
|
82
87
|
"""
|
|
83
88
|
return pulumi.get(self, "pool_mode")
|
|
84
89
|
|
|
@@ -86,7 +91,7 @@ class GetConnectionPoolResult:
|
|
|
86
91
|
@pulumi.getter(name="poolName")
|
|
87
92
|
def pool_name(self) -> str:
|
|
88
93
|
"""
|
|
89
|
-
|
|
94
|
+
Name of the pool. Changing this property forces recreation of the resource.
|
|
90
95
|
"""
|
|
91
96
|
return pulumi.get(self, "pool_name")
|
|
92
97
|
|
|
@@ -94,7 +99,7 @@ class GetConnectionPoolResult:
|
|
|
94
99
|
@pulumi.getter(name="poolSize")
|
|
95
100
|
def pool_size(self) -> int:
|
|
96
101
|
"""
|
|
97
|
-
The number of connections
|
|
102
|
+
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`.
|
|
98
103
|
"""
|
|
99
104
|
return pulumi.get(self, "pool_size")
|
|
100
105
|
|
|
@@ -102,7 +107,7 @@ class GetConnectionPoolResult:
|
|
|
102
107
|
@pulumi.getter
|
|
103
108
|
def project(self) -> str:
|
|
104
109
|
"""
|
|
105
|
-
|
|
110
|
+
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.
|
|
106
111
|
"""
|
|
107
112
|
return pulumi.get(self, "project")
|
|
108
113
|
|
|
@@ -110,7 +115,7 @@ class GetConnectionPoolResult:
|
|
|
110
115
|
@pulumi.getter(name="serviceName")
|
|
111
116
|
def service_name(self) -> str:
|
|
112
117
|
"""
|
|
113
|
-
|
|
118
|
+
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.
|
|
114
119
|
"""
|
|
115
120
|
return pulumi.get(self, "service_name")
|
|
116
121
|
|
|
@@ -145,25 +150,23 @@ def get_connection_pool(pool_name: Optional[str] = None,
|
|
|
145
150
|
service_name: Optional[str] = None,
|
|
146
151
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetConnectionPoolResult:
|
|
147
152
|
"""
|
|
148
|
-
|
|
153
|
+
Gets information about a connection pool in an Aiven for PostgreSQL® service.
|
|
149
154
|
|
|
150
155
|
## Example Usage
|
|
151
156
|
|
|
152
|
-
<!--Start PulumiCodeChooser -->
|
|
153
157
|
```python
|
|
154
158
|
import pulumi
|
|
155
159
|
import pulumi_aiven as aiven
|
|
156
160
|
|
|
157
|
-
|
|
158
|
-
service_name=
|
|
159
|
-
pool_name="
|
|
161
|
+
main = aiven.get_connection_pool(project=example_project["project"],
|
|
162
|
+
service_name=example_postgres["serviceName"],
|
|
163
|
+
pool_name="example-pool")
|
|
160
164
|
```
|
|
161
|
-
<!--End PulumiCodeChooser -->
|
|
162
165
|
|
|
163
166
|
|
|
164
|
-
:param str pool_name:
|
|
165
|
-
:param str project:
|
|
166
|
-
:param str service_name:
|
|
167
|
+
:param str pool_name: Name of the pool. Changing this property forces recreation of the resource.
|
|
168
|
+
:param 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.
|
|
169
|
+
:param 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.
|
|
167
170
|
"""
|
|
168
171
|
__args__ = dict()
|
|
169
172
|
__args__['poolName'] = pool_name
|
|
@@ -182,32 +185,42 @@ def get_connection_pool(pool_name: Optional[str] = None,
|
|
|
182
185
|
project=pulumi.get(__ret__, 'project'),
|
|
183
186
|
service_name=pulumi.get(__ret__, 'service_name'),
|
|
184
187
|
username=pulumi.get(__ret__, 'username'))
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
@_utilities.lift_output_func(get_connection_pool)
|
|
188
188
|
def get_connection_pool_output(pool_name: Optional[pulumi.Input[str]] = None,
|
|
189
189
|
project: Optional[pulumi.Input[str]] = None,
|
|
190
190
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
191
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetConnectionPoolResult]:
|
|
191
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetConnectionPoolResult]:
|
|
192
192
|
"""
|
|
193
|
-
|
|
193
|
+
Gets information about a connection pool in an Aiven for PostgreSQL® service.
|
|
194
194
|
|
|
195
195
|
## Example Usage
|
|
196
196
|
|
|
197
|
-
<!--Start PulumiCodeChooser -->
|
|
198
197
|
```python
|
|
199
198
|
import pulumi
|
|
200
199
|
import pulumi_aiven as aiven
|
|
201
200
|
|
|
202
|
-
|
|
203
|
-
service_name=
|
|
204
|
-
pool_name="
|
|
201
|
+
main = aiven.get_connection_pool(project=example_project["project"],
|
|
202
|
+
service_name=example_postgres["serviceName"],
|
|
203
|
+
pool_name="example-pool")
|
|
205
204
|
```
|
|
206
|
-
<!--End PulumiCodeChooser -->
|
|
207
205
|
|
|
208
206
|
|
|
209
|
-
:param str pool_name:
|
|
210
|
-
:param str project:
|
|
211
|
-
:param str service_name:
|
|
207
|
+
:param str pool_name: Name of the pool. Changing this property forces recreation of the resource.
|
|
208
|
+
:param 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.
|
|
209
|
+
:param 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.
|
|
212
210
|
"""
|
|
213
|
-
|
|
211
|
+
__args__ = dict()
|
|
212
|
+
__args__['poolName'] = pool_name
|
|
213
|
+
__args__['project'] = project
|
|
214
|
+
__args__['serviceName'] = service_name
|
|
215
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
216
|
+
__ret__ = pulumi.runtime.invoke_output('aiven:index/getConnectionPool:getConnectionPool', __args__, opts=opts, typ=GetConnectionPoolResult)
|
|
217
|
+
return __ret__.apply(lambda __response__: GetConnectionPoolResult(
|
|
218
|
+
connection_uri=pulumi.get(__response__, 'connection_uri'),
|
|
219
|
+
database_name=pulumi.get(__response__, 'database_name'),
|
|
220
|
+
id=pulumi.get(__response__, 'id'),
|
|
221
|
+
pool_mode=pulumi.get(__response__, 'pool_mode'),
|
|
222
|
+
pool_name=pulumi.get(__response__, 'pool_name'),
|
|
223
|
+
pool_size=pulumi.get(__response__, 'pool_size'),
|
|
224
|
+
project=pulumi.get(__response__, 'project'),
|
|
225
|
+
service_name=pulumi.get(__response__, 'service_name'),
|
|
226
|
+
username=pulumi.get(__response__, 'username')))
|