pulumi-snowflake 0.50.3a1710160126__py3-none-any.whl → 1.2.0a1736849992__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-snowflake might be problematic. Click here for more details.

Files changed (182) hide show
  1. pulumi_snowflake/__init__.py +224 -172
  2. pulumi_snowflake/_inputs.py +52857 -1665
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -218
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -48
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -32
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -47
  10. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
  11. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
  12. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
  13. pulumi_snowflake/api_integration.py +33 -52
  14. pulumi_snowflake/authentication_policy.py +622 -0
  15. pulumi_snowflake/config/__init__.pyi +76 -99
  16. pulumi_snowflake/config/outputs.py +5 -0
  17. pulumi_snowflake/config/vars.py +93 -124
  18. pulumi_snowflake/cortex_search_service.py +596 -0
  19. pulumi_snowflake/database.py +819 -213
  20. pulumi_snowflake/database_role.py +81 -44
  21. pulumi_snowflake/dynamic_table.py +42 -49
  22. pulumi_snowflake/email_notification_integration.py +33 -28
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
  24. pulumi_snowflake/external_function.py +54 -75
  25. pulumi_snowflake/external_oauth_integration.py +593 -542
  26. pulumi_snowflake/external_table.py +67 -90
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +57 -98
  29. pulumi_snowflake/file_format.py +33 -28
  30. pulumi_snowflake/function_java.py +1211 -0
  31. pulumi_snowflake/function_javascript.py +882 -0
  32. pulumi_snowflake/function_python.py +1212 -0
  33. pulumi_snowflake/function_scala.py +1212 -0
  34. pulumi_snowflake/function_sql.py +835 -0
  35. pulumi_snowflake/get_account_roles.py +129 -0
  36. pulumi_snowflake/get_accounts.py +53 -22
  37. pulumi_snowflake/get_alerts.py +22 -9
  38. pulumi_snowflake/get_connections.py +109 -0
  39. pulumi_snowflake/get_cortex_search_services.py +216 -0
  40. pulumi_snowflake/get_current_account.py +24 -13
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -9
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -47
  45. pulumi_snowflake/get_databases.py +91 -73
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -9
  48. pulumi_snowflake/get_external_tables.py +28 -9
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -9
  51. pulumi_snowflake/get_functions.py +28 -9
  52. pulumi_snowflake/get_grants.py +207 -84
  53. pulumi_snowflake/get_masking_policies.py +91 -51
  54. pulumi_snowflake/get_materialized_views.py +28 -9
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -15
  57. pulumi_snowflake/get_pipes.py +28 -9
  58. pulumi_snowflake/get_procedures.py +28 -9
  59. pulumi_snowflake/get_resource_monitors.py +37 -24
  60. pulumi_snowflake/get_row_access_policies.py +91 -51
  61. pulumi_snowflake/get_schemas.py +145 -41
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -9
  65. pulumi_snowflake/get_shares.py +18 -9
  66. pulumi_snowflake/get_stages.py +28 -9
  67. pulumi_snowflake/get_storage_integrations.py +16 -9
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -54
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +120 -5
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -9
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -54
  77. pulumi_snowflake/get_users.py +116 -44
  78. pulumi_snowflake/get_views.py +114 -54
  79. pulumi_snowflake/get_warehouses.py +79 -26
  80. pulumi_snowflake/grant_account_role.py +28 -75
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -94
  83. pulumi_snowflake/grant_ownership.py +382 -0
  84. pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
  85. pulumi_snowflake/grant_privileges_to_database_role.py +37 -383
  86. pulumi_snowflake/grant_privileges_to_share.py +96 -44
  87. pulumi_snowflake/legacy_service_user.py +3670 -0
  88. pulumi_snowflake/managed_account.py +40 -11
  89. pulumi_snowflake/masking_policy.py +213 -310
  90. pulumi_snowflake/materialized_view.py +62 -71
  91. pulumi_snowflake/network_policy.py +217 -61
  92. pulumi_snowflake/network_policy_attachment.py +5 -34
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +49 -84
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
  97. pulumi_snowflake/object_parameter.py +10 -101
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -4
  101. pulumi_snowflake/primary_connection.py +330 -0
  102. pulumi_snowflake/procedure_java.py +1273 -0
  103. pulumi_snowflake/procedure_javascript.py +895 -0
  104. pulumi_snowflake/procedure_python.py +1226 -0
  105. pulumi_snowflake/procedure_scala.py +1273 -0
  106. pulumi_snowflake/procedure_sql.py +895 -0
  107. pulumi_snowflake/provider.py +378 -613
  108. pulumi_snowflake/pulumi-plugin.json +2 -1
  109. pulumi_snowflake/resource_monitor.py +118 -327
  110. pulumi_snowflake/row_access_policy.py +200 -149
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
  112. pulumi_snowflake/schema.py +949 -178
  113. pulumi_snowflake/scim_integration.py +286 -109
  114. pulumi_snowflake/secondary_connection.py +339 -0
  115. pulumi_snowflake/secondary_database.py +1080 -0
  116. pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
  117. pulumi_snowflake/secret_with_basic_authentication.py +500 -0
  118. pulumi_snowflake/secret_with_client_credentials.py +511 -0
  119. pulumi_snowflake/secret_with_generic_string.py +452 -0
  120. pulumi_snowflake/sequence.py +9 -34
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +33 -28
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -84
  125. pulumi_snowflake/storage_integration.py +46 -4
  126. pulumi_snowflake/stream_on_directory_table.py +517 -0
  127. pulumi_snowflake/stream_on_external_table.py +632 -0
  128. pulumi_snowflake/stream_on_table.py +666 -0
  129. pulumi_snowflake/stream_on_view.py +666 -0
  130. pulumi_snowflake/streamlit.py +671 -0
  131. pulumi_snowflake/table.py +86 -97
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -172
  134. pulumi_snowflake/tag.py +142 -74
  135. pulumi_snowflake/tag_association.py +40 -215
  136. pulumi_snowflake/task.py +3048 -418
  137. pulumi_snowflake/user.py +3351 -384
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +5 -4
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -215
  142. pulumi_snowflake/warehouse.py +184 -168
  143. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/METADATA +7 -6
  144. pulumi_snowflake-1.2.0a1736849992.dist-info/RECORD +148 -0
  145. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -343
  147. pulumi_snowflake/database_grant.py +0 -495
  148. pulumi_snowflake/external_table_grant.py +0 -690
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -635
  151. pulumi_snowflake/function.py +0 -872
  152. pulumi_snowflake/function_grant.py +0 -745
  153. pulumi_snowflake/get_role.py +0 -121
  154. pulumi_snowflake/get_roles.py +0 -120
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -825
  156. pulumi_snowflake/integration_grant.py +0 -440
  157. pulumi_snowflake/masking_policy_grant.py +0 -542
  158. pulumi_snowflake/materialized_view_grant.py +0 -689
  159. pulumi_snowflake/pipe_grant.py +0 -587
  160. pulumi_snowflake/procedure.py +0 -887
  161. pulumi_snowflake/procedure_grant.py +0 -745
  162. pulumi_snowflake/resource_monitor_grant.py +0 -387
  163. pulumi_snowflake/role.py +0 -273
  164. pulumi_snowflake/role_grants.py +0 -352
  165. pulumi_snowflake/role_ownership_grant.py +0 -338
  166. pulumi_snowflake/row_access_policy_grant.py +0 -540
  167. pulumi_snowflake/schema_grant.py +0 -647
  168. pulumi_snowflake/sequence_grant.py +0 -635
  169. pulumi_snowflake/session_parameter.py +0 -332
  170. pulumi_snowflake/stage_grant.py +0 -635
  171. pulumi_snowflake/stream.py +0 -614
  172. pulumi_snowflake/stream_grant.py +0 -635
  173. pulumi_snowflake/table_grant.py +0 -677
  174. pulumi_snowflake/tag_grant.py +0 -532
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -635
  177. pulumi_snowflake/user_grant.py +0 -394
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -705
  180. pulumi_snowflake/warehouse_grant.py +0 -440
  181. pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/top_level.txt +0 -0
