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,50 +22,50 @@ __all__ = ['ProcedurePythonArgs', 'ProcedurePython']
|
|
|
21
22
|
@pulumi.input_type
|
|
22
23
|
class ProcedurePythonArgs:
|
|
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['ProcedurePythonArgumentArgs']]]] = 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['ProcedurePythonImportArgs']]]] = 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['ProcedurePythonSecretArgs']]]] = None,
|
|
44
|
-
trace_level: Optional[pulumi.Input[str]] = None):
|
|
45
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None):
|
|
45
46
|
"""
|
|
46
47
|
The set of arguments for constructing a ProcedurePython resource.
|
|
47
|
-
: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: `|`, `.`, `"`.
|
|
48
|
-
:param pulumi.Input[str] handler: Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
49
|
-
: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-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). 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 ()`).
|
|
50
|
-
:param pulumi.Input[str] runtime_version: The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
51
|
-
: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: `|`, `.`, `"`.
|
|
52
|
-
: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).
|
|
48
|
+
: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: `|`, `.`, `"`.
|
|
49
|
+
:param pulumi.Input[builtins.str] handler: Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
50
|
+
: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-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). 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[builtins.str] runtime_version: The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
52
|
+
: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: `|`, `.`, `"`.
|
|
53
|
+
: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).
|
|
53
54
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedurePythonArgumentArgs']]] 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.
|
|
54
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
55
|
-
: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).
|
|
56
|
-
: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`.
|
|
57
|
-
: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.
|
|
55
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the procedure.
|
|
56
|
+
: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).
|
|
57
|
+
: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`.
|
|
58
|
+
: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.
|
|
58
59
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedurePythonImportArgs']]] 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 your stored procedure’s code will be on a stage, you must also include a path to the module file your code is in. 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.
|
|
59
|
-
: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.
|
|
60
|
-
: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).
|
|
61
|
-
: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).
|
|
62
|
-
: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: `|`, `.`, `"`.
|
|
63
|
-
: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`.
|
|
64
|
-
: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).
|
|
65
|
-
: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 Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
60
|
+
: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.
|
|
61
|
+
: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).
|
|
62
|
+
: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).
|
|
63
|
+
: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: `|`, `.`, `"`.
|
|
64
|
+
: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`.
|
|
65
|
+
: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).
|
|
66
|
+
: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 Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
66
67
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedurePythonSecretArgs']]] 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.
|
|
67
|
-
: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).
|
|
68
|
+
: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).
|
|
68
69
|
"""
|
|
69
70
|
pulumi.set(__self__, "database", database)
|
|
70
71
|
pulumi.set(__self__, "handler", handler)
|
|
@@ -105,74 +106,74 @@ class ProcedurePythonArgs:
|
|
|
105
106
|
|
|
106
107
|
@property
|
|
107
108
|
@pulumi.getter
|
|
108
|
-
def database(self) -> pulumi.Input[str]:
|
|
109
|
+
def database(self) -> pulumi.Input[builtins.str]:
|
|
109
110
|
"""
|
|
110
111
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
111
112
|
"""
|
|
112
113
|
return pulumi.get(self, "database")
|
|
113
114
|
|
|
114
115
|
@database.setter
|
|
115
|
-
def database(self, value: pulumi.Input[str]):
|
|
116
|
+
def database(self, value: pulumi.Input[builtins.str]):
|
|
116
117
|
pulumi.set(self, "database", value)
|
|
117
118
|
|
|
118
119
|
@property
|
|
119
120
|
@pulumi.getter
|
|
120
|
-
def handler(self) -> pulumi.Input[str]:
|
|
121
|
+
def handler(self) -> pulumi.Input[builtins.str]:
|
|
121
122
|
"""
|
|
122
123
|
Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
123
124
|
"""
|
|
124
125
|
return pulumi.get(self, "handler")
|
|
125
126
|
|
|
126
127
|
@handler.setter
|
|
127
|
-
def handler(self, value: pulumi.Input[str]):
|
|
128
|
+
def handler(self, value: pulumi.Input[builtins.str]):
|
|
128
129
|
pulumi.set(self, "handler", value)
|
|
129
130
|
|
|
130
131
|
@property
|
|
131
132
|
@pulumi.getter(name="returnType")
|
|
132
|
-
def return_type(self) -> pulumi.Input[str]:
|
|
133
|
+
def return_type(self) -> pulumi.Input[builtins.str]:
|
|
133
134
|
"""
|
|
134
135
|
Specifies the 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-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). 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 ()`).
|
|
135
136
|
"""
|
|
136
137
|
return pulumi.get(self, "return_type")
|
|
137
138
|
|
|
138
139
|
@return_type.setter
|
|
139
|
-
def return_type(self, value: pulumi.Input[str]):
|
|
140
|
+
def return_type(self, value: pulumi.Input[builtins.str]):
|
|
140
141
|
pulumi.set(self, "return_type", value)
|
|
141
142
|
|
|
142
143
|
@property
|
|
143
144
|
@pulumi.getter(name="runtimeVersion")
|
|
144
|
-
def runtime_version(self) -> pulumi.Input[str]:
|
|
145
|
+
def runtime_version(self) -> pulumi.Input[builtins.str]:
|
|
145
146
|
"""
|
|
146
147
|
The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
147
148
|
"""
|
|
148
149
|
return pulumi.get(self, "runtime_version")
|
|
149
150
|
|
|
150
151
|
@runtime_version.setter
|
|
151
|
-
def runtime_version(self, value: pulumi.Input[str]):
|
|
152
|
+
def runtime_version(self, value: pulumi.Input[builtins.str]):
|
|
152
153
|
pulumi.set(self, "runtime_version", value)
|
|
153
154
|
|
|
154
155
|
@property
|
|
155
156
|
@pulumi.getter
|
|
156
|
-
def schema(self) -> pulumi.Input[str]:
|
|
157
|
+
def schema(self) -> pulumi.Input[builtins.str]:
|
|
157
158
|
"""
|
|
158
159
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
159
160
|
"""
|
|
160
161
|
return pulumi.get(self, "schema")
|
|
161
162
|
|
|
162
163
|
@schema.setter
|
|
163
|
-
def schema(self, value: pulumi.Input[str]):
|
|
164
|
+
def schema(self, value: pulumi.Input[builtins.str]):
|
|
164
165
|
pulumi.set(self, "schema", value)
|
|
165
166
|
|
|
166
167
|
@property
|
|
167
168
|
@pulumi.getter(name="snowparkPackage")
|
|
168
|
-
def snowpark_package(self) -> pulumi.Input[str]:
|
|
169
|
+
def snowpark_package(self) -> pulumi.Input[builtins.str]:
|
|
169
170
|
"""
|
|
170
171
|
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).
|
|
171
172
|
"""
|
|
172
173
|
return pulumi.get(self, "snowpark_package")
|
|
173
174
|
|
|
174
175
|
@snowpark_package.setter
|
|
175
|
-
def snowpark_package(self, value: pulumi.Input[str]):
|
|
176
|
+
def snowpark_package(self, value: pulumi.Input[builtins.str]):
|
|
176
177
|
pulumi.set(self, "snowpark_package", value)
|
|
177
178
|
|
|
178
179
|
@property
|
|
@@ -189,50 +190,50 @@ class ProcedurePythonArgs:
|
|
|
189
190
|
|
|
190
191
|
@property
|
|
191
192
|
@pulumi.getter
|
|
192
|
-
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
193
|
+
def comment(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
193
194
|
"""
|
|
194
195
|
Specifies a comment for the procedure.
|
|
195
196
|
"""
|
|
196
197
|
return pulumi.get(self, "comment")
|
|
197
198
|
|
|
198
199
|
@comment.setter
|
|
199
|
-
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
200
|
+
def comment(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
200
201
|
pulumi.set(self, "comment", value)
|
|
201
202
|
|
|
202
203
|
@property
|
|
203
204
|
@pulumi.getter(name="enableConsoleOutput")
|
|
204
|
-
def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
|
|
205
|
+
def enable_console_output(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
205
206
|
"""
|
|
206
207
|
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).
|
|
207
208
|
"""
|
|
208
209
|
return pulumi.get(self, "enable_console_output")
|
|
209
210
|
|
|
210
211
|
@enable_console_output.setter
|
|
211
|
-
def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
|
|
212
|
+
def enable_console_output(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
212
213
|
pulumi.set(self, "enable_console_output", value)
|
|
213
214
|
|
|
214
215
|
@property
|
|
215
216
|
@pulumi.getter(name="executeAs")
|
|
216
|
-
def execute_as(self) -> Optional[pulumi.Input[str]]:
|
|
217
|
+
def execute_as(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
217
218
|
"""
|
|
218
219
|
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`.
|
|
219
220
|
"""
|
|
220
221
|
return pulumi.get(self, "execute_as")
|
|
221
222
|
|
|
222
223
|
@execute_as.setter
|
|
223
|
-
def execute_as(self, value: Optional[pulumi.Input[str]]):
|
|
224
|
+
def execute_as(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
224
225
|
pulumi.set(self, "execute_as", value)
|
|
225
226
|
|
|
226
227
|
@property
|
|
227
228
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
228
|
-
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
229
|
+
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
229
230
|
"""
|
|
230
231
|
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.
|
|
231
232
|
"""
|
|
232
233
|
return pulumi.get(self, "external_access_integrations")
|
|
233
234
|
|
|
234
235
|
@external_access_integrations.setter
|
|
235
|
-
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
236
|
+
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
236
237
|
pulumi.set(self, "external_access_integrations", value)
|
|
237
238
|
|
|
238
239
|
@property
|
|
@@ -249,86 +250,86 @@ class ProcedurePythonArgs:
|
|
|
249
250
|
|
|
250
251
|
@property
|
|
251
252
|
@pulumi.getter(name="isSecure")
|
|
252
|
-
def is_secure(self) -> Optional[pulumi.Input[str]]:
|
|
253
|
+
def is_secure(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
253
254
|
"""
|
|
254
255
|
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.
|
|
255
256
|
"""
|
|
256
257
|
return pulumi.get(self, "is_secure")
|
|
257
258
|
|
|
258
259
|
@is_secure.setter
|
|
259
|
-
def is_secure(self, value: Optional[pulumi.Input[str]]):
|
|
260
|
+
def is_secure(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
260
261
|
pulumi.set(self, "is_secure", value)
|
|
261
262
|
|
|
262
263
|
@property
|
|
263
264
|
@pulumi.getter(name="logLevel")
|
|
264
|
-
def log_level(self) -> Optional[pulumi.Input[str]]:
|
|
265
|
+
def log_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
265
266
|
"""
|
|
266
267
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
267
268
|
"""
|
|
268
269
|
return pulumi.get(self, "log_level")
|
|
269
270
|
|
|
270
271
|
@log_level.setter
|
|
271
|
-
def log_level(self, value: Optional[pulumi.Input[str]]):
|
|
272
|
+
def log_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
272
273
|
pulumi.set(self, "log_level", value)
|
|
273
274
|
|
|
274
275
|
@property
|
|
275
276
|
@pulumi.getter(name="metricLevel")
|
|
276
|
-
def metric_level(self) -> Optional[pulumi.Input[str]]:
|
|
277
|
+
def metric_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
277
278
|
"""
|
|
278
279
|
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).
|
|
279
280
|
"""
|
|
280
281
|
return pulumi.get(self, "metric_level")
|
|
281
282
|
|
|
282
283
|
@metric_level.setter
|
|
283
|
-
def metric_level(self, value: Optional[pulumi.Input[str]]):
|
|
284
|
+
def metric_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
284
285
|
pulumi.set(self, "metric_level", value)
|
|
285
286
|
|
|
286
287
|
@property
|
|
287
288
|
@pulumi.getter
|
|
288
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
289
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
289
290
|
"""
|
|
290
291
|
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: `|`, `.`, `"`.
|
|
291
292
|
"""
|
|
292
293
|
return pulumi.get(self, "name")
|
|
293
294
|
|
|
294
295
|
@name.setter
|
|
295
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
296
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
296
297
|
pulumi.set(self, "name", value)
|
|
297
298
|
|
|
298
299
|
@property
|
|
299
300
|
@pulumi.getter(name="nullInputBehavior")
|
|
300
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
|
|
301
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
301
302
|
"""
|
|
302
303
|
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`.
|
|
303
304
|
"""
|
|
304
305
|
return pulumi.get(self, "null_input_behavior")
|
|
305
306
|
|
|
306
307
|
@null_input_behavior.setter
|
|
307
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
|
|
308
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
308
309
|
pulumi.set(self, "null_input_behavior", value)
|
|
309
310
|
|
|
310
311
|
@property
|
|
311
312
|
@pulumi.getter
|
|
312
|
-
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
313
|
+
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
313
314
|
"""
|
|
314
315
|
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).
|
|
315
316
|
"""
|
|
316
317
|
return pulumi.get(self, "packages")
|
|
317
318
|
|
|
318
319
|
@packages.setter
|
|
319
|
-
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
320
|
+
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
320
321
|
pulumi.set(self, "packages", value)
|
|
321
322
|
|
|
322
323
|
@property
|
|
323
324
|
@pulumi.getter(name="procedureDefinition")
|
|
324
|
-
def procedure_definition(self) -> Optional[pulumi.Input[str]]:
|
|
325
|
+
def procedure_definition(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
325
326
|
"""
|
|
326
327
|
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 Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
327
328
|
"""
|
|
328
329
|
return pulumi.get(self, "procedure_definition")
|
|
329
330
|
|
|
330
331
|
@procedure_definition.setter
|
|
331
|
-
def procedure_definition(self, value: Optional[pulumi.Input[str]]):
|
|
332
|
+
def procedure_definition(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
332
333
|
pulumi.set(self, "procedure_definition", value)
|
|
333
334
|
|
|
334
335
|
@property
|
|
@@ -345,14 +346,14 @@ class ProcedurePythonArgs:
|
|
|
345
346
|
|
|
346
347
|
@property
|
|
347
348
|
@pulumi.getter(name="traceLevel")
|
|
348
|
-
def trace_level(self) -> Optional[pulumi.Input[str]]:
|
|
349
|
+
def trace_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
349
350
|
"""
|
|
350
351
|
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).
|
|
351
352
|
"""
|
|
352
353
|
return pulumi.get(self, "trace_level")
|
|
353
354
|
|
|
354
355
|
@trace_level.setter
|
|
355
|
-
def trace_level(self, value: Optional[pulumi.Input[str]]):
|
|
356
|
+
def trace_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
356
357
|
pulumi.set(self, "trace_level", value)
|
|
357
358
|
|
|
358
359
|
|
|
@@ -360,57 +361,57 @@ class ProcedurePythonArgs:
|
|
|
360
361
|
class _ProcedurePythonState:
|
|
361
362
|
def __init__(__self__, *,
|
|
362
363
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedurePythonArgumentArgs']]]] = None,
|
|
363
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
364
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
365
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
366
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
367
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
368
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
369
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
364
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
365
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
366
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
367
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
368
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
369
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
370
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
370
371
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedurePythonImportArgs']]]] = None,
|
|
371
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
372
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
373
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
374
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
375
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
376
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
372
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
373
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
374
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
375
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
376
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
377
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
377
378
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedurePythonParameterArgs']]]] = None,
|
|
378
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
379
|
-
procedure_language: Optional[pulumi.Input[str]] = None,
|
|
380
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
381
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
382
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
379
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
380
|
+
procedure_language: Optional[pulumi.Input[builtins.str]] = None,
|
|
381
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
382
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
383
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
383
384
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedurePythonSecretArgs']]]] = None,
|
|
384
385
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedurePythonShowOutputArgs']]]] = None,
|
|
385
|
-
snowpark_package: Optional[pulumi.Input[str]] = None,
|
|
386
|
-
trace_level: Optional[pulumi.Input[str]] = None):
|
|
386
|
+
snowpark_package: Optional[pulumi.Input[builtins.str]] = None,
|
|
387
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None):
|
|
387
388
|
"""
|
|
388
389
|
Input properties used for looking up and filtering ProcedurePython resources.
|
|
389
390
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedurePythonArgumentArgs']]] 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.
|
|
390
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
391
|
-
: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: `|`, `.`, `"`.
|
|
392
|
-
: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).
|
|
393
|
-
: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`.
|
|
394
|
-
: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.
|
|
395
|
-
: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).
|
|
396
|
-
:param pulumi.Input[str] handler: Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
391
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the procedure.
|
|
392
|
+
: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: `|`, `.`, `"`.
|
|
393
|
+
: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).
|
|
394
|
+
: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`.
|
|
395
|
+
: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.
|
|
396
|
+
: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).
|
|
397
|
+
:param pulumi.Input[builtins.str] handler: Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
397
398
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedurePythonImportArgs']]] 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 your stored procedure’s code will be on a stage, you must also include a path to the module file your code is in. 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.
|
|
398
|
-
: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.
|
|
399
|
-
: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).
|
|
400
|
-
: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).
|
|
401
|
-
: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: `|`, `.`, `"`.
|
|
402
|
-
: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`.
|
|
403
|
-
: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).
|
|
399
|
+
: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.
|
|
400
|
+
: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).
|
|
401
|
+
: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).
|
|
402
|
+
: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: `|`, `.`, `"`.
|
|
403
|
+
: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`.
|
|
404
|
+
: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).
|
|
404
405
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedurePythonParameterArgs']]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
405
|
-
: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 Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
406
|
-
:param pulumi.Input[str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
407
|
-
: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-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). 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 ()`).
|
|
408
|
-
:param pulumi.Input[str] runtime_version: The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
409
|
-
: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: `|`, `.`, `"`.
|
|
406
|
+
: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 Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
407
|
+
:param pulumi.Input[builtins.str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
408
|
+
: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-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). 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 ()`).
|
|
409
|
+
:param pulumi.Input[builtins.str] runtime_version: The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
410
|
+
: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: `|`, `.`, `"`.
|
|
410
411
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedurePythonSecretArgs']]] 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.
|
|
411
412
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedurePythonShowOutputArgs']]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
412
|
-
: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).
|
|
413
|
-
: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).
|
|
413
|
+
: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).
|
|
414
|
+
: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).
|
|
414
415
|
"""
|
|
415
416
|
if arguments is not None:
|
|
416
417
|
pulumi.set(__self__, "arguments", arguments)
|
|
@@ -477,86 +478,86 @@ class _ProcedurePythonState:
|
|
|
477
478
|
|
|
478
479
|
@property
|
|
479
480
|
@pulumi.getter
|
|
480
|
-
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
481
|
+
def comment(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
481
482
|
"""
|
|
482
483
|
Specifies a comment for the procedure.
|
|
483
484
|
"""
|
|
484
485
|
return pulumi.get(self, "comment")
|
|
485
486
|
|
|
486
487
|
@comment.setter
|
|
487
|
-
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
488
|
+
def comment(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
488
489
|
pulumi.set(self, "comment", value)
|
|
489
490
|
|
|
490
491
|
@property
|
|
491
492
|
@pulumi.getter
|
|
492
|
-
def database(self) -> Optional[pulumi.Input[str]]:
|
|
493
|
+
def database(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
493
494
|
"""
|
|
494
495
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
495
496
|
"""
|
|
496
497
|
return pulumi.get(self, "database")
|
|
497
498
|
|
|
498
499
|
@database.setter
|
|
499
|
-
def database(self, value: Optional[pulumi.Input[str]]):
|
|
500
|
+
def database(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
500
501
|
pulumi.set(self, "database", value)
|
|
501
502
|
|
|
502
503
|
@property
|
|
503
504
|
@pulumi.getter(name="enableConsoleOutput")
|
|
504
|
-
def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
|
|
505
|
+
def enable_console_output(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
505
506
|
"""
|
|
506
507
|
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).
|
|
507
508
|
"""
|
|
508
509
|
return pulumi.get(self, "enable_console_output")
|
|
509
510
|
|
|
510
511
|
@enable_console_output.setter
|
|
511
|
-
def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
|
|
512
|
+
def enable_console_output(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
512
513
|
pulumi.set(self, "enable_console_output", value)
|
|
513
514
|
|
|
514
515
|
@property
|
|
515
516
|
@pulumi.getter(name="executeAs")
|
|
516
|
-
def execute_as(self) -> Optional[pulumi.Input[str]]:
|
|
517
|
+
def execute_as(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
517
518
|
"""
|
|
518
519
|
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`.
|
|
519
520
|
"""
|
|
520
521
|
return pulumi.get(self, "execute_as")
|
|
521
522
|
|
|
522
523
|
@execute_as.setter
|
|
523
|
-
def execute_as(self, value: Optional[pulumi.Input[str]]):
|
|
524
|
+
def execute_as(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
524
525
|
pulumi.set(self, "execute_as", value)
|
|
525
526
|
|
|
526
527
|
@property
|
|
527
528
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
528
|
-
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
529
|
+
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
529
530
|
"""
|
|
530
531
|
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.
|
|
531
532
|
"""
|
|
532
533
|
return pulumi.get(self, "external_access_integrations")
|
|
533
534
|
|
|
534
535
|
@external_access_integrations.setter
|
|
535
|
-
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
536
|
+
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
536
537
|
pulumi.set(self, "external_access_integrations", value)
|
|
537
538
|
|
|
538
539
|
@property
|
|
539
540
|
@pulumi.getter(name="fullyQualifiedName")
|
|
540
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
541
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
541
542
|
"""
|
|
542
543
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
543
544
|
"""
|
|
544
545
|
return pulumi.get(self, "fully_qualified_name")
|
|
545
546
|
|
|
546
547
|
@fully_qualified_name.setter
|
|
547
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
548
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
548
549
|
pulumi.set(self, "fully_qualified_name", value)
|
|
549
550
|
|
|
550
551
|
@property
|
|
551
552
|
@pulumi.getter
|
|
552
|
-
def handler(self) -> Optional[pulumi.Input[str]]:
|
|
553
|
+
def handler(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
553
554
|
"""
|
|
554
555
|
Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
555
556
|
"""
|
|
556
557
|
return pulumi.get(self, "handler")
|
|
557
558
|
|
|
558
559
|
@handler.setter
|
|
559
|
-
def handler(self, value: Optional[pulumi.Input[str]]):
|
|
560
|
+
def handler(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
560
561
|
pulumi.set(self, "handler", value)
|
|
561
562
|
|
|
562
563
|
@property
|
|
@@ -573,74 +574,74 @@ class _ProcedurePythonState:
|
|
|
573
574
|
|
|
574
575
|
@property
|
|
575
576
|
@pulumi.getter(name="isSecure")
|
|
576
|
-
def is_secure(self) -> Optional[pulumi.Input[str]]:
|
|
577
|
+
def is_secure(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
577
578
|
"""
|
|
578
579
|
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.
|
|
579
580
|
"""
|
|
580
581
|
return pulumi.get(self, "is_secure")
|
|
581
582
|
|
|
582
583
|
@is_secure.setter
|
|
583
|
-
def is_secure(self, value: Optional[pulumi.Input[str]]):
|
|
584
|
+
def is_secure(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
584
585
|
pulumi.set(self, "is_secure", value)
|
|
585
586
|
|
|
586
587
|
@property
|
|
587
588
|
@pulumi.getter(name="logLevel")
|
|
588
|
-
def log_level(self) -> Optional[pulumi.Input[str]]:
|
|
589
|
+
def log_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
589
590
|
"""
|
|
590
591
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
591
592
|
"""
|
|
592
593
|
return pulumi.get(self, "log_level")
|
|
593
594
|
|
|
594
595
|
@log_level.setter
|
|
595
|
-
def log_level(self, value: Optional[pulumi.Input[str]]):
|
|
596
|
+
def log_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
596
597
|
pulumi.set(self, "log_level", value)
|
|
597
598
|
|
|
598
599
|
@property
|
|
599
600
|
@pulumi.getter(name="metricLevel")
|
|
600
|
-
def metric_level(self) -> Optional[pulumi.Input[str]]:
|
|
601
|
+
def metric_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
601
602
|
"""
|
|
602
603
|
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).
|
|
603
604
|
"""
|
|
604
605
|
return pulumi.get(self, "metric_level")
|
|
605
606
|
|
|
606
607
|
@metric_level.setter
|
|
607
|
-
def metric_level(self, value: Optional[pulumi.Input[str]]):
|
|
608
|
+
def metric_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
608
609
|
pulumi.set(self, "metric_level", value)
|
|
609
610
|
|
|
610
611
|
@property
|
|
611
612
|
@pulumi.getter
|
|
612
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
613
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
613
614
|
"""
|
|
614
615
|
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: `|`, `.`, `"`.
|
|
615
616
|
"""
|
|
616
617
|
return pulumi.get(self, "name")
|
|
617
618
|
|
|
618
619
|
@name.setter
|
|
619
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
620
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
620
621
|
pulumi.set(self, "name", value)
|
|
621
622
|
|
|
622
623
|
@property
|
|
623
624
|
@pulumi.getter(name="nullInputBehavior")
|
|
624
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
|
|
625
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
625
626
|
"""
|
|
626
627
|
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`.
|
|
627
628
|
"""
|
|
628
629
|
return pulumi.get(self, "null_input_behavior")
|
|
629
630
|
|
|
630
631
|
@null_input_behavior.setter
|
|
631
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
|
|
632
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
632
633
|
pulumi.set(self, "null_input_behavior", value)
|
|
633
634
|
|
|
634
635
|
@property
|
|
635
636
|
@pulumi.getter
|
|
636
|
-
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
637
|
+
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
637
638
|
"""
|
|
638
639
|
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).
|
|
639
640
|
"""
|
|
640
641
|
return pulumi.get(self, "packages")
|
|
641
642
|
|
|
642
643
|
@packages.setter
|
|
643
|
-
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
644
|
+
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
644
645
|
pulumi.set(self, "packages", value)
|
|
645
646
|
|
|
646
647
|
@property
|
|
@@ -657,62 +658,62 @@ class _ProcedurePythonState:
|
|
|
657
658
|
|
|
658
659
|
@property
|
|
659
660
|
@pulumi.getter(name="procedureDefinition")
|
|
660
|
-
def procedure_definition(self) -> Optional[pulumi.Input[str]]:
|
|
661
|
+
def procedure_definition(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
661
662
|
"""
|
|
662
663
|
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 Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
663
664
|
"""
|
|
664
665
|
return pulumi.get(self, "procedure_definition")
|
|
665
666
|
|
|
666
667
|
@procedure_definition.setter
|
|
667
|
-
def procedure_definition(self, value: Optional[pulumi.Input[str]]):
|
|
668
|
+
def procedure_definition(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
668
669
|
pulumi.set(self, "procedure_definition", value)
|
|
669
670
|
|
|
670
671
|
@property
|
|
671
672
|
@pulumi.getter(name="procedureLanguage")
|
|
672
|
-
def procedure_language(self) -> Optional[pulumi.Input[str]]:
|
|
673
|
+
def procedure_language(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
673
674
|
"""
|
|
674
675
|
Specifies language for the procedure. Used to detect external changes.
|
|
675
676
|
"""
|
|
676
677
|
return pulumi.get(self, "procedure_language")
|
|
677
678
|
|
|
678
679
|
@procedure_language.setter
|
|
679
|
-
def procedure_language(self, value: Optional[pulumi.Input[str]]):
|
|
680
|
+
def procedure_language(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
680
681
|
pulumi.set(self, "procedure_language", value)
|
|
681
682
|
|
|
682
683
|
@property
|
|
683
684
|
@pulumi.getter(name="returnType")
|
|
684
|
-
def return_type(self) -> Optional[pulumi.Input[str]]:
|
|
685
|
+
def return_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
685
686
|
"""
|
|
686
687
|
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-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). 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 ()`).
|
|
687
688
|
"""
|
|
688
689
|
return pulumi.get(self, "return_type")
|
|
689
690
|
|
|
690
691
|
@return_type.setter
|
|
691
|
-
def return_type(self, value: Optional[pulumi.Input[str]]):
|
|
692
|
+
def return_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
692
693
|
pulumi.set(self, "return_type", value)
|
|
693
694
|
|
|
694
695
|
@property
|
|
695
696
|
@pulumi.getter(name="runtimeVersion")
|
|
696
|
-
def runtime_version(self) -> Optional[pulumi.Input[str]]:
|
|
697
|
+
def runtime_version(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
697
698
|
"""
|
|
698
699
|
The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
699
700
|
"""
|
|
700
701
|
return pulumi.get(self, "runtime_version")
|
|
701
702
|
|
|
702
703
|
@runtime_version.setter
|
|
703
|
-
def runtime_version(self, value: Optional[pulumi.Input[str]]):
|
|
704
|
+
def runtime_version(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
704
705
|
pulumi.set(self, "runtime_version", value)
|
|
705
706
|
|
|
706
707
|
@property
|
|
707
708
|
@pulumi.getter
|
|
708
|
-
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
709
|
+
def schema(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
709
710
|
"""
|
|
710
711
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
711
712
|
"""
|
|
712
713
|
return pulumi.get(self, "schema")
|
|
713
714
|
|
|
714
715
|
@schema.setter
|
|
715
|
-
def schema(self, value: Optional[pulumi.Input[str]]):
|
|
716
|
+
def schema(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
716
717
|
pulumi.set(self, "schema", value)
|
|
717
718
|
|
|
718
719
|
@property
|
|
@@ -741,26 +742,26 @@ class _ProcedurePythonState:
|
|
|
741
742
|
|
|
742
743
|
@property
|
|
743
744
|
@pulumi.getter(name="snowparkPackage")
|
|
744
|
-
def snowpark_package(self) -> Optional[pulumi.Input[str]]:
|
|
745
|
+
def snowpark_package(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
745
746
|
"""
|
|
746
747
|
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).
|
|
747
748
|
"""
|
|
748
749
|
return pulumi.get(self, "snowpark_package")
|
|
749
750
|
|
|
750
751
|
@snowpark_package.setter
|
|
751
|
-
def snowpark_package(self, value: Optional[pulumi.Input[str]]):
|
|
752
|
+
def snowpark_package(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
752
753
|
pulumi.set(self, "snowpark_package", value)
|
|
753
754
|
|
|
754
755
|
@property
|
|
755
756
|
@pulumi.getter(name="traceLevel")
|
|
756
|
-
def trace_level(self) -> Optional[pulumi.Input[str]]:
|
|
757
|
+
def trace_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
757
758
|
"""
|
|
758
759
|
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).
|
|
759
760
|
"""
|
|
760
761
|
return pulumi.get(self, "trace_level")
|
|
761
762
|
|
|
762
763
|
@trace_level.setter
|
|
763
|
-
def trace_level(self, value: Optional[pulumi.Input[str]]):
|
|
764
|
+
def trace_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
764
765
|
pulumi.set(self, "trace_level", value)
|
|
765
766
|
|
|
766
767
|
|
|
@@ -770,26 +771,26 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
770
771
|
resource_name: str,
|
|
771
772
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
772
773
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonArgumentArgs', 'ProcedurePythonArgumentArgsDict']]]]] = None,
|
|
773
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
774
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
775
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
776
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
777
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
778
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
774
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
775
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
776
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
777
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
778
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
779
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
779
780
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonImportArgs', 'ProcedurePythonImportArgsDict']]]]] = None,
|
|
780
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
781
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
782
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
783
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
784
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
785
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
786
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
787
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
788
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
789
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
781
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
782
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
783
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
784
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
785
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
786
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
787
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
788
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
789
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
790
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
790
791
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonSecretArgs', 'ProcedurePythonSecretArgsDict']]]]] = None,
|
|
791
|
-
snowpark_package: Optional[pulumi.Input[str]] = None,
|
|
792
|
-
trace_level: Optional[pulumi.Input[str]] = None,
|
|
792
|
+
snowpark_package: Optional[pulumi.Input[builtins.str]] = None,
|
|
793
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
793
794
|
__props__=None):
|
|
794
795
|
"""
|
|
795
796
|
## Import
|
|
@@ -805,26 +806,26 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
805
806
|
:param str resource_name: The name of the resource.
|
|
806
807
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
807
808
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonArgumentArgs', 'ProcedurePythonArgumentArgsDict']]]] 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.
|
|
808
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
809
|
-
: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: `|`, `.`, `"`.
|
|
810
|
-
: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).
|
|
811
|
-
: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`.
|
|
812
|
-
: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.
|
|
813
|
-
:param pulumi.Input[str] handler: Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
809
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the procedure.
|
|
810
|
+
: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: `|`, `.`, `"`.
|
|
811
|
+
: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).
|
|
812
|
+
: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`.
|
|
813
|
+
: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.
|
|
814
|
+
:param pulumi.Input[builtins.str] handler: Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
814
815
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonImportArgs', 'ProcedurePythonImportArgsDict']]]] 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 your stored procedure’s code will be on a stage, you must also include a path to the module file your code is in. 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.
|
|
815
|
-
: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.
|
|
816
|
-
: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).
|
|
817
|
-
: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).
|
|
818
|
-
: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: `|`, `.`, `"`.
|
|
819
|
-
: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`.
|
|
820
|
-
: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).
|
|
821
|
-
: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 Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
822
|
-
: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-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). 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 ()`).
|
|
823
|
-
:param pulumi.Input[str] runtime_version: The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
824
|
-
: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: `|`, `.`, `"`.
|
|
816
|
+
: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.
|
|
817
|
+
: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).
|
|
818
|
+
: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).
|
|
819
|
+
: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: `|`, `.`, `"`.
|
|
820
|
+
: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`.
|
|
821
|
+
: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).
|
|
822
|
+
: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 Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
823
|
+
: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-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). 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 ()`).
|
|
824
|
+
:param pulumi.Input[builtins.str] runtime_version: The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
825
|
+
: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: `|`, `.`, `"`.
|
|
825
826
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonSecretArgs', 'ProcedurePythonSecretArgsDict']]]] 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.
|
|
826
|
-
: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).
|
|
827
|
-
: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).
|
|
827
|
+
: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).
|
|
828
|
+
: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).
|
|
828
829
|
"""
|
|
829
830
|
...
|
|
830
831
|
@overload
|
|
@@ -859,26 +860,26 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
859
860
|
resource_name: str,
|
|
860
861
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
861
862
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonArgumentArgs', 'ProcedurePythonArgumentArgsDict']]]]] = None,
|
|
862
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
863
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
864
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
865
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
866
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
867
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
863
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
864
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
865
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
866
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
867
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
868
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
868
869
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonImportArgs', 'ProcedurePythonImportArgsDict']]]]] = None,
|
|
869
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
870
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
871
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
872
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
873
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
874
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
875
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
876
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
877
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
878
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
870
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
871
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
872
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
873
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
874
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
875
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
876
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
877
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
878
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
879
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
879
880
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonSecretArgs', 'ProcedurePythonSecretArgsDict']]]]] = None,
|
|
880
|
-
snowpark_package: Optional[pulumi.Input[str]] = None,
|
|
881
|
-
trace_level: Optional[pulumi.Input[str]] = None,
|
|
881
|
+
snowpark_package: Optional[pulumi.Input[builtins.str]] = None,
|
|
882
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
882
883
|
__props__=None):
|
|
883
884
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
884
885
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -936,30 +937,30 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
936
937
|
id: pulumi.Input[str],
|
|
937
938
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
938
939
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonArgumentArgs', 'ProcedurePythonArgumentArgsDict']]]]] = None,
|
|
939
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
940
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
941
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
942
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
943
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
944
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
945
|
-
handler: Optional[pulumi.Input[str]] = None,
|
|
940
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
941
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
942
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
943
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
944
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
945
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
946
|
+
handler: Optional[pulumi.Input[builtins.str]] = None,
|
|
946
947
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonImportArgs', 'ProcedurePythonImportArgsDict']]]]] = None,
|
|
947
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
948
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
949
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
950
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
951
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
952
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
948
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
949
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
950
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
951
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
952
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
953
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
953
954
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonParameterArgs', 'ProcedurePythonParameterArgsDict']]]]] = None,
|
|
954
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
955
|
-
procedure_language: Optional[pulumi.Input[str]] = None,
|
|
956
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
957
|
-
runtime_version: Optional[pulumi.Input[str]] = None,
|
|
958
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
955
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
956
|
+
procedure_language: Optional[pulumi.Input[builtins.str]] = None,
|
|
957
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
958
|
+
runtime_version: Optional[pulumi.Input[builtins.str]] = None,
|
|
959
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
959
960
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonSecretArgs', 'ProcedurePythonSecretArgsDict']]]]] = None,
|
|
960
961
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonShowOutputArgs', 'ProcedurePythonShowOutputArgsDict']]]]] = None,
|
|
961
|
-
snowpark_package: Optional[pulumi.Input[str]] = None,
|
|
962
|
-
trace_level: Optional[pulumi.Input[str]] = None) -> 'ProcedurePython':
|
|
962
|
+
snowpark_package: Optional[pulumi.Input[builtins.str]] = None,
|
|
963
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None) -> 'ProcedurePython':
|
|
963
964
|
"""
|
|
964
965
|
Get an existing ProcedurePython resource's state with the given name, id, and optional extra
|
|
965
966
|
properties used to qualify the lookup.
|
|
@@ -968,30 +969,30 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
968
969
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
969
970
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
970
971
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonArgumentArgs', 'ProcedurePythonArgumentArgsDict']]]] 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.
|
|
971
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
972
|
-
: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: `|`, `.`, `"`.
|
|
973
|
-
: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).
|
|
974
|
-
: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`.
|
|
975
|
-
: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.
|
|
976
|
-
: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).
|
|
977
|
-
:param pulumi.Input[str] handler: Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
972
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the procedure.
|
|
973
|
+
: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: `|`, `.`, `"`.
|
|
974
|
+
: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).
|
|
975
|
+
: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`.
|
|
976
|
+
: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.
|
|
977
|
+
: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).
|
|
978
|
+
:param pulumi.Input[builtins.str] handler: Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
978
979
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonImportArgs', 'ProcedurePythonImportArgsDict']]]] 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 your stored procedure’s code will be on a stage, you must also include a path to the module file your code is in. 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.
|
|
979
|
-
: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.
|
|
980
|
-
: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).
|
|
981
|
-
: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).
|
|
982
|
-
: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: `|`, `.`, `"`.
|
|
983
|
-
: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`.
|
|
984
|
-
: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).
|
|
980
|
+
: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.
|
|
981
|
+
: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).
|
|
982
|
+
: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).
|
|
983
|
+
: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: `|`, `.`, `"`.
|
|
984
|
+
: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`.
|
|
985
|
+
: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).
|
|
985
986
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonParameterArgs', 'ProcedurePythonParameterArgsDict']]]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
986
|
-
: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 Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
987
|
-
:param pulumi.Input[str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
988
|
-
: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-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). 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 ()`).
|
|
989
|
-
:param pulumi.Input[str] runtime_version: The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
990
|
-
: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: `|`, `.`, `"`.
|
|
987
|
+
: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 Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
988
|
+
:param pulumi.Input[builtins.str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
989
|
+
: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-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). 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 ()`).
|
|
990
|
+
:param pulumi.Input[builtins.str] runtime_version: The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
991
|
+
: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: `|`, `.`, `"`.
|
|
991
992
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonSecretArgs', 'ProcedurePythonSecretArgsDict']]]] 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.
|
|
992
993
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedurePythonShowOutputArgs', 'ProcedurePythonShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
993
|
-
: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).
|
|
994
|
-
: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).
|
|
994
|
+
: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).
|
|
995
|
+
: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).
|
|
995
996
|
"""
|
|
996
997
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
997
998
|
|
|
@@ -1034,7 +1035,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1034
1035
|
|
|
1035
1036
|
@property
|
|
1036
1037
|
@pulumi.getter
|
|
1037
|
-
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
1038
|
+
def comment(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1038
1039
|
"""
|
|
1039
1040
|
Specifies a comment for the procedure.
|
|
1040
1041
|
"""
|
|
@@ -1042,7 +1043,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1042
1043
|
|
|
1043
1044
|
@property
|
|
1044
1045
|
@pulumi.getter
|
|
1045
|
-
def database(self) -> pulumi.Output[str]:
|
|
1046
|
+
def database(self) -> pulumi.Output[builtins.str]:
|
|
1046
1047
|
"""
|
|
1047
1048
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1048
1049
|
"""
|
|
@@ -1050,7 +1051,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1050
1051
|
|
|
1051
1052
|
@property
|
|
1052
1053
|
@pulumi.getter(name="enableConsoleOutput")
|
|
1053
|
-
def enable_console_output(self) -> pulumi.Output[bool]:
|
|
1054
|
+
def enable_console_output(self) -> pulumi.Output[builtins.bool]:
|
|
1054
1055
|
"""
|
|
1055
1056
|
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).
|
|
1056
1057
|
"""
|
|
@@ -1058,7 +1059,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1058
1059
|
|
|
1059
1060
|
@property
|
|
1060
1061
|
@pulumi.getter(name="executeAs")
|
|
1061
|
-
def execute_as(self) -> pulumi.Output[Optional[str]]:
|
|
1062
|
+
def execute_as(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1062
1063
|
"""
|
|
1063
1064
|
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`.
|
|
1064
1065
|
"""
|
|
@@ -1066,7 +1067,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1066
1067
|
|
|
1067
1068
|
@property
|
|
1068
1069
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
1069
|
-
def external_access_integrations(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1070
|
+
def external_access_integrations(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
|
1070
1071
|
"""
|
|
1071
1072
|
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.
|
|
1072
1073
|
"""
|
|
@@ -1074,7 +1075,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1074
1075
|
|
|
1075
1076
|
@property
|
|
1076
1077
|
@pulumi.getter(name="fullyQualifiedName")
|
|
1077
|
-
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
1078
|
+
def fully_qualified_name(self) -> pulumi.Output[builtins.str]:
|
|
1078
1079
|
"""
|
|
1079
1080
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
1080
1081
|
"""
|
|
@@ -1082,7 +1083,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1082
1083
|
|
|
1083
1084
|
@property
|
|
1084
1085
|
@pulumi.getter
|
|
1085
|
-
def handler(self) -> pulumi.Output[str]:
|
|
1086
|
+
def handler(self) -> pulumi.Output[builtins.str]:
|
|
1086
1087
|
"""
|
|
1087
1088
|
Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
1088
1089
|
"""
|
|
@@ -1098,7 +1099,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1098
1099
|
|
|
1099
1100
|
@property
|
|
1100
1101
|
@pulumi.getter(name="isSecure")
|
|
1101
|
-
def is_secure(self) -> pulumi.Output[Optional[str]]:
|
|
1102
|
+
def is_secure(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1102
1103
|
"""
|
|
1103
1104
|
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.
|
|
1104
1105
|
"""
|
|
@@ -1106,7 +1107,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1106
1107
|
|
|
1107
1108
|
@property
|
|
1108
1109
|
@pulumi.getter(name="logLevel")
|
|
1109
|
-
def log_level(self) -> pulumi.Output[str]:
|
|
1110
|
+
def log_level(self) -> pulumi.Output[builtins.str]:
|
|
1110
1111
|
"""
|
|
1111
1112
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
1112
1113
|
"""
|
|
@@ -1114,7 +1115,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1114
1115
|
|
|
1115
1116
|
@property
|
|
1116
1117
|
@pulumi.getter(name="metricLevel")
|
|
1117
|
-
def metric_level(self) -> pulumi.Output[str]:
|
|
1118
|
+
def metric_level(self) -> pulumi.Output[builtins.str]:
|
|
1118
1119
|
"""
|
|
1119
1120
|
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).
|
|
1120
1121
|
"""
|
|
@@ -1122,7 +1123,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1122
1123
|
|
|
1123
1124
|
@property
|
|
1124
1125
|
@pulumi.getter
|
|
1125
|
-
def name(self) -> pulumi.Output[str]:
|
|
1126
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
|
1126
1127
|
"""
|
|
1127
1128
|
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: `|`, `.`, `"`.
|
|
1128
1129
|
"""
|
|
@@ -1130,7 +1131,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1130
1131
|
|
|
1131
1132
|
@property
|
|
1132
1133
|
@pulumi.getter(name="nullInputBehavior")
|
|
1133
|
-
def null_input_behavior(self) -> pulumi.Output[Optional[str]]:
|
|
1134
|
+
def null_input_behavior(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1134
1135
|
"""
|
|
1135
1136
|
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`.
|
|
1136
1137
|
"""
|
|
@@ -1138,7 +1139,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1138
1139
|
|
|
1139
1140
|
@property
|
|
1140
1141
|
@pulumi.getter
|
|
1141
|
-
def packages(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1142
|
+
def packages(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
|
1142
1143
|
"""
|
|
1143
1144
|
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).
|
|
1144
1145
|
"""
|
|
@@ -1154,7 +1155,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1154
1155
|
|
|
1155
1156
|
@property
|
|
1156
1157
|
@pulumi.getter(name="procedureDefinition")
|
|
1157
|
-
def procedure_definition(self) -> pulumi.Output[Optional[str]]:
|
|
1158
|
+
def procedure_definition(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
1158
1159
|
"""
|
|
1159
1160
|
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 Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
1160
1161
|
"""
|
|
@@ -1162,7 +1163,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1162
1163
|
|
|
1163
1164
|
@property
|
|
1164
1165
|
@pulumi.getter(name="procedureLanguage")
|
|
1165
|
-
def procedure_language(self) -> pulumi.Output[str]:
|
|
1166
|
+
def procedure_language(self) -> pulumi.Output[builtins.str]:
|
|
1166
1167
|
"""
|
|
1167
1168
|
Specifies language for the procedure. Used to detect external changes.
|
|
1168
1169
|
"""
|
|
@@ -1170,7 +1171,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1170
1171
|
|
|
1171
1172
|
@property
|
|
1172
1173
|
@pulumi.getter(name="returnType")
|
|
1173
|
-
def return_type(self) -> pulumi.Output[str]:
|
|
1174
|
+
def return_type(self) -> pulumi.Output[builtins.str]:
|
|
1174
1175
|
"""
|
|
1175
1176
|
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-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). 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 ()`).
|
|
1176
1177
|
"""
|
|
@@ -1178,7 +1179,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1178
1179
|
|
|
1179
1180
|
@property
|
|
1180
1181
|
@pulumi.getter(name="runtimeVersion")
|
|
1181
|
-
def runtime_version(self) -> pulumi.Output[str]:
|
|
1182
|
+
def runtime_version(self) -> pulumi.Output[builtins.str]:
|
|
1182
1183
|
"""
|
|
1183
1184
|
The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
1184
1185
|
"""
|
|
@@ -1186,7 +1187,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1186
1187
|
|
|
1187
1188
|
@property
|
|
1188
1189
|
@pulumi.getter
|
|
1189
|
-
def schema(self) -> pulumi.Output[str]:
|
|
1190
|
+
def schema(self) -> pulumi.Output[builtins.str]:
|
|
1190
1191
|
"""
|
|
1191
1192
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1192
1193
|
"""
|
|
@@ -1210,7 +1211,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1210
1211
|
|
|
1211
1212
|
@property
|
|
1212
1213
|
@pulumi.getter(name="snowparkPackage")
|
|
1213
|
-
def snowpark_package(self) -> pulumi.Output[str]:
|
|
1214
|
+
def snowpark_package(self) -> pulumi.Output[builtins.str]:
|
|
1214
1215
|
"""
|
|
1215
1216
|
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).
|
|
1216
1217
|
"""
|
|
@@ -1218,7 +1219,7 @@ class ProcedurePython(pulumi.CustomResource):
|
|
|
1218
1219
|
|
|
1219
1220
|
@property
|
|
1220
1221
|
@pulumi.getter(name="traceLevel")
|
|
1221
|
-
def trace_level(self) -> pulumi.Output[str]:
|
|
1222
|
+
def trace_level(self) -> pulumi.Output[builtins.str]:
|
|
1222
1223
|
"""
|
|
1223
1224
|
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).
|
|
1224
1225
|
"""
|