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,52 +22,52 @@ __all__ = ['ProcedureScalaArgs', 'ProcedureScala']
|
|
|
21
22
|
@pulumi.input_type
|
|
22
23
|
class ProcedureScalaArgs:
|
|
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],
|
|
29
|
-
snowpark_package: 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],
|
|
30
|
+
snowpark_package: pulumi.Input[builtins.str],
|
|
30
31
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureScalaArgumentArgs']]]] = None,
|
|
31
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
32
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
33
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
34
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
32
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
33
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
34
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
35
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
35
36
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureScalaImportArgs']]]] = None,
|
|
36
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
37
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
38
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
39
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
40
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
41
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
42
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
37
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
38
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
39
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
40
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
41
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
42
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
43
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
43
44
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureScalaSecretArgs']]]] = None,
|
|
44
45
|
target_path: Optional[pulumi.Input['ProcedureScalaTargetPathArgs']] = None,
|
|
45
|
-
trace_level: Optional[pulumi.Input[str]] = None):
|
|
46
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None):
|
|
46
47
|
"""
|
|
47
48
|
The set of arguments for constructing a ProcedureScala resource.
|
|
48
|
-
:param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
49
|
-
:param pulumi.Input[str] handler: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
50
|
-
:param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Scala Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-types-to-scala-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
51
|
-
:param pulumi.Input[str] runtime_version: The language runtime version to use. Currently, the supported versions are: 2.12.
|
|
52
|
-
:param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
53
|
-
:param pulumi.Input[str] snowpark_package: The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
49
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
50
|
+
:param pulumi.Input[builtins.str] handler: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
51
|
+
:param pulumi.Input[builtins.str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Scala Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-types-to-scala-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
52
|
+
:param pulumi.Input[builtins.str] runtime_version: The language runtime version to use. Currently, the supported versions are: 2.12.
|
|
53
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
54
|
+
:param pulumi.Input[builtins.str] snowpark_package: The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
54
55
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureScalaArgumentArgs']]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
|
|
55
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
56
|
-
: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).
|
|
57
|
-
:param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
58
|
-
: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 procedure’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[builtins.str] comment: Specifies a comment for the procedure.
|
|
57
|
+
: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).
|
|
58
|
+
:param pulumi.Input[builtins.str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
59
|
+
: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 procedure’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.
|
|
59
60
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureScalaImportArgs']]] imports: The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on. If you are writing an in-line stored procedure, you can omit this clause, unless your code depends on classes defined outside the stored procedure or resource files. If you are writing a stored procedure with a staged handler, you must also include a path to the JAR file containing the stored procedure’s handler code. The IMPORTS definition cannot reference variables from arguments that are passed into the stored procedure. Each file in the IMPORTS clause must have a unique name, even if the files are in different subdirectories or different stages.
|
|
60
|
-
:param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
61
|
-
: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).
|
|
62
|
-
: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).
|
|
63
|
-
:param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
64
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
65
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] packages: List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
66
|
-
:param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Scala source code. For more information, see [Scala (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-scala). 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.
|
|
61
|
+
:param pulumi.Input[builtins.str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
62
|
+
: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).
|
|
63
|
+
: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).
|
|
64
|
+
:param pulumi.Input[builtins.str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
65
|
+
:param pulumi.Input[builtins.str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
66
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] packages: List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
67
|
+
:param pulumi.Input[builtins.str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Scala source code. For more information, see [Scala (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-scala). 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.
|
|
67
68
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureScalaSecretArgs']]] 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.
|
|
68
69
|
:param pulumi.Input['ProcedureScalaTargetPathArgs'] target_path: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
69
|
-
: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).
|
|
70
|
+
: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).
|
|
70
71
|
"""
|
|
71
72
|
pulumi.set(__self__, "database", database)
|
|
72
73
|
pulumi.set(__self__, "handler", handler)
|
|
@@ -109,74 +110,74 @@ class ProcedureScalaArgs:
|
|
|
109
110
|
|
|
110
111
|
@property
|
|
111
112
|
@pulumi.getter
|
|
112
|
-
def database(self) -> pulumi.Input[str]:
|
|
113
|
+
def database(self) -> pulumi.Input[builtins.str]:
|
|
113
114
|
"""
|
|
114
115
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
115
116
|
"""
|
|
116
117
|
return pulumi.get(self, "database")
|
|
117
118
|
|
|
118
119
|
@database.setter
|
|
119
|
-
def database(self, value: pulumi.Input[str]):
|
|
120
|
+
def database(self, value: pulumi.Input[builtins.str]):
|
|
120
121
|
pulumi.set(self, "database", value)
|
|
121
122
|
|
|
122
123
|
@property
|
|
123
124
|
@pulumi.getter
|
|
124
|
-
def handler(self) -> pulumi.Input[str]:
|
|
125
|
+
def handler(self) -> pulumi.Input[builtins.str]:
|
|
125
126
|
"""
|
|
126
127
|
Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
127
128
|
"""
|
|
128
129
|
return pulumi.get(self, "handler")
|
|
129
130
|
|
|
130
131
|
@handler.setter
|
|
131
|
-
def handler(self, value: pulumi.Input[str]):
|
|
132
|
+
def handler(self, value: pulumi.Input[builtins.str]):
|
|
132
133
|
pulumi.set(self, "handler", value)
|
|
133
134
|
|
|
134
135
|
@property
|
|
135
136
|
@pulumi.getter(name="returnType")
|
|
136
|
-
def return_type(self) -> pulumi.Input[str]:
|
|
137
|
+
def return_type(self) -> pulumi.Input[builtins.str]:
|
|
137
138
|
"""
|
|
138
139
|
Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Scala Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-types-to-scala-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
139
140
|
"""
|
|
140
141
|
return pulumi.get(self, "return_type")
|
|
141
142
|
|
|
142
143
|
@return_type.setter
|
|
143
|
-
def return_type(self, value: pulumi.Input[str]):
|
|
144
|
+
def return_type(self, value: pulumi.Input[builtins.str]):
|
|
144
145
|
pulumi.set(self, "return_type", value)
|
|
145
146
|
|
|
146
147
|
@property
|
|
147
148
|
@pulumi.getter(name="runtimeVersion")
|
|
148
|
-
def runtime_version(self) -> pulumi.Input[str]:
|
|
149
|
+
def runtime_version(self) -> pulumi.Input[builtins.str]:
|
|
149
150
|
"""
|
|
150
151
|
The language runtime version to use. Currently, the supported versions are: 2.12.
|
|
151
152
|
"""
|
|
152
153
|
return pulumi.get(self, "runtime_version")
|
|
153
154
|
|
|
154
155
|
@runtime_version.setter
|
|
155
|
-
def runtime_version(self, value: pulumi.Input[str]):
|
|
156
|
+
def runtime_version(self, value: pulumi.Input[builtins.str]):
|
|
156
157
|
pulumi.set(self, "runtime_version", value)
|
|
157
158
|
|
|
158
159
|
@property
|
|
159
160
|
@pulumi.getter
|
|
160
|
-
def schema(self) -> pulumi.Input[str]:
|
|
161
|
+
def schema(self) -> pulumi.Input[builtins.str]:
|
|
161
162
|
"""
|
|
162
163
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
163
164
|
"""
|
|
164
165
|
return pulumi.get(self, "schema")
|
|
165
166
|
|
|
166
167
|
@schema.setter
|
|
167
|
-
def schema(self, value: pulumi.Input[str]):
|
|
168
|
+
def schema(self, value: pulumi.Input[builtins.str]):
|
|
168
169
|
pulumi.set(self, "schema", value)
|
|
169
170
|
|
|
170
171
|
@property
|
|
171
172
|
@pulumi.getter(name="snowparkPackage")
|
|
172
|
-
def snowpark_package(self) -> pulumi.Input[str]:
|
|
173
|
+
def snowpark_package(self) -> pulumi.Input[builtins.str]:
|
|
173
174
|
"""
|
|
174
175
|
The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
175
176
|
"""
|
|
176
177
|
return pulumi.get(self, "snowpark_package")
|
|
177
178
|
|
|
178
179
|
@snowpark_package.setter
|
|
179
|
-
def snowpark_package(self, value: pulumi.Input[str]):
|
|
180
|
+
def snowpark_package(self, value: pulumi.Input[builtins.str]):
|
|
180
181
|
pulumi.set(self, "snowpark_package", value)
|
|
181
182
|
|
|
182
183
|
@property
|
|
@@ -193,50 +194,50 @@ class ProcedureScalaArgs:
|
|
|
193
194
|
|
|
194
195
|
@property
|
|
195
196
|
@pulumi.getter
|
|
196
|
-
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
197
|
+
def comment(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
197
198
|
"""
|
|
198
199
|
Specifies a comment for the procedure.
|
|
199
200
|
"""
|
|
200
201
|
return pulumi.get(self, "comment")
|
|
201
202
|
|
|
202
203
|
@comment.setter
|
|
203
|
-
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
204
|
+
def comment(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
204
205
|
pulumi.set(self, "comment", value)
|
|
205
206
|
|
|
206
207
|
@property
|
|
207
208
|
@pulumi.getter(name="enableConsoleOutput")
|
|
208
|
-
def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
|
|
209
|
+
def enable_console_output(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
209
210
|
"""
|
|
210
211
|
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).
|
|
211
212
|
"""
|
|
212
213
|
return pulumi.get(self, "enable_console_output")
|
|
213
214
|
|
|
214
215
|
@enable_console_output.setter
|
|
215
|
-
def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
|
|
216
|
+
def enable_console_output(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
216
217
|
pulumi.set(self, "enable_console_output", value)
|
|
217
218
|
|
|
218
219
|
@property
|
|
219
220
|
@pulumi.getter(name="executeAs")
|
|
220
|
-
def execute_as(self) -> Optional[pulumi.Input[str]]:
|
|
221
|
+
def execute_as(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
221
222
|
"""
|
|
222
223
|
Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
223
224
|
"""
|
|
224
225
|
return pulumi.get(self, "execute_as")
|
|
225
226
|
|
|
226
227
|
@execute_as.setter
|
|
227
|
-
def execute_as(self, value: Optional[pulumi.Input[str]]):
|
|
228
|
+
def execute_as(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
228
229
|
pulumi.set(self, "execute_as", value)
|
|
229
230
|
|
|
230
231
|
@property
|
|
231
232
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
232
|
-
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
233
|
+
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
233
234
|
"""
|
|
234
235
|
The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this procedure’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.
|
|
235
236
|
"""
|
|
236
237
|
return pulumi.get(self, "external_access_integrations")
|
|
237
238
|
|
|
238
239
|
@external_access_integrations.setter
|
|
239
|
-
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
240
|
+
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
240
241
|
pulumi.set(self, "external_access_integrations", value)
|
|
241
242
|
|
|
242
243
|
@property
|
|
@@ -253,86 +254,86 @@ class ProcedureScalaArgs:
|
|
|
253
254
|
|
|
254
255
|
@property
|
|
255
256
|
@pulumi.getter(name="isSecure")
|
|
256
|
-
def is_secure(self) -> Optional[pulumi.Input[str]]:
|
|
257
|
+
def is_secure(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
257
258
|
"""
|
|
258
259
|
Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
259
260
|
"""
|
|
260
261
|
return pulumi.get(self, "is_secure")
|
|
261
262
|
|
|
262
263
|
@is_secure.setter
|
|
263
|
-
def is_secure(self, value: Optional[pulumi.Input[str]]):
|
|
264
|
+
def is_secure(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
264
265
|
pulumi.set(self, "is_secure", value)
|
|
265
266
|
|
|
266
267
|
@property
|
|
267
268
|
@pulumi.getter(name="logLevel")
|
|
268
|
-
def log_level(self) -> Optional[pulumi.Input[str]]:
|
|
269
|
+
def log_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
269
270
|
"""
|
|
270
271
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
271
272
|
"""
|
|
272
273
|
return pulumi.get(self, "log_level")
|
|
273
274
|
|
|
274
275
|
@log_level.setter
|
|
275
|
-
def log_level(self, value: Optional[pulumi.Input[str]]):
|
|
276
|
+
def log_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
276
277
|
pulumi.set(self, "log_level", value)
|
|
277
278
|
|
|
278
279
|
@property
|
|
279
280
|
@pulumi.getter(name="metricLevel")
|
|
280
|
-
def metric_level(self) -> Optional[pulumi.Input[str]]:
|
|
281
|
+
def metric_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
281
282
|
"""
|
|
282
283
|
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).
|
|
283
284
|
"""
|
|
284
285
|
return pulumi.get(self, "metric_level")
|
|
285
286
|
|
|
286
287
|
@metric_level.setter
|
|
287
|
-
def metric_level(self, value: Optional[pulumi.Input[str]]):
|
|
288
|
+
def metric_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
288
289
|
pulumi.set(self, "metric_level", value)
|
|
289
290
|
|
|
290
291
|
@property
|
|
291
292
|
@pulumi.getter
|
|
292
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
293
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
293
294
|
"""
|
|
294
295
|
The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
295
296
|
"""
|
|
296
297
|
return pulumi.get(self, "name")
|
|
297
298
|
|
|
298
299
|
@name.setter
|
|
299
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
300
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
300
301
|
pulumi.set(self, "name", value)
|
|
301
302
|
|
|
302
303
|
@property
|
|
303
304
|
@pulumi.getter(name="nullInputBehavior")
|
|
304
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
|
|
305
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
305
306
|
"""
|
|
306
307
|
Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
307
308
|
"""
|
|
308
309
|
return pulumi.get(self, "null_input_behavior")
|
|
309
310
|
|
|
310
311
|
@null_input_behavior.setter
|
|
311
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
|
|
312
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
312
313
|
pulumi.set(self, "null_input_behavior", value)
|
|
313
314
|
|
|
314
315
|
@property
|
|
315
316
|
@pulumi.getter
|
|
316
|
-
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
317
|
+
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
317
318
|
"""
|
|
318
319
|
List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
319
320
|
"""
|
|
320
321
|
return pulumi.get(self, "packages")
|
|
321
322
|
|
|
322
323
|
@packages.setter
|
|
323
|
-
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
324
|
+
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
324
325
|
pulumi.set(self, "packages", value)
|
|
325
326
|
|
|
326
327
|
@property
|
|
327
328
|
@pulumi.getter(name="procedureDefinition")
|
|
328
|
-
def procedure_definition(self) -> Optional[pulumi.Input[str]]:
|
|
329
|
+
def procedure_definition(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
329
330
|
"""
|
|
330
331
|
Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Scala source code. For more information, see [Scala (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-scala). 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.
|
|
331
332
|
"""
|
|
332
333
|
return pulumi.get(self, "procedure_definition")
|
|
333
334
|
|
|
334
335
|
@procedure_definition.setter
|
|
335
|
-
def procedure_definition(self, value: Optional[pulumi.Input[str]]):
|
|
336
|
+
def procedure_definition(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
336
337
|
pulumi.set(self, "procedure_definition", value)
|
|
337
338
|
|
|
338
339
|
@property
|
|
@@ -361,14 +362,14 @@ class ProcedureScalaArgs:
|
|
|
361
362
|
|
|
362
363
|
@property
|
|
363
364
|
@pulumi.getter(name="traceLevel")
|
|
364
|
-
def trace_level(self) -> Optional[pulumi.Input[str]]:
|
|
365
|
+
def trace_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
365
366
|
"""
|
|
366
367
|
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).
|
|
367
368
|
"""
|
|
368
369
|
return pulumi.get(self, "trace_level")
|
|
369
370
|
|
|
370
371
|
@trace_level.setter
|
|
371
|
-
def trace_level(self, value: Optional[pulumi.Input[str]]):
|
|
372
|
+
def trace_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
372
373
|
pulumi.set(self, "trace_level", value)
|
|
373
374
|
|
|
374
375
|
|
|
@@ -376,59 +377,59 @@ class ProcedureScalaArgs:
|
|
|
376
377
|
class _ProcedureScalaState:
|
|
377
378
|
def __init__(__self__, *,
|
|
378
379
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureScalaArgumentArgs']]]] = None,
|
|
379
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
380
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
381
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
382
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
383
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
384
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
385
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
380
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
381
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
382
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
383
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
384
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
385
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
386
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
386
387
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureScalaImportArgs']]]] = None,
|
|
387
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
388
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
389
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
390
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
391
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
392
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
388
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
389
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
390
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
391
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
392
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
393
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
393
394
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureScalaParameterArgs']]]] = None,
|
|
394
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
395
|
-
procedure_language: Optional[pulumi.Input[str]] = None,
|
|
396
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
397
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
398
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
395
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
396
|
+
procedure_language: Optional[pulumi.Input[builtins.str]] = None,
|
|
397
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
398
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
399
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
399
400
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureScalaSecretArgs']]]] = None,
|
|
400
401
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureScalaShowOutputArgs']]]] = None,
|
|
401
|
-
snowpark_package: Optional[pulumi.Input[str]] = None,
|
|
402
|
+
snowpark_package: Optional[pulumi.Input[builtins.str]] = None,
|
|
402
403
|
target_path: Optional[pulumi.Input['ProcedureScalaTargetPathArgs']] = None,
|
|
403
|
-
trace_level: Optional[pulumi.Input[str]] = None):
|
|
404
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None):
|
|
404
405
|
"""
|
|
405
406
|
Input properties used for looking up and filtering ProcedureScala resources.
|
|
406
407
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureScalaArgumentArgs']]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
|
|
407
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
408
|
-
:param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
409
|
-
: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).
|
|
410
|
-
:param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
411
|
-
: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 procedure’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.
|
|
412
|
-
: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).
|
|
413
|
-
:param pulumi.Input[str] handler: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
408
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the procedure.
|
|
409
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
410
|
+
: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).
|
|
411
|
+
:param pulumi.Input[builtins.str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
412
|
+
: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 procedure’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.
|
|
413
|
+
: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).
|
|
414
|
+
:param pulumi.Input[builtins.str] handler: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
414
415
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureScalaImportArgs']]] imports: The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on. If you are writing an in-line stored procedure, you can omit this clause, unless your code depends on classes defined outside the stored procedure or resource files. If you are writing a stored procedure with a staged handler, you must also include a path to the JAR file containing the stored procedure’s handler code. The IMPORTS definition cannot reference variables from arguments that are passed into the stored procedure. Each file in the IMPORTS clause must have a unique name, even if the files are in different subdirectories or different stages.
|
|
415
|
-
:param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
416
|
-
: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).
|
|
417
|
-
: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).
|
|
418
|
-
:param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
419
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
420
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] packages: List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
416
|
+
:param pulumi.Input[builtins.str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
417
|
+
: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).
|
|
418
|
+
: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).
|
|
419
|
+
:param pulumi.Input[builtins.str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
420
|
+
:param pulumi.Input[builtins.str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
421
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] packages: List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
421
422
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureScalaParameterArgs']]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
422
|
-
:param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Scala source code. For more information, see [Scala (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-scala). 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.
|
|
423
|
-
:param pulumi.Input[str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
424
|
-
:param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Scala Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-types-to-scala-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
425
|
-
:param pulumi.Input[str] runtime_version: The language runtime version to use. Currently, the supported versions are: 2.12.
|
|
426
|
-
:param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
423
|
+
:param pulumi.Input[builtins.str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Scala source code. For more information, see [Scala (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-scala). 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.
|
|
424
|
+
:param pulumi.Input[builtins.str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
425
|
+
:param pulumi.Input[builtins.str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Scala Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-types-to-scala-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
426
|
+
:param pulumi.Input[builtins.str] runtime_version: The language runtime version to use. Currently, the supported versions are: 2.12.
|
|
427
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
427
428
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureScalaSecretArgs']]] 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.
|
|
428
429
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureScalaShowOutputArgs']]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
429
|
-
:param pulumi.Input[str] snowpark_package: The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
430
|
+
:param pulumi.Input[builtins.str] snowpark_package: The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
430
431
|
:param pulumi.Input['ProcedureScalaTargetPathArgs'] target_path: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
431
|
-
: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).
|
|
432
|
+
: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).
|
|
432
433
|
"""
|
|
433
434
|
if arguments is not None:
|
|
434
435
|
pulumi.set(__self__, "arguments", arguments)
|
|
@@ -497,86 +498,86 @@ class _ProcedureScalaState:
|
|
|
497
498
|
|
|
498
499
|
@property
|
|
499
500
|
@pulumi.getter
|
|
500
|
-
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
501
|
+
def comment(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
501
502
|
"""
|
|
502
503
|
Specifies a comment for the procedure.
|
|
503
504
|
"""
|
|
504
505
|
return pulumi.get(self, "comment")
|
|
505
506
|
|
|
506
507
|
@comment.setter
|
|
507
|
-
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
508
|
+
def comment(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
508
509
|
pulumi.set(self, "comment", value)
|
|
509
510
|
|
|
510
511
|
@property
|
|
511
512
|
@pulumi.getter
|
|
512
|
-
def database(self) -> Optional[pulumi.Input[str]]:
|
|
513
|
+
def database(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
513
514
|
"""
|
|
514
515
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
515
516
|
"""
|
|
516
517
|
return pulumi.get(self, "database")
|
|
517
518
|
|
|
518
519
|
@database.setter
|
|
519
|
-
def database(self, value: Optional[pulumi.Input[str]]):
|
|
520
|
+
def database(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
520
521
|
pulumi.set(self, "database", value)
|
|
521
522
|
|
|
522
523
|
@property
|
|
523
524
|
@pulumi.getter(name="enableConsoleOutput")
|
|
524
|
-
def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
|
|
525
|
+
def enable_console_output(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
525
526
|
"""
|
|
526
527
|
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).
|
|
527
528
|
"""
|
|
528
529
|
return pulumi.get(self, "enable_console_output")
|
|
529
530
|
|
|
530
531
|
@enable_console_output.setter
|
|
531
|
-
def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
|
|
532
|
+
def enable_console_output(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
532
533
|
pulumi.set(self, "enable_console_output", value)
|
|
533
534
|
|
|
534
535
|
@property
|
|
535
536
|
@pulumi.getter(name="executeAs")
|
|
536
|
-
def execute_as(self) -> Optional[pulumi.Input[str]]:
|
|
537
|
+
def execute_as(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
537
538
|
"""
|
|
538
539
|
Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
539
540
|
"""
|
|
540
541
|
return pulumi.get(self, "execute_as")
|
|
541
542
|
|
|
542
543
|
@execute_as.setter
|
|
543
|
-
def execute_as(self, value: Optional[pulumi.Input[str]]):
|
|
544
|
+
def execute_as(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
544
545
|
pulumi.set(self, "execute_as", value)
|
|
545
546
|
|
|
546
547
|
@property
|
|
547
548
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
548
|
-
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
549
|
+
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
549
550
|
"""
|
|
550
551
|
The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this procedure’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.
|
|
551
552
|
"""
|
|
552
553
|
return pulumi.get(self, "external_access_integrations")
|
|
553
554
|
|
|
554
555
|
@external_access_integrations.setter
|
|
555
|
-
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
556
|
+
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
556
557
|
pulumi.set(self, "external_access_integrations", value)
|
|
557
558
|
|
|
558
559
|
@property
|
|
559
560
|
@pulumi.getter(name="fullyQualifiedName")
|
|
560
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
561
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
561
562
|
"""
|
|
562
563
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
563
564
|
"""
|
|
564
565
|
return pulumi.get(self, "fully_qualified_name")
|
|
565
566
|
|
|
566
567
|
@fully_qualified_name.setter
|
|
567
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
568
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
568
569
|
pulumi.set(self, "fully_qualified_name", value)
|
|
569
570
|
|
|
570
571
|
@property
|
|
571
572
|
@pulumi.getter
|
|
572
|
-
def handler(self) -> Optional[pulumi.Input[str]]:
|
|
573
|
+
def handler(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
573
574
|
"""
|
|
574
575
|
Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
575
576
|
"""
|
|
576
577
|
return pulumi.get(self, "handler")
|
|
577
578
|
|
|
578
579
|
@handler.setter
|
|
579
|
-
def handler(self, value: Optional[pulumi.Input[str]]):
|
|
580
|
+
def handler(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
580
581
|
pulumi.set(self, "handler", value)
|
|
581
582
|
|
|
582
583
|
@property
|
|
@@ -593,74 +594,74 @@ class _ProcedureScalaState:
|
|
|
593
594
|
|
|
594
595
|
@property
|
|
595
596
|
@pulumi.getter(name="isSecure")
|
|
596
|
-
def is_secure(self) -> Optional[pulumi.Input[str]]:
|
|
597
|
+
def is_secure(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
597
598
|
"""
|
|
598
599
|
Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
599
600
|
"""
|
|
600
601
|
return pulumi.get(self, "is_secure")
|
|
601
602
|
|
|
602
603
|
@is_secure.setter
|
|
603
|
-
def is_secure(self, value: Optional[pulumi.Input[str]]):
|
|
604
|
+
def is_secure(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
604
605
|
pulumi.set(self, "is_secure", value)
|
|
605
606
|
|
|
606
607
|
@property
|
|
607
608
|
@pulumi.getter(name="logLevel")
|
|
608
|
-
def log_level(self) -> Optional[pulumi.Input[str]]:
|
|
609
|
+
def log_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
609
610
|
"""
|
|
610
611
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
611
612
|
"""
|
|
612
613
|
return pulumi.get(self, "log_level")
|
|
613
614
|
|
|
614
615
|
@log_level.setter
|
|
615
|
-
def log_level(self, value: Optional[pulumi.Input[str]]):
|
|
616
|
+
def log_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
616
617
|
pulumi.set(self, "log_level", value)
|
|
617
618
|
|
|
618
619
|
@property
|
|
619
620
|
@pulumi.getter(name="metricLevel")
|
|
620
|
-
def metric_level(self) -> Optional[pulumi.Input[str]]:
|
|
621
|
+
def metric_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
621
622
|
"""
|
|
622
623
|
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).
|
|
623
624
|
"""
|
|
624
625
|
return pulumi.get(self, "metric_level")
|
|
625
626
|
|
|
626
627
|
@metric_level.setter
|
|
627
|
-
def metric_level(self, value: Optional[pulumi.Input[str]]):
|
|
628
|
+
def metric_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
628
629
|
pulumi.set(self, "metric_level", value)
|
|
629
630
|
|
|
630
631
|
@property
|
|
631
632
|
@pulumi.getter
|
|
632
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
633
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
633
634
|
"""
|
|
634
635
|
The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
635
636
|
"""
|
|
636
637
|
return pulumi.get(self, "name")
|
|
637
638
|
|
|
638
639
|
@name.setter
|
|
639
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
640
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
640
641
|
pulumi.set(self, "name", value)
|
|
641
642
|
|
|
642
643
|
@property
|
|
643
644
|
@pulumi.getter(name="nullInputBehavior")
|
|
644
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
|
|
645
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
645
646
|
"""
|
|
646
647
|
Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
647
648
|
"""
|
|
648
649
|
return pulumi.get(self, "null_input_behavior")
|
|
649
650
|
|
|
650
651
|
@null_input_behavior.setter
|
|
651
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
|
|
652
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
652
653
|
pulumi.set(self, "null_input_behavior", value)
|
|
653
654
|
|
|
654
655
|
@property
|
|
655
656
|
@pulumi.getter
|
|
656
|
-
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
657
|
+
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
657
658
|
"""
|
|
658
659
|
List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
659
660
|
"""
|
|
660
661
|
return pulumi.get(self, "packages")
|
|
661
662
|
|
|
662
663
|
@packages.setter
|
|
663
|
-
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
664
|
+
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
664
665
|
pulumi.set(self, "packages", value)
|
|
665
666
|
|
|
666
667
|
@property
|
|
@@ -677,62 +678,62 @@ class _ProcedureScalaState:
|
|
|
677
678
|
|
|
678
679
|
@property
|
|
679
680
|
@pulumi.getter(name="procedureDefinition")
|
|
680
|
-
def procedure_definition(self) -> Optional[pulumi.Input[str]]:
|
|
681
|
+
def procedure_definition(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
681
682
|
"""
|
|
682
683
|
Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Scala source code. For more information, see [Scala (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-scala). 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.
|
|
683
684
|
"""
|
|
684
685
|
return pulumi.get(self, "procedure_definition")
|
|
685
686
|
|
|
686
687
|
@procedure_definition.setter
|
|
687
|
-
def procedure_definition(self, value: Optional[pulumi.Input[str]]):
|
|
688
|
+
def procedure_definition(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
688
689
|
pulumi.set(self, "procedure_definition", value)
|
|
689
690
|
|
|
690
691
|
@property
|
|
691
692
|
@pulumi.getter(name="procedureLanguage")
|
|
692
|
-
def procedure_language(self) -> Optional[pulumi.Input[str]]:
|
|
693
|
+
def procedure_language(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
693
694
|
"""
|
|
694
695
|
Specifies language for the procedure. Used to detect external changes.
|
|
695
696
|
"""
|
|
696
697
|
return pulumi.get(self, "procedure_language")
|
|
697
698
|
|
|
698
699
|
@procedure_language.setter
|
|
699
|
-
def procedure_language(self, value: Optional[pulumi.Input[str]]):
|
|
700
|
+
def procedure_language(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
700
701
|
pulumi.set(self, "procedure_language", value)
|
|
701
702
|
|
|
702
703
|
@property
|
|
703
704
|
@pulumi.getter(name="returnType")
|
|
704
|
-
def return_type(self) -> Optional[pulumi.Input[str]]:
|
|
705
|
+
def return_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
705
706
|
"""
|
|
706
707
|
Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Scala Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-types-to-scala-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
707
708
|
"""
|
|
708
709
|
return pulumi.get(self, "return_type")
|
|
709
710
|
|
|
710
711
|
@return_type.setter
|
|
711
|
-
def return_type(self, value: Optional[pulumi.Input[str]]):
|
|
712
|
+
def return_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
712
713
|
pulumi.set(self, "return_type", value)
|
|
713
714
|
|
|
714
715
|
@property
|
|
715
716
|
@pulumi.getter(name="runtimeVersion")
|
|
716
|
-
def runtime_version(self) -> Optional[pulumi.Input[str]]:
|
|
717
|
+
def runtime_version(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
717
718
|
"""
|
|
718
719
|
The language runtime version to use. Currently, the supported versions are: 2.12.
|
|
719
720
|
"""
|
|
720
721
|
return pulumi.get(self, "runtime_version")
|
|
721
722
|
|
|
722
723
|
@runtime_version.setter
|
|
723
|
-
def runtime_version(self, value: Optional[pulumi.Input[str]]):
|
|
724
|
+
def runtime_version(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
724
725
|
pulumi.set(self, "runtime_version", value)
|
|
725
726
|
|
|
726
727
|
@property
|
|
727
728
|
@pulumi.getter
|
|
728
|
-
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
729
|
+
def schema(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
729
730
|
"""
|
|
730
731
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
731
732
|
"""
|
|
732
733
|
return pulumi.get(self, "schema")
|
|
733
734
|
|
|
734
735
|
@schema.setter
|
|
735
|
-
def schema(self, value: Optional[pulumi.Input[str]]):
|
|
736
|
+
def schema(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
736
737
|
pulumi.set(self, "schema", value)
|
|
737
738
|
|
|
738
739
|
@property
|
|
@@ -761,14 +762,14 @@ class _ProcedureScalaState:
|
|
|
761
762
|
|
|
762
763
|
@property
|
|
763
764
|
@pulumi.getter(name="snowparkPackage")
|
|
764
|
-
def snowpark_package(self) -> Optional[pulumi.Input[str]]:
|
|
765
|
+
def snowpark_package(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
765
766
|
"""
|
|
766
767
|
The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
767
768
|
"""
|
|
768
769
|
return pulumi.get(self, "snowpark_package")
|
|
769
770
|
|
|
770
771
|
@snowpark_package.setter
|
|
771
|
-
def snowpark_package(self, value: Optional[pulumi.Input[str]]):
|
|
772
|
+
def snowpark_package(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
772
773
|
pulumi.set(self, "snowpark_package", value)
|
|
773
774
|
|
|
774
775
|
@property
|
|
@@ -785,14 +786,14 @@ class _ProcedureScalaState:
|
|
|
785
786
|
|
|
786
787
|
@property
|
|
787
788
|
@pulumi.getter(name="traceLevel")
|
|
788
|
-
def trace_level(self) -> Optional[pulumi.Input[str]]:
|
|
789
|
+
def trace_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
789
790
|
"""
|
|
790
791
|
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).
|
|
791
792
|
"""
|
|
792
793
|
return pulumi.get(self, "trace_level")
|
|
793
794
|
|
|
794
795
|
@trace_level.setter
|
|
795
|
-
def trace_level(self, value: Optional[pulumi.Input[str]]):
|
|
796
|
+
def trace_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
796
797
|
pulumi.set(self, "trace_level", value)
|
|
797
798
|
|
|
798
799
|
|
|
@@ -802,27 +803,27 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
802
803
|
resource_name: str,
|
|
803
804
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
804
805
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaArgumentArgs', 'ProcedureScalaArgumentArgsDict']]]]] = None,
|
|
805
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
806
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
807
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
808
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
809
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
810
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
806
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
807
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
808
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
809
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
810
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
811
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
811
812
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaImportArgs', 'ProcedureScalaImportArgsDict']]]]] = None,
|
|
812
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
813
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
814
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
815
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
816
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
817
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
818
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
819
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
820
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
821
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
813
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
814
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
815
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
816
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
817
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
818
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
819
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
820
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
821
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
822
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
822
823
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaSecretArgs', 'ProcedureScalaSecretArgsDict']]]]] = None,
|
|
823
|
-
snowpark_package: Optional[pulumi.Input[str]] = None,
|
|
824
|
+
snowpark_package: Optional[pulumi.Input[builtins.str]] = None,
|
|
824
825
|
target_path: Optional[pulumi.Input[Union['ProcedureScalaTargetPathArgs', 'ProcedureScalaTargetPathArgsDict']]] = None,
|
|
825
|
-
trace_level: Optional[pulumi.Input[str]] = None,
|
|
826
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
826
827
|
__props__=None):
|
|
827
828
|
"""
|
|
828
829
|
## Import
|
|
@@ -838,27 +839,27 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
838
839
|
:param str resource_name: The name of the resource.
|
|
839
840
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
840
841
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaArgumentArgs', 'ProcedureScalaArgumentArgsDict']]]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
|
|
841
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
842
|
-
:param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
843
|
-
: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).
|
|
844
|
-
:param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
845
|
-
: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 procedure’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.
|
|
846
|
-
:param pulumi.Input[str] handler: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
842
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the procedure.
|
|
843
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
844
|
+
: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).
|
|
845
|
+
:param pulumi.Input[builtins.str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
846
|
+
: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 procedure’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.
|
|
847
|
+
:param pulumi.Input[builtins.str] handler: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
847
848
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaImportArgs', 'ProcedureScalaImportArgsDict']]]] imports: The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on. If you are writing an in-line stored procedure, you can omit this clause, unless your code depends on classes defined outside the stored procedure or resource files. If you are writing a stored procedure with a staged handler, you must also include a path to the JAR file containing the stored procedure’s handler code. The IMPORTS definition cannot reference variables from arguments that are passed into the stored procedure. Each file in the IMPORTS clause must have a unique name, even if the files are in different subdirectories or different stages.
|
|
848
|
-
:param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
849
|
-
: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).
|
|
850
|
-
: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).
|
|
851
|
-
:param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
852
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
853
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] packages: List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
854
|
-
:param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Scala source code. For more information, see [Scala (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-scala). 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.
|
|
855
|
-
:param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Scala Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-types-to-scala-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
856
|
-
:param pulumi.Input[str] runtime_version: The language runtime version to use. Currently, the supported versions are: 2.12.
|
|
857
|
-
:param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
849
|
+
:param pulumi.Input[builtins.str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
850
|
+
: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).
|
|
851
|
+
: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).
|
|
852
|
+
:param pulumi.Input[builtins.str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
853
|
+
:param pulumi.Input[builtins.str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
854
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] packages: List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
855
|
+
:param pulumi.Input[builtins.str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Scala source code. For more information, see [Scala (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-scala). 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.
|
|
856
|
+
:param pulumi.Input[builtins.str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Scala Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-types-to-scala-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
857
|
+
:param pulumi.Input[builtins.str] runtime_version: The language runtime version to use. Currently, the supported versions are: 2.12.
|
|
858
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
858
859
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaSecretArgs', 'ProcedureScalaSecretArgsDict']]]] 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.
|
|
859
|
-
:param pulumi.Input[str] snowpark_package: The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
860
|
+
:param pulumi.Input[builtins.str] snowpark_package: The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
860
861
|
:param pulumi.Input[Union['ProcedureScalaTargetPathArgs', 'ProcedureScalaTargetPathArgsDict']] target_path: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
861
|
-
: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).
|
|
862
|
+
: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).
|
|
862
863
|
"""
|
|
863
864
|
...
|
|
864
865
|
@overload
|
|
@@ -893,27 +894,27 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
893
894
|
resource_name: str,
|
|
894
895
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
895
896
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaArgumentArgs', 'ProcedureScalaArgumentArgsDict']]]]] = None,
|
|
896
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
897
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
898
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
899
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
900
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
901
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
897
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
898
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
899
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
900
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
901
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
902
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
902
903
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaImportArgs', 'ProcedureScalaImportArgsDict']]]]] = None,
|
|
903
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
904
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
905
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
906
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
907
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
908
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
909
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
910
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
911
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
912
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
904
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
905
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
906
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
907
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
908
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
909
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
910
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
911
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
912
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
913
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
913
914
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaSecretArgs', 'ProcedureScalaSecretArgsDict']]]]] = None,
|
|
914
|
-
snowpark_package: Optional[pulumi.Input[str]] = None,
|
|
915
|
+
snowpark_package: Optional[pulumi.Input[builtins.str]] = None,
|
|
915
916
|
target_path: Optional[pulumi.Input[Union['ProcedureScalaTargetPathArgs', 'ProcedureScalaTargetPathArgsDict']]] = None,
|
|
916
|
-
trace_level: Optional[pulumi.Input[str]] = None,
|
|
917
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
917
918
|
__props__=None):
|
|
918
919
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
919
920
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -972,31 +973,31 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
972
973
|
id: pulumi.Input[str],
|
|
973
974
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
974
975
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaArgumentArgs', 'ProcedureScalaArgumentArgsDict']]]]] = None,
|
|
975
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
976
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
977
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
978
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
979
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
980
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
981
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
976
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
977
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
978
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
979
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
980
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
981
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
982
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
982
983
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaImportArgs', 'ProcedureScalaImportArgsDict']]]]] = None,
|
|
983
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
984
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
985
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
986
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
987
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
988
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
984
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
985
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
986
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
987
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
988
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
989
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
989
990
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaParameterArgs', 'ProcedureScalaParameterArgsDict']]]]] = None,
|
|
990
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
991
|
-
procedure_language: Optional[pulumi.Input[str]] = None,
|
|
992
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
993
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
994
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
991
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
992
|
+
procedure_language: Optional[pulumi.Input[builtins.str]] = None,
|
|
993
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
994
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
995
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
995
996
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaSecretArgs', 'ProcedureScalaSecretArgsDict']]]]] = None,
|
|
996
997
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaShowOutputArgs', 'ProcedureScalaShowOutputArgsDict']]]]] = None,
|
|
997
|
-
snowpark_package: Optional[pulumi.Input[str]] = None,
|
|
998
|
+
snowpark_package: Optional[pulumi.Input[builtins.str]] = None,
|
|
998
999
|
target_path: Optional[pulumi.Input[Union['ProcedureScalaTargetPathArgs', 'ProcedureScalaTargetPathArgsDict']]] = None,
|
|
999
|
-
trace_level: Optional[pulumi.Input[str]] = None) -> 'ProcedureScala':
|
|
1000
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None) -> 'ProcedureScala':
|
|
1000
1001
|
"""
|
|
1001
1002
|
Get an existing ProcedureScala resource's state with the given name, id, and optional extra
|
|
1002
1003
|
properties used to qualify the lookup.
|
|
@@ -1005,31 +1006,31 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1005
1006
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1006
1007
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1007
1008
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaArgumentArgs', 'ProcedureScalaArgumentArgsDict']]]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
|
|
1008
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
1009
|
-
:param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1010
|
-
: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).
|
|
1011
|
-
:param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
1012
|
-
: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 procedure’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.
|
|
1013
|
-
: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).
|
|
1014
|
-
:param pulumi.Input[str] handler: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
1009
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the procedure.
|
|
1010
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1011
|
+
: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).
|
|
1012
|
+
:param pulumi.Input[builtins.str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
1013
|
+
: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 procedure’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.
|
|
1014
|
+
: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).
|
|
1015
|
+
:param pulumi.Input[builtins.str] handler: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
1015
1016
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaImportArgs', 'ProcedureScalaImportArgsDict']]]] imports: The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on. If you are writing an in-line stored procedure, you can omit this clause, unless your code depends on classes defined outside the stored procedure or resource files. If you are writing a stored procedure with a staged handler, you must also include a path to the JAR file containing the stored procedure’s handler code. The IMPORTS definition cannot reference variables from arguments that are passed into the stored procedure. Each file in the IMPORTS clause must have a unique name, even if the files are in different subdirectories or different stages.
|
|
1016
|
-
:param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
1017
|
-
: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).
|
|
1018
|
-
: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).
|
|
1019
|
-
:param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1020
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
1021
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] packages: List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
1017
|
+
:param pulumi.Input[builtins.str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
1018
|
+
: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).
|
|
1019
|
+
: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).
|
|
1020
|
+
:param pulumi.Input[builtins.str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1021
|
+
:param pulumi.Input[builtins.str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
1022
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] packages: List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
1022
1023
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaParameterArgs', 'ProcedureScalaParameterArgsDict']]]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
1023
|
-
:param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Scala source code. For more information, see [Scala (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-scala). 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.
|
|
1024
|
-
:param pulumi.Input[str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
1025
|
-
:param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Scala Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-types-to-scala-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
1026
|
-
:param pulumi.Input[str] runtime_version: The language runtime version to use. Currently, the supported versions are: 2.12.
|
|
1027
|
-
:param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1024
|
+
:param pulumi.Input[builtins.str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Scala source code. For more information, see [Scala (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-scala). 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.
|
|
1025
|
+
:param pulumi.Input[builtins.str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
1026
|
+
:param pulumi.Input[builtins.str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Scala Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-types-to-scala-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
1027
|
+
:param pulumi.Input[builtins.str] runtime_version: The language runtime version to use. Currently, the supported versions are: 2.12.
|
|
1028
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1028
1029
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaSecretArgs', 'ProcedureScalaSecretArgsDict']]]] 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.
|
|
1029
1030
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureScalaShowOutputArgs', 'ProcedureScalaShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
1030
|
-
:param pulumi.Input[str] snowpark_package: The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
1031
|
+
:param pulumi.Input[builtins.str] snowpark_package: The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
1031
1032
|
:param pulumi.Input[Union['ProcedureScalaTargetPathArgs', 'ProcedureScalaTargetPathArgsDict']] target_path: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
1032
|
-
: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).
|
|
1033
|
+
: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).
|
|
1033
1034
|
"""
|
|
1034
1035
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1035
1036
|
|
|
@@ -1073,7 +1074,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1073
1074
|
|
|
1074
1075
|
@property
|
|
1075
1076
|
@pulumi.getter
|
|
1076
|
-
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
1077
|
+
def comment(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1077
1078
|
"""
|
|
1078
1079
|
Specifies a comment for the procedure.
|
|
1079
1080
|
"""
|
|
@@ -1081,7 +1082,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1081
1082
|
|
|
1082
1083
|
@property
|
|
1083
1084
|
@pulumi.getter
|
|
1084
|
-
def database(self) -> pulumi.Output[str]:
|
|
1085
|
+
def database(self) -> pulumi.Output[builtins.str]:
|
|
1085
1086
|
"""
|
|
1086
1087
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1087
1088
|
"""
|
|
@@ -1089,7 +1090,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1089
1090
|
|
|
1090
1091
|
@property
|
|
1091
1092
|
@pulumi.getter(name="enableConsoleOutput")
|
|
1092
|
-
def enable_console_output(self) -> pulumi.Output[bool]:
|
|
1093
|
+
def enable_console_output(self) -> pulumi.Output[builtins.bool]:
|
|
1093
1094
|
"""
|
|
1094
1095
|
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).
|
|
1095
1096
|
"""
|
|
@@ -1097,7 +1098,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1097
1098
|
|
|
1098
1099
|
@property
|
|
1099
1100
|
@pulumi.getter(name="executeAs")
|
|
1100
|
-
def execute_as(self) -> pulumi.Output[Optional[str]]:
|
|
1101
|
+
def execute_as(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1101
1102
|
"""
|
|
1102
1103
|
Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
1103
1104
|
"""
|
|
@@ -1105,7 +1106,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1105
1106
|
|
|
1106
1107
|
@property
|
|
1107
1108
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
1108
|
-
def external_access_integrations(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1109
|
+
def external_access_integrations(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
|
1109
1110
|
"""
|
|
1110
1111
|
The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this procedure’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.
|
|
1111
1112
|
"""
|
|
@@ -1113,7 +1114,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1113
1114
|
|
|
1114
1115
|
@property
|
|
1115
1116
|
@pulumi.getter(name="fullyQualifiedName")
|
|
1116
|
-
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
1117
|
+
def fully_qualified_name(self) -> pulumi.Output[builtins.str]:
|
|
1117
1118
|
"""
|
|
1118
1119
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
1119
1120
|
"""
|
|
@@ -1121,7 +1122,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1121
1122
|
|
|
1122
1123
|
@property
|
|
1123
1124
|
@pulumi.getter
|
|
1124
|
-
def handler(self) -> pulumi.Output[str]:
|
|
1125
|
+
def handler(self) -> pulumi.Output[builtins.str]:
|
|
1125
1126
|
"""
|
|
1126
1127
|
Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form: `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
1127
1128
|
"""
|
|
@@ -1137,7 +1138,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1137
1138
|
|
|
1138
1139
|
@property
|
|
1139
1140
|
@pulumi.getter(name="isSecure")
|
|
1140
|
-
def is_secure(self) -> pulumi.Output[Optional[str]]:
|
|
1141
|
+
def is_secure(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1141
1142
|
"""
|
|
1142
1143
|
Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
1143
1144
|
"""
|
|
@@ -1145,7 +1146,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1145
1146
|
|
|
1146
1147
|
@property
|
|
1147
1148
|
@pulumi.getter(name="logLevel")
|
|
1148
|
-
def log_level(self) -> pulumi.Output[str]:
|
|
1149
|
+
def log_level(self) -> pulumi.Output[builtins.str]:
|
|
1149
1150
|
"""
|
|
1150
1151
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
1151
1152
|
"""
|
|
@@ -1153,7 +1154,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1153
1154
|
|
|
1154
1155
|
@property
|
|
1155
1156
|
@pulumi.getter(name="metricLevel")
|
|
1156
|
-
def metric_level(self) -> pulumi.Output[str]:
|
|
1157
|
+
def metric_level(self) -> pulumi.Output[builtins.str]:
|
|
1157
1158
|
"""
|
|
1158
1159
|
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).
|
|
1159
1160
|
"""
|
|
@@ -1161,7 +1162,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1161
1162
|
|
|
1162
1163
|
@property
|
|
1163
1164
|
@pulumi.getter
|
|
1164
|
-
def name(self) -> pulumi.Output[str]:
|
|
1165
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
|
1165
1166
|
"""
|
|
1166
1167
|
The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1167
1168
|
"""
|
|
@@ -1169,7 +1170,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1169
1170
|
|
|
1170
1171
|
@property
|
|
1171
1172
|
@pulumi.getter(name="nullInputBehavior")
|
|
1172
|
-
def null_input_behavior(self) -> pulumi.Output[Optional[str]]:
|
|
1173
|
+
def null_input_behavior(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1173
1174
|
"""
|
|
1174
1175
|
Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
1175
1176
|
"""
|
|
@@ -1177,7 +1178,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1177
1178
|
|
|
1178
1179
|
@property
|
|
1179
1180
|
@pulumi.getter
|
|
1180
|
-
def packages(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1181
|
+
def packages(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
|
1181
1182
|
"""
|
|
1182
1183
|
List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
1183
1184
|
"""
|
|
@@ -1193,7 +1194,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1193
1194
|
|
|
1194
1195
|
@property
|
|
1195
1196
|
@pulumi.getter(name="procedureDefinition")
|
|
1196
|
-
def procedure_definition(self) -> pulumi.Output[Optional[str]]:
|
|
1197
|
+
def procedure_definition(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1197
1198
|
"""
|
|
1198
1199
|
Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Scala source code. For more information, see [Scala (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-scala). 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.
|
|
1199
1200
|
"""
|
|
@@ -1201,7 +1202,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1201
1202
|
|
|
1202
1203
|
@property
|
|
1203
1204
|
@pulumi.getter(name="procedureLanguage")
|
|
1204
|
-
def procedure_language(self) -> pulumi.Output[str]:
|
|
1205
|
+
def procedure_language(self) -> pulumi.Output[builtins.str]:
|
|
1205
1206
|
"""
|
|
1206
1207
|
Specifies language for the procedure. Used to detect external changes.
|
|
1207
1208
|
"""
|
|
@@ -1209,7 +1210,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1209
1210
|
|
|
1210
1211
|
@property
|
|
1211
1212
|
@pulumi.getter(name="returnType")
|
|
1212
|
-
def return_type(self) -> pulumi.Output[str]:
|
|
1213
|
+
def return_type(self) -> pulumi.Output[builtins.str]:
|
|
1213
1214
|
"""
|
|
1214
1215
|
Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Scala Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-types-to-scala-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
1215
1216
|
"""
|
|
@@ -1217,7 +1218,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1217
1218
|
|
|
1218
1219
|
@property
|
|
1219
1220
|
@pulumi.getter(name="runtimeVersion")
|
|
1220
|
-
def runtime_version(self) -> pulumi.Output[str]:
|
|
1221
|
+
def runtime_version(self) -> pulumi.Output[builtins.str]:
|
|
1221
1222
|
"""
|
|
1222
1223
|
The language runtime version to use. Currently, the supported versions are: 2.12.
|
|
1223
1224
|
"""
|
|
@@ -1225,7 +1226,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1225
1226
|
|
|
1226
1227
|
@property
|
|
1227
1228
|
@pulumi.getter
|
|
1228
|
-
def schema(self) -> pulumi.Output[str]:
|
|
1229
|
+
def schema(self) -> pulumi.Output[builtins.str]:
|
|
1229
1230
|
"""
|
|
1230
1231
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1231
1232
|
"""
|
|
@@ -1249,7 +1250,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1249
1250
|
|
|
1250
1251
|
@property
|
|
1251
1252
|
@pulumi.getter(name="snowparkPackage")
|
|
1252
|
-
def snowpark_package(self) -> pulumi.Output[str]:
|
|
1253
|
+
def snowpark_package(self) -> pulumi.Output[builtins.str]:
|
|
1253
1254
|
"""
|
|
1254
1255
|
The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
1255
1256
|
"""
|
|
@@ -1265,7 +1266,7 @@ class ProcedureScala(pulumi.CustomResource):
|
|
|
1265
1266
|
|
|
1266
1267
|
@property
|
|
1267
1268
|
@pulumi.getter(name="traceLevel")
|
|
1268
|
-
def trace_level(self) -> pulumi.Output[str]:
|
|
1269
|
+
def trace_level(self) -> pulumi.Output[builtins.str]:
|
|
1269
1270
|
"""
|
|
1270
1271
|
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).
|
|
1271
1272
|
"""
|