pulumi-snowflake 0.56.0a1721327760__py3-none-any.whl → 0.57.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.
Files changed (74) hide show
  1. pulumi_snowflake/__init__.py +78 -209
  2. pulumi_snowflake/_inputs.py +12188 -1362
  3. pulumi_snowflake/_utilities.py +2 -0
  4. pulumi_snowflake/account_role.py +226 -0
  5. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +692 -0
  6. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +645 -0
  7. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +680 -0
  8. pulumi_snowflake/cortex_search_service.py +563 -0
  9. pulumi_snowflake/database.py +854 -232
  10. pulumi_snowflake/database_old.py +556 -0
  11. pulumi_snowflake/external_oauth_integration.py +562 -534
  12. pulumi_snowflake/failover_group.py +2 -2
  13. pulumi_snowflake/get_cortex_search_services.py +197 -0
  14. pulumi_snowflake/get_databases.py +71 -62
  15. pulumi_snowflake/get_network_policies.py +122 -0
  16. pulumi_snowflake/get_roles.py +37 -31
  17. pulumi_snowflake/get_schemas.py +115 -38
  18. pulumi_snowflake/get_security_integrations.py +122 -0
  19. pulumi_snowflake/get_streamlits.py +159 -0
  20. pulumi_snowflake/get_warehouses.py +66 -18
  21. pulumi_snowflake/grant_privileges_to_database_role.py +0 -4
  22. pulumi_snowflake/managed_account.py +7 -7
  23. pulumi_snowflake/network_policy.py +103 -19
  24. pulumi_snowflake/oauth_integration.py +4 -0
  25. pulumi_snowflake/oauth_integration_for_custom_clients.py +940 -0
  26. pulumi_snowflake/oauth_integration_for_partner_applications.py +584 -0
  27. pulumi_snowflake/outputs.py +16178 -2927
  28. pulumi_snowflake/pulumi-plugin.json +1 -1
  29. pulumi_snowflake/role.py +44 -72
  30. pulumi_snowflake/saml2_integration.py +975 -0
  31. pulumi_snowflake/saml_integration.py +4 -0
  32. pulumi_snowflake/schema.py +905 -151
  33. pulumi_snowflake/scim_integration.py +257 -103
  34. pulumi_snowflake/secondary_database.py +1059 -0
  35. pulumi_snowflake/sequence.py +6 -6
  36. pulumi_snowflake/shared_database.py +914 -0
  37. pulumi_snowflake/streamlit.py +650 -0
  38. pulumi_snowflake/table.py +0 -120
  39. pulumi_snowflake/table_constraint.py +2 -2
  40. pulumi_snowflake/tag_association.py +38 -38
  41. pulumi_snowflake/unsafe_execute.py +8 -8
  42. pulumi_snowflake/user_password_policy_attachment.py +32 -0
  43. pulumi_snowflake/warehouse.py +143 -120
  44. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/METADATA +1 -1
  45. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/RECORD +47 -58
  46. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/WHEEL +1 -1
  47. pulumi_snowflake/account_grant.py +0 -319
  48. pulumi_snowflake/database_grant.py +0 -471
  49. pulumi_snowflake/external_table_grant.py +0 -666
  50. pulumi_snowflake/failover_group_grant.py +0 -368
  51. pulumi_snowflake/file_format_grant.py +0 -611
  52. pulumi_snowflake/function_grant.py +0 -721
  53. pulumi_snowflake/grant_privileges_to_role.py +0 -821
  54. pulumi_snowflake/integration_grant.py +0 -416
  55. pulumi_snowflake/masking_policy_grant.py +0 -518
  56. pulumi_snowflake/materialized_view_grant.py +0 -665
  57. pulumi_snowflake/pipe_grant.py +0 -563
  58. pulumi_snowflake/procedure_grant.py +0 -721
  59. pulumi_snowflake/resource_monitor_grant.py +0 -363
  60. pulumi_snowflake/role_grants.py +0 -340
  61. pulumi_snowflake/role_ownership_grant.py +0 -329
  62. pulumi_snowflake/row_access_policy_grant.py +0 -516
  63. pulumi_snowflake/schema_grant.py +0 -603
  64. pulumi_snowflake/sequence_grant.py +0 -611
  65. pulumi_snowflake/stage_grant.py +0 -611
  66. pulumi_snowflake/stream_grant.py +0 -611
  67. pulumi_snowflake/table_grant.py +0 -653
  68. pulumi_snowflake/tag_grant.py +0 -508
  69. pulumi_snowflake/task_grant.py +0 -611
  70. pulumi_snowflake/user_grant.py +0 -370
  71. pulumi_snowflake/user_ownership_grant.py +0 -275
  72. pulumi_snowflake/view_grant.py +0 -685
  73. pulumi_snowflake/warehouse_grant.py +0 -416
  74. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/top_level.txt +0 -0
