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