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.

Files changed (168) hide show
  1. pulumi_aiven/__init__.py +127 -0
  2. pulumi_aiven/_inputs.py +32615 -13711
  3. pulumi_aiven/_utilities.py +41 -5
  4. pulumi_aiven/account.py +32 -45
  5. pulumi_aiven/account_authentication.py +24 -9
  6. pulumi_aiven/account_team.py +35 -14
  7. pulumi_aiven/account_team_member.py +48 -39
  8. pulumi_aiven/account_team_project.py +40 -27
  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 -43
  13. pulumi_aiven/aws_vpc_peering_connection.py +72 -61
  14. pulumi_aiven/azure_privatelink.py +54 -53
  15. pulumi_aiven/azure_privatelink_connection_approval.py +136 -33
  16. pulumi_aiven/azure_vpc_peering_connection.py +86 -77
  17. pulumi_aiven/billing_group.py +33 -34
  18. pulumi_aiven/cassandra.py +145 -126
  19. pulumi_aiven/cassandra_user.py +59 -58
  20. pulumi_aiven/clickhouse.py +133 -114
  21. pulumi_aiven/clickhouse_database.py +58 -62
  22. pulumi_aiven/clickhouse_grant.py +135 -134
  23. pulumi_aiven/clickhouse_role.py +36 -49
  24. pulumi_aiven/clickhouse_user.py +50 -49
  25. pulumi_aiven/config/__init__.pyi +5 -0
  26. pulumi_aiven/config/vars.py +5 -0
  27. pulumi_aiven/connection_pool.py +67 -66
  28. pulumi_aiven/dragonfly.py +1256 -0
  29. pulumi_aiven/flink.py +104 -104
  30. pulumi_aiven/flink_application.py +58 -55
  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 -48
  36. pulumi_aiven/get_account.py +20 -9
  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 -24
  45. pulumi_aiven/get_aws_vpc_peering_connection.py +56 -33
  46. pulumi_aiven/get_azure_privatelink.py +37 -26
  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 -23
  50. pulumi_aiven/get_cassandra.py +55 -23
  51. pulumi_aiven/get_cassandra_user.py +42 -30
  52. pulumi_aiven/get_clickhouse.py +55 -23
  53. pulumi_aiven/get_clickhouse_database.py +35 -26
  54. pulumi_aiven/get_clickhouse_user.py +40 -29
  55. pulumi_aiven/get_connection_pool.py +43 -30
  56. pulumi_aiven/get_dragonfly.py +499 -0
  57. pulumi_aiven/get_external_identity.py +160 -0
  58. pulumi_aiven/get_flink.py +55 -23
  59. pulumi_aiven/get_flink_application.py +44 -31
  60. pulumi_aiven/get_flink_application_version.py +55 -37
  61. pulumi_aiven/get_gcp_privatelink.py +63 -7
  62. pulumi_aiven/get_gcp_vpc_peering_connection.py +39 -28
  63. pulumi_aiven/get_grafana.py +55 -23
  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 -25
  68. pulumi_aiven/get_kafka_acl.py +50 -37
  69. pulumi_aiven/get_kafka_connect.py +54 -36
  70. pulumi_aiven/get_kafka_connector.py +44 -28
  71. pulumi_aiven/get_kafka_mirror_maker.py +50 -32
  72. pulumi_aiven/get_kafka_schema.py +35 -23
  73. pulumi_aiven/get_kafka_schema_configuration.py +32 -21
  74. pulumi_aiven/get_kafka_schema_registry_acl.py +37 -20
  75. pulumi_aiven/get_kafka_topic.py +70 -29
  76. pulumi_aiven/get_kafka_user.py +42 -30
  77. pulumi_aiven/get_m3_aggregator.py +51 -19
  78. pulumi_aiven/get_m3_db.py +55 -23
  79. pulumi_aiven/get_m3db_user.py +38 -28
  80. pulumi_aiven/get_mirror_maker_replication_flow.py +86 -25
  81. pulumi_aiven/get_my_sql.py +50 -18
  82. pulumi_aiven/get_mysql_database.py +31 -22
  83. pulumi_aiven/get_mysql_user.py +36 -23
  84. pulumi_aiven/get_open_search.py +50 -18
  85. pulumi_aiven/get_open_search_acl_config.py +27 -19
  86. pulumi_aiven/get_open_search_acl_rule.py +37 -25
  87. pulumi_aiven/get_opensearch_security_plugin_config.py +29 -19
  88. pulumi_aiven/get_opensearch_user.py +32 -22
  89. pulumi_aiven/get_organization.py +25 -17
  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 -23
  96. pulumi_aiven/get_pg_database.py +39 -28
  97. pulumi_aiven/get_pg_user.py +44 -31
  98. pulumi_aiven/get_project.py +43 -26
  99. pulumi_aiven/get_project_user.py +27 -19
  100. pulumi_aiven/get_project_vpc.py +31 -23
  101. pulumi_aiven/get_redis.py +50 -18
  102. pulumi_aiven/get_redis_user.py +40 -26
  103. pulumi_aiven/get_service_component.py +40 -22
  104. pulumi_aiven/get_service_integration.py +163 -53
  105. pulumi_aiven/get_service_integration_endpoint.py +128 -37
  106. pulumi_aiven/get_thanos.py +499 -0
  107. pulumi_aiven/get_transit_gateway_vpc_attachment.py +35 -22
  108. pulumi_aiven/get_valkey.py +499 -0
  109. pulumi_aiven/get_valkey_user.py +218 -0
  110. pulumi_aiven/grafana.py +188 -322
  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 -144
  115. pulumi_aiven/kafka_acl.py +64 -57
  116. pulumi_aiven/kafka_connect.py +201 -332
  117. pulumi_aiven/kafka_connector.py +67 -60
  118. pulumi_aiven/kafka_mirror_maker.py +137 -320
  119. pulumi_aiven/kafka_native_acl.py +588 -0
  120. pulumi_aiven/kafka_schema.py +63 -58
  121. pulumi_aiven/kafka_schema_configuration.py +25 -24
  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 -58
  125. pulumi_aiven/m3_aggregator.py +174 -310
  126. pulumi_aiven/m3_db.py +190 -326
  127. pulumi_aiven/m3db_user.py +51 -50
  128. pulumi_aiven/mirror_maker_replication_flow.py +215 -55
  129. pulumi_aiven/my_sql.py +188 -324
  130. pulumi_aiven/mysql_database.py +32 -51
  131. pulumi_aiven/mysql_user.py +37 -36
  132. pulumi_aiven/open_search.py +126 -107
  133. pulumi_aiven/open_search_acl_config.py +33 -36
  134. pulumi_aiven/open_search_acl_rule.py +55 -54
  135. pulumi_aiven/opensearch_security_plugin_config.py +69 -16
  136. pulumi_aiven/opensearch_user.py +30 -29
  137. pulumi_aiven/organization.py +18 -17
  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 -36
  146. pulumi_aiven/outputs.py +38355 -21458
  147. pulumi_aiven/pg.py +92 -88
  148. pulumi_aiven/pg_database.py +52 -71
  149. pulumi_aiven/pg_user.py +80 -65
  150. pulumi_aiven/project.py +111 -102
  151. pulumi_aiven/project_user.py +44 -35
  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 +161 -297
  156. pulumi_aiven/redis_user.py +58 -57
  157. pulumi_aiven/service_integration.py +511 -165
  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 -58
  162. pulumi_aiven/valkey.py +1256 -0
  163. pulumi_aiven/valkey_user.py +606 -0
  164. {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.dist-info}/METADATA +7 -6
  165. pulumi_aiven-6.31.0a1736849214.dist-info/RECORD +169 -0
  166. {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.dist-info}/WHEEL +1 -1
  167. pulumi_aiven-6.13.0a1710156545.dist-info/RECORD +0 -146
  168. {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.dist-info}/top_level.txt +0 -0