@@ -1,508 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- import copy
6
- import warnings
7
- import pulumi
8
- import pulumi.runtime
9
- from typing import Any, Mapping, Optional, Sequence, Union, overload
10
- from . import _utilities
11
-
12
- __all__ = ['TagGrantArgs', 'TagGrant']
13
-
14
- @pulumi.input_type
15
- class TagGrantArgs:
16
- def __init__(__self__, *,
17
- database_name: pulumi.Input[str],
18
- schema_name: pulumi.Input[str],
19
- tag_name: pulumi.Input[str],
20
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
21
- privilege: Optional[pulumi.Input[str]] = None,
22
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
23
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
24
- with_grant_option: Optional[pulumi.Input[bool]] = None):
25
- """
26
- The set of arguments for constructing a TagGrant resource.
27
- :param pulumi.Input[str] database_name: The name of the database containing the tag on which to grant privileges.
28
- :param pulumi.Input[str] schema_name: The name of the schema containing the tag on which to grant privileges.
29
- :param pulumi.Input[str] tag_name: The name of the tag on which to grant privileges.
30
- :param pulumi.Input[str] privilege: The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
31
- :param pulumi.Input[str] revert_ownership_to_role_name: The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
32
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
33
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
34
- """
35
- pulumi.set(__self__, "database_name", database_name)
36
- pulumi.set(__self__, "schema_name", schema_name)
37
- pulumi.set(__self__, "tag_name", tag_name)
38
- if enable_multiple_grants is not None:
39
- pulumi.set(__self__, "enable_multiple_grants", enable_multiple_grants)
40
- if privilege is not None:
41
- pulumi.set(__self__, "privilege", privilege)
42
- if revert_ownership_to_role_name is not None:
43
- pulumi.set(__self__, "revert_ownership_to_role_name", revert_ownership_to_role_name)
44
- if roles is not None:
45
- pulumi.set(__self__, "roles", roles)
46
- if with_grant_option is not None:
47
- pulumi.set(__self__, "with_grant_option", with_grant_option)
48
-
49
- @property
50
- @pulumi.getter(name="databaseName")
51
- def database_name(self) -> pulumi.Input[str]:
52
- """
53
- The name of the database containing the tag on which to grant privileges.
54
- """
55
- return pulumi.get(self, "database_name")
56
-
57
- @database_name.setter
58
- def database_name(self, value: pulumi.Input[str]):
59
- pulumi.set(self, "database_name", value)
60
-
61
- @property
62
- @pulumi.getter(name="schemaName")
63
- def schema_name(self) -> pulumi.Input[str]:
64
- """
65
- The name of the schema containing the tag on which to grant privileges.
66
- """
67
- return pulumi.get(self, "schema_name")
68
-
69
- @schema_name.setter
70
- def schema_name(self, value: pulumi.Input[str]):
71
- pulumi.set(self, "schema_name", value)
72
-
73
- @property
74
- @pulumi.getter(name="tagName")
75
- def tag_name(self) -> pulumi.Input[str]:
76
- """
77
- The name of the tag on which to grant privileges.
78
- """
79
- return pulumi.get(self, "tag_name")
80
-
81
- @tag_name.setter
82
- def tag_name(self, value: pulumi.Input[str]):
83
- pulumi.set(self, "tag_name", value)
84
-
85
- @property
86
- @pulumi.getter(name="enableMultipleGrants")
87
- def enable_multiple_grants(self) -> Optional[pulumi.Input[bool]]:
88
- return pulumi.get(self, "enable_multiple_grants")
89
-
90
- @enable_multiple_grants.setter
91
- def enable_multiple_grants(self, value: Optional[pulumi.Input[bool]]):
92
- pulumi.set(self, "enable_multiple_grants", value)
93
-
94
- @property
95
- @pulumi.getter
96
- def privilege(self) -> Optional[pulumi.Input[str]]:
97
- """
98
- The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
99
- """
100
- return pulumi.get(self, "privilege")
101
-
102
- @privilege.setter
103
- def privilege(self, value: Optional[pulumi.Input[str]]):
104
- pulumi.set(self, "privilege", value)
105
-
106
- @property
107
- @pulumi.getter(name="revertOwnershipToRoleName")
108
- def revert_ownership_to_role_name(self) -> Optional[pulumi.Input[str]]:
109
- """
110
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
111
- """
112
- return pulumi.get(self, "revert_ownership_to_role_name")
113
-
114
- @revert_ownership_to_role_name.setter
115
- def revert_ownership_to_role_name(self, value: Optional[pulumi.Input[str]]):
116
- pulumi.set(self, "revert_ownership_to_role_name", value)
117
-
118
- @property
119
- @pulumi.getter
120
- def roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
121
- """
122
- Grants privilege to these roles.
123
- """
124
- return pulumi.get(self, "roles")
125
-
126
- @roles.setter
127
- def roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
128
- pulumi.set(self, "roles", value)
129
-
130
- @property
131
- @pulumi.getter(name="withGrantOption")
132
- def with_grant_option(self) -> Optional[pulumi.Input[bool]]:
133
- """
134
- When this is set to true, allows the recipient role to grant the privileges to other roles.
135
- """
136
- return pulumi.get(self, "with_grant_option")
137
-
138
- @with_grant_option.setter
139
- def with_grant_option(self, value: Optional[pulumi.Input[bool]]):
140
- pulumi.set(self, "with_grant_option", value)
141
-
142
-
143
- @pulumi.input_type
144
- class _TagGrantState:
145
- def __init__(__self__, *,
146
- database_name: Optional[pulumi.Input[str]] = None,
147
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
148
- privilege: Optional[pulumi.Input[str]] = None,
149
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
150
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
151
- schema_name: Optional[pulumi.Input[str]] = None,
152
- tag_name: Optional[pulumi.Input[str]] = None,
153
- with_grant_option: Optional[pulumi.Input[bool]] = None):
154
- """
155
- Input properties used for looking up and filtering TagGrant resources.
156
- :param pulumi.Input[str] database_name: The name of the database containing the tag on which to grant privileges.
157
- :param pulumi.Input[str] privilege: The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
158
- :param pulumi.Input[str] revert_ownership_to_role_name: The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
159
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
160
- :param pulumi.Input[str] schema_name: The name of the schema containing the tag on which to grant privileges.
161
- :param pulumi.Input[str] tag_name: The name of the tag on which to grant privileges.
162
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
163
- """
164
- if database_name is not None:
165
- pulumi.set(__self__, "database_name", database_name)
166
- if enable_multiple_grants is not None:
167
- pulumi.set(__self__, "enable_multiple_grants", enable_multiple_grants)
168
- if privilege is not None:
169
- pulumi.set(__self__, "privilege", privilege)
170
- if revert_ownership_to_role_name is not None:
171
- pulumi.set(__self__, "revert_ownership_to_role_name", revert_ownership_to_role_name)
172
- if roles is not None:
173
- pulumi.set(__self__, "roles", roles)
174
- if schema_name is not None:
175
- pulumi.set(__self__, "schema_name", schema_name)
176
- if tag_name is not None:
177
- pulumi.set(__self__, "tag_name", tag_name)
178
- if with_grant_option is not None:
179
- pulumi.set(__self__, "with_grant_option", with_grant_option)
180
-
181
- @property
182
- @pulumi.getter(name="databaseName")
183
- def database_name(self) -> Optional[pulumi.Input[str]]:
184
- """
185
- The name of the database containing the tag on which to grant privileges.
186
- """
187
- return pulumi.get(self, "database_name")
188
-
189
- @database_name.setter
190
- def database_name(self, value: Optional[pulumi.Input[str]]):
191
- pulumi.set(self, "database_name", value)
192
-
193
- @property
194
- @pulumi.getter(name="enableMultipleGrants")
195
- def enable_multiple_grants(self) -> Optional[pulumi.Input[bool]]:
196
- return pulumi.get(self, "enable_multiple_grants")
197
-
198
- @enable_multiple_grants.setter
199
- def enable_multiple_grants(self, value: Optional[pulumi.Input[bool]]):
200
- pulumi.set(self, "enable_multiple_grants", value)
201
-
202
- @property
203
- @pulumi.getter
204
- def privilege(self) -> Optional[pulumi.Input[str]]:
205
- """
206
- The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
207
- """
208
- return pulumi.get(self, "privilege")
209
-
210
- @privilege.setter
211
- def privilege(self, value: Optional[pulumi.Input[str]]):
212
- pulumi.set(self, "privilege", value)
213
-
214
- @property
215
- @pulumi.getter(name="revertOwnershipToRoleName")
216
- def revert_ownership_to_role_name(self) -> Optional[pulumi.Input[str]]:
217
- """
218
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
219
- """
220
- return pulumi.get(self, "revert_ownership_to_role_name")
221
-
222
- @revert_ownership_to_role_name.setter
223
- def revert_ownership_to_role_name(self, value: Optional[pulumi.Input[str]]):
224
- pulumi.set(self, "revert_ownership_to_role_name", value)
225
-
226
- @property
227
- @pulumi.getter
228
- def roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
229
- """
230
- Grants privilege to these roles.
231
- """
232
- return pulumi.get(self, "roles")
233
-
234
- @roles.setter
235
- def roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
236
- pulumi.set(self, "roles", value)
237
-
238
- @property
239
- @pulumi.getter(name="schemaName")
240
- def schema_name(self) -> Optional[pulumi.Input[str]]:
241
- """
242
- The name of the schema containing the tag on which to grant privileges.
243
- """
244
- return pulumi.get(self, "schema_name")
245
-
246
- @schema_name.setter
247
- def schema_name(self, value: Optional[pulumi.Input[str]]):
248
- pulumi.set(self, "schema_name", value)
249
-
250
- @property
251
- @pulumi.getter(name="tagName")
252
- def tag_name(self) -> Optional[pulumi.Input[str]]:
253
- """
254
- The name of the tag on which to grant privileges.
255
- """
256
- return pulumi.get(self, "tag_name")
257
-
258
- @tag_name.setter
259
- def tag_name(self, value: Optional[pulumi.Input[str]]):
260
- pulumi.set(self, "tag_name", value)
261
-
262
- @property
263
- @pulumi.getter(name="withGrantOption")
264
- def with_grant_option(self) -> Optional[pulumi.Input[bool]]:
265
- """
266
- When this is set to true, allows the recipient role to grant the privileges to other roles.
267
- """
268
- return pulumi.get(self, "with_grant_option")
269
-
270
- @with_grant_option.setter
271
- def with_grant_option(self, value: Optional[pulumi.Input[bool]]):
272
- pulumi.set(self, "with_grant_option", value)
273
-
274
-
275
- class TagGrant(pulumi.CustomResource):
276
- @overload
277
- def __init__(__self__,
278
- resource_name: str,
279
- opts: Optional[pulumi.ResourceOptions] = None,
280
- database_name: Optional[pulumi.Input[str]] = None,
281
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
282
- privilege: Optional[pulumi.Input[str]] = None,
283
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
284
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
285
- schema_name: Optional[pulumi.Input[str]] = None,
286
- tag_name: Optional[pulumi.Input[str]] = None,
287
- with_grant_option: Optional[pulumi.Input[bool]] = None,
288
- __props__=None):
289
- """
290
- > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use GrantPrivilegesToAccountRole instead. <deprecation>
291
-
292
- ## Example Usage
293
-
294
- ```python
295
- import pulumi
296
- import pulumi_snowflake as snowflake
297
-
298
- example = snowflake.TagGrant("example",
299
- database_name="database",
300
- schema_name="schema",
301
- tag_name="tag",
302
- roles=["TEST_ROLE"],
303
- privilege="OWNERSHIP")
304
- ```
305
-
306
- ## Import
307
-
308
- format is database|schema|tag|privilege|with_grant_option|roles
309
-
310
- ```sh
311
- $ pulumi import snowflake:index/tagGrant:TagGrant example "MY_DATABASE|MY_SCHEMA|MY_TAG|USAGE|false|role1,role2"
312
- ```
313
-
314
- :param str resource_name: The name of the resource.
315
- :param pulumi.ResourceOptions opts: Options for the resource.
316
- :param pulumi.Input[str] database_name: The name of the database containing the tag on which to grant privileges.
317
- :param pulumi.Input[str] privilege: The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
318
- :param pulumi.Input[str] revert_ownership_to_role_name: The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
319
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
320
- :param pulumi.Input[str] schema_name: The name of the schema containing the tag on which to grant privileges.
321
- :param pulumi.Input[str] tag_name: The name of the tag on which to grant privileges.
322
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
323
- """
324
- ...
325
- @overload
326
- def __init__(__self__,
327
- resource_name: str,
328
- args: TagGrantArgs,
329
- opts: Optional[pulumi.ResourceOptions] = None):
330
- """
331
- > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use GrantPrivilegesToAccountRole instead. <deprecation>
332
-
333
- ## Example Usage
334
-
335
- ```python
336
- import pulumi
337
- import pulumi_snowflake as snowflake
338
-
339
- example = snowflake.TagGrant("example",
340
- database_name="database",
341
- schema_name="schema",
342
- tag_name="tag",
343
- roles=["TEST_ROLE"],
344
- privilege="OWNERSHIP")
345
- ```
346
-
347
- ## Import
348
-
349
- format is database|schema|tag|privilege|with_grant_option|roles
350
-
351
- ```sh
352
- $ pulumi import snowflake:index/tagGrant:TagGrant example "MY_DATABASE|MY_SCHEMA|MY_TAG|USAGE|false|role1,role2"
353
- ```
354
-
355
- :param str resource_name: The name of the resource.
356
- :param TagGrantArgs args: The arguments to use to populate this resource's properties.
357
- :param pulumi.ResourceOptions opts: Options for the resource.
358
- """
359
- ...
360
- def __init__(__self__, resource_name: str, *args, **kwargs):
361
- resource_args, opts = _utilities.get_resource_args_opts(TagGrantArgs, pulumi.ResourceOptions, *args, **kwargs)
362
- if resource_args is not None:
363
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
364
- else:
365
- __self__._internal_init(resource_name, *args, **kwargs)
366
-
367
- def _internal_init(__self__,
368
- resource_name: str,
369
- opts: Optional[pulumi.ResourceOptions] = None,
370
- database_name: Optional[pulumi.Input[str]] = None,
371
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
372
- privilege: Optional[pulumi.Input[str]] = None,
373
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
374
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
375
- schema_name: Optional[pulumi.Input[str]] = None,
376
- tag_name: Optional[pulumi.Input[str]] = None,
377
- with_grant_option: Optional[pulumi.Input[bool]] = None,
378
- __props__=None):
379
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
380
- if not isinstance(opts, pulumi.ResourceOptions):
381
- raise TypeError('Expected resource options to be a ResourceOptions instance')
382
- if opts.id is None:
383
- if __props__ is not None:
384
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
385
- __props__ = TagGrantArgs.__new__(TagGrantArgs)
386
-
387
- if database_name is None and not opts.urn:
388
- raise TypeError("Missing required property 'database_name'")
389
- __props__.__dict__["database_name"] = database_name
390
- __props__.__dict__["enable_multiple_grants"] = enable_multiple_grants
391
- __props__.__dict__["privilege"] = privilege
392
- __props__.__dict__["revert_ownership_to_role_name"] = revert_ownership_to_role_name
393
- __props__.__dict__["roles"] = roles
394
- if schema_name is None and not opts.urn:
395
- raise TypeError("Missing required property 'schema_name'")
396
- __props__.__dict__["schema_name"] = schema_name
397
- if tag_name is None and not opts.urn:
398
- raise TypeError("Missing required property 'tag_name'")
399
- __props__.__dict__["tag_name"] = tag_name
400
- __props__.__dict__["with_grant_option"] = with_grant_option
401
- super(TagGrant, __self__).__init__(
402
- 'snowflake:index/tagGrant:TagGrant',
403
- resource_name,
404
- __props__,
405
- opts)
406
-
407
- @staticmethod
408
- def get(resource_name: str,
409
- id: pulumi.Input[str],
410
- opts: Optional[pulumi.ResourceOptions] = None,
411
- database_name: Optional[pulumi.Input[str]] = None,
412
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
413
- privilege: Optional[pulumi.Input[str]] = None,
414
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
415
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
416
- schema_name: Optional[pulumi.Input[str]] = None,
417
- tag_name: Optional[pulumi.Input[str]] = None,
418
- with_grant_option: Optional[pulumi.Input[bool]] = None) -> 'TagGrant':
419
- """
420
- Get an existing TagGrant resource's state with the given name, id, and optional extra
421
- properties used to qualify the lookup.
422
-
423
- :param str resource_name: The unique name of the resulting resource.
424
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
425
- :param pulumi.ResourceOptions opts: Options for the resource.
426
- :param pulumi.Input[str] database_name: The name of the database containing the tag on which to grant privileges.
427
- :param pulumi.Input[str] privilege: The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
428
- :param pulumi.Input[str] revert_ownership_to_role_name: The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
429
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
430
- :param pulumi.Input[str] schema_name: The name of the schema containing the tag on which to grant privileges.
431
- :param pulumi.Input[str] tag_name: The name of the tag on which to grant privileges.
432
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
433
- """
434
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
435
-
436
- __props__ = _TagGrantState.__new__(_TagGrantState)
437
-
438
- __props__.__dict__["database_name"] = database_name
439
- __props__.__dict__["enable_multiple_grants"] = enable_multiple_grants
440
- __props__.__dict__["privilege"] = privilege
441
- __props__.__dict__["revert_ownership_to_role_name"] = revert_ownership_to_role_name
442
- __props__.__dict__["roles"] = roles
443
- __props__.__dict__["schema_name"] = schema_name
444
- __props__.__dict__["tag_name"] = tag_name
445
- __props__.__dict__["with_grant_option"] = with_grant_option
446
- return TagGrant(resource_name, opts=opts, __props__=__props__)
447
-
448
- @property
449
- @pulumi.getter(name="databaseName")
450
- def database_name(self) -> pulumi.Output[str]:
451
- """
452
- The name of the database containing the tag on which to grant privileges.
453
- """
454
- return pulumi.get(self, "database_name")
455
-
456
- @property
457
- @pulumi.getter(name="enableMultipleGrants")
458
- def enable_multiple_grants(self) -> pulumi.Output[Optional[bool]]:
459
- return pulumi.get(self, "enable_multiple_grants")
460
-
461
- @property
462
- @pulumi.getter
463
- def privilege(self) -> pulumi.Output[Optional[str]]:
464
- """
465
- The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
466
- """
467
- return pulumi.get(self, "privilege")
468
-
469
- @property
470
- @pulumi.getter(name="revertOwnershipToRoleName")
471
- def revert_ownership_to_role_name(self) -> pulumi.Output[Optional[str]]:
472
- """
473
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
474
- """
475
- return pulumi.get(self, "revert_ownership_to_role_name")
476
-
477
- @property
478
- @pulumi.getter
479
- def roles(self) -> pulumi.Output[Optional[Sequence[str]]]:
480
- """
481
- Grants privilege to these roles.
482
- """
483
- return pulumi.get(self, "roles")
484
-
485
- @property
486
- @pulumi.getter(name="schemaName")
487
- def schema_name(self) -> pulumi.Output[str]:
488
- """
489
- The name of the schema containing the tag on which to grant privileges.
490
- """
491
- return pulumi.get(self, "schema_name")
492
-
493
- @property
494
- @pulumi.getter(name="tagName")
495
- def tag_name(self) -> pulumi.Output[str]:
496
- """
497
- The name of the tag on which to grant privileges.
498
- """
499
- return pulumi.get(self, "tag_name")
500
-
501
- @property
502
- @pulumi.getter(name="withGrantOption")
503
- def with_grant_option(self) -> pulumi.Output[Optional[bool]]:
504
- """
505
- When this is set to true, allows the recipient role to grant the privileges to other roles.
506
- """
507
- return pulumi.get(self, "with_grant_option")
508
-