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