pulumi-snowflake 0.50.2a1709892015__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 +52854 -1662
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -214
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -44
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -28
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -43
  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 +35 -50
  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 -209
  20. pulumi_snowflake/database_role.py +81 -40
  21. pulumi_snowflake/dynamic_table.py +44 -47
  22. pulumi_snowflake/email_notification_integration.py +35 -26
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -139
  24. pulumi_snowflake/external_function.py +54 -71
  25. pulumi_snowflake/external_oauth_integration.py +593 -538
  26. pulumi_snowflake/external_table.py +67 -86
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +59 -96
  29. pulumi_snowflake/file_format.py +33 -24
  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 -5
  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 -9
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -5
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -43
  45. pulumi_snowflake/get_databases.py +91 -69
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -5
  48. pulumi_snowflake/get_external_tables.py +28 -5
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -5
  51. pulumi_snowflake/get_functions.py +28 -5
  52. pulumi_snowflake/get_grants.py +207 -80
  53. pulumi_snowflake/get_masking_policies.py +91 -47
  54. pulumi_snowflake/get_materialized_views.py +28 -5
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -11
  57. pulumi_snowflake/get_pipes.py +28 -5
  58. pulumi_snowflake/get_procedures.py +28 -5
  59. pulumi_snowflake/get_resource_monitors.py +37 -20
  60. pulumi_snowflake/get_row_access_policies.py +91 -47
  61. pulumi_snowflake/get_schemas.py +145 -37
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -5
  65. pulumi_snowflake/get_shares.py +18 -5
  66. pulumi_snowflake/get_stages.py +28 -5
  67. pulumi_snowflake/get_storage_integrations.py +16 -5
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -50
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -5
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +121 -6
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -5
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -50
  77. pulumi_snowflake/get_users.py +116 -40
  78. pulumi_snowflake/get_views.py +114 -50
  79. pulumi_snowflake/get_warehouses.py +79 -22
  80. pulumi_snowflake/grant_account_role.py +28 -61
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -108
  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 -223
  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 +42 -9
  89. pulumi_snowflake/masking_policy.py +213 -306
  90. pulumi_snowflake/materialized_view.py +62 -67
  91. pulumi_snowflake/network_policy.py +217 -57
  92. pulumi_snowflake/network_policy_attachment.py +7 -32
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +51 -82
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -188
  97. pulumi_snowflake/object_parameter.py +12 -99
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -0
  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 -323
  110. pulumi_snowflake/row_access_policy.py +200 -145
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -295
  112. pulumi_snowflake/schema.py +949 -174
  113. pulumi_snowflake/scim_integration.py +286 -105
  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 -30
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +35 -26
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -80
  125. pulumi_snowflake/storage_integration.py +48 -2
  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 -93
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -168
  134. pulumi_snowflake/tag.py +142 -70
  135. pulumi_snowflake/tag_association.py +40 -211
  136. pulumi_snowflake/task.py +3048 -414
  137. pulumi_snowflake/user.py +3351 -380
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +7 -6
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -211
  142. pulumi_snowflake/warehouse.py +184 -164
  143. {pulumi_snowflake-0.50.2a1709892015.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.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -339
  147. pulumi_snowflake/database_grant.py +0 -491
  148. pulumi_snowflake/external_table_grant.py +0 -686
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -631
  151. pulumi_snowflake/function.py +0 -868
  152. pulumi_snowflake/function_grant.py +0 -741
  153. pulumi_snowflake/get_role.py +0 -117
  154. pulumi_snowflake/get_roles.py +0 -116
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -667
  156. pulumi_snowflake/integration_grant.py +0 -436
  157. pulumi_snowflake/masking_policy_grant.py +0 -538
  158. pulumi_snowflake/materialized_view_grant.py +0 -685
  159. pulumi_snowflake/pipe_grant.py +0 -583
  160. pulumi_snowflake/procedure.py +0 -883
  161. pulumi_snowflake/procedure_grant.py +0 -741
  162. pulumi_snowflake/resource_monitor_grant.py +0 -383
  163. pulumi_snowflake/role.py +0 -269
  164. pulumi_snowflake/role_grants.py +0 -348
  165. pulumi_snowflake/role_ownership_grant.py +0 -334
  166. pulumi_snowflake/row_access_policy_grant.py +0 -536
  167. pulumi_snowflake/schema_grant.py +0 -643
  168. pulumi_snowflake/sequence_grant.py +0 -631
  169. pulumi_snowflake/session_parameter.py +0 -328
  170. pulumi_snowflake/stage_grant.py +0 -631
  171. pulumi_snowflake/stream.py +0 -610
  172. pulumi_snowflake/stream_grant.py +0 -631
  173. pulumi_snowflake/table_grant.py +0 -673
  174. pulumi_snowflake/tag_grant.py +0 -528
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -631
  177. pulumi_snowflake/user_grant.py +0 -390
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -701
  180. pulumi_snowflake/warehouse_grant.py +0 -436
  181. pulumi_snowflake-0.50.2a1709892015.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
@@ -1,436 +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__ = ['IntegrationGrantArgs', 'IntegrationGrant']
13
-
14
- @pulumi.input_type
15
- class IntegrationGrantArgs:
16
- def __init__(__self__, *,
17
- integration_name: pulumi.Input[str],
18
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
19
- privilege: Optional[pulumi.Input[str]] = None,
20
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
21
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
22
- with_grant_option: Optional[pulumi.Input[bool]] = None):
23
- """
24
- The set of arguments for constructing a IntegrationGrant resource.
25
- :param pulumi.Input[str] integration_name: Identifier for the integration; must be unique for your account.
26
- :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
27
- grants applied to roles and objects outside Terraform.
28
- :param pulumi.Input[str] privilege: The privilege to grant on the integration. To grant all privileges, use the value `ALL PRIVILEGES`
29
- :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`
30
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
31
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
32
- """
33
- pulumi.set(__self__, "integration_name", integration_name)
34
- if enable_multiple_grants is not None:
35
- pulumi.set(__self__, "enable_multiple_grants", enable_multiple_grants)
36
- if privilege is not None:
37
- pulumi.set(__self__, "privilege", privilege)
38
- if revert_ownership_to_role_name is not None:
39
- pulumi.set(__self__, "revert_ownership_to_role_name", revert_ownership_to_role_name)
40
- if roles is not None:
41
- pulumi.set(__self__, "roles", roles)
42
- if with_grant_option is not None:
43
- pulumi.set(__self__, "with_grant_option", with_grant_option)
44
-
45
- @property
46
- @pulumi.getter(name="integrationName")
47
- def integration_name(self) -> pulumi.Input[str]:
48
- """
49
- Identifier for the integration; must be unique for your account.
50
- """
51
- return pulumi.get(self, "integration_name")
52
-
53
- @integration_name.setter
54
- def integration_name(self, value: pulumi.Input[str]):
55
- pulumi.set(self, "integration_name", value)
56
-
57
- @property
58
- @pulumi.getter(name="enableMultipleGrants")
59
- def enable_multiple_grants(self) -> Optional[pulumi.Input[bool]]:
60
- """
61
- When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
62
- grants applied to roles and objects outside Terraform.
63
- """
64
- return pulumi.get(self, "enable_multiple_grants")
65
-
66
- @enable_multiple_grants.setter
67
- def enable_multiple_grants(self, value: Optional[pulumi.Input[bool]]):
68
- pulumi.set(self, "enable_multiple_grants", value)
69
-
70
- @property
71
- @pulumi.getter
72
- def privilege(self) -> Optional[pulumi.Input[str]]:
73
- """
74
- The privilege to grant on the integration. To grant all privileges, use the value `ALL PRIVILEGES`
75
- """
76
- return pulumi.get(self, "privilege")
77
-
78
- @privilege.setter
79
- def privilege(self, value: Optional[pulumi.Input[str]]):
80
- pulumi.set(self, "privilege", value)
81
-
82
- @property
83
- @pulumi.getter(name="revertOwnershipToRoleName")
84
- def revert_ownership_to_role_name(self) -> Optional[pulumi.Input[str]]:
85
- """
86
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
87
- """
88
- return pulumi.get(self, "revert_ownership_to_role_name")
89
-
90
- @revert_ownership_to_role_name.setter
91
- def revert_ownership_to_role_name(self, value: Optional[pulumi.Input[str]]):
92
- pulumi.set(self, "revert_ownership_to_role_name", value)
93
-
94
- @property
95
- @pulumi.getter
96
- def roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
97
- """
98
- Grants privilege to these roles.
99
- """
100
- return pulumi.get(self, "roles")
101
-
102
- @roles.setter
103
- def roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
104
- pulumi.set(self, "roles", value)
105
-
106
- @property
107
- @pulumi.getter(name="withGrantOption")
108
- def with_grant_option(self) -> Optional[pulumi.Input[bool]]:
109
- """
110
- When this is set to true, allows the recipient role to grant the privileges to other roles.
111
- """
112
- return pulumi.get(self, "with_grant_option")
113
-
114
- @with_grant_option.setter
115
- def with_grant_option(self, value: Optional[pulumi.Input[bool]]):
116
- pulumi.set(self, "with_grant_option", value)
117
-
118
-
119
- @pulumi.input_type
120
- class _IntegrationGrantState:
121
- def __init__(__self__, *,
122
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
123
- integration_name: Optional[pulumi.Input[str]] = None,
124
- privilege: Optional[pulumi.Input[str]] = None,
125
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
126
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
127
- with_grant_option: Optional[pulumi.Input[bool]] = None):
128
- """
129
- Input properties used for looking up and filtering IntegrationGrant resources.
130
- :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
131
- grants applied to roles and objects outside Terraform.
132
- :param pulumi.Input[str] integration_name: Identifier for the integration; must be unique for your account.
133
- :param pulumi.Input[str] privilege: The privilege to grant on the integration. To grant all privileges, use the value `ALL PRIVILEGES`
134
- :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`
135
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
136
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
137
- """
138
- if enable_multiple_grants is not None:
139
- pulumi.set(__self__, "enable_multiple_grants", enable_multiple_grants)
140
- if integration_name is not None:
141
- pulumi.set(__self__, "integration_name", integration_name)
142
- if privilege is not None:
143
- pulumi.set(__self__, "privilege", privilege)
144
- if revert_ownership_to_role_name is not None:
145
- pulumi.set(__self__, "revert_ownership_to_role_name", revert_ownership_to_role_name)
146
- if roles is not None:
147
- pulumi.set(__self__, "roles", roles)
148
- if with_grant_option is not None:
149
- pulumi.set(__self__, "with_grant_option", with_grant_option)
150
-
151
- @property
152
- @pulumi.getter(name="enableMultipleGrants")
153
- def enable_multiple_grants(self) -> Optional[pulumi.Input[bool]]:
154
- """
155
- When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
156
- grants applied to roles and objects outside Terraform.
157
- """
158
- return pulumi.get(self, "enable_multiple_grants")
159
-
160
- @enable_multiple_grants.setter
161
- def enable_multiple_grants(self, value: Optional[pulumi.Input[bool]]):
162
- pulumi.set(self, "enable_multiple_grants", value)
163
-
164
- @property
165
- @pulumi.getter(name="integrationName")
166
- def integration_name(self) -> Optional[pulumi.Input[str]]:
167
- """
168
- Identifier for the integration; must be unique for your account.
169
- """
170
- return pulumi.get(self, "integration_name")
171
-
172
- @integration_name.setter
173
- def integration_name(self, value: Optional[pulumi.Input[str]]):
174
- pulumi.set(self, "integration_name", value)
175
-
176
- @property
177
- @pulumi.getter
178
- def privilege(self) -> Optional[pulumi.Input[str]]:
179
- """
180
- The privilege to grant on the integration. To grant all privileges, use the value `ALL PRIVILEGES`
181
- """
182
- return pulumi.get(self, "privilege")
183
-
184
- @privilege.setter
185
- def privilege(self, value: Optional[pulumi.Input[str]]):
186
- pulumi.set(self, "privilege", value)
187
-
188
- @property
189
- @pulumi.getter(name="revertOwnershipToRoleName")
190
- def revert_ownership_to_role_name(self) -> Optional[pulumi.Input[str]]:
191
- """
192
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
193
- """
194
- return pulumi.get(self, "revert_ownership_to_role_name")
195
-
196
- @revert_ownership_to_role_name.setter
197
- def revert_ownership_to_role_name(self, value: Optional[pulumi.Input[str]]):
198
- pulumi.set(self, "revert_ownership_to_role_name", value)
199
-
200
- @property
201
- @pulumi.getter
202
- def roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
203
- """
204
- Grants privilege to these roles.
205
- """
206
- return pulumi.get(self, "roles")
207
-
208
- @roles.setter
209
- def roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
210
- pulumi.set(self, "roles", value)
211
-
212
- @property
213
- @pulumi.getter(name="withGrantOption")
214
- def with_grant_option(self) -> Optional[pulumi.Input[bool]]:
215
- """
216
- When this is set to true, allows the recipient role to grant the privileges to other roles.
217
- """
218
- return pulumi.get(self, "with_grant_option")
219
-
220
- @with_grant_option.setter
221
- def with_grant_option(self, value: Optional[pulumi.Input[bool]]):
222
- pulumi.set(self, "with_grant_option", value)
223
-
224
-
225
- class IntegrationGrant(pulumi.CustomResource):
226
- @overload
227
- def __init__(__self__,
228
- resource_name: str,
229
- opts: Optional[pulumi.ResourceOptions] = None,
230
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
231
- integration_name: Optional[pulumi.Input[str]] = None,
232
- privilege: Optional[pulumi.Input[str]] = None,
233
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
234
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
235
- with_grant_option: Optional[pulumi.Input[bool]] = None,
236
- __props__=None):
237
- """
238
- > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use GrantPrivilegesToAccountRole instead. <deprecation>
239
-
240
- ## Example Usage
241
-
242
- ```python
243
- import pulumi
244
- import pulumi_snowflake as snowflake
245
-
246
- grant = snowflake.IntegrationGrant("grant",
247
- integration_name="integration",
248
- privilege="USAGE",
249
- roles=[
250
- "role1",
251
- "role2",
252
- ],
253
- with_grant_option=False)
254
- ```
255
-
256
- ## Import
257
-
258
- format is integration_name|privilege|with_grant_option|roles
259
-
260
- ```sh
261
- $ pulumi import snowflake:index/integrationGrant:IntegrationGrant example "MY_INTEGRATION|USAGE|false|role1,role2"
262
- ```
263
-
264
- :param str resource_name: The name of the resource.
265
- :param pulumi.ResourceOptions opts: Options for the resource.
266
- :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
267
- grants applied to roles and objects outside Terraform.
268
- :param pulumi.Input[str] integration_name: Identifier for the integration; must be unique for your account.
269
- :param pulumi.Input[str] privilege: The privilege to grant on the integration. To grant all privileges, use the value `ALL PRIVILEGES`
270
- :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`
271
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
272
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
273
- """
274
- ...
275
- @overload
276
- def __init__(__self__,
277
- resource_name: str,
278
- args: IntegrationGrantArgs,
279
- opts: Optional[pulumi.ResourceOptions] = None):
280
- """
281
- > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use GrantPrivilegesToAccountRole instead. <deprecation>
282
-
283
- ## Example Usage
284
-
285
- ```python
286
- import pulumi
287
- import pulumi_snowflake as snowflake
288
-
289
- grant = snowflake.IntegrationGrant("grant",
290
- integration_name="integration",
291
- privilege="USAGE",
292
- roles=[
293
- "role1",
294
- "role2",
295
- ],
296
- with_grant_option=False)
297
- ```
298
-
299
- ## Import
300
-
301
- format is integration_name|privilege|with_grant_option|roles
302
-
303
- ```sh
304
- $ pulumi import snowflake:index/integrationGrant:IntegrationGrant example "MY_INTEGRATION|USAGE|false|role1,role2"
305
- ```
306
-
307
- :param str resource_name: The name of the resource.
308
- :param IntegrationGrantArgs args: The arguments to use to populate this resource's properties.
309
- :param pulumi.ResourceOptions opts: Options for the resource.
310
- """
311
- ...
312
- def __init__(__self__, resource_name: str, *args, **kwargs):
313
- resource_args, opts = _utilities.get_resource_args_opts(IntegrationGrantArgs, pulumi.ResourceOptions, *args, **kwargs)
314
- if resource_args is not None:
315
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
316
- else:
317
- __self__._internal_init(resource_name, *args, **kwargs)
318
-
319
- def _internal_init(__self__,
320
- resource_name: str,
321
- opts: Optional[pulumi.ResourceOptions] = None,
322
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
323
- integration_name: Optional[pulumi.Input[str]] = None,
324
- privilege: Optional[pulumi.Input[str]] = None,
325
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
326
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
327
- with_grant_option: Optional[pulumi.Input[bool]] = None,
328
- __props__=None):
329
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
330
- if not isinstance(opts, pulumi.ResourceOptions):
331
- raise TypeError('Expected resource options to be a ResourceOptions instance')
332
- if opts.id is None:
333
- if __props__ is not None:
334
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
335
- __props__ = IntegrationGrantArgs.__new__(IntegrationGrantArgs)
336
-
337
- __props__.__dict__["enable_multiple_grants"] = enable_multiple_grants
338
- if integration_name is None and not opts.urn:
339
- raise TypeError("Missing required property 'integration_name'")
340
- __props__.__dict__["integration_name"] = integration_name
341
- __props__.__dict__["privilege"] = privilege
342
- __props__.__dict__["revert_ownership_to_role_name"] = revert_ownership_to_role_name
343
- __props__.__dict__["roles"] = roles
344
- __props__.__dict__["with_grant_option"] = with_grant_option
345
- super(IntegrationGrant, __self__).__init__(
346
- 'snowflake:index/integrationGrant:IntegrationGrant',
347
- resource_name,
348
- __props__,
349
- opts)
350
-
351
- @staticmethod
352
- def get(resource_name: str,
353
- id: pulumi.Input[str],
354
- opts: Optional[pulumi.ResourceOptions] = None,
355
- enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
356
- integration_name: Optional[pulumi.Input[str]] = None,
357
- privilege: Optional[pulumi.Input[str]] = None,
358
- revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
359
- roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
360
- with_grant_option: Optional[pulumi.Input[bool]] = None) -> 'IntegrationGrant':
361
- """
362
- Get an existing IntegrationGrant resource's state with the given name, id, and optional extra
363
- properties used to qualify the lookup.
364
-
365
- :param str resource_name: The unique name of the resulting resource.
366
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
367
- :param pulumi.ResourceOptions opts: Options for the resource.
368
- :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
369
- grants applied to roles and objects outside Terraform.
370
- :param pulumi.Input[str] integration_name: Identifier for the integration; must be unique for your account.
371
- :param pulumi.Input[str] privilege: The privilege to grant on the integration. To grant all privileges, use the value `ALL PRIVILEGES`
372
- :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`
373
- :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
374
- :param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
375
- """
376
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
377
-
378
- __props__ = _IntegrationGrantState.__new__(_IntegrationGrantState)
379
-
380
- __props__.__dict__["enable_multiple_grants"] = enable_multiple_grants
381
- __props__.__dict__["integration_name"] = integration_name
382
- __props__.__dict__["privilege"] = privilege
383
- __props__.__dict__["revert_ownership_to_role_name"] = revert_ownership_to_role_name
384
- __props__.__dict__["roles"] = roles
385
- __props__.__dict__["with_grant_option"] = with_grant_option
386
- return IntegrationGrant(resource_name, opts=opts, __props__=__props__)
387
-
388
- @property
389
- @pulumi.getter(name="enableMultipleGrants")
390
- def enable_multiple_grants(self) -> pulumi.Output[Optional[bool]]:
391
- """
392
- When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
393
- grants applied to roles and objects outside Terraform.
394
- """
395
- return pulumi.get(self, "enable_multiple_grants")
396
-
397
- @property
398
- @pulumi.getter(name="integrationName")
399
- def integration_name(self) -> pulumi.Output[str]:
400
- """
401
- Identifier for the integration; must be unique for your account.
402
- """
403
- return pulumi.get(self, "integration_name")
404
-
405
- @property
406
- @pulumi.getter
407
- def privilege(self) -> pulumi.Output[Optional[str]]:
408
- """
409
- The privilege to grant on the integration. To grant all privileges, use the value `ALL PRIVILEGES`
410
- """
411
- return pulumi.get(self, "privilege")
412
-
413
- @property
414
- @pulumi.getter(name="revertOwnershipToRoleName")
415
- def revert_ownership_to_role_name(self) -> pulumi.Output[Optional[str]]:
416
- """
417
- The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
418
- """
419
- return pulumi.get(self, "revert_ownership_to_role_name")
420
-
421
- @property
422
- @pulumi.getter
423
- def roles(self) -> pulumi.Output[Optional[Sequence[str]]]:
424
- """
425
- Grants privilege to these roles.
426
- """
427
- return pulumi.get(self, "roles")
428
-
429
- @property
430
- @pulumi.getter(name="withGrantOption")
431
- def with_grant_option(self) -> pulumi.Output[Optional[bool]]:
432
- """
433
- When this is set to true, allows the recipient role to grant the privileges to other roles.
434
- """
435
- return pulumi.get(self, "with_grant_option")
436
-