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