pulumi_aiven/pg_user.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__ = ['PgUserArgs', 'PgUser']
@@ -21,11 +26,11 @@ class PgUserArgs:
21
26
  pg_allow_replication: Optional[pulumi.Input[bool]] = None):
22
27
  """
23
28
  The set of arguments for constructing a PgUser resource.
24
- :param pulumi.Input[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.
25
- :param pulumi.Input[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.
26
- :param pulumi.Input[str] username: The actual name of the PG User. 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.
27
- :param pulumi.Input[str] password: The password of the PG User (not applicable for all services).
28
- :param pulumi.Input[bool] pg_allow_replication: Defines whether replication is allowed.
29
+ :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.
30
+ :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.
31
+ :param pulumi.Input[str] username: The name of the service user for this service. 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] password: The password of the service user.
33
+ :param pulumi.Input[bool] pg_allow_replication: Allows replication. For the default avnadmin user this attribute is required and is always `true`.
29
34
  """
30
35
  pulumi.set(__self__, "project", project)
31
36
  pulumi.set(__self__, "service_name", service_name)
@@ -39,7 +44,7 @@ class PgUserArgs:
39
44
  @pulumi.getter
40
45
  def project(self) -> pulumi.Input[str]:
41
46
  """
42
- 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.
47
+ 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.
43
48
  """
