pulumi-snowflake 0.63.0a1734416430__py3-none-any.whl → 1.0.0__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 (127) hide show
  1. pulumi_snowflake/__init__.py +82 -74
  2. pulumi_snowflake/_inputs.py +12705 -4876
  3. pulumi_snowflake/account.py +156 -163
  4. pulumi_snowflake/account_parameter.py +16 -16
  5. pulumi_snowflake/account_role.py +9 -9
  6. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +9 -22
  7. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +9 -22
  8. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +9 -22
  9. pulumi_snowflake/authentication_policy.py +21 -21
  10. pulumi_snowflake/config/__init__.pyi +8 -86
  11. pulumi_snowflake/config/vars.py +10 -110
  12. pulumi_snowflake/database.py +9 -9
  13. pulumi_snowflake/database_role.py +14 -14
  14. pulumi_snowflake/{unsafe_execute.py → execute.py} +35 -25
  15. pulumi_snowflake/external_oauth_integration.py +27 -27
  16. pulumi_snowflake/external_volume.py +11 -7
  17. pulumi_snowflake/function_java.py +1211 -0
  18. pulumi_snowflake/function_javascript.py +882 -0
  19. pulumi_snowflake/function_python.py +1212 -0
  20. pulumi_snowflake/function_scala.py +1212 -0
  21. pulumi_snowflake/function_sql.py +835 -0
  22. pulumi_snowflake/get_account_roles.py +129 -0
  23. pulumi_snowflake/get_accounts.py +41 -19
  24. pulumi_snowflake/get_alerts.py +4 -0
  25. pulumi_snowflake/get_connections.py +2 -40
  26. pulumi_snowflake/get_cortex_search_services.py +4 -0
  27. pulumi_snowflake/get_current_account.py +4 -0
  28. pulumi_snowflake/get_current_role.py +2 -2
  29. pulumi_snowflake/get_database.py +4 -0
  30. pulumi_snowflake/get_database_role.py +4 -0
  31. pulumi_snowflake/get_database_roles.py +2 -6
  32. pulumi_snowflake/get_databases.py +2 -6
  33. pulumi_snowflake/get_dynamic_tables.py +4 -2
  34. pulumi_snowflake/get_external_functions.py +4 -0
  35. pulumi_snowflake/get_external_tables.py +4 -0
  36. pulumi_snowflake/get_failover_groups.py +4 -2
  37. pulumi_snowflake/get_file_formats.py +4 -0
  38. pulumi_snowflake/get_functions.py +4 -0
  39. pulumi_snowflake/get_grants.py +0 -4
  40. pulumi_snowflake/get_masking_policies.py +2 -6
  41. pulumi_snowflake/get_materialized_views.py +4 -0
  42. pulumi_snowflake/get_network_policies.py +2 -6
  43. pulumi_snowflake/get_parameters.py +4 -0
  44. pulumi_snowflake/get_pipes.py +4 -0
  45. pulumi_snowflake/get_procedures.py +4 -0
  46. pulumi_snowflake/get_resource_monitors.py +2 -6
  47. pulumi_snowflake/get_row_access_policies.py +2 -6
  48. pulumi_snowflake/get_schemas.py +6 -4
  49. pulumi_snowflake/get_secrets.py +2 -6
  50. pulumi_snowflake/get_security_integrations.py +2 -6
  51. pulumi_snowflake/get_sequences.py +4 -0
  52. pulumi_snowflake/get_shares.py +4 -0
  53. pulumi_snowflake/get_stages.py +4 -0
  54. pulumi_snowflake/get_storage_integrations.py +4 -0
  55. pulumi_snowflake/get_streamlits.py +2 -6
  56. pulumi_snowflake/get_streams.py +2 -6
  57. pulumi_snowflake/get_system_generate_scim_access_token.py +4 -0
  58. pulumi_snowflake/get_system_get_private_link_config.py +4 -0
  59. pulumi_snowflake/get_system_get_snowflake_platform_info.py +2 -2
  60. pulumi_snowflake/get_tables.py +4 -0
  61. pulumi_snowflake/get_tags.py +2 -6
  62. pulumi_snowflake/get_tasks.py +0 -4
  63. pulumi_snowflake/get_users.py +2 -6
  64. pulumi_snowflake/get_views.py +2 -6
  65. pulumi_snowflake/get_warehouses.py +2 -6
  66. pulumi_snowflake/grant_account_role.py +21 -21
  67. pulumi_snowflake/grant_application_role.py +7 -7
  68. pulumi_snowflake/grant_database_role.py +28 -28
  69. pulumi_snowflake/grant_ownership.py +14 -14
  70. pulumi_snowflake/grant_privileges_to_account_role.py +14 -14
  71. pulumi_snowflake/grant_privileges_to_database_role.py +14 -14
  72. pulumi_snowflake/grant_privileges_to_share.py +42 -42
  73. pulumi_snowflake/legacy_service_user.py +21 -21
  74. pulumi_snowflake/masking_policy.py +21 -21
  75. pulumi_snowflake/network_policy.py +23 -23
  76. pulumi_snowflake/oauth_integration_for_custom_clients.py +73 -46
  77. pulumi_snowflake/oauth_integration_for_partner_applications.py +57 -30
  78. pulumi_snowflake/outputs.py +10029 -4056
  79. pulumi_snowflake/password_policy.py +12 -2
  80. pulumi_snowflake/primary_connection.py +16 -16
  81. pulumi_snowflake/procedure_java.py +1273 -0
  82. pulumi_snowflake/procedure_javascript.py +895 -0
  83. pulumi_snowflake/procedure_python.py +1226 -0
  84. pulumi_snowflake/procedure_scala.py +1273 -0
  85. pulumi_snowflake/procedure_sql.py +895 -0
  86. pulumi_snowflake/provider.py +40 -527
  87. pulumi_snowflake/pulumi-plugin.json +1 -1
  88. pulumi_snowflake/resource_monitor.py +16 -20
  89. pulumi_snowflake/row_access_policy.py +21 -21
  90. pulumi_snowflake/saml2_integration.py +9 -9
  91. pulumi_snowflake/schema.py +14 -18
  92. pulumi_snowflake/scim_integration.py +16 -16
  93. pulumi_snowflake/secondary_connection.py +16 -16
  94. pulumi_snowflake/secondary_database.py +16 -16
  95. pulumi_snowflake/secret_with_authorization_code_grant.py +28 -28
  96. pulumi_snowflake/secret_with_basic_authentication.py +21 -21
  97. pulumi_snowflake/secret_with_client_credentials.py +28 -28
  98. pulumi_snowflake/secret_with_generic_string.py +21 -21
  99. pulumi_snowflake/service_user.py +21 -21
  100. pulumi_snowflake/shared_database.py +16 -16
  101. pulumi_snowflake/stream_on_directory_table.py +28 -41
  102. pulumi_snowflake/stream_on_external_table.py +28 -41
  103. pulumi_snowflake/stream_on_table.py +28 -41
  104. pulumi_snowflake/stream_on_view.py +28 -41
  105. pulumi_snowflake/streamlit.py +42 -46
  106. pulumi_snowflake/tag.py +28 -28
  107. pulumi_snowflake/tag_association.py +28 -86
  108. pulumi_snowflake/task.py +58 -62
  109. pulumi_snowflake/user.py +21 -21
  110. pulumi_snowflake/view.py +28 -41
  111. pulumi_snowflake/warehouse.py +16 -16
  112. {pulumi_snowflake-0.63.0a1734416430.dist-info → pulumi_snowflake-1.0.0.dist-info}/METADATA +1 -1
  113. pulumi_snowflake-1.0.0.dist-info/RECORD +148 -0
  114. pulumi_snowflake/database_old.py +0 -489
  115. pulumi_snowflake/function.py +0 -901
  116. pulumi_snowflake/get_role.py +0 -126
  117. pulumi_snowflake/get_roles.py +0 -133
  118. pulumi_snowflake/oauth_integration.py +0 -610
  119. pulumi_snowflake/procedure.py +0 -910
  120. pulumi_snowflake/role.py +0 -250
  121. pulumi_snowflake/saml_integration.py +0 -916
  122. pulumi_snowflake/session_parameter.py +0 -301
  123. pulumi_snowflake/stream.py +0 -643
  124. pulumi_snowflake/tag_masking_policy_association.py +0 -211
  125. pulumi_snowflake-0.63.0a1734416430.dist-info/RECORD +0 -148
  126. {pulumi_snowflake-0.63.0a1734416430.dist-info → pulumi_snowflake-1.0.0.dist-info}/WHEEL +0 -0
  127. {pulumi_snowflake-0.63.0a1734416430.dist-info → pulumi_snowflake-1.0.0.dist-info}/top_level.txt +0 -0
