pulumi-snowflake 1.2.0a1743489585__py3-none-any.whl → 1.2.0a1744183688__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/__init__.py +1 -0
- pulumi_snowflake/_inputs.py +12288 -12287
- pulumi_snowflake/account.py +186 -185
- pulumi_snowflake/account_authentication_policy_attachment.py +15 -14
- pulumi_snowflake/account_parameter.py +29 -28
- pulumi_snowflake/account_password_policy_attachment.py +15 -14
- pulumi_snowflake/account_role.py +32 -31
- pulumi_snowflake/alert.py +120 -119
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +158 -157
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +144 -143
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +154 -153
- pulumi_snowflake/api_integration.py +203 -202
- pulumi_snowflake/authentication_policy.py +134 -133
- pulumi_snowflake/config/__init__.py +1 -0
- pulumi_snowflake/config/__init__.pyi +1 -0
- pulumi_snowflake/config/outputs.py +16 -15
- pulumi_snowflake/config/vars.py +1 -0
- pulumi_snowflake/cortex_search_service.py +141 -140
- pulumi_snowflake/database.py +288 -287
- pulumi_snowflake/database_role.py +50 -49
- pulumi_snowflake/dynamic_table.py +218 -217
- pulumi_snowflake/email_notification_integration.py +56 -55
- pulumi_snowflake/execute.py +50 -49
- pulumi_snowflake/external_function.py +225 -224
- pulumi_snowflake/external_oauth_integration.py +232 -231
- pulumi_snowflake/external_table.py +197 -196
- pulumi_snowflake/external_volume.py +50 -49
- pulumi_snowflake/failover_group.py +106 -105
- pulumi_snowflake/file_format.py +512 -511
- pulumi_snowflake/function_java.py +249 -248
- pulumi_snowflake/function_javascript.py +193 -192
- pulumi_snowflake/function_python.py +263 -262
- pulumi_snowflake/function_scala.py +249 -248
- pulumi_snowflake/function_sql.py +179 -178
- pulumi_snowflake/get_account_roles.py +12 -11
- pulumi_snowflake/get_accounts.py +12 -11
- pulumi_snowflake/get_alerts.py +17 -16
- pulumi_snowflake/get_connections.py +7 -6
- pulumi_snowflake/get_cortex_search_services.py +12 -11
- pulumi_snowflake/get_current_account.py +5 -4
- pulumi_snowflake/get_current_role.py +3 -2
- pulumi_snowflake/get_database.py +15 -14
- pulumi_snowflake/get_database_role.py +14 -13
- pulumi_snowflake/get_database_roles.py +12 -11
- pulumi_snowflake/get_databases.py +22 -21
- pulumi_snowflake/get_dynamic_tables.py +7 -6
- pulumi_snowflake/get_external_functions.py +12 -11
- pulumi_snowflake/get_external_tables.py +12 -11
- pulumi_snowflake/get_failover_groups.py +7 -6
- pulumi_snowflake/get_file_formats.py +12 -11
- pulumi_snowflake/get_functions.py +12 -11
- pulumi_snowflake/get_grants.py +2 -1
- pulumi_snowflake/get_masking_policies.py +12 -11
- pulumi_snowflake/get_materialized_views.py +12 -11
- pulumi_snowflake/get_network_policies.py +12 -11
- pulumi_snowflake/get_parameters.py +27 -26
- pulumi_snowflake/get_pipes.py +12 -11
- pulumi_snowflake/get_procedures.py +12 -11
- pulumi_snowflake/get_resource_monitors.py +7 -6
- pulumi_snowflake/get_row_access_policies.py +12 -11
- pulumi_snowflake/get_schemas.py +22 -21
- pulumi_snowflake/get_secrets.py +12 -11
- pulumi_snowflake/get_security_integrations.py +12 -11
- pulumi_snowflake/get_sequences.py +12 -11
- pulumi_snowflake/get_shares.py +7 -6
- pulumi_snowflake/get_stages.py +12 -11
- pulumi_snowflake/get_storage_integrations.py +2 -1
- pulumi_snowflake/get_streamlits.py +12 -11
- pulumi_snowflake/get_streams.py +17 -16
- pulumi_snowflake/get_system_generate_scim_access_token.py +8 -7
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +8 -7
- pulumi_snowflake/get_system_get_private_link_config.py +11 -10
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +4 -3
- pulumi_snowflake/get_tables.py +12 -11
- pulumi_snowflake/get_tags.py +7 -6
- pulumi_snowflake/get_tasks.py +22 -21
- pulumi_snowflake/get_users.py +22 -21
- pulumi_snowflake/get_views.py +17 -16
- pulumi_snowflake/get_warehouses.py +17 -16
- pulumi_snowflake/grant_account_role.py +43 -42
- pulumi_snowflake/grant_application_role.py +43 -42
- pulumi_snowflake/grant_database_role.py +57 -56
- pulumi_snowflake/grant_ownership.py +43 -42
- pulumi_snowflake/grant_privileges_to_account_role.py +95 -94
- pulumi_snowflake/grant_privileges_to_database_role.py +95 -94
- pulumi_snowflake/grant_privileges_to_share.py +127 -126
- pulumi_snowflake/legacy_service_user.py +1039 -1038
- pulumi_snowflake/managed_account.py +113 -112
- pulumi_snowflake/masking_policy.py +106 -105
- pulumi_snowflake/materialized_view.py +120 -119
- pulumi_snowflake/network_policy.py +92 -91
- pulumi_snowflake/network_policy_attachment.py +43 -42
- pulumi_snowflake/network_rule.py +106 -105
- pulumi_snowflake/notification_integration.py +238 -237
- pulumi_snowflake/oauth_integration_for_custom_clients.py +210 -209
- pulumi_snowflake/oauth_integration_for_partner_applications.py +134 -133
- pulumi_snowflake/object_parameter.py +57 -56
- pulumi_snowflake/outputs.py +9273 -9272
- pulumi_snowflake/password_policy.py +246 -245
- pulumi_snowflake/pipe.py +148 -147
- pulumi_snowflake/primary_connection.py +55 -54
- pulumi_snowflake/procedure_java.py +267 -266
- pulumi_snowflake/procedure_javascript.py +197 -196
- pulumi_snowflake/procedure_python.py +267 -266
- pulumi_snowflake/procedure_scala.py +267 -266
- pulumi_snowflake/procedure_sql.py +197 -196
- pulumi_snowflake/provider.py +303 -302
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +134 -133
- pulumi_snowflake/row_access_policy.py +78 -77
- pulumi_snowflake/saml2_integration.py +246 -245
- pulumi_snowflake/schema.py +316 -315
- pulumi_snowflake/scim_integration.py +106 -105
- pulumi_snowflake/secondary_connection.py +57 -56
- pulumi_snowflake/secondary_database.py +288 -287
- pulumi_snowflake/secret_with_authorization_code_grant.py +109 -108
- pulumi_snowflake/secret_with_basic_authentication.py +95 -94
- pulumi_snowflake/secret_with_client_credentials.py +99 -98
- pulumi_snowflake/secret_with_generic_string.py +81 -80
- pulumi_snowflake/sequence.py +99 -98
- pulumi_snowflake/service_user.py +1015 -1014
- pulumi_snowflake/share.py +50 -49
- pulumi_snowflake/shared_database.py +246 -245
- pulumi_snowflake/stage.py +190 -189
- pulumi_snowflake/storage_integration.py +166 -165
- pulumi_snowflake/stream_on_directory_table.py +100 -99
- pulumi_snowflake/stream_on_external_table.py +114 -113
- pulumi_snowflake/stream_on_table.py +124 -123
- pulumi_snowflake/stream_on_view.py +124 -123
- pulumi_snowflake/streamlit.py +148 -147
- pulumi_snowflake/table.py +113 -112
- pulumi_snowflake/table_column_masking_policy_application.py +43 -42
- pulumi_snowflake/table_constraint.py +155 -154
- pulumi_snowflake/tag.py +92 -91
- pulumi_snowflake/tag_association.py +71 -70
- pulumi_snowflake/task.py +1002 -1001
- pulumi_snowflake/user.py +1101 -1100
- pulumi_snowflake/user_authentication_policy_attachment.py +29 -28
- pulumi_snowflake/user_password_policy_attachment.py +29 -28
- pulumi_snowflake/user_public_keys.py +43 -42
- pulumi_snowflake/view.py +136 -135
- pulumi_snowflake/warehouse.py +232 -231
- {pulumi_snowflake-1.2.0a1743489585.dist-info → pulumi_snowflake-1.2.0a1744183688.dist-info}/METADATA +1 -1
- pulumi_snowflake-1.2.0a1744183688.dist-info/RECORD +148 -0
- pulumi_snowflake-1.2.0a1743489585.dist-info/RECORD +0 -148
- {pulumi_snowflake-1.2.0a1743489585.dist-info → pulumi_snowflake-1.2.0a1744183688.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-1.2.0a1743489585.dist-info → pulumi_snowflake-1.2.0a1744183688.dist-info}/top_level.txt +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
+
import builtins
|
|
5
6
|
import copy
|
|
6
7
|
import warnings
|
|
7
8
|
import sys
|
|
@@ -21,36 +22,36 @@ __all__ = ['ProcedureSqlArgs', 'ProcedureSql']
|
|
|
21
22
|
@pulumi.input_type
|
|
22
23
|
class ProcedureSqlArgs:
|
|
23
24
|
def __init__(__self__, *,
|
|
24
|
-
database: pulumi.Input[str],
|
|
25
|
-
procedure_definition: pulumi.Input[str],
|
|
26
|
-
return_type: pulumi.Input[str],
|
|
27
|
-
schema: pulumi.Input[str],
|
|
25
|
+
database: pulumi.Input[builtins.str],
|
|
26
|
+
procedure_definition: pulumi.Input[builtins.str],
|
|
27
|
+
return_type: pulumi.Input[builtins.str],
|
|
28
|
+
schema: pulumi.Input[builtins.str],
|
|
28
29
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureSqlArgumentArgs']]]] = None,
|
|
29
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
30
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
31
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
32
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
33
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
34
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
35
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
36
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
37
|
-
trace_level: Optional[pulumi.Input[str]] = None):
|
|
30
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
31
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
32
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
33
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
34
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
35
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
36
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
37
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
38
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None):
|
|
38
39
|
"""
|
|
39
40
|
The set of arguments for constructing a ProcedureSql resource.
|
|
40
|
-
:param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
41
|
-
:param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be SQL source code. For more information, see [Snowflake Scripting](https://docs.snowflake.com/en/developer-guide/snowflake-scripting/index). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
42
|
-
:param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL data type](https://docs.snowflake.com/en/sql-reference-data-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
43
|
-
:param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
41
|
+
: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: `|`, `.`, `"`.
|
|
42
|
+
: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 SQL source code. For more information, see [Snowflake Scripting](https://docs.snowflake.com/en/developer-guide/snowflake-scripting/index). 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.
|
|
43
|
+
: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 data type](https://docs.snowflake.com/en/sql-reference-data-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
44
|
+
: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: `|`, `.`, `"`.
|
|
44
45
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureSqlArgumentArgs']]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
|
|
45
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
46
|
-
:param pulumi.Input[bool] enable_console_output: Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
47
|
-
:param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
48
|
-
:param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
49
|
-
:param pulumi.Input[str] log_level: LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
50
|
-
:param pulumi.Input[str] metric_level: METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
51
|
-
:param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
52
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
53
|
-
:param pulumi.Input[str] trace_level: Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
46
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the procedure.
|
|
47
|
+
: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).
|
|
48
|
+
: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`.
|
|
49
|
+
:param pulumi.Input[builtins.str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
50
|
+
: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).
|
|
51
|
+
: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).
|
|
52
|
+
: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: `|`, `.`, `"`.
|
|
53
|
+
: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`.
|
|
54
|
+
: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).
|
|
54
55
|
"""
|
|
55
56
|
pulumi.set(__self__, "database", database)
|
|
56
57
|
pulumi.set(__self__, "procedure_definition", procedure_definition)
|
|
@@ -79,50 +80,50 @@ class ProcedureSqlArgs:
|
|
|
79
80
|
|
|
80
81
|
@property
|
|
81
82
|
@pulumi.getter
|
|
82
|
-
def database(self) -> pulumi.Input[str]:
|
|
83
|
+
def database(self) -> pulumi.Input[builtins.str]:
|
|
83
84
|
"""
|
|
84
85
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
85
86
|
"""
|
|
86
87
|
return pulumi.get(self, "database")
|
|
87
88
|
|
|
88
89
|
@database.setter
|
|
89
|
-
def database(self, value: pulumi.Input[str]):
|
|
90
|
+
def database(self, value: pulumi.Input[builtins.str]):
|
|
90
91
|
pulumi.set(self, "database", value)
|
|
91
92
|
|
|
92
93
|
@property
|
|
93
94
|
@pulumi.getter(name="procedureDefinition")
|
|
94
|
-
def procedure_definition(self) -> pulumi.Input[str]:
|
|
95
|
+
def procedure_definition(self) -> pulumi.Input[builtins.str]:
|
|
95
96
|
"""
|
|
96
97
|
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 SQL source code. For more information, see [Snowflake Scripting](https://docs.snowflake.com/en/developer-guide/snowflake-scripting/index). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
97
98
|
"""
|
|
98
99
|
return pulumi.get(self, "procedure_definition")
|
|
99
100
|
|
|
100
101
|
@procedure_definition.setter
|
|
101
|
-
def procedure_definition(self, value: pulumi.Input[str]):
|
|
102
|
+
def procedure_definition(self, value: pulumi.Input[builtins.str]):
|
|
102
103
|
pulumi.set(self, "procedure_definition", value)
|
|
103
104
|
|
|
104
105
|
@property
|
|
105
106
|
@pulumi.getter(name="returnType")
|
|
106
|
-
def return_type(self) -> pulumi.Input[str]:
|
|
107
|
+
def return_type(self) -> pulumi.Input[builtins.str]:
|
|
107
108
|
"""
|
|
108
109
|
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 data type](https://docs.snowflake.com/en/sql-reference-data-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
109
110
|
"""
|
|
110
111
|
return pulumi.get(self, "return_type")
|
|
111
112
|
|
|
112
113
|
@return_type.setter
|
|
113
|
-
def return_type(self, value: pulumi.Input[str]):
|
|
114
|
+
def return_type(self, value: pulumi.Input[builtins.str]):
|
|
114
115
|
pulumi.set(self, "return_type", value)
|
|
115
116
|
|
|
116
117
|
@property
|
|
117
118
|
@pulumi.getter
|
|
118
|
-
def schema(self) -> pulumi.Input[str]:
|
|
119
|
+
def schema(self) -> pulumi.Input[builtins.str]:
|
|
119
120
|
"""
|
|
120
121
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
121
122
|
"""
|
|
122
123
|
return pulumi.get(self, "schema")
|
|
123
124
|
|
|
124
125
|
@schema.setter
|
|
125
|
-
def schema(self, value: pulumi.Input[str]):
|
|
126
|
+
def schema(self, value: pulumi.Input[builtins.str]):
|
|
126
127
|
pulumi.set(self, "schema", value)
|
|
127
128
|
|
|
128
129
|
@property
|
|
@@ -139,110 +140,110 @@ class ProcedureSqlArgs:
|
|
|
139
140
|
|
|
140
141
|
@property
|
|
141
142
|
@pulumi.getter
|
|
142
|
-
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
143
|
+
def comment(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
143
144
|
"""
|
|
144
145
|
Specifies a comment for the procedure.
|
|
145
146
|
"""
|
|
146
147
|
return pulumi.get(self, "comment")
|
|
147
148
|
|
|
148
149
|
@comment.setter
|
|
149
|
-
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
150
|
+
def comment(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
150
151
|
pulumi.set(self, "comment", value)
|
|
151
152
|
|
|
152
153
|
@property
|
|
153
154
|
@pulumi.getter(name="enableConsoleOutput")
|
|
154
|
-
def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
|
|
155
|
+
def enable_console_output(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
155
156
|
"""
|
|
156
157
|
Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
157
158
|
"""
|
|
158
159
|
return pulumi.get(self, "enable_console_output")
|
|
159
160
|
|
|
160
161
|
@enable_console_output.setter
|
|
161
|
-
def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
|
|
162
|
+
def enable_console_output(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
162
163
|
pulumi.set(self, "enable_console_output", value)
|
|
163
164
|
|
|
164
165
|
@property
|
|
165
166
|
@pulumi.getter(name="executeAs")
|
|
166
|
-
def execute_as(self) -> Optional[pulumi.Input[str]]:
|
|
167
|
+
def execute_as(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
167
168
|
"""
|
|
168
169
|
Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
169
170
|
"""
|
|
170
171
|
return pulumi.get(self, "execute_as")
|
|
171
172
|
|
|
172
173
|
@execute_as.setter
|
|
173
|
-
def execute_as(self, value: Optional[pulumi.Input[str]]):
|
|
174
|
+
def execute_as(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
174
175
|
pulumi.set(self, "execute_as", value)
|
|
175
176
|
|
|
176
177
|
@property
|
|
177
178
|
@pulumi.getter(name="isSecure")
|
|
178
|
-
def is_secure(self) -> Optional[pulumi.Input[str]]:
|
|
179
|
+
def is_secure(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
179
180
|
"""
|
|
180
181
|
Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
181
182
|
"""
|
|
182
183
|
return pulumi.get(self, "is_secure")
|
|
183
184
|
|
|
184
185
|
@is_secure.setter
|
|
185
|
-
def is_secure(self, value: Optional[pulumi.Input[str]]):
|
|
186
|
+
def is_secure(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
186
187
|
pulumi.set(self, "is_secure", value)
|
|
187
188
|
|
|
188
189
|
@property
|
|
189
190
|
@pulumi.getter(name="logLevel")
|
|
190
|
-
def log_level(self) -> Optional[pulumi.Input[str]]:
|
|
191
|
+
def log_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
191
192
|
"""
|
|
192
193
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
193
194
|
"""
|
|
194
195
|
return pulumi.get(self, "log_level")
|
|
195
196
|
|
|
196
197
|
@log_level.setter
|
|
197
|
-
def log_level(self, value: Optional[pulumi.Input[str]]):
|
|
198
|
+
def log_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
198
199
|
pulumi.set(self, "log_level", value)
|
|
199
200
|
|
|
200
201
|
@property
|
|
201
202
|
@pulumi.getter(name="metricLevel")
|
|
202
|
-
def metric_level(self) -> Optional[pulumi.Input[str]]:
|
|
203
|
+
def metric_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
203
204
|
"""
|
|
204
205
|
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
205
206
|
"""
|
|
206
207
|
return pulumi.get(self, "metric_level")
|
|
207
208
|
|
|
208
209
|
@metric_level.setter
|
|
209
|
-
def metric_level(self, value: Optional[pulumi.Input[str]]):
|
|
210
|
+
def metric_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
210
211
|
pulumi.set(self, "metric_level", value)
|
|
211
212
|
|
|
212
213
|
@property
|
|
213
214
|
@pulumi.getter
|
|
214
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
215
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
215
216
|
"""
|
|
216
217
|
The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
217
218
|
"""
|
|
218
219
|
return pulumi.get(self, "name")
|
|
219
220
|
|
|
220
221
|
@name.setter
|
|
221
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
222
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
222
223
|
pulumi.set(self, "name", value)
|
|
223
224
|
|
|
224
225
|
@property
|
|
225
226
|
@pulumi.getter(name="nullInputBehavior")
|
|
226
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
|
|
227
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
227
228
|
"""
|
|
228
229
|
Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
229
230
|
"""
|
|
230
231
|
return pulumi.get(self, "null_input_behavior")
|
|
231
232
|
|
|
232
233
|
@null_input_behavior.setter
|
|
233
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
|
|
234
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
234
235
|
pulumi.set(self, "null_input_behavior", value)
|
|
235
236
|
|
|
236
237
|
@property
|
|
237
238
|
@pulumi.getter(name="traceLevel")
|
|
238
|
-
def trace_level(self) -> Optional[pulumi.Input[str]]:
|
|
239
|
+
def trace_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
239
240
|
"""
|
|
240
241
|
Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
241
242
|
"""
|
|
242
243
|
return pulumi.get(self, "trace_level")
|
|
243
244
|
|
|
244
245
|
@trace_level.setter
|
|
245
|
-
def trace_level(self, value: Optional[pulumi.Input[str]]):
|
|
246
|
+
def trace_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
246
247
|
pulumi.set(self, "trace_level", value)
|
|
247
248
|
|
|
248
249
|
|
|
@@ -250,43 +251,43 @@ class ProcedureSqlArgs:
|
|
|
250
251
|
class _ProcedureSqlState:
|
|
251
252
|
def __init__(__self__, *,
|
|
252
253
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureSqlArgumentArgs']]]] = None,
|
|
253
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
254
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
255
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
256
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
257
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
258
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
259
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
260
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
261
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
262
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
254
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
255
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
256
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
257
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
258
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
259
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
260
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
261
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
262
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
263
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
263
264
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureSqlParameterArgs']]]] = None,
|
|
264
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
265
|
-
procedure_language: Optional[pulumi.Input[str]] = None,
|
|
266
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
267
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
265
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
266
|
+
procedure_language: Optional[pulumi.Input[builtins.str]] = None,
|
|
267
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
268
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
268
269
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureSqlShowOutputArgs']]]] = None,
|
|
269
|
-
trace_level: Optional[pulumi.Input[str]] = None):
|
|
270
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None):
|
|
270
271
|
"""
|
|
271
272
|
Input properties used for looking up and filtering ProcedureSql resources.
|
|
272
273
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureSqlArgumentArgs']]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
|
|
273
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
274
|
-
:param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
275
|
-
:param pulumi.Input[bool] enable_console_output: Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
276
|
-
:param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
277
|
-
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
278
|
-
:param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
279
|
-
:param pulumi.Input[str] log_level: LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
280
|
-
:param pulumi.Input[str] metric_level: METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
281
|
-
:param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
282
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
274
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the procedure.
|
|
275
|
+
: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: `|`, `.`, `"`.
|
|
276
|
+
: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).
|
|
277
|
+
: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`.
|
|
278
|
+
: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).
|
|
279
|
+
:param pulumi.Input[builtins.str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
280
|
+
: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).
|
|
281
|
+
: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).
|
|
282
|
+
: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: `|`, `.`, `"`.
|
|
283
|
+
: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`.
|
|
283
284
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureSqlParameterArgs']]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
284
|
-
:param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be SQL source code. For more information, see [Snowflake Scripting](https://docs.snowflake.com/en/developer-guide/snowflake-scripting/index). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
285
|
-
:param pulumi.Input[str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
286
|
-
:param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL data type](https://docs.snowflake.com/en/sql-reference-data-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
287
|
-
:param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
285
|
+
: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 SQL source code. For more information, see [Snowflake Scripting](https://docs.snowflake.com/en/developer-guide/snowflake-scripting/index). 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.
|
|
286
|
+
:param pulumi.Input[builtins.str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
287
|
+
: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 data type](https://docs.snowflake.com/en/sql-reference-data-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
288
|
+
: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: `|`, `.`, `"`.
|
|
288
289
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureSqlShowOutputArgs']]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
289
|
-
:param pulumi.Input[str] trace_level: Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
290
|
+
: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).
|
|
290
291
|
"""
|
|
291
292
|
if arguments is not None:
|
|
292
293
|
pulumi.set(__self__, "arguments", arguments)
|
|
@@ -339,122 +340,122 @@ class _ProcedureSqlState:
|
|
|
339
340
|
|
|
340
341
|
@property
|
|
341
342
|
@pulumi.getter
|
|
342
|
-
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
343
|
+
def comment(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
343
344
|
"""
|
|
344
345
|
Specifies a comment for the procedure.
|
|
345
346
|
"""
|
|
346
347
|
return pulumi.get(self, "comment")
|
|
347
348
|
|
|
348
349
|
@comment.setter
|
|
349
|
-
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
350
|
+
def comment(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
350
351
|
pulumi.set(self, "comment", value)
|
|
351
352
|
|
|
352
353
|
@property
|
|
353
354
|
@pulumi.getter
|
|
354
|
-
def database(self) -> Optional[pulumi.Input[str]]:
|
|
355
|
+
def database(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
355
356
|
"""
|
|
356
357
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
357
358
|
"""
|
|
358
359
|
return pulumi.get(self, "database")
|
|
359
360
|
|
|
360
361
|
@database.setter
|
|
361
|
-
def database(self, value: Optional[pulumi.Input[str]]):
|
|
362
|
+
def database(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
362
363
|
pulumi.set(self, "database", value)
|
|
363
364
|
|
|
364
365
|
@property
|
|
365
366
|
@pulumi.getter(name="enableConsoleOutput")
|
|
366
|
-
def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
|
|
367
|
+
def enable_console_output(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
367
368
|
"""
|
|
368
369
|
Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
369
370
|
"""
|
|
370
371
|
return pulumi.get(self, "enable_console_output")
|
|
371
372
|
|
|
372
373
|
@enable_console_output.setter
|
|
373
|
-
def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
|
|
374
|
+
def enable_console_output(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
374
375
|
pulumi.set(self, "enable_console_output", value)
|
|
375
376
|
|
|
376
377
|
@property
|
|
377
378
|
@pulumi.getter(name="executeAs")
|
|
378
|
-
def execute_as(self) -> Optional[pulumi.Input[str]]:
|
|
379
|
+
def execute_as(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
379
380
|
"""
|
|
380
381
|
Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
381
382
|
"""
|
|
382
383
|
return pulumi.get(self, "execute_as")
|
|
383
384
|
|
|
384
385
|
@execute_as.setter
|
|
385
|
-
def execute_as(self, value: Optional[pulumi.Input[str]]):
|
|
386
|
+
def execute_as(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
386
387
|
pulumi.set(self, "execute_as", value)
|
|
387
388
|
|
|
388
389
|
@property
|
|
389
390
|
@pulumi.getter(name="fullyQualifiedName")
|
|
390
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
391
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
391
392
|
"""
|
|
392
393
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
393
394
|
"""
|
|
394
395
|
return pulumi.get(self, "fully_qualified_name")
|
|
395
396
|
|
|
396
397
|
@fully_qualified_name.setter
|
|
397
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
398
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
398
399
|
pulumi.set(self, "fully_qualified_name", value)
|
|
399
400
|
|
|
400
401
|
@property
|
|
401
402
|
@pulumi.getter(name="isSecure")
|
|
402
|
-
def is_secure(self) -> Optional[pulumi.Input[str]]:
|
|
403
|
+
def is_secure(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
403
404
|
"""
|
|
404
405
|
Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
405
406
|
"""
|
|
406
407
|
return pulumi.get(self, "is_secure")
|
|
407
408
|
|
|
408
409
|
@is_secure.setter
|
|
409
|
-
def is_secure(self, value: Optional[pulumi.Input[str]]):
|
|
410
|
+
def is_secure(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
410
411
|
pulumi.set(self, "is_secure", value)
|
|
411
412
|
|
|
412
413
|
@property
|
|
413
414
|
@pulumi.getter(name="logLevel")
|
|
414
|
-
def log_level(self) -> Optional[pulumi.Input[str]]:
|
|
415
|
+
def log_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
415
416
|
"""
|
|
416
417
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
417
418
|
"""
|
|
418
419
|
return pulumi.get(self, "log_level")
|
|
419
420
|
|
|
420
421
|
@log_level.setter
|
|
421
|
-
def log_level(self, value: Optional[pulumi.Input[str]]):
|
|
422
|
+
def log_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
422
423
|
pulumi.set(self, "log_level", value)
|
|
423
424
|
|
|
424
425
|
@property
|
|
425
426
|
@pulumi.getter(name="metricLevel")
|
|
426
|
-
def metric_level(self) -> Optional[pulumi.Input[str]]:
|
|
427
|
+
def metric_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
427
428
|
"""
|
|
428
429
|
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
429
430
|
"""
|
|
430
431
|
return pulumi.get(self, "metric_level")
|
|
431
432
|
|
|
432
433
|
@metric_level.setter
|
|
433
|
-
def metric_level(self, value: Optional[pulumi.Input[str]]):
|
|
434
|
+
def metric_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
434
435
|
pulumi.set(self, "metric_level", value)
|
|
435
436
|
|
|
436
437
|
@property
|
|
437
438
|
@pulumi.getter
|
|
438
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
439
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
439
440
|
"""
|
|
440
441
|
The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
441
442
|
"""
|
|
442
443
|
return pulumi.get(self, "name")
|
|
443
444
|
|
|
444
445
|
@name.setter
|
|
445
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
446
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
446
447
|
pulumi.set(self, "name", value)
|
|
447
448
|
|
|
448
449
|
@property
|
|
449
450
|
@pulumi.getter(name="nullInputBehavior")
|
|
450
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[str]]:
|
|
451
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
451
452
|
"""
|
|
452
453
|
Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
453
454
|
"""
|
|
454
455
|
return pulumi.get(self, "null_input_behavior")
|
|
455
456
|
|
|
456
457
|
@null_input_behavior.setter
|
|
457
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[str]]):
|
|
458
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
458
459
|
pulumi.set(self, "null_input_behavior", value)
|
|
459
460
|
|
|
460
461
|
@property
|
|
@@ -471,50 +472,50 @@ class _ProcedureSqlState:
|
|
|
471
472
|
|
|
472
473
|
@property
|
|
473
474
|
@pulumi.getter(name="procedureDefinition")
|
|
474
|
-
def procedure_definition(self) -> Optional[pulumi.Input[str]]:
|
|
475
|
+
def procedure_definition(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
475
476
|
"""
|
|
476
477
|
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 SQL source code. For more information, see [Snowflake Scripting](https://docs.snowflake.com/en/developer-guide/snowflake-scripting/index). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
477
478
|
"""
|
|
478
479
|
return pulumi.get(self, "procedure_definition")
|
|
479
480
|
|
|
480
481
|
@procedure_definition.setter
|
|
481
|
-
def procedure_definition(self, value: Optional[pulumi.Input[str]]):
|
|
482
|
+
def procedure_definition(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
482
483
|
pulumi.set(self, "procedure_definition", value)
|
|
483
484
|
|
|
484
485
|
@property
|
|
485
486
|
@pulumi.getter(name="procedureLanguage")
|
|
486
|
-
def procedure_language(self) -> Optional[pulumi.Input[str]]:
|
|
487
|
+
def procedure_language(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
487
488
|
"""
|
|
488
489
|
Specifies language for the procedure. Used to detect external changes.
|
|
489
490
|
"""
|
|
490
491
|
return pulumi.get(self, "procedure_language")
|
|
491
492
|
|
|
492
493
|
@procedure_language.setter
|
|
493
|
-
def procedure_language(self, value: Optional[pulumi.Input[str]]):
|
|
494
|
+
def procedure_language(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
494
495
|
pulumi.set(self, "procedure_language", value)
|
|
495
496
|
|
|
496
497
|
@property
|
|
497
498
|
@pulumi.getter(name="returnType")
|
|
498
|
-
def return_type(self) -> Optional[pulumi.Input[str]]:
|
|
499
|
+
def return_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
499
500
|
"""
|
|
500
501
|
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 data type](https://docs.snowflake.com/en/sql-reference-data-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
501
502
|
"""
|
|
502
503
|
return pulumi.get(self, "return_type")
|
|
503
504
|
|
|
504
505
|
@return_type.setter
|
|
505
|
-
def return_type(self, value: Optional[pulumi.Input[str]]):
|
|
506
|
+
def return_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
506
507
|
pulumi.set(self, "return_type", value)
|
|
507
508
|
|
|
508
509
|
@property
|
|
509
510
|
@pulumi.getter
|
|
510
|
-
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
511
|
+
def schema(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
511
512
|
"""
|
|
512
513
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
513
514
|
"""
|
|
514
515
|
return pulumi.get(self, "schema")
|
|
515
516
|
|
|
516
517
|
@schema.setter
|
|
517
|
-
def schema(self, value: Optional[pulumi.Input[str]]):
|
|
518
|
+
def schema(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
518
519
|
pulumi.set(self, "schema", value)
|
|
519
520
|
|
|
520
521
|
@property
|
|
@@ -531,14 +532,14 @@ class _ProcedureSqlState:
|
|
|
531
532
|
|
|
532
533
|
@property
|
|
533
534
|
@pulumi.getter(name="traceLevel")
|
|
534
|
-
def trace_level(self) -> Optional[pulumi.Input[str]]:
|
|
535
|
+
def trace_level(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
535
536
|
"""
|
|
536
537
|
Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
537
538
|
"""
|
|
538
539
|
return pulumi.get(self, "trace_level")
|
|
539
540
|
|
|
540
541
|
@trace_level.setter
|
|
541
|
-
def trace_level(self, value: Optional[pulumi.Input[str]]):
|
|
542
|
+
def trace_level(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
542
543
|
pulumi.set(self, "trace_level", value)
|
|
543
544
|
|
|
544
545
|
|
|
@@ -548,19 +549,19 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
548
549
|
resource_name: str,
|
|
549
550
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
550
551
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureSqlArgumentArgs', 'ProcedureSqlArgumentArgsDict']]]]] = None,
|
|
551
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
552
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
553
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
554
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
555
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
556
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
557
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
558
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
559
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
560
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
561
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
562
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
563
|
-
trace_level: Optional[pulumi.Input[str]] = None,
|
|
552
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
553
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
554
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
555
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
556
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
557
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
558
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
559
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
560
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
561
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
562
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
563
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
564
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
564
565
|
__props__=None):
|
|
565
566
|
"""
|
|
566
567
|
## Import
|
|
@@ -576,19 +577,19 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
576
577
|
:param str resource_name: The name of the resource.
|
|
577
578
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
578
579
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureSqlArgumentArgs', 'ProcedureSqlArgumentArgsDict']]]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
|
|
579
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
580
|
-
:param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
581
|
-
:param pulumi.Input[bool] enable_console_output: Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
582
|
-
:param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
583
|
-
:param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
584
|
-
:param pulumi.Input[str] log_level: LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
585
|
-
:param pulumi.Input[str] metric_level: METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
586
|
-
:param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
587
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
588
|
-
:param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be SQL source code. For more information, see [Snowflake Scripting](https://docs.snowflake.com/en/developer-guide/snowflake-scripting/index). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
589
|
-
:param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL data type](https://docs.snowflake.com/en/sql-reference-data-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
590
|
-
:param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
591
|
-
:param pulumi.Input[str] trace_level: Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
580
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the procedure.
|
|
581
|
+
: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: `|`, `.`, `"`.
|
|
582
|
+
: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).
|
|
583
|
+
: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`.
|
|
584
|
+
:param pulumi.Input[builtins.str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
585
|
+
: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).
|
|
586
|
+
: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).
|
|
587
|
+
: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: `|`, `.`, `"`.
|
|
588
|
+
: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`.
|
|
589
|
+
: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 SQL source code. For more information, see [Snowflake Scripting](https://docs.snowflake.com/en/developer-guide/snowflake-scripting/index). 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.
|
|
590
|
+
: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 data type](https://docs.snowflake.com/en/sql-reference-data-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
591
|
+
: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: `|`, `.`, `"`.
|
|
592
|
+
: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).
|
|
592
593
|
"""
|
|
593
594
|
...
|
|
594
595
|
@overload
|
|
@@ -623,19 +624,19 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
623
624
|
resource_name: str,
|
|
624
625
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
625
626
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureSqlArgumentArgs', 'ProcedureSqlArgumentArgsDict']]]]] = None,
|
|
626
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
627
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
628
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
629
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
630
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
631
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
632
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
633
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
634
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
635
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
636
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
637
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
638
|
-
trace_level: Optional[pulumi.Input[str]] = None,
|
|
627
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
628
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
629
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
630
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
631
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
632
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
633
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
634
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
635
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
636
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
637
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
638
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
639
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
639
640
|
__props__=None):
|
|
640
641
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
641
642
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -682,23 +683,23 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
682
683
|
id: pulumi.Input[str],
|
|
683
684
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
684
685
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureSqlArgumentArgs', 'ProcedureSqlArgumentArgsDict']]]]] = None,
|
|
685
|
-
comment: Optional[pulumi.Input[str]] = None,
|
|
686
|
-
database: Optional[pulumi.Input[str]] = None,
|
|
687
|
-
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
688
|
-
execute_as: Optional[pulumi.Input[str]] = None,
|
|
689
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
690
|
-
is_secure: Optional[pulumi.Input[str]] = None,
|
|
691
|
-
log_level: Optional[pulumi.Input[str]] = None,
|
|
692
|
-
metric_level: Optional[pulumi.Input[str]] = None,
|
|
693
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
694
|
-
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
686
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
687
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
688
|
+
enable_console_output: Optional[pulumi.Input[builtins.bool]] = None,
|
|
689
|
+
execute_as: Optional[pulumi.Input[builtins.str]] = None,
|
|
690
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
691
|
+
is_secure: Optional[pulumi.Input[builtins.str]] = None,
|
|
692
|
+
log_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
693
|
+
metric_level: Optional[pulumi.Input[builtins.str]] = None,
|
|
694
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
695
|
+
null_input_behavior: Optional[pulumi.Input[builtins.str]] = None,
|
|
695
696
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureSqlParameterArgs', 'ProcedureSqlParameterArgsDict']]]]] = None,
|
|
696
|
-
procedure_definition: Optional[pulumi.Input[str]] = None,
|
|
697
|
-
procedure_language: Optional[pulumi.Input[str]] = None,
|
|
698
|
-
return_type: Optional[pulumi.Input[str]] = None,
|
|
699
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
697
|
+
procedure_definition: Optional[pulumi.Input[builtins.str]] = None,
|
|
698
|
+
procedure_language: Optional[pulumi.Input[builtins.str]] = None,
|
|
699
|
+
return_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
700
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
700
701
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureSqlShowOutputArgs', 'ProcedureSqlShowOutputArgsDict']]]]] = None,
|
|
701
|
-
trace_level: Optional[pulumi.Input[str]] = None) -> 'ProcedureSql':
|
|
702
|
+
trace_level: Optional[pulumi.Input[builtins.str]] = None) -> 'ProcedureSql':
|
|
702
703
|
"""
|
|
703
704
|
Get an existing ProcedureSql resource's state with the given name, id, and optional extra
|
|
704
705
|
properties used to qualify the lookup.
|
|
@@ -707,23 +708,23 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
707
708
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
708
709
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
709
710
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureSqlArgumentArgs', 'ProcedureSqlArgumentArgsDict']]]] arguments: List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
|
|
710
|
-
:param pulumi.Input[str] comment: Specifies a comment for the procedure.
|
|
711
|
-
:param pulumi.Input[str] database: The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
712
|
-
:param pulumi.Input[bool] enable_console_output: Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
713
|
-
:param pulumi.Input[str] execute_as: Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
714
|
-
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
715
|
-
:param pulumi.Input[str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
716
|
-
:param pulumi.Input[str] log_level: LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
717
|
-
:param pulumi.Input[str] metric_level: METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
718
|
-
:param pulumi.Input[str] name: The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
719
|
-
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
711
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the procedure.
|
|
712
|
+
: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: `|`, `.`, `"`.
|
|
713
|
+
: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).
|
|
714
|
+
: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`.
|
|
715
|
+
: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).
|
|
716
|
+
:param pulumi.Input[builtins.str] is_secure: Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
717
|
+
: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).
|
|
718
|
+
: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).
|
|
719
|
+
: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: `|`, `.`, `"`.
|
|
720
|
+
: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`.
|
|
720
721
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureSqlParameterArgs', 'ProcedureSqlParameterArgsDict']]]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
721
|
-
:param pulumi.Input[str] procedure_definition: Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedure_definition` value must be SQL source code. For more information, see [Snowflake Scripting](https://docs.snowflake.com/en/developer-guide/snowflake-scripting/index). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
722
|
-
:param pulumi.Input[str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
723
|
-
:param pulumi.Input[str] return_type: Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL data type](https://docs.snowflake.com/en/sql-reference-data-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
724
|
-
:param pulumi.Input[str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
722
|
+
: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 SQL source code. For more information, see [Snowflake Scripting](https://docs.snowflake.com/en/developer-guide/snowflake-scripting/index). 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.
|
|
723
|
+
:param pulumi.Input[builtins.str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
724
|
+
: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 data type](https://docs.snowflake.com/en/sql-reference-data-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
725
|
+
: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: `|`, `.`, `"`.
|
|
725
726
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureSqlShowOutputArgs', 'ProcedureSqlShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
726
|
-
:param pulumi.Input[str] trace_level: Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
727
|
+
: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).
|
|
727
728
|
"""
|
|
728
729
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
729
730
|
|
|
@@ -759,7 +760,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
759
760
|
|
|
760
761
|
@property
|
|
761
762
|
@pulumi.getter
|
|
762
|
-
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
763
|
+
def comment(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
763
764
|
"""
|
|
764
765
|
Specifies a comment for the procedure.
|
|
765
766
|
"""
|
|
@@ -767,7 +768,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
767
768
|
|
|
768
769
|
@property
|
|
769
770
|
@pulumi.getter
|
|
770
|
-
def database(self) -> pulumi.Output[str]:
|
|
771
|
+
def database(self) -> pulumi.Output[builtins.str]:
|
|
771
772
|
"""
|
|
772
773
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
773
774
|
"""
|
|
@@ -775,7 +776,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
775
776
|
|
|
776
777
|
@property
|
|
777
778
|
@pulumi.getter(name="enableConsoleOutput")
|
|
778
|
-
def enable_console_output(self) -> pulumi.Output[bool]:
|
|
779
|
+
def enable_console_output(self) -> pulumi.Output[builtins.bool]:
|
|
779
780
|
"""
|
|
780
781
|
Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
781
782
|
"""
|
|
@@ -783,7 +784,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
783
784
|
|
|
784
785
|
@property
|
|
785
786
|
@pulumi.getter(name="executeAs")
|
|
786
|
-
def execute_as(self) -> pulumi.Output[Optional[str]]:
|
|
787
|
+
def execute_as(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
787
788
|
"""
|
|
788
789
|
Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
789
790
|
"""
|
|
@@ -791,7 +792,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
791
792
|
|
|
792
793
|
@property
|
|
793
794
|
@pulumi.getter(name="fullyQualifiedName")
|
|
794
|
-
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
795
|
+
def fully_qualified_name(self) -> pulumi.Output[builtins.str]:
|
|
795
796
|
"""
|
|
796
797
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
797
798
|
"""
|
|
@@ -799,7 +800,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
799
800
|
|
|
800
801
|
@property
|
|
801
802
|
@pulumi.getter(name="isSecure")
|
|
802
|
-
def is_secure(self) -> pulumi.Output[Optional[str]]:
|
|
803
|
+
def is_secure(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
803
804
|
"""
|
|
804
805
|
Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
805
806
|
"""
|
|
@@ -807,7 +808,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
807
808
|
|
|
808
809
|
@property
|
|
809
810
|
@pulumi.getter(name="logLevel")
|
|
810
|
-
def log_level(self) -> pulumi.Output[str]:
|
|
811
|
+
def log_level(self) -> pulumi.Output[builtins.str]:
|
|
811
812
|
"""
|
|
812
813
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
813
814
|
"""
|
|
@@ -815,7 +816,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
815
816
|
|
|
816
817
|
@property
|
|
817
818
|
@pulumi.getter(name="metricLevel")
|
|
818
|
-
def metric_level(self) -> pulumi.Output[str]:
|
|
819
|
+
def metric_level(self) -> pulumi.Output[builtins.str]:
|
|
819
820
|
"""
|
|
820
821
|
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
821
822
|
"""
|
|
@@ -823,7 +824,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
823
824
|
|
|
824
825
|
@property
|
|
825
826
|
@pulumi.getter
|
|
826
|
-
def name(self) -> pulumi.Output[str]:
|
|
827
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
|
827
828
|
"""
|
|
828
829
|
The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
829
830
|
"""
|
|
@@ -831,7 +832,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
831
832
|
|
|
832
833
|
@property
|
|
833
834
|
@pulumi.getter(name="nullInputBehavior")
|
|
834
|
-
def null_input_behavior(self) -> pulumi.Output[Optional[str]]:
|
|
835
|
+
def null_input_behavior(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
835
836
|
"""
|
|
836
837
|
Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
837
838
|
"""
|
|
@@ -847,7 +848,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
847
848
|
|
|
848
849
|
@property
|
|
849
850
|
@pulumi.getter(name="procedureDefinition")
|
|
850
|
-
def procedure_definition(self) -> pulumi.Output[str]:
|
|
851
|
+
def procedure_definition(self) -> pulumi.Output[builtins.str]:
|
|
851
852
|
"""
|
|
852
853
|
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 SQL source code. For more information, see [Snowflake Scripting](https://docs.snowflake.com/en/developer-guide/snowflake-scripting/index). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
853
854
|
"""
|
|
@@ -855,7 +856,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
855
856
|
|
|
856
857
|
@property
|
|
857
858
|
@pulumi.getter(name="procedureLanguage")
|
|
858
|
-
def procedure_language(self) -> pulumi.Output[str]:
|
|
859
|
+
def procedure_language(self) -> pulumi.Output[builtins.str]:
|
|
859
860
|
"""
|
|
860
861
|
Specifies language for the procedure. Used to detect external changes.
|
|
861
862
|
"""
|
|
@@ -863,7 +864,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
863
864
|
|
|
864
865
|
@property
|
|
865
866
|
@pulumi.getter(name="returnType")
|
|
866
|
-
def return_type(self) -> pulumi.Output[str]:
|
|
867
|
+
def return_type(self) -> pulumi.Output[builtins.str]:
|
|
867
868
|
"""
|
|
868
869
|
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 data type](https://docs.snowflake.com/en/sql-reference-data-types)). For `RETURNS TABLE ( [ col_name col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
869
870
|
"""
|
|
@@ -871,7 +872,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
871
872
|
|
|
872
873
|
@property
|
|
873
874
|
@pulumi.getter
|
|
874
|
-
def schema(self) -> pulumi.Output[str]:
|
|
875
|
+
def schema(self) -> pulumi.Output[builtins.str]:
|
|
875
876
|
"""
|
|
876
877
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
877
878
|
"""
|
|
@@ -887,7 +888,7 @@ class ProcedureSql(pulumi.CustomResource):
|
|
|
887
888
|
|
|
888
889
|
@property
|
|
889
890
|
@pulumi.getter(name="traceLevel")
|
|
890
|
-
def trace_level(self) -> pulumi.Output[str]:
|
|
891
|
+
def trace_level(self) -> pulumi.Output[builtins.str]:
|
|
891
892
|
"""
|
|
892
893
|
Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
893
894
|
"""
|