44
49
  return pulumi.get(self, "project")
45
50
 
@@ -51,7 +56,7 @@ class PgUserArgs:
51
56
  @pulumi.getter(name="serviceName")
52
57
  def service_name(self) -> pulumi.Input[str]:
53
58
  """
54
- 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.
59
+ 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.
55
60
  """
56
61
  return pulumi.get(self, "service_name")
57
62
 
@@ -63,7 +68,7 @@ class PgUserArgs:
63
68
  @pulumi.getter
64
69
  def username(self) -> pulumi.Input[str]:
65
70
  """
66
- The actual name of the PG User. 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.
71
+ The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
67
72
  """
68
73
  return pulumi.get(self, "username")
69
74
 
@@ -75,7 +80,7 @@ class PgUserArgs:
75
80
  @pulumi.getter
76
81
  def password(self) -> Optional[pulumi.Input[str]]:
77
82
  """
78
- The password of the PG User (not applicable for all services).
83
+ The password of the service user.
79
84
  """
80
85
  return pulumi.get(self, "password")
81
86
 
@@ -87,7 +92,7 @@ class PgUserArgs:
87
92
  @pulumi.getter(name="pgAllowReplication")
88
93
  def pg_allow_replication(self) -> Optional[pulumi.Input[bool]]:
89
94
  """
90
- Defines whether replication is allowed.
95
+ Allows replication. For the default avnadmin user this attribute is required and is always `true`.
91
96
  """
92
97
  return pulumi.get(self, "pg_allow_replication")
93
98
 
@@ -109,14 +114,14 @@ class _PgUserState:
109
114
  username: Optional[pulumi.Input[str]] = None):
110
115
  """
111
116
  Input properties used for looking up and filtering PgUser resources.
112
- :param pulumi.Input[str] access_cert: Access certificate for the user
113
- :param pulumi.Input[str] access_key: Access certificate key for the user
114
- :param pulumi.Input[str] password: The password of the PG User (not applicable for all services).
115
- :param pulumi.Input[bool] pg_allow_replication: Defines whether replication is allowed.
116
- :param pulumi.Input[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.
117
- :param pulumi.Input[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.
118
- :param pulumi.Input[str] type: Type of the user account. Tells whether the user is the primary account or a regular account.
119
- :param pulumi.Input[str] username: The actual name of the PG User. 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.
117
+ :param pulumi.Input[str] access_cert: The access certificate for the servie user.
118
+ :param pulumi.Input[str] access_key: The access certificate key for the service user.
119
+ :param pulumi.Input[str] password: The password of the service user.
120
+ :param pulumi.Input[bool] pg_allow_replication: Allows replication. For the default avnadmin user this attribute is required and is always `true`.
121
+ :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.
122
+ :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.
123
+ :param pulumi.Input[str] type: The service user account type, either primary or regular.
124
+ :param pulumi.Input[str] username: The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
120
125
  """
