pulumi-snowflake 2.2.0a1751946295__py3-none-any.whl → 2.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/__init__.py +20 -1
- pulumi_snowflake/_inputs.py +17236 -16797
- pulumi_snowflake/account.py +252 -253
- pulumi_snowflake/account_authentication_policy_attachment.py +18 -19
- pulumi_snowflake/account_parameter.py +35 -36
- pulumi_snowflake/account_password_policy_attachment.py +18 -19
- pulumi_snowflake/account_role.py +42 -43
- pulumi_snowflake/alert.py +149 -150
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +197 -198
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +180 -181
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +193 -194
- pulumi_snowflake/api_integration.py +251 -252
- pulumi_snowflake/authentication_policy.py +167 -168
- pulumi_snowflake/compute_pool.py +167 -168
- pulumi_snowflake/config/__init__.py +1 -1
- pulumi_snowflake/config/__init__.pyi +1 -2
- pulumi_snowflake/config/outputs.py +21 -22
- pulumi_snowflake/config/vars.py +43 -44
- pulumi_snowflake/cortex_search_service.py +191 -192
- pulumi_snowflake/current_account.py +2096 -2097
- pulumi_snowflake/current_organization_account.py +5863 -0
- pulumi_snowflake/database.py +353 -354
- pulumi_snowflake/database_role.py +63 -64
- pulumi_snowflake/dynamic_table.py +274 -275
- pulumi_snowflake/email_notification_integration.py +70 -71
- pulumi_snowflake/execute.py +61 -62
- pulumi_snowflake/external_function.py +280 -281
- pulumi_snowflake/external_oauth_integration.py +288 -289
- pulumi_snowflake/external_table.py +246 -247
- pulumi_snowflake/external_volume.py +68 -69
- pulumi_snowflake/failover_group.py +135 -136
- pulumi_snowflake/file_format.py +622 -623
- pulumi_snowflake/function_java.py +320 -321
- pulumi_snowflake/function_javascript.py +243 -244
- pulumi_snowflake/function_python.py +334 -335
- pulumi_snowflake/function_scala.py +320 -321
- pulumi_snowflake/function_sql.py +226 -227
- pulumi_snowflake/get_account_roles.py +16 -17
- pulumi_snowflake/get_accounts.py +16 -17
- pulumi_snowflake/get_alerts.py +22 -23
- pulumi_snowflake/get_compute_pools.py +23 -24
- pulumi_snowflake/get_connections.py +10 -11
- pulumi_snowflake/get_cortex_search_services.py +18 -19
- pulumi_snowflake/get_current_account.py +9 -10
- pulumi_snowflake/get_current_role.py +5 -6
- pulumi_snowflake/get_database.py +25 -26
- pulumi_snowflake/get_database_role.py +19 -20
- pulumi_snowflake/get_database_roles.py +17 -18
- pulumi_snowflake/get_databases.py +29 -30
- pulumi_snowflake/get_dynamic_tables.py +13 -14
- pulumi_snowflake/get_external_functions.py +16 -17
- pulumi_snowflake/get_external_tables.py +16 -17
- pulumi_snowflake/get_failover_groups.py +10 -11
- pulumi_snowflake/get_file_formats.py +16 -17
- pulumi_snowflake/get_functions.py +16 -17
- pulumi_snowflake/get_git_repositories.py +18 -19
- pulumi_snowflake/get_grants.py +9 -10
- pulumi_snowflake/get_image_repositories.py +11 -12
- pulumi_snowflake/get_masking_policies.py +18 -19
- pulumi_snowflake/get_materialized_views.py +16 -17
- pulumi_snowflake/get_network_policies.py +16 -17
- pulumi_snowflake/get_parameters.py +34 -35
- pulumi_snowflake/get_pipes.py +16 -17
- pulumi_snowflake/get_procedures.py +16 -17
- pulumi_snowflake/get_resource_monitors.py +10 -11
- pulumi_snowflake/get_row_access_policies.py +18 -19
- pulumi_snowflake/get_schemas.py +30 -31
- pulumi_snowflake/get_secrets.py +17 -18
- pulumi_snowflake/get_security_integrations.py +16 -17
- pulumi_snowflake/get_sequences.py +16 -17
- pulumi_snowflake/get_services.py +30 -31
- pulumi_snowflake/get_shares.py +10 -11
- pulumi_snowflake/get_stages.py +16 -17
- pulumi_snowflake/get_storage_integrations.py +4 -5
- pulumi_snowflake/get_streamlits.py +18 -19
- pulumi_snowflake/get_streams.py +24 -25
- pulumi_snowflake/get_system_generate_scim_access_token.py +11 -12
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +11 -12
- pulumi_snowflake/get_system_get_private_link_config.py +21 -22
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +7 -8
- pulumi_snowflake/get_tables.py +24 -25
- pulumi_snowflake/get_tags.py +11 -12
- pulumi_snowflake/get_tasks.py +30 -31
- pulumi_snowflake/get_user_programmatic_access_tokens.py +113 -0
- pulumi_snowflake/get_users.py +29 -30
- pulumi_snowflake/get_views.py +24 -25
- pulumi_snowflake/get_warehouses.py +22 -23
- pulumi_snowflake/git_repository.py +133 -134
- pulumi_snowflake/grant_account_role.py +52 -53
- pulumi_snowflake/grant_application_role.py +52 -53
- pulumi_snowflake/grant_database_role.py +69 -70
- pulumi_snowflake/grant_ownership.py +55 -56
- pulumi_snowflake/grant_privileges_to_account_role.py +125 -126
- pulumi_snowflake/grant_privileges_to_database_role.py +122 -123
- pulumi_snowflake/grant_privileges_to_share.py +154 -155
- pulumi_snowflake/image_repository.py +80 -81
- pulumi_snowflake/job_service.py +148 -149
- pulumi_snowflake/legacy_service_user.py +1269 -1270
- pulumi_snowflake/managed_account.py +140 -141
- pulumi_snowflake/masking_policy.py +136 -137
- pulumi_snowflake/materialized_view.py +149 -150
- pulumi_snowflake/network_policy.py +116 -117
- pulumi_snowflake/network_policy_attachment.py +52 -53
- pulumi_snowflake/network_rule.py +129 -130
- pulumi_snowflake/notification_integration.py +298 -299
- pulumi_snowflake/oauth_integration_for_custom_clients.py +263 -264
- pulumi_snowflake/oauth_integration_for_partner_applications.py +169 -170
- pulumi_snowflake/object_parameter.py +72 -73
- pulumi_snowflake/outputs.py +15957 -15511
- pulumi_snowflake/password_policy.py +299 -300
- pulumi_snowflake/pipe.py +181 -182
- pulumi_snowflake/primary_connection.py +70 -71
- pulumi_snowflake/procedure_java.py +341 -342
- pulumi_snowflake/procedure_javascript.py +247 -248
- pulumi_snowflake/procedure_python.py +338 -339
- pulumi_snowflake/procedure_scala.py +341 -342
- pulumi_snowflake/procedure_sql.py +247 -248
- pulumi_snowflake/provider.py +377 -378
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +165 -166
- pulumi_snowflake/row_access_policy.py +102 -103
- pulumi_snowflake/saml2_integration.py +303 -304
- pulumi_snowflake/schema.py +390 -391
- pulumi_snowflake/scim_integration.py +133 -134
- pulumi_snowflake/secondary_connection.py +72 -73
- pulumi_snowflake/secondary_database.py +350 -351
- pulumi_snowflake/secret_with_authorization_code_grant.py +138 -139
- pulumi_snowflake/secret_with_basic_authentication.py +121 -122
- pulumi_snowflake/secret_with_client_credentials.py +125 -126
- pulumi_snowflake/secret_with_generic_string.py +104 -105
- pulumi_snowflake/sequence.py +121 -122
- pulumi_snowflake/service.py +233 -234
- pulumi_snowflake/service_user.py +1239 -1240
- pulumi_snowflake/share.py +61 -62
- pulumi_snowflake/shared_database.py +299 -300
- pulumi_snowflake/stage.py +234 -235
- pulumi_snowflake/storage_integration.py +230 -231
- pulumi_snowflake/stream_on_directory_table.py +128 -129
- pulumi_snowflake/stream_on_external_table.py +151 -152
- pulumi_snowflake/stream_on_table.py +164 -165
- pulumi_snowflake/stream_on_view.py +164 -165
- pulumi_snowflake/streamlit.py +184 -185
- pulumi_snowflake/table.py +147 -148
- pulumi_snowflake/table_column_masking_policy_application.py +52 -53
- pulumi_snowflake/table_constraint.py +191 -192
- pulumi_snowflake/tag.py +114 -115
- pulumi_snowflake/tag_association.py +86 -87
- pulumi_snowflake/task.py +1224 -1225
- pulumi_snowflake/user.py +1346 -1347
- pulumi_snowflake/user_authentication_policy_attachment.py +35 -36
- pulumi_snowflake/user_password_policy_attachment.py +35 -36
- pulumi_snowflake/user_programmatic_access_token.py +598 -0
- pulumi_snowflake/user_public_keys.py +52 -53
- pulumi_snowflake/view.py +187 -188
- pulumi_snowflake/warehouse.py +286 -287
- {pulumi_snowflake-2.2.0a1751946295.dist-info → pulumi_snowflake-2.3.0.dist-info}/METADATA +1 -1
- pulumi_snowflake-2.3.0.dist-info/RECORD +161 -0
- pulumi_snowflake-2.2.0a1751946295.dist-info/RECORD +0 -158
- {pulumi_snowflake-2.2.0a1751946295.dist-info → pulumi_snowflake-2.3.0.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-2.2.0a1751946295.dist-info → pulumi_snowflake-2.3.0.dist-info}/top_level.txt +0 -0
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -22,52 +21,52 @@ __all__ = ['ProcedureJavaArgs', 'ProcedureJava']
|
|
|
22
21
|
@pulumi.input_type
|
|
23
22
|
class ProcedureJavaArgs:
|
|
24
23
|
def __init__(__self__, *,
|
|
25
|
-
database: pulumi.Input[
|
|
26
|
-
handler: pulumi.Input[
|
|
27
|
-
return_type: pulumi.Input[
|
|
28
|
-
runtime_version: pulumi.Input[
|
|
29
|
-
schema: pulumi.Input[
|
|
30
|
-
snowpark_package: pulumi.Input[
|
|
24
|
+
database: pulumi.Input[_builtins.str],
|
|
25
|
+
handler: pulumi.Input[_builtins.str],
|
|
26
|
+
return_type: pulumi.Input[_builtins.str],
|
|
27
|
+
runtime_version: pulumi.Input[_builtins.str],
|
|
28
|
+
schema: pulumi.Input[_builtins.str],
|
|
29
|
+
snowpark_package: pulumi.Input[_builtins.str],
|
|
31
30
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaArgumentArgs']]]] = None,
|
|
32
|
-
comment: Optional[pulumi.Input[
|
|
33
|
-
enable_console_output: Optional[pulumi.Input[
|
|
34
|
-
execute_as: Optional[pulumi.Input[
|
|
35
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
31
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
|
+
enable_console_output: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
33
|
+
execute_as: Optional[pulumi.Input[_builtins.str]] = None,
|
|
34
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
36
35
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaImportArgs']]]] = None,
|
|
37
|
-
is_secure: Optional[pulumi.Input[
|
|
38
|
-
log_level: Optional[pulumi.Input[
|
|
39
|
-
metric_level: Optional[pulumi.Input[
|
|
40
|
-
name: Optional[pulumi.Input[
|
|
41
|
-
null_input_behavior: Optional[pulumi.Input[
|
|
42
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
43
|
-
procedure_definition: Optional[pulumi.Input[
|
|
36
|
+
is_secure: Optional[pulumi.Input[_builtins.str]] = None,
|
|
37
|
+
log_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
38
|
+
metric_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
39
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
40
|
+
null_input_behavior: Optional[pulumi.Input[_builtins.str]] = None,
|
|
41
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
42
|
+
procedure_definition: Optional[pulumi.Input[_builtins.str]] = None,
|
|
44
43
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaSecretArgs']]]] = None,
|
|
45
44
|
target_path: Optional[pulumi.Input['ProcedureJavaTargetPathArgs']] = None,
|
|
46
|
-
trace_level: Optional[pulumi.Input[
|
|
45
|
+
trace_level: Optional[pulumi.Input[_builtins.str]] = None):
|
|
47
46
|
"""
|
|
48
47
|
The set of arguments for constructing a ProcedureJava resource.
|
|
49
|
-
:param pulumi.Input[
|
|
50
|
-
:param pulumi.Input[
|
|
51
|
-
:param pulumi.Input[
|
|
52
|
-
:param pulumi.Input[
|
|
53
|
-
:param pulumi.Input[
|
|
54
|
-
:param pulumi.Input[
|
|
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 fully qualified name of the method or function for the stored procedure. This is typically in the following form `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
50
|
+
:param pulumi.Input[_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-Java Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-java-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: 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).
|
|
55
54
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavaArgumentArgs']]] 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.
|
|
56
|
-
:param pulumi.Input[
|
|
57
|
-
:param pulumi.Input[
|
|
58
|
-
:param pulumi.Input[
|
|
59
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
55
|
+
:param pulumi.Input[_builtins.str] comment: (Default: `user-defined procedure`) 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.
|
|
60
59
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavaImportArgs']]] imports: The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on. If you are writing an in-line stored procedure, you can omit this clause, unless your code depends on classes defined outside the stored procedure or resource files. If you are writing a stored procedure with a staged handler, you must also include a path to the JAR file containing the stored procedure’s handler code. The IMPORTS definition cannot reference variables from arguments that are passed into the stored procedure. Each file in the IMPORTS clause must have a unique name, even if the files are in different subdirectories or different stages.
|
|
61
|
-
:param pulumi.Input[
|
|
62
|
-
:param pulumi.Input[
|
|
63
|
-
:param pulumi.Input[
|
|
64
|
-
:param pulumi.Input[
|
|
65
|
-
:param pulumi.Input[
|
|
66
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
67
|
-
:param pulumi.Input[
|
|
60
|
+
:param pulumi.Input[_builtins.str] is_secure: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) 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 Java source code. For more information, see [Java (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-java). 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.
|
|
68
67
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavaSecretArgs']]] 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.
|
|
69
68
|
:param pulumi.Input['ProcedureJavaTargetPathArgs'] target_path: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
70
|
-
:param pulumi.Input[
|
|
69
|
+
: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).
|
|
71
70
|
"""
|
|
72
71
|
pulumi.set(__self__, "database", database)
|
|
73
72
|
pulumi.set(__self__, "handler", handler)
|
|
@@ -108,79 +107,79 @@ class ProcedureJavaArgs:
|
|
|
108
107
|
if trace_level is not None:
|
|
109
108
|
pulumi.set(__self__, "trace_level", trace_level)
|
|
110
109
|
|
|
111
|
-
@property
|
|
110
|
+
@_builtins.property
|
|
112
111
|
@pulumi.getter
|
|
113
|
-
def database(self) -> pulumi.Input[
|
|
112
|
+
def database(self) -> pulumi.Input[_builtins.str]:
|
|
114
113
|
"""
|
|
115
114
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
116
115
|
"""
|
|
117
116
|
return pulumi.get(self, "database")
|
|
118
117
|
|
|
119
118
|
@database.setter
|
|
120
|
-
def database(self, value: pulumi.Input[
|
|
119
|
+
def database(self, value: pulumi.Input[_builtins.str]):
|
|
121
120
|
pulumi.set(self, "database", value)
|
|
122
121
|
|
|
123
|
-
@property
|
|
122
|
+
@_builtins.property
|
|
124
123
|
@pulumi.getter
|
|
125
|
-
def handler(self) -> pulumi.Input[
|
|
124
|
+
def handler(self) -> pulumi.Input[_builtins.str]:
|
|
126
125
|
"""
|
|
127
126
|
Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
128
127
|
"""
|
|
129
128
|
return pulumi.get(self, "handler")
|
|
130
129
|
|
|
131
130
|
@handler.setter
|
|
132
|
-
def handler(self, value: pulumi.Input[
|
|
131
|
+
def handler(self, value: pulumi.Input[_builtins.str]):
|
|
133
132
|
pulumi.set(self, "handler", value)
|
|
134
133
|
|
|
135
|
-
@property
|
|
134
|
+
@_builtins.property
|
|
136
135
|
@pulumi.getter(name="returnType")
|
|
137
|
-
def return_type(self) -> pulumi.Input[
|
|
136
|
+
def return_type(self) -> pulumi.Input[_builtins.str]:
|
|
138
137
|
"""
|
|
139
138
|
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-Java Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-java-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 ()`).
|
|
140
139
|
"""
|
|
141
140
|
return pulumi.get(self, "return_type")
|
|
142
141
|
|
|
143
142
|
@return_type.setter
|
|
144
|
-
def return_type(self, value: pulumi.Input[
|
|
143
|
+
def return_type(self, value: pulumi.Input[_builtins.str]):
|
|
145
144
|
pulumi.set(self, "return_type", value)
|
|
146
145
|
|
|
147
|
-
@property
|
|
146
|
+
@_builtins.property
|
|
148
147
|
@pulumi.getter(name="runtimeVersion")
|
|
149
|
-
def runtime_version(self) -> pulumi.Input[
|
|
148
|
+
def runtime_version(self) -> pulumi.Input[_builtins.str]:
|
|
150
149
|
"""
|
|
151
150
|
The language runtime version to use. Currently, the supported versions are: 11.
|
|
152
151
|
"""
|
|
153
152
|
return pulumi.get(self, "runtime_version")
|
|
154
153
|
|
|
155
154
|
@runtime_version.setter
|
|
156
|
-
def runtime_version(self, value: pulumi.Input[
|
|
155
|
+
def runtime_version(self, value: pulumi.Input[_builtins.str]):
|
|
157
156
|
pulumi.set(self, "runtime_version", value)
|
|
158
157
|
|
|
159
|
-
@property
|
|
158
|
+
@_builtins.property
|
|
160
159
|
@pulumi.getter
|
|
161
|
-
def schema(self) -> pulumi.Input[
|
|
160
|
+
def schema(self) -> pulumi.Input[_builtins.str]:
|
|
162
161
|
"""
|
|
163
162
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
164
163
|
"""
|
|
165
164
|
return pulumi.get(self, "schema")
|
|
166
165
|
|
|
167
166
|
@schema.setter
|
|
168
|
-
def schema(self, value: pulumi.Input[
|
|
167
|
+
def schema(self, value: pulumi.Input[_builtins.str]):
|
|
169
168
|
pulumi.set(self, "schema", value)
|
|
170
169
|
|
|
171
|
-
@property
|
|
170
|
+
@_builtins.property
|
|
172
171
|
@pulumi.getter(name="snowparkPackage")
|
|
173
|
-
def snowpark_package(self) -> pulumi.Input[
|
|
172
|
+
def snowpark_package(self) -> pulumi.Input[_builtins.str]:
|
|
174
173
|
"""
|
|
175
174
|
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).
|
|
176
175
|
"""
|
|
177
176
|
return pulumi.get(self, "snowpark_package")
|
|
178
177
|
|
|
179
178
|
@snowpark_package.setter
|
|
180
|
-
def snowpark_package(self, value: pulumi.Input[
|
|
179
|
+
def snowpark_package(self, value: pulumi.Input[_builtins.str]):
|
|
181
180
|
pulumi.set(self, "snowpark_package", value)
|
|
182
181
|
|
|
183
|
-
@property
|
|
182
|
+
@_builtins.property
|
|
184
183
|
@pulumi.getter
|
|
185
184
|
def arguments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaArgumentArgs']]]]:
|
|
186
185
|
"""
|
|
@@ -192,55 +191,55 @@ class ProcedureJavaArgs:
|
|
|
192
191
|
def arguments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaArgumentArgs']]]]):
|
|
193
192
|
pulumi.set(self, "arguments", value)
|
|
194
193
|
|
|
195
|
-
@property
|
|
194
|
+
@_builtins.property
|
|
196
195
|
@pulumi.getter
|
|
197
|
-
def comment(self) -> Optional[pulumi.Input[
|
|
196
|
+
def comment(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
198
197
|
"""
|
|
199
198
|
(Default: `user-defined procedure`) Specifies a comment for the procedure.
|
|
200
199
|
"""
|
|
201
200
|
return pulumi.get(self, "comment")
|
|
202
201
|
|
|
203
202
|
@comment.setter
|
|
204
|
-
def comment(self, value: Optional[pulumi.Input[
|
|
203
|
+
def comment(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
205
204
|
pulumi.set(self, "comment", value)
|
|
206
205
|
|
|
207
|
-
@property
|
|
206
|
+
@_builtins.property
|
|
208
207
|
@pulumi.getter(name="enableConsoleOutput")
|
|
209
|
-
def enable_console_output(self) -> Optional[pulumi.Input[
|
|
208
|
+
def enable_console_output(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
210
209
|
"""
|
|
211
210
|
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).
|
|
212
211
|
"""
|
|
213
212
|
return pulumi.get(self, "enable_console_output")
|
|
214
213
|
|
|
215
214
|
@enable_console_output.setter
|
|
216
|
-
def enable_console_output(self, value: Optional[pulumi.Input[
|
|
215
|
+
def enable_console_output(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
217
216
|
pulumi.set(self, "enable_console_output", value)
|
|
218
217
|
|
|
219
|
-
@property
|
|
218
|
+
@_builtins.property
|
|
220
219
|
@pulumi.getter(name="executeAs")
|
|
221
|
-
def execute_as(self) -> Optional[pulumi.Input[
|
|
220
|
+
def execute_as(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
222
221
|
"""
|
|
223
222
|
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`.
|
|
224
223
|
"""
|
|
225
224
|
return pulumi.get(self, "execute_as")
|
|
226
225
|
|
|
227
226
|
@execute_as.setter
|
|
228
|
-
def execute_as(self, value: Optional[pulumi.Input[
|
|
227
|
+
def execute_as(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
229
228
|
pulumi.set(self, "execute_as", value)
|
|
230
229
|
|
|
231
|
-
@property
|
|
230
|
+
@_builtins.property
|
|
232
231
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
233
|
-
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
232
|
+
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
234
233
|
"""
|
|
235
234
|
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.
|
|
236
235
|
"""
|
|
237
236
|
return pulumi.get(self, "external_access_integrations")
|
|
238
237
|
|
|
239
238
|
@external_access_integrations.setter
|
|
240
|
-
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
239
|
+
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
241
240
|
pulumi.set(self, "external_access_integrations", value)
|
|
242
241
|
|
|
243
|
-
@property
|
|
242
|
+
@_builtins.property
|
|
244
243
|
@pulumi.getter
|
|
245
244
|
def imports(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaImportArgs']]]]:
|
|
246
245
|
"""
|
|
@@ -252,91 +251,91 @@ class ProcedureJavaArgs:
|
|
|
252
251
|
def imports(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaImportArgs']]]]):
|
|
253
252
|
pulumi.set(self, "imports", value)
|
|
254
253
|
|
|
255
|
-
@property
|
|
254
|
+
@_builtins.property
|
|
256
255
|
@pulumi.getter(name="isSecure")
|
|
257
|
-
def is_secure(self) -> Optional[pulumi.Input[
|
|
256
|
+
def is_secure(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
258
257
|
"""
|
|
259
258
|
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) 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.
|
|
260
259
|
"""
|
|
261
260
|
return pulumi.get(self, "is_secure")
|
|
262
261
|
|
|
263
262
|
@is_secure.setter
|
|
264
|
-
def is_secure(self, value: Optional[pulumi.Input[
|
|
263
|
+
def is_secure(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
265
264
|
pulumi.set(self, "is_secure", value)
|
|
266
265
|
|
|
267
|
-
@property
|
|
266
|
+
@_builtins.property
|
|
268
267
|
@pulumi.getter(name="logLevel")
|
|
269
|
-
def log_level(self) -> Optional[pulumi.Input[
|
|
268
|
+
def log_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
270
269
|
"""
|
|
271
270
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
272
271
|
"""
|
|
273
272
|
return pulumi.get(self, "log_level")
|
|
274
273
|
|
|
275
274
|
@log_level.setter
|
|
276
|
-
def log_level(self, value: Optional[pulumi.Input[
|
|
275
|
+
def log_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
277
276
|
pulumi.set(self, "log_level", value)
|
|
278
277
|
|
|
279
|
-
@property
|
|
278
|
+
@_builtins.property
|
|
280
279
|
@pulumi.getter(name="metricLevel")
|
|
281
|
-
def metric_level(self) -> Optional[pulumi.Input[
|
|
280
|
+
def metric_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
282
281
|
"""
|
|
283
282
|
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).
|
|
284
283
|
"""
|
|
285
284
|
return pulumi.get(self, "metric_level")
|
|
286
285
|
|
|
287
286
|
@metric_level.setter
|
|
288
|
-
def metric_level(self, value: Optional[pulumi.Input[
|
|
287
|
+
def metric_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
289
288
|
pulumi.set(self, "metric_level", value)
|
|
290
289
|
|
|
291
|
-
@property
|
|
290
|
+
@_builtins.property
|
|
292
291
|
@pulumi.getter
|
|
293
|
-
def name(self) -> Optional[pulumi.Input[
|
|
292
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
294
293
|
"""
|
|
295
294
|
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: `|`, `.`, `"`.
|
|
296
295
|
"""
|
|
297
296
|
return pulumi.get(self, "name")
|
|
298
297
|
|
|
299
298
|
@name.setter
|
|
300
|
-
def name(self, value: Optional[pulumi.Input[
|
|
299
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
301
300
|
pulumi.set(self, "name", value)
|
|
302
301
|
|
|
303
|
-
@property
|
|
302
|
+
@_builtins.property
|
|
304
303
|
@pulumi.getter(name="nullInputBehavior")
|
|
305
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[
|
|
304
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
306
305
|
"""
|
|
307
306
|
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`.
|
|
308
307
|
"""
|
|
309
308
|
return pulumi.get(self, "null_input_behavior")
|
|
310
309
|
|
|
311
310
|
@null_input_behavior.setter
|
|
312
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[
|
|
311
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
313
312
|
pulumi.set(self, "null_input_behavior", value)
|
|
314
313
|
|
|
315
|
-
@property
|
|
314
|
+
@_builtins.property
|
|
316
315
|
@pulumi.getter
|
|
317
|
-
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
316
|
+
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
318
317
|
"""
|
|
319
318
|
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).
|
|
320
319
|
"""
|
|
321
320
|
return pulumi.get(self, "packages")
|
|
322
321
|
|
|
323
322
|
@packages.setter
|
|
324
|
-
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
323
|
+
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
325
324
|
pulumi.set(self, "packages", value)
|
|
326
325
|
|
|
327
|
-
@property
|
|
326
|
+
@_builtins.property
|
|
328
327
|
@pulumi.getter(name="procedureDefinition")
|
|
329
|
-
def procedure_definition(self) -> Optional[pulumi.Input[
|
|
328
|
+
def procedure_definition(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
330
329
|
"""
|
|
331
330
|
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 Java source code. For more information, see [Java (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-java). 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.
|
|
332
331
|
"""
|
|
333
332
|
return pulumi.get(self, "procedure_definition")
|
|
334
333
|
|
|
335
334
|
@procedure_definition.setter
|
|
336
|
-
def procedure_definition(self, value: Optional[pulumi.Input[
|
|
335
|
+
def procedure_definition(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
337
336
|
pulumi.set(self, "procedure_definition", value)
|
|
338
337
|
|
|
339
|
-
@property
|
|
338
|
+
@_builtins.property
|
|
340
339
|
@pulumi.getter
|
|
341
340
|
def secrets(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaSecretArgs']]]]:
|
|
342
341
|
"""
|
|
@@ -348,7 +347,7 @@ class ProcedureJavaArgs:
|
|
|
348
347
|
def secrets(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaSecretArgs']]]]):
|
|
349
348
|
pulumi.set(self, "secrets", value)
|
|
350
349
|
|
|
351
|
-
@property
|
|
350
|
+
@_builtins.property
|
|
352
351
|
@pulumi.getter(name="targetPath")
|
|
353
352
|
def target_path(self) -> Optional[pulumi.Input['ProcedureJavaTargetPathArgs']]:
|
|
354
353
|
"""
|
|
@@ -360,16 +359,16 @@ class ProcedureJavaArgs:
|
|
|
360
359
|
def target_path(self, value: Optional[pulumi.Input['ProcedureJavaTargetPathArgs']]):
|
|
361
360
|
pulumi.set(self, "target_path", value)
|
|
362
361
|
|
|
363
|
-
@property
|
|
362
|
+
@_builtins.property
|
|
364
363
|
@pulumi.getter(name="traceLevel")
|
|
365
|
-
def trace_level(self) -> Optional[pulumi.Input[
|
|
364
|
+
def trace_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
366
365
|
"""
|
|
367
366
|
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).
|
|
368
367
|
"""
|
|
369
368
|
return pulumi.get(self, "trace_level")
|
|
370
369
|
|
|
371
370
|
@trace_level.setter
|
|
372
|
-
def trace_level(self, value: Optional[pulumi.Input[
|
|
371
|
+
def trace_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
373
372
|
pulumi.set(self, "trace_level", value)
|
|
374
373
|
|
|
375
374
|
|
|
@@ -377,59 +376,59 @@ class ProcedureJavaArgs:
|
|
|
377
376
|
class _ProcedureJavaState:
|
|
378
377
|
def __init__(__self__, *,
|
|
379
378
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaArgumentArgs']]]] = None,
|
|
380
|
-
comment: Optional[pulumi.Input[
|
|
381
|
-
database: Optional[pulumi.Input[
|
|
382
|
-
enable_console_output: Optional[pulumi.Input[
|
|
383
|
-
execute_as: Optional[pulumi.Input[
|
|
384
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
385
|
-
fully_qualified_name: Optional[pulumi.Input[
|
|
386
|
-
handler: Optional[pulumi.Input[
|
|
379
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
380
|
+
database: Optional[pulumi.Input[_builtins.str]] = None,
|
|
381
|
+
enable_console_output: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
382
|
+
execute_as: Optional[pulumi.Input[_builtins.str]] = None,
|
|
383
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
384
|
+
fully_qualified_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
385
|
+
handler: Optional[pulumi.Input[_builtins.str]] = None,
|
|
387
386
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaImportArgs']]]] = None,
|
|
388
|
-
is_secure: Optional[pulumi.Input[
|
|
389
|
-
log_level: Optional[pulumi.Input[
|
|
390
|
-
metric_level: Optional[pulumi.Input[
|
|
391
|
-
name: Optional[pulumi.Input[
|
|
392
|
-
null_input_behavior: Optional[pulumi.Input[
|
|
393
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
387
|
+
is_secure: Optional[pulumi.Input[_builtins.str]] = None,
|
|
388
|
+
log_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
389
|
+
metric_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
390
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
391
|
+
null_input_behavior: Optional[pulumi.Input[_builtins.str]] = None,
|
|
392
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
394
393
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaParameterArgs']]]] = None,
|
|
395
|
-
procedure_definition: Optional[pulumi.Input[
|
|
396
|
-
procedure_language: Optional[pulumi.Input[
|
|
397
|
-
return_type: Optional[pulumi.Input[
|
|
398
|
-
runtime_version: Optional[pulumi.Input[
|
|
399
|
-
schema: Optional[pulumi.Input[
|
|
394
|
+
procedure_definition: Optional[pulumi.Input[_builtins.str]] = None,
|
|
395
|
+
procedure_language: Optional[pulumi.Input[_builtins.str]] = None,
|
|
396
|
+
return_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
397
|
+
runtime_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
398
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
400
399
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaSecretArgs']]]] = None,
|
|
401
400
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaShowOutputArgs']]]] = None,
|
|
402
|
-
snowpark_package: Optional[pulumi.Input[
|
|
401
|
+
snowpark_package: Optional[pulumi.Input[_builtins.str]] = None,
|
|
403
402
|
target_path: Optional[pulumi.Input['ProcedureJavaTargetPathArgs']] = None,
|
|
404
|
-
trace_level: Optional[pulumi.Input[
|
|
403
|
+
trace_level: Optional[pulumi.Input[_builtins.str]] = None):
|
|
405
404
|
"""
|
|
406
405
|
Input properties used for looking up and filtering ProcedureJava resources.
|
|
407
406
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavaArgumentArgs']]] 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.
|
|
408
|
-
:param pulumi.Input[
|
|
409
|
-
:param pulumi.Input[
|
|
410
|
-
:param pulumi.Input[
|
|
411
|
-
:param pulumi.Input[
|
|
412
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
413
|
-
:param pulumi.Input[
|
|
414
|
-
:param pulumi.Input[
|
|
407
|
+
:param pulumi.Input[_builtins.str] comment: (Default: `user-defined procedure`) Specifies a comment for the procedure.
|
|
408
|
+
: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: `|`, `.`, `"`.
|
|
409
|
+
: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).
|
|
410
|
+
: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`.
|
|
411
|
+
: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.
|
|
412
|
+
: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).
|
|
413
|
+
:param pulumi.Input[_builtins.str] handler: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
415
414
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavaImportArgs']]] imports: The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on. If you are writing an in-line stored procedure, you can omit this clause, unless your code depends on classes defined outside the stored procedure or resource files. If you are writing a stored procedure with a staged handler, you must also include a path to the JAR file containing the stored procedure’s handler code. The IMPORTS definition cannot reference variables from arguments that are passed into the stored procedure. Each file in the IMPORTS clause must have a unique name, even if the files are in different subdirectories or different stages.
|
|
416
|
-
:param pulumi.Input[
|
|
417
|
-
:param pulumi.Input[
|
|
418
|
-
:param pulumi.Input[
|
|
419
|
-
:param pulumi.Input[
|
|
420
|
-
:param pulumi.Input[
|
|
421
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
415
|
+
:param pulumi.Input[_builtins.str] is_secure: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
416
|
+
:param pulumi.Input[_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).
|
|
417
|
+
: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).
|
|
418
|
+
: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: `|`, `.`, `"`.
|
|
419
|
+
: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`.
|
|
420
|
+
: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).
|
|
422
421
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavaParameterArgs']]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
423
|
-
:param pulumi.Input[
|
|
424
|
-
:param pulumi.Input[
|
|
425
|
-
:param pulumi.Input[
|
|
426
|
-
:param pulumi.Input[
|
|
427
|
-
:param pulumi.Input[
|
|
422
|
+
: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 Java source code. For more information, see [Java (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-java). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
423
|
+
:param pulumi.Input[_builtins.str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
424
|
+
: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-Java Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-java-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 ()`).
|
|
425
|
+
:param pulumi.Input[_builtins.str] runtime_version: The language runtime version to use. Currently, the supported versions are: 11.
|
|
426
|
+
: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: `|`, `.`, `"`.
|
|
428
427
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavaSecretArgs']]] 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.
|
|
429
428
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavaShowOutputArgs']]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
430
|
-
:param pulumi.Input[
|
|
429
|
+
: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).
|
|
431
430
|
:param pulumi.Input['ProcedureJavaTargetPathArgs'] target_path: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
432
|
-
:param pulumi.Input[
|
|
431
|
+
: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).
|
|
433
432
|
"""
|
|
434
433
|
if arguments is not None:
|
|
435
434
|
pulumi.set(__self__, "arguments", arguments)
|
|
@@ -484,7 +483,7 @@ class _ProcedureJavaState:
|
|
|
484
483
|
if trace_level is not None:
|
|
485
484
|
pulumi.set(__self__, "trace_level", trace_level)
|
|
486
485
|
|
|
487
|
-
@property
|
|
486
|
+
@_builtins.property
|
|
488
487
|
@pulumi.getter
|
|
489
488
|
def arguments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaArgumentArgs']]]]:
|
|
490
489
|
"""
|
|
@@ -496,91 +495,91 @@ class _ProcedureJavaState:
|
|
|
496
495
|
def arguments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaArgumentArgs']]]]):
|
|
497
496
|
pulumi.set(self, "arguments", value)
|
|
498
497
|
|
|
499
|
-
@property
|
|
498
|
+
@_builtins.property
|
|
500
499
|
@pulumi.getter
|
|
501
|
-
def comment(self) -> Optional[pulumi.Input[
|
|
500
|
+
def comment(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
502
501
|
"""
|
|
503
502
|
(Default: `user-defined procedure`) Specifies a comment for the procedure.
|
|
504
503
|
"""
|
|
505
504
|
return pulumi.get(self, "comment")
|
|
506
505
|
|
|
507
506
|
@comment.setter
|
|
508
|
-
def comment(self, value: Optional[pulumi.Input[
|
|
507
|
+
def comment(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
509
508
|
pulumi.set(self, "comment", value)
|
|
510
509
|
|
|
511
|
-
@property
|
|
510
|
+
@_builtins.property
|
|
512
511
|
@pulumi.getter
|
|
513
|
-
def database(self) -> Optional[pulumi.Input[
|
|
512
|
+
def database(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
514
513
|
"""
|
|
515
514
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
516
515
|
"""
|
|
517
516
|
return pulumi.get(self, "database")
|
|
518
517
|
|
|
519
518
|
@database.setter
|
|
520
|
-
def database(self, value: Optional[pulumi.Input[
|
|
519
|
+
def database(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
521
520
|
pulumi.set(self, "database", value)
|
|
522
521
|
|
|
523
|
-
@property
|
|
522
|
+
@_builtins.property
|
|
524
523
|
@pulumi.getter(name="enableConsoleOutput")
|
|
525
|
-
def enable_console_output(self) -> Optional[pulumi.Input[
|
|
524
|
+
def enable_console_output(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
526
525
|
"""
|
|
527
526
|
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).
|
|
528
527
|
"""
|
|
529
528
|
return pulumi.get(self, "enable_console_output")
|
|
530
529
|
|
|
531
530
|
@enable_console_output.setter
|
|
532
|
-
def enable_console_output(self, value: Optional[pulumi.Input[
|
|
531
|
+
def enable_console_output(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
533
532
|
pulumi.set(self, "enable_console_output", value)
|
|
534
533
|
|
|
535
|
-
@property
|
|
534
|
+
@_builtins.property
|
|
536
535
|
@pulumi.getter(name="executeAs")
|
|
537
|
-
def execute_as(self) -> Optional[pulumi.Input[
|
|
536
|
+
def execute_as(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
538
537
|
"""
|
|
539
538
|
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`.
|
|
540
539
|
"""
|
|
541
540
|
return pulumi.get(self, "execute_as")
|
|
542
541
|
|
|
543
542
|
@execute_as.setter
|
|
544
|
-
def execute_as(self, value: Optional[pulumi.Input[
|
|
543
|
+
def execute_as(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
545
544
|
pulumi.set(self, "execute_as", value)
|
|
546
545
|
|
|
547
|
-
@property
|
|
546
|
+
@_builtins.property
|
|
548
547
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
549
|
-
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
548
|
+
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
550
549
|
"""
|
|
551
550
|
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.
|
|
552
551
|
"""
|
|
553
552
|
return pulumi.get(self, "external_access_integrations")
|
|
554
553
|
|
|
555
554
|
@external_access_integrations.setter
|
|
556
|
-
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
555
|
+
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
557
556
|
pulumi.set(self, "external_access_integrations", value)
|
|
558
557
|
|
|
559
|
-
@property
|
|
558
|
+
@_builtins.property
|
|
560
559
|
@pulumi.getter(name="fullyQualifiedName")
|
|
561
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[
|
|
560
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
562
561
|
"""
|
|
563
562
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
564
563
|
"""
|
|
565
564
|
return pulumi.get(self, "fully_qualified_name")
|
|
566
565
|
|
|
567
566
|
@fully_qualified_name.setter
|
|
568
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[
|
|
567
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
569
568
|
pulumi.set(self, "fully_qualified_name", value)
|
|
570
569
|
|
|
571
|
-
@property
|
|
570
|
+
@_builtins.property
|
|
572
571
|
@pulumi.getter
|
|
573
|
-
def handler(self) -> Optional[pulumi.Input[
|
|
572
|
+
def handler(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
574
573
|
"""
|
|
575
574
|
Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
576
575
|
"""
|
|
577
576
|
return pulumi.get(self, "handler")
|
|
578
577
|
|
|
579
578
|
@handler.setter
|
|
580
|
-
def handler(self, value: Optional[pulumi.Input[
|
|
579
|
+
def handler(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
581
580
|
pulumi.set(self, "handler", value)
|
|
582
581
|
|
|
583
|
-
@property
|
|
582
|
+
@_builtins.property
|
|
584
583
|
@pulumi.getter
|
|
585
584
|
def imports(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaImportArgs']]]]:
|
|
586
585
|
"""
|
|
@@ -592,79 +591,79 @@ class _ProcedureJavaState:
|
|
|
592
591
|
def imports(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaImportArgs']]]]):
|
|
593
592
|
pulumi.set(self, "imports", value)
|
|
594
593
|
|
|
595
|
-
@property
|
|
594
|
+
@_builtins.property
|
|
596
595
|
@pulumi.getter(name="isSecure")
|
|
597
|
-
def is_secure(self) -> Optional[pulumi.Input[
|
|
596
|
+
def is_secure(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
598
597
|
"""
|
|
599
598
|
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) 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.
|
|
600
599
|
"""
|
|
601
600
|
return pulumi.get(self, "is_secure")
|
|
602
601
|
|
|
603
602
|
@is_secure.setter
|
|
604
|
-
def is_secure(self, value: Optional[pulumi.Input[
|
|
603
|
+
def is_secure(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
605
604
|
pulumi.set(self, "is_secure", value)
|
|
606
605
|
|
|
607
|
-
@property
|
|
606
|
+
@_builtins.property
|
|
608
607
|
@pulumi.getter(name="logLevel")
|
|
609
|
-
def log_level(self) -> Optional[pulumi.Input[
|
|
608
|
+
def log_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
610
609
|
"""
|
|
611
610
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
612
611
|
"""
|
|
613
612
|
return pulumi.get(self, "log_level")
|
|
614
613
|
|
|
615
614
|
@log_level.setter
|
|
616
|
-
def log_level(self, value: Optional[pulumi.Input[
|
|
615
|
+
def log_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
617
616
|
pulumi.set(self, "log_level", value)
|
|
618
617
|
|
|
619
|
-
@property
|
|
618
|
+
@_builtins.property
|
|
620
619
|
@pulumi.getter(name="metricLevel")
|
|
621
|
-
def metric_level(self) -> Optional[pulumi.Input[
|
|
620
|
+
def metric_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
622
621
|
"""
|
|
623
622
|
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).
|
|
624
623
|
"""
|
|
625
624
|
return pulumi.get(self, "metric_level")
|
|
626
625
|
|
|
627
626
|
@metric_level.setter
|
|
628
|
-
def metric_level(self, value: Optional[pulumi.Input[
|
|
627
|
+
def metric_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
629
628
|
pulumi.set(self, "metric_level", value)
|
|
630
629
|
|
|
631
|
-
@property
|
|
630
|
+
@_builtins.property
|
|
632
631
|
@pulumi.getter
|
|
633
|
-
def name(self) -> Optional[pulumi.Input[
|
|
632
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
634
633
|
"""
|
|
635
634
|
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: `|`, `.`, `"`.
|
|
636
635
|
"""
|
|
637
636
|
return pulumi.get(self, "name")
|
|
638
637
|
|
|
639
638
|
@name.setter
|
|
640
|
-
def name(self, value: Optional[pulumi.Input[
|
|
639
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
641
640
|
pulumi.set(self, "name", value)
|
|
642
641
|
|
|
643
|
-
@property
|
|
642
|
+
@_builtins.property
|
|
644
643
|
@pulumi.getter(name="nullInputBehavior")
|
|
645
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[
|
|
644
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
646
645
|
"""
|
|
647
646
|
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`.
|
|
648
647
|
"""
|
|
649
648
|
return pulumi.get(self, "null_input_behavior")
|
|
650
649
|
|
|
651
650
|
@null_input_behavior.setter
|
|
652
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[
|
|
651
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
653
652
|
pulumi.set(self, "null_input_behavior", value)
|
|
654
653
|
|
|
655
|
-
@property
|
|
654
|
+
@_builtins.property
|
|
656
655
|
@pulumi.getter
|
|
657
|
-
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
656
|
+
def packages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
658
657
|
"""
|
|
659
658
|
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).
|
|
660
659
|
"""
|
|
661
660
|
return pulumi.get(self, "packages")
|
|
662
661
|
|
|
663
662
|
@packages.setter
|
|
664
|
-
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
663
|
+
def packages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
665
664
|
pulumi.set(self, "packages", value)
|
|
666
665
|
|
|
667
|
-
@property
|
|
666
|
+
@_builtins.property
|
|
668
667
|
@pulumi.getter
|
|
669
668
|
def parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaParameterArgs']]]]:
|
|
670
669
|
"""
|
|
@@ -676,67 +675,67 @@ class _ProcedureJavaState:
|
|
|
676
675
|
def parameters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaParameterArgs']]]]):
|
|
677
676
|
pulumi.set(self, "parameters", value)
|
|
678
677
|
|
|
679
|
-
@property
|
|
678
|
+
@_builtins.property
|
|
680
679
|
@pulumi.getter(name="procedureDefinition")
|
|
681
|
-
def procedure_definition(self) -> Optional[pulumi.Input[
|
|
680
|
+
def procedure_definition(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
682
681
|
"""
|
|
683
682
|
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 Java source code. For more information, see [Java (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-java). 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.
|
|
684
683
|
"""
|
|
685
684
|
return pulumi.get(self, "procedure_definition")
|
|
686
685
|
|
|
687
686
|
@procedure_definition.setter
|
|
688
|
-
def procedure_definition(self, value: Optional[pulumi.Input[
|
|
687
|
+
def procedure_definition(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
689
688
|
pulumi.set(self, "procedure_definition", value)
|
|
690
689
|
|
|
691
|
-
@property
|
|
690
|
+
@_builtins.property
|
|
692
691
|
@pulumi.getter(name="procedureLanguage")
|
|
693
|
-
def procedure_language(self) -> Optional[pulumi.Input[
|
|
692
|
+
def procedure_language(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
694
693
|
"""
|
|
695
694
|
Specifies language for the procedure. Used to detect external changes.
|
|
696
695
|
"""
|
|
697
696
|
return pulumi.get(self, "procedure_language")
|
|
698
697
|
|
|
699
698
|
@procedure_language.setter
|
|
700
|
-
def procedure_language(self, value: Optional[pulumi.Input[
|
|
699
|
+
def procedure_language(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
701
700
|
pulumi.set(self, "procedure_language", value)
|
|
702
701
|
|
|
703
|
-
@property
|
|
702
|
+
@_builtins.property
|
|
704
703
|
@pulumi.getter(name="returnType")
|
|
705
|
-
def return_type(self) -> Optional[pulumi.Input[
|
|
704
|
+
def return_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
706
705
|
"""
|
|
707
706
|
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-Java Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-java-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 ()`).
|
|
708
707
|
"""
|
|
709
708
|
return pulumi.get(self, "return_type")
|
|
710
709
|
|
|
711
710
|
@return_type.setter
|
|
712
|
-
def return_type(self, value: Optional[pulumi.Input[
|
|
711
|
+
def return_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
713
712
|
pulumi.set(self, "return_type", value)
|
|
714
713
|
|
|
715
|
-
@property
|
|
714
|
+
@_builtins.property
|
|
716
715
|
@pulumi.getter(name="runtimeVersion")
|
|
717
|
-
def runtime_version(self) -> Optional[pulumi.Input[
|
|
716
|
+
def runtime_version(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
718
717
|
"""
|
|
719
718
|
The language runtime version to use. Currently, the supported versions are: 11.
|
|
720
719
|
"""
|
|
721
720
|
return pulumi.get(self, "runtime_version")
|
|
722
721
|
|
|
723
722
|
@runtime_version.setter
|
|
724
|
-
def runtime_version(self, value: Optional[pulumi.Input[
|
|
723
|
+
def runtime_version(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
725
724
|
pulumi.set(self, "runtime_version", value)
|
|
726
725
|
|
|
727
|
-
@property
|
|
726
|
+
@_builtins.property
|
|
728
727
|
@pulumi.getter
|
|
729
|
-
def schema(self) -> Optional[pulumi.Input[
|
|
728
|
+
def schema(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
730
729
|
"""
|
|
731
730
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
732
731
|
"""
|
|
733
732
|
return pulumi.get(self, "schema")
|
|
734
733
|
|
|
735
734
|
@schema.setter
|
|
736
|
-
def schema(self, value: Optional[pulumi.Input[
|
|
735
|
+
def schema(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
737
736
|
pulumi.set(self, "schema", value)
|
|
738
737
|
|
|
739
|
-
@property
|
|
738
|
+
@_builtins.property
|
|
740
739
|
@pulumi.getter
|
|
741
740
|
def secrets(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaSecretArgs']]]]:
|
|
742
741
|
"""
|
|
@@ -748,7 +747,7 @@ class _ProcedureJavaState:
|
|
|
748
747
|
def secrets(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaSecretArgs']]]]):
|
|
749
748
|
pulumi.set(self, "secrets", value)
|
|
750
749
|
|
|
751
|
-
@property
|
|
750
|
+
@_builtins.property
|
|
752
751
|
@pulumi.getter(name="showOutputs")
|
|
753
752
|
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaShowOutputArgs']]]]:
|
|
754
753
|
"""
|
|
@@ -760,19 +759,19 @@ class _ProcedureJavaState:
|
|
|
760
759
|
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavaShowOutputArgs']]]]):
|
|
761
760
|
pulumi.set(self, "show_outputs", value)
|
|
762
761
|
|
|
763
|
-
@property
|
|
762
|
+
@_builtins.property
|
|
764
763
|
@pulumi.getter(name="snowparkPackage")
|
|
765
|
-
def snowpark_package(self) -> Optional[pulumi.Input[
|
|
764
|
+
def snowpark_package(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
766
765
|
"""
|
|
767
766
|
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).
|
|
768
767
|
"""
|
|
769
768
|
return pulumi.get(self, "snowpark_package")
|
|
770
769
|
|
|
771
770
|
@snowpark_package.setter
|
|
772
|
-
def snowpark_package(self, value: Optional[pulumi.Input[
|
|
771
|
+
def snowpark_package(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
773
772
|
pulumi.set(self, "snowpark_package", value)
|
|
774
773
|
|
|
775
|
-
@property
|
|
774
|
+
@_builtins.property
|
|
776
775
|
@pulumi.getter(name="targetPath")
|
|
777
776
|
def target_path(self) -> Optional[pulumi.Input['ProcedureJavaTargetPathArgs']]:
|
|
778
777
|
"""
|
|
@@ -784,16 +783,16 @@ class _ProcedureJavaState:
|
|
|
784
783
|
def target_path(self, value: Optional[pulumi.Input['ProcedureJavaTargetPathArgs']]):
|
|
785
784
|
pulumi.set(self, "target_path", value)
|
|
786
785
|
|
|
787
|
-
@property
|
|
786
|
+
@_builtins.property
|
|
788
787
|
@pulumi.getter(name="traceLevel")
|
|
789
|
-
def trace_level(self) -> Optional[pulumi.Input[
|
|
788
|
+
def trace_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
790
789
|
"""
|
|
791
790
|
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).
|
|
792
791
|
"""
|
|
793
792
|
return pulumi.get(self, "trace_level")
|
|
794
793
|
|
|
795
794
|
@trace_level.setter
|
|
796
|
-
def trace_level(self, value: Optional[pulumi.Input[
|
|
795
|
+
def trace_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
797
796
|
pulumi.set(self, "trace_level", value)
|
|
798
797
|
|
|
799
798
|
|
|
@@ -804,27 +803,27 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
804
803
|
resource_name: str,
|
|
805
804
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
806
805
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaArgumentArgs', 'ProcedureJavaArgumentArgsDict']]]]] = None,
|
|
807
|
-
comment: Optional[pulumi.Input[
|
|
808
|
-
database: Optional[pulumi.Input[
|
|
809
|
-
enable_console_output: Optional[pulumi.Input[
|
|
810
|
-
execute_as: Optional[pulumi.Input[
|
|
811
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
812
|
-
handler: Optional[pulumi.Input[
|
|
806
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
807
|
+
database: Optional[pulumi.Input[_builtins.str]] = None,
|
|
808
|
+
enable_console_output: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
809
|
+
execute_as: Optional[pulumi.Input[_builtins.str]] = None,
|
|
810
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
811
|
+
handler: Optional[pulumi.Input[_builtins.str]] = None,
|
|
813
812
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaImportArgs', 'ProcedureJavaImportArgsDict']]]]] = None,
|
|
814
|
-
is_secure: Optional[pulumi.Input[
|
|
815
|
-
log_level: Optional[pulumi.Input[
|
|
816
|
-
metric_level: Optional[pulumi.Input[
|
|
817
|
-
name: Optional[pulumi.Input[
|
|
818
|
-
null_input_behavior: Optional[pulumi.Input[
|
|
819
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
820
|
-
procedure_definition: Optional[pulumi.Input[
|
|
821
|
-
return_type: Optional[pulumi.Input[
|
|
822
|
-
runtime_version: Optional[pulumi.Input[
|
|
823
|
-
schema: Optional[pulumi.Input[
|
|
813
|
+
is_secure: Optional[pulumi.Input[_builtins.str]] = None,
|
|
814
|
+
log_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
815
|
+
metric_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
816
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
817
|
+
null_input_behavior: Optional[pulumi.Input[_builtins.str]] = None,
|
|
818
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
819
|
+
procedure_definition: Optional[pulumi.Input[_builtins.str]] = None,
|
|
820
|
+
return_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
821
|
+
runtime_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
822
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
824
823
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaSecretArgs', 'ProcedureJavaSecretArgsDict']]]]] = None,
|
|
825
|
-
snowpark_package: Optional[pulumi.Input[
|
|
824
|
+
snowpark_package: Optional[pulumi.Input[_builtins.str]] = None,
|
|
826
825
|
target_path: Optional[pulumi.Input[Union['ProcedureJavaTargetPathArgs', 'ProcedureJavaTargetPathArgsDict']]] = None,
|
|
827
|
-
trace_level: Optional[pulumi.Input[
|
|
826
|
+
trace_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
828
827
|
__props__=None):
|
|
829
828
|
"""
|
|
830
829
|
## Import
|
|
@@ -840,27 +839,27 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
840
839
|
:param str resource_name: The name of the resource.
|
|
841
840
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
842
841
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaArgumentArgs', 'ProcedureJavaArgumentArgsDict']]]] 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.
|
|
843
|
-
:param pulumi.Input[
|
|
844
|
-
:param pulumi.Input[
|
|
845
|
-
:param pulumi.Input[
|
|
846
|
-
:param pulumi.Input[
|
|
847
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
848
|
-
:param pulumi.Input[
|
|
842
|
+
:param pulumi.Input[_builtins.str] comment: (Default: `user-defined procedure`) Specifies a comment for the procedure.
|
|
843
|
+
:param pulumi.Input[_builtins.str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
844
|
+
:param pulumi.Input[_builtins.bool] enable_console_output: Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
845
|
+
:param pulumi.Input[_builtins.str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
846
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] external_access_integrations: The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this procedure’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
847
|
+
:param pulumi.Input[_builtins.str] handler: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
849
848
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaImportArgs', 'ProcedureJavaImportArgsDict']]]] imports: The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on. If you are writing an in-line stored procedure, you can omit this clause, unless your code depends on classes defined outside the stored procedure or resource files. If you are writing a stored procedure with a staged handler, you must also include a path to the JAR file containing the stored procedure’s handler code. The IMPORTS definition cannot reference variables from arguments that are passed into the stored procedure. Each file in the IMPORTS clause must have a unique name, even if the files are in different subdirectories or different stages.
|
|
850
|
-
:param pulumi.Input[
|
|
851
|
-
:param pulumi.Input[
|
|
852
|
-
:param pulumi.Input[
|
|
853
|
-
:param pulumi.Input[
|
|
854
|
-
:param pulumi.Input[
|
|
855
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
856
|
-
:param pulumi.Input[
|
|
857
|
-
:param pulumi.Input[
|
|
858
|
-
:param pulumi.Input[
|
|
859
|
-
:param pulumi.Input[
|
|
849
|
+
:param pulumi.Input[_builtins.str] is_secure: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
850
|
+
:param pulumi.Input[_builtins.str] log_level: LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
851
|
+
:param pulumi.Input[_builtins.str] metric_level: METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
852
|
+
:param pulumi.Input[_builtins.str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
853
|
+
:param pulumi.Input[_builtins.str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
854
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] packages: List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
855
|
+
:param pulumi.Input[_builtins.str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Java source code. For more information, see [Java (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-java). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
856
|
+
:param pulumi.Input[_builtins.str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Java Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-java-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 ()`).
|
|
857
|
+
:param pulumi.Input[_builtins.str] runtime_version: The language runtime version to use. Currently, the supported versions are: 11.
|
|
858
|
+
:param pulumi.Input[_builtins.str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
860
859
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaSecretArgs', 'ProcedureJavaSecretArgsDict']]]] 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.
|
|
861
|
-
:param pulumi.Input[
|
|
860
|
+
:param pulumi.Input[_builtins.str] snowpark_package: The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
862
861
|
:param pulumi.Input[Union['ProcedureJavaTargetPathArgs', 'ProcedureJavaTargetPathArgsDict']] target_path: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
863
|
-
:param pulumi.Input[
|
|
862
|
+
:param pulumi.Input[_builtins.str] trace_level: Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
864
863
|
"""
|
|
865
864
|
...
|
|
866
865
|
@overload
|
|
@@ -895,27 +894,27 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
895
894
|
resource_name: str,
|
|
896
895
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
897
896
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaArgumentArgs', 'ProcedureJavaArgumentArgsDict']]]]] = None,
|
|
898
|
-
comment: Optional[pulumi.Input[
|
|
899
|
-
database: Optional[pulumi.Input[
|
|
900
|
-
enable_console_output: Optional[pulumi.Input[
|
|
901
|
-
execute_as: Optional[pulumi.Input[
|
|
902
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
903
|
-
handler: Optional[pulumi.Input[
|
|
897
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
898
|
+
database: Optional[pulumi.Input[_builtins.str]] = None,
|
|
899
|
+
enable_console_output: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
900
|
+
execute_as: Optional[pulumi.Input[_builtins.str]] = None,
|
|
901
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
902
|
+
handler: Optional[pulumi.Input[_builtins.str]] = None,
|
|
904
903
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaImportArgs', 'ProcedureJavaImportArgsDict']]]]] = None,
|
|
905
|
-
is_secure: Optional[pulumi.Input[
|
|
906
|
-
log_level: Optional[pulumi.Input[
|
|
907
|
-
metric_level: Optional[pulumi.Input[
|
|
908
|
-
name: Optional[pulumi.Input[
|
|
909
|
-
null_input_behavior: Optional[pulumi.Input[
|
|
910
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
911
|
-
procedure_definition: Optional[pulumi.Input[
|
|
912
|
-
return_type: Optional[pulumi.Input[
|
|
913
|
-
runtime_version: Optional[pulumi.Input[
|
|
914
|
-
schema: Optional[pulumi.Input[
|
|
904
|
+
is_secure: Optional[pulumi.Input[_builtins.str]] = None,
|
|
905
|
+
log_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
906
|
+
metric_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
907
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
908
|
+
null_input_behavior: Optional[pulumi.Input[_builtins.str]] = None,
|
|
909
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
910
|
+
procedure_definition: Optional[pulumi.Input[_builtins.str]] = None,
|
|
911
|
+
return_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
912
|
+
runtime_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
913
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
915
914
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaSecretArgs', 'ProcedureJavaSecretArgsDict']]]]] = None,
|
|
916
|
-
snowpark_package: Optional[pulumi.Input[
|
|
915
|
+
snowpark_package: Optional[pulumi.Input[_builtins.str]] = None,
|
|
917
916
|
target_path: Optional[pulumi.Input[Union['ProcedureJavaTargetPathArgs', 'ProcedureJavaTargetPathArgsDict']]] = None,
|
|
918
|
-
trace_level: Optional[pulumi.Input[
|
|
917
|
+
trace_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
919
918
|
__props__=None):
|
|
920
919
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
921
920
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -974,31 +973,31 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
974
973
|
id: pulumi.Input[str],
|
|
975
974
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
976
975
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaArgumentArgs', 'ProcedureJavaArgumentArgsDict']]]]] = None,
|
|
977
|
-
comment: Optional[pulumi.Input[
|
|
978
|
-
database: Optional[pulumi.Input[
|
|
979
|
-
enable_console_output: Optional[pulumi.Input[
|
|
980
|
-
execute_as: Optional[pulumi.Input[
|
|
981
|
-
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
982
|
-
fully_qualified_name: Optional[pulumi.Input[
|
|
983
|
-
handler: Optional[pulumi.Input[
|
|
976
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
977
|
+
database: Optional[pulumi.Input[_builtins.str]] = None,
|
|
978
|
+
enable_console_output: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
979
|
+
execute_as: Optional[pulumi.Input[_builtins.str]] = None,
|
|
980
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
981
|
+
fully_qualified_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
982
|
+
handler: Optional[pulumi.Input[_builtins.str]] = None,
|
|
984
983
|
imports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaImportArgs', 'ProcedureJavaImportArgsDict']]]]] = None,
|
|
985
|
-
is_secure: Optional[pulumi.Input[
|
|
986
|
-
log_level: Optional[pulumi.Input[
|
|
987
|
-
metric_level: Optional[pulumi.Input[
|
|
988
|
-
name: Optional[pulumi.Input[
|
|
989
|
-
null_input_behavior: Optional[pulumi.Input[
|
|
990
|
-
packages: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
984
|
+
is_secure: Optional[pulumi.Input[_builtins.str]] = None,
|
|
985
|
+
log_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
986
|
+
metric_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
987
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
988
|
+
null_input_behavior: Optional[pulumi.Input[_builtins.str]] = None,
|
|
989
|
+
packages: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
991
990
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaParameterArgs', 'ProcedureJavaParameterArgsDict']]]]] = None,
|
|
992
|
-
procedure_definition: Optional[pulumi.Input[
|
|
993
|
-
procedure_language: Optional[pulumi.Input[
|
|
994
|
-
return_type: Optional[pulumi.Input[
|
|
995
|
-
runtime_version: Optional[pulumi.Input[
|
|
996
|
-
schema: Optional[pulumi.Input[
|
|
991
|
+
procedure_definition: Optional[pulumi.Input[_builtins.str]] = None,
|
|
992
|
+
procedure_language: Optional[pulumi.Input[_builtins.str]] = None,
|
|
993
|
+
return_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
994
|
+
runtime_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
995
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
997
996
|
secrets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaSecretArgs', 'ProcedureJavaSecretArgsDict']]]]] = None,
|
|
998
997
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaShowOutputArgs', 'ProcedureJavaShowOutputArgsDict']]]]] = None,
|
|
999
|
-
snowpark_package: Optional[pulumi.Input[
|
|
998
|
+
snowpark_package: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1000
999
|
target_path: Optional[pulumi.Input[Union['ProcedureJavaTargetPathArgs', 'ProcedureJavaTargetPathArgsDict']]] = None,
|
|
1001
|
-
trace_level: Optional[pulumi.Input[
|
|
1000
|
+
trace_level: Optional[pulumi.Input[_builtins.str]] = None) -> 'ProcedureJava':
|
|
1002
1001
|
"""
|
|
1003
1002
|
Get an existing ProcedureJava resource's state with the given name, id, and optional extra
|
|
1004
1003
|
properties used to qualify the lookup.
|
|
@@ -1007,31 +1006,31 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
1007
1006
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1008
1007
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1009
1008
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaArgumentArgs', 'ProcedureJavaArgumentArgsDict']]]] 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.
|
|
1010
|
-
:param pulumi.Input[
|
|
1011
|
-
:param pulumi.Input[
|
|
1012
|
-
:param pulumi.Input[
|
|
1013
|
-
:param pulumi.Input[
|
|
1014
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
1015
|
-
:param pulumi.Input[
|
|
1016
|
-
:param pulumi.Input[
|
|
1009
|
+
:param pulumi.Input[_builtins.str] comment: (Default: `user-defined procedure`) Specifies a comment for the procedure.
|
|
1010
|
+
:param pulumi.Input[_builtins.str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1011
|
+
:param pulumi.Input[_builtins.bool] enable_console_output: Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
1012
|
+
:param pulumi.Input[_builtins.str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
1013
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] external_access_integrations: The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this procedure’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
1014
|
+
:param pulumi.Input[_builtins.str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
1015
|
+
:param pulumi.Input[_builtins.str] handler: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
1017
1016
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaImportArgs', 'ProcedureJavaImportArgsDict']]]] imports: The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on. If you are writing an in-line stored procedure, you can omit this clause, unless your code depends on classes defined outside the stored procedure or resource files. If you are writing a stored procedure with a staged handler, you must also include a path to the JAR file containing the stored procedure’s handler code. The IMPORTS definition cannot reference variables from arguments that are passed into the stored procedure. Each file in the IMPORTS clause must have a unique name, even if the files are in different subdirectories or different stages.
|
|
1018
|
-
:param pulumi.Input[
|
|
1019
|
-
:param pulumi.Input[
|
|
1020
|
-
:param pulumi.Input[
|
|
1021
|
-
:param pulumi.Input[
|
|
1022
|
-
:param pulumi.Input[
|
|
1023
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
1017
|
+
:param pulumi.Input[_builtins.str] is_secure: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
1018
|
+
:param pulumi.Input[_builtins.str] log_level: LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
1019
|
+
:param pulumi.Input[_builtins.str] metric_level: METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
1020
|
+
:param pulumi.Input[_builtins.str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1021
|
+
:param pulumi.Input[_builtins.str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
1022
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] packages: List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
1024
1023
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaParameterArgs', 'ProcedureJavaParameterArgsDict']]]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
1025
|
-
:param pulumi.Input[
|
|
1026
|
-
:param pulumi.Input[
|
|
1027
|
-
:param pulumi.Input[
|
|
1028
|
-
:param pulumi.Input[
|
|
1029
|
-
:param pulumi.Input[
|
|
1024
|
+
:param pulumi.Input[_builtins.str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Java source code. For more information, see [Java (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-java). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
1025
|
+
:param pulumi.Input[_builtins.str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
1026
|
+
:param pulumi.Input[_builtins.str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Java Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-java-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 ()`).
|
|
1027
|
+
:param pulumi.Input[_builtins.str] runtime_version: The language runtime version to use. Currently, the supported versions are: 11.
|
|
1028
|
+
:param pulumi.Input[_builtins.str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1030
1029
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaSecretArgs', 'ProcedureJavaSecretArgsDict']]]] 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.
|
|
1031
1030
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavaShowOutputArgs', 'ProcedureJavaShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
1032
|
-
:param pulumi.Input[
|
|
1031
|
+
:param pulumi.Input[_builtins.str] snowpark_package: The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
1033
1032
|
:param pulumi.Input[Union['ProcedureJavaTargetPathArgs', 'ProcedureJavaTargetPathArgsDict']] target_path: Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
1034
|
-
:param pulumi.Input[
|
|
1033
|
+
:param pulumi.Input[_builtins.str] trace_level: Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
1035
1034
|
"""
|
|
1036
1035
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1037
1036
|
|
|
@@ -1065,7 +1064,7 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
1065
1064
|
__props__.__dict__["trace_level"] = trace_level
|
|
1066
1065
|
return ProcedureJava(resource_name, opts=opts, __props__=__props__)
|
|
1067
1066
|
|
|
1068
|
-
@property
|
|
1067
|
+
@_builtins.property
|
|
1069
1068
|
@pulumi.getter
|
|
1070
1069
|
def arguments(self) -> pulumi.Output[Optional[Sequence['outputs.ProcedureJavaArgument']]]:
|
|
1071
1070
|
"""
|
|
@@ -1073,63 +1072,63 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
1073
1072
|
"""
|
|
1074
1073
|
return pulumi.get(self, "arguments")
|
|
1075
1074
|
|
|
1076
|
-
@property
|
|
1075
|
+
@_builtins.property
|
|
1077
1076
|
@pulumi.getter
|
|
1078
|
-
def comment(self) -> pulumi.Output[Optional[
|
|
1077
|
+
def comment(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1079
1078
|
"""
|
|
1080
1079
|
(Default: `user-defined procedure`) Specifies a comment for the procedure.
|
|
1081
1080
|
"""
|
|
1082
1081
|
return pulumi.get(self, "comment")
|
|
1083
1082
|
|
|
1084
|
-
@property
|
|
1083
|
+
@_builtins.property
|
|
1085
1084
|
@pulumi.getter
|
|
1086
|
-
def database(self) -> pulumi.Output[
|
|
1085
|
+
def database(self) -> pulumi.Output[_builtins.str]:
|
|
1087
1086
|
"""
|
|
1088
1087
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1089
1088
|
"""
|
|
1090
1089
|
return pulumi.get(self, "database")
|
|
1091
1090
|
|
|
1092
|
-
@property
|
|
1091
|
+
@_builtins.property
|
|
1093
1092
|
@pulumi.getter(name="enableConsoleOutput")
|
|
1094
|
-
def enable_console_output(self) -> pulumi.Output[
|
|
1093
|
+
def enable_console_output(self) -> pulumi.Output[_builtins.bool]:
|
|
1095
1094
|
"""
|
|
1096
1095
|
Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
1097
1096
|
"""
|
|
1098
1097
|
return pulumi.get(self, "enable_console_output")
|
|
1099
1098
|
|
|
1100
|
-
@property
|
|
1099
|
+
@_builtins.property
|
|
1101
1100
|
@pulumi.getter(name="executeAs")
|
|
1102
|
-
def execute_as(self) -> pulumi.Output[Optional[
|
|
1101
|
+
def execute_as(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1103
1102
|
"""
|
|
1104
1103
|
Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
1105
1104
|
"""
|
|
1106
1105
|
return pulumi.get(self, "execute_as")
|
|
1107
1106
|
|
|
1108
|
-
@property
|
|
1107
|
+
@_builtins.property
|
|
1109
1108
|
@pulumi.getter(name="externalAccessIntegrations")
|
|
1110
|
-
def external_access_integrations(self) -> pulumi.Output[Optional[Sequence[
|
|
1109
|
+
def external_access_integrations(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1111
1110
|
"""
|
|
1112
1111
|
The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this procedure’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
|
|
1113
1112
|
"""
|
|
1114
1113
|
return pulumi.get(self, "external_access_integrations")
|
|
1115
1114
|
|
|
1116
|
-
@property
|
|
1115
|
+
@_builtins.property
|
|
1117
1116
|
@pulumi.getter(name="fullyQualifiedName")
|
|
1118
|
-
def fully_qualified_name(self) -> pulumi.Output[
|
|
1117
|
+
def fully_qualified_name(self) -> pulumi.Output[_builtins.str]:
|
|
1119
1118
|
"""
|
|
1120
1119
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
1121
1120
|
"""
|
|
1122
1121
|
return pulumi.get(self, "fully_qualified_name")
|
|
1123
1122
|
|
|
1124
|
-
@property
|
|
1123
|
+
@_builtins.property
|
|
1125
1124
|
@pulumi.getter
|
|
1126
|
-
def handler(self) -> pulumi.Output[
|
|
1125
|
+
def handler(self) -> pulumi.Output[_builtins.str]:
|
|
1127
1126
|
"""
|
|
1128
1127
|
Use the fully qualified name of the method or function for the stored procedure. This is typically in the following form `com.my_company.my_package.MyClass.myMethod` where `com.my_company.my_package` corresponds to the package containing the object or class: `package com.my_company.my_package;`.
|
|
1129
1128
|
"""
|
|
1130
1129
|
return pulumi.get(self, "handler")
|
|
1131
1130
|
|
|
1132
|
-
@property
|
|
1131
|
+
@_builtins.property
|
|
1133
1132
|
@pulumi.getter
|
|
1134
1133
|
def imports(self) -> pulumi.Output[Optional[Sequence['outputs.ProcedureJavaImport']]]:
|
|
1135
1134
|
"""
|
|
@@ -1137,55 +1136,55 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
1137
1136
|
"""
|
|
1138
1137
|
return pulumi.get(self, "imports")
|
|
1139
1138
|
|
|
1140
|
-
@property
|
|
1139
|
+
@_builtins.property
|
|
1141
1140
|
@pulumi.getter(name="isSecure")
|
|
1142
|
-
def is_secure(self) -> pulumi.Output[Optional[
|
|
1141
|
+
def is_secure(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1143
1142
|
"""
|
|
1144
1143
|
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) 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.
|
|
1145
1144
|
"""
|
|
1146
1145
|
return pulumi.get(self, "is_secure")
|
|
1147
1146
|
|
|
1148
|
-
@property
|
|
1147
|
+
@_builtins.property
|
|
1149
1148
|
@pulumi.getter(name="logLevel")
|
|
1150
|
-
def log_level(self) -> pulumi.Output[
|
|
1149
|
+
def log_level(self) -> pulumi.Output[_builtins.str]:
|
|
1151
1150
|
"""
|
|
1152
1151
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
1153
1152
|
"""
|
|
1154
1153
|
return pulumi.get(self, "log_level")
|
|
1155
1154
|
|
|
1156
|
-
@property
|
|
1155
|
+
@_builtins.property
|
|
1157
1156
|
@pulumi.getter(name="metricLevel")
|
|
1158
|
-
def metric_level(self) -> pulumi.Output[
|
|
1157
|
+
def metric_level(self) -> pulumi.Output[_builtins.str]:
|
|
1159
1158
|
"""
|
|
1160
1159
|
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
1161
1160
|
"""
|
|
1162
1161
|
return pulumi.get(self, "metric_level")
|
|
1163
1162
|
|
|
1164
|
-
@property
|
|
1163
|
+
@_builtins.property
|
|
1165
1164
|
@pulumi.getter
|
|
1166
|
-
def name(self) -> pulumi.Output[
|
|
1165
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
1167
1166
|
"""
|
|
1168
1167
|
The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1169
1168
|
"""
|
|
1170
1169
|
return pulumi.get(self, "name")
|
|
1171
1170
|
|
|
1172
|
-
@property
|
|
1171
|
+
@_builtins.property
|
|
1173
1172
|
@pulumi.getter(name="nullInputBehavior")
|
|
1174
|
-
def null_input_behavior(self) -> pulumi.Output[Optional[
|
|
1173
|
+
def null_input_behavior(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1175
1174
|
"""
|
|
1176
1175
|
Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
1177
1176
|
"""
|
|
1178
1177
|
return pulumi.get(self, "null_input_behavior")
|
|
1179
1178
|
|
|
1180
|
-
@property
|
|
1179
|
+
@_builtins.property
|
|
1181
1180
|
@pulumi.getter
|
|
1182
|
-
def packages(self) -> pulumi.Output[Optional[Sequence[
|
|
1181
|
+
def packages(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1183
1182
|
"""
|
|
1184
1183
|
List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowpark_package` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
1185
1184
|
"""
|
|
1186
1185
|
return pulumi.get(self, "packages")
|
|
1187
1186
|
|
|
1188
|
-
@property
|
|
1187
|
+
@_builtins.property
|
|
1189
1188
|
@pulumi.getter
|
|
1190
1189
|
def parameters(self) -> pulumi.Output[Sequence['outputs.ProcedureJavaParameter']]:
|
|
1191
1190
|
"""
|
|
@@ -1193,47 +1192,47 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
1193
1192
|
"""
|
|
1194
1193
|
return pulumi.get(self, "parameters")
|
|
1195
1194
|
|
|
1196
|
-
@property
|
|
1195
|
+
@_builtins.property
|
|
1197
1196
|
@pulumi.getter(name="procedureDefinition")
|
|
1198
|
-
def procedure_definition(self) -> pulumi.Output[Optional[
|
|
1197
|
+
def procedure_definition(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1199
1198
|
"""
|
|
1200
1199
|
Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be Java source code. For more information, see [Java (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-java). 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.
|
|
1201
1200
|
"""
|
|
1202
1201
|
return pulumi.get(self, "procedure_definition")
|
|
1203
1202
|
|
|
1204
|
-
@property
|
|
1203
|
+
@_builtins.property
|
|
1205
1204
|
@pulumi.getter(name="procedureLanguage")
|
|
1206
|
-
def procedure_language(self) -> pulumi.Output[
|
|
1205
|
+
def procedure_language(self) -> pulumi.Output[_builtins.str]:
|
|
1207
1206
|
"""
|
|
1208
1207
|
Specifies language for the procedure. Used to detect external changes.
|
|
1209
1208
|
"""
|
|
1210
1209
|
return pulumi.get(self, "procedure_language")
|
|
1211
1210
|
|
|
1212
|
-
@property
|
|
1211
|
+
@_builtins.property
|
|
1213
1212
|
@pulumi.getter(name="returnType")
|
|
1214
|
-
def return_type(self) -> pulumi.Output[
|
|
1213
|
+
def return_type(self) -> pulumi.Output[_builtins.str]:
|
|
1215
1214
|
"""
|
|
1216
1215
|
Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Java Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-java-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 ()`).
|
|
1217
1216
|
"""
|
|
1218
1217
|
return pulumi.get(self, "return_type")
|
|
1219
1218
|
|
|
1220
|
-
@property
|
|
1219
|
+
@_builtins.property
|
|
1221
1220
|
@pulumi.getter(name="runtimeVersion")
|
|
1222
|
-
def runtime_version(self) -> pulumi.Output[
|
|
1221
|
+
def runtime_version(self) -> pulumi.Output[_builtins.str]:
|
|
1223
1222
|
"""
|
|
1224
1223
|
The language runtime version to use. Currently, the supported versions are: 11.
|
|
1225
1224
|
"""
|
|
1226
1225
|
return pulumi.get(self, "runtime_version")
|
|
1227
1226
|
|
|
1228
|
-
@property
|
|
1227
|
+
@_builtins.property
|
|
1229
1228
|
@pulumi.getter
|
|
1230
|
-
def schema(self) -> pulumi.Output[
|
|
1229
|
+
def schema(self) -> pulumi.Output[_builtins.str]:
|
|
1231
1230
|
"""
|
|
1232
1231
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
1233
1232
|
"""
|
|
1234
1233
|
return pulumi.get(self, "schema")
|
|
1235
1234
|
|
|
1236
|
-
@property
|
|
1235
|
+
@_builtins.property
|
|
1237
1236
|
@pulumi.getter
|
|
1238
1237
|
def secrets(self) -> pulumi.Output[Optional[Sequence['outputs.ProcedureJavaSecret']]]:
|
|
1239
1238
|
"""
|
|
@@ -1241,7 +1240,7 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
1241
1240
|
"""
|
|
1242
1241
|
return pulumi.get(self, "secrets")
|
|
1243
1242
|
|
|
1244
|
-
@property
|
|
1243
|
+
@_builtins.property
|
|
1245
1244
|
@pulumi.getter(name="showOutputs")
|
|
1246
1245
|
def show_outputs(self) -> pulumi.Output[Sequence['outputs.ProcedureJavaShowOutput']]:
|
|
1247
1246
|
"""
|
|
@@ -1249,15 +1248,15 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
1249
1248
|
"""
|
|
1250
1249
|
return pulumi.get(self, "show_outputs")
|
|
1251
1250
|
|
|
1252
|
-
@property
|
|
1251
|
+
@_builtins.property
|
|
1253
1252
|
@pulumi.getter(name="snowparkPackage")
|
|
1254
|
-
def snowpark_package(self) -> pulumi.Output[
|
|
1253
|
+
def snowpark_package(self) -> pulumi.Output[_builtins.str]:
|
|
1255
1254
|
"""
|
|
1256
1255
|
The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
1257
1256
|
"""
|
|
1258
1257
|
return pulumi.get(self, "snowpark_package")
|
|
1259
1258
|
|
|
1260
|
-
@property
|
|
1259
|
+
@_builtins.property
|
|
1261
1260
|
@pulumi.getter(name="targetPath")
|
|
1262
1261
|
def target_path(self) -> pulumi.Output[Optional['outputs.ProcedureJavaTargetPath']]:
|
|
1263
1262
|
"""
|
|
@@ -1265,9 +1264,9 @@ class ProcedureJava(pulumi.CustomResource):
|
|
|
1265
1264
|
"""
|
|
1266
1265
|
return pulumi.get(self, "target_path")
|
|
1267
1266
|
|
|
1268
|
-
@property
|
|
1267
|
+
@_builtins.property
|
|
1269
1268
|
@pulumi.getter(name="traceLevel")
|
|
1270
|
-
def trace_level(self) -> pulumi.Output[
|
|
1269
|
+
def trace_level(self) -> pulumi.Output[_builtins.str]:
|
|
1271
1270
|
"""
|
|
1272
1271
|
Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
1273
1272
|
"""
|