@@ -1,690 +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[bool] enable_multiple_grants: When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
33
- grants applied to roles and objects outside Terraform.
34
- :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).
35
- :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.
36
- :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.
37
- :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`
38
- :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`
39
- :param pulumi.Input[str] schema_name: The name of the schema containing the current or future external tables on which to grant privileges.
40
- :param pulumi.Input[Sequence[pulumi.Input[str]]] shares: Grants privilege to these shares (only valid if on_future is false).
41
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
42
- """
43
- pulumi.set(__self__, "database_name", database_name)
44
- pulumi.set(__self__, "roles", roles)
45
- if enable_multiple_grants is not None:
46
- pulumi.set(__self__, "enable_multiple_grants", enable_multiple_grants)
47
- if external_table_name is not None:
48
- pulumi.set(__self__, "external_table_name", external_table_name)
49
- if on_all is not None:
50
- pulumi.set(__self__, "on_all", on_all)
51
- if on_future is not None:
52
- pulumi.set(__self__, "on_future", on_future)
53
- if privilege is not None:
54
- pulumi.set(__self__, "privilege", privilege)
55
- if revert_ownership_to_role_name is not None:
56
- pulumi.set(__self__, "revert_ownership_to_role_name", revert_ownership_to_role_name)
57
- if schema_name is not None:
58
- pulumi.set(__self__, "schema_name", schema_name)
59
- if shares is not None:
60
- pulumi.set(__self__, "shares", shares)
61
- if with_grant_option is not None:
62
- pulumi.set(__self__, "with_grant_option", with_grant_option)
63
-
64
- @property
65
- @pulumi.getter(name="databaseName")
66
- def database_name(self) -> pulumi.Input[str]:
67
- """
68
- The name of the database containing the current or future external tables on which to grant privileges.
69
- """
70
- return pulumi.get(self, "database_name")
71
-
72
- @database_name.setter
73
- def database_name(self, value: pulumi.Input[str]):
74
- pulumi.set(self, "database_name", value)
75
-
76
- @property
77
- @pulumi.getter
78
- def roles(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
79
- """
80
- Grants privilege to these roles.
81
- """
82
- return pulumi.get(self, "roles")
83
-
84
- @roles.setter
85
- def roles(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
86
- pulumi.set(self, "roles", value)
87
-
88
- @property
89
- @pulumi.getter(name="enableMultipleGrants")
90
- def enable_multiple_grants(self) -> Optional[pulumi.Input[bool]]:
91
- """
92
- When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
93
- grants applied to roles and objects outside Terraform.
94
- """
95
- return pulumi.get(self, "enable_multiple_grants")
96
-
97
- @enable_multiple_grants.setter
98
- def enable_multiple_grants(self, value: Optional[pulumi.Input[bool]]):
99
- pulumi.set(self, "enable_multiple_grants", value)
100
-
101
- @property
102
- @pulumi.getter(name="externalTableName")
103
- def external_table_name(self) -> Optional[pulumi.Input[str]]:
104
- """
105
- The name of the external table on which to grant privileges immediately (only valid if on_future is false).
106
- """
107
- return pulumi.get(self, "external_table_name")
108
-
109
- @external_table_name.setter
110
- def external_table_name(self, value: Optional[pulumi.Input[str]]):
111
- pulumi.set(self, "external_table_name", value)
112
-
113
- @property
114
- @pulumi.getter(name="onAll")
115
- def on_all(self) -> Optional[pulumi.Input[bool]]:
116
- """
117
- 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.
118
- """
119
- return pulumi.get(self, "on_all")
120
-
121
- @on_all.setter
122
- def on_all(self, value: Optional[pulumi.Input[bool]]):
123
- pulumi.set(self, "on_all", value)
124
-
125
- @property
126
- @pulumi.getter(name="onFuture")
127
- def on_future(self) -> Optional[pulumi.Input[bool]]:
128
- """
129
- 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.
130
- """
131
- return pulumi.get(self, "on_future")
132
-
133
- @on_future.setter
134
- def on_future(self, value: Optional[pulumi.Input[bool]]):
135
- pulumi.set(self, "on_future", value)
136
-
137
- @property
138
- @pulumi.getter
139
- def privilege(self) -> Optional[pulumi.Input[str]]:
140
- """
141
- The privilege to grant on the current or future external table. To grant all privileges, use the value `ALL PRIVILEGES`
142
- """
143
- return pulumi.get(self, "privilege")
144
-
145
- @privilege.setter
146
- def privilege(self, value: Optional[pulumi.Input[str]]):
147
- pulumi.set(self, "privilege", value)
148
-
149
- @property
150
- @pulumi.getter(name="revertOwnershipToRoleName")
151
- def revert_ownership_to_role_name(self) -> Optional[pulumi.Input[str]]:
152
- """
153
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
154
- """
155
- return pulumi.get(self, "revert_ownership_to_role_name")
156
-
157
- @revert_ownership_to_role_name.setter
158
- def revert_ownership_to_role_name(self, value: Optional[pulumi.Input[str]]):
159
- pulumi.set(self, "revert_ownership_to_role_name", value)
160
-
161
- @property
162
- @pulumi.getter(name="schemaName")
163
- def schema_name(self) -> Optional[pulumi.Input[str]]:
164
- """
165
- The name of the schema containing the current or future external tables on which to grant privileges.
166
- """
167
- return pulumi.get(self, "schema_name")
168
-
169
- @schema_name.setter
170
- def schema_name(self, value: Optional[pulumi.Input[str]]):
171
- pulumi.set(self, "schema_name", value)
172
-
173
- @property
174
- @pulumi.getter
175
- def shares(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
176
- """
177
- Grants privilege to these shares (only valid if on_future is false).
178
- """
179
- return pulumi.get(self, "shares")
180
-
181
- @shares.setter
182
- def shares(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
183
- pulumi.set(self, "shares", value)
184
-
185
- @property
186
- @pulumi.getter(name="withGrantOption")
187
- def with_grant_option(self) -> Optional[pulumi.Input[bool]]:
188
- """
189
- When this is set to true, allows the recipient role to grant the privileges to other roles.
190
- """
191
- return pulumi.get(self, "with_grant_option")
192
-
193
- @with_grant_option.setter
194
- def with_grant_option(self, value: Optional[pulumi.Input[bool]]):
195
- pulumi.set(self, "with_grant_option", value)
196
-
197
-
198
- @pulumi.input_type
199
- class _ExternalTableGrantState:
200
- def __init__(__self__, *,
201
- database_name: Optional[pulumi.Input[str]] = None,
202
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
203
- external_table_name: Optional[pulumi.Input[str]] = None,
204
- on_all: Optional[pulumi.Input[bool]] = None,
205
- on_future: Optional[pulumi.Input[bool]] = None,
206
- privilege: Optional[pulumi.Input[str]] = None,
207
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
208
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
209
- schema_name: Optional[pulumi.Input[str]] = None,
210
- shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
211
- with_grant_option: Optional[pulumi.Input[bool]] = None):
212
- """
213
- Input properties used for looking up and filtering ExternalTableGrant resources.
214
- :param pulumi.Input[str] database_name: The name of the database containing the current or future external tables on which to grant privileges.
215
- :param pulumi.Input[bool] enable_multiple_grants: When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
216
- grants applied to roles and objects outside Terraform.
217
- :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).
218
- :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.
219
- :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.
220
- :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`
221
- :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`
222
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
223
- :param pulumi.Input[str] schema_name: The name of the schema containing the current or future external tables on which to grant privileges.
224
- :param pulumi.Input[Sequence[pulumi.Input[str]]] shares: Grants privilege to these shares (only valid if on_future is false).
225
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
226
- """
227
- if database_name is not None:
228
- pulumi.set(__self__, "database_name", database_name)
229
- if enable_multiple_grants is not None:
230
- pulumi.set(__self__, "enable_multiple_grants", enable_multiple_grants)
231
- if external_table_name is not None:
232
- pulumi.set(__self__, "external_table_name", external_table_name)
233
- if on_all is not None:
234
- pulumi.set(__self__, "on_all", on_all)
235
- if on_future is not None:
236
- pulumi.set(__self__, "on_future", on_future)
237
- if privilege is not None:
238
- pulumi.set(__self__, "privilege", privilege)
239
- if revert_ownership_to_role_name is not None:
240
- pulumi.set(__self__, "revert_ownership_to_role_name", revert_ownership_to_role_name)
241
- if roles is not None:
242
- pulumi.set(__self__, "roles", roles)
243
- if schema_name is not None:
244
- pulumi.set(__self__, "schema_name", schema_name)
245
- if shares is not None:
246
- pulumi.set(__self__, "shares", shares)
247
- if with_grant_option is not None:
248
- pulumi.set(__self__, "with_grant_option", with_grant_option)
249
-
250
- @property
251
- @pulumi.getter(name="databaseName")
252
- def database_name(self) -> Optional[pulumi.Input[str]]:
253
- """
254
- The name of the database containing the current or future external tables on which to grant privileges.
255
- """
256
- return pulumi.get(self, "database_name")
257
-
258
- @database_name.setter
259
- def database_name(self, value: Optional[pulumi.Input[str]]):
260
- pulumi.set(self, "database_name", value)
261
-
262
- @property
263
- @pulumi.getter(name="enableMultipleGrants")
264
- def enable_multiple_grants(self) -> Optional[pulumi.Input[bool]]:
265
- """
266
- When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
267
- grants applied to roles and objects outside Terraform.
268
- """
269
- return pulumi.get(self, "enable_multiple_grants")
270
-
271
- @enable_multiple_grants.setter
272
- def enable_multiple_grants(self, value: Optional[pulumi.Input[bool]]):
273
- pulumi.set(self, "enable_multiple_grants", value)
274
-
275
- @property
276
- @pulumi.getter(name="externalTableName")
277
- def external_table_name(self) -> Optional[pulumi.Input[str]]:
278
- """
279
- The name of the external table on which to grant privileges immediately (only valid if on_future is false).
280
- """
281
- return pulumi.get(self, "external_table_name")
282
-
283
- @external_table_name.setter
284
- def external_table_name(self, value: Optional[pulumi.Input[str]]):
285
- pulumi.set(self, "external_table_name", value)
286
-
287
- @property
288
- @pulumi.getter(name="onAll")
289
- def on_all(self) -> Optional[pulumi.Input[bool]]:
290
- """
291
- 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.
292
- """
293
- return pulumi.get(self, "on_all")
294
-
295
- @on_all.setter
296
- def on_all(self, value: Optional[pulumi.Input[bool]]):
297
- pulumi.set(self, "on_all", value)
298
-
299
- @property
300
- @pulumi.getter(name="onFuture")
301
- def on_future(self) -> Optional[pulumi.Input[bool]]:
302
- """
303
- 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.
304
- """
305
- return pulumi.get(self, "on_future")
306
-
307
- @on_future.setter
308
- def on_future(self, value: Optional[pulumi.Input[bool]]):
309
- pulumi.set(self, "on_future", value)
310
-
311
- @property
312
- @pulumi.getter
313
- def privilege(self) -> Optional[pulumi.Input[str]]:
314
- """
315
- The privilege to grant on the current or future external table. To grant all privileges, use the value `ALL PRIVILEGES`
316
- """
317
- return pulumi.get(self, "privilege")
318
-
319
- @privilege.setter
320
- def privilege(self, value: Optional[pulumi.Input[str]]):
321
- pulumi.set(self, "privilege", value)
322
-
323
- @property
324
- @pulumi.getter(name="revertOwnershipToRoleName")
325
- def revert_ownership_to_role_name(self) -> Optional[pulumi.Input[str]]:
326
- """
327
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
328
- """
329
- return pulumi.get(self, "revert_ownership_to_role_name")
330
-
331
- @revert_ownership_to_role_name.setter
332
- def revert_ownership_to_role_name(self, value: Optional[pulumi.Input[str]]):
333
- pulumi.set(self, "revert_ownership_to_role_name", value)
334
-
335
- @property
336
- @pulumi.getter
337
- def roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
338
- """
339
- Grants privilege to these roles.
340
- """
341
- return pulumi.get(self, "roles")
342
-
343
- @roles.setter
344
- def roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
345
- pulumi.set(self, "roles", value)
346
-
347
- @property
348
- @pulumi.getter(name="schemaName")
349
- def schema_name(self) -> Optional[pulumi.Input[str]]:
350
- """
351
- The name of the schema containing the current or future external tables on which to grant privileges.
352
- """
353
- return pulumi.get(self, "schema_name")
354
-
355
- @schema_name.setter
356
- def schema_name(self, value: Optional[pulumi.Input[str]]):
357
- pulumi.set(self, "schema_name", value)
358
-
359
- @property
360
- @pulumi.getter
361
- def shares(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
362
- """
363
- Grants privilege to these shares (only valid if on_future is false).
364
- """
365
- return pulumi.get(self, "shares")
366
-
367
- @shares.setter
368
- def shares(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
369
- pulumi.set(self, "shares", value)
370
-
371
- @property
372
- @pulumi.getter(name="withGrantOption")
373
- def with_grant_option(self) -> Optional[pulumi.Input[bool]]:
374
- """
375
- When this is set to true, allows the recipient role to grant the privileges to other roles.
376
- """
377
- return pulumi.get(self, "with_grant_option")
378
-
379
- @with_grant_option.setter
380
- def with_grant_option(self, value: Optional[pulumi.Input[bool]]):
381
- pulumi.set(self, "with_grant_option", value)
382
-
383
-
384
- class ExternalTableGrant(pulumi.CustomResource):
385
- @overload
386
- def __init__(__self__,
387
- resource_name: str,
388
- opts: Optional[pulumi.ResourceOptions] = None,
389
- database_name: Optional[pulumi.Input[str]] = None,
390
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
391
- external_table_name: Optional[pulumi.Input[str]] = None,
392
- on_all: Optional[pulumi.Input[bool]] = None,
393
- on_future: Optional[pulumi.Input[bool]] = None,
394
- privilege: Optional[pulumi.Input[str]] = None,
395
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
396
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
397
- schema_name: Optional[pulumi.Input[str]] = None,
398
- shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
399
- with_grant_option: Optional[pulumi.Input[bool]] = None,
400
- __props__=None):
401
- """
402
- > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use GrantPrivilegesToAccountRole instead. <deprecation>
403
-
404
- ## Example Usage
405
-
406
- <!--Start PulumiCodeChooser -->
407
- ```python
408
- import pulumi
409
- import pulumi_snowflake as snowflake
410
-
411
- grant = snowflake.ExternalTableGrant("grant",
412
- database_name="database",
413
- external_table_name="external_table",
414
- on_future=False,
415
- privilege="SELECT",
416
- roles=[
417
- "role1",
418
- "role2",
419
- ],
420
- schema_name="schema",
421
- shares=[
422
- "share1",
423
- "share2",
424
- ],
425
- with_grant_option=False)
426
- ```
427
- <!--End PulumiCodeChooser -->
428
-
429
- ## Import
430
-
431
- format is database|schema|external_table|privilege|with_grant_option|on_future|roles|shares
432
-
433
- ```sh
434
- $ pulumi import snowflake:index/externalTableGrant:ExternalTableGrant example "MY_DATABASE|MY_SCHEMA|MY_TABLE_NAME|SELECT|false|false|role1,role2|share1,share2"
435
- ```
436
-
437
- :param str resource_name: The name of the resource.
438
- :param pulumi.ResourceOptions opts: Options for the resource.
439
- :param pulumi.Input[str] database_name: The name of the database containing the current or future external tables on which to grant privileges.
440
- :param pulumi.Input[bool] enable_multiple_grants: When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
441
- grants applied to roles and objects outside Terraform.
442
- :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).
443
- :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.
444
- :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.
445
- :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`
446
- :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`
447
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
448
- :param pulumi.Input[str] schema_name: The name of the schema containing the current or future external tables on which to grant privileges.
449
- :param pulumi.Input[Sequence[pulumi.Input[str]]] shares: Grants privilege to these shares (only valid if on_future is false).
450
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
451
- """
452
- ...
453
- @overload
454
- def __init__(__self__,
455
- resource_name: str,
456
- args: ExternalTableGrantArgs,
457
- opts: Optional[pulumi.ResourceOptions] = None):
458
- """
459
- > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use GrantPrivilegesToAccountRole instead. <deprecation>
460
-
461
- ## Example Usage
462
-
463
- <!--Start PulumiCodeChooser -->
464
- ```python
465
- import pulumi
466
- import pulumi_snowflake as snowflake
467
-
468
- grant = snowflake.ExternalTableGrant("grant",
469
- database_name="database",
470
- external_table_name="external_table",
471
- on_future=False,
472
- privilege="SELECT",
473
- roles=[
474
- "role1",
475
- "role2",
476
- ],
477
- schema_name="schema",
478
- shares=[
479
- "share1",
480
- "share2",
481
- ],
482
- with_grant_option=False)
483
- ```
484
- <!--End PulumiCodeChooser -->
485
-
486
- ## Import
487
-
488
- format is database|schema|external_table|privilege|with_grant_option|on_future|roles|shares
489
-
490
- ```sh
491
- $ pulumi import snowflake:index/externalTableGrant:ExternalTableGrant example "MY_DATABASE|MY_SCHEMA|MY_TABLE_NAME|SELECT|false|false|role1,role2|share1,share2"
492
- ```
493
-
494
- :param str resource_name: The name of the resource.
495
- :param ExternalTableGrantArgs args: The arguments to use to populate this resource's properties.
496
- :param pulumi.ResourceOptions opts: Options for the resource.
497
- """
498
- ...
499
- def __init__(__self__, resource_name: str, *args, **kwargs):
500
- resource_args, opts = _utilities.get_resource_args_opts(ExternalTableGrantArgs, pulumi.ResourceOptions, *args, **kwargs)
501
- if resource_args is not None:
502
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
503
- else:
504
- __self__._internal_init(resource_name, *args, **kwargs)
505
-
506
- def _internal_init(__self__,
507
- resource_name: str,
508
- opts: Optional[pulumi.ResourceOptions] = None,
509
- database_name: Optional[pulumi.Input[str]] = None,
510
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
511
- external_table_name: Optional[pulumi.Input[str]] = None,
512
- on_all: Optional[pulumi.Input[bool]] = None,
513
- on_future: Optional[pulumi.Input[bool]] = None,
514
- privilege: Optional[pulumi.Input[str]] = None,
515
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
516
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
517
- schema_name: Optional[pulumi.Input[str]] = None,
518
- shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
519
- with_grant_option: Optional[pulumi.Input[bool]] = None,
520
- __props__=None):
521
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
522
- if not isinstance(opts, pulumi.ResourceOptions):
523
- raise TypeError('Expected resource options to be a ResourceOptions instance')
524
- if opts.id is None:
525
- if __props__ is not None:
526
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
527
- __props__ = ExternalTableGrantArgs.__new__(ExternalTableGrantArgs)
528
-
529
- if database_name is None and not opts.urn:
530
- raise TypeError("Missing required property 'database_name'")
531
- __props__.__dict__["database_name"] = database_name
532
- __props__.__dict__["enable_multiple_grants"] = enable_multiple_grants
533
- __props__.__dict__["external_table_name"] = external_table_name
534
- __props__.__dict__["on_all"] = on_all
535
- __props__.__dict__["on_future"] = on_future
536
- __props__.__dict__["privilege"] = privilege
537
- __props__.__dict__["revert_ownership_to_role_name"] = revert_ownership_to_role_name
538
- if roles is None and not opts.urn:
539
- raise TypeError("Missing required property 'roles'")
540
- __props__.__dict__["roles"] = roles
541
- __props__.__dict__["schema_name"] = schema_name
542
- __props__.__dict__["shares"] = shares
543
- __props__.__dict__["with_grant_option"] = with_grant_option
544
- super(ExternalTableGrant, __self__).__init__(
545
- 'snowflake:index/externalTableGrant:ExternalTableGrant',
546
- resource_name,
547
- __props__,
548
- opts)
549
-
550
- @staticmethod
551
- def get(resource_name: str,
552
- id: pulumi.Input[str],
553
- opts: Optional[pulumi.ResourceOptions] = None,
554
- database_name: Optional[pulumi.Input[str]] = None,
555
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
556
- external_table_name: Optional[pulumi.Input[str]] = None,
557
- on_all: Optional[pulumi.Input[bool]] = None,
558
- on_future: Optional[pulumi.Input[bool]] = None,
559
- privilege: Optional[pulumi.Input[str]] = None,
560
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
561
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
562
- schema_name: Optional[pulumi.Input[str]] = None,
563
- shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
564
- with_grant_option: Optional[pulumi.Input[bool]] = None) -> 'ExternalTableGrant':
565
- """
566
- Get an existing ExternalTableGrant resource's state with the given name, id, and optional extra
567
- properties used to qualify the lookup.
568
-
569
- :param str resource_name: The unique name of the resulting resource.
570
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
571
- :param pulumi.ResourceOptions opts: Options for the resource.
572
- :param pulumi.Input[str] database_name: The name of the database containing the current or future external tables on which to grant privileges.
573
- :param pulumi.Input[bool] enable_multiple_grants: When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
574
- grants applied to roles and objects outside Terraform.
575
- :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).
576
- :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.
577
- :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.
578
- :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`
579
- :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`
580
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
581
- :param pulumi.Input[str] schema_name: The name of the schema containing the current or future external tables on which to grant privileges.
582
- :param pulumi.Input[Sequence[pulumi.Input[str]]] shares: Grants privilege to these shares (only valid if on_future is false).
583
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
584
- """
585
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
586
-
587
- __props__ = _ExternalTableGrantState.__new__(_ExternalTableGrantState)
588
-
589
- __props__.__dict__["database_name"] = database_name
590
- __props__.__dict__["enable_multiple_grants"] = enable_multiple_grants
591
- __props__.__dict__["external_table_name"] = external_table_name
592
- __props__.__dict__["on_all"] = on_all
593
- __props__.__dict__["on_future"] = on_future
594
- __props__.__dict__["privilege"] = privilege
595
- __props__.__dict__["revert_ownership_to_role_name"] = revert_ownership_to_role_name
596
- __props__.__dict__["roles"] = roles
597
- __props__.__dict__["schema_name"] = schema_name
598
- __props__.__dict__["shares"] = shares
599
- __props__.__dict__["with_grant_option"] = with_grant_option
600
- return ExternalTableGrant(resource_name, opts=opts, __props__=__props__)
601
-
602
- @property
603
- @pulumi.getter(name="databaseName")
604
- def database_name(self) -> pulumi.Output[str]:
605
- """
606
- The name of the database containing the current or future external tables on which to grant privileges.
607
- """
608
- return pulumi.get(self, "database_name")
609
-
610
- @property
611
- @pulumi.getter(name="enableMultipleGrants")
612
- def enable_multiple_grants(self) -> pulumi.Output[Optional[bool]]:
613
- """
614
- When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
615
- grants applied to roles and objects outside Terraform.
616
- """
617
- return pulumi.get(self, "enable_multiple_grants")
618
-
619
- @property
620
- @pulumi.getter(name="externalTableName")
621
- def external_table_name(self) -> pulumi.Output[Optional[str]]:
622
- """
623
- The name of the external table on which to grant privileges immediately (only valid if on_future is false).
624
- """
625
- return pulumi.get(self, "external_table_name")
626
-
627
- @property
628
- @pulumi.getter(name="onAll")
629
- def on_all(self) -> pulumi.Output[Optional[bool]]:
630
- """
631
- 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.
632
- """
633
- return pulumi.get(self, "on_all")
634
-
635
- @property
636
- @pulumi.getter(name="onFuture")
637
- def on_future(self) -> pulumi.Output[Optional[bool]]:
638
- """
639
- 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.
640
- """
641
- return pulumi.get(self, "on_future")
642
-
643
- @property
644
- @pulumi.getter
645
- def privilege(self) -> pulumi.Output[Optional[str]]:
646
- """
647
- The privilege to grant on the current or future external table. To grant all privileges, use the value `ALL PRIVILEGES`
648
- """
649
- return pulumi.get(self, "privilege")
650
-
651
- @property
652
- @pulumi.getter(name="revertOwnershipToRoleName")
653
- def revert_ownership_to_role_name(self) -> pulumi.Output[Optional[str]]:
654
- """
655
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
656
- """
657
- return pulumi.get(self, "revert_ownership_to_role_name")
658
-
659
- @property
660
- @pulumi.getter
661
- def roles(self) -> pulumi.Output[Sequence[str]]:
662
- """
663
- Grants privilege to these roles.
664
- """
665
- return pulumi.get(self, "roles")
666
-
667
- @property
668
- @pulumi.getter(name="schemaName")
669
- def schema_name(self) -> pulumi.Output[Optional[str]]:
670
- """
671
- The name of the schema containing the current or future external tables on which to grant privileges.
672
- """
673
- return pulumi.get(self, "schema_name")
674
-
675
- @property
676
- @pulumi.getter
677
- def shares(self) -> pulumi.Output[Optional[Sequence[str]]]:
678
- """
679
- Grants privilege to these shares (only valid if on_future is false).
680
- """
681
- return pulumi.get(self, "shares")
682
-
683
- @property
684
- @pulumi.getter(name="withGrantOption")
685
- def with_grant_option(self) -> pulumi.Output[Optional[bool]]:
686
- """
687
- When this is set to true, allows the recipient role to grant the privileges to other roles.
688
- """
689
- return pulumi.get(self, "with_grant_option")
690
-