121
126
  if access_cert is not None:
122
127
  pulumi.set(__self__, "access_cert", access_cert)
@@ -139,7 +144,7 @@ class _PgUserState:
139
144
  @pulumi.getter(name="accessCert")
140
145
  def access_cert(self) -> Optional[pulumi.Input[str]]:
141
146
  """
142
- Access certificate for the user
147
+ The access certificate for the servie user.
143
148
  """
144
149
  return pulumi.get(self, "access_cert")
145
150
 
@@ -151,7 +156,7 @@ class _PgUserState:
151
156
  @pulumi.getter(name="accessKey")
152
157
  def access_key(self) -> Optional[pulumi.Input[str]]:
153
158
  """
154
- Access certificate key for the user
159
+ The access certificate key for the service user.
155
160
  """
156
161
  return pulumi.get(self, "access_key")
157
162
 
@@ -163,7 +168,7 @@ class _PgUserState:
163
168
  @pulumi.getter
164
169
  def password(self) -> Optional[pulumi.Input[str]]:
165
170
  """
166
- The password of the PG User (not applicable for all services).
171
+ The password of the service user.
167
172
  """
168
173
  return pulumi.get(self, "password")
169
174
 
@@ -175,7 +180,7 @@ class _PgUserState:
175
180
  @pulumi.getter(name="pgAllowReplication")
176
181
  def pg_allow_replication(self) -> Optional[pulumi.Input[bool]]:
177
182
  """
178
- Defines whether replication is allowed.
183
+ Allows replication. For the default avnadmin user this attribute is required and is always `true`.
179
184
  """
180
185
  return pulumi.get(self, "pg_allow_replication")
181
186
 
@@ -187,7 +192,7 @@ class _PgUserState:
187
192
  @pulumi.getter
188
193
  def project(self) -> Optional[pulumi.Input[str]]:
189
194
  """
190
- 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.
195
+ 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.
191
196
  """
192
197
  return pulumi.get(self, "project")
193
198
 
@@ -199,7 +204,7 @@ class _PgUserState:
199
204
  @pulumi.getter(name="serviceName")
200
205
  def service_name(self) -> Optional[pulumi.Input[str]]:
201
206
  """
202
- 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
+ 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.
203
208
  """
204
209
  return pulumi.get(self, "service_name")
205
210
 
@@ -211,7 +216,7 @@ class _PgUserState:
211
216
  @pulumi.getter
212
217
  def type(self) -> Optional[pulumi.Input[str]]:
213
218
  """
214
- Type of the user account. Tells whether the user is the primary account or a regular account.
219
+ The service user account type, either primary or regular.
215
220
  """
216
221
  return pulumi.get(self, "type")
217
222
 
@@ -223,7 +228,7 @@ class _PgUserState:
223
228
  @pulumi.getter
224
229
  def username(self) -> Optional[pulumi.Input[str]]:
225
230
  """
226
- The actual name of the PG User. 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.
231
+ The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
227
232
  """
228
233
  return pulumi.get(self, "username")
229
234
 
@@ -244,36 +249,41 @@ class PgUser(pulumi.CustomResource):
244
249
  username: Optional[pulumi.Input[str]] = None,
245
250
  __props__=None):
