pulumi-snowflake 2.2.0__py3-none-any.whl → 2.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/__init__.py +20 -1
- pulumi_snowflake/_inputs.py +17236 -16797
- pulumi_snowflake/account.py +252 -253
- pulumi_snowflake/account_authentication_policy_attachment.py +18 -19
- pulumi_snowflake/account_parameter.py +35 -36
- pulumi_snowflake/account_password_policy_attachment.py +18 -19
- pulumi_snowflake/account_role.py +42 -43
- pulumi_snowflake/alert.py +149 -150
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +197 -198
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +180 -181
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +193 -194
- pulumi_snowflake/api_integration.py +251 -252
- pulumi_snowflake/authentication_policy.py +167 -168
- pulumi_snowflake/compute_pool.py +167 -168
- pulumi_snowflake/config/__init__.py +1 -1
- pulumi_snowflake/config/__init__.pyi +1 -2
- pulumi_snowflake/config/outputs.py +21 -22
- pulumi_snowflake/config/vars.py +43 -44
- pulumi_snowflake/cortex_search_service.py +191 -192
- pulumi_snowflake/current_account.py +2096 -2097
- pulumi_snowflake/current_organization_account.py +5863 -0
- pulumi_snowflake/database.py +353 -354
- pulumi_snowflake/database_role.py +63 -64
- pulumi_snowflake/dynamic_table.py +274 -275
- pulumi_snowflake/email_notification_integration.py +70 -71
- pulumi_snowflake/execute.py +61 -62
- pulumi_snowflake/external_function.py +280 -281
- pulumi_snowflake/external_oauth_integration.py +288 -289
- pulumi_snowflake/external_table.py +246 -247
- pulumi_snowflake/external_volume.py +68 -69
- pulumi_snowflake/failover_group.py +135 -136
- pulumi_snowflake/file_format.py +622 -623
- pulumi_snowflake/function_java.py +320 -321
- pulumi_snowflake/function_javascript.py +243 -244
- pulumi_snowflake/function_python.py +334 -335
- pulumi_snowflake/function_scala.py +320 -321
- pulumi_snowflake/function_sql.py +226 -227
- pulumi_snowflake/get_account_roles.py +16 -17
- pulumi_snowflake/get_accounts.py +16 -17
- pulumi_snowflake/get_alerts.py +22 -23
- pulumi_snowflake/get_compute_pools.py +23 -24
- pulumi_snowflake/get_connections.py +10 -11
- pulumi_snowflake/get_cortex_search_services.py +18 -19
- pulumi_snowflake/get_current_account.py +9 -10
- pulumi_snowflake/get_current_role.py +5 -6
- pulumi_snowflake/get_database.py +25 -26
- pulumi_snowflake/get_database_role.py +19 -20
- pulumi_snowflake/get_database_roles.py +17 -18
- pulumi_snowflake/get_databases.py +29 -30
- pulumi_snowflake/get_dynamic_tables.py +13 -14
- pulumi_snowflake/get_external_functions.py +16 -17
- pulumi_snowflake/get_external_tables.py +16 -17
- pulumi_snowflake/get_failover_groups.py +10 -11
- pulumi_snowflake/get_file_formats.py +16 -17
- pulumi_snowflake/get_functions.py +16 -17
- pulumi_snowflake/get_git_repositories.py +18 -19
- pulumi_snowflake/get_grants.py +9 -10
- pulumi_snowflake/get_image_repositories.py +11 -12
- pulumi_snowflake/get_masking_policies.py +18 -19
- pulumi_snowflake/get_materialized_views.py +16 -17
- pulumi_snowflake/get_network_policies.py +16 -17
- pulumi_snowflake/get_parameters.py +34 -35
- pulumi_snowflake/get_pipes.py +16 -17
- pulumi_snowflake/get_procedures.py +16 -17
- pulumi_snowflake/get_resource_monitors.py +10 -11
- pulumi_snowflake/get_row_access_policies.py +18 -19
- pulumi_snowflake/get_schemas.py +30 -31
- pulumi_snowflake/get_secrets.py +17 -18
- pulumi_snowflake/get_security_integrations.py +16 -17
- pulumi_snowflake/get_sequences.py +16 -17
- pulumi_snowflake/get_services.py +30 -31
- pulumi_snowflake/get_shares.py +10 -11
- pulumi_snowflake/get_stages.py +16 -17
- pulumi_snowflake/get_storage_integrations.py +4 -5
- pulumi_snowflake/get_streamlits.py +18 -19
- pulumi_snowflake/get_streams.py +24 -25
- pulumi_snowflake/get_system_generate_scim_access_token.py +11 -12
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +11 -12
- pulumi_snowflake/get_system_get_private_link_config.py +21 -22
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +7 -8
- pulumi_snowflake/get_tables.py +24 -25
- pulumi_snowflake/get_tags.py +11 -12
- pulumi_snowflake/get_tasks.py +30 -31
- pulumi_snowflake/get_user_programmatic_access_tokens.py +113 -0
- pulumi_snowflake/get_users.py +29 -30
- pulumi_snowflake/get_views.py +24 -25
- pulumi_snowflake/get_warehouses.py +22 -23
- pulumi_snowflake/git_repository.py +133 -134
- pulumi_snowflake/grant_account_role.py +52 -53
- pulumi_snowflake/grant_application_role.py +52 -53
- pulumi_snowflake/grant_database_role.py +69 -70
- pulumi_snowflake/grant_ownership.py +55 -56
- pulumi_snowflake/grant_privileges_to_account_role.py +125 -126
- pulumi_snowflake/grant_privileges_to_database_role.py +122 -123
- pulumi_snowflake/grant_privileges_to_share.py +154 -155
- pulumi_snowflake/image_repository.py +80 -81
- pulumi_snowflake/job_service.py +148 -149
- pulumi_snowflake/legacy_service_user.py +1269 -1270
- pulumi_snowflake/managed_account.py +140 -141
- pulumi_snowflake/masking_policy.py +136 -137
- pulumi_snowflake/materialized_view.py +149 -150
- pulumi_snowflake/network_policy.py +116 -117
- pulumi_snowflake/network_policy_attachment.py +52 -53
- pulumi_snowflake/network_rule.py +129 -130
- pulumi_snowflake/notification_integration.py +298 -299
- pulumi_snowflake/oauth_integration_for_custom_clients.py +263 -264
- pulumi_snowflake/oauth_integration_for_partner_applications.py +169 -170
- pulumi_snowflake/object_parameter.py +72 -73
- pulumi_snowflake/outputs.py +15957 -15511
- pulumi_snowflake/password_policy.py +299 -300
- pulumi_snowflake/pipe.py +181 -182
- pulumi_snowflake/primary_connection.py +70 -71
- pulumi_snowflake/procedure_java.py +341 -342
- pulumi_snowflake/procedure_javascript.py +247 -248
- pulumi_snowflake/procedure_python.py +338 -339
- pulumi_snowflake/procedure_scala.py +341 -342
- pulumi_snowflake/procedure_sql.py +247 -248
- pulumi_snowflake/provider.py +377 -378
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +165 -166
- pulumi_snowflake/row_access_policy.py +102 -103
- pulumi_snowflake/saml2_integration.py +303 -304
- pulumi_snowflake/schema.py +390 -391
- pulumi_snowflake/scim_integration.py +133 -134
- pulumi_snowflake/secondary_connection.py +72 -73
- pulumi_snowflake/secondary_database.py +350 -351
- pulumi_snowflake/secret_with_authorization_code_grant.py +138 -139
- pulumi_snowflake/secret_with_basic_authentication.py +121 -122
- pulumi_snowflake/secret_with_client_credentials.py +125 -126
- pulumi_snowflake/secret_with_generic_string.py +104 -105
- pulumi_snowflake/sequence.py +121 -122
- pulumi_snowflake/service.py +233 -234
- pulumi_snowflake/service_user.py +1239 -1240
- pulumi_snowflake/share.py +61 -62
- pulumi_snowflake/shared_database.py +299 -300
- pulumi_snowflake/stage.py +234 -235
- pulumi_snowflake/storage_integration.py +230 -231
- pulumi_snowflake/stream_on_directory_table.py +128 -129
- pulumi_snowflake/stream_on_external_table.py +151 -152
- pulumi_snowflake/stream_on_table.py +164 -165
- pulumi_snowflake/stream_on_view.py +164 -165
- pulumi_snowflake/streamlit.py +184 -185
- pulumi_snowflake/table.py +147 -148
- pulumi_snowflake/table_column_masking_policy_application.py +52 -53
- pulumi_snowflake/table_constraint.py +191 -192
- pulumi_snowflake/tag.py +114 -115
- pulumi_snowflake/tag_association.py +86 -87
- pulumi_snowflake/task.py +1224 -1225
- pulumi_snowflake/user.py +1346 -1347
- pulumi_snowflake/user_authentication_policy_attachment.py +35 -36
- pulumi_snowflake/user_password_policy_attachment.py +35 -36
- pulumi_snowflake/user_programmatic_access_token.py +598 -0
- pulumi_snowflake/user_public_keys.py +52 -53
- pulumi_snowflake/view.py +187 -188
- pulumi_snowflake/warehouse.py +286 -287
- {pulumi_snowflake-2.2.0.dist-info → pulumi_snowflake-2.3.0.dist-info}/METADATA +1 -1
- pulumi_snowflake-2.3.0.dist-info/RECORD +161 -0
- pulumi_snowflake-2.2.0.dist-info/RECORD +0 -158
- {pulumi_snowflake-2.2.0.dist-info → pulumi_snowflake-2.3.0.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-2.2.0.dist-info → pulumi_snowflake-2.3.0.dist-info}/top_level.txt +0 -0
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -22,36 +21,36 @@ __all__ = ['ProcedureJavascriptArgs', 'ProcedureJavascript']
|
|
|
22
21
|
@pulumi.input_type
|
|
23
22
|
class ProcedureJavascriptArgs:
|
|
24
23
|
def __init__(__self__, *,
|
|
25
|
-
database: pulumi.Input[
|
|
26
|
-
procedure_definition: pulumi.Input[
|
|
27
|
-
return_type: pulumi.Input[
|
|
28
|
-
schema: pulumi.Input[
|
|
24
|
+
database: pulumi.Input[_builtins.str],
|
|
25
|
+
procedure_definition: pulumi.Input[_builtins.str],
|
|
26
|
+
return_type: pulumi.Input[_builtins.str],
|
|
27
|
+
schema: pulumi.Input[_builtins.str],
|
|
29
28
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]] = None,
|
|
30
|
-
comment: Optional[pulumi.Input[
|
|
31
|
-
enable_console_output: Optional[pulumi.Input[
|
|
32
|
-
execute_as: Optional[pulumi.Input[
|
|
33
|
-
is_secure: Optional[pulumi.Input[
|
|
34
|
-
log_level: Optional[pulumi.Input[
|
|
35
|
-
metric_level: Optional[pulumi.Input[
|
|
36
|
-
name: Optional[pulumi.Input[
|
|
37
|
-
null_input_behavior: Optional[pulumi.Input[
|
|
38
|
-
trace_level: Optional[pulumi.Input[
|
|
29
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
enable_console_output: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
31
|
+
execute_as: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
|
+
is_secure: Optional[pulumi.Input[_builtins.str]] = None,
|
|
33
|
+
log_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
34
|
+
metric_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
35
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
36
|
+
null_input_behavior: Optional[pulumi.Input[_builtins.str]] = None,
|
|
37
|
+
trace_level: Optional[pulumi.Input[_builtins.str]] = None):
|
|
39
38
|
"""
|
|
40
39
|
The set of arguments for constructing a ProcedureJavascript resource.
|
|
41
|
-
:param pulumi.Input[
|
|
42
|
-
:param pulumi.Input[
|
|
43
|
-
:param pulumi.Input[
|
|
44
|
-
:param pulumi.Input[
|
|
40
|
+
: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: `|`, `.`, `"`.
|
|
41
|
+
: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 JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). 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[_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 and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). 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[_builtins.str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
45
44
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]] 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.
|
|
46
|
-
:param pulumi.Input[
|
|
47
|
-
:param pulumi.Input[
|
|
48
|
-
:param pulumi.Input[
|
|
49
|
-
:param pulumi.Input[
|
|
50
|
-
:param pulumi.Input[
|
|
51
|
-
:param pulumi.Input[
|
|
52
|
-
:param pulumi.Input[
|
|
53
|
-
:param pulumi.Input[
|
|
54
|
-
:param pulumi.Input[
|
|
45
|
+
:param pulumi.Input[_builtins.str] comment: (Default: `user-defined procedure`) Specifies a comment for the procedure.
|
|
46
|
+
: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).
|
|
47
|
+
: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`.
|
|
48
|
+
:param pulumi.Input[_builtins.str] is_secure: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
49
|
+
: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).
|
|
50
|
+
: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).
|
|
51
|
+
: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: `|`, `.`, `"`.
|
|
52
|
+
: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`.
|
|
53
|
+
: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).
|
|
55
54
|
"""
|
|
56
55
|
pulumi.set(__self__, "database", database)
|
|
57
56
|
pulumi.set(__self__, "procedure_definition", procedure_definition)
|
|
@@ -78,55 +77,55 @@ class ProcedureJavascriptArgs:
|
|
|
78
77
|
if trace_level is not None:
|
|
79
78
|
pulumi.set(__self__, "trace_level", trace_level)
|
|
80
79
|
|
|
81
|
-
@property
|
|
80
|
+
@_builtins.property
|
|
82
81
|
@pulumi.getter
|
|
83
|
-
def database(self) -> pulumi.Input[
|
|
82
|
+
def database(self) -> pulumi.Input[_builtins.str]:
|
|
84
83
|
"""
|
|
85
84
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
86
85
|
"""
|
|
87
86
|
return pulumi.get(self, "database")
|
|
88
87
|
|
|
89
88
|
@database.setter
|
|
90
|
-
def database(self, value: pulumi.Input[
|
|
89
|
+
def database(self, value: pulumi.Input[_builtins.str]):
|
|
91
90
|
pulumi.set(self, "database", value)
|
|
92
91
|
|
|
93
|
-
@property
|
|
92
|
+
@_builtins.property
|
|
94
93
|
@pulumi.getter(name="procedureDefinition")
|
|
95
|
-
def procedure_definition(self) -> pulumi.Input[
|
|
94
|
+
def procedure_definition(self) -> pulumi.Input[_builtins.str]:
|
|
96
95
|
"""
|
|
97
96
|
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 JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). 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.
|
|
98
97
|
"""
|
|
99
98
|
return pulumi.get(self, "procedure_definition")
|
|
100
99
|
|
|
101
100
|
@procedure_definition.setter
|
|
102
|
-
def procedure_definition(self, value: pulumi.Input[
|
|
101
|
+
def procedure_definition(self, value: pulumi.Input[_builtins.str]):
|
|
103
102
|
pulumi.set(self, "procedure_definition", value)
|
|
104
103
|
|
|
105
|
-
@property
|
|
104
|
+
@_builtins.property
|
|
106
105
|
@pulumi.getter(name="returnType")
|
|
107
|
-
def return_type(self) -> pulumi.Input[
|
|
106
|
+
def return_type(self) -> pulumi.Input[_builtins.str]:
|
|
108
107
|
"""
|
|
109
108
|
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 and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). 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 ()`).
|
|
110
109
|
"""
|
|
111
110
|
return pulumi.get(self, "return_type")
|
|
112
111
|
|
|
113
112
|
@return_type.setter
|
|
114
|
-
def return_type(self, value: pulumi.Input[
|
|
113
|
+
def return_type(self, value: pulumi.Input[_builtins.str]):
|
|
115
114
|
pulumi.set(self, "return_type", value)
|
|
116
115
|
|
|
117
|
-
@property
|
|
116
|
+
@_builtins.property
|
|
118
117
|
@pulumi.getter
|
|
119
|
-
def schema(self) -> pulumi.Input[
|
|
118
|
+
def schema(self) -> pulumi.Input[_builtins.str]:
|
|
120
119
|
"""
|
|
121
120
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
122
121
|
"""
|
|
123
122
|
return pulumi.get(self, "schema")
|
|
124
123
|
|
|
125
124
|
@schema.setter
|
|
126
|
-
def schema(self, value: pulumi.Input[
|
|
125
|
+
def schema(self, value: pulumi.Input[_builtins.str]):
|
|
127
126
|
pulumi.set(self, "schema", value)
|
|
128
127
|
|
|
129
|
-
@property
|
|
128
|
+
@_builtins.property
|
|
130
129
|
@pulumi.getter
|
|
131
130
|
def arguments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]]:
|
|
132
131
|
"""
|
|
@@ -138,112 +137,112 @@ class ProcedureJavascriptArgs:
|
|
|
138
137
|
def arguments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]]):
|
|
139
138
|
pulumi.set(self, "arguments", value)
|
|
140
139
|
|
|
141
|
-
@property
|
|
140
|
+
@_builtins.property
|
|
142
141
|
@pulumi.getter
|
|
143
|
-
def comment(self) -> Optional[pulumi.Input[
|
|
142
|
+
def comment(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
144
143
|
"""
|
|
145
144
|
(Default: `user-defined procedure`) Specifies a comment for the procedure.
|
|
146
145
|
"""
|
|
147
146
|
return pulumi.get(self, "comment")
|
|
148
147
|
|
|
149
148
|
@comment.setter
|
|
150
|
-
def comment(self, value: Optional[pulumi.Input[
|
|
149
|
+
def comment(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
151
150
|
pulumi.set(self, "comment", value)
|
|
152
151
|
|
|
153
|
-
@property
|
|
152
|
+
@_builtins.property
|
|
154
153
|
@pulumi.getter(name="enableConsoleOutput")
|
|
155
|
-
def enable_console_output(self) -> Optional[pulumi.Input[
|
|
154
|
+
def enable_console_output(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
156
155
|
"""
|
|
157
156
|
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).
|
|
158
157
|
"""
|
|
159
158
|
return pulumi.get(self, "enable_console_output")
|
|
160
159
|
|
|
161
160
|
@enable_console_output.setter
|
|
162
|
-
def enable_console_output(self, value: Optional[pulumi.Input[
|
|
161
|
+
def enable_console_output(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
163
162
|
pulumi.set(self, "enable_console_output", value)
|
|
164
163
|
|
|
165
|
-
@property
|
|
164
|
+
@_builtins.property
|
|
166
165
|
@pulumi.getter(name="executeAs")
|
|
167
|
-
def execute_as(self) -> Optional[pulumi.Input[
|
|
166
|
+
def execute_as(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
168
167
|
"""
|
|
169
168
|
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`.
|
|
170
169
|
"""
|
|
171
170
|
return pulumi.get(self, "execute_as")
|
|
172
171
|
|
|
173
172
|
@execute_as.setter
|
|
174
|
-
def execute_as(self, value: Optional[pulumi.Input[
|
|
173
|
+
def execute_as(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
175
174
|
pulumi.set(self, "execute_as", value)
|
|
176
175
|
|
|
177
|
-
@property
|
|
176
|
+
@_builtins.property
|
|
178
177
|
@pulumi.getter(name="isSecure")
|
|
179
|
-
def is_secure(self) -> Optional[pulumi.Input[
|
|
178
|
+
def is_secure(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
180
179
|
"""
|
|
181
180
|
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
182
181
|
"""
|
|
183
182
|
return pulumi.get(self, "is_secure")
|
|
184
183
|
|
|
185
184
|
@is_secure.setter
|
|
186
|
-
def is_secure(self, value: Optional[pulumi.Input[
|
|
185
|
+
def is_secure(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
187
186
|
pulumi.set(self, "is_secure", value)
|
|
188
187
|
|
|
189
|
-
@property
|
|
188
|
+
@_builtins.property
|
|
190
189
|
@pulumi.getter(name="logLevel")
|
|
191
|
-
def log_level(self) -> Optional[pulumi.Input[
|
|
190
|
+
def log_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
192
191
|
"""
|
|
193
192
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
194
193
|
"""
|
|
195
194
|
return pulumi.get(self, "log_level")
|
|
196
195
|
|
|
197
196
|
@log_level.setter
|
|
198
|
-
def log_level(self, value: Optional[pulumi.Input[
|
|
197
|
+
def log_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
199
198
|
pulumi.set(self, "log_level", value)
|
|
200
199
|
|
|
201
|
-
@property
|
|
200
|
+
@_builtins.property
|
|
202
201
|
@pulumi.getter(name="metricLevel")
|
|
203
|
-
def metric_level(self) -> Optional[pulumi.Input[
|
|
202
|
+
def metric_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
204
203
|
"""
|
|
205
204
|
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).
|
|
206
205
|
"""
|
|
207
206
|
return pulumi.get(self, "metric_level")
|
|
208
207
|
|
|
209
208
|
@metric_level.setter
|
|
210
|
-
def metric_level(self, value: Optional[pulumi.Input[
|
|
209
|
+
def metric_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
211
210
|
pulumi.set(self, "metric_level", value)
|
|
212
211
|
|
|
213
|
-
@property
|
|
212
|
+
@_builtins.property
|
|
214
213
|
@pulumi.getter
|
|
215
|
-
def name(self) -> Optional[pulumi.Input[
|
|
214
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
216
215
|
"""
|
|
217
216
|
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: `|`, `.`, `"`.
|
|
218
217
|
"""
|
|
219
218
|
return pulumi.get(self, "name")
|
|
220
219
|
|
|
221
220
|
@name.setter
|
|
222
|
-
def name(self, value: Optional[pulumi.Input[
|
|
221
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
223
222
|
pulumi.set(self, "name", value)
|
|
224
223
|
|
|
225
|
-
@property
|
|
224
|
+
@_builtins.property
|
|
226
225
|
@pulumi.getter(name="nullInputBehavior")
|
|
227
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[
|
|
226
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
228
227
|
"""
|
|
229
228
|
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`.
|
|
230
229
|
"""
|
|
231
230
|
return pulumi.get(self, "null_input_behavior")
|
|
232
231
|
|
|
233
232
|
@null_input_behavior.setter
|
|
234
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[
|
|
233
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
235
234
|
pulumi.set(self, "null_input_behavior", value)
|
|
236
235
|
|
|
237
|
-
@property
|
|
236
|
+
@_builtins.property
|
|
238
237
|
@pulumi.getter(name="traceLevel")
|
|
239
|
-
def trace_level(self) -> Optional[pulumi.Input[
|
|
238
|
+
def trace_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
240
239
|
"""
|
|
241
240
|
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).
|
|
242
241
|
"""
|
|
243
242
|
return pulumi.get(self, "trace_level")
|
|
244
243
|
|
|
245
244
|
@trace_level.setter
|
|
246
|
-
def trace_level(self, value: Optional[pulumi.Input[
|
|
245
|
+
def trace_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
247
246
|
pulumi.set(self, "trace_level", value)
|
|
248
247
|
|
|
249
248
|
|
|
@@ -251,43 +250,43 @@ class ProcedureJavascriptArgs:
|
|
|
251
250
|
class _ProcedureJavascriptState:
|
|
252
251
|
def __init__(__self__, *,
|
|
253
252
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]] = None,
|
|
254
|
-
comment: Optional[pulumi.Input[
|
|
255
|
-
database: Optional[pulumi.Input[
|
|
256
|
-
enable_console_output: Optional[pulumi.Input[
|
|
257
|
-
execute_as: Optional[pulumi.Input[
|
|
258
|
-
fully_qualified_name: Optional[pulumi.Input[
|
|
259
|
-
is_secure: Optional[pulumi.Input[
|
|
260
|
-
log_level: Optional[pulumi.Input[
|
|
261
|
-
metric_level: Optional[pulumi.Input[
|
|
262
|
-
name: Optional[pulumi.Input[
|
|
263
|
-
null_input_behavior: Optional[pulumi.Input[
|
|
253
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
254
|
+
database: Optional[pulumi.Input[_builtins.str]] = None,
|
|
255
|
+
enable_console_output: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
256
|
+
execute_as: Optional[pulumi.Input[_builtins.str]] = None,
|
|
257
|
+
fully_qualified_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
258
|
+
is_secure: Optional[pulumi.Input[_builtins.str]] = None,
|
|
259
|
+
log_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
260
|
+
metric_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
261
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
262
|
+
null_input_behavior: Optional[pulumi.Input[_builtins.str]] = None,
|
|
264
263
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptParameterArgs']]]] = None,
|
|
265
|
-
procedure_definition: Optional[pulumi.Input[
|
|
266
|
-
procedure_language: Optional[pulumi.Input[
|
|
267
|
-
return_type: Optional[pulumi.Input[
|
|
268
|
-
schema: Optional[pulumi.Input[
|
|
264
|
+
procedure_definition: Optional[pulumi.Input[_builtins.str]] = None,
|
|
265
|
+
procedure_language: Optional[pulumi.Input[_builtins.str]] = None,
|
|
266
|
+
return_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
267
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
269
268
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptShowOutputArgs']]]] = None,
|
|
270
|
-
trace_level: Optional[pulumi.Input[
|
|
269
|
+
trace_level: Optional[pulumi.Input[_builtins.str]] = None):
|
|
271
270
|
"""
|
|
272
271
|
Input properties used for looking up and filtering ProcedureJavascript resources.
|
|
273
272
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]] 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.
|
|
274
|
-
:param pulumi.Input[
|
|
275
|
-
:param pulumi.Input[
|
|
276
|
-
:param pulumi.Input[
|
|
277
|
-
:param pulumi.Input[
|
|
278
|
-
:param pulumi.Input[
|
|
279
|
-
:param pulumi.Input[
|
|
280
|
-
:param pulumi.Input[
|
|
281
|
-
:param pulumi.Input[
|
|
282
|
-
:param pulumi.Input[
|
|
283
|
-
:param pulumi.Input[
|
|
273
|
+
:param pulumi.Input[_builtins.str] comment: (Default: `user-defined procedure`) Specifies a comment for the procedure.
|
|
274
|
+
: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: `|`, `.`, `"`.
|
|
275
|
+
: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).
|
|
276
|
+
: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`.
|
|
277
|
+
: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).
|
|
278
|
+
:param pulumi.Input[_builtins.str] is_secure: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
279
|
+
: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).
|
|
280
|
+
: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).
|
|
281
|
+
: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: `|`, `.`, `"`.
|
|
282
|
+
: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`.
|
|
284
283
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptParameterArgs']]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
285
|
-
:param pulumi.Input[
|
|
286
|
-
:param pulumi.Input[
|
|
287
|
-
:param pulumi.Input[
|
|
288
|
-
:param pulumi.Input[
|
|
284
|
+
: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 JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). 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[_builtins.str] procedure_language: Specifies language for the procedure. Used to detect external changes.
|
|
286
|
+
: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 and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). 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[_builtins.str] schema: The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
289
288
|
:param pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptShowOutputArgs']]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
290
|
-
:param pulumi.Input[
|
|
289
|
+
: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).
|
|
291
290
|
"""
|
|
292
291
|
if arguments is not None:
|
|
293
292
|
pulumi.set(__self__, "arguments", arguments)
|
|
@@ -326,7 +325,7 @@ class _ProcedureJavascriptState:
|
|
|
326
325
|
if trace_level is not None:
|
|
327
326
|
pulumi.set(__self__, "trace_level", trace_level)
|
|
328
327
|
|
|
329
|
-
@property
|
|
328
|
+
@_builtins.property
|
|
330
329
|
@pulumi.getter
|
|
331
330
|
def arguments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]]:
|
|
332
331
|
"""
|
|
@@ -338,127 +337,127 @@ class _ProcedureJavascriptState:
|
|
|
338
337
|
def arguments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptArgumentArgs']]]]):
|
|
339
338
|
pulumi.set(self, "arguments", value)
|
|
340
339
|
|
|
341
|
-
@property
|
|
340
|
+
@_builtins.property
|
|
342
341
|
@pulumi.getter
|
|
343
|
-
def comment(self) -> Optional[pulumi.Input[
|
|
342
|
+
def comment(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
344
343
|
"""
|
|
345
344
|
(Default: `user-defined procedure`) Specifies a comment for the procedure.
|
|
346
345
|
"""
|
|
347
346
|
return pulumi.get(self, "comment")
|
|
348
347
|
|
|
349
348
|
@comment.setter
|
|
350
|
-
def comment(self, value: Optional[pulumi.Input[
|
|
349
|
+
def comment(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
351
350
|
pulumi.set(self, "comment", value)
|
|
352
351
|
|
|
353
|
-
@property
|
|
352
|
+
@_builtins.property
|
|
354
353
|
@pulumi.getter
|
|
355
|
-
def database(self) -> Optional[pulumi.Input[
|
|
354
|
+
def database(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
356
355
|
"""
|
|
357
356
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
358
357
|
"""
|
|
359
358
|
return pulumi.get(self, "database")
|
|
360
359
|
|
|
361
360
|
@database.setter
|
|
362
|
-
def database(self, value: Optional[pulumi.Input[
|
|
361
|
+
def database(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
363
362
|
pulumi.set(self, "database", value)
|
|
364
363
|
|
|
365
|
-
@property
|
|
364
|
+
@_builtins.property
|
|
366
365
|
@pulumi.getter(name="enableConsoleOutput")
|
|
367
|
-
def enable_console_output(self) -> Optional[pulumi.Input[
|
|
366
|
+
def enable_console_output(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
368
367
|
"""
|
|
369
368
|
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).
|
|
370
369
|
"""
|
|
371
370
|
return pulumi.get(self, "enable_console_output")
|
|
372
371
|
|
|
373
372
|
@enable_console_output.setter
|
|
374
|
-
def enable_console_output(self, value: Optional[pulumi.Input[
|
|
373
|
+
def enable_console_output(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
375
374
|
pulumi.set(self, "enable_console_output", value)
|
|
376
375
|
|
|
377
|
-
@property
|
|
376
|
+
@_builtins.property
|
|
378
377
|
@pulumi.getter(name="executeAs")
|
|
379
|
-
def execute_as(self) -> Optional[pulumi.Input[
|
|
378
|
+
def execute_as(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
380
379
|
"""
|
|
381
380
|
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`.
|
|
382
381
|
"""
|
|
383
382
|
return pulumi.get(self, "execute_as")
|
|
384
383
|
|
|
385
384
|
@execute_as.setter
|
|
386
|
-
def execute_as(self, value: Optional[pulumi.Input[
|
|
385
|
+
def execute_as(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
387
386
|
pulumi.set(self, "execute_as", value)
|
|
388
387
|
|
|
389
|
-
@property
|
|
388
|
+
@_builtins.property
|
|
390
389
|
@pulumi.getter(name="fullyQualifiedName")
|
|
391
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[
|
|
390
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
392
391
|
"""
|
|
393
392
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
394
393
|
"""
|
|
395
394
|
return pulumi.get(self, "fully_qualified_name")
|
|
396
395
|
|
|
397
396
|
@fully_qualified_name.setter
|
|
398
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[
|
|
397
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
399
398
|
pulumi.set(self, "fully_qualified_name", value)
|
|
400
399
|
|
|
401
|
-
@property
|
|
400
|
+
@_builtins.property
|
|
402
401
|
@pulumi.getter(name="isSecure")
|
|
403
|
-
def is_secure(self) -> Optional[pulumi.Input[
|
|
402
|
+
def is_secure(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
404
403
|
"""
|
|
405
404
|
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
406
405
|
"""
|
|
407
406
|
return pulumi.get(self, "is_secure")
|
|
408
407
|
|
|
409
408
|
@is_secure.setter
|
|
410
|
-
def is_secure(self, value: Optional[pulumi.Input[
|
|
409
|
+
def is_secure(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
411
410
|
pulumi.set(self, "is_secure", value)
|
|
412
411
|
|
|
413
|
-
@property
|
|
412
|
+
@_builtins.property
|
|
414
413
|
@pulumi.getter(name="logLevel")
|
|
415
|
-
def log_level(self) -> Optional[pulumi.Input[
|
|
414
|
+
def log_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
416
415
|
"""
|
|
417
416
|
LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
418
417
|
"""
|
|
419
418
|
return pulumi.get(self, "log_level")
|
|
420
419
|
|
|
421
420
|
@log_level.setter
|
|
422
|
-
def log_level(self, value: Optional[pulumi.Input[
|
|
421
|
+
def log_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
423
422
|
pulumi.set(self, "log_level", value)
|
|
424
423
|
|
|
425
|
-
@property
|
|
424
|
+
@_builtins.property
|
|
426
425
|
@pulumi.getter(name="metricLevel")
|
|
427
|
-
def metric_level(self) -> Optional[pulumi.Input[
|
|
426
|
+
def metric_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
428
427
|
"""
|
|
429
428
|
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).
|
|
430
429
|
"""
|
|
431
430
|
return pulumi.get(self, "metric_level")
|
|
432
431
|
|
|
433
432
|
@metric_level.setter
|
|
434
|
-
def metric_level(self, value: Optional[pulumi.Input[
|
|
433
|
+
def metric_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
435
434
|
pulumi.set(self, "metric_level", value)
|
|
436
435
|
|
|
437
|
-
@property
|
|
436
|
+
@_builtins.property
|
|
438
437
|
@pulumi.getter
|
|
439
|
-
def name(self) -> Optional[pulumi.Input[
|
|
438
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
440
439
|
"""
|
|
441
440
|
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: `|`, `.`, `"`.
|
|
442
441
|
"""
|
|
443
442
|
return pulumi.get(self, "name")
|
|
444
443
|
|
|
445
444
|
@name.setter
|
|
446
|
-
def name(self, value: Optional[pulumi.Input[
|
|
445
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
447
446
|
pulumi.set(self, "name", value)
|
|
448
447
|
|
|
449
|
-
@property
|
|
448
|
+
@_builtins.property
|
|
450
449
|
@pulumi.getter(name="nullInputBehavior")
|
|
451
|
-
def null_input_behavior(self) -> Optional[pulumi.Input[
|
|
450
|
+
def null_input_behavior(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
452
451
|
"""
|
|
453
452
|
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`.
|
|
454
453
|
"""
|
|
455
454
|
return pulumi.get(self, "null_input_behavior")
|
|
456
455
|
|
|
457
456
|
@null_input_behavior.setter
|
|
458
|
-
def null_input_behavior(self, value: Optional[pulumi.Input[
|
|
457
|
+
def null_input_behavior(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
459
458
|
pulumi.set(self, "null_input_behavior", value)
|
|
460
459
|
|
|
461
|
-
@property
|
|
460
|
+
@_builtins.property
|
|
462
461
|
@pulumi.getter
|
|
463
462
|
def parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptParameterArgs']]]]:
|
|
464
463
|
"""
|
|
@@ -470,55 +469,55 @@ class _ProcedureJavascriptState:
|
|
|
470
469
|
def parameters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptParameterArgs']]]]):
|
|
471
470
|
pulumi.set(self, "parameters", value)
|
|
472
471
|
|
|
473
|
-
@property
|
|
472
|
+
@_builtins.property
|
|
474
473
|
@pulumi.getter(name="procedureDefinition")
|
|
475
|
-
def procedure_definition(self) -> Optional[pulumi.Input[
|
|
474
|
+
def procedure_definition(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
476
475
|
"""
|
|
477
476
|
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 JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). 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.
|
|
478
477
|
"""
|
|
479
478
|
return pulumi.get(self, "procedure_definition")
|
|
480
479
|
|
|
481
480
|
@procedure_definition.setter
|
|
482
|
-
def procedure_definition(self, value: Optional[pulumi.Input[
|
|
481
|
+
def procedure_definition(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
483
482
|
pulumi.set(self, "procedure_definition", value)
|
|
484
483
|
|
|
485
|
-
@property
|
|
484
|
+
@_builtins.property
|
|
486
485
|
@pulumi.getter(name="procedureLanguage")
|
|
487
|
-
def procedure_language(self) -> Optional[pulumi.Input[
|
|
486
|
+
def procedure_language(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
488
487
|
"""
|
|
489
488
|
Specifies language for the procedure. Used to detect external changes.
|
|
490
489
|
"""
|
|
491
490
|
return pulumi.get(self, "procedure_language")
|
|
492
491
|
|
|
493
492
|
@procedure_language.setter
|
|
494
|
-
def procedure_language(self, value: Optional[pulumi.Input[
|
|
493
|
+
def procedure_language(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
495
494
|
pulumi.set(self, "procedure_language", value)
|
|
496
495
|
|
|
497
|
-
@property
|
|
496
|
+
@_builtins.property
|
|
498
497
|
@pulumi.getter(name="returnType")
|
|
499
|
-
def return_type(self) -> Optional[pulumi.Input[
|
|
498
|
+
def return_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
500
499
|
"""
|
|
501
500
|
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 and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). 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 ()`).
|
|
502
501
|
"""
|
|
503
502
|
return pulumi.get(self, "return_type")
|
|
504
503
|
|
|
505
504
|
@return_type.setter
|
|
506
|
-
def return_type(self, value: Optional[pulumi.Input[
|
|
505
|
+
def return_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
507
506
|
pulumi.set(self, "return_type", value)
|
|
508
507
|
|
|
509
|
-
@property
|
|
508
|
+
@_builtins.property
|
|
510
509
|
@pulumi.getter
|
|
511
|
-
def schema(self) -> Optional[pulumi.Input[
|
|
510
|
+
def schema(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
512
511
|
"""
|
|
513
512
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
514
513
|
"""
|
|
515
514
|
return pulumi.get(self, "schema")
|
|
516
515
|
|
|
517
516
|
@schema.setter
|
|
518
|
-
def schema(self, value: Optional[pulumi.Input[
|
|
517
|
+
def schema(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
519
518
|
pulumi.set(self, "schema", value)
|
|
520
519
|
|
|
521
|
-
@property
|
|
520
|
+
@_builtins.property
|
|
522
521
|
@pulumi.getter(name="showOutputs")
|
|
523
522
|
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptShowOutputArgs']]]]:
|
|
524
523
|
"""
|
|
@@ -530,16 +529,16 @@ class _ProcedureJavascriptState:
|
|
|
530
529
|
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ProcedureJavascriptShowOutputArgs']]]]):
|
|
531
530
|
pulumi.set(self, "show_outputs", value)
|
|
532
531
|
|
|
533
|
-
@property
|
|
532
|
+
@_builtins.property
|
|
534
533
|
@pulumi.getter(name="traceLevel")
|
|
535
|
-
def trace_level(self) -> Optional[pulumi.Input[
|
|
534
|
+
def trace_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
536
535
|
"""
|
|
537
536
|
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).
|
|
538
537
|
"""
|
|
539
538
|
return pulumi.get(self, "trace_level")
|
|
540
539
|
|
|
541
540
|
@trace_level.setter
|
|
542
|
-
def trace_level(self, value: Optional[pulumi.Input[
|
|
541
|
+
def trace_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
543
542
|
pulumi.set(self, "trace_level", value)
|
|
544
543
|
|
|
545
544
|
|
|
@@ -550,19 +549,19 @@ class ProcedureJavascript(pulumi.CustomResource):
|
|
|
550
549
|
resource_name: str,
|
|
551
550
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
552
551
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptArgumentArgs', 'ProcedureJavascriptArgumentArgsDict']]]]] = None,
|
|
553
|
-
comment: Optional[pulumi.Input[
|
|
554
|
-
database: Optional[pulumi.Input[
|
|
555
|
-
enable_console_output: Optional[pulumi.Input[
|
|
556
|
-
execute_as: Optional[pulumi.Input[
|
|
557
|
-
is_secure: Optional[pulumi.Input[
|
|
558
|
-
log_level: Optional[pulumi.Input[
|
|
559
|
-
metric_level: Optional[pulumi.Input[
|
|
560
|
-
name: Optional[pulumi.Input[
|
|
561
|
-
null_input_behavior: Optional[pulumi.Input[
|
|
562
|
-
procedure_definition: Optional[pulumi.Input[
|
|
563
|
-
return_type: Optional[pulumi.Input[
|
|
564
|
-
schema: Optional[pulumi.Input[
|
|
565
|
-
trace_level: Optional[pulumi.Input[
|
|
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,
|
|
566
565
|
__props__=None):
|
|
567
566
|
"""
|
|
568
567
|
## Import
|
|
@@ -578,19 +577,19 @@ class ProcedureJavascript(pulumi.CustomResource):
|
|
|
578
577
|
:param str resource_name: The name of the resource.
|
|
579
578
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
580
579
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptArgumentArgs', 'ProcedureJavascriptArgumentArgsDict']]]] 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.
|
|
581
|
-
:param pulumi.Input[
|
|
582
|
-
:param pulumi.Input[
|
|
583
|
-
:param pulumi.Input[
|
|
584
|
-
:param pulumi.Input[
|
|
585
|
-
:param pulumi.Input[
|
|
586
|
-
:param pulumi.Input[
|
|
587
|
-
:param pulumi.Input[
|
|
588
|
-
:param pulumi.Input[
|
|
589
|
-
:param pulumi.Input[
|
|
590
|
-
:param pulumi.Input[
|
|
591
|
-
:param pulumi.Input[
|
|
592
|
-
:param pulumi.Input[
|
|
593
|
-
:param pulumi.Input[
|
|
580
|
+
:param pulumi.Input[_builtins.str] comment: (Default: `user-defined procedure`) 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: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
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 JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). 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 and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). 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).
|
|
594
593
|
"""
|
|
595
594
|
...
|
|
596
595
|
@overload
|
|
@@ -625,19 +624,19 @@ class ProcedureJavascript(pulumi.CustomResource):
|
|
|
625
624
|
resource_name: str,
|
|
626
625
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
627
626
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptArgumentArgs', 'ProcedureJavascriptArgumentArgsDict']]]]] = None,
|
|
628
|
-
comment: Optional[pulumi.Input[
|
|
629
|
-
database: Optional[pulumi.Input[
|
|
630
|
-
enable_console_output: Optional[pulumi.Input[
|
|
631
|
-
execute_as: Optional[pulumi.Input[
|
|
632
|
-
is_secure: Optional[pulumi.Input[
|
|
633
|
-
log_level: Optional[pulumi.Input[
|
|
634
|
-
metric_level: Optional[pulumi.Input[
|
|
635
|
-
name: Optional[pulumi.Input[
|
|
636
|
-
null_input_behavior: Optional[pulumi.Input[
|
|
637
|
-
procedure_definition: Optional[pulumi.Input[
|
|
638
|
-
return_type: Optional[pulumi.Input[
|
|
639
|
-
schema: Optional[pulumi.Input[
|
|
640
|
-
trace_level: Optional[pulumi.Input[
|
|
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,
|
|
641
640
|
__props__=None):
|
|
642
641
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
643
642
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -684,23 +683,23 @@ class ProcedureJavascript(pulumi.CustomResource):
|
|
|
684
683
|
id: pulumi.Input[str],
|
|
685
684
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
686
685
|
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptArgumentArgs', 'ProcedureJavascriptArgumentArgsDict']]]]] = None,
|
|
687
|
-
comment: Optional[pulumi.Input[
|
|
688
|
-
database: Optional[pulumi.Input[
|
|
689
|
-
enable_console_output: Optional[pulumi.Input[
|
|
690
|
-
execute_as: Optional[pulumi.Input[
|
|
691
|
-
fully_qualified_name: Optional[pulumi.Input[
|
|
692
|
-
is_secure: Optional[pulumi.Input[
|
|
693
|
-
log_level: Optional[pulumi.Input[
|
|
694
|
-
metric_level: Optional[pulumi.Input[
|
|
695
|
-
name: Optional[pulumi.Input[
|
|
696
|
-
null_input_behavior: Optional[pulumi.Input[
|
|
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,
|
|
697
696
|
parameters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptParameterArgs', 'ProcedureJavascriptParameterArgsDict']]]]] = None,
|
|
698
|
-
procedure_definition: Optional[pulumi.Input[
|
|
699
|
-
procedure_language: Optional[pulumi.Input[
|
|
700
|
-
return_type: Optional[pulumi.Input[
|
|
701
|
-
schema: Optional[pulumi.Input[
|
|
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,
|
|
702
701
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptShowOutputArgs', 'ProcedureJavascriptShowOutputArgsDict']]]]] = None,
|
|
703
|
-
trace_level: Optional[pulumi.Input[
|
|
702
|
+
trace_level: Optional[pulumi.Input[_builtins.str]] = None) -> 'ProcedureJavascript':
|
|
704
703
|
"""
|
|
705
704
|
Get an existing ProcedureJavascript resource's state with the given name, id, and optional extra
|
|
706
705
|
properties used to qualify the lookup.
|
|
@@ -709,23 +708,23 @@ class ProcedureJavascript(pulumi.CustomResource):
|
|
|
709
708
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
710
709
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
711
710
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptArgumentArgs', 'ProcedureJavascriptArgumentArgsDict']]]] 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.
|
|
712
|
-
:param pulumi.Input[
|
|
713
|
-
:param pulumi.Input[
|
|
714
|
-
:param pulumi.Input[
|
|
715
|
-
:param pulumi.Input[
|
|
716
|
-
:param pulumi.Input[
|
|
717
|
-
:param pulumi.Input[
|
|
718
|
-
:param pulumi.Input[
|
|
719
|
-
:param pulumi.Input[
|
|
720
|
-
:param pulumi.Input[
|
|
721
|
-
:param pulumi.Input[
|
|
711
|
+
:param pulumi.Input[_builtins.str] comment: (Default: `user-defined procedure`) 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: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
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`.
|
|
722
721
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptParameterArgs', 'ProcedureJavascriptParameterArgsDict']]]] parameters: Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
723
|
-
:param pulumi.Input[
|
|
724
|
-
:param pulumi.Input[
|
|
725
|
-
:param pulumi.Input[
|
|
726
|
-
:param pulumi.Input[
|
|
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 JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). 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 and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). 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: `|`, `.`, `"`.
|
|
727
726
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ProcedureJavascriptShowOutputArgs', 'ProcedureJavascriptShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
728
|
-
:param pulumi.Input[
|
|
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).
|
|
729
728
|
"""
|
|
730
729
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
731
730
|
|
|
@@ -751,7 +750,7 @@ class ProcedureJavascript(pulumi.CustomResource):
|
|
|
751
750
|
__props__.__dict__["trace_level"] = trace_level
|
|
752
751
|
return ProcedureJavascript(resource_name, opts=opts, __props__=__props__)
|
|
753
752
|
|
|
754
|
-
@property
|
|
753
|
+
@_builtins.property
|
|
755
754
|
@pulumi.getter
|
|
756
755
|
def arguments(self) -> pulumi.Output[Optional[Sequence['outputs.ProcedureJavascriptArgument']]]:
|
|
757
756
|
"""
|
|
@@ -759,87 +758,87 @@ class ProcedureJavascript(pulumi.CustomResource):
|
|
|
759
758
|
"""
|
|
760
759
|
return pulumi.get(self, "arguments")
|
|
761
760
|
|
|
762
|
-
@property
|
|
761
|
+
@_builtins.property
|
|
763
762
|
@pulumi.getter
|
|
764
|
-
def comment(self) -> pulumi.Output[Optional[
|
|
763
|
+
def comment(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
765
764
|
"""
|
|
766
765
|
(Default: `user-defined procedure`) Specifies a comment for the procedure.
|
|
767
766
|
"""
|
|
768
767
|
return pulumi.get(self, "comment")
|
|
769
768
|
|
|
770
|
-
@property
|
|
769
|
+
@_builtins.property
|
|
771
770
|
@pulumi.getter
|
|
772
|
-
def database(self) -> pulumi.Output[
|
|
771
|
+
def database(self) -> pulumi.Output[_builtins.str]:
|
|
773
772
|
"""
|
|
774
773
|
The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
775
774
|
"""
|
|
776
775
|
return pulumi.get(self, "database")
|
|
777
776
|
|
|
778
|
-
@property
|
|
777
|
+
@_builtins.property
|
|
779
778
|
@pulumi.getter(name="enableConsoleOutput")
|
|
780
|
-
def enable_console_output(self) -> pulumi.Output[
|
|
779
|
+
def enable_console_output(self) -> pulumi.Output[_builtins.bool]:
|
|
781
780
|
"""
|
|
782
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).
|
|
783
782
|
"""
|
|
784
783
|
return pulumi.get(self, "enable_console_output")
|
|
785
784
|
|
|
786
|
-
@property
|
|
785
|
+
@_builtins.property
|
|
787
786
|
@pulumi.getter(name="executeAs")
|
|
788
|
-
def execute_as(self) -> pulumi.Output[Optional[
|
|
787
|
+
def execute_as(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
789
788
|
"""
|
|
790
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`.
|
|
791
790
|
"""
|
|
792
791
|
return pulumi.get(self, "execute_as")
|
|
793
792
|
|
|
794
|
-
@property
|
|
793
|
+
@_builtins.property
|
|
795
794
|
@pulumi.getter(name="fullyQualifiedName")
|
|
796
|
-
def fully_qualified_name(self) -> pulumi.Output[
|
|
795
|
+
def fully_qualified_name(self) -> pulumi.Output[_builtins.str]:
|
|
797
796
|
"""
|
|
798
797
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
799
798
|
"""
|
|
800
799
|
return pulumi.get(self, "fully_qualified_name")
|
|
801
800
|
|
|
802
|
-
@property
|
|
801
|
+
@_builtins.property
|
|
803
802
|
@pulumi.getter(name="isSecure")
|
|
804
|
-
def is_secure(self) -> pulumi.Output[Optional[
|
|
803
|
+
def is_secure(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
805
804
|
"""
|
|
806
805
|
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
807
806
|
"""
|
|
808
807
|
return pulumi.get(self, "is_secure")
|
|
809
808
|
|
|
810
|
-
@property
|
|
809
|
+
@_builtins.property
|
|
811
810
|
@pulumi.getter(name="logLevel")
|
|
812
|
-
def log_level(self) -> pulumi.Output[
|
|
811
|
+
def log_level(self) -> pulumi.Output[_builtins.str]:
|
|
813
812
|
"""
|
|
814
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).
|
|
815
814
|
"""
|
|
816
815
|
return pulumi.get(self, "log_level")
|
|
817
816
|
|
|
818
|
-
@property
|
|
817
|
+
@_builtins.property
|
|
819
818
|
@pulumi.getter(name="metricLevel")
|
|
820
|
-
def metric_level(self) -> pulumi.Output[
|
|
819
|
+
def metric_level(self) -> pulumi.Output[_builtins.str]:
|
|
821
820
|
"""
|
|
822
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).
|
|
823
822
|
"""
|
|
824
823
|
return pulumi.get(self, "metric_level")
|
|
825
824
|
|
|
826
|
-
@property
|
|
825
|
+
@_builtins.property
|
|
827
826
|
@pulumi.getter
|
|
828
|
-
def name(self) -> pulumi.Output[
|
|
827
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
829
828
|
"""
|
|
830
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: `|`, `.`, `"`.
|
|
831
830
|
"""
|
|
832
831
|
return pulumi.get(self, "name")
|
|
833
832
|
|
|
834
|
-
@property
|
|
833
|
+
@_builtins.property
|
|
835
834
|
@pulumi.getter(name="nullInputBehavior")
|
|
836
|
-
def null_input_behavior(self) -> pulumi.Output[Optional[
|
|
835
|
+
def null_input_behavior(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
837
836
|
"""
|
|
838
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`.
|
|
839
838
|
"""
|
|
840
839
|
return pulumi.get(self, "null_input_behavior")
|
|
841
840
|
|
|
842
|
-
@property
|
|
841
|
+
@_builtins.property
|
|
843
842
|
@pulumi.getter
|
|
844
843
|
def parameters(self) -> pulumi.Output[Sequence['outputs.ProcedureJavascriptParameter']]:
|
|
845
844
|
"""
|
|
@@ -847,39 +846,39 @@ class ProcedureJavascript(pulumi.CustomResource):
|
|
|
847
846
|
"""
|
|
848
847
|
return pulumi.get(self, "parameters")
|
|
849
848
|
|
|
850
|
-
@property
|
|
849
|
+
@_builtins.property
|
|
851
850
|
@pulumi.getter(name="procedureDefinition")
|
|
852
|
-
def procedure_definition(self) -> pulumi.Output[
|
|
851
|
+
def procedure_definition(self) -> pulumi.Output[_builtins.str]:
|
|
853
852
|
"""
|
|
854
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 JavaScript source code. For more information, see [JavaScript](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript). To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
855
854
|
"""
|
|
856
855
|
return pulumi.get(self, "procedure_definition")
|
|
857
856
|
|
|
858
|
-
@property
|
|
857
|
+
@_builtins.property
|
|
859
858
|
@pulumi.getter(name="procedureLanguage")
|
|
860
|
-
def procedure_language(self) -> pulumi.Output[
|
|
859
|
+
def procedure_language(self) -> pulumi.Output[_builtins.str]:
|
|
861
860
|
"""
|
|
862
861
|
Specifies language for the procedure. Used to detect external changes.
|
|
863
862
|
"""
|
|
864
863
|
return pulumi.get(self, "procedure_language")
|
|
865
864
|
|
|
866
|
-
@property
|
|
865
|
+
@_builtins.property
|
|
867
866
|
@pulumi.getter(name="returnType")
|
|
868
|
-
def return_type(self) -> pulumi.Output[
|
|
867
|
+
def return_type(self) -> pulumi.Output[_builtins.str]:
|
|
869
868
|
"""
|
|
870
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 and JavaScript data type mapping](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-javascript.html#label-stored-procedure-data-type-mapping)). 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 ()`).
|
|
871
870
|
"""
|
|
872
871
|
return pulumi.get(self, "return_type")
|
|
873
872
|
|
|
874
|
-
@property
|
|
873
|
+
@_builtins.property
|
|
875
874
|
@pulumi.getter
|
|
876
|
-
def schema(self) -> pulumi.Output[
|
|
875
|
+
def schema(self) -> pulumi.Output[_builtins.str]:
|
|
877
876
|
"""
|
|
878
877
|
The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
879
878
|
"""
|
|
880
879
|
return pulumi.get(self, "schema")
|
|
881
880
|
|
|
882
|
-
@property
|
|
881
|
+
@_builtins.property
|
|
883
882
|
@pulumi.getter(name="showOutputs")
|
|
884
883
|
def show_outputs(self) -> pulumi.Output[Sequence['outputs.ProcedureJavascriptShowOutput']]:
|
|
885
884
|
"""
|
|
@@ -887,9 +886,9 @@ class ProcedureJavascript(pulumi.CustomResource):
|
|
|
887
886
|
"""
|
|
888
887
|
return pulumi.get(self, "show_outputs")
|
|
889
888
|
|
|
890
|
-
@property
|
|
889
|
+
@_builtins.property
|
|
891
890
|
@pulumi.getter(name="traceLevel")
|
|
892
|
-
def trace_level(self) -> pulumi.Output[
|
|
891
|
+
def trace_level(self) -> pulumi.Output[_builtins.str]:
|
|
893
892
|
"""
|
|
894
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).
|
|
895
894
|
"""
|