pulumi-snowflake 0.56.0a1721200104__py3-none-any.whl → 0.56.0a1721667766__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 (62) hide show
  1. pulumi_snowflake/__init__.py +66 -217
  2. pulumi_snowflake/_inputs.py +10145 -1557
  3. pulumi_snowflake/_utilities.py +3 -4
  4. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +688 -0
  5. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +641 -0
  6. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +676 -0
  7. pulumi_snowflake/cortex_search_service.py +563 -0
  8. pulumi_snowflake/database.py +854 -232
  9. pulumi_snowflake/database_old.py +556 -0
  10. pulumi_snowflake/external_oauth_integration.py +562 -534
  11. pulumi_snowflake/failover_group.py +2 -2
  12. pulumi_snowflake/get_cortex_search_services.py +197 -0
  13. pulumi_snowflake/get_databases.py +71 -62
  14. pulumi_snowflake/get_security_integrations.py +122 -0
  15. pulumi_snowflake/get_warehouses.py +66 -18
  16. pulumi_snowflake/grant_privileges_to_database_role.py +0 -4
  17. pulumi_snowflake/managed_account.py +7 -7
  18. pulumi_snowflake/oauth_integration.py +4 -0
  19. pulumi_snowflake/oauth_integration_for_custom_clients.py +936 -0
  20. pulumi_snowflake/oauth_integration_for_partner_applications.py +580 -0
  21. pulumi_snowflake/outputs.py +12987 -2857
  22. pulumi_snowflake/pulumi-plugin.json +1 -1
  23. pulumi_snowflake/saml2_integration.py +971 -0
  24. pulumi_snowflake/saml_integration.py +4 -0
  25. pulumi_snowflake/scim_integration.py +255 -105
  26. pulumi_snowflake/secondary_database.py +1059 -0
  27. pulumi_snowflake/sequence.py +6 -6
  28. pulumi_snowflake/shared_database.py +914 -0
  29. pulumi_snowflake/tag_association.py +38 -38
  30. pulumi_snowflake/user_password_policy_attachment.py +32 -0
  31. pulumi_snowflake/warehouse.py +143 -120
  32. {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/METADATA +1 -1
  33. {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/RECORD +35 -50
  34. {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/WHEEL +1 -1
  35. pulumi_snowflake/account_grant.py +0 -319
  36. pulumi_snowflake/database_grant.py +0 -471
  37. pulumi_snowflake/external_table_grant.py +0 -666
  38. pulumi_snowflake/failover_group_grant.py +0 -368
  39. pulumi_snowflake/file_format_grant.py +0 -611
  40. pulumi_snowflake/function_grant.py +0 -721
  41. pulumi_snowflake/grant_privileges_to_role.py +0 -821
  42. pulumi_snowflake/integration_grant.py +0 -416
  43. pulumi_snowflake/masking_policy_grant.py +0 -518
  44. pulumi_snowflake/materialized_view_grant.py +0 -665
  45. pulumi_snowflake/pipe_grant.py +0 -563
  46. pulumi_snowflake/procedure_grant.py +0 -721
  47. pulumi_snowflake/resource_monitor_grant.py +0 -363
  48. pulumi_snowflake/role_grants.py +0 -340
  49. pulumi_snowflake/role_ownership_grant.py +0 -329
  50. pulumi_snowflake/row_access_policy_grant.py +0 -516
  51. pulumi_snowflake/schema_grant.py +0 -603
  52. pulumi_snowflake/sequence_grant.py +0 -611
  53. pulumi_snowflake/stage_grant.py +0 -611
  54. pulumi_snowflake/stream_grant.py +0 -611
  55. pulumi_snowflake/table_grant.py +0 -653
  56. pulumi_snowflake/tag_grant.py +0 -508
  57. pulumi_snowflake/task_grant.py +0 -611
  58. pulumi_snowflake/user_grant.py +0 -370
  59. pulumi_snowflake/user_ownership_grant.py +0 -275
  60. pulumi_snowflake/view_grant.py +0 -685
  61. pulumi_snowflake/warehouse_grant.py +0 -416
  62. {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/top_level.txt +0 -0
@@ -1,611 +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__ = ['FileFormatGrantArgs', 'FileFormatGrant']
13
-
14
- @pulumi.input_type
15
- class FileFormatGrantArgs:
16
- def __init__(__self__, *,
17
- database_name: pulumi.Input[str],
18
- roles: pulumi.Input[Sequence[pulumi.Input[str]]],
19
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
20
- file_format_name: Optional[pulumi.Input[str]] = None,
21
- on_all: Optional[pulumi.Input[bool]] = None,
22
- on_future: Optional[pulumi.Input[bool]] = None,
23
- privilege: Optional[pulumi.Input[str]] = None,
24
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
25
- schema_name: Optional[pulumi.Input[str]] = None,
26
- with_grant_option: Optional[pulumi.Input[bool]] = None):
27
- """
28
- The set of arguments for constructing a FileFormatGrant resource.
29
- :param pulumi.Input[str] database_name: The name of the database containing the current or future file formats on which to grant privileges.
30
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
31
- :param pulumi.Input[str] file_format_name: The name of the file format on which to grant privileges immediately (only valid if on_future is false).
32
- :param pulumi.Input[bool] on_all: When this is set to true and a schema*name is provided, apply this grant on all file formats in the given schema. When this is true and no schema*name is provided apply this grant on all file formats in the given database. The file*format*name field must be unset in order to use on*all. Cannot be used together with on*future.
33
- :param pulumi.Input[bool] on_future: When this is set to true and a schema*name is provided, apply this grant on all future file formats in the given schema. When this is true and no schema*name is provided apply this grant on all future file formats in the given database. The file*format*name field must be unset in order to use on*future. Cannot be used together with on*all.
34
- :param pulumi.Input[str] privilege: The privilege to grant on the current or future file format. To grant all privileges, use the value `ALL PRIVILEGES`
35
- :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`
36
- :param pulumi.Input[str] schema_name: The name of the schema containing the current or future file formats on which to grant privileges.
37
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
38
- """
39
- pulumi.set(__self__, "database_name", database_name)
40
- pulumi.set(__self__, "roles", roles)
41
- if enable_multiple_grants is not None:
42
- pulumi.set(__self__, "enable_multiple_grants", enable_multiple_grants)
43
- if file_format_name is not None:
44
- pulumi.set(__self__, "file_format_name", file_format_name)
45
- if on_all is not None:
46
- pulumi.set(__self__, "on_all", on_all)
47
- if on_future is not None:
48
- pulumi.set(__self__, "on_future", on_future)
49
- if privilege is not None:
50
- pulumi.set(__self__, "privilege", privilege)
51
- if revert_ownership_to_role_name is not None:
52
- pulumi.set(__self__, "revert_ownership_to_role_name", revert_ownership_to_role_name)
53
- if schema_name is not None:
54
- pulumi.set(__self__, "schema_name", schema_name)
55
- if with_grant_option is not None:
56
- pulumi.set(__self__, "with_grant_option", with_grant_option)
57
-
58
- @property
59
- @pulumi.getter(name="databaseName")
60
- def database_name(self) -> pulumi.Input[str]:
61
- """
62
- The name of the database containing the current or future file formats on which to grant privileges.
63
- """
64
- return pulumi.get(self, "database_name")
65
-
66
- @database_name.setter
67
- def database_name(self, value: pulumi.Input[str]):
68
- pulumi.set(self, "database_name", value)
69
-
70
- @property
71
- @pulumi.getter
72
- def roles(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
73
- """
74
- Grants privilege to these roles.
75
- """
76
- return pulumi.get(self, "roles")
77
-
78
- @roles.setter
79
- def roles(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
80
- pulumi.set(self, "roles", value)
81
-
82
- @property
83
- @pulumi.getter(name="enableMultipleGrants")
84
- def enable_multiple_grants(self) -> Optional[pulumi.Input[bool]]:
85
- return pulumi.get(self, "enable_multiple_grants")
86
-
87
- @enable_multiple_grants.setter
88
- def enable_multiple_grants(self, value: Optional[pulumi.Input[bool]]):
89
- pulumi.set(self, "enable_multiple_grants", value)
90
-
91
- @property
92
- @pulumi.getter(name="fileFormatName")
93
- def file_format_name(self) -> Optional[pulumi.Input[str]]:
94
- """
95
- The name of the file format on which to grant privileges immediately (only valid if on_future is false).
96
- """
97
- return pulumi.get(self, "file_format_name")
98
-
99
- @file_format_name.setter
100
- def file_format_name(self, value: Optional[pulumi.Input[str]]):
101
- pulumi.set(self, "file_format_name", value)
102
-
103
- @property
104
- @pulumi.getter(name="onAll")
105
- def on_all(self) -> Optional[pulumi.Input[bool]]:
106
- """
107
- When this is set to true and a schema*name is provided, apply this grant on all file formats in the given schema. When this is true and no schema*name is provided apply this grant on all file formats in the given database. The file*format*name field must be unset in order to use on*all. Cannot be used together with on*future.
108
- """
109
- return pulumi.get(self, "on_all")
110
-
111
- @on_all.setter
112
- def on_all(self, value: Optional[pulumi.Input[bool]]):
113
- pulumi.set(self, "on_all", value)
114
-
115
- @property
116
- @pulumi.getter(name="onFuture")
117
- def on_future(self) -> Optional[pulumi.Input[bool]]:
118
- """
119
- When this is set to true and a schema*name is provided, apply this grant on all future file formats in the given schema. When this is true and no schema*name is provided apply this grant on all future file formats in the given database. The file*format*name field must be unset in order to use on*future. Cannot be used together with on*all.
120
- """
121
- return pulumi.get(self, "on_future")
122
-
123
- @on_future.setter
124
- def on_future(self, value: Optional[pulumi.Input[bool]]):
125
- pulumi.set(self, "on_future", value)
126
-
127
- @property
128
- @pulumi.getter
129
- def privilege(self) -> Optional[pulumi.Input[str]]:
130
- """
131
- The privilege to grant on the current or future file format. To grant all privileges, use the value `ALL PRIVILEGES`
132
- """
133
- return pulumi.get(self, "privilege")
134
-
135
- @privilege.setter
136
- def privilege(self, value: Optional[pulumi.Input[str]]):
137
- pulumi.set(self, "privilege", value)
138
-
139
- @property
140
- @pulumi.getter(name="revertOwnershipToRoleName")
141
- def revert_ownership_to_role_name(self) -> Optional[pulumi.Input[str]]:
142
- """
143
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
144
- """
145
- return pulumi.get(self, "revert_ownership_to_role_name")
146
-
147
- @revert_ownership_to_role_name.setter
148
- def revert_ownership_to_role_name(self, value: Optional[pulumi.Input[str]]):
149
- pulumi.set(self, "revert_ownership_to_role_name", value)
150
-
151
- @property
152
- @pulumi.getter(name="schemaName")
153
- def schema_name(self) -> Optional[pulumi.Input[str]]:
154
- """
155
- The name of the schema containing the current or future file formats on which to grant privileges.
156
- """
157
- return pulumi.get(self, "schema_name")
158
-
159
- @schema_name.setter
160
- def schema_name(self, value: Optional[pulumi.Input[str]]):
161
- pulumi.set(self, "schema_name", value)
162
-
163
- @property
164
- @pulumi.getter(name="withGrantOption")
165
- def with_grant_option(self) -> Optional[pulumi.Input[bool]]:
166
- """
167
- When this is set to true, allows the recipient role to grant the privileges to other roles.
168
- """
169
- return pulumi.get(self, "with_grant_option")
170
-
171
- @with_grant_option.setter
172
- def with_grant_option(self, value: Optional[pulumi.Input[bool]]):
173
- pulumi.set(self, "with_grant_option", value)
174
-
175
-
176
- @pulumi.input_type
177
- class _FileFormatGrantState:
178
- def __init__(__self__, *,
179
- database_name: Optional[pulumi.Input[str]] = None,
180
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
181
- file_format_name: Optional[pulumi.Input[str]] = None,
182
- on_all: Optional[pulumi.Input[bool]] = None,
183
- on_future: Optional[pulumi.Input[bool]] = None,
184
- privilege: Optional[pulumi.Input[str]] = None,
185
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
186
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
187
- schema_name: Optional[pulumi.Input[str]] = None,
188
- with_grant_option: Optional[pulumi.Input[bool]] = None):
189
- """
190
- Input properties used for looking up and filtering FileFormatGrant resources.
191
- :param pulumi.Input[str] database_name: The name of the database containing the current or future file formats on which to grant privileges.
192
- :param pulumi.Input[str] file_format_name: The name of the file format on which to grant privileges immediately (only valid if on_future is false).
193
- :param pulumi.Input[bool] on_all: When this is set to true and a schema*name is provided, apply this grant on all file formats in the given schema. When this is true and no schema*name is provided apply this grant on all file formats in the given database. The file*format*name field must be unset in order to use on*all. Cannot be used together with on*future.
194
- :param pulumi.Input[bool] on_future: When this is set to true and a schema*name is provided, apply this grant on all future file formats in the given schema. When this is true and no schema*name is provided apply this grant on all future file formats in the given database. The file*format*name field must be unset in order to use on*future. Cannot be used together with on*all.
195
- :param pulumi.Input[str] privilege: The privilege to grant on the current or future file format. To grant all privileges, use the value `ALL PRIVILEGES`
196
- :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`
197
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
198
- :param pulumi.Input[str] schema_name: The name of the schema containing the current or future file formats on which to grant privileges.
199
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
200
- """
201
- if database_name is not None:
202
- pulumi.set(__self__, "database_name", database_name)
203
- if enable_multiple_grants is not None:
204
- pulumi.set(__self__, "enable_multiple_grants", enable_multiple_grants)
205
- if file_format_name is not None:
206
- pulumi.set(__self__, "file_format_name", file_format_name)
207
- if on_all is not None:
208
- pulumi.set(__self__, "on_all", on_all)
209
- if on_future is not None:
210
- pulumi.set(__self__, "on_future", on_future)
211
- if privilege is not None:
212
- pulumi.set(__self__, "privilege", privilege)
213
- if revert_ownership_to_role_name is not None:
214
- pulumi.set(__self__, "revert_ownership_to_role_name", revert_ownership_to_role_name)
215
- if roles is not None:
216
- pulumi.set(__self__, "roles", roles)
217
- if schema_name is not None:
218
- pulumi.set(__self__, "schema_name", schema_name)
219
- if with_grant_option is not None:
220
- pulumi.set(__self__, "with_grant_option", with_grant_option)
221
-
222
- @property
223
- @pulumi.getter(name="databaseName")
224
- def database_name(self) -> Optional[pulumi.Input[str]]:
225
- """
226
- The name of the database containing the current or future file formats on which to grant privileges.
227
- """
228
- return pulumi.get(self, "database_name")
229
-
230
- @database_name.setter
231
- def database_name(self, value: Optional[pulumi.Input[str]]):
232
- pulumi.set(self, "database_name", value)
233
-
234
- @property
235
- @pulumi.getter(name="enableMultipleGrants")
236
- def enable_multiple_grants(self) -> Optional[pulumi.Input[bool]]:
237
- return pulumi.get(self, "enable_multiple_grants")
238
-
239
- @enable_multiple_grants.setter
240
- def enable_multiple_grants(self, value: Optional[pulumi.Input[bool]]):
241
- pulumi.set(self, "enable_multiple_grants", value)
242
-
243
- @property
244
- @pulumi.getter(name="fileFormatName")
245
- def file_format_name(self) -> Optional[pulumi.Input[str]]:
246
- """
247
- The name of the file format on which to grant privileges immediately (only valid if on_future is false).
248
- """
249
- return pulumi.get(self, "file_format_name")
250
-
251
- @file_format_name.setter
252
- def file_format_name(self, value: Optional[pulumi.Input[str]]):
253
- pulumi.set(self, "file_format_name", value)
254
-
255
- @property
256
- @pulumi.getter(name="onAll")
257
- def on_all(self) -> Optional[pulumi.Input[bool]]:
258
- """
259
- When this is set to true and a schema*name is provided, apply this grant on all file formats in the given schema. When this is true and no schema*name is provided apply this grant on all file formats in the given database. The file*format*name field must be unset in order to use on*all. Cannot be used together with on*future.
260
- """
261
- return pulumi.get(self, "on_all")
262
-
263
- @on_all.setter
264
- def on_all(self, value: Optional[pulumi.Input[bool]]):
265
- pulumi.set(self, "on_all", value)
266
-
267
- @property
268
- @pulumi.getter(name="onFuture")
269
- def on_future(self) -> Optional[pulumi.Input[bool]]:
270
- """
271
- When this is set to true and a schema*name is provided, apply this grant on all future file formats in the given schema. When this is true and no schema*name is provided apply this grant on all future file formats in the given database. The file*format*name field must be unset in order to use on*future. Cannot be used together with on*all.
272
- """
273
- return pulumi.get(self, "on_future")
274
-
275
- @on_future.setter
276
- def on_future(self, value: Optional[pulumi.Input[bool]]):
277
- pulumi.set(self, "on_future", value)
278
-
279
- @property
280
- @pulumi.getter
281
- def privilege(self) -> Optional[pulumi.Input[str]]:
282
- """
283
- The privilege to grant on the current or future file format. To grant all privileges, use the value `ALL PRIVILEGES`
284
- """
285
- return pulumi.get(self, "privilege")
286
-
287
- @privilege.setter
288
- def privilege(self, value: Optional[pulumi.Input[str]]):
289
- pulumi.set(self, "privilege", value)
290
-
291
- @property
292
- @pulumi.getter(name="revertOwnershipToRoleName")
293
- def revert_ownership_to_role_name(self) -> Optional[pulumi.Input[str]]:
294
- """
295
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
296
- """
297
- return pulumi.get(self, "revert_ownership_to_role_name")
298
-
299
- @revert_ownership_to_role_name.setter
300
- def revert_ownership_to_role_name(self, value: Optional[pulumi.Input[str]]):
301
- pulumi.set(self, "revert_ownership_to_role_name", value)
302
-
303
- @property
304
- @pulumi.getter
305
- def roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
306
- """
307
- Grants privilege to these roles.
308
- """
309
- return pulumi.get(self, "roles")
310
-
311
- @roles.setter
312
- def roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
313
- pulumi.set(self, "roles", value)
314
-
315
- @property
316
- @pulumi.getter(name="schemaName")
317
- def schema_name(self) -> Optional[pulumi.Input[str]]:
318
- """
319
- The name of the schema containing the current or future file formats on which to grant privileges.
320
- """
321
- return pulumi.get(self, "schema_name")
322
-
323
- @schema_name.setter
324
- def schema_name(self, value: Optional[pulumi.Input[str]]):
325
- pulumi.set(self, "schema_name", value)
326
-
327
- @property
328
- @pulumi.getter(name="withGrantOption")
329
- def with_grant_option(self) -> Optional[pulumi.Input[bool]]:
330
- """
331
- When this is set to true, allows the recipient role to grant the privileges to other roles.
332
- """
333
- return pulumi.get(self, "with_grant_option")
334
-
335
- @with_grant_option.setter
336
- def with_grant_option(self, value: Optional[pulumi.Input[bool]]):
337
- pulumi.set(self, "with_grant_option", value)
338
-
339
-
340
- class FileFormatGrant(pulumi.CustomResource):
341
- @overload
342
- def __init__(__self__,
343
- resource_name: str,
344
- opts: Optional[pulumi.ResourceOptions] = None,
345
- database_name: Optional[pulumi.Input[str]] = None,
346
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
347
- file_format_name: Optional[pulumi.Input[str]] = None,
348
- on_all: Optional[pulumi.Input[bool]] = None,
349
- on_future: Optional[pulumi.Input[bool]] = None,
350
- privilege: Optional[pulumi.Input[str]] = None,
351
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
352
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
353
- schema_name: Optional[pulumi.Input[str]] = None,
354
- with_grant_option: Optional[pulumi.Input[bool]] = None,
355
- __props__=None):
356
- """
357
- > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use GrantPrivilegesToAccountRole instead. <deprecation>
358
-
359
- ## Example Usage
360
-
361
- ```python
362
- import pulumi
363
- import pulumi_snowflake as snowflake
364
-
365
- grant = snowflake.FileFormatGrant("grant",
366
- database_name="database",
367
- schema_name="schema",
368
- file_format_name="file_format",
369
- privilege="SELECT",
370
- roles=[
371
- "role1",
372
- "role2",
373
- ],
374
- on_future=False,
375
- with_grant_option=False)
376
- ```
377
-
378
- ## Import
379
-
380
- format is database_name|schema_name|file_format_name|privilege|with_grant_option|on_future|roles
381
-
382
- ```sh
383
- $ pulumi import snowflake:index/fileFormatGrant:FileFormatGrant example "MY_DATABASE|MY_SCHEMA|MY_FILE_FORMAT|USAGE|false|false|role1,role2'
384
- ```
385
-
386
- :param str resource_name: The name of the resource.
387
- :param pulumi.ResourceOptions opts: Options for the resource.
388
- :param pulumi.Input[str] database_name: The name of the database containing the current or future file formats on which to grant privileges.
389
- :param pulumi.Input[str] file_format_name: The name of the file format on which to grant privileges immediately (only valid if on_future is false).
390
- :param pulumi.Input[bool] on_all: When this is set to true and a schema*name is provided, apply this grant on all file formats in the given schema. When this is true and no schema*name is provided apply this grant on all file formats in the given database. The file*format*name field must be unset in order to use on*all. Cannot be used together with on*future.
391
- :param pulumi.Input[bool] on_future: When this is set to true and a schema*name is provided, apply this grant on all future file formats in the given schema. When this is true and no schema*name is provided apply this grant on all future file formats in the given database. The file*format*name field must be unset in order to use on*future. Cannot be used together with on*all.
392
- :param pulumi.Input[str] privilege: The privilege to grant on the current or future file format. To grant all privileges, use the value `ALL PRIVILEGES`
393
- :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`
394
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
395
- :param pulumi.Input[str] schema_name: The name of the schema containing the current or future file formats on which to grant privileges.
396
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
397
- """
398
- ...
399
- @overload
400
- def __init__(__self__,
401
- resource_name: str,
402
- args: FileFormatGrantArgs,
403
- opts: Optional[pulumi.ResourceOptions] = None):
404
- """
405
- > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use GrantPrivilegesToAccountRole instead. <deprecation>
406
-
407
- ## Example Usage
408
-
409
- ```python
410
- import pulumi
411
- import pulumi_snowflake as snowflake
412
-
413
- grant = snowflake.FileFormatGrant("grant",
414
- database_name="database",
415
- schema_name="schema",
416
- file_format_name="file_format",
417
- privilege="SELECT",
418
- roles=[
419
- "role1",
420
- "role2",
421
- ],
422
- on_future=False,
423
- with_grant_option=False)
424
- ```
425
-
426
- ## Import
427
-
428
- format is database_name|schema_name|file_format_name|privilege|with_grant_option|on_future|roles
429
-
430
- ```sh
431
- $ pulumi import snowflake:index/fileFormatGrant:FileFormatGrant example "MY_DATABASE|MY_SCHEMA|MY_FILE_FORMAT|USAGE|false|false|role1,role2'
432
- ```
433
-
434
- :param str resource_name: The name of the resource.
435
- :param FileFormatGrantArgs args: The arguments to use to populate this resource's properties.
436
- :param pulumi.ResourceOptions opts: Options for the resource.
437
- """
438
- ...
439
- def __init__(__self__, resource_name: str, *args, **kwargs):
440
- resource_args, opts = _utilities.get_resource_args_opts(FileFormatGrantArgs, pulumi.ResourceOptions, *args, **kwargs)
441
- if resource_args is not None:
442
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
443
- else:
444
- __self__._internal_init(resource_name, *args, **kwargs)
445
-
446
- def _internal_init(__self__,
447
- resource_name: str,
448
- opts: Optional[pulumi.ResourceOptions] = None,
449
- database_name: Optional[pulumi.Input[str]] = None,
450
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
451
- file_format_name: Optional[pulumi.Input[str]] = None,
452
- on_all: Optional[pulumi.Input[bool]] = None,
453
- on_future: Optional[pulumi.Input[bool]] = None,
454
- privilege: Optional[pulumi.Input[str]] = None,
455
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
456
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
457
- schema_name: Optional[pulumi.Input[str]] = None,
458
- with_grant_option: Optional[pulumi.Input[bool]] = None,
459
- __props__=None):
460
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
461
- if not isinstance(opts, pulumi.ResourceOptions):
462
- raise TypeError('Expected resource options to be a ResourceOptions instance')
463
- if opts.id is None:
464
- if __props__ is not None:
465
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
466
- __props__ = FileFormatGrantArgs.__new__(FileFormatGrantArgs)
467
-
468
- if database_name is None and not opts.urn:
469
- raise TypeError("Missing required property 'database_name'")
470
- __props__.__dict__["database_name"] = database_name
471
- __props__.__dict__["enable_multiple_grants"] = enable_multiple_grants
472
- __props__.__dict__["file_format_name"] = file_format_name
473
- __props__.__dict__["on_all"] = on_all
474
- __props__.__dict__["on_future"] = on_future
475
- __props__.__dict__["privilege"] = privilege
476
- __props__.__dict__["revert_ownership_to_role_name"] = revert_ownership_to_role_name
477
- if roles is None and not opts.urn:
478
- raise TypeError("Missing required property 'roles'")
479
- __props__.__dict__["roles"] = roles
480
- __props__.__dict__["schema_name"] = schema_name
481
- __props__.__dict__["with_grant_option"] = with_grant_option
482
- super(FileFormatGrant, __self__).__init__(
483
- 'snowflake:index/fileFormatGrant:FileFormatGrant',
484
- resource_name,
485
- __props__,
486
- opts)
487
-
488
- @staticmethod
489
- def get(resource_name: str,
490
- id: pulumi.Input[str],
491
- opts: Optional[pulumi.ResourceOptions] = None,
492
- database_name: Optional[pulumi.Input[str]] = None,
493
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
494
- file_format_name: Optional[pulumi.Input[str]] = None,
495
- on_all: Optional[pulumi.Input[bool]] = None,
496
- on_future: Optional[pulumi.Input[bool]] = None,
497
- privilege: Optional[pulumi.Input[str]] = None,
498
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
499
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
500
- schema_name: Optional[pulumi.Input[str]] = None,
501
- with_grant_option: Optional[pulumi.Input[bool]] = None) -> 'FileFormatGrant':
502
- """
503
- Get an existing FileFormatGrant resource's state with the given name, id, and optional extra
504
- properties used to qualify the lookup.
505
-
506
- :param str resource_name: The unique name of the resulting resource.
507
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
508
- :param pulumi.ResourceOptions opts: Options for the resource.
509
- :param pulumi.Input[str] database_name: The name of the database containing the current or future file formats on which to grant privileges.
510
- :param pulumi.Input[str] file_format_name: The name of the file format on which to grant privileges immediately (only valid if on_future is false).
511
- :param pulumi.Input[bool] on_all: When this is set to true and a schema*name is provided, apply this grant on all file formats in the given schema. When this is true and no schema*name is provided apply this grant on all file formats in the given database. The file*format*name field must be unset in order to use on*all. Cannot be used together with on*future.
512
- :param pulumi.Input[bool] on_future: When this is set to true and a schema*name is provided, apply this grant on all future file formats in the given schema. When this is true and no schema*name is provided apply this grant on all future file formats in the given database. The file*format*name field must be unset in order to use on*future. Cannot be used together with on*all.
513
- :param pulumi.Input[str] privilege: The privilege to grant on the current or future file format. To grant all privileges, use the value `ALL PRIVILEGES`
514
- :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`
515
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
516
- :param pulumi.Input[str] schema_name: The name of the schema containing the current or future file formats on which to grant privileges.
517
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
518
- """
519
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
520
-
521
- __props__ = _FileFormatGrantState.__new__(_FileFormatGrantState)
522
-
523
- __props__.__dict__["database_name"] = database_name
524
- __props__.__dict__["enable_multiple_grants"] = enable_multiple_grants
525
- __props__.__dict__["file_format_name"] = file_format_name
526
- __props__.__dict__["on_all"] = on_all
527
- __props__.__dict__["on_future"] = on_future
528
- __props__.__dict__["privilege"] = privilege
529
- __props__.__dict__["revert_ownership_to_role_name"] = revert_ownership_to_role_name
530
- __props__.__dict__["roles"] = roles
531
- __props__.__dict__["schema_name"] = schema_name
532
- __props__.__dict__["with_grant_option"] = with_grant_option
533
- return FileFormatGrant(resource_name, opts=opts, __props__=__props__)
534
-
535
- @property
536
- @pulumi.getter(name="databaseName")
537
- def database_name(self) -> pulumi.Output[str]:
538
- """
539
- The name of the database containing the current or future file formats on which to grant privileges.
540
- """
541
- return pulumi.get(self, "database_name")
542
-
543
- @property
544
- @pulumi.getter(name="enableMultipleGrants")
545
- def enable_multiple_grants(self) -> pulumi.Output[Optional[bool]]:
546
- return pulumi.get(self, "enable_multiple_grants")
547
-
548
- @property
549
- @pulumi.getter(name="fileFormatName")
550
- def file_format_name(self) -> pulumi.Output[Optional[str]]:
551
- """
552
- The name of the file format on which to grant privileges immediately (only valid if on_future is false).
553
- """
554
- return pulumi.get(self, "file_format_name")
555
-
556
- @property
557
- @pulumi.getter(name="onAll")
558
- def on_all(self) -> pulumi.Output[Optional[bool]]:
559
- """
560
- When this is set to true and a schema*name is provided, apply this grant on all file formats in the given schema. When this is true and no schema*name is provided apply this grant on all file formats in the given database. The file*format*name field must be unset in order to use on*all. Cannot be used together with on*future.
561
- """
562
- return pulumi.get(self, "on_all")
563
-
564
- @property
565
- @pulumi.getter(name="onFuture")
566
- def on_future(self) -> pulumi.Output[Optional[bool]]:
567
- """
568
- When this is set to true and a schema*name is provided, apply this grant on all future file formats in the given schema. When this is true and no schema*name is provided apply this grant on all future file formats in the given database. The file*format*name field must be unset in order to use on*future. Cannot be used together with on*all.
569
- """
570
- return pulumi.get(self, "on_future")
571
-
572
- @property
573
- @pulumi.getter
574
- def privilege(self) -> pulumi.Output[Optional[str]]:
575
- """
576
- The privilege to grant on the current or future file format. To grant all privileges, use the value `ALL PRIVILEGES`
577
- """
578
- return pulumi.get(self, "privilege")
579
-
580
- @property
581
- @pulumi.getter(name="revertOwnershipToRoleName")
582
- def revert_ownership_to_role_name(self) -> pulumi.Output[Optional[str]]:
583
- """
584
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
585
- """
586
- return pulumi.get(self, "revert_ownership_to_role_name")
587
-
588
- @property
589
- @pulumi.getter
590
- def roles(self) -> pulumi.Output[Sequence[str]]:
591
- """
592
- Grants privilege to these roles.
593
- """
594
- return pulumi.get(self, "roles")
595
-
596
- @property
597
- @pulumi.getter(name="schemaName")
598
- def schema_name(self) -> pulumi.Output[Optional[str]]:
599
- """
600
- The name of the schema containing the current or future file formats on which to grant privileges.
601
- """
602
- return pulumi.get(self, "schema_name")
603
-
604
- @property
605
- @pulumi.getter(name="withGrantOption")
606
- def with_grant_option(self) -> pulumi.Output[Optional[bool]]:
607
- """
608
- When this is set to true, allows the recipient role to grant the privileges to other roles.
609
- """
610
- return pulumi.get(self, "with_grant_option")
611
-