246
251
  """
247
- The PG User resource allows the creation and management of Aiven PG Users.
252
+ Creates and manages an Aiven for PostgreSQL® service user.
248
253
 
249
254
  ## Example Usage
250
255
 
251
- <!--Start PulumiCodeChooser -->
252
256
  ```python
253
257
  import pulumi
254
258
  import pulumi_aiven as aiven
255
259
 
256
- foo = aiven.PgUser("foo",
257
- service_name=aiven_pg["bar"]["service_name"],
258
- project="my-project",
259
- username="user-1",
260
- password="Test$1234")
260
+ example_user = aiven.PgUser("example_user",
261
+ service_name=example_postgres["serviceName"],
262
+ project=example_project["project"],
263
+ username="example-service-user",
264
+ password=service_user_password)
265
+ # Each service has a default admin user with the username avnadmin.
266
+ admin_user = aiven.PgUser("admin_user",
267
+ service_name=example_postgres["serviceName"],
268
+ project=example_project["project"],
269
+ username="avnadmin",
270
+ password=service_user_password,
271
+ pg_allow_replication=True)
261
272
  ```
262
- <!--End PulumiCodeChooser -->
263
273
 
264
274
  ## Import
265
275
 
266
276
  ```sh
267
- $ pulumi import aiven:index/pgUser:PgUser user project/service_name/username
277
+ $ pulumi import aiven:index/pgUser:PgUser example_user PROJECT/SERVICE_NAME/USERNAME
268
278
  ```
269
279
 
270
280
  :param str resource_name: The name of the resource.
271
281
  :param pulumi.ResourceOptions opts: Options for the resource.
272
- :param pulumi.Input[str] password: The password of the PG User (not applicable for all services).
273
- :param pulumi.Input[bool] pg_allow_replication: Defines whether replication is allowed.
274
- :param pulumi.Input[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.
275
- :param pulumi.Input[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.
276
- :param pulumi.Input[str] username: The actual name of the PG User. 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.
282
+ :param pulumi.Input[str] password: The password of the service user.
283
+ :param pulumi.Input[bool] pg_allow_replication: Allows replication. For the default avnadmin user this attribute is required and is always `true`.
284
+ :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.
285
+ :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.
286
+ :param pulumi.Input[str] username: The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
277
287
  """
278
288
  ...
279
289
  @overload
@@ -282,27 +292,32 @@ class PgUser(pulumi.CustomResource):
282
292
  args: PgUserArgs,
283
293
  opts: Optional[pulumi.ResourceOptions] = None):
284
294
  """
285
- The PG User resource allows the creation and management of Aiven PG Users.
295
+ Creates and manages an Aiven for PostgreSQL® service user.
286
296
 
287
297
  ## Example Usage
288
298
 
289
- <!--Start PulumiCodeChooser -->
290
299
  ```python
291
300
  import pulumi
292
301
  import pulumi_aiven as aiven
293
302
 
294
- foo = aiven.PgUser("foo",
295
- service_name=aiven_pg["bar"]["service_name"],
296
- project="my-project",
297
- username="user-1",
298
- password="Test$1234")
303
+ example_user = aiven.PgUser("example_user",
304
+ service_name=example_postgres["serviceName"],
305
+ project=example_project["project"],
306
+ username="example-service-user",
307
+ password=service_user_password)
308
+ # Each service has a default admin user with the username avnadmin.
309
+ admin_user = aiven.PgUser("admin_user",
310
+ service_name=example_postgres["serviceName"],
311
+ project=example_project["project"],
312
+ username="avnadmin",
313
+ password=service_user_password,
314
+ pg_allow_replication=True)
299
315
  ```
300
- <!--End PulumiCodeChooser -->
301
316
 
302
317
  ## Import
303
318
 
304
319
  ```sh
305
- $ pulumi import aiven:index/pgUser:PgUser user project/service_name/username
320
+ $ pulumi import aiven:index/pgUser:PgUser example_user PROJECT/SERVICE_NAME/USERNAME
306
321
  ```
307
322
 
308
323
  :param str resource_name: The name of the resource.
@@ -375,14 +390,14 @@ class PgUser(pulumi.CustomResource):
375
390
  :param str resource_name: The unique name of the resulting resource.
376
391
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
377
392
  :param pulumi.ResourceOptions opts: Options for the resource.
378
- :param pulumi.Input[str] access_cert: Access certificate for the user
379
- :param pulumi.Input[str] access_key: Access certificate key for the user
380
- :param pulumi.Input[str] password: The password of the PG User (not applicable for all services).
381
- :param pulumi.Input[bool] pg_allow_replication: Defines whether replication is allowed.
382
- :param pulumi.Input[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.
383
- :param pulumi.Input[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.
384
- :param pulumi.Input[str] type: Type of the user account. Tells whether the user is the primary account or a regular account.
385
- :param pulumi.Input[str] username: The actual name of the PG User. 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.
393
+ :param pulumi.Input[str] access_cert: The access certificate for the servie user.
394
+ :param pulumi.Input[str] access_key: The access certificate key for the service user.
395
+ :param pulumi.Input[str] password: The password of the service user.
396
+ :param pulumi.Input[bool] pg_allow_replication: Allows replication. For the default avnadmin user this attribute is required and is always `true`.
397
+ :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.
398
+ :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.
399
+ :param pulumi.Input[str] type: The service user account type, either primary or regular.
400
+ :param pulumi.Input[str] username: The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
386
401
  """
