pulumi-aiven 6.19.0a1721711612__py3-none-any.whl → 6.19.0a1721847551__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 +30 -0
- pulumi_aiven/_inputs.py +1863 -29
- pulumi_aiven/account_team.py +12 -4
- pulumi_aiven/account_team_member.py +4 -4
- pulumi_aiven/account_team_project.py +4 -4
- pulumi_aiven/clickhouse.py +22 -22
- pulumi_aiven/clickhouse_database.py +39 -19
- pulumi_aiven/clickhouse_grant.py +80 -82
- pulumi_aiven/clickhouse_role.py +17 -31
- pulumi_aiven/clickhouse_user.py +31 -31
- pulumi_aiven/flink.py +19 -19
- pulumi_aiven/flink_application.py +39 -39
- pulumi_aiven/flink_application_deployment.py +131 -57
- pulumi_aiven/flink_application_version.py +64 -56
- pulumi_aiven/get_clickhouse.py +8 -8
- pulumi_aiven/get_clickhouse_database.py +11 -11
- pulumi_aiven/get_clickhouse_user.py +14 -14
- pulumi_aiven/get_flink.py +7 -7
- pulumi_aiven/get_flink_application.py +16 -16
- pulumi_aiven/get_flink_application_version.py +22 -22
- pulumi_aiven/get_kafka_acl.py +22 -22
- pulumi_aiven/get_kafka_connect.py +6 -6
- pulumi_aiven/get_kafka_connector.py +13 -13
- pulumi_aiven/get_kafka_topic.py +2 -2
- pulumi_aiven/get_kafka_user.py +15 -15
- pulumi_aiven/get_thanos.py +449 -0
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +1 -1
- pulumi_aiven/get_valkey.py +469 -0
- pulumi_aiven/get_valkey_user.py +206 -0
- pulumi_aiven/kafka_acl.py +43 -39
- pulumi_aiven/kafka_connect.py +66 -14
- pulumi_aiven/kafka_connector.py +46 -40
- pulumi_aiven/kafka_schema_registry_acl.py +2 -2
- pulumi_aiven/kafka_topic.py +16 -16
- pulumi_aiven/kafka_user.py +40 -40
- pulumi_aiven/organization_application_user.py +12 -2
- pulumi_aiven/organization_application_user_token.py +7 -7
- pulumi_aiven/organization_group_project.py +9 -9
- pulumi_aiven/organization_user_group_member.py +13 -9
- pulumi_aiven/outputs.py +13290 -10153
- pulumi_aiven/pulumi-plugin.json +1 -1
- pulumi_aiven/thanos.py +1208 -0
- pulumi_aiven/transit_gateway_vpc_attachment.py +7 -16
- pulumi_aiven/valkey.py +1252 -0
- pulumi_aiven/valkey_user.py +513 -0
- {pulumi_aiven-6.19.0a1721711612.dist-info → pulumi_aiven-6.19.0a1721847551.dist-info}/METADATA +1 -1
- {pulumi_aiven-6.19.0a1721711612.dist-info → pulumi_aiven-6.19.0a1721847551.dist-info}/RECORD +49 -43
- {pulumi_aiven-6.19.0a1721711612.dist-info → pulumi_aiven-6.19.0a1721847551.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.19.0a1721711612.dist-info → pulumi_aiven-6.19.0a1721847551.dist-info}/top_level.txt +0 -0
pulumi_aiven/clickhouse_grant.py
CHANGED
|
@@ -26,9 +26,9 @@ class ClickhouseGrantArgs:
|
|
|
26
26
|
The set of arguments for constructing a ClickhouseGrant resource.
|
|
27
27
|
: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.
|
|
28
28
|
: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.
|
|
29
|
-
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseGrantPrivilegeGrantArgs']]] privilege_grants:
|
|
29
|
+
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseGrantPrivilegeGrantArgs']]] privilege_grants: Grant privileges. Changing this property forces recreation of the resource.
|
|
30
30
|
:param pulumi.Input[str] role: The role to grant privileges or roles 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[Sequence[pulumi.Input['ClickhouseGrantRoleGrantArgs']]] role_grants:
|
|
31
|
+
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseGrantRoleGrantArgs']]] role_grants: Grant roles. Changing this property forces recreation of the resource.
|
|
32
32
|
:param pulumi.Input[str] user: The user to grant privileges or roles to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
33
33
|
"""
|
|
34
34
|
pulumi.set(__self__, "project", project)
|
|
@@ -70,7 +70,7 @@ class ClickhouseGrantArgs:
|
|
|
70
70
|
@pulumi.getter(name="privilegeGrants")
|
|
71
71
|
def privilege_grants(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClickhouseGrantPrivilegeGrantArgs']]]]:
|
|
72
72
|
"""
|
|
73
|
-
|
|
73
|
+
Grant privileges. Changing this property forces recreation of the resource.
|
|
74
74
|
"""
|
|
75
75
|
return pulumi.get(self, "privilege_grants")
|
|
76
76
|
|
|
@@ -94,7 +94,7 @@ class ClickhouseGrantArgs:
|
|
|
94
94
|
@pulumi.getter(name="roleGrants")
|
|
95
95
|
def role_grants(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClickhouseGrantRoleGrantArgs']]]]:
|
|
96
96
|
"""
|
|
97
|
-
|
|
97
|
+
Grant roles. Changing this property forces recreation of the resource.
|
|
98
98
|
"""
|
|
99
99
|
return pulumi.get(self, "role_grants")
|
|
100
100
|
|
|
@@ -126,10 +126,10 @@ class _ClickhouseGrantState:
|
|
|
126
126
|
user: Optional[pulumi.Input[str]] = None):
|
|
127
127
|
"""
|
|
128
128
|
Input properties used for looking up and filtering ClickhouseGrant resources.
|
|
129
|
-
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseGrantPrivilegeGrantArgs']]] privilege_grants:
|
|
129
|
+
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseGrantPrivilegeGrantArgs']]] privilege_grants: Grant privileges. Changing this property forces recreation of the resource.
|
|
130
130
|
: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.
|
|
131
131
|
:param pulumi.Input[str] role: The role to grant privileges or roles to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
132
|
-
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseGrantRoleGrantArgs']]] role_grants:
|
|
132
|
+
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseGrantRoleGrantArgs']]] role_grants: Grant roles. Changing this property forces recreation of the resource.
|
|
133
133
|
: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.
|
|
134
134
|
:param pulumi.Input[str] user: The user to grant privileges or roles to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
135
135
|
"""
|
|
@@ -150,7 +150,7 @@ class _ClickhouseGrantState:
|
|
|
150
150
|
@pulumi.getter(name="privilegeGrants")
|
|
151
151
|
def privilege_grants(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClickhouseGrantPrivilegeGrantArgs']]]]:
|
|
152
152
|
"""
|
|
153
|
-
|
|
153
|
+
Grant privileges. Changing this property forces recreation of the resource.
|
|
154
154
|
"""
|
|
155
155
|
return pulumi.get(self, "privilege_grants")
|
|
156
156
|
|
|
@@ -186,7 +186,7 @@ class _ClickhouseGrantState:
|
|
|
186
186
|
@pulumi.getter(name="roleGrants")
|
|
187
187
|
def role_grants(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClickhouseGrantRoleGrantArgs']]]]:
|
|
188
188
|
"""
|
|
189
|
-
|
|
189
|
+
Grant roles. Changing this property forces recreation of the resource.
|
|
190
190
|
"""
|
|
191
191
|
return pulumi.get(self, "role_grants")
|
|
192
192
|
|
|
@@ -232,12 +232,12 @@ class ClickhouseGrant(pulumi.CustomResource):
|
|
|
232
232
|
user: Optional[pulumi.Input[str]] = None,
|
|
233
233
|
__props__=None):
|
|
234
234
|
"""
|
|
235
|
-
|
|
235
|
+
Creates and manages ClickHouse grants to give users and roles privileges to a ClickHouse service.
|
|
236
236
|
|
|
237
|
-
|
|
238
|
-
*
|
|
239
|
-
* To grant a privilege on all tables of a database,
|
|
240
|
-
*
|
|
237
|
+
**Note:**
|
|
238
|
+
* Users cannot have the same name as roles.
|
|
239
|
+
* To grant a privilege on all tables of a database, omit the table and only keep the database. Don't use `table="*"`.
|
|
240
|
+
* Changes first revoke all grants and then reissue the remaining grants for convergence.
|
|
241
241
|
|
|
242
242
|
## Example Usage
|
|
243
243
|
|
|
@@ -245,53 +245,52 @@ class ClickhouseGrant(pulumi.CustomResource):
|
|
|
245
245
|
import pulumi
|
|
246
246
|
import pulumi_aiven as aiven
|
|
247
247
|
|
|
248
|
-
|
|
249
|
-
project=
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
project=
|
|
255
|
-
service_name=
|
|
256
|
-
|
|
257
|
-
demo = aiven.ClickhouseRole("demo",
|
|
258
|
-
project=clickhouse.project,
|
|
259
|
-
service_name=clickhouse.service_name,
|
|
260
|
-
role="demo-role")
|
|
261
|
-
demo_role_grant = aiven.ClickhouseGrant("demo-role-grant",
|
|
262
|
-
project=clickhouse.project,
|
|
263
|
-
service_name=clickhouse.service_name,
|
|
264
|
-
role=demo.role,
|
|
248
|
+
example_role = aiven.ClickhouseRole("example_role",
|
|
249
|
+
project=example_project["project"],
|
|
250
|
+
service_name=example_clickhouse["serviceName"],
|
|
251
|
+
role="example-role")
|
|
252
|
+
# Grant privileges to the example role.
|
|
253
|
+
role_privileges = aiven.ClickhouseGrant("role_privileges",
|
|
254
|
+
project=example_project["project"],
|
|
255
|
+
service_name=example_clickhouse["serviceName"],
|
|
256
|
+
role=example_role.role,
|
|
265
257
|
privilege_grants=[
|
|
266
258
|
aiven.ClickhouseGrantPrivilegeGrantArgs(
|
|
267
259
|
privilege="INSERT",
|
|
268
|
-
database=
|
|
269
|
-
table="
|
|
260
|
+
database=example_db["name"],
|
|
261
|
+
table="example-table",
|
|
270
262
|
),
|
|
271
263
|
aiven.ClickhouseGrantPrivilegeGrantArgs(
|
|
272
264
|
privilege="SELECT",
|
|
273
|
-
database=
|
|
265
|
+
database=example_db["name"],
|
|
274
266
|
),
|
|
275
267
|
])
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
268
|
+
# Grant the role to the user.
|
|
269
|
+
example_user = aiven.ClickhouseUser("example_user",
|
|
270
|
+
project=example_project["project"],
|
|
271
|
+
service_name=example_clickhouse["serviceName"],
|
|
272
|
+
username="example-user")
|
|
273
|
+
user_role_assignment = aiven.ClickhouseGrant("user_role_assignment",
|
|
274
|
+
project=example_project["project"],
|
|
275
|
+
service_name=example_clickhouse["serviceName"],
|
|
276
|
+
user=example_user.username,
|
|
284
277
|
role_grants=[aiven.ClickhouseGrantRoleGrantArgs(
|
|
285
|
-
role=
|
|
278
|
+
role=example_role.role,
|
|
286
279
|
)])
|
|
287
280
|
```
|
|
288
281
|
|
|
282
|
+
## Import
|
|
283
|
+
|
|
284
|
+
```sh
|
|
285
|
+
$ pulumi import aiven:index/clickhouseGrant:ClickhouseGrant example_grant PROJECT/SERVICE_NAME/ID
|
|
286
|
+
```
|
|
287
|
+
|
|
289
288
|
:param str resource_name: The name of the resource.
|
|
290
289
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
291
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseGrantPrivilegeGrantArgs']]]] privilege_grants:
|
|
290
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseGrantPrivilegeGrantArgs']]]] privilege_grants: Grant privileges. Changing this property forces recreation of the resource.
|
|
292
291
|
: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.
|
|
293
292
|
:param pulumi.Input[str] role: The role to grant privileges or roles to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
294
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseGrantRoleGrantArgs']]]] role_grants:
|
|
293
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseGrantRoleGrantArgs']]]] role_grants: Grant roles. Changing this property forces recreation of the resource.
|
|
295
294
|
: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.
|
|
296
295
|
:param pulumi.Input[str] user: The user to grant privileges or roles to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
297
296
|
"""
|
|
@@ -302,12 +301,12 @@ class ClickhouseGrant(pulumi.CustomResource):
|
|
|
302
301
|
args: ClickhouseGrantArgs,
|
|
303
302
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
304
303
|
"""
|
|
305
|
-
|
|
304
|
+
Creates and manages ClickHouse grants to give users and roles privileges to a ClickHouse service.
|
|
306
305
|
|
|
307
|
-
|
|
308
|
-
*
|
|
309
|
-
* To grant a privilege on all tables of a database,
|
|
310
|
-
*
|
|
306
|
+
**Note:**
|
|
307
|
+
* Users cannot have the same name as roles.
|
|
308
|
+
* To grant a privilege on all tables of a database, omit the table and only keep the database. Don't use `table="*"`.
|
|
309
|
+
* Changes first revoke all grants and then reissue the remaining grants for convergence.
|
|
311
310
|
|
|
312
311
|
## Example Usage
|
|
313
312
|
|
|
@@ -315,47 +314,46 @@ class ClickhouseGrant(pulumi.CustomResource):
|
|
|
315
314
|
import pulumi
|
|
316
315
|
import pulumi_aiven as aiven
|
|
317
316
|
|
|
318
|
-
|
|
319
|
-
project=
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
project=
|
|
325
|
-
service_name=
|
|
326
|
-
|
|
327
|
-
demo = aiven.ClickhouseRole("demo",
|
|
328
|
-
project=clickhouse.project,
|
|
329
|
-
service_name=clickhouse.service_name,
|
|
330
|
-
role="demo-role")
|
|
331
|
-
demo_role_grant = aiven.ClickhouseGrant("demo-role-grant",
|
|
332
|
-
project=clickhouse.project,
|
|
333
|
-
service_name=clickhouse.service_name,
|
|
334
|
-
role=demo.role,
|
|
317
|
+
example_role = aiven.ClickhouseRole("example_role",
|
|
318
|
+
project=example_project["project"],
|
|
319
|
+
service_name=example_clickhouse["serviceName"],
|
|
320
|
+
role="example-role")
|
|
321
|
+
# Grant privileges to the example role.
|
|
322
|
+
role_privileges = aiven.ClickhouseGrant("role_privileges",
|
|
323
|
+
project=example_project["project"],
|
|
324
|
+
service_name=example_clickhouse["serviceName"],
|
|
325
|
+
role=example_role.role,
|
|
335
326
|
privilege_grants=[
|
|
336
327
|
aiven.ClickhouseGrantPrivilegeGrantArgs(
|
|
337
328
|
privilege="INSERT",
|
|
338
|
-
database=
|
|
339
|
-
table="
|
|
329
|
+
database=example_db["name"],
|
|
330
|
+
table="example-table",
|
|
340
331
|
),
|
|
341
332
|
aiven.ClickhouseGrantPrivilegeGrantArgs(
|
|
342
333
|
privilege="SELECT",
|
|
343
|
-
database=
|
|
334
|
+
database=example_db["name"],
|
|
344
335
|
),
|
|
345
336
|
])
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
337
|
+
# Grant the role to the user.
|
|
338
|
+
example_user = aiven.ClickhouseUser("example_user",
|
|
339
|
+
project=example_project["project"],
|
|
340
|
+
service_name=example_clickhouse["serviceName"],
|
|
341
|
+
username="example-user")
|
|
342
|
+
user_role_assignment = aiven.ClickhouseGrant("user_role_assignment",
|
|
343
|
+
project=example_project["project"],
|
|
344
|
+
service_name=example_clickhouse["serviceName"],
|
|
345
|
+
user=example_user.username,
|
|
354
346
|
role_grants=[aiven.ClickhouseGrantRoleGrantArgs(
|
|
355
|
-
role=
|
|
347
|
+
role=example_role.role,
|
|
356
348
|
)])
|
|
357
349
|
```
|
|
358
350
|
|
|
351
|
+
## Import
|
|
352
|
+
|
|
353
|
+
```sh
|
|
354
|
+
$ pulumi import aiven:index/clickhouseGrant:ClickhouseGrant example_grant PROJECT/SERVICE_NAME/ID
|
|
355
|
+
```
|
|
356
|
+
|
|
359
357
|
:param str resource_name: The name of the resource.
|
|
360
358
|
:param ClickhouseGrantArgs args: The arguments to use to populate this resource's properties.
|
|
361
359
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -419,10 +417,10 @@ class ClickhouseGrant(pulumi.CustomResource):
|
|
|
419
417
|
:param str resource_name: The unique name of the resulting resource.
|
|
420
418
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
421
419
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
422
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseGrantPrivilegeGrantArgs']]]] privilege_grants:
|
|
420
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseGrantPrivilegeGrantArgs']]]] privilege_grants: Grant privileges. Changing this property forces recreation of the resource.
|
|
423
421
|
: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.
|
|
424
422
|
:param pulumi.Input[str] role: The role to grant privileges or roles to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
425
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseGrantRoleGrantArgs']]]] role_grants:
|
|
423
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseGrantRoleGrantArgs']]]] role_grants: Grant roles. Changing this property forces recreation of the resource.
|
|
426
424
|
: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.
|
|
427
425
|
:param pulumi.Input[str] user: The user to grant privileges or roles to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
428
426
|
"""
|
|
@@ -442,7 +440,7 @@ class ClickhouseGrant(pulumi.CustomResource):
|
|
|
442
440
|
@pulumi.getter(name="privilegeGrants")
|
|
443
441
|
def privilege_grants(self) -> pulumi.Output[Optional[Sequence['outputs.ClickhouseGrantPrivilegeGrant']]]:
|
|
444
442
|
"""
|
|
445
|
-
|
|
443
|
+
Grant privileges. Changing this property forces recreation of the resource.
|
|
446
444
|
"""
|
|
447
445
|
return pulumi.get(self, "privilege_grants")
|
|
448
446
|
|
|
@@ -466,7 +464,7 @@ class ClickhouseGrant(pulumi.CustomResource):
|
|
|
466
464
|
@pulumi.getter(name="roleGrants")
|
|
467
465
|
def role_grants(self) -> pulumi.Output[Optional[Sequence['outputs.ClickhouseGrantRoleGrant']]]:
|
|
468
466
|
"""
|
|
469
|
-
|
|
467
|
+
Grant roles. Changing this property forces recreation of the resource.
|
|
470
468
|
"""
|
|
471
469
|
return pulumi.get(self, "role_grants")
|
|
472
470
|
|
pulumi_aiven/clickhouse_role.py
CHANGED
|
@@ -20,7 +20,7 @@ class ClickhouseRoleArgs:
|
|
|
20
20
|
"""
|
|
21
21
|
The set of arguments for constructing a ClickhouseRole resource.
|
|
22
22
|
: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.
|
|
23
|
-
:param pulumi.Input[str] role: The
|
|
23
|
+
:param pulumi.Input[str] role: The name of role. Changing this property forces recreation of the resource.
|
|
24
24
|
: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.
|
|
25
25
|
"""
|
|
26
26
|
pulumi.set(__self__, "project", project)
|
|
@@ -43,7 +43,7 @@ class ClickhouseRoleArgs:
|
|
|
43
43
|
@pulumi.getter
|
|
44
44
|
def role(self) -> pulumi.Input[str]:
|
|
45
45
|
"""
|
|
46
|
-
The
|
|
46
|
+
The name of role. Changing this property forces recreation of the resource.
|
|
47
47
|
"""
|
|
48
48
|
return pulumi.get(self, "role")
|
|
49
49
|
|
|
@@ -73,7 +73,7 @@ class _ClickhouseRoleState:
|
|
|
73
73
|
"""
|
|
74
74
|
Input properties used for looking up and filtering ClickhouseRole resources.
|
|
75
75
|
: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.
|
|
76
|
-
:param pulumi.Input[str] role: The
|
|
76
|
+
:param pulumi.Input[str] role: The name of role. Changing this property forces recreation of the resource.
|
|
77
77
|
: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.
|
|
78
78
|
"""
|
|
79
79
|
if project is not None:
|
|
@@ -99,7 +99,7 @@ class _ClickhouseRoleState:
|
|
|
99
99
|
@pulumi.getter
|
|
100
100
|
def role(self) -> Optional[pulumi.Input[str]]:
|
|
101
101
|
"""
|
|
102
|
-
The
|
|
102
|
+
The name of role. Changing this property forces recreation of the resource.
|
|
103
103
|
"""
|
|
104
104
|
return pulumi.get(self, "role")
|
|
105
105
|
|
|
@@ -130,7 +130,7 @@ class ClickhouseRole(pulumi.CustomResource):
|
|
|
130
130
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
131
131
|
__props__=None):
|
|
132
132
|
"""
|
|
133
|
-
|
|
133
|
+
Creates and manages ClickHouse roles.
|
|
134
134
|
|
|
135
135
|
## Example Usage
|
|
136
136
|
|
|
@@ -138,29 +138,22 @@ class ClickhouseRole(pulumi.CustomResource):
|
|
|
138
138
|
import pulumi
|
|
139
139
|
import pulumi_aiven as aiven
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
plan="startup-8",
|
|
145
|
-
service_name="example-service",
|
|
146
|
-
maintenance_window_dow="monday",
|
|
147
|
-
maintenance_window_time="10:00:00")
|
|
148
|
-
foo = aiven.ClickhouseRole("foo",
|
|
149
|
-
service_name=bar.service_name,
|
|
150
|
-
project=bar.project,
|
|
141
|
+
example_role = aiven.ClickhouseRole("example_role",
|
|
142
|
+
service_name=example_clickhouse["serviceName"],
|
|
143
|
+
project=example_project["project"],
|
|
151
144
|
role="writer")
|
|
152
145
|
```
|
|
153
146
|
|
|
154
147
|
## Import
|
|
155
148
|
|
|
156
149
|
```sh
|
|
157
|
-
$ pulumi import aiven:index/clickhouseRole:ClickhouseRole
|
|
150
|
+
$ pulumi import aiven:index/clickhouseRole:ClickhouseRole example_role PROJECT/SERVICE_NAME/ROLE
|
|
158
151
|
```
|
|
159
152
|
|
|
160
153
|
:param str resource_name: The name of the resource.
|
|
161
154
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
162
155
|
: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.
|
|
163
|
-
:param pulumi.Input[str] role: The
|
|
156
|
+
:param pulumi.Input[str] role: The name of role. Changing this property forces recreation of the resource.
|
|
164
157
|
: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.
|
|
165
158
|
"""
|
|
166
159
|
...
|
|
@@ -170,7 +163,7 @@ class ClickhouseRole(pulumi.CustomResource):
|
|
|
170
163
|
args: ClickhouseRoleArgs,
|
|
171
164
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
172
165
|
"""
|
|
173
|
-
|
|
166
|
+
Creates and manages ClickHouse roles.
|
|
174
167
|
|
|
175
168
|
## Example Usage
|
|
176
169
|
|
|
@@ -178,23 +171,16 @@ class ClickhouseRole(pulumi.CustomResource):
|
|
|
178
171
|
import pulumi
|
|
179
172
|
import pulumi_aiven as aiven
|
|
180
173
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
plan="startup-8",
|
|
185
|
-
service_name="example-service",
|
|
186
|
-
maintenance_window_dow="monday",
|
|
187
|
-
maintenance_window_time="10:00:00")
|
|
188
|
-
foo = aiven.ClickhouseRole("foo",
|
|
189
|
-
service_name=bar.service_name,
|
|
190
|
-
project=bar.project,
|
|
174
|
+
example_role = aiven.ClickhouseRole("example_role",
|
|
175
|
+
service_name=example_clickhouse["serviceName"],
|
|
176
|
+
project=example_project["project"],
|
|
191
177
|
role="writer")
|
|
192
178
|
```
|
|
193
179
|
|
|
194
180
|
## Import
|
|
195
181
|
|
|
196
182
|
```sh
|
|
197
|
-
$ pulumi import aiven:index/clickhouseRole:ClickhouseRole
|
|
183
|
+
$ pulumi import aiven:index/clickhouseRole:ClickhouseRole example_role PROJECT/SERVICE_NAME/ROLE
|
|
198
184
|
```
|
|
199
185
|
|
|
200
186
|
:param str resource_name: The name of the resource.
|
|
@@ -254,7 +240,7 @@ class ClickhouseRole(pulumi.CustomResource):
|
|
|
254
240
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
255
241
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
256
242
|
: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.
|
|
257
|
-
:param pulumi.Input[str] role: The
|
|
243
|
+
:param pulumi.Input[str] role: The name of role. Changing this property forces recreation of the resource.
|
|
258
244
|
: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.
|
|
259
245
|
"""
|
|
260
246
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -278,7 +264,7 @@ class ClickhouseRole(pulumi.CustomResource):
|
|
|
278
264
|
@pulumi.getter
|
|
279
265
|
def role(self) -> pulumi.Output[str]:
|
|
280
266
|
"""
|
|
281
|
-
The
|
|
267
|
+
The name of role. Changing this property forces recreation of the resource.
|
|
282
268
|
"""
|
|
283
269
|
return pulumi.get(self, "role")
|
|
284
270
|
|
pulumi_aiven/clickhouse_user.py
CHANGED
|
@@ -21,7 +21,7 @@ class ClickhouseUserArgs:
|
|
|
21
21
|
The set of arguments for constructing a ClickhouseUser resource.
|
|
22
22
|
: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.
|
|
23
23
|
: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.
|
|
24
|
-
:param pulumi.Input[str] username: The
|
|
24
|
+
:param pulumi.Input[str] username: The name of the ClickHouse user. Changing this property forces recreation of the resource.
|
|
25
25
|
"""
|
|
26
26
|
pulumi.set(__self__, "project", project)
|
|
27
27
|
pulumi.set(__self__, "service_name", service_name)
|
|
@@ -55,7 +55,7 @@ class ClickhouseUserArgs:
|
|
|
55
55
|
@pulumi.getter
|
|
56
56
|
def username(self) -> pulumi.Input[str]:
|
|
57
57
|
"""
|
|
58
|
-
The
|
|
58
|
+
The name of the ClickHouse user. Changing this property forces recreation of the resource.
|
|
59
59
|
"""
|
|
60
60
|
return pulumi.get(self, "username")
|
|
61
61
|
|
|
@@ -75,12 +75,12 @@ class _ClickhouseUserState:
|
|
|
75
75
|
uuid: Optional[pulumi.Input[str]] = None):
|
|
76
76
|
"""
|
|
77
77
|
Input properties used for looking up and filtering ClickhouseUser resources.
|
|
78
|
-
:param pulumi.Input[str] password: The password of the
|
|
78
|
+
:param pulumi.Input[str] password: The password of the ClickHouse user.
|
|
79
79
|
: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.
|
|
80
|
-
:param pulumi.Input[bool] required: Indicates if a
|
|
80
|
+
:param pulumi.Input[bool] required: Indicates if a ClickHouse user is required.
|
|
81
81
|
: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.
|
|
82
|
-
:param pulumi.Input[str] username: The
|
|
83
|
-
:param pulumi.Input[str] uuid: UUID of the
|
|
82
|
+
:param pulumi.Input[str] username: The name of the ClickHouse user. Changing this property forces recreation of the resource.
|
|
83
|
+
:param pulumi.Input[str] uuid: UUID of the ClickHouse user.
|
|
84
84
|
"""
|
|
85
85
|
if password is not None:
|
|
86
86
|
pulumi.set(__self__, "password", password)
|
|
@@ -99,7 +99,7 @@ class _ClickhouseUserState:
|
|
|
99
99
|
@pulumi.getter
|
|
100
100
|
def password(self) -> Optional[pulumi.Input[str]]:
|
|
101
101
|
"""
|
|
102
|
-
The password of the
|
|
102
|
+
The password of the ClickHouse user.
|
|
103
103
|
"""
|
|
104
104
|
return pulumi.get(self, "password")
|
|
105
105
|
|
|
@@ -123,7 +123,7 @@ class _ClickhouseUserState:
|
|
|
123
123
|
@pulumi.getter
|
|
124
124
|
def required(self) -> Optional[pulumi.Input[bool]]:
|
|
125
125
|
"""
|
|
126
|
-
Indicates if a
|
|
126
|
+
Indicates if a ClickHouse user is required.
|
|
127
127
|
"""
|
|
128
128
|
return pulumi.get(self, "required")
|
|
129
129
|
|
|
@@ -147,7 +147,7 @@ class _ClickhouseUserState:
|
|
|
147
147
|
@pulumi.getter
|
|
148
148
|
def username(self) -> Optional[pulumi.Input[str]]:
|
|
149
149
|
"""
|
|
150
|
-
The
|
|
150
|
+
The name of the ClickHouse user. Changing this property forces recreation of the resource.
|
|
151
151
|
"""
|
|
152
152
|
return pulumi.get(self, "username")
|
|
153
153
|
|
|
@@ -159,7 +159,7 @@ class _ClickhouseUserState:
|
|
|
159
159
|
@pulumi.getter
|
|
160
160
|
def uuid(self) -> Optional[pulumi.Input[str]]:
|
|
161
161
|
"""
|
|
162
|
-
UUID of the
|
|
162
|
+
UUID of the ClickHouse user.
|
|
163
163
|
"""
|
|
164
164
|
return pulumi.get(self, "uuid")
|
|
165
165
|
|
|
@@ -178,7 +178,7 @@ class ClickhouseUser(pulumi.CustomResource):
|
|
|
178
178
|
username: Optional[pulumi.Input[str]] = None,
|
|
179
179
|
__props__=None):
|
|
180
180
|
"""
|
|
181
|
-
|
|
181
|
+
Creates and manages a ClickHouse user.
|
|
182
182
|
|
|
183
183
|
## Example Usage
|
|
184
184
|
|
|
@@ -186,23 +186,23 @@ class ClickhouseUser(pulumi.CustomResource):
|
|
|
186
186
|
import pulumi
|
|
187
187
|
import pulumi_aiven as aiven
|
|
188
188
|
|
|
189
|
-
|
|
190
|
-
project=
|
|
191
|
-
service_name=
|
|
192
|
-
username="
|
|
189
|
+
example_user = aiven.ClickhouseUser("example_user",
|
|
190
|
+
project=example_project["project"],
|
|
191
|
+
service_name=example_service["serviceName"],
|
|
192
|
+
username="analyst")
|
|
193
193
|
```
|
|
194
194
|
|
|
195
195
|
## Import
|
|
196
196
|
|
|
197
197
|
```sh
|
|
198
|
-
$ pulumi import aiven:index/clickhouseUser:ClickhouseUser
|
|
198
|
+
$ pulumi import aiven:index/clickhouseUser:ClickhouseUser example_user PROJECT/SERVICE_NAME/USERNAME
|
|
199
199
|
```
|
|
200
200
|
|
|
201
201
|
:param str resource_name: The name of the resource.
|
|
202
202
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
203
203
|
: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.
|
|
204
204
|
: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.
|
|
205
|
-
:param pulumi.Input[str] username: The
|
|
205
|
+
:param pulumi.Input[str] username: The name of the ClickHouse user. Changing this property forces recreation of the resource.
|
|
206
206
|
"""
|
|
207
207
|
...
|
|
208
208
|
@overload
|
|
@@ -211,7 +211,7 @@ class ClickhouseUser(pulumi.CustomResource):
|
|
|
211
211
|
args: ClickhouseUserArgs,
|
|
212
212
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
213
213
|
"""
|
|
214
|
-
|
|
214
|
+
Creates and manages a ClickHouse user.
|
|
215
215
|
|
|
216
216
|
## Example Usage
|
|
217
217
|
|
|
@@ -219,16 +219,16 @@ class ClickhouseUser(pulumi.CustomResource):
|
|
|
219
219
|
import pulumi
|
|
220
220
|
import pulumi_aiven as aiven
|
|
221
221
|
|
|
222
|
-
|
|
223
|
-
project=
|
|
224
|
-
service_name=
|
|
225
|
-
username="
|
|
222
|
+
example_user = aiven.ClickhouseUser("example_user",
|
|
223
|
+
project=example_project["project"],
|
|
224
|
+
service_name=example_service["serviceName"],
|
|
225
|
+
username="analyst")
|
|
226
226
|
```
|
|
227
227
|
|
|
228
228
|
## Import
|
|
229
229
|
|
|
230
230
|
```sh
|
|
231
|
-
$ pulumi import aiven:index/clickhouseUser:ClickhouseUser
|
|
231
|
+
$ pulumi import aiven:index/clickhouseUser:ClickhouseUser example_user PROJECT/SERVICE_NAME/USERNAME
|
|
232
232
|
```
|
|
233
233
|
|
|
234
234
|
:param str resource_name: The name of the resource.
|
|
@@ -295,12 +295,12 @@ class ClickhouseUser(pulumi.CustomResource):
|
|
|
295
295
|
:param str resource_name: The unique name of the resulting resource.
|
|
296
296
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
297
297
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
298
|
-
:param pulumi.Input[str] password: The password of the
|
|
298
|
+
:param pulumi.Input[str] password: The password of the ClickHouse user.
|
|
299
299
|
: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.
|
|
300
|
-
:param pulumi.Input[bool] required: Indicates if a
|
|
300
|
+
:param pulumi.Input[bool] required: Indicates if a ClickHouse user is required.
|
|
301
301
|
: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.
|
|
302
|
-
:param pulumi.Input[str] username: The
|
|
303
|
-
:param pulumi.Input[str] uuid: UUID of the
|
|
302
|
+
:param pulumi.Input[str] username: The name of the ClickHouse user. Changing this property forces recreation of the resource.
|
|
303
|
+
:param pulumi.Input[str] uuid: UUID of the ClickHouse user.
|
|
304
304
|
"""
|
|
305
305
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
306
306
|
|
|
@@ -318,7 +318,7 @@ class ClickhouseUser(pulumi.CustomResource):
|
|
|
318
318
|
@pulumi.getter
|
|
319
319
|
def password(self) -> pulumi.Output[str]:
|
|
320
320
|
"""
|
|
321
|
-
The password of the
|
|
321
|
+
The password of the ClickHouse user.
|
|
322
322
|
"""
|
|
323
323
|
return pulumi.get(self, "password")
|
|
324
324
|
|
|
@@ -334,7 +334,7 @@ class ClickhouseUser(pulumi.CustomResource):
|
|
|
334
334
|
@pulumi.getter
|
|
335
335
|
def required(self) -> pulumi.Output[bool]:
|
|
336
336
|
"""
|
|
337
|
-
Indicates if a
|
|
337
|
+
Indicates if a ClickHouse user is required.
|
|
338
338
|
"""
|
|
339
339
|
return pulumi.get(self, "required")
|
|
340
340
|
|
|
@@ -350,7 +350,7 @@ class ClickhouseUser(pulumi.CustomResource):
|
|
|
350
350
|
@pulumi.getter
|
|
351
351
|
def username(self) -> pulumi.Output[str]:
|
|
352
352
|
"""
|
|
353
|
-
The
|
|
353
|
+
The name of the ClickHouse user. Changing this property forces recreation of the resource.
|
|
354
354
|
"""
|
|
355
355
|
return pulumi.get(self, "username")
|
|
356
356
|
|
|
@@ -358,7 +358,7 @@ class ClickhouseUser(pulumi.CustomResource):
|
|
|
358
358
|
@pulumi.getter
|
|
359
359
|
def uuid(self) -> pulumi.Output[str]:
|
|
360
360
|
"""
|
|
361
|
-
UUID of the
|
|
361
|
+
UUID of the ClickHouse user.
|
|
362
362
|
"""
|
|
363
363
|
return pulumi.get(self, "uuid")
|
|
364
364
|
|