pulumi-snowflake 1.2.0a1743575514__py3-none-any.whl → 1.2.0a1744266763__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.
- pulumi_snowflake/__init__.py +1 -0
- pulumi_snowflake/_inputs.py +12288 -12287
- pulumi_snowflake/account.py +186 -185
- pulumi_snowflake/account_authentication_policy_attachment.py +15 -14
- pulumi_snowflake/account_parameter.py +29 -28
- pulumi_snowflake/account_password_policy_attachment.py +15 -14
- pulumi_snowflake/account_role.py +32 -31
- pulumi_snowflake/alert.py +120 -119
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +158 -157
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +144 -143
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +154 -153
- pulumi_snowflake/api_integration.py +203 -202
- pulumi_snowflake/authentication_policy.py +134 -133
- pulumi_snowflake/config/__init__.py +1 -0
- pulumi_snowflake/config/__init__.pyi +1 -0
- pulumi_snowflake/config/outputs.py +16 -15
- pulumi_snowflake/config/vars.py +1 -0
- pulumi_snowflake/cortex_search_service.py +141 -140
- pulumi_snowflake/database.py +288 -287
- pulumi_snowflake/database_role.py +50 -49
- pulumi_snowflake/dynamic_table.py +218 -217
- pulumi_snowflake/email_notification_integration.py +56 -55
- pulumi_snowflake/execute.py +50 -49
- pulumi_snowflake/external_function.py +225 -224
- pulumi_snowflake/external_oauth_integration.py +232 -231
- pulumi_snowflake/external_table.py +197 -196
- pulumi_snowflake/external_volume.py +50 -49
- pulumi_snowflake/failover_group.py +106 -105
- pulumi_snowflake/file_format.py +512 -511
- pulumi_snowflake/function_java.py +249 -248
- pulumi_snowflake/function_javascript.py +193 -192
- pulumi_snowflake/function_python.py +263 -262
- pulumi_snowflake/function_scala.py +249 -248
- pulumi_snowflake/function_sql.py +179 -178
- pulumi_snowflake/get_account_roles.py +12 -11
- pulumi_snowflake/get_accounts.py +12 -11
- pulumi_snowflake/get_alerts.py +17 -16
- pulumi_snowflake/get_connections.py +7 -6
- pulumi_snowflake/get_cortex_search_services.py +12 -11
- pulumi_snowflake/get_current_account.py +5 -4
- pulumi_snowflake/get_current_role.py +3 -2
- pulumi_snowflake/get_database.py +15 -14
- pulumi_snowflake/get_database_role.py +14 -13
- pulumi_snowflake/get_database_roles.py +12 -11
- pulumi_snowflake/get_databases.py +22 -21
- pulumi_snowflake/get_dynamic_tables.py +7 -6
- pulumi_snowflake/get_external_functions.py +12 -11
- pulumi_snowflake/get_external_tables.py +12 -11
- pulumi_snowflake/get_failover_groups.py +7 -6
- pulumi_snowflake/get_file_formats.py +12 -11
- pulumi_snowflake/get_functions.py +12 -11
- pulumi_snowflake/get_grants.py +2 -1
- pulumi_snowflake/get_masking_policies.py +12 -11
- pulumi_snowflake/get_materialized_views.py +12 -11
- pulumi_snowflake/get_network_policies.py +12 -11
- pulumi_snowflake/get_parameters.py +27 -26
- pulumi_snowflake/get_pipes.py +12 -11
- pulumi_snowflake/get_procedures.py +12 -11
- pulumi_snowflake/get_resource_monitors.py +7 -6
- pulumi_snowflake/get_row_access_policies.py +12 -11
- pulumi_snowflake/get_schemas.py +22 -21
- pulumi_snowflake/get_secrets.py +12 -11
- pulumi_snowflake/get_security_integrations.py +12 -11
- pulumi_snowflake/get_sequences.py +12 -11
- pulumi_snowflake/get_shares.py +7 -6
- pulumi_snowflake/get_stages.py +12 -11
- pulumi_snowflake/get_storage_integrations.py +2 -1
- pulumi_snowflake/get_streamlits.py +12 -11
- pulumi_snowflake/get_streams.py +17 -16
- pulumi_snowflake/get_system_generate_scim_access_token.py +8 -7
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +8 -7
- pulumi_snowflake/get_system_get_private_link_config.py +11 -10
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +4 -3
- pulumi_snowflake/get_tables.py +12 -11
- pulumi_snowflake/get_tags.py +7 -6
- pulumi_snowflake/get_tasks.py +22 -21
- pulumi_snowflake/get_users.py +22 -21
- pulumi_snowflake/get_views.py +17 -16
- pulumi_snowflake/get_warehouses.py +17 -16
- pulumi_snowflake/grant_account_role.py +43 -42
- pulumi_snowflake/grant_application_role.py +43 -42
- pulumi_snowflake/grant_database_role.py +57 -56
- pulumi_snowflake/grant_ownership.py +43 -42
- pulumi_snowflake/grant_privileges_to_account_role.py +95 -94
- pulumi_snowflake/grant_privileges_to_database_role.py +95 -94
- pulumi_snowflake/grant_privileges_to_share.py +127 -126
- pulumi_snowflake/legacy_service_user.py +1039 -1038
- pulumi_snowflake/managed_account.py +113 -112
- pulumi_snowflake/masking_policy.py +106 -105
- pulumi_snowflake/materialized_view.py +120 -119
- pulumi_snowflake/network_policy.py +92 -91
- pulumi_snowflake/network_policy_attachment.py +43 -42
- pulumi_snowflake/network_rule.py +106 -105
- pulumi_snowflake/notification_integration.py +238 -237
- pulumi_snowflake/oauth_integration_for_custom_clients.py +210 -209
- pulumi_snowflake/oauth_integration_for_partner_applications.py +134 -133
- pulumi_snowflake/object_parameter.py +57 -56
- pulumi_snowflake/outputs.py +9273 -9272
- pulumi_snowflake/password_policy.py +246 -245
- pulumi_snowflake/pipe.py +148 -147
- pulumi_snowflake/primary_connection.py +55 -54
- pulumi_snowflake/procedure_java.py +267 -266
- pulumi_snowflake/procedure_javascript.py +197 -196
- pulumi_snowflake/procedure_python.py +267 -266
- pulumi_snowflake/procedure_scala.py +267 -266
- pulumi_snowflake/procedure_sql.py +197 -196
- pulumi_snowflake/provider.py +303 -302
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +134 -133
- pulumi_snowflake/row_access_policy.py +78 -77
- pulumi_snowflake/saml2_integration.py +246 -245
- pulumi_snowflake/schema.py +316 -315
- pulumi_snowflake/scim_integration.py +106 -105
- pulumi_snowflake/secondary_connection.py +57 -56
- pulumi_snowflake/secondary_database.py +288 -287
- pulumi_snowflake/secret_with_authorization_code_grant.py +109 -108
- pulumi_snowflake/secret_with_basic_authentication.py +95 -94
- pulumi_snowflake/secret_with_client_credentials.py +99 -98
- pulumi_snowflake/secret_with_generic_string.py +81 -80
- pulumi_snowflake/sequence.py +99 -98
- pulumi_snowflake/service_user.py +1015 -1014
- pulumi_snowflake/share.py +50 -49
- pulumi_snowflake/shared_database.py +246 -245
- pulumi_snowflake/stage.py +190 -189
- pulumi_snowflake/storage_integration.py +166 -165
- pulumi_snowflake/stream_on_directory_table.py +100 -99
- pulumi_snowflake/stream_on_external_table.py +114 -113
- pulumi_snowflake/stream_on_table.py +124 -123
- pulumi_snowflake/stream_on_view.py +124 -123
- pulumi_snowflake/streamlit.py +148 -147
- pulumi_snowflake/table.py +113 -112
- pulumi_snowflake/table_column_masking_policy_application.py +43 -42
- pulumi_snowflake/table_constraint.py +155 -154
- pulumi_snowflake/tag.py +92 -91
- pulumi_snowflake/tag_association.py +71 -70
- pulumi_snowflake/task.py +1002 -1001
- pulumi_snowflake/user.py +1101 -1100
- pulumi_snowflake/user_authentication_policy_attachment.py +29 -28
- pulumi_snowflake/user_password_policy_attachment.py +29 -28
- pulumi_snowflake/user_public_keys.py +43 -42
- pulumi_snowflake/view.py +136 -135
- pulumi_snowflake/warehouse.py +232 -231
- {pulumi_snowflake-1.2.0a1743575514.dist-info → pulumi_snowflake-1.2.0a1744266763.dist-info}/METADATA +1 -1
- pulumi_snowflake-1.2.0a1744266763.dist-info/RECORD +148 -0
- pulumi_snowflake-1.2.0a1743575514.dist-info/RECORD +0 -148
- {pulumi_snowflake-1.2.0a1743575514.dist-info → pulumi_snowflake-1.2.0a1744266763.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-1.2.0a1743575514.dist-info → pulumi_snowflake-1.2.0a1744266763.dist-info}/top_level.txt +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
+
import builtins
|
|
5
6
|
import copy
|
|
6
7
|
import warnings
|
|
7
8
|
import sys
|
|
@@ -21,49 +22,49 @@ __all__ = ['FunctionScalaArgs', 'FunctionScala']
|
|
|
21
22
|
@pulumi.input_type
|
|
22
23
|
class FunctionScalaArgs:
|
|
23
24
|
def __init__(__self__, *,
|
|
24
|
-
database: pulumi.Input[str],
|
|
25
|
-
handler: pulumi.Input[str],
|
|
26
|
-
return_type: pulumi.Input[str],
|
|
27
|
-
runtime_version: pulumi.Input[str],
|
|
28
|
-
schema: pulumi.Input[str],
|
|
25
|
+
database: pulumi.Input[builtins.str],
|
|
26
|
+
handler: pulumi.Input[builtins.str],
|
|
27
|
+
return_type: pulumi.Input[builtins.str],
|
|
28
|
+
runtime_version: pulumi.Input[builtins.str],
|
|
29
|
+
schema: pulumi.Input[builtins.str],
|
|
29
30
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionScalaArgumentArgs']]]] = None,
|
|
30
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
31
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
32
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
33
|
-
function_definition: Optional[pulumi.Input[str]] = None,
|
|
31
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
32
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
33
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
34
|
+
function_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
34
35
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionScalaImportArgs']]]] = None,
|
|
35
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
36
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
37
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
38
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
39
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
40
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
41
|
-
return_results_behavior: Optional[pulumi.Input[str]] = None,
|
|
36
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
37
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
38
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
39
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
40
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
41
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
42
|
+
return_results_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
42
43
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionScalaSecretArgs']]]] = None,
|
|
43
44
|
target_path: Optional[pulumi.Input['FunctionScalaTargetPathArgs']] = None,
|
|
44
|
-
trace_level: Optional[pulumi.Input[str]] = None):
|
|
45
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None):
|
|
45
46
|
"""
|
|
46
47
|
The set of arguments for constructing a FunctionScala resource.
|
|
47
|
-
:param pulumi.Input[str] database: The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
48
|
-
:param pulumi.Input[str] handler: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
49
|
-
:param pulumi.Input[str] return_type: Specifies the results returned by the UDF, which determines the UDF type. Use `<result_data_type>` to create a scalar UDF that returns a single value with the specified data type. Use `TABLE (col_name col_data_type, ...)` to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
50
|
-
:param pulumi.Input[str] runtime_version: Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
|
|
51
|
-
:param pulumi.Input[str] schema: The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
48
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
49
|
+
:param pulumi.Input[builtins.str] handler: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
50
|
+
:param pulumi.Input[builtins.str] return_type: Specifies the results returned by the UDF, which determines the UDF type. Use `<result_data_type>` to create a scalar UDF that returns a single value with the specified data type. Use `TABLE (col_name col_data_type, ...)` to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
51
|
+
:param pulumi.Input[builtins.str] runtime_version: Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
|
|
52
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
52
53
|
:param pulumi.Input[Sequence[pulumi.Input['FunctionScalaArgumentArgs']]] arguments: List of the arguments for the function. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages) for more details.
|
|
53
|
-
:param pulumi.Input[str] comment: Specifies a comment for the function.
|
|
54
|
-
: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).
|
|
55
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] external_access_integrations: The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this function’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
56
|
-
:param pulumi.Input[str] function_definition: Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `function_definition` value must be Scala source code. For more information, see [Introduction to Scala UDFs](https://docs.snowflake.com/en/developer-guide/udf/scala/udf-scala-introduction). 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.
|
|
54
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the function.
|
|
55
|
+
:param pulumi.Input[builtins.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).
|
|
56
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] external_access_integrations: The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this function’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
57
|
+
:param pulumi.Input[builtins.str] function_definition: Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `function_definition` value must be Scala source code. For more information, see [Introduction to Scala UDFs](https://docs.snowflake.com/en/developer-guide/udf/scala/udf-scala-introduction). 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.
|
|
57
58
|
:param pulumi.Input[Sequence[pulumi.Input['FunctionScalaImportArgs']]] imports: The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see [Reading a file specified statically in IMPORTS](https://docs.snowflake.com/en/developer-guide/udf/java/udf-java-cookbook.html#label-reading-file-from-java-udf-imports). Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#scala).
|
|
58
|
-
: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).
|
|
59
|
-
: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).
|
|
60
|
-
:param pulumi.Input[str] name: The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
61
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
62
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] packages: The name and version number of Snowflake system packages required as dependencies. The value should be of the form `package_name:version_number`, where `package_name` is `snowflake_domain:package`.
|
|
63
|
-
:param pulumi.Input[str] return_results_behavior: Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
59
|
+
:param pulumi.Input[builtins.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).
|
|
60
|
+
:param pulumi.Input[builtins.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).
|
|
61
|
+
:param pulumi.Input[builtins.str] name: The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
62
|
+
:param pulumi.Input[builtins.str] null_input_behavior: Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
63
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] packages: The name and version number of Snowflake system packages required as dependencies. The value should be of the form `package_name:version_number`, where `package_name` is `snowflake_domain:package`.
|
|
64
|
+
:param pulumi.Input[builtins.str] return_results_behavior: Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
64
65
|
:param pulumi.Input[Sequence[pulumi.Input['FunctionScalaSecretArgs']]] secrets: Assigns the names of [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the [external access integration](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) specified as a value of this CREATE FUNCTION command’s EXTERNAL*ACCESS*INTEGRATIONS parameter.
|
|
65
66
|
:param pulumi.Input['FunctionScalaTargetPathArgs'] target_path: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
66
|
-
: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).
|
|
67
|
+
:param pulumi.Input[builtins.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).
|
|
67
68
|
"""
|
|
68
69
|
pulumi.set(__self__, "database", database)
|
|
69
70
|
pulumi.set(__self__, "handler", handler)
|
|
@@ -105,62 +106,62 @@ class FunctionScalaArgs:
|
|
|
105
106
|
|
|
106
107
|
@property
|
|
107
108
|
@pulumi.getter
|
|
108
|
-
def database(self) -> pulumi.Input[str]:
|
|
109
|
+
def database(self) -> pulumi.Input[builtins.str]:
|
|
109
110
|
"""
|
|
110
111
|
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
111
112
|
"""
|
|
112
113
|
return pulumi.get(self, "database")
|
|
113
114
|
|
|
114
115
|
@database.setter
|
|
115
|
-
def database(self, value: pulumi.Input[str]):
|
|
116
|
+
def database(self, value: pulumi.Input[builtins.str]):
|
|
116
117
|
pulumi.set(self, "database", value)
|
|
117
118
|
|
|
118
119
|
@property
|
|
119
120
|
@pulumi.getter
|
|
120
|
-
def handler(self) -> pulumi.Input[str]:
|
|
121
|
+
def handler(self) -> pulumi.Input[builtins.str]:
|
|
121
122
|
"""
|
|
122
123
|
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
123
124
|
"""
|
|
124
125
|
return pulumi.get(self, "handler")
|
|
125
126
|
|
|
126
127
|
@handler.setter
|
|
127
|
-
def handler(self, value: pulumi.Input[str]):
|
|
128
|
+
def handler(self, value: pulumi.Input[builtins.str]):
|
|
128
129
|
pulumi.set(self, "handler", value)
|
|
129
130
|
|
|
130
131
|
@property
|
|
131
132
|
@pulumi.getter(name="returnType")
|
|
132
|
-
def return_type(self) -> pulumi.Input[str]:
|
|
133
|
+
def return_type(self) -> pulumi.Input[builtins.str]:
|
|
133
134
|
"""
|
|
134
135
|
Specifies the results returned by the UDF, which determines the UDF type. Use `<result_data_type>` to create a scalar UDF that returns a single value with the specified data type. Use `TABLE (col_name col_data_type, ...)` to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
135
136
|
"""
|
|
136
137
|
return pulumi.get(self, "return_type")
|
|
137
138
|
|
|
138
139
|
@return_type.setter
|
|
139
|
-
def return_type(self, value: pulumi.Input[str]):
|
|
140
|
+
def return_type(self, value: pulumi.Input[builtins.str]):
|
|
140
141
|
pulumi.set(self, "return_type", value)
|
|
141
142
|
|
|
142
143
|
@property
|
|
143
144
|
@pulumi.getter(name="runtimeVersion")
|
|
144
|
-
def runtime_version(self) -> pulumi.Input[str]:
|
|
145
|
+
def runtime_version(self) -> pulumi.Input[builtins.str]:
|
|
145
146
|
"""
|
|
146
147
|
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
|
|
147
148
|
"""
|
|
148
149
|
return pulumi.get(self, "runtime_version")
|
|
149
150
|
|
|
150
151
|
@runtime_version.setter
|
|
151
|
-
def runtime_version(self, value: pulumi.Input[str]):
|
|
152
|
+
def runtime_version(self, value: pulumi.Input[builtins.str]):
|
|
152
153
|
pulumi.set(self, "runtime_version", value)
|
|
153
154
|
|
|
154
155
|
@property
|
|
155
156
|
@pulumi.getter
|
|
156
|
-
def schema(self) -> pulumi.Input[str]:
|
|
157
|
+
def schema(self) -> pulumi.Input[builtins.str]:
|
|
157
158
|
"""
|
|
158
159
|
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
159
160
|
"""
|
|
160
161
|
return pulumi.get(self, "schema")
|
|
161
162
|
|
|
162
163
|
@schema.setter
|
|
163
|
-
def schema(self, value: pulumi.Input[str]):
|
|
164
|
+
def schema(self, value: pulumi.Input[builtins.str]):
|
|
164
165
|
pulumi.set(self, "schema", value)
|
|
165
166
|
|
|
166
167
|
@property
|
|
@@ -177,50 +178,50 @@ class FunctionScalaArgs:
|
|
|
177
178
|
|
|
178
179
|
@property
|
|
179
180
|
@pulumi.getter
|
|
180
|
-
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
181
|
+
def comment(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
181
182
|
"""
|
|
182
183
|
Specifies a comment for the function.
|
|
183
184
|
"""
|
|
184
185
|
return pulumi.get(self, "comment")
|
|
185
186
|
|
|
186
187
|
@comment.setter
|
|
187
|
-
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
188
|
+
def comment(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
188
189
|
pulumi.set(self, "comment", value)
|
|
189
190
|
|
|
190
191
|
@property
|
|
191
192
|
@pulumi.getter(name="enableConsoleOutput")
|
|
192
|
-
def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
|
|
193
|
+
def enable_console_output(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
193
194
|
"""
|
|
194
195
|
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).
|
|
195
196
|
"""
|
|
196
197
|
return pulumi.get(self, "enable_console_output")
|
|
197
198
|
|
|
198
199
|
@enable_console_output.setter
|
|
199
|
-
def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
|
|
200
|
+
def enable_console_output(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
200
201
|
pulumi.set(self, "enable_console_output", value)
|
|
201
202
|
|
|
202
203
|
@property
|
|
203
204
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
204
|
-
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
205
|
+
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
205
206
|
"""
|
|
206
207
|
The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this function’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
207
208
|
"""
|
|
208
209
|
return pulumi.get(self, "external_access_integrations")
|
|
209
210
|
|
|
210
211
|
@external_access_integrations.setter
|
|
211
|
-
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
212
|
+
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
212
213
|
pulumi.set(self, "external_access_integrations", value)
|
|
213
214
|
|
|
214
215
|
@property
|
|
215
216
|
@pulumi.getter(name="functionDefinition")
|
|
216
|
-
def function_definition(self) -> Optional[pulumi.Input[str]]:
|
|
217
|
+
def function_definition(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
217
218
|
"""
|
|
218
219
|
Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `function_definition` value must be Scala source code. For more information, see [Introduction to Scala UDFs](https://docs.snowflake.com/en/developer-guide/udf/scala/udf-scala-introduction). 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.
|
|
219
220
|
"""
|
|
220
221
|
return pulumi.get(self, "function_definition")
|
|
221
222
|
|
|
222
223
|
@function_definition.setter
|
|
223
|
-
def function_definition(self, value: Optional[pulumi.Input[str]]):
|
|
224
|
+
def function_definition(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
224
225
|
pulumi.set(self, "function_definition", value)
|
|
225
226
|
|
|
226
227
|
@property
|
|
@@ -237,83 +238,83 @@ class FunctionScalaArgs:
|
|
|
237
238
|
|
|
238
239
|
@property
|
|
239
240
|
@pulumi.getter(name="isSecure")
|
|
240
|
-
def is_secure(self) -> Optional[pulumi.Input[str]]:
|
|
241
|
+
def is_secure(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
241
242
|
return pulumi.get(self, "is_secure")
|
|
242
243
|
|
|
243
244
|
@is_secure.setter
|
|
244
|
-
def is_secure(self, value: Optional[pulumi.Input[str]]):
|
|
245
|
+
def is_secure(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
245
246
|
pulumi.set(self, "is_secure", value)
|
|
246
247
|
|
|
247
248
|
@property
|
|
248
249
|
@pulumi.getter(name="logLevel")
|
|
249
|
-
def log_level(self) -> Optional[pulumi.Input[str]]:
|
|
250
|
+
def log_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
250
251
|
"""
|
|
251
252
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
252
253
|
"""
|
|
253
254
|
return pulumi.get(self, "log_level")
|
|
254
255
|
|
|
255
256
|
@log_level.setter
|
|
256
|
-
def log_level(self, value: Optional[pulumi.Input[str]]):
|
|
257
|
+
def log_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
257
258
|
pulumi.set(self, "log_level", value)
|
|
258
259
|
|
|
259
260
|
@property
|
|
260
261
|
@pulumi.getter(name="metricLevel")
|
|
261
|
-
def metric_level(self) -> Optional[pulumi.Input[str]]:
|
|
262
|
+
def metric_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
262
263
|
"""
|
|
263
264
|
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).
|
|
264
265
|
"""
|
|
265
266
|
return pulumi.get(self, "metric_level")
|
|
266
267
|
|
|
267
268
|
@metric_level.setter
|
|
268
|
-
def metric_level(self, value: Optional[pulumi.Input[str]]):
|
|
269
|
+
def metric_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
269
270
|
pulumi.set(self, "metric_level", value)
|
|
270
271
|
|
|
271
272
|
@property
|
|
272
273
|
@pulumi.getter
|
|
273
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
274
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
274
275
|
"""
|
|
275
276
|
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
276
277
|
"""
|
|
277
278
|
return pulumi.get(self, "name")
|
|
278
279
|
|
|
279
280
|
@name.setter
|
|
280
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
281
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
281
282
|
pulumi.set(self, "name", value)
|
|
282
283
|
|
|
283
284
|
@property
|
|
284
285
|
@pulumi.getter(name="nullInputBehavior")
|
|
285
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
|
|
286
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
286
287
|
"""
|
|
287
288
|
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
288
289
|
"""
|
|
289
290
|
return pulumi.get(self, "null_input_behavior")
|
|
290
291
|
|
|
291
292
|
@null_input_behavior.setter
|
|
292
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
|
|
293
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
293
294
|
pulumi.set(self, "null_input_behavior", value)
|
|
294
295
|
|
|
295
296
|
@property
|
|
296
297
|
@pulumi.getter
|
|
297
|
-
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
298
|
+
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
298
299
|
"""
|
|
299
300
|
The name and version number of Snowflake system packages required as dependencies. The value should be of the form `package_name:version_number`, where `package_name` is `snowflake_domain:package`.
|
|
300
301
|
"""
|
|
301
302
|
return pulumi.get(self, "packages")
|
|
302
303
|
|
|
303
304
|
@packages.setter
|
|
304
|
-
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
305
|
+
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
305
306
|
pulumi.set(self, "packages", value)
|
|
306
307
|
|
|
307
308
|
@property
|
|
308
309
|
@pulumi.getter(name="returnResultsBehavior")
|
|
309
|
-
def return_results_behavior(self) -> Optional[pulumi.Input[str]]:
|
|
310
|
+
def return_results_behavior(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
310
311
|
"""
|
|
311
312
|
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
312
313
|
"""
|
|
313
314
|
return pulumi.get(self, "return_results_behavior")
|
|
314
315
|
|
|
315
316
|
@return_results_behavior.setter
|
|
316
|
-
def return_results_behavior(self, value: Optional[pulumi.Input[str]]):
|
|
317
|
+
def return_results_behavior(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
317
318
|
pulumi.set(self, "return_results_behavior", value)
|
|
318
319
|
|
|
319
320
|
@property
|
|
@@ -342,14 +343,14 @@ class FunctionScalaArgs:
|
|
|
342
343
|
|
|
343
344
|
@property
|
|
344
345
|
@pulumi.getter(name="traceLevel")
|
|
345
|
-
def trace_level(self) -> Optional[pulumi.Input[str]]:
|
|
346
|
+
def trace_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
346
347
|
"""
|
|
347
348
|
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).
|
|
348
349
|
"""
|
|
349
350
|
return pulumi.get(self, "trace_level")
|
|
350
351
|
|
|
351
352
|
@trace_level.setter
|
|
352
|
-
def trace_level(self, value: Optional[pulumi.Input[str]]):
|
|
353
|
+
def trace_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
353
354
|
pulumi.set(self, "trace_level", value)
|
|
354
355
|
|
|
355
356
|
|
|
@@ -357,56 +358,56 @@ class FunctionScalaArgs:
|
|
|
357
358
|
class _FunctionScalaState:
|
|
358
359
|
def __init__(__self__, *,
|
|
359
360
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionScalaArgumentArgs']]]] = None,
|
|
360
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
361
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
362
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
363
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
364
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
365
|
-
function_definition: Optional[pulumi.Input[str]] = None,
|
|
366
|
-
function_language: Optional[pulumi.Input[str]] = None,
|
|
367
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
361
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
362
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
363
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
364
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
365
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
366
|
+
function_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
367
|
+
function_language: Optional[pulumi.Input[builtins.str]] = None,
|
|
368
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
368
369
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionScalaImportArgs']]]] = None,
|
|
369
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
370
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
371
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
372
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
373
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
374
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
370
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
371
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
372
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
373
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
374
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
375
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
375
376
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionScalaParameterArgs']]]] = None,
|
|
376
|
-
return_results_behavior: Optional[pulumi.Input[str]] = None,
|
|
377
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
378
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
379
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
377
|
+
return_results_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
378
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
379
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
380
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
380
381
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionScalaSecretArgs']]]] = None,
|
|
381
382
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionScalaShowOutputArgs']]]] = None,
|
|
382
383
|
target_path: Optional[pulumi.Input['FunctionScalaTargetPathArgs']] = None,
|
|
383
|
-
trace_level: Optional[pulumi.Input[str]] = None):
|
|
384
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None):
|
|
384
385
|
"""
|
|
385
386
|
Input properties used for looking up and filtering FunctionScala resources.
|
|
386
387
|
:param pulumi.Input[Sequence[pulumi.Input['FunctionScalaArgumentArgs']]] arguments: List of the arguments for the function. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages) for more details.
|
|
387
|
-
:param pulumi.Input[str] comment: Specifies a comment for the function.
|
|
388
|
-
:param pulumi.Input[str] database: The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
389
|
-
: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).
|
|
390
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] external_access_integrations: The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this function’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
391
|
-
: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).
|
|
392
|
-
:param pulumi.Input[str] function_definition: Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `function_definition` value must be Scala source code. For more information, see [Introduction to Scala UDFs](https://docs.snowflake.com/en/developer-guide/udf/scala/udf-scala-introduction). 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.
|
|
393
|
-
:param pulumi.Input[str] function_language: Specifies language for the user. Used to detect external changes.
|
|
394
|
-
:param pulumi.Input[str] handler: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
388
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the function.
|
|
389
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
390
|
+
:param pulumi.Input[builtins.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).
|
|
391
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] external_access_integrations: The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this function’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
392
|
+
:param pulumi.Input[builtins.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).
|
|
393
|
+
:param pulumi.Input[builtins.str] function_definition: Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `function_definition` value must be Scala source code. For more information, see [Introduction to Scala UDFs](https://docs.snowflake.com/en/developer-guide/udf/scala/udf-scala-introduction). 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.
|
|
394
|
+
:param pulumi.Input[builtins.str] function_language: Specifies language for the user. Used to detect external changes.
|
|
395
|
+
:param pulumi.Input[builtins.str] handler: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
395
396
|
:param pulumi.Input[Sequence[pulumi.Input['FunctionScalaImportArgs']]] imports: The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see [Reading a file specified statically in IMPORTS](https://docs.snowflake.com/en/developer-guide/udf/java/udf-java-cookbook.html#label-reading-file-from-java-udf-imports). Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#scala).
|
|
396
|
-
: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).
|
|
397
|
-
: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).
|
|
398
|
-
:param pulumi.Input[str] name: The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
399
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
400
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] packages: The name and version number of Snowflake system packages required as dependencies. The value should be of the form `package_name:version_number`, where `package_name` is `snowflake_domain:package`.
|
|
397
|
+
:param pulumi.Input[builtins.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).
|
|
398
|
+
:param pulumi.Input[builtins.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).
|
|
399
|
+
:param pulumi.Input[builtins.str] name: The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
400
|
+
:param pulumi.Input[builtins.str] null_input_behavior: Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
401
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] packages: The name and version number of Snowflake system packages required as dependencies. The value should be of the form `package_name:version_number`, where `package_name` is `snowflake_domain:package`.
|
|
401
402
|
:param pulumi.Input[Sequence[pulumi.Input['FunctionScalaParameterArgs']]] parameters: Outputs the result of `SHOW PARAMETERS IN FUNCTION` for the given function.
|
|
402
|
-
:param pulumi.Input[str] return_results_behavior: Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
403
|
-
:param pulumi.Input[str] return_type: Specifies the results returned by the UDF, which determines the UDF type. Use `<result_data_type>` to create a scalar UDF that returns a single value with the specified data type. Use `TABLE (col_name col_data_type, ...)` to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
404
|
-
:param pulumi.Input[str] runtime_version: Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
|
|
405
|
-
:param pulumi.Input[str] schema: The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
403
|
+
:param pulumi.Input[builtins.str] return_results_behavior: Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
404
|
+
:param pulumi.Input[builtins.str] return_type: Specifies the results returned by the UDF, which determines the UDF type. Use `<result_data_type>` to create a scalar UDF that returns a single value with the specified data type. Use `TABLE (col_name col_data_type, ...)` to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
405
|
+
:param pulumi.Input[builtins.str] runtime_version: Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
|
|
406
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
406
407
|
:param pulumi.Input[Sequence[pulumi.Input['FunctionScalaSecretArgs']]] secrets: Assigns the names of [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the [external access integration](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) specified as a value of this CREATE FUNCTION command’s EXTERNAL*ACCESS*INTEGRATIONS parameter.
|
|
407
408
|
:param pulumi.Input[Sequence[pulumi.Input['FunctionScalaShowOutputArgs']]] show_outputs: Outputs the result of `SHOW FUNCTION` for the given function.
|
|
408
409
|
:param pulumi.Input['FunctionScalaTargetPathArgs'] target_path: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
409
|
-
: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).
|
|
410
|
+
:param pulumi.Input[builtins.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).
|
|
410
411
|
"""
|
|
411
412
|
if arguments is not None:
|
|
412
413
|
pulumi.set(__self__, "arguments", arguments)
|
|
@@ -473,98 +474,98 @@ class _FunctionScalaState:
|
|
|
473
474
|
|
|
474
475
|
@property
|
|
475
476
|
@pulumi.getter
|
|
476
|
-
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
477
|
+
def comment(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
477
478
|
"""
|
|
478
479
|
Specifies a comment for the function.
|
|
479
480
|
"""
|
|
480
481
|
return pulumi.get(self, "comment")
|
|
481
482
|
|
|
482
483
|
@comment.setter
|
|
483
|
-
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
484
|
+
def comment(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
484
485
|
pulumi.set(self, "comment", value)
|
|
485
486
|
|
|
486
487
|
@property
|
|
487
488
|
@pulumi.getter
|
|
488
|
-
def database(self) -> Optional[pulumi.Input[str]]:
|
|
489
|
+
def database(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
489
490
|
"""
|
|
490
491
|
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
491
492
|
"""
|
|
492
493
|
return pulumi.get(self, "database")
|
|
493
494
|
|
|
494
495
|
@database.setter
|
|
495
|
-
def database(self, value: Optional[pulumi.Input[str]]):
|
|
496
|
+
def database(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
496
497
|
pulumi.set(self, "database", value)
|
|
497
498
|
|
|
498
499
|
@property
|
|
499
500
|
@pulumi.getter(name="enableConsoleOutput")
|
|
500
|
-
def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
|
|
501
|
+
def enable_console_output(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
501
502
|
"""
|
|
502
503
|
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).
|
|
503
504
|
"""
|
|
504
505
|
return pulumi.get(self, "enable_console_output")
|
|
505
506
|
|
|
506
507
|
@enable_console_output.setter
|
|
507
|
-
def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
|
|
508
|
+
def enable_console_output(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
508
509
|
pulumi.set(self, "enable_console_output", value)
|
|
509
510
|
|
|
510
511
|
@property
|
|
511
512
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
512
|
-
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
513
|
+
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
513
514
|
"""
|
|
514
515
|
The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this function’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
515
516
|
"""
|
|
516
517
|
return pulumi.get(self, "external_access_integrations")
|
|
517
518
|
|
|
518
519
|
@external_access_integrations.setter
|
|
519
|
-
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
520
|
+
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
520
521
|
pulumi.set(self, "external_access_integrations", value)
|
|
521
522
|
|
|
522
523
|
@property
|
|
523
524
|
@pulumi.getter(name="fullyQualifiedName")
|
|
524
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
525
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
525
526
|
"""
|
|
526
527
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
527
528
|
"""
|
|
528
529
|
return pulumi.get(self, "fully_qualified_name")
|
|
529
530
|
|
|
530
531
|
@fully_qualified_name.setter
|
|
531
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
532
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
532
533
|
pulumi.set(self, "fully_qualified_name", value)
|
|
533
534
|
|
|
534
535
|
@property
|
|
535
536
|
@pulumi.getter(name="functionDefinition")
|
|
536
|
-
def function_definition(self) -> Optional[pulumi.Input[str]]:
|
|
537
|
+
def function_definition(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
537
538
|
"""
|
|
538
539
|
Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `function_definition` value must be Scala source code. For more information, see [Introduction to Scala UDFs](https://docs.snowflake.com/en/developer-guide/udf/scala/udf-scala-introduction). 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.
|
|
539
540
|
"""
|
|
540
541
|
return pulumi.get(self, "function_definition")
|
|
541
542
|
|
|
542
543
|
@function_definition.setter
|
|
543
|
-
def function_definition(self, value: Optional[pulumi.Input[str]]):
|
|
544
|
+
def function_definition(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
544
545
|
pulumi.set(self, "function_definition", value)
|
|
545
546
|
|
|
546
547
|
@property
|
|
547
548
|
@pulumi.getter(name="functionLanguage")
|
|
548
|
-
def function_language(self) -> Optional[pulumi.Input[str]]:
|
|
549
|
+
def function_language(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
549
550
|
"""
|
|
550
551
|
Specifies language for the user. Used to detect external changes.
|
|
551
552
|
"""
|
|
552
553
|
return pulumi.get(self, "function_language")
|
|
553
554
|
|
|
554
555
|
@function_language.setter
|
|
555
|
-
def function_language(self, value: Optional[pulumi.Input[str]]):
|
|
556
|
+
def function_language(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
556
557
|
pulumi.set(self, "function_language", value)
|
|
557
558
|
|
|
558
559
|
@property
|
|
559
560
|
@pulumi.getter
|
|
560
|
-
def handler(self) -> Optional[pulumi.Input[str]]:
|
|
561
|
+
def handler(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
561
562
|
"""
|
|
562
563
|
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
563
564
|
"""
|
|
564
565
|
return pulumi.get(self, "handler")
|
|
565
566
|
|
|
566
567
|
@handler.setter
|
|
567
|
-
def handler(self, value: Optional[pulumi.Input[str]]):
|
|
568
|
+
def handler(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
568
569
|
pulumi.set(self, "handler", value)
|
|
569
570
|
|
|
570
571
|
@property
|
|
@@ -581,71 +582,71 @@ class _FunctionScalaState:
|
|
|
581
582
|
|
|
582
583
|
@property
|
|
583
584
|
@pulumi.getter(name="isSecure")
|
|
584
|
-
def is_secure(self) -> Optional[pulumi.Input[str]]:
|
|
585
|
+
def is_secure(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
585
586
|
return pulumi.get(self, "is_secure")
|
|
586
587
|
|
|
587
588
|
@is_secure.setter
|
|
588
|
-
def is_secure(self, value: Optional[pulumi.Input[str]]):
|
|
589
|
+
def is_secure(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
589
590
|
pulumi.set(self, "is_secure", value)
|
|
590
591
|
|
|
591
592
|
@property
|
|
592
593
|
@pulumi.getter(name="logLevel")
|
|
593
|
-
def log_level(self) -> Optional[pulumi.Input[str]]:
|
|
594
|
+
def log_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
594
595
|
"""
|
|
595
596
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
596
597
|
"""
|
|
597
598
|
return pulumi.get(self, "log_level")
|
|
598
599
|
|
|
599
600
|
@log_level.setter
|
|
600
|
-
def log_level(self, value: Optional[pulumi.Input[str]]):
|
|
601
|
+
def log_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
601
602
|
pulumi.set(self, "log_level", value)
|
|
602
603
|
|
|
603
604
|
@property
|
|
604
605
|
@pulumi.getter(name="metricLevel")
|
|
605
|
-
def metric_level(self) -> Optional[pulumi.Input[str]]:
|
|
606
|
+
def metric_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
606
607
|
"""
|
|
607
608
|
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).
|
|
608
609
|
"""
|
|
609
610
|
return pulumi.get(self, "metric_level")
|
|
610
611
|
|
|
611
612
|
@metric_level.setter
|
|
612
|
-
def metric_level(self, value: Optional[pulumi.Input[str]]):
|
|
613
|
+
def metric_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
613
614
|
pulumi.set(self, "metric_level", value)
|
|
614
615
|
|
|
615
616
|
@property
|
|
616
617
|
@pulumi.getter
|
|
617
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
618
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
618
619
|
"""
|
|
619
620
|
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
620
621
|
"""
|
|
621
622
|
return pulumi.get(self, "name")
|
|
622
623
|
|
|
623
624
|
@name.setter
|
|
624
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
625
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
625
626
|
pulumi.set(self, "name", value)
|
|
626
627
|
|
|
627
628
|
@property
|
|
628
629
|
@pulumi.getter(name="nullInputBehavior")
|
|
629
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
|
|
630
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
630
631
|
"""
|
|
631
632
|
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
632
633
|
"""
|
|
633
634
|
return pulumi.get(self, "null_input_behavior")
|
|
634
635
|
|
|
635
636
|
@null_input_behavior.setter
|
|
636
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
|
|
637
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
637
638
|
pulumi.set(self, "null_input_behavior", value)
|
|
638
639
|
|
|
639
640
|
@property
|
|
640
641
|
@pulumi.getter
|
|
641
|
-
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
642
|
+
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
642
643
|
"""
|
|
643
644
|
The name and version number of Snowflake system packages required as dependencies. The value should be of the form `package_name:version_number`, where `package_name` is `snowflake_domain:package`.
|
|
644
645
|
"""
|
|
645
646
|
return pulumi.get(self, "packages")
|
|
646
647
|
|
|
647
648
|
@packages.setter
|
|
648
|
-
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
649
|
+
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
649
650
|
pulumi.set(self, "packages", value)
|
|
650
651
|
|
|
651
652
|
@property
|
|
@@ -662,50 +663,50 @@ class _FunctionScalaState:
|
|
|
662
663
|
|
|
663
664
|
@property
|
|
664
665
|
@pulumi.getter(name="returnResultsBehavior")
|
|
665
|
-
def return_results_behavior(self) -> Optional[pulumi.Input[str]]:
|
|
666
|
+
def return_results_behavior(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
666
667
|
"""
|
|
667
668
|
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
668
669
|
"""
|
|
669
670
|
return pulumi.get(self, "return_results_behavior")
|
|
670
671
|
|
|
671
672
|
@return_results_behavior.setter
|
|
672
|
-
def return_results_behavior(self, value: Optional[pulumi.Input[str]]):
|
|
673
|
+
def return_results_behavior(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
673
674
|
pulumi.set(self, "return_results_behavior", value)
|
|
674
675
|
|
|
675
676
|
@property
|
|
676
677
|
@pulumi.getter(name="returnType")
|
|
677
|
-
def return_type(self) -> Optional[pulumi.Input[str]]:
|
|
678
|
+
def return_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
678
679
|
"""
|
|
679
680
|
Specifies the results returned by the UDF, which determines the UDF type. Use `<result_data_type>` to create a scalar UDF that returns a single value with the specified data type. Use `TABLE (col_name col_data_type, ...)` to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
680
681
|
"""
|
|
681
682
|
return pulumi.get(self, "return_type")
|
|
682
683
|
|
|
683
684
|
@return_type.setter
|
|
684
|
-
def return_type(self, value: Optional[pulumi.Input[str]]):
|
|
685
|
+
def return_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
685
686
|
pulumi.set(self, "return_type", value)
|
|
686
687
|
|
|
687
688
|
@property
|
|
688
689
|
@pulumi.getter(name="runtimeVersion")
|
|
689
|
-
def runtime_version(self) -> Optional[pulumi.Input[str]]:
|
|
690
|
+
def runtime_version(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
690
691
|
"""
|
|
691
692
|
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
|
|
692
693
|
"""
|
|
693
694
|
return pulumi.get(self, "runtime_version")
|
|
694
695
|
|
|
695
696
|
@runtime_version.setter
|
|
696
|
-
def runtime_version(self, value: Optional[pulumi.Input[str]]):
|
|
697
|
+
def runtime_version(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
697
698
|
pulumi.set(self, "runtime_version", value)
|
|
698
699
|
|
|
699
700
|
@property
|
|
700
701
|
@pulumi.getter
|
|
701
|
-
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
702
|
+
def schema(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
702
703
|
"""
|
|
703
704
|
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
704
705
|
"""
|
|
705
706
|
return pulumi.get(self, "schema")
|
|
706
707
|
|
|
707
708
|
@schema.setter
|
|
708
|
-
def schema(self, value: Optional[pulumi.Input[str]]):
|
|
709
|
+
def schema(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
709
710
|
pulumi.set(self, "schema", value)
|
|
710
711
|
|
|
711
712
|
@property
|
|
@@ -746,14 +747,14 @@ class _FunctionScalaState:
|
|
|
746
747
|
|
|
747
748
|
@property
|
|
748
749
|
@pulumi.getter(name="traceLevel")
|
|
749
|
-
def trace_level(self) -> Optional[pulumi.Input[str]]:
|
|
750
|
+
def trace_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
750
751
|
"""
|
|
751
752
|
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).
|
|
752
753
|
"""
|
|
753
754
|
return pulumi.get(self, "trace_level")
|
|
754
755
|
|
|
755
756
|
@trace_level.setter
|
|
756
|
-
def trace_level(self, value: Optional[pulumi.Input[str]]):
|
|
757
|
+
def trace_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
757
758
|
pulumi.set(self, "trace_level", value)
|
|
758
759
|
|
|
759
760
|
|
|
@@ -763,26 +764,26 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
763
764
|
resource_name: str,
|
|
764
765
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
765
766
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaArgumentArgs', 'FunctionScalaArgumentArgsDict']]]]] = None,
|
|
766
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
767
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
768
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
769
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
770
|
-
function_definition: Optional[pulumi.Input[str]] = None,
|
|
771
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
767
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
768
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
769
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
770
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
771
|
+
function_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
772
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
772
773
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaImportArgs', 'FunctionScalaImportArgsDict']]]]] = None,
|
|
773
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
774
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
775
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
776
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
777
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
778
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
779
|
-
return_results_behavior: Optional[pulumi.Input[str]] = None,
|
|
780
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
781
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
782
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
774
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
775
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
776
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
777
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
778
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
779
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
780
|
+
return_results_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
781
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
782
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
783
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
783
784
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaSecretArgs', 'FunctionScalaSecretArgsDict']]]]] = None,
|
|
784
785
|
target_path: Optional[pulumi.Input[Union['FunctionScalaTargetPathArgs', 'FunctionScalaTargetPathArgsDict']]] = None,
|
|
785
|
-
trace_level: Optional[pulumi.Input[str]] = None,
|
|
786
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
786
787
|
__props__=None):
|
|
787
788
|
"""
|
|
788
789
|
## Import
|
|
@@ -798,25 +799,25 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
798
799
|
:param str resource_name: The name of the resource.
|
|
799
800
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
800
801
|
:param pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaArgumentArgs', 'FunctionScalaArgumentArgsDict']]]] arguments: List of the arguments for the function. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages) for more details.
|
|
801
|
-
:param pulumi.Input[str] comment: Specifies a comment for the function.
|
|
802
|
-
:param pulumi.Input[str] database: The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
803
|
-
: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).
|
|
804
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] external_access_integrations: The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this function’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
805
|
-
:param pulumi.Input[str] function_definition: Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `function_definition` value must be Scala source code. For more information, see [Introduction to Scala UDFs](https://docs.snowflake.com/en/developer-guide/udf/scala/udf-scala-introduction). 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.
|
|
806
|
-
:param pulumi.Input[str] handler: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
802
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the function.
|
|
803
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
804
|
+
:param pulumi.Input[builtins.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).
|
|
805
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] external_access_integrations: The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this function’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
806
|
+
:param pulumi.Input[builtins.str] function_definition: Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `function_definition` value must be Scala source code. For more information, see [Introduction to Scala UDFs](https://docs.snowflake.com/en/developer-guide/udf/scala/udf-scala-introduction). 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.
|
|
807
|
+
:param pulumi.Input[builtins.str] handler: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
807
808
|
:param pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaImportArgs', 'FunctionScalaImportArgsDict']]]] imports: The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see [Reading a file specified statically in IMPORTS](https://docs.snowflake.com/en/developer-guide/udf/java/udf-java-cookbook.html#label-reading-file-from-java-udf-imports). Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#scala).
|
|
808
|
-
: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).
|
|
809
|
-
: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).
|
|
810
|
-
:param pulumi.Input[str] name: The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
811
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
812
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] packages: The name and version number of Snowflake system packages required as dependencies. The value should be of the form `package_name:version_number`, where `package_name` is `snowflake_domain:package`.
|
|
813
|
-
:param pulumi.Input[str] return_results_behavior: Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
814
|
-
:param pulumi.Input[str] return_type: Specifies the results returned by the UDF, which determines the UDF type. Use `<result_data_type>` to create a scalar UDF that returns a single value with the specified data type. Use `TABLE (col_name col_data_type, ...)` to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
815
|
-
:param pulumi.Input[str] runtime_version: Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
|
|
816
|
-
:param pulumi.Input[str] schema: The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
809
|
+
:param pulumi.Input[builtins.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).
|
|
810
|
+
:param pulumi.Input[builtins.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).
|
|
811
|
+
:param pulumi.Input[builtins.str] name: The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
812
|
+
:param pulumi.Input[builtins.str] null_input_behavior: Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
813
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] packages: The name and version number of Snowflake system packages required as dependencies. The value should be of the form `package_name:version_number`, where `package_name` is `snowflake_domain:package`.
|
|
814
|
+
:param pulumi.Input[builtins.str] return_results_behavior: Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
815
|
+
:param pulumi.Input[builtins.str] return_type: Specifies the results returned by the UDF, which determines the UDF type. Use `<result_data_type>` to create a scalar UDF that returns a single value with the specified data type. Use `TABLE (col_name col_data_type, ...)` to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
816
|
+
:param pulumi.Input[builtins.str] runtime_version: Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
|
|
817
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
817
818
|
:param pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaSecretArgs', 'FunctionScalaSecretArgsDict']]]] secrets: Assigns the names of [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the [external access integration](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) specified as a value of this CREATE FUNCTION command’s EXTERNAL*ACCESS*INTEGRATIONS parameter.
|
|
818
819
|
:param pulumi.Input[Union['FunctionScalaTargetPathArgs', 'FunctionScalaTargetPathArgsDict']] target_path: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
819
|
-
: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).
|
|
820
|
+
:param pulumi.Input[builtins.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).
|
|
820
821
|
"""
|
|
821
822
|
...
|
|
822
823
|
@overload
|
|
@@ -851,26 +852,26 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
851
852
|
resource_name: str,
|
|
852
853
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
853
854
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaArgumentArgs', 'FunctionScalaArgumentArgsDict']]]]] = None,
|
|
854
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
855
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
856
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
857
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
858
|
-
function_definition: Optional[pulumi.Input[str]] = None,
|
|
859
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
855
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
856
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
857
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
858
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
859
|
+
function_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
860
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
860
861
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaImportArgs', 'FunctionScalaImportArgsDict']]]]] = None,
|
|
861
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
862
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
863
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
864
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
865
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
866
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
867
|
-
return_results_behavior: Optional[pulumi.Input[str]] = None,
|
|
868
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
869
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
870
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
862
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
863
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
864
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
865
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
866
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
867
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
868
|
+
return_results_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
869
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
870
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
871
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
871
872
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaSecretArgs', 'FunctionScalaSecretArgsDict']]]]] = None,
|
|
872
873
|
target_path: Optional[pulumi.Input[Union['FunctionScalaTargetPathArgs', 'FunctionScalaTargetPathArgsDict']]] = None,
|
|
873
|
-
trace_level: Optional[pulumi.Input[str]] = None,
|
|
874
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
874
875
|
__props__=None):
|
|
875
876
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
876
877
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -926,30 +927,30 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
926
927
|
id: pulumi.Input[str],
|
|
927
928
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
928
929
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaArgumentArgs', 'FunctionScalaArgumentArgsDict']]]]] = None,
|
|
929
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
930
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
931
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
932
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
933
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
934
|
-
function_definition: Optional[pulumi.Input[str]] = None,
|
|
935
|
-
function_language: Optional[pulumi.Input[str]] = None,
|
|
936
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
930
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
931
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
932
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
933
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
934
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
935
|
+
function_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
936
|
+
function_language: Optional[pulumi.Input[builtins.str]] = None,
|
|
937
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
937
938
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaImportArgs', 'FunctionScalaImportArgsDict']]]]] = None,
|
|
938
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
939
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
940
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
941
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
942
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
943
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
939
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
940
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
941
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
942
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
943
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
944
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
944
945
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaParameterArgs', 'FunctionScalaParameterArgsDict']]]]] = None,
|
|
945
|
-
return_results_behavior: Optional[pulumi.Input[str]] = None,
|
|
946
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
947
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
948
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
946
|
+
return_results_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
947
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
948
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
949
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
949
950
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaSecretArgs', 'FunctionScalaSecretArgsDict']]]]] = None,
|
|
950
951
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaShowOutputArgs', 'FunctionScalaShowOutputArgsDict']]]]] = None,
|
|
951
952
|
target_path: Optional[pulumi.Input[Union['FunctionScalaTargetPathArgs', 'FunctionScalaTargetPathArgsDict']]] = None,
|
|
952
|
-
trace_level: Optional[pulumi.Input[str]] = None) -> 'FunctionScala':
|
|
953
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None) -> 'FunctionScala':
|
|
953
954
|
"""
|
|
954
955
|
Get an existing FunctionScala resource's state with the given name, id, and optional extra
|
|
955
956
|
properties used to qualify the lookup.
|
|
@@ -958,29 +959,29 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
958
959
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
959
960
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
960
961
|
:param pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaArgumentArgs', 'FunctionScalaArgumentArgsDict']]]] arguments: List of the arguments for the function. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages) for more details.
|
|
961
|
-
:param pulumi.Input[str] comment: Specifies a comment for the function.
|
|
962
|
-
:param pulumi.Input[str] database: The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
963
|
-
: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).
|
|
964
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] external_access_integrations: The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this function’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
965
|
-
: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).
|
|
966
|
-
:param pulumi.Input[str] function_definition: Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `function_definition` value must be Scala source code. For more information, see [Introduction to Scala UDFs](https://docs.snowflake.com/en/developer-guide/udf/scala/udf-scala-introduction). 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.
|
|
967
|
-
:param pulumi.Input[str] function_language: Specifies language for the user. Used to detect external changes.
|
|
968
|
-
:param pulumi.Input[str] handler: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
962
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the function.
|
|
963
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
964
|
+
:param pulumi.Input[builtins.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).
|
|
965
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] external_access_integrations: The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this function’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
966
|
+
:param pulumi.Input[builtins.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).
|
|
967
|
+
:param pulumi.Input[builtins.str] function_definition: Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `function_definition` value must be Scala source code. For more information, see [Introduction to Scala UDFs](https://docs.snowflake.com/en/developer-guide/udf/scala/udf-scala-introduction). 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.
|
|
968
|
+
:param pulumi.Input[builtins.str] function_language: Specifies language for the user. Used to detect external changes.
|
|
969
|
+
:param pulumi.Input[builtins.str] handler: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
969
970
|
:param pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaImportArgs', 'FunctionScalaImportArgsDict']]]] imports: The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see [Reading a file specified statically in IMPORTS](https://docs.snowflake.com/en/developer-guide/udf/java/udf-java-cookbook.html#label-reading-file-from-java-udf-imports). Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#scala).
|
|
970
|
-
: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).
|
|
971
|
-
: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).
|
|
972
|
-
:param pulumi.Input[str] name: The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
973
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
974
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] packages: The name and version number of Snowflake system packages required as dependencies. The value should be of the form `package_name:version_number`, where `package_name` is `snowflake_domain:package`.
|
|
971
|
+
:param pulumi.Input[builtins.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).
|
|
972
|
+
:param pulumi.Input[builtins.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).
|
|
973
|
+
:param pulumi.Input[builtins.str] name: The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
974
|
+
:param pulumi.Input[builtins.str] null_input_behavior: Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
975
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] packages: The name and version number of Snowflake system packages required as dependencies. The value should be of the form `package_name:version_number`, where `package_name` is `snowflake_domain:package`.
|
|
975
976
|
:param pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaParameterArgs', 'FunctionScalaParameterArgsDict']]]] parameters: Outputs the result of `SHOW PARAMETERS IN FUNCTION` for the given function.
|
|
976
|
-
:param pulumi.Input[str] return_results_behavior: Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
977
|
-
:param pulumi.Input[str] return_type: Specifies the results returned by the UDF, which determines the UDF type. Use `<result_data_type>` to create a scalar UDF that returns a single value with the specified data type. Use `TABLE (col_name col_data_type, ...)` to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
978
|
-
:param pulumi.Input[str] runtime_version: Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
|
|
979
|
-
:param pulumi.Input[str] schema: The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
977
|
+
:param pulumi.Input[builtins.str] return_results_behavior: Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
978
|
+
:param pulumi.Input[builtins.str] return_type: Specifies the results returned by the UDF, which determines the UDF type. Use `<result_data_type>` to create a scalar UDF that returns a single value with the specified data type. Use `TABLE (col_name col_data_type, ...)` to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
979
|
+
:param pulumi.Input[builtins.str] runtime_version: Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
|
|
980
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
980
981
|
:param pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaSecretArgs', 'FunctionScalaSecretArgsDict']]]] secrets: Assigns the names of [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the [external access integration](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) specified as a value of this CREATE FUNCTION command’s EXTERNAL*ACCESS*INTEGRATIONS parameter.
|
|
981
982
|
:param pulumi.Input[Sequence[pulumi.Input[Union['FunctionScalaShowOutputArgs', 'FunctionScalaShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW FUNCTION` for the given function.
|
|
982
983
|
:param pulumi.Input[Union['FunctionScalaTargetPathArgs', 'FunctionScalaTargetPathArgsDict']] target_path: The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
983
|
-
: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).
|
|
984
|
+
:param pulumi.Input[builtins.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).
|
|
984
985
|
"""
|
|
985
986
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
986
987
|
|
|
@@ -1023,7 +1024,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1023
1024
|
|
|
1024
1025
|
@property
|
|
1025
1026
|
@pulumi.getter
|
|
1026
|
-
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
1027
|
+
def comment(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1027
1028
|
"""
|
|
1028
1029
|
Specifies a comment for the function.
|
|
1029
1030
|
"""
|
|
@@ -1031,7 +1032,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1031
1032
|
|
|
1032
1033
|
@property
|
|
1033
1034
|
@pulumi.getter
|
|
1034
|
-
def database(self) -> pulumi.Output[str]:
|
|
1035
|
+
def database(self) -> pulumi.Output[builtins.str]:
|
|
1035
1036
|
"""
|
|
1036
1037
|
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1037
1038
|
"""
|
|
@@ -1039,7 +1040,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1039
1040
|
|
|
1040
1041
|
@property
|
|
1041
1042
|
@pulumi.getter(name="enableConsoleOutput")
|
|
1042
|
-
def enable_console_output(self) -> pulumi.Output[bool]:
|
|
1043
|
+
def enable_console_output(self) -> pulumi.Output[builtins.bool]:
|
|
1043
1044
|
"""
|
|
1044
1045
|
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).
|
|
1045
1046
|
"""
|
|
@@ -1047,7 +1048,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1047
1048
|
|
|
1048
1049
|
@property
|
|
1049
1050
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
1050
|
-
def external_access_integrations(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1051
|
+
def external_access_integrations(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
|
1051
1052
|
"""
|
|
1052
1053
|
The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this function’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
1053
1054
|
"""
|
|
@@ -1055,7 +1056,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1055
1056
|
|
|
1056
1057
|
@property
|
|
1057
1058
|
@pulumi.getter(name="fullyQualifiedName")
|
|
1058
|
-
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
1059
|
+
def fully_qualified_name(self) -> pulumi.Output[builtins.str]:
|
|
1059
1060
|
"""
|
|
1060
1061
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
1061
1062
|
"""
|
|
@@ -1063,7 +1064,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1063
1064
|
|
|
1064
1065
|
@property
|
|
1065
1066
|
@pulumi.getter(name="functionDefinition")
|
|
1066
|
-
def function_definition(self) -> pulumi.Output[Optional[str]]:
|
|
1067
|
+
def function_definition(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1067
1068
|
"""
|
|
1068
1069
|
Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `function_definition` value must be Scala source code. For more information, see [Introduction to Scala UDFs](https://docs.snowflake.com/en/developer-guide/udf/scala/udf-scala-introduction). 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.
|
|
1069
1070
|
"""
|
|
@@ -1071,7 +1072,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1071
1072
|
|
|
1072
1073
|
@property
|
|
1073
1074
|
@pulumi.getter(name="functionLanguage")
|
|
1074
|
-
def function_language(self) -> pulumi.Output[str]:
|
|
1075
|
+
def function_language(self) -> pulumi.Output[builtins.str]:
|
|
1075
1076
|
"""
|
|
1076
1077
|
Specifies language for the user. Used to detect external changes.
|
|
1077
1078
|
"""
|
|
@@ -1079,7 +1080,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1079
1080
|
|
|
1080
1081
|
@property
|
|
1081
1082
|
@pulumi.getter
|
|
1082
|
-
def handler(self) -> pulumi.Output[str]:
|
|
1083
|
+
def handler(self) -> pulumi.Output[builtins.str]:
|
|
1083
1084
|
"""
|
|
1084
1085
|
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: `MyClass.myMethod`.
|
|
1085
1086
|
"""
|
|
@@ -1095,12 +1096,12 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1095
1096
|
|
|
1096
1097
|
@property
|
|
1097
1098
|
@pulumi.getter(name="isSecure")
|
|
1098
|
-
def is_secure(self) -> pulumi.Output[Optional[str]]:
|
|
1099
|
+
def is_secure(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1099
1100
|
return pulumi.get(self, "is_secure")
|
|
1100
1101
|
|
|
1101
1102
|
@property
|
|
1102
1103
|
@pulumi.getter(name="logLevel")
|
|
1103
|
-
def log_level(self) -> pulumi.Output[str]:
|
|
1104
|
+
def log_level(self) -> pulumi.Output[builtins.str]:
|
|
1104
1105
|
"""
|
|
1105
1106
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
1106
1107
|
"""
|
|
@@ -1108,7 +1109,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1108
1109
|
|
|
1109
1110
|
@property
|
|
1110
1111
|
@pulumi.getter(name="metricLevel")
|
|
1111
|
-
def metric_level(self) -> pulumi.Output[str]:
|
|
1112
|
+
def metric_level(self) -> pulumi.Output[builtins.str]:
|
|
1112
1113
|
"""
|
|
1113
1114
|
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).
|
|
1114
1115
|
"""
|
|
@@ -1116,7 +1117,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1116
1117
|
|
|
1117
1118
|
@property
|
|
1118
1119
|
@pulumi.getter
|
|
1119
|
-
def name(self) -> pulumi.Output[str]:
|
|
1120
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
|
1120
1121
|
"""
|
|
1121
1122
|
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1122
1123
|
"""
|
|
@@ -1124,7 +1125,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1124
1125
|
|
|
1125
1126
|
@property
|
|
1126
1127
|
@pulumi.getter(name="nullInputBehavior")
|
|
1127
|
-
def null_input_behavior(self) -> pulumi.Output[Optional[str]]:
|
|
1128
|
+
def null_input_behavior(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1128
1129
|
"""
|
|
1129
1130
|
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
1130
1131
|
"""
|
|
@@ -1132,7 +1133,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1132
1133
|
|
|
1133
1134
|
@property
|
|
1134
1135
|
@pulumi.getter
|
|
1135
|
-
def packages(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1136
|
+
def packages(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
|
1136
1137
|
"""
|
|
1137
1138
|
The name and version number of Snowflake system packages required as dependencies. The value should be of the form `package_name:version_number`, where `package_name` is `snowflake_domain:package`.
|
|
1138
1139
|
"""
|
|
@@ -1148,7 +1149,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1148
1149
|
|
|
1149
1150
|
@property
|
|
1150
1151
|
@pulumi.getter(name="returnResultsBehavior")
|
|
1151
|
-
def return_results_behavior(self) -> pulumi.Output[Optional[str]]:
|
|
1152
|
+
def return_results_behavior(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1152
1153
|
"""
|
|
1153
1154
|
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
1154
1155
|
"""
|
|
@@ -1156,7 +1157,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1156
1157
|
|
|
1157
1158
|
@property
|
|
1158
1159
|
@pulumi.getter(name="returnType")
|
|
1159
|
-
def return_type(self) -> pulumi.Output[str]:
|
|
1160
|
+
def return_type(self) -> pulumi.Output[builtins.str]:
|
|
1160
1161
|
"""
|
|
1161
1162
|
Specifies the results returned by the UDF, which determines the UDF type. Use `<result_data_type>` to create a scalar UDF that returns a single value with the specified data type. Use `TABLE (col_name col_data_type, ...)` to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
1162
1163
|
"""
|
|
@@ -1164,7 +1165,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1164
1165
|
|
|
1165
1166
|
@property
|
|
1166
1167
|
@pulumi.getter(name="runtimeVersion")
|
|
1167
|
-
def runtime_version(self) -> pulumi.Output[str]:
|
|
1168
|
+
def runtime_version(self) -> pulumi.Output[builtins.str]:
|
|
1168
1169
|
"""
|
|
1169
1170
|
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
|
|
1170
1171
|
"""
|
|
@@ -1172,7 +1173,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1172
1173
|
|
|
1173
1174
|
@property
|
|
1174
1175
|
@pulumi.getter
|
|
1175
|
-
def schema(self) -> pulumi.Output[str]:
|
|
1176
|
+
def schema(self) -> pulumi.Output[builtins.str]:
|
|
1176
1177
|
"""
|
|
1177
1178
|
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1178
1179
|
"""
|
|
@@ -1204,7 +1205,7 @@ class FunctionScala(pulumi.CustomResource):
|
|
|
1204
1205
|
|
|
1205
1206
|
@property
|
|
1206
1207
|
@pulumi.getter(name="traceLevel")
|
|
1207
|
-
def trace_level(self) -> pulumi.Output[str]:
|
|
1208
|
+
def trace_level(self) -> pulumi.Output[builtins.str]:
|
|
1208
1209
|
"""
|
|
1209
1210
|
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).
|
|
1210
1211
|
"""
|