@@ -1,901 +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 sys
8
- import pulumi
9
- import pulumi.runtime
10
- from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
- from . import _utilities
16
- from . import outputs
17
- from ._inputs import *
18
-
19
- __all__ = ['FunctionArgs', 'Function']
20
-
21
- @pulumi.input_type
22
- class FunctionArgs:
23
- def __init__(__self__, *,
24
- database: pulumi.Input[str],
25
- return_type: pulumi.Input[str],
26
- schema: pulumi.Input[str],
27
- statement: pulumi.Input[str],
28
- arguments: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionArgumentArgs']]]] = None,
29
- comment: Optional[pulumi.Input[str]] = None,
30
- handler: Optional[pulumi.Input[str]] = None,
31
- imports: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
32
- is_secure: Optional[pulumi.Input[bool]] = None,
33
- language: Optional[pulumi.Input[str]] = None,
34
- name: Optional[pulumi.Input[str]] = None,
35
- null_input_behavior: Optional[pulumi.Input[str]] = None,
36
- packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
37
- return_behavior: Optional[pulumi.Input[str]] = None,
38
- runtime_version: Optional[pulumi.Input[str]] = None,
39
- target_path: Optional[pulumi.Input[str]] = None):
40
- """
41
- The set of arguments for constructing a Function resource.
42
- :param pulumi.Input[str] database: The database in which to create the function. Don't use the | character.
43
- :param pulumi.Input[str] return_type: The return type of the function
44
- :param pulumi.Input[str] schema: The schema in which to create the function. Don't use the | character.
45
- :param pulumi.Input[str] statement: Specifies the javascript / java / scala / sql / python code used to create the function.
46
- :param pulumi.Input[Sequence[pulumi.Input['FunctionArgumentArgs']]] arguments: List of the arguments for the function
47
- :param pulumi.Input[str] comment: Specifies a comment for the function.
48
- :param pulumi.Input[str] handler: The handler method for Java / Python function.
49
- :param pulumi.Input[Sequence[pulumi.Input[str]]] imports: Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
50
- :param pulumi.Input[bool] is_secure: Specifies that the function is secure.
51
- :param pulumi.Input[str] language: Specifies the language of the stored function code.
52
- :param pulumi.Input[str] name: Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
53
- :param pulumi.Input[str] null_input_behavior: Specifies the behavior of the function when called with null inputs.
54
- :param pulumi.Input[Sequence[pulumi.Input[str]]] packages: List of package imports to use for Java / Python functions. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
55
- :param pulumi.Input[str] return_behavior: Specifies the behavior of the function when returning results
56
- :param pulumi.Input[str] runtime_version: Required for Python functions. Specifies Python runtime version.
57
- :param pulumi.Input[str] target_path: The target path for the Java / Python functions. For Java, it is the path of compiled jar files and for the Python it is the path of the Python files.
58
- """
59
- pulumi.set(__self__, "database", database)
60
- pulumi.set(__self__, "return_type", return_type)
61
- pulumi.set(__self__, "schema", schema)
62
- pulumi.set(__self__, "statement", statement)
63
- if arguments is not None:
64
- pulumi.set(__self__, "arguments", arguments)
65
- if comment is not None:
66
- pulumi.set(__self__, "comment", comment)
67
- if handler is not None:
68
- pulumi.set(__self__, "handler", handler)
69
- if imports is not None:
70
- pulumi.set(__self__, "imports", imports)
71
- if is_secure is not None:
72
- pulumi.set(__self__, "is_secure", is_secure)
73
- if language is not None:
74
- pulumi.set(__self__, "language", language)
75
- if name is not None:
76
- pulumi.set(__self__, "name", name)
77
- if null_input_behavior is not None:
78
- pulumi.set(__self__, "null_input_behavior", null_input_behavior)
79
- if packages is not None:
80
- pulumi.set(__self__, "packages", packages)
81
- if return_behavior is not None:
82
- pulumi.set(__self__, "return_behavior", return_behavior)
83
- if runtime_version is not None:
84
- pulumi.set(__self__, "runtime_version", runtime_version)
85
- if target_path is not None:
86
- pulumi.set(__self__, "target_path", target_path)
87
-
88
- @property
89
- @pulumi.getter
90
- def database(self) -> pulumi.Input[str]:
91
- """
92
- The database in which to create the function. Don't use the | character.
93
- """
94
- return pulumi.get(self, "database")
95
-
96
- @database.setter
97
- def database(self, value: pulumi.Input[str]):
98
- pulumi.set(self, "database", value)
99
-
100
- @property
101
- @pulumi.getter(name="returnType")
102
- def return_type(self) -> pulumi.Input[str]:
103
- """
104
- The return type of the function
105
- """
106
- return pulumi.get(self, "return_type")
107
-
108
- @return_type.setter
109
- def return_type(self, value: pulumi.Input[str]):
110
- pulumi.set(self, "return_type", value)
111
-
112
- @property
113
- @pulumi.getter
114
- def schema(self) -> pulumi.Input[str]:
115
- """
116
- The schema in which to create the function. Don't use the | character.
117
- """
118
- return pulumi.get(self, "schema")
119
-
120
- @schema.setter
121
- def schema(self, value: pulumi.Input[str]):
122
- pulumi.set(self, "schema", value)
123
-
124
- @property
125
- @pulumi.getter
126
- def statement(self) -> pulumi.Input[str]:
127
- """
128
- Specifies the javascript / java / scala / sql / python code used to create the function.
129
- """
130
- return pulumi.get(self, "statement")
131
-
132
- @statement.setter
133
- def statement(self, value: pulumi.Input[str]):
134
- pulumi.set(self, "statement", value)
135
-
136
- @property
137
- @pulumi.getter
138
- def arguments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['FunctionArgumentArgs']]]]:
139
- """
140
- List of the arguments for the function
141
- """
142
- return pulumi.get(self, "arguments")
143
-
144
- @arguments.setter
145
- def arguments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionArgumentArgs']]]]):
146
- pulumi.set(self, "arguments", value)
147
-
148
- @property
149
- @pulumi.getter
150
- def comment(self) -> Optional[pulumi.Input[str]]:
151
- """
152
- Specifies a comment for the function.
153
- """
154
- return pulumi.get(self, "comment")
155
-
156
- @comment.setter
157
- def comment(self, value: Optional[pulumi.Input[str]]):
158
- pulumi.set(self, "comment", value)
159
-
160
- @property
161
- @pulumi.getter
162
- def handler(self) -> Optional[pulumi.Input[str]]:
163
- """
164
- The handler method for Java / Python function.
165
- """
166
- return pulumi.get(self, "handler")
167
-
168
- @handler.setter
169
- def handler(self, value: Optional[pulumi.Input[str]]):
170
- pulumi.set(self, "handler", value)
171
-
172
- @property
173
- @pulumi.getter
174
- def imports(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
175
- """
176
- Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
177
- """
178
- return pulumi.get(self, "imports")
179
-
180
- @imports.setter
181
- def imports(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
182
- pulumi.set(self, "imports", value)
183
-
184
- @property
185
- @pulumi.getter(name="isSecure")
186
- def is_secure(self) -> Optional[pulumi.Input[bool]]:
187
- """
188
- Specifies that the function is secure.
189
- """
190
- return pulumi.get(self, "is_secure")
191
-
192
- @is_secure.setter
193
- def is_secure(self, value: Optional[pulumi.Input[bool]]):
194
- pulumi.set(self, "is_secure", value)
195
-
196
- @property
197
- @pulumi.getter
198
- def language(self) -> Optional[pulumi.Input[str]]:
199
- """
200
- Specifies the language of the stored function code.
201
- """
202
- return pulumi.get(self, "language")
203
-
204
- @language.setter
205
- def language(self, value: Optional[pulumi.Input[str]]):
206
- pulumi.set(self, "language", value)
207
-
208
- @property
209
- @pulumi.getter
210
- def name(self) -> Optional[pulumi.Input[str]]:
211
- """
212
- Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
213
- """
214
- return pulumi.get(self, "name")
215
-
216
- @name.setter
217
- def name(self, value: Optional[pulumi.Input[str]]):
218
- pulumi.set(self, "name", value)
219
-
220
- @property
221
- @pulumi.getter(name="nullInputBehavior")
222
- def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
223
- """
224
- Specifies the behavior of the function when called with null inputs.
225
- """
226
- return pulumi.get(self, "null_input_behavior")
227
-
228
- @null_input_behavior.setter
229
- def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
230
- pulumi.set(self, "null_input_behavior", value)
231
-
232
- @property
233
- @pulumi.getter
234
- def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
235
- """
236
- List of package imports to use for Java / Python functions. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
237
- """
238
- return pulumi.get(self, "packages")
239
-
240
- @packages.setter
241
- def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
242
- pulumi.set(self, "packages", value)
243
-
244
- @property
245
- @pulumi.getter(name="returnBehavior")
246
- def return_behavior(self) -> Optional[pulumi.Input[str]]:
247
- """
248
- Specifies the behavior of the function when returning results
249
- """
250
- return pulumi.get(self, "return_behavior")
251
-
252
- @return_behavior.setter
253
- def return_behavior(self, value: Optional[pulumi.Input[str]]):
254
- pulumi.set(self, "return_behavior", value)
255
-
256
- @property
257
- @pulumi.getter(name="runtimeVersion")
258
- def runtime_version(self) -> Optional[pulumi.Input[str]]:
259
- """
260
- Required for Python functions. Specifies Python runtime version.
261
- """
262
- return pulumi.get(self, "runtime_version")
263
-
264
- @runtime_version.setter
265
- def runtime_version(self, value: Optional[pulumi.Input[str]]):
266
- pulumi.set(self, "runtime_version", value)
267
-
268
- @property
269
- @pulumi.getter(name="targetPath")
270
- def target_path(self) -> Optional[pulumi.Input[str]]:
271
- """
272
- The target path for the Java / Python functions. For Java, it is the path of compiled jar files and for the Python it is the path of the Python files.
273
- """
274
- return pulumi.get(self, "target_path")
275
-
276
- @target_path.setter
277
- def target_path(self, value: Optional[pulumi.Input[str]]):
278
- pulumi.set(self, "target_path", value)
279
-
280
-
281
- @pulumi.input_type
282
- class _FunctionState:
283
- def __init__(__self__, *,
284
- arguments: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionArgumentArgs']]]] = None,
285
- comment: Optional[pulumi.Input[str]] = None,
286
- database: Optional[pulumi.Input[str]] = None,
287
- fully_qualified_name: Optional[pulumi.Input[str]] = None,
288
- handler: Optional[pulumi.Input[str]] = None,
289
- imports: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
290
- is_secure: Optional[pulumi.Input[bool]] = None,
291
- language: Optional[pulumi.Input[str]] = None,
292
- name: Optional[pulumi.Input[str]] = None,
293
- null_input_behavior: Optional[pulumi.Input[str]] = None,
294
- packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
295
- return_behavior: Optional[pulumi.Input[str]] = None,
296
- return_type: Optional[pulumi.Input[str]] = None,
297
- runtime_version: Optional[pulumi.Input[str]] = None,
298
- schema: Optional[pulumi.Input[str]] = None,
299
- statement: Optional[pulumi.Input[str]] = None,
300
- target_path: Optional[pulumi.Input[str]] = None):
301
- """
302
- Input properties used for looking up and filtering Function resources.
303
- :param pulumi.Input[Sequence[pulumi.Input['FunctionArgumentArgs']]] arguments: List of the arguments for the function
304
- :param pulumi.Input[str] comment: Specifies a comment for the function.
305
- :param pulumi.Input[str] database: The database in which to create the function. Don't use the | character.
306
- :param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
307
- :param pulumi.Input[str] handler: The handler method for Java / Python function.
308
- :param pulumi.Input[Sequence[pulumi.Input[str]]] imports: Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
309
- :param pulumi.Input[bool] is_secure: Specifies that the function is secure.
310
- :param pulumi.Input[str] language: Specifies the language of the stored function code.
311
- :param pulumi.Input[str] name: Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
312
- :param pulumi.Input[str] null_input_behavior: Specifies the behavior of the function when called with null inputs.
313
- :param pulumi.Input[Sequence[pulumi.Input[str]]] packages: List of package imports to use for Java / Python functions. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
314
- :param pulumi.Input[str] return_behavior: Specifies the behavior of the function when returning results
315
- :param pulumi.Input[str] return_type: The return type of the function
316
- :param pulumi.Input[str] runtime_version: Required for Python functions. Specifies Python runtime version.
317
- :param pulumi.Input[str] schema: The schema in which to create the function. Don't use the | character.
318
- :param pulumi.Input[str] statement: Specifies the javascript / java / scala / sql / python code used to create the function.
319
- :param pulumi.Input[str] target_path: The target path for the Java / Python functions. For Java, it is the path of compiled jar files and for the Python it is the path of the Python files.
320
- """
321
- if arguments is not None:
322
- pulumi.set(__self__, "arguments", arguments)
323
- if comment is not None:
324
- pulumi.set(__self__, "comment", comment)
325
- if database is not None:
326
- pulumi.set(__self__, "database", database)
327
- if fully_qualified_name is not None:
328
- pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
329
- if handler is not None:
330
- pulumi.set(__self__, "handler", handler)
331
- if imports is not None:
332
- pulumi.set(__self__, "imports", imports)
333
- if is_secure is not None:
334
- pulumi.set(__self__, "is_secure", is_secure)
335
- if language is not None:
336
- pulumi.set(__self__, "language", language)
337
- if name is not None:
338
- pulumi.set(__self__, "name", name)
339
- if null_input_behavior is not None:
340
- pulumi.set(__self__, "null_input_behavior", null_input_behavior)
341
- if packages is not None:
342
- pulumi.set(__self__, "packages", packages)
343
- if return_behavior is not None:
344
- pulumi.set(__self__, "return_behavior", return_behavior)
345
- if return_type is not None:
346
- pulumi.set(__self__, "return_type", return_type)
347
- if runtime_version is not None:
348
- pulumi.set(__self__, "runtime_version", runtime_version)
349
- if schema is not None:
350
- pulumi.set(__self__, "schema", schema)
351
- if statement is not None:
352
- pulumi.set(__self__, "statement", statement)
353
- if target_path is not None:
354
- pulumi.set(__self__, "target_path", target_path)
355
-
356
- @property
357
- @pulumi.getter
358
- def arguments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['FunctionArgumentArgs']]]]:
359
- """
360
- List of the arguments for the function
361
- """
362
- return pulumi.get(self, "arguments")
363
-
364
- @arguments.setter
365
- def arguments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionArgumentArgs']]]]):
366
- pulumi.set(self, "arguments", value)
367
-
368
- @property
369
- @pulumi.getter
370
- def comment(self) -> Optional[pulumi.Input[str]]:
371
- """
372
- Specifies a comment for the function.
373
- """
374
- return pulumi.get(self, "comment")
375
-
376
- @comment.setter
377
- def comment(self, value: Optional[pulumi.Input[str]]):
378
- pulumi.set(self, "comment", value)
379
-
380
- @property
381
- @pulumi.getter
382
- def database(self) -> Optional[pulumi.Input[str]]:
383
- """
384
- The database in which to create the function. Don't use the | character.
385
- """
386
- return pulumi.get(self, "database")
387
-
388
- @database.setter
389
- def database(self, value: Optional[pulumi.Input[str]]):
390
- pulumi.set(self, "database", value)
391
-
392
- @property
393
- @pulumi.getter(name="fullyQualifiedName")
394
- def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
395
- """
396
- Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
397
- """
398
- return pulumi.get(self, "fully_qualified_name")
399
-
400
- @fully_qualified_name.setter
401
- def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
402
- pulumi.set(self, "fully_qualified_name", value)
403
-
404
- @property
405
- @pulumi.getter
406
- def handler(self) -> Optional[pulumi.Input[str]]:
407
- """
408
- The handler method for Java / Python function.
409
- """
410
- return pulumi.get(self, "handler")
411
-
412
- @handler.setter
413
- def handler(self, value: Optional[pulumi.Input[str]]):
414
- pulumi.set(self, "handler", value)
415
-
416
- @property
417
- @pulumi.getter
418
- def imports(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
419
- """
420
- Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
421
- """
422
- return pulumi.get(self, "imports")
423
-
424
- @imports.setter
425
- def imports(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
426
- pulumi.set(self, "imports", value)
427
-
428
- @property
429
- @pulumi.getter(name="isSecure")
430
- def is_secure(self) -> Optional[pulumi.Input[bool]]:
431
- """
432
- Specifies that the function is secure.
433
- """
434
- return pulumi.get(self, "is_secure")
435
-
436
- @is_secure.setter
437
- def is_secure(self, value: Optional[pulumi.Input[bool]]):
438
- pulumi.set(self, "is_secure", value)
439
-
440
- @property
441
- @pulumi.getter
442
- def language(self) -> Optional[pulumi.Input[str]]:
443
- """
444
- Specifies the language of the stored function code.
445
- """
446
- return pulumi.get(self, "language")
447
-
448
- @language.setter
449
- def language(self, value: Optional[pulumi.Input[str]]):
450
- pulumi.set(self, "language", value)
451
-
452
- @property
453
- @pulumi.getter
454
- def name(self) -> Optional[pulumi.Input[str]]:
455
- """
456
- Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
457
- """
458
- return pulumi.get(self, "name")
459
-
460
- @name.setter
461
- def name(self, value: Optional[pulumi.Input[str]]):
462
- pulumi.set(self, "name", value)
463
-
464
- @property
465
- @pulumi.getter(name="nullInputBehavior")
466
- def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
467
- """
468
- Specifies the behavior of the function when called with null inputs.
469
- """
470
- return pulumi.get(self, "null_input_behavior")
471
-
472
- @null_input_behavior.setter
473
- def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
474
- pulumi.set(self, "null_input_behavior", value)
475
-
476
- @property
477
- @pulumi.getter
478
- def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
479
- """
480
- List of package imports to use for Java / Python functions. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
481
- """
482
- return pulumi.get(self, "packages")
483
-
484
- @packages.setter
485
- def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
486
- pulumi.set(self, "packages", value)
487
-
488
- @property
489
- @pulumi.getter(name="returnBehavior")
490
- def return_behavior(self) -> Optional[pulumi.Input[str]]:
491
- """
492
- Specifies the behavior of the function when returning results
493
- """
494
- return pulumi.get(self, "return_behavior")
495
-
496
- @return_behavior.setter
497
- def return_behavior(self, value: Optional[pulumi.Input[str]]):
498
- pulumi.set(self, "return_behavior", value)
499
-
500
- @property
501
- @pulumi.getter(name="returnType")
502
- def return_type(self) -> Optional[pulumi.Input[str]]:
503
- """
504
- The return type of the function
505
- """
506
- return pulumi.get(self, "return_type")
507
-
508
- @return_type.setter
509
- def return_type(self, value: Optional[pulumi.Input[str]]):
510
- pulumi.set(self, "return_type", value)
511
-
512
- @property
513
- @pulumi.getter(name="runtimeVersion")
514
- def runtime_version(self) -> Optional[pulumi.Input[str]]:
515
- """
516
- Required for Python functions. Specifies Python runtime version.
517
- """
518
- return pulumi.get(self, "runtime_version")
519
-
520
- @runtime_version.setter
521
- def runtime_version(self, value: Optional[pulumi.Input[str]]):
522
- pulumi.set(self, "runtime_version", value)
523
-
524
- @property
525
- @pulumi.getter
526
- def schema(self) -> Optional[pulumi.Input[str]]:
527
- """
528
- The schema in which to create the function. Don't use the | character.
529
- """
530
- return pulumi.get(self, "schema")
531
-
532
- @schema.setter
533
- def schema(self, value: Optional[pulumi.Input[str]]):
534
- pulumi.set(self, "schema", value)
535
-
536
- @property
537
- @pulumi.getter
538
- def statement(self) -> Optional[pulumi.Input[str]]:
539
- """
540
- Specifies the javascript / java / scala / sql / python code used to create the function.
541
- """
542
- return pulumi.get(self, "statement")
543
-
544
- @statement.setter
545
- def statement(self, value: Optional[pulumi.Input[str]]):
546
- pulumi.set(self, "statement", value)
547
-
548
- @property
549
- @pulumi.getter(name="targetPath")
550
- def target_path(self) -> Optional[pulumi.Input[str]]:
551
- """
552
- The target path for the Java / Python functions. For Java, it is the path of compiled jar files and for the Python it is the path of the Python files.
553
- """
554
- return pulumi.get(self, "target_path")
555
-
556
- @target_path.setter
557
- def target_path(self, value: Optional[pulumi.Input[str]]):
558
- pulumi.set(self, "target_path", value)
559
-
560
-
561
- class Function(pulumi.CustomResource):
562
- @overload
563
- def __init__(__self__,
564
- resource_name: str,
565
- opts: Optional[pulumi.ResourceOptions] = None,
566
- arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]]] = None,
567
- comment: Optional[pulumi.Input[str]] = None,
568
- database: Optional[pulumi.Input[str]] = None,
569
- handler: Optional[pulumi.Input[str]] = None,
570
- imports: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
571
- is_secure: Optional[pulumi.Input[bool]] = None,
572
- language: Optional[pulumi.Input[str]] = None,
573
- name: Optional[pulumi.Input[str]] = None,
574
- null_input_behavior: Optional[pulumi.Input[str]] = None,
575
- packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
576
- return_behavior: Optional[pulumi.Input[str]] = None,
577
- return_type: Optional[pulumi.Input[str]] = None,
578
- runtime_version: Optional[pulumi.Input[str]] = None,
579
- schema: Optional[pulumi.Input[str]] = None,
580
- statement: Optional[pulumi.Input[str]] = None,
581
- target_path: Optional[pulumi.Input[str]] = None,
582
- __props__=None):
583
- """
584
- ## Import
585
-
586
- format is <database_name>.<schema_name>.<function_name>(<arg types, separated with ','>)
587
-
588
- ```sh
589
- $ pulumi import snowflake:index/function:Function example 'dbName.schemaName.functionName(varchar, varchar, varchar)'
590
- ```
591
-
592
- :param str resource_name: The name of the resource.
593
- :param pulumi.ResourceOptions opts: Options for the resource.
594
- :param pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]] arguments: List of the arguments for the function
595
- :param pulumi.Input[str] comment: Specifies a comment for the function.
596
- :param pulumi.Input[str] database: The database in which to create the function. Don't use the | character.
597
- :param pulumi.Input[str] handler: The handler method for Java / Python function.
598
- :param pulumi.Input[Sequence[pulumi.Input[str]]] imports: Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
599
- :param pulumi.Input[bool] is_secure: Specifies that the function is secure.
600
- :param pulumi.Input[str] language: Specifies the language of the stored function code.
601
- :param pulumi.Input[str] name: Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
602
- :param pulumi.Input[str] null_input_behavior: Specifies the behavior of the function when called with null inputs.
603
- :param pulumi.Input[Sequence[pulumi.Input[str]]] packages: List of package imports to use for Java / Python functions. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
604
- :param pulumi.Input[str] return_behavior: Specifies the behavior of the function when returning results
605
- :param pulumi.Input[str] return_type: The return type of the function
606
- :param pulumi.Input[str] runtime_version: Required for Python functions. Specifies Python runtime version.
607
- :param pulumi.Input[str] schema: The schema in which to create the function. Don't use the | character.
608
- :param pulumi.Input[str] statement: Specifies the javascript / java / scala / sql / python code used to create the function.
609
- :param pulumi.Input[str] target_path: The target path for the Java / Python functions. For Java, it is the path of compiled jar files and for the Python it is the path of the Python files.
610
- """
611
- ...
612
- @overload
613
- def __init__(__self__,
614
- resource_name: str,
615
- args: FunctionArgs,
616
- opts: Optional[pulumi.ResourceOptions] = None):
617
- """
618
- ## Import
619
-
620
- format is <database_name>.<schema_name>.<function_name>(<arg types, separated with ','>)
621
-
622
- ```sh
623
- $ pulumi import snowflake:index/function:Function example 'dbName.schemaName.functionName(varchar, varchar, varchar)'
624
- ```
625
-
626
- :param str resource_name: The name of the resource.
627
- :param FunctionArgs args: The arguments to use to populate this resource's properties.
628
- :param pulumi.ResourceOptions opts: Options for the resource.
629
- """
630
- ...
631
- def __init__(__self__, resource_name: str, *args, **kwargs):
632
- resource_args, opts = _utilities.get_resource_args_opts(FunctionArgs, pulumi.ResourceOptions, *args, **kwargs)
633
- if resource_args is not None:
634
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
635
- else:
636
- __self__._internal_init(resource_name, *args, **kwargs)
637
-
638
- def _internal_init(__self__,
639
- resource_name: str,
640
- opts: Optional[pulumi.ResourceOptions] = None,
641
- arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]]] = None,
642
- comment: Optional[pulumi.Input[str]] = None,
643
- database: Optional[pulumi.Input[str]] = None,
644
- handler: Optional[pulumi.Input[str]] = None,
645
- imports: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
646
- is_secure: Optional[pulumi.Input[bool]] = None,
647
- language: Optional[pulumi.Input[str]] = None,
648
- name: Optional[pulumi.Input[str]] = None,
649
- null_input_behavior: Optional[pulumi.Input[str]] = None,
650
- packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
651
- return_behavior: Optional[pulumi.Input[str]] = None,
652
- return_type: Optional[pulumi.Input[str]] = None,
653
- runtime_version: Optional[pulumi.Input[str]] = None,
654
- schema: Optional[pulumi.Input[str]] = None,
655
- statement: Optional[pulumi.Input[str]] = None,
656
- target_path: Optional[pulumi.Input[str]] = None,
657
- __props__=None):
658
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
659
- if not isinstance(opts, pulumi.ResourceOptions):
660
- raise TypeError('Expected resource options to be a ResourceOptions instance')
661
- if opts.id is None:
662
- if __props__ is not None:
663
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
664
- __props__ = FunctionArgs.__new__(FunctionArgs)
665
-
666
- __props__.__dict__["arguments"] = arguments
667
- __props__.__dict__["comment"] = comment
668
- if database is None and not opts.urn:
669
- raise TypeError("Missing required property 'database'")
670
- __props__.__dict__["database"] = database
671
- __props__.__dict__["handler"] = handler
672
- __props__.__dict__["imports"] = imports
673
- __props__.__dict__["is_secure"] = is_secure
674
- __props__.__dict__["language"] = language
675
- __props__.__dict__["name"] = name
676
- __props__.__dict__["null_input_behavior"] = null_input_behavior
677
- __props__.__dict__["packages"] = packages
678
- __props__.__dict__["return_behavior"] = return_behavior
679
- if return_type is None and not opts.urn:
680
- raise TypeError("Missing required property 'return_type'")
681
- __props__.__dict__["return_type"] = return_type
682
- __props__.__dict__["runtime_version"] = runtime_version
683
- if schema is None and not opts.urn:
684
- raise TypeError("Missing required property 'schema'")
685
- __props__.__dict__["schema"] = schema
686
- if statement is None and not opts.urn:
687
- raise TypeError("Missing required property 'statement'")
688
- __props__.__dict__["statement"] = statement
689
- __props__.__dict__["target_path"] = target_path
690
- __props__.__dict__["fully_qualified_name"] = None
691
- super(Function, __self__).__init__(
692
- 'snowflake:index/function:Function',
693
- resource_name,
694
- __props__,
695
- opts)
696
-
697
- @staticmethod
698
- def get(resource_name: str,
699
- id: pulumi.Input[str],
700
- opts: Optional[pulumi.ResourceOptions] = None,
701
- arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]]] = None,
702
- comment: Optional[pulumi.Input[str]] = None,
703
- database: Optional[pulumi.Input[str]] = None,
704
- fully_qualified_name: Optional[pulumi.Input[str]] = None,
705
- handler: Optional[pulumi.Input[str]] = None,
706
- imports: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
707
- is_secure: Optional[pulumi.Input[bool]] = None,
708
- language: Optional[pulumi.Input[str]] = None,
709
- name: Optional[pulumi.Input[str]] = None,
710
- null_input_behavior: Optional[pulumi.Input[str]] = None,
711
- packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
712
- return_behavior: Optional[pulumi.Input[str]] = None,
713
- return_type: Optional[pulumi.Input[str]] = None,
714
- runtime_version: Optional[pulumi.Input[str]] = None,
715
- schema: Optional[pulumi.Input[str]] = None,
716
- statement: Optional[pulumi.Input[str]] = None,
717
- target_path: Optional[pulumi.Input[str]] = None) -> 'Function':
718
- """
719
- Get an existing Function resource's state with the given name, id, and optional extra
720
- properties used to qualify the lookup.
721
-
722
- :param str resource_name: The unique name of the resulting resource.
723
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
724
- :param pulumi.ResourceOptions opts: Options for the resource.
725
- :param pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]] arguments: List of the arguments for the function
726
- :param pulumi.Input[str] comment: Specifies a comment for the function.
727
- :param pulumi.Input[str] database: The database in which to create the function. Don't use the | character.
728
- :param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
729
- :param pulumi.Input[str] handler: The handler method for Java / Python function.
730
- :param pulumi.Input[Sequence[pulumi.Input[str]]] imports: Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
731
- :param pulumi.Input[bool] is_secure: Specifies that the function is secure.
732
- :param pulumi.Input[str] language: Specifies the language of the stored function code.
733
- :param pulumi.Input[str] name: Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
734
- :param pulumi.Input[str] null_input_behavior: Specifies the behavior of the function when called with null inputs.
735
- :param pulumi.Input[Sequence[pulumi.Input[str]]] packages: List of package imports to use for Java / Python functions. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
736
- :param pulumi.Input[str] return_behavior: Specifies the behavior of the function when returning results
737
- :param pulumi.Input[str] return_type: The return type of the function
738
- :param pulumi.Input[str] runtime_version: Required for Python functions. Specifies Python runtime version.
739
- :param pulumi.Input[str] schema: The schema in which to create the function. Don't use the | character.
740
- :param pulumi.Input[str] statement: Specifies the javascript / java / scala / sql / python code used to create the function.
741
- :param pulumi.Input[str] target_path: The target path for the Java / Python functions. For Java, it is the path of compiled jar files and for the Python it is the path of the Python files.
742
- """
743
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
744
-
745
- __props__ = _FunctionState.__new__(_FunctionState)
746
-
747
- __props__.__dict__["arguments"] = arguments
748
- __props__.__dict__["comment"] = comment
749
- __props__.__dict__["database"] = database
750
- __props__.__dict__["fully_qualified_name"] = fully_qualified_name
751
- __props__.__dict__["handler"] = handler
752
- __props__.__dict__["imports"] = imports
753
- __props__.__dict__["is_secure"] = is_secure
754
- __props__.__dict__["language"] = language
755
- __props__.__dict__["name"] = name
756
- __props__.__dict__["null_input_behavior"] = null_input_behavior
757
- __props__.__dict__["packages"] = packages
758
- __props__.__dict__["return_behavior"] = return_behavior
759
- __props__.__dict__["return_type"] = return_type
760
- __props__.__dict__["runtime_version"] = runtime_version
761
- __props__.__dict__["schema"] = schema
762
- __props__.__dict__["statement"] = statement
763
- __props__.__dict__["target_path"] = target_path
764
- return Function(resource_name, opts=opts, __props__=__props__)
765
-
766
- @property
767
- @pulumi.getter
768
- def arguments(self) -> pulumi.Output[Optional[Sequence['outputs.FunctionArgument']]]:
769
- """
770
- List of the arguments for the function
771
- """
772
- return pulumi.get(self, "arguments")
773
-
774
- @property
775
- @pulumi.getter
776
- def comment(self) -> pulumi.Output[Optional[str]]:
777
- """
778
- Specifies a comment for the function.
779
- """
780
- return pulumi.get(self, "comment")
781
-
782
- @property
783
- @pulumi.getter
784
- def database(self) -> pulumi.Output[str]:
785
- """
786
- The database in which to create the function. Don't use the | character.
787
- """
788
- return pulumi.get(self, "database")
789
-
790
- @property
791
- @pulumi.getter(name="fullyQualifiedName")
792
- def fully_qualified_name(self) -> pulumi.Output[str]:
793
- """
794
- Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
795
- """
796
- return pulumi.get(self, "fully_qualified_name")
797
-
798
- @property
799
- @pulumi.getter
800
- def handler(self) -> pulumi.Output[Optional[str]]:
801
- """
802
- The handler method for Java / Python function.
803
- """
804
- return pulumi.get(self, "handler")
805
-
806
- @property
807
- @pulumi.getter
808
- def imports(self) -> pulumi.Output[Optional[Sequence[str]]]:
809
- """
810
- Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
811
- """
812
- return pulumi.get(self, "imports")
813
-
814
- @property
815
- @pulumi.getter(name="isSecure")
816
- def is_secure(self) -> pulumi.Output[Optional[bool]]:
817
- """
818
- Specifies that the function is secure.
819
- """
820
- return pulumi.get(self, "is_secure")
821
-
822
- @property
823
- @pulumi.getter
824
- def language(self) -> pulumi.Output[Optional[str]]:
825
- """
826
- Specifies the language of the stored function code.
827
- """
828
- return pulumi.get(self, "language")
829
-
830
- @property
831
- @pulumi.getter
832
- def name(self) -> pulumi.Output[str]:
833
- """
834
- Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
835
- """
836
- return pulumi.get(self, "name")
837
-
838
- @property
839
- @pulumi.getter(name="nullInputBehavior")
840
- def null_input_behavior(self) -> pulumi.Output[Optional[str]]:
841
- """
842
- Specifies the behavior of the function when called with null inputs.
843
- """
844
- return pulumi.get(self, "null_input_behavior")
845
-
846
- @property
847
- @pulumi.getter
848
- def packages(self) -> pulumi.Output[Optional[Sequence[str]]]:
849
- """
850
- List of package imports to use for Java / Python functions. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
851
- """
852
- return pulumi.get(self, "packages")
853
-
854
- @property
855
- @pulumi.getter(name="returnBehavior")
856
- def return_behavior(self) -> pulumi.Output[Optional[str]]:
857
- """
858
- Specifies the behavior of the function when returning results
859
- """
860
- return pulumi.get(self, "return_behavior")
861
-
862
- @property
863
- @pulumi.getter(name="returnType")
864
- def return_type(self) -> pulumi.Output[str]:
865
- """
866
- The return type of the function
867
- """
868
- return pulumi.get(self, "return_type")
869
-
870
- @property
871
- @pulumi.getter(name="runtimeVersion")
872
- def runtime_version(self) -> pulumi.Output[Optional[str]]:
873
- """
874
- Required for Python functions. Specifies Python runtime version.
875
- """
876
- return pulumi.get(self, "runtime_version")
877
-
878
- @property
879
- @pulumi.getter
880
- def schema(self) -> pulumi.Output[str]:
881
- """
882
- The schema in which to create the function. Don't use the | character.
883
- """
884
- return pulumi.get(self, "schema")
885
-
886
- @property
887
- @pulumi.getter
888
- def statement(self) -> pulumi.Output[str]:
889
- """
890
- Specifies the javascript / java / scala / sql / python code used to create the function.
891
- """
892
- return pulumi.get(self, "statement")
893
-
894
- @property
895
- @pulumi.getter(name="targetPath")
896
- def target_path(self) -> pulumi.Output[Optional[str]]:
897
- """
898
- The target path for the Java / Python functions. For Java, it is the path of compiled jar files and for the Python it is the path of the Python files.
899
- """
900
- return pulumi.get(self, "target_path")
901
-