387
402
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
388
403
 
@@ -402,7 +417,7 @@ class PgUser(pulumi.CustomResource):
402
417
  @pulumi.getter(name="accessCert")
403
418
  def access_cert(self) -> pulumi.Output[str]:
404
419
  """
405
- Access certificate for the user
420
+ The access certificate for the servie user.
406
421
  """
407
422
  return pulumi.get(self, "access_cert")
408
423
 
@@ -410,7 +425,7 @@ class PgUser(pulumi.CustomResource):
410
425
  @pulumi.getter(name="accessKey")
411
426
  def access_key(self) -> pulumi.Output[str]:
412
427
  """
413
- Access certificate key for the user
428
+ The access certificate key for the service user.
414
429
  """
415
430
  return pulumi.get(self, "access_key")
416
431
 
@@ -418,7 +433,7 @@ class PgUser(pulumi.CustomResource):
418
433
  @pulumi.getter
419
434
  def password(self) -> pulumi.Output[str]:
420
435
  """
421
- The password of the PG User (not applicable for all services).
436
+ The password of the service user.
422
437
  """
423
438
  return pulumi.get(self, "password")
424
439
 
@@ -426,7 +441,7 @@ class PgUser(pulumi.CustomResource):
426
441
  @pulumi.getter(name="pgAllowReplication")
427
442
  def pg_allow_replication(self) -> pulumi.Output[Optional[bool]]:
428
443
  """
429
- Defines whether replication is allowed.
444
+ Allows replication. For the default avnadmin user this attribute is required and is always `true`.
430
445
  """
431
446
  return pulumi.get(self, "pg_allow_replication")
432
447
 
@@ -434,7 +449,7 @@ class PgUser(pulumi.CustomResource):
434
449
  @pulumi.getter
435
450
  def project(self) -> pulumi.Output[str]:
436
451
  """
437
- 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.
452
+ 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.
438
453
  """
439
454
  return pulumi.get(self, "project")
440
455
 
@@ -442,7 +457,7 @@ class PgUser(pulumi.CustomResource):
442
457
  @pulumi.getter(name="serviceName")
443
458
  def service_name(self) -> pulumi.Output[str]:
444
459
  """
445
- 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.
460
+ 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.
446
461
  """
447
462
  return pulumi.get(self, "service_name")
448
463
 
@@ -450,7 +465,7 @@ class PgUser(pulumi.CustomResource):
450
465
  @pulumi.getter
451
466
  def type(self) -> pulumi.Output[str]:
452
467
  """
453
- Type of the user account. Tells whether the user is the primary account or a regular account.
468
+ The service user account type, either primary or regular.
454
469
  """
455
470
  return pulumi.get(self, "type")
456
471
 
@@ -458,7 +473,7 @@ class PgUser(pulumi.CustomResource):
458
473
  @pulumi.getter
459
474
  def username(self) -> pulumi.Output[str]:
460
475
  """
461
- The actual name of the PG User. 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.
476
+ The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
462
477
  """
463
478
  return pulumi.get(self, "username")
464
479