pulumi-aiven 6.13.0a1709702245__py3-none-any.whl → 6.31.0a1736831339__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.

Files changed (168) hide show
  1. pulumi_aiven/__init__.py +127 -0
  2. pulumi_aiven/_inputs.py +32826 -13922
  3. pulumi_aiven/_utilities.py +41 -5
  4. pulumi_aiven/account.py +34 -43
  5. pulumi_aiven/account_authentication.py +24 -9
  6. pulumi_aiven/account_team.py +37 -12
  7. pulumi_aiven/account_team_member.py +48 -35
  8. pulumi_aiven/account_team_project.py +42 -25
  9. pulumi_aiven/alloydbomni.py +1335 -0
  10. pulumi_aiven/alloydbomni_database.py +347 -0
  11. pulumi_aiven/alloydbomni_user.py +433 -0
  12. pulumi_aiven/aws_privatelink.py +44 -39
  13. pulumi_aiven/aws_vpc_peering_connection.py +72 -57
  14. pulumi_aiven/azure_privatelink.py +54 -49
  15. pulumi_aiven/azure_privatelink_connection_approval.py +136 -33
  16. pulumi_aiven/azure_vpc_peering_connection.py +86 -73
  17. pulumi_aiven/billing_group.py +33 -30
  18. pulumi_aiven/cassandra.py +145 -122
  19. pulumi_aiven/cassandra_user.py +59 -54
  20. pulumi_aiven/clickhouse.py +133 -110
  21. pulumi_aiven/clickhouse_database.py +58 -58
  22. pulumi_aiven/clickhouse_grant.py +135 -130
  23. pulumi_aiven/clickhouse_role.py +36 -45
  24. pulumi_aiven/clickhouse_user.py +50 -45
  25. pulumi_aiven/config/__init__.pyi +5 -0
  26. pulumi_aiven/config/vars.py +5 -0
  27. pulumi_aiven/connection_pool.py +67 -62
  28. pulumi_aiven/dragonfly.py +1256 -0
  29. pulumi_aiven/flink.py +104 -100
  30. pulumi_aiven/flink_application.py +58 -51
  31. pulumi_aiven/flink_application_deployment.py +178 -73
  32. pulumi_aiven/flink_application_version.py +179 -96
  33. pulumi_aiven/gcp_privatelink.py +69 -42
  34. pulumi_aiven/gcp_privatelink_connection_approval.py +78 -49
  35. pulumi_aiven/gcp_vpc_peering_connection.py +49 -44
  36. pulumi_aiven/get_account.py +20 -5
  37. pulumi_aiven/get_account_authentication.py +31 -5
  38. pulumi_aiven/get_account_team.py +18 -5
  39. pulumi_aiven/get_account_team_member.py +29 -14
  40. pulumi_aiven/get_account_team_project.py +19 -6
  41. pulumi_aiven/get_alloydbomni.py +499 -0
  42. pulumi_aiven/get_alloydbomni_database.py +168 -0
  43. pulumi_aiven/get_alloydbomni_user.py +210 -0
  44. pulumi_aiven/get_aws_privatelink.py +33 -20
  45. pulumi_aiven/get_aws_vpc_peering_connection.py +56 -29
  46. pulumi_aiven/get_azure_privatelink.py +37 -22
  47. pulumi_aiven/get_azure_vpc_peering_connection.py +77 -28
  48. pulumi_aiven/get_billing_group.py +31 -8
  49. pulumi_aiven/get_cassanda.py +55 -19
  50. pulumi_aiven/get_cassandra.py +55 -19
  51. pulumi_aiven/get_cassandra_user.py +42 -26
  52. pulumi_aiven/get_clickhouse.py +55 -19
  53. pulumi_aiven/get_clickhouse_database.py +35 -22
  54. pulumi_aiven/get_clickhouse_user.py +40 -25
  55. pulumi_aiven/get_connection_pool.py +43 -26
  56. pulumi_aiven/get_dragonfly.py +499 -0
  57. pulumi_aiven/get_external_identity.py +160 -0
  58. pulumi_aiven/get_flink.py +55 -19
  59. pulumi_aiven/get_flink_application.py +44 -27
  60. pulumi_aiven/get_flink_application_version.py +55 -33
  61. pulumi_aiven/get_gcp_privatelink.py +63 -7
  62. pulumi_aiven/get_gcp_vpc_peering_connection.py +39 -24
  63. pulumi_aiven/get_grafana.py +55 -19
  64. pulumi_aiven/get_influx_db.py +41 -5
  65. pulumi_aiven/get_influxdb_database.py +18 -5
  66. pulumi_aiven/get_influxdb_user.py +21 -5
  67. pulumi_aiven/get_kafka.py +59 -21
  68. pulumi_aiven/get_kafka_acl.py +50 -33
  69. pulumi_aiven/get_kafka_connect.py +54 -32
  70. pulumi_aiven/get_kafka_connector.py +44 -24
  71. pulumi_aiven/get_kafka_mirror_maker.py +50 -28
  72. pulumi_aiven/get_kafka_schema.py +35 -19
  73. pulumi_aiven/get_kafka_schema_configuration.py +32 -17
  74. pulumi_aiven/get_kafka_schema_registry_acl.py +37 -20
  75. pulumi_aiven/get_kafka_topic.py +70 -25
  76. pulumi_aiven/get_kafka_user.py +42 -26
  77. pulumi_aiven/get_m3_aggregator.py +51 -15
  78. pulumi_aiven/get_m3_db.py +55 -19
  79. pulumi_aiven/get_m3db_user.py +38 -24
  80. pulumi_aiven/get_mirror_maker_replication_flow.py +86 -21
  81. pulumi_aiven/get_my_sql.py +50 -14
  82. pulumi_aiven/get_mysql_database.py +31 -18
  83. pulumi_aiven/get_mysql_user.py +36 -19
  84. pulumi_aiven/get_open_search.py +50 -14
  85. pulumi_aiven/get_open_search_acl_config.py +27 -15
  86. pulumi_aiven/get_open_search_acl_rule.py +37 -21
  87. pulumi_aiven/get_opensearch_security_plugin_config.py +29 -15
  88. pulumi_aiven/get_opensearch_user.py +32 -18
  89. pulumi_aiven/get_organization.py +25 -13
  90. pulumi_aiven/get_organization_application_user.py +176 -0
  91. pulumi_aiven/get_organization_user.py +18 -5
  92. pulumi_aiven/get_organization_user_group.py +48 -14
  93. pulumi_aiven/get_organization_user_list.py +121 -0
  94. pulumi_aiven/get_organizational_unit.py +26 -14
  95. pulumi_aiven/get_pg.py +55 -19
  96. pulumi_aiven/get_pg_database.py +39 -24
  97. pulumi_aiven/get_pg_user.py +44 -27
  98. pulumi_aiven/get_project.py +43 -22
  99. pulumi_aiven/get_project_user.py +27 -15
  100. pulumi_aiven/get_project_vpc.py +31 -19
  101. pulumi_aiven/get_redis.py +50 -14
  102. pulumi_aiven/get_redis_user.py +40 -22
  103. pulumi_aiven/get_service_component.py +40 -18
  104. pulumi_aiven/get_service_integration.py +163 -49
  105. pulumi_aiven/get_service_integration_endpoint.py +128 -33
  106. pulumi_aiven/get_thanos.py +499 -0
  107. pulumi_aiven/get_transit_gateway_vpc_attachment.py +35 -18
  108. pulumi_aiven/get_valkey.py +499 -0
  109. pulumi_aiven/get_valkey_user.py +218 -0
  110. pulumi_aiven/grafana.py +188 -318
  111. pulumi_aiven/influx_db.py +127 -90
  112. pulumi_aiven/influxdb_database.py +40 -55
  113. pulumi_aiven/influxdb_user.py +47 -42
  114. pulumi_aiven/kafka.py +157 -140
  115. pulumi_aiven/kafka_acl.py +64 -53
  116. pulumi_aiven/kafka_connect.py +201 -328
  117. pulumi_aiven/kafka_connector.py +67 -56
  118. pulumi_aiven/kafka_mirror_maker.py +139 -318
  119. pulumi_aiven/kafka_native_acl.py +588 -0
  120. pulumi_aiven/kafka_schema.py +65 -56
  121. pulumi_aiven/kafka_schema_configuration.py +25 -20
  122. pulumi_aiven/kafka_schema_registry_acl.py +80 -35
  123. pulumi_aiven/kafka_topic.py +184 -65
  124. pulumi_aiven/kafka_user.py +59 -54
  125. pulumi_aiven/m3_aggregator.py +176 -308
  126. pulumi_aiven/m3_db.py +190 -322
  127. pulumi_aiven/m3db_user.py +51 -46
  128. pulumi_aiven/mirror_maker_replication_flow.py +217 -53
  129. pulumi_aiven/my_sql.py +190 -322
  130. pulumi_aiven/mysql_database.py +32 -47
  131. pulumi_aiven/mysql_user.py +37 -32
  132. pulumi_aiven/open_search.py +128 -105
  133. pulumi_aiven/open_search_acl_config.py +33 -32
  134. pulumi_aiven/open_search_acl_rule.py +55 -50
  135. pulumi_aiven/opensearch_security_plugin_config.py +69 -16
  136. pulumi_aiven/opensearch_user.py +30 -25
  137. pulumi_aiven/organization.py +18 -13
  138. pulumi_aiven/organization_application_user.py +345 -0
  139. pulumi_aiven/organization_application_user_token.py +711 -0
  140. pulumi_aiven/organization_group_project.py +349 -0
  141. pulumi_aiven/organization_permission.py +421 -0
  142. pulumi_aiven/organization_user.py +25 -46
  143. pulumi_aiven/organization_user_group.py +64 -23
  144. pulumi_aiven/organization_user_group_member.py +359 -0
  145. pulumi_aiven/organizational_unit.py +41 -32
  146. pulumi_aiven/outputs.py +38509 -21612
  147. pulumi_aiven/pg.py +92 -88
  148. pulumi_aiven/pg_database.py +52 -67
  149. pulumi_aiven/pg_user.py +80 -61
  150. pulumi_aiven/project.py +111 -102
  151. pulumi_aiven/project_user.py +44 -31
  152. pulumi_aiven/project_vpc.py +58 -29
  153. pulumi_aiven/provider.py +5 -0
  154. pulumi_aiven/pulumi-plugin.json +2 -1
  155. pulumi_aiven/redis.py +163 -295
  156. pulumi_aiven/redis_user.py +58 -53
  157. pulumi_aiven/service_integration.py +511 -161
  158. pulumi_aiven/service_integration_endpoint.py +466 -158
  159. pulumi_aiven/static_ip.py +21 -16
  160. pulumi_aiven/thanos.py +1262 -0
  161. pulumi_aiven/transit_gateway_vpc_attachment.py +44 -54
  162. pulumi_aiven/valkey.py +1256 -0
  163. pulumi_aiven/valkey_user.py +606 -0
  164. {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/METADATA +7 -6
  165. pulumi_aiven-6.31.0a1736831339.dist-info/RECORD +169 -0
  166. {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/WHEEL +1 -1
  167. pulumi_aiven-6.13.0a1709702245.dist-info/RECORD +0 -146
  168. {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.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 clickhouse user.
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
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
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 clickhouse user is required
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
- Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
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 actual name of the Clickhouse user. This property cannot be changed, doing so forces recreation of the resource.
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 clickhouse user.
104
+ UUID of the ClickHouse user.
100
105
  """
101
106
  return pulumi.get(self, "uuid")
102
107
 
@@ -121,7 +126,7 @@ 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
- The Clickhouse User data source provides information about the existing Aiven Clickhouse User.
129
+ Gets information about a ClickHouse user.
125
130
 
126
131
  ## Example Usage
127
132
 
@@ -129,15 +134,15 @@ def get_clickhouse_user(project: Optional[str] = None,
129
134
  import pulumi
130
135
  import pulumi_aiven as aiven
131
136
 
132
- ch_user = aiven.get_clickhouse_user(project=aiven_project["myproject"]["project"],
133
- service_name=aiven_clickhouse["myservice"]["service_name"],
134
- username="<USERNAME>")
137
+ example_user = aiven.get_clickhouse_user(project=example_project["project"],
138
+ service_name=example_clickhouse["serviceName"],
139
+ username="analyst")
135
140
  ```
136
141
 
137
142
 
138
- :param str project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
139
- :param str service_name: Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
140
- :param str username: The actual name of the Clickhouse user. This property cannot be changed, doing so forces recreation of the resource.
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.
141
146
  """
142
147
  __args__ = dict()
143
148
  __args__['project'] = project
@@ -154,15 +159,12 @@ def get_clickhouse_user(project: Optional[str] = None,
154
159
  service_name=pulumi.get(__ret__, 'service_name'),
155
160
  username=pulumi.get(__ret__, 'username'),
156
161
  uuid=pulumi.get(__ret__, 'uuid'))
157
-
158
-
159
- @_utilities.lift_output_func(get_clickhouse_user)
160
162
  def get_clickhouse_user_output(project: Optional[pulumi.Input[str]] = None,
161
163
  service_name: Optional[pulumi.Input[str]] = None,
162
164
  username: Optional[pulumi.Input[str]] = None,
163
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClickhouseUserResult]:
165
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClickhouseUserResult]:
164
166
  """
165
- The Clickhouse User data source provides information about the existing Aiven Clickhouse User.
167
+ Gets information about a ClickHouse user.
166
168
 
167
169
  ## Example Usage
168
170
 
@@ -170,14 +172,27 @@ def get_clickhouse_user_output(project: Optional[pulumi.Input[str]] = None,
170
172
  import pulumi
171
173
  import pulumi_aiven as aiven
172
174
 
173
- ch_user = aiven.get_clickhouse_user(project=aiven_project["myproject"]["project"],
174
- service_name=aiven_clickhouse["myservice"]["service_name"],
175
- username="<USERNAME>")
175
+ example_user = aiven.get_clickhouse_user(project=example_project["project"],
176
+ service_name=example_clickhouse["serviceName"],
177
+ username="analyst")
176
178
  ```
177
179
 
178
180
 
179
- :param str project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
180
- :param str service_name: Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
181
- :param str username: The actual name of the Clickhouse user. This property cannot be changed, doing so forces recreation of the resource.
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.
182
184
  """
183
- ...
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. This property cannot be changed, doing so forces recreation of the resource.
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 the pool operates in. The possible values are `session`, `transaction` and `statement`. The default value is `transaction`.
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
- The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
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 the pool may create towards the backend server. This does not affect the number of incoming connections, which is always a much larger number. The default value is `10`.
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
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
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
- Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
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,7 +150,7 @@ 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
- The Connection Pool data source provides information about the existing Aiven Connection Pool.
153
+ Gets information about a connection pool in an Aiven for PostgreSQL® service.
149
154
 
150
155
  ## Example Usage
151
156
 
@@ -153,15 +158,15 @@ def get_connection_pool(pool_name: Optional[str] = None,
153
158
  import pulumi
154
159
  import pulumi_aiven as aiven
155
160
 
156
- mytestpool = aiven.get_connection_pool(project=aiven_project["myproject"]["project"],
157
- service_name=aiven_pg["mypg"]["service_name"],
158
- pool_name="mypool")
161
+ main = aiven.get_connection_pool(project=example_project["project"],
162
+ service_name=example_postgres["serviceName"],
163
+ pool_name="example-pool")
159
164
  ```
160
165
 
161
166
 
162
- :param str pool_name: The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
163
- :param str project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
164
- :param str service_name: Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
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.
165
170
  """
166
171
  __args__ = dict()
167
172
  __args__['poolName'] = pool_name
@@ -180,15 +185,12 @@ def get_connection_pool(pool_name: Optional[str] = None,
180
185
  project=pulumi.get(__ret__, 'project'),
181
186
  service_name=pulumi.get(__ret__, 'service_name'),
182
187
  username=pulumi.get(__ret__, 'username'))
183
-
184
-
185
- @_utilities.lift_output_func(get_connection_pool)
186
188
  def get_connection_pool_output(pool_name: Optional[pulumi.Input[str]] = None,
187
189
  project: Optional[pulumi.Input[str]] = None,
188
190
  service_name: Optional[pulumi.Input[str]] = None,
189
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetConnectionPoolResult]:
191
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetConnectionPoolResult]:
190
192
  """
191
- The Connection Pool data source provides information about the existing Aiven Connection Pool.
193
+ Gets information about a connection pool in an Aiven for PostgreSQL® service.
192
194
 
193
195
  ## Example Usage
194
196
 
@@ -196,14 +198,29 @@ def get_connection_pool_output(pool_name: Optional[pulumi.Input[str]] = None,
196
198
  import pulumi
197
199
  import pulumi_aiven as aiven
198
200
 
199
- mytestpool = aiven.get_connection_pool(project=aiven_project["myproject"]["project"],
200
- service_name=aiven_pg["mypg"]["service_name"],
201
- pool_name="mypool")
201
+ main = aiven.get_connection_pool(project=example_project["project"],
202
+ service_name=example_postgres["serviceName"],
203
+ pool_name="example-pool")
202
204
  ```
203
205
 
204
206
 
205
- :param str pool_name: The name of the created pool. This property cannot be changed, doing so forces recreation of the resource.
206
- :param str project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
207
- :param str service_name: Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
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.
208
210
  """
209
- ...
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')))