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