pulumi-snowflake 0.50.3a1710160126__py3-none-any.whl → 1.2.0a1736835738__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-snowflake might be problematic. Click here for more details.

Files changed (182) hide show
  1. pulumi_snowflake/__init__.py +224 -172
  2. pulumi_snowflake/_inputs.py +52857 -1665
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -218
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -48
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -32
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -47
  10. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
  11. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
  12. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
  13. pulumi_snowflake/api_integration.py +33 -52
  14. pulumi_snowflake/authentication_policy.py +622 -0
  15. pulumi_snowflake/config/__init__.pyi +76 -99
  16. pulumi_snowflake/config/outputs.py +5 -0
  17. pulumi_snowflake/config/vars.py +93 -124
  18. pulumi_snowflake/cortex_search_service.py +596 -0
  19. pulumi_snowflake/database.py +819 -213
  20. pulumi_snowflake/database_role.py +81 -44
  21. pulumi_snowflake/dynamic_table.py +42 -49
  22. pulumi_snowflake/email_notification_integration.py +33 -28
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
  24. pulumi_snowflake/external_function.py +54 -75
  25. pulumi_snowflake/external_oauth_integration.py +593 -542
  26. pulumi_snowflake/external_table.py +67 -90
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +57 -98
  29. pulumi_snowflake/file_format.py +33 -28
  30. pulumi_snowflake/function_java.py +1211 -0
  31. pulumi_snowflake/function_javascript.py +882 -0
  32. pulumi_snowflake/function_python.py +1212 -0
  33. pulumi_snowflake/function_scala.py +1212 -0
  34. pulumi_snowflake/function_sql.py +835 -0
  35. pulumi_snowflake/get_account_roles.py +129 -0
  36. pulumi_snowflake/get_accounts.py +53 -22
  37. pulumi_snowflake/get_alerts.py +22 -9
  38. pulumi_snowflake/get_connections.py +109 -0
  39. pulumi_snowflake/get_cortex_search_services.py +216 -0
  40. pulumi_snowflake/get_current_account.py +24 -13
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -9
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -47
  45. pulumi_snowflake/get_databases.py +91 -73
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -9
  48. pulumi_snowflake/get_external_tables.py +28 -9
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -9
  51. pulumi_snowflake/get_functions.py +28 -9
  52. pulumi_snowflake/get_grants.py +207 -84
  53. pulumi_snowflake/get_masking_policies.py +91 -51
  54. pulumi_snowflake/get_materialized_views.py +28 -9
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -15
  57. pulumi_snowflake/get_pipes.py +28 -9
  58. pulumi_snowflake/get_procedures.py +28 -9
  59. pulumi_snowflake/get_resource_monitors.py +37 -24
  60. pulumi_snowflake/get_row_access_policies.py +91 -51
  61. pulumi_snowflake/get_schemas.py +145 -41
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -9
  65. pulumi_snowflake/get_shares.py +18 -9
  66. pulumi_snowflake/get_stages.py +28 -9
  67. pulumi_snowflake/get_storage_integrations.py +16 -9
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -54
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +120 -5
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -9
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -54
  77. pulumi_snowflake/get_users.py +116 -44
  78. pulumi_snowflake/get_views.py +114 -54
  79. pulumi_snowflake/get_warehouses.py +79 -26
  80. pulumi_snowflake/grant_account_role.py +28 -75
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -94
  83. pulumi_snowflake/grant_ownership.py +382 -0
  84. pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
  85. pulumi_snowflake/grant_privileges_to_database_role.py +37 -383
  86. pulumi_snowflake/grant_privileges_to_share.py +96 -44
  87. pulumi_snowflake/legacy_service_user.py +3670 -0
  88. pulumi_snowflake/managed_account.py +40 -11
  89. pulumi_snowflake/masking_policy.py +213 -310
  90. pulumi_snowflake/materialized_view.py +62 -71
  91. pulumi_snowflake/network_policy.py +217 -61
  92. pulumi_snowflake/network_policy_attachment.py +5 -34
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +49 -84
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
  97. pulumi_snowflake/object_parameter.py +10 -101
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -4
  101. pulumi_snowflake/primary_connection.py +330 -0
  102. pulumi_snowflake/procedure_java.py +1273 -0
  103. pulumi_snowflake/procedure_javascript.py +895 -0
  104. pulumi_snowflake/procedure_python.py +1226 -0
  105. pulumi_snowflake/procedure_scala.py +1273 -0
  106. pulumi_snowflake/procedure_sql.py +895 -0
  107. pulumi_snowflake/provider.py +378 -613
  108. pulumi_snowflake/pulumi-plugin.json +2 -1
  109. pulumi_snowflake/resource_monitor.py +118 -327
  110. pulumi_snowflake/row_access_policy.py +200 -149
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
  112. pulumi_snowflake/schema.py +949 -178
  113. pulumi_snowflake/scim_integration.py +286 -109
  114. pulumi_snowflake/secondary_connection.py +339 -0
  115. pulumi_snowflake/secondary_database.py +1080 -0
  116. pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
  117. pulumi_snowflake/secret_with_basic_authentication.py +500 -0
  118. pulumi_snowflake/secret_with_client_credentials.py +511 -0
  119. pulumi_snowflake/secret_with_generic_string.py +452 -0
  120. pulumi_snowflake/sequence.py +9 -34
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +33 -28
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -84
  125. pulumi_snowflake/storage_integration.py +46 -4
  126. pulumi_snowflake/stream_on_directory_table.py +517 -0
  127. pulumi_snowflake/stream_on_external_table.py +632 -0
  128. pulumi_snowflake/stream_on_table.py +666 -0
  129. pulumi_snowflake/stream_on_view.py +666 -0
  130. pulumi_snowflake/streamlit.py +671 -0
  131. pulumi_snowflake/table.py +86 -97
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -172
  134. pulumi_snowflake/tag.py +142 -74
  135. pulumi_snowflake/tag_association.py +40 -215
  136. pulumi_snowflake/task.py +3048 -418
  137. pulumi_snowflake/user.py +3351 -384
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +5 -4
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -215
  142. pulumi_snowflake/warehouse.py +184 -168
  143. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
  144. pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
  145. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -343
  147. pulumi_snowflake/database_grant.py +0 -495
  148. pulumi_snowflake/external_table_grant.py +0 -690
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -635
  151. pulumi_snowflake/function.py +0 -872
  152. pulumi_snowflake/function_grant.py +0 -745
  153. pulumi_snowflake/get_role.py +0 -121
  154. pulumi_snowflake/get_roles.py +0 -120
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -825
  156. pulumi_snowflake/integration_grant.py +0 -440
  157. pulumi_snowflake/masking_policy_grant.py +0 -542
  158. pulumi_snowflake/materialized_view_grant.py +0 -689
  159. pulumi_snowflake/pipe_grant.py +0 -587
  160. pulumi_snowflake/procedure.py +0 -887
  161. pulumi_snowflake/procedure_grant.py +0 -745
  162. pulumi_snowflake/resource_monitor_grant.py +0 -387
  163. pulumi_snowflake/role.py +0 -273
  164. pulumi_snowflake/role_grants.py +0 -352
  165. pulumi_snowflake/role_ownership_grant.py +0 -338
  166. pulumi_snowflake/row_access_policy_grant.py +0 -540
  167. pulumi_snowflake/schema_grant.py +0 -647
  168. pulumi_snowflake/sequence_grant.py +0 -635
  169. pulumi_snowflake/session_parameter.py +0 -332
  170. pulumi_snowflake/stage_grant.py +0 -635
  171. pulumi_snowflake/stream.py +0 -614
  172. pulumi_snowflake/stream_grant.py +0 -635
  173. pulumi_snowflake/table_grant.py +0 -677
  174. pulumi_snowflake/tag_grant.py +0 -532
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -635
  177. pulumi_snowflake/user_grant.py +0 -394
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -705
  180. pulumi_snowflake/warehouse_grant.py +0 -440
  181. pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,895 @@
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__ = ['ProcedureJavascriptArgs', 'ProcedureJavascript']
20
+
21
+ @pulumi.input_type
22
+ class ProcedureJavascriptArgs:
23
+ def __init__(__self__, *,
24
+ database: pulumi.Input[str],
25
+ procedure_definition: pulumi.Input[str],
26
+ return_type: pulumi.Input[str],
27
+ schema: pulumi.Input[str],
28
+ arguments: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]] = None,
29
+ comment: Optional[pulumi.Input[str]] = None,
30
+ enable_console_output: Optional[pulumi.Input[bool]] = None,
31
+ execute_as: Optional[pulumi.Input[str]] = None,
32
+ is_secure: Optional[pulumi.Input[str]] = None,
33
+ log_level: Optional[pulumi.Input[str]] = None,
34
+ metric_level: Optional[pulumi.Input[str]] = None,
35
+ name: Optional[pulumi.Input[str]] = None,
36
+ null_input_behavior: Optional[pulumi.Input[str]] = None,
37
+ trace_level: Optional[pulumi.Input[str]] = None):
38
+ """
39
+ The set of arguments for constructing a ProcedureJavascript resource.
40
+ :param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
41
+ :param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
42
+ :param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
43
+ :param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
44
+ :param pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
45
+ :param pulumi.Input[str] comment: Specifies a comment for the procedure.
46
+ :param pulumi.Input[bool] enable_console_output: Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
47
+ :param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
48
+ :param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
49
+ :param pulumi.Input[str] log_level: LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
50
+ :param pulumi.Input[str] metric_level: METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
51
+ :param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
52
+ :param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
53
+ :param pulumi.Input[str] trace_level: Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
54
+ """
55
+ pulumi.set(__self__, "database", database)
56
+ pulumi.set(__self__, "procedure_definition", procedure_definition)
57
+ pulumi.set(__self__, "return_type", return_type)
58
+ pulumi.set(__self__, "schema", schema)
59
+ if arguments is not None:
60
+ pulumi.set(__self__, "arguments", arguments)
61
+ if comment is not None:
62
+ pulumi.set(__self__, "comment", comment)
63
+ if enable_console_output is not None:
64
+ pulumi.set(__self__, "enable_console_output", enable_console_output)
65
+ if execute_as is not None:
66
+ pulumi.set(__self__, "execute_as", execute_as)
67
+ if is_secure is not None:
68
+ pulumi.set(__self__, "is_secure", is_secure)
69
+ if log_level is not None:
70
+ pulumi.set(__self__, "log_level", log_level)
71
+ if metric_level is not None:
72
+ pulumi.set(__self__, "metric_level", metric_level)
73
+ if name is not None:
74
+ pulumi.set(__self__, "name", name)
75
+ if null_input_behavior is not None:
76
+ pulumi.set(__self__, "null_input_behavior", null_input_behavior)
77
+ if trace_level is not None:
78
+ pulumi.set(__self__, "trace_level", trace_level)
79
+
80
+ @property
81
+ @pulumi.getter
82
+ def database(self) -> pulumi.Input[str]:
83
+ """
84
+ The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
85
+ """
86
+ return pulumi.get(self, "database")
87
+
88
+ @database.setter
89
+ def database(self, value: pulumi.Input[str]):
90
+ pulumi.set(self, "database", value)
91
+
92
+ @property
93
+ @pulumi.getter(name="procedureDefinition")
94
+ def procedure_definition(self) -> pulumi.Input[str]:
95
+ """
96
+ Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
97
+ """
98
+ return pulumi.get(self, "procedure_definition")
99
+
100
+ @procedure_definition.setter
101
+ def procedure_definition(self, value: pulumi.Input[str]):
102
+ pulumi.set(self, "procedure_definition", value)
103
+
104
+ @property
105
+ @pulumi.getter(name="returnType")
106
+ def return_type(self) -> pulumi.Input[str]:
107
+ """
108
+ Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
109
+ """
110
+ return pulumi.get(self, "return_type")
111
+
112
+ @return_type.setter
113
+ def return_type(self, value: pulumi.Input[str]):
114
+ pulumi.set(self, "return_type", value)
115
+
116
+ @property
117
+ @pulumi.getter
118
+ def schema(self) -> pulumi.Input[str]:
119
+ """
120
+ The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
121
+ """
122
+ return pulumi.get(self, "schema")
123
+
124
+ @schema.setter
125
+ def schema(self, value: pulumi.Input[str]):
126
+ pulumi.set(self, "schema", value)
127
+
128
+ @property
129
+ @pulumi.getter
130
+ def arguments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]]:
131
+ """
132
+ List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
133
+ """
134
+ return pulumi.get(self, "arguments")
135
+
136
+ @arguments.setter
137
+ def arguments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]]):
138
+ pulumi.set(self, "arguments", value)
139
+
140
+ @property
141
+ @pulumi.getter
142
+ def comment(self) -> Optional[pulumi.Input[str]]:
143
+ """
144
+ Specifies a comment for the procedure.
145
+ """
146
+ return pulumi.get(self, "comment")
147
+
148
+ @comment.setter
149
+ def comment(self, value: Optional[pulumi.Input[str]]):
150
+ pulumi.set(self, "comment", value)
151
+
152
+ @property
153
+ @pulumi.getter(name="enableConsoleOutput")
154
+ def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
155
+ """
156
+ Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
157
+ """
158
+ return pulumi.get(self, "enable_console_output")
159
+
160
+ @enable_console_output.setter
161
+ def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
162
+ pulumi.set(self, "enable_console_output", value)
163
+
164
+ @property
165
+ @pulumi.getter(name="executeAs")
166
+ def execute_as(self) -> Optional[pulumi.Input[str]]:
167
+ """
168
+ Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
169
+ """
170
+ return pulumi.get(self, "execute_as")
171
+
172
+ @execute_as.setter
173
+ def execute_as(self, value: Optional[pulumi.Input[str]]):
174
+ pulumi.set(self, "execute_as", value)
175
+
176
+ @property
177
+ @pulumi.getter(name="isSecure")
178
+ def is_secure(self) -> Optional[pulumi.Input[str]]:
179
+ """
180
+ Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
181
+ """
182
+ return pulumi.get(self, "is_secure")
183
+
184
+ @is_secure.setter
185
+ def is_secure(self, value: Optional[pulumi.Input[str]]):
186
+ pulumi.set(self, "is_secure", value)
187
+
188
+ @property
189
+ @pulumi.getter(name="logLevel")
190
+ def log_level(self) -> Optional[pulumi.Input[str]]:
191
+ """
192
+ LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
193
+ """
194
+ return pulumi.get(self, "log_level")
195
+
196
+ @log_level.setter
197
+ def log_level(self, value: Optional[pulumi.Input[str]]):
198
+ pulumi.set(self, "log_level", value)
199
+
200
+ @property
201
+ @pulumi.getter(name="metricLevel")
202
+ def metric_level(self) -> Optional[pulumi.Input[str]]:
203
+ """
204
+ METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
205
+ """
206
+ return pulumi.get(self, "metric_level")
207
+
208
+ @metric_level.setter
209
+ def metric_level(self, value: Optional[pulumi.Input[str]]):
210
+ pulumi.set(self, "metric_level", value)
211
+
212
+ @property
213
+ @pulumi.getter
214
+ def name(self) -> Optional[pulumi.Input[str]]:
215
+ """
216
+ The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
217
+ """
218
+ return pulumi.get(self, "name")
219
+
220
+ @name.setter
221
+ def name(self, value: Optional[pulumi.Input[str]]):
222
+ pulumi.set(self, "name", value)
223
+
224
+ @property
225
+ @pulumi.getter(name="nullInputBehavior")
226
+ def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
227
+ """
228
+ Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
229
+ """
230
+ return pulumi.get(self, "null_input_behavior")
231
+
232
+ @null_input_behavior.setter
233
+ def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
234
+ pulumi.set(self, "null_input_behavior", value)
235
+
236
+ @property
237
+ @pulumi.getter(name="traceLevel")
238
+ def trace_level(self) -> Optional[pulumi.Input[str]]:
239
+ """
240
+ Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
241
+ """
242
+ return pulumi.get(self, "trace_level")
243
+
244
+ @trace_level.setter
245
+ def trace_level(self, value: Optional[pulumi.Input[str]]):
246
+ pulumi.set(self, "trace_level", value)
247
+
248
+
249
+ @pulumi.input_type
250
+ class _ProcedureJavascriptState:
251
+ def __init__(__self__, *,
252
+ arguments: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]] = None,
253
+ comment: Optional[pulumi.Input[str]] = None,
254
+ database: Optional[pulumi.Input[str]] = None,
255
+ enable_console_output: Optional[pulumi.Input[bool]] = None,
256
+ execute_as: Optional[pulumi.Input[str]] = None,
257
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
258
+ is_secure: Optional[pulumi.Input[str]] = None,
259
+ log_level: Optional[pulumi.Input[str]] = None,
260
+ metric_level: Optional[pulumi.Input[str]] = None,
261
+ name: Optional[pulumi.Input[str]] = None,
262
+ null_input_behavior: Optional[pulumi.Input[str]] = None,
263
+ parameters: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptParameterArgs']]]] = None,
264
+ procedure_definition: Optional[pulumi.Input[str]] = None,
265
+ procedure_language: Optional[pulumi.Input[str]] = None,
266
+ return_type: Optional[pulumi.Input[str]] = None,
267
+ schema: Optional[pulumi.Input[str]] = None,
268
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptShowOutputArgs']]]] = None,
269
+ trace_level: Optional[pulumi.Input[str]] = None):
270
+ """
271
+ Input properties used for looking up and filtering ProcedureJavascript resources.
272
+ :param pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
273
+ :param pulumi.Input[str] comment: Specifies a comment for the procedure.
274
+ :param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
275
+ :param pulumi.Input[bool] enable_console_output: Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
276
+ :param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
277
+ :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).
278
+ :param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
279
+ :param pulumi.Input[str] log_level: LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
280
+ :param pulumi.Input[str] metric_level: METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
281
+ :param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
282
+ :param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
283
+ :param pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptParameterArgs']]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
284
+ :param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
285
+ :param pulumi.Input[str] procedure_language: Specifies language for the procedure. Used to detect external changes.
286
+ :param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
287
+ :param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
288
+ :param pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptShowOutputArgs']]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
289
+ :param pulumi.Input[str] trace_level: Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
290
+ """
291
+ if arguments is not None:
292
+ pulumi.set(__self__, "arguments", arguments)
293
+ if comment is not None:
294
+ pulumi.set(__self__, "comment", comment)
295
+ if database is not None:
296
+ pulumi.set(__self__, "database", database)
297
+ if enable_console_output is not None:
298
+ pulumi.set(__self__, "enable_console_output", enable_console_output)
299
+ if execute_as is not None:
300
+ pulumi.set(__self__, "execute_as", execute_as)
301
+ if fully_qualified_name is not None:
302
+ pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
303
+ if is_secure is not None:
304
+ pulumi.set(__self__, "is_secure", is_secure)
305
+ if log_level is not None:
306
+ pulumi.set(__self__, "log_level", log_level)
307
+ if metric_level is not None:
308
+ pulumi.set(__self__, "metric_level", metric_level)
309
+ if name is not None:
310
+ pulumi.set(__self__, "name", name)
311
+ if null_input_behavior is not None:
312
+ pulumi.set(__self__, "null_input_behavior", null_input_behavior)
313
+ if parameters is not None:
314
+ pulumi.set(__self__, "parameters", parameters)
315
+ if procedure_definition is not None:
316
+ pulumi.set(__self__, "procedure_definition", procedure_definition)
317
+ if procedure_language is not None:
318
+ pulumi.set(__self__, "procedure_language", procedure_language)
319
+ if return_type is not None:
320
+ pulumi.set(__self__, "return_type", return_type)
321
+ if schema is not None:
322
+ pulumi.set(__self__, "schema", schema)
323
+ if show_outputs is not None:
324
+ pulumi.set(__self__, "show_outputs", show_outputs)
325
+ if trace_level is not None:
326
+ pulumi.set(__self__, "trace_level", trace_level)
327
+
328
+ @property
329
+ @pulumi.getter
330
+ def arguments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]]:
331
+ """
332
+ List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
333
+ """
334
+ return pulumi.get(self, "arguments")
335
+
336
+ @arguments.setter
337
+ def arguments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]]):
338
+ pulumi.set(self, "arguments", value)
339
+
340
+ @property
341
+ @pulumi.getter
342
+ def comment(self) -> Optional[pulumi.Input[str]]:
343
+ """
344
+ Specifies a comment for the procedure.
345
+ """
346
+ return pulumi.get(self, "comment")
347
+
348
+ @comment.setter
349
+ def comment(self, value: Optional[pulumi.Input[str]]):
350
+ pulumi.set(self, "comment", value)
351
+
352
+ @property
353
+ @pulumi.getter
354
+ def database(self) -> Optional[pulumi.Input[str]]:
355
+ """
356
+ The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
357
+ """
358
+ return pulumi.get(self, "database")
359
+
360
+ @database.setter
361
+ def database(self, value: Optional[pulumi.Input[str]]):
362
+ pulumi.set(self, "database", value)
363
+
364
+ @property
365
+ @pulumi.getter(name="enableConsoleOutput")
366
+ def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
367
+ """
368
+ Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
369
+ """
370
+ return pulumi.get(self, "enable_console_output")
371
+
372
+ @enable_console_output.setter
373
+ def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
374
+ pulumi.set(self, "enable_console_output", value)
375
+
376
+ @property
377
+ @pulumi.getter(name="executeAs")
378
+ def execute_as(self) -> Optional[pulumi.Input[str]]:
379
+ """
380
+ Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
381
+ """
382
+ return pulumi.get(self, "execute_as")
383
+
384
+ @execute_as.setter
385
+ def execute_as(self, value: Optional[pulumi.Input[str]]):
386
+ pulumi.set(self, "execute_as", value)
387
+
388
+ @property
389
+ @pulumi.getter(name="fullyQualifiedName")
390
+ def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
391
+ """
392
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
393
+ """
394
+ return pulumi.get(self, "fully_qualified_name")
395
+
396
+ @fully_qualified_name.setter
397
+ def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
398
+ pulumi.set(self, "fully_qualified_name", value)
399
+
400
+ @property
401
+ @pulumi.getter(name="isSecure")
402
+ def is_secure(self) -> Optional[pulumi.Input[str]]:
403
+ """
404
+ Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
405
+ """
406
+ return pulumi.get(self, "is_secure")
407
+
408
+ @is_secure.setter
409
+ def is_secure(self, value: Optional[pulumi.Input[str]]):
410
+ pulumi.set(self, "is_secure", value)
411
+
412
+ @property
413
+ @pulumi.getter(name="logLevel")
414
+ def log_level(self) -> Optional[pulumi.Input[str]]:
415
+ """
416
+ LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
417
+ """
418
+ return pulumi.get(self, "log_level")
419
+
420
+ @log_level.setter
421
+ def log_level(self, value: Optional[pulumi.Input[str]]):
422
+ pulumi.set(self, "log_level", value)
423
+
424
+ @property
425
+ @pulumi.getter(name="metricLevel")
426
+ def metric_level(self) -> Optional[pulumi.Input[str]]:
427
+ """
428
+ METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
429
+ """
430
+ return pulumi.get(self, "metric_level")
431
+
432
+ @metric_level.setter
433
+ def metric_level(self, value: Optional[pulumi.Input[str]]):
434
+ pulumi.set(self, "metric_level", value)
435
+
436
+ @property
437
+ @pulumi.getter
438
+ def name(self) -> Optional[pulumi.Input[str]]:
439
+ """
440
+ The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
441
+ """
442
+ return pulumi.get(self, "name")
443
+
444
+ @name.setter
445
+ def name(self, value: Optional[pulumi.Input[str]]):
446
+ pulumi.set(self, "name", value)
447
+
448
+ @property
449
+ @pulumi.getter(name="nullInputBehavior")
450
+ def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
451
+ """
452
+ Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
453
+ """
454
+ return pulumi.get(self, "null_input_behavior")
455
+
456
+ @null_input_behavior.setter
457
+ def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
458
+ pulumi.set(self, "null_input_behavior", value)
459
+
460
+ @property
461
+ @pulumi.getter
462
+ def parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptParameterArgs']]]]:
463
+ """
464
+ Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
465
+ """
466
+ return pulumi.get(self, "parameters")
467
+
468
+ @parameters.setter
469
+ def parameters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptParameterArgs']]]]):
470
+ pulumi.set(self, "parameters", value)
471
+
472
+ @property
473
+ @pulumi.getter(name="procedureDefinition")
474
+ def procedure_definition(self) -> Optional[pulumi.Input[str]]:
475
+ """
476
+ Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
477
+ """
478
+ return pulumi.get(self, "procedure_definition")
479
+
480
+ @procedure_definition.setter
481
+ def procedure_definition(self, value: Optional[pulumi.Input[str]]):
482
+ pulumi.set(self, "procedure_definition", value)
483
+
484
+ @property
485
+ @pulumi.getter(name="procedureLanguage")
486
+ def procedure_language(self) -> Optional[pulumi.Input[str]]:
487
+ """
488
+ Specifies language for the procedure. Used to detect external changes.
489
+ """
490
+ return pulumi.get(self, "procedure_language")
491
+
492
+ @procedure_language.setter
493
+ def procedure_language(self, value: Optional[pulumi.Input[str]]):
494
+ pulumi.set(self, "procedure_language", value)
495
+
496
+ @property
497
+ @pulumi.getter(name="returnType")
498
+ def return_type(self) -> Optional[pulumi.Input[str]]:
499
+ """
500
+ Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
501
+ """
502
+ return pulumi.get(self, "return_type")
503
+
504
+ @return_type.setter
505
+ def return_type(self, value: Optional[pulumi.Input[str]]):
506
+ pulumi.set(self, "return_type", value)
507
+
508
+ @property
509
+ @pulumi.getter
510
+ def schema(self) -> Optional[pulumi.Input[str]]:
511
+ """
512
+ The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
513
+ """
514
+ return pulumi.get(self, "schema")
515
+
516
+ @schema.setter
517
+ def schema(self, value: Optional[pulumi.Input[str]]):
518
+ pulumi.set(self, "schema", value)
519
+
520
+ @property
521
+ @pulumi.getter(name="showOutputs")
522
+ def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptShowOutputArgs']]]]:
523
+ """
524
+ Outputs the result of `SHOW PROCEDURE` for the given procedure.
525
+ """
526
+ return pulumi.get(self, "show_outputs")
527
+
528
+ @show_outputs.setter
529
+ def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptShowOutputArgs']]]]):
530
+ pulumi.set(self, "show_outputs", value)
531
+
532
+ @property
533
+ @pulumi.getter(name="traceLevel")
534
+ def trace_level(self) -> Optional[pulumi.Input[str]]:
535
+ """
536
+ Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
537
+ """
538
+ return pulumi.get(self, "trace_level")
539
+
540
+ @trace_level.setter
541
+ def trace_level(self, value: Optional[pulumi.Input[str]]):
542
+ pulumi.set(self, "trace_level", value)
543
+
544
+
545
+ class ProcedureJavascript(pulumi.CustomResource):
546
+ @overload
547
+ def __init__(__self__,
548
+ resource_name: str,
549
+ opts: Optional[pulumi.ResourceOptions] = None,
550
+ arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptArgumentArgs', 'ProcedureJavascriptArgumentArgsDict']]]]] = None,
551
+ comment: Optional[pulumi.Input[str]] = None,
552
+ database: Optional[pulumi.Input[str]] = None,
553
+ enable_console_output: Optional[pulumi.Input[bool]] = None,
554
+ execute_as: Optional[pulumi.Input[str]] = None,
555
+ is_secure: Optional[pulumi.Input[str]] = None,
556
+ log_level: Optional[pulumi.Input[str]] = None,
557
+ metric_level: Optional[pulumi.Input[str]] = None,
558
+ name: Optional[pulumi.Input[str]] = None,
559
+ null_input_behavior: Optional[pulumi.Input[str]] = None,
560
+ procedure_definition: Optional[pulumi.Input[str]] = None,
561
+ return_type: Optional[pulumi.Input[str]] = None,
562
+ schema: Optional[pulumi.Input[str]] = None,
563
+ trace_level: Optional[pulumi.Input[str]] = None,
564
+ __props__=None):
565
+ """
566
+ ## Import
567
+
568
+ ```sh
569
+ $ pulumi import snowflake:index/procedureJavascript:ProcedureJavascript example '"<database_name>"."<schema_name>"."<function_name>"(varchar, varchar, varchar)'
570
+ ```
571
+
572
+ Note: Snowflake is not returning all information needed to populate the state correctly after import (e.g. data types with attributes like NUMBER(32, 10) are returned as NUMBER, default values for arguments are not returned at all).
573
+
574
+ Also, `ALTER` for functions is very limited so most of the attributes on this resource are marked as force new. Because of that, in multiple situations plan won't be empty after importing and manual state operations may be required.
575
+
576
+ :param str resource_name: The name of the resource.
577
+ :param pulumi.ResourceOptions opts: Options for the resource.
578
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptArgumentArgs', 'ProcedureJavascriptArgumentArgsDict']]]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
579
+ :param pulumi.Input[str] comment: Specifies a comment for the procedure.
580
+ :param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
581
+ :param pulumi.Input[bool] enable_console_output: Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
582
+ :param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
583
+ :param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
584
+ :param pulumi.Input[str] log_level: LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
585
+ :param pulumi.Input[str] metric_level: METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
586
+ :param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
587
+ :param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
588
+ :param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
589
+ :param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
590
+ :param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
591
+ :param pulumi.Input[str] trace_level: Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
592
+ """
593
+ ...
594
+ @overload
595
+ def __init__(__self__,
596
+ resource_name: str,
597
+ args: ProcedureJavascriptArgs,
598
+ opts: Optional[pulumi.ResourceOptions] = None):
599
+ """
600
+ ## Import
601
+
602
+ ```sh
603
+ $ pulumi import snowflake:index/procedureJavascript:ProcedureJavascript example '"<database_name>"."<schema_name>"."<function_name>"(varchar, varchar, varchar)'
604
+ ```
605
+
606
+ Note: Snowflake is not returning all information needed to populate the state correctly after import (e.g. data types with attributes like NUMBER(32, 10) are returned as NUMBER, default values for arguments are not returned at all).
607
+
608
+ Also, `ALTER` for functions is very limited so most of the attributes on this resource are marked as force new. Because of that, in multiple situations plan won't be empty after importing and manual state operations may be required.
609
+
610
+ :param str resource_name: The name of the resource.
611
+ :param ProcedureJavascriptArgs args: The arguments to use to populate this resource's properties.
612
+ :param pulumi.ResourceOptions opts: Options for the resource.
613
+ """
614
+ ...
615
+ def __init__(__self__, resource_name: str, *args, **kwargs):
616
+ resource_args, opts = _utilities.get_resource_args_opts(ProcedureJavascriptArgs, pulumi.ResourceOptions, *args, **kwargs)
617
+ if resource_args is not None:
618
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
619
+ else:
620
+ __self__._internal_init(resource_name, *args, **kwargs)
621
+
622
+ def _internal_init(__self__,
623
+ resource_name: str,
624
+ opts: Optional[pulumi.ResourceOptions] = None,
625
+ arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptArgumentArgs', 'ProcedureJavascriptArgumentArgsDict']]]]] = None,
626
+ comment: Optional[pulumi.Input[str]] = None,
627
+ database: Optional[pulumi.Input[str]] = None,
628
+ enable_console_output: Optional[pulumi.Input[bool]] = None,
629
+ execute_as: Optional[pulumi.Input[str]] = None,
630
+ is_secure: Optional[pulumi.Input[str]] = None,
631
+ log_level: Optional[pulumi.Input[str]] = None,
632
+ metric_level: Optional[pulumi.Input[str]] = None,
633
+ name: Optional[pulumi.Input[str]] = None,
634
+ null_input_behavior: Optional[pulumi.Input[str]] = None,
635
+ procedure_definition: Optional[pulumi.Input[str]] = None,
636
+ return_type: Optional[pulumi.Input[str]] = None,
637
+ schema: Optional[pulumi.Input[str]] = None,
638
+ trace_level: Optional[pulumi.Input[str]] = None,
639
+ __props__=None):
640
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
641
+ if not isinstance(opts, pulumi.ResourceOptions):
642
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
643
+ if opts.id is None:
644
+ if __props__ is not None:
645
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
646
+ __props__ = ProcedureJavascriptArgs.__new__(ProcedureJavascriptArgs)
647
+
648
+ __props__.__dict__["arguments"] = arguments
649
+ __props__.__dict__["comment"] = comment
650
+ if database is None and not opts.urn:
651
+ raise TypeError("Missing required property 'database'")
652
+ __props__.__dict__["database"] = database
653
+ __props__.__dict__["enable_console_output"] = enable_console_output
654
+ __props__.__dict__["execute_as"] = execute_as
655
+ __props__.__dict__["is_secure"] = is_secure
656
+ __props__.__dict__["log_level"] = log_level
657
+ __props__.__dict__["metric_level"] = metric_level
658
+ __props__.__dict__["name"] = name
659
+ __props__.__dict__["null_input_behavior"] = null_input_behavior
660
+ if procedure_definition is None and not opts.urn:
661
+ raise TypeError("Missing required property 'procedure_definition'")
662
+ __props__.__dict__["procedure_definition"] = procedure_definition
663
+ if return_type is None and not opts.urn:
664
+ raise TypeError("Missing required property 'return_type'")
665
+ __props__.__dict__["return_type"] = return_type
666
+ if schema is None and not opts.urn:
667
+ raise TypeError("Missing required property 'schema'")
668
+ __props__.__dict__["schema"] = schema
669
+ __props__.__dict__["trace_level"] = trace_level
670
+ __props__.__dict__["fully_qualified_name"] = None
671
+ __props__.__dict__["parameters"] = None
672
+ __props__.__dict__["procedure_language"] = None
673
+ __props__.__dict__["show_outputs"] = None
674
+ super(ProcedureJavascript, __self__).__init__(
675
+ 'snowflake:index/procedureJavascript:ProcedureJavascript',
676
+ resource_name,
677
+ __props__,
678
+ opts)
679
+
680
+ @staticmethod
681
+ def get(resource_name: str,
682
+ id: pulumi.Input[str],
683
+ opts: Optional[pulumi.ResourceOptions] = None,
684
+ arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptArgumentArgs', 'ProcedureJavascriptArgumentArgsDict']]]]] = None,
685
+ comment: Optional[pulumi.Input[str]] = None,
686
+ database: Optional[pulumi.Input[str]] = None,
687
+ enable_console_output: Optional[pulumi.Input[bool]] = None,
688
+ execute_as: Optional[pulumi.Input[str]] = None,
689
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
690
+ is_secure: Optional[pulumi.Input[str]] = None,
691
+ log_level: Optional[pulumi.Input[str]] = None,
692
+ metric_level: Optional[pulumi.Input[str]] = None,
693
+ name: Optional[pulumi.Input[str]] = None,
694
+ null_input_behavior: Optional[pulumi.Input[str]] = None,
695
+ parameters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptParameterArgs', 'ProcedureJavascriptParameterArgsDict']]]]] = None,
696
+ procedure_definition: Optional[pulumi.Input[str]] = None,
697
+ procedure_language: Optional[pulumi.Input[str]] = None,
698
+ return_type: Optional[pulumi.Input[str]] = None,
699
+ schema: Optional[pulumi.Input[str]] = None,
700
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptShowOutputArgs', 'ProcedureJavascriptShowOutputArgsDict']]]]] = None,
701
+ trace_level: Optional[pulumi.Input[str]] = None) -> 'ProcedureJavascript':
702
+ """
703
+ Get an existing ProcedureJavascript resource's state with the given name, id, and optional extra
704
+ properties used to qualify the lookup.
705
+
706
+ :param str resource_name: The unique name of the resulting resource.
707
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
708
+ :param pulumi.ResourceOptions opts: Options for the resource.
709
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptArgumentArgs', 'ProcedureJavascriptArgumentArgsDict']]]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
710
+ :param pulumi.Input[str] comment: Specifies a comment for the procedure.
711
+ :param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
712
+ :param pulumi.Input[bool] enable_console_output: Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
713
+ :param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
714
+ :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).
715
+ :param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
716
+ :param pulumi.Input[str] log_level: LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
717
+ :param pulumi.Input[str] metric_level: METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
718
+ :param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
719
+ :param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
720
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptParameterArgs', 'ProcedureJavascriptParameterArgsDict']]]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
721
+ :param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
722
+ :param pulumi.Input[str] procedure_language: Specifies language for the procedure. Used to detect external changes.
723
+ :param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
724
+ :param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
725
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptShowOutputArgs', 'ProcedureJavascriptShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
726
+ :param pulumi.Input[str] trace_level: Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
727
+ """
728
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
729
+
730
+ __props__ = _ProcedureJavascriptState.__new__(_ProcedureJavascriptState)
731
+
732
+ __props__.__dict__["arguments"] = arguments
733
+ __props__.__dict__["comment"] = comment
734
+ __props__.__dict__["database"] = database
735
+ __props__.__dict__["enable_console_output"] = enable_console_output
736
+ __props__.__dict__["execute_as"] = execute_as
737
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
738
+ __props__.__dict__["is_secure"] = is_secure
739
+ __props__.__dict__["log_level"] = log_level
740
+ __props__.__dict__["metric_level"] = metric_level
741
+ __props__.__dict__["name"] = name
742
+ __props__.__dict__["null_input_behavior"] = null_input_behavior
743
+ __props__.__dict__["parameters"] = parameters
744
+ __props__.__dict__["procedure_definition"] = procedure_definition
745
+ __props__.__dict__["procedure_language"] = procedure_language
746
+ __props__.__dict__["return_type"] = return_type
747
+ __props__.__dict__["schema"] = schema
748
+ __props__.__dict__["show_outputs"] = show_outputs
749
+ __props__.__dict__["trace_level"] = trace_level
750
+ return ProcedureJavascript(resource_name, opts=opts, __props__=__props__)
751
+
752
+ @property
753
+ @pulumi.getter
754
+ def arguments(self) -> pulumi.Output[Optional[Sequence['outputs.ProcedureJavascriptArgument']]]:
755
+ """
756
+ List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
757
+ """
758
+ return pulumi.get(self, "arguments")
759
+
760
+ @property
761
+ @pulumi.getter
762
+ def comment(self) -> pulumi.Output[Optional[str]]:
763
+ """
764
+ Specifies a comment for the procedure.
765
+ """
766
+ return pulumi.get(self, "comment")
767
+
768
+ @property
769
+ @pulumi.getter
770
+ def database(self) -> pulumi.Output[str]:
771
+ """
772
+ The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
773
+ """
774
+ return pulumi.get(self, "database")
775
+
776
+ @property
777
+ @pulumi.getter(name="enableConsoleOutput")
778
+ def enable_console_output(self) -> pulumi.Output[bool]:
779
+ """
780
+ Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
781
+ """
782
+ return pulumi.get(self, "enable_console_output")
783
+
784
+ @property
785
+ @pulumi.getter(name="executeAs")
786
+ def execute_as(self) -> pulumi.Output[Optional[str]]:
787
+ """
788
+ Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
789
+ """
790
+ return pulumi.get(self, "execute_as")
791
+
792
+ @property
793
+ @pulumi.getter(name="fullyQualifiedName")
794
+ def fully_qualified_name(self) -> pulumi.Output[str]:
795
+ """
796
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
797
+ """
798
+ return pulumi.get(self, "fully_qualified_name")
799
+
800
+ @property
801
+ @pulumi.getter(name="isSecure")
802
+ def is_secure(self) -> pulumi.Output[Optional[str]]:
803
+ """
804
+ Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
805
+ """
806
+ return pulumi.get(self, "is_secure")
807
+
808
+ @property
809
+ @pulumi.getter(name="logLevel")
810
+ def log_level(self) -> pulumi.Output[str]:
811
+ """
812
+ LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
813
+ """
814
+ return pulumi.get(self, "log_level")
815
+
816
+ @property
817
+ @pulumi.getter(name="metricLevel")
818
+ def metric_level(self) -> pulumi.Output[str]:
819
+ """
820
+ METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
821
+ """
822
+ return pulumi.get(self, "metric_level")
823
+
824
+ @property
825
+ @pulumi.getter
826
+ def name(self) -> pulumi.Output[str]:
827
+ """
828
+ The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
829
+ """
830
+ return pulumi.get(self, "name")
831
+
832
+ @property
833
+ @pulumi.getter(name="nullInputBehavior")
834
+ def null_input_behavior(self) -> pulumi.Output[Optional[str]]:
835
+ """
836
+ Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
837
+ """
838
+ return pulumi.get(self, "null_input_behavior")
839
+
840
+ @property
841
+ @pulumi.getter
842
+ def parameters(self) -> pulumi.Output[Sequence['outputs.ProcedureJavascriptParameter']]:
843
+ """
844
+ Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
845
+ """
846
+ return pulumi.get(self, "parameters")
847
+
848
+ @property
849
+ @pulumi.getter(name="procedureDefinition")
850
+ def procedure_definition(self) -> pulumi.Output[str]:
851
+ """
852
+ Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
853
+ """
854
+ return pulumi.get(self, "procedure_definition")
855
+
856
+ @property
857
+ @pulumi.getter(name="procedureLanguage")
858
+ def procedure_language(self) -> pulumi.Output[str]:
859
+ """
860
+ Specifies language for the procedure. Used to detect external changes.
861
+ """
862
+ return pulumi.get(self, "procedure_language")
863
+
864
+ @property
865
+ @pulumi.getter(name="returnType")
866
+ def return_type(self) -> pulumi.Output[str]:
867
+ """
868
+ Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
869
+ """
870
+ return pulumi.get(self, "return_type")
871
+
872
+ @property
873
+ @pulumi.getter
874
+ def schema(self) -> pulumi.Output[str]:
875
+ """
876
+ The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
877
+ """
878
+ return pulumi.get(self, "schema")
879
+
880
+ @property
881
+ @pulumi.getter(name="showOutputs")
882
+ def show_outputs(self) -> pulumi.Output[Sequence['outputs.ProcedureJavascriptShowOutput']]:
883
+ """
884
+ Outputs the result of `SHOW PROCEDURE` for the given procedure.
885
+ """
886
+ return pulumi.get(self, "show_outputs")
887
+
888
+ @property
889
+ @pulumi.getter(name="traceLevel")
890
+ def trace_level(self) -> pulumi.Output[str]:
891
+ """
892
+ Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
893
+ """
894
+ return pulumi.get(self, "trace_level")
895
+