pulumi-aiven 6.13.0a1709702245__py3-none-any.whl → 6.31.0__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 (169) hide show
  1. pulumi_aiven/__init__.py +136 -0
  2. pulumi_aiven/_inputs.py +32960 -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_quota.py +604 -0
  121. pulumi_aiven/kafka_schema.py +65 -56
  122. pulumi_aiven/kafka_schema_configuration.py +25 -20
  123. pulumi_aiven/kafka_schema_registry_acl.py +80 -35
  124. pulumi_aiven/kafka_topic.py +184 -65
  125. pulumi_aiven/kafka_user.py +59 -54
  126. pulumi_aiven/m3_aggregator.py +176 -308
  127. pulumi_aiven/m3_db.py +190 -322
  128. pulumi_aiven/m3db_user.py +51 -46
  129. pulumi_aiven/mirror_maker_replication_flow.py +217 -53
  130. pulumi_aiven/my_sql.py +190 -322
  131. pulumi_aiven/mysql_database.py +32 -47
  132. pulumi_aiven/mysql_user.py +37 -32
  133. pulumi_aiven/open_search.py +128 -105
  134. pulumi_aiven/open_search_acl_config.py +33 -32
  135. pulumi_aiven/open_search_acl_rule.py +55 -50
  136. pulumi_aiven/opensearch_security_plugin_config.py +69 -16
  137. pulumi_aiven/opensearch_user.py +30 -25
  138. pulumi_aiven/organization.py +18 -13
  139. pulumi_aiven/organization_application_user.py +345 -0
  140. pulumi_aiven/organization_application_user_token.py +711 -0
  141. pulumi_aiven/organization_group_project.py +349 -0
  142. pulumi_aiven/organization_permission.py +421 -0
  143. pulumi_aiven/organization_user.py +25 -46
  144. pulumi_aiven/organization_user_group.py +64 -23
  145. pulumi_aiven/organization_user_group_member.py +359 -0
  146. pulumi_aiven/organizational_unit.py +41 -32
  147. pulumi_aiven/outputs.py +38714 -21632
  148. pulumi_aiven/pg.py +92 -88
  149. pulumi_aiven/pg_database.py +52 -67
  150. pulumi_aiven/pg_user.py +80 -61
  151. pulumi_aiven/project.py +111 -102
  152. pulumi_aiven/project_user.py +44 -31
  153. pulumi_aiven/project_vpc.py +58 -29
  154. pulumi_aiven/provider.py +5 -0
  155. pulumi_aiven/pulumi-plugin.json +2 -1
  156. pulumi_aiven/redis.py +163 -295
  157. pulumi_aiven/redis_user.py +58 -53
  158. pulumi_aiven/service_integration.py +511 -161
  159. pulumi_aiven/service_integration_endpoint.py +466 -158
  160. pulumi_aiven/static_ip.py +21 -16
  161. pulumi_aiven/thanos.py +1262 -0
  162. pulumi_aiven/transit_gateway_vpc_attachment.py +44 -54
  163. pulumi_aiven/valkey.py +1256 -0
  164. pulumi_aiven/valkey_user.py +606 -0
  165. {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0.dist-info}/METADATA +7 -6
  166. pulumi_aiven-6.31.0.dist-info/RECORD +170 -0
  167. {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0.dist-info}/WHEEL +1 -1
  168. pulumi_aiven-6.13.0a1709702245.dist-info/RECORD +0 -146
  169. {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0.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,7 +249,7 @@ 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
 
@@ -252,26 +257,33 @@ class PgUser(pulumi.CustomResource):
252
257
  import pulumi
253
258
  import pulumi_aiven as aiven
254
259
 
255
- foo = aiven.PgUser("foo",
256
- service_name=aiven_pg["bar"]["service_name"],
257
- project="my-project",
258
- username="user-1",
259
- 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)
260
272
  ```
261
273
 
262
274
  ## Import
263
275
 
264
276
  ```sh
265
- $ pulumi import aiven:index/pgUser:PgUser user project/service_name/username
277
+ $ pulumi import aiven:index/pgUser:PgUser example_user PROJECT/SERVICE_NAME/USERNAME
266
278
  ```
267
279
 
268
280
  :param str resource_name: The name of the resource.
269
281
  :param pulumi.ResourceOptions opts: Options for the resource.
270
- :param pulumi.Input[str] password: The password of the PG User (not applicable for all services).
271
- :param pulumi.Input[bool] pg_allow_replication: Defines whether replication is allowed.
272
- :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.
273
- :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.
274
- :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.
275
287
  """
276
288
  ...
277
289
  @overload
@@ -280,7 +292,7 @@ class PgUser(pulumi.CustomResource):
280
292
  args: PgUserArgs,
281
293
  opts: Optional[pulumi.ResourceOptions] = None):
282
294
  """
283
- The PG User resource allows the creation and management of Aiven PG Users.
295
+ Creates and manages an Aiven for PostgreSQL® service user.
284
296
 
285
297
  ## Example Usage
286
298
 
@@ -288,17 +300,24 @@ class PgUser(pulumi.CustomResource):
288
300
  import pulumi
289
301
  import pulumi_aiven as aiven
290
302
 
291
- foo = aiven.PgUser("foo",
292
- service_name=aiven_pg["bar"]["service_name"],
293
- project="my-project",
294
- username="user-1",
295
- 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)
296
315
  ```
297
316
 
298
317
  ## Import
299
318
 
300
319
  ```sh
301
- $ pulumi import aiven:index/pgUser:PgUser user project/service_name/username
320
+ $ pulumi import aiven:index/pgUser:PgUser example_user PROJECT/SERVICE_NAME/USERNAME
302
321
  ```
303
322
 
304
323
  :param str resource_name: The name of the resource.
@@ -371,14 +390,14 @@ class PgUser(pulumi.CustomResource):
371
390
  :param str resource_name: The unique name of the resulting resource.
372
391
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
373
392
  :param pulumi.ResourceOptions opts: Options for the resource.
374
- :param pulumi.Input[str] access_cert: Access certificate for the user
375
- :param pulumi.Input[str] access_key: Access certificate key for the user
376
- :param pulumi.Input[str] password: The password of the PG User (not applicable for all services).
377
- :param pulumi.Input[bool] pg_allow_replication: Defines whether replication is allowed.
378
- :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.
379
- :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.
380
- :param pulumi.Input[str] type: Type of the user account. Tells whether the user is the primary account or a regular account.
381
- :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.
382
401
  """
383
402
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
384
403
 
@@ -398,7 +417,7 @@ class PgUser(pulumi.CustomResource):
398
417
  @pulumi.getter(name="accessCert")
399
418
  def access_cert(self) -> pulumi.Output[str]:
400
419
  """
401
- Access certificate for the user
420
+ The access certificate for the servie user.
402
421
  """
403
422
  return pulumi.get(self, "access_cert")
404
423
 
@@ -406,7 +425,7 @@ class PgUser(pulumi.CustomResource):
406
425
  @pulumi.getter(name="accessKey")
407
426
  def access_key(self) -> pulumi.Output[str]:
408
427
  """
409
- Access certificate key for the user
428
+ The access certificate key for the service user.
410
429
  """
411
430
  return pulumi.get(self, "access_key")
412
431
 
@@ -414,7 +433,7 @@ class PgUser(pulumi.CustomResource):
414
433
  @pulumi.getter
415
434
  def password(self) -> pulumi.Output[str]:
416
435
  """
417
- The password of the PG User (not applicable for all services).
436
+ The password of the service user.
418
437
  """
419
438
  return pulumi.get(self, "password")
420
439
 
@@ -422,7 +441,7 @@ class PgUser(pulumi.CustomResource):
422
441
  @pulumi.getter(name="pgAllowReplication")
423
442
  def pg_allow_replication(self) -> pulumi.Output[Optional[bool]]:
424
443
  """
425
- Defines whether replication is allowed.
444
+ Allows replication. For the default avnadmin user this attribute is required and is always `true`.
426
445
  """
427
446
  return pulumi.get(self, "pg_allow_replication")
428
447
 
@@ -430,7 +449,7 @@ class PgUser(pulumi.CustomResource):
430
449
  @pulumi.getter
431
450
  def project(self) -> pulumi.Output[str]:
432
451
  """
433
- 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.
434
453
  """
435
454
  return pulumi.get(self, "project")
436
455
 
@@ -438,7 +457,7 @@ class PgUser(pulumi.CustomResource):
438
457
  @pulumi.getter(name="serviceName")
439
458
  def service_name(self) -> pulumi.Output[str]:
440
459
  """
441
- 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.
442
461
  """
443
462
  return pulumi.get(self, "service_name")
444
463
 
@@ -446,7 +465,7 @@ class PgUser(pulumi.CustomResource):
446
465
  @pulumi.getter
447
466
  def type(self) -> pulumi.Output[str]:
448
467
  """
449
- 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.
450
469
  """
451
470
  return pulumi.get(self, "type")
452
471
 
@@ -454,7 +473,7 @@ class PgUser(pulumi.CustomResource):
454
473
  @pulumi.getter
455
474
  def username(self) -> pulumi.Output[str]:
456
475
  """
457
- 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.
458
477
  """
459
478
  return pulumi.get(self, "username")
460
479