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