pulumi-snowflake 0.50.3a1710160126__py3-none-any.whl → 1.2.0a1736835738__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 +224 -172
- pulumi_snowflake/_inputs.py +52857 -1665
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -218
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -48
- pulumi_snowflake/account_password_policy_attachment.py +7 -32
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -47
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
- pulumi_snowflake/api_integration.py +33 -52
- pulumi_snowflake/authentication_policy.py +622 -0
- pulumi_snowflake/config/__init__.pyi +76 -99
- pulumi_snowflake/config/outputs.py +5 -0
- pulumi_snowflake/config/vars.py +93 -124
- pulumi_snowflake/cortex_search_service.py +596 -0
- pulumi_snowflake/database.py +819 -213
- pulumi_snowflake/database_role.py +81 -44
- pulumi_snowflake/dynamic_table.py +42 -49
- pulumi_snowflake/email_notification_integration.py +33 -28
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
- pulumi_snowflake/external_function.py +54 -75
- pulumi_snowflake/external_oauth_integration.py +593 -542
- pulumi_snowflake/external_table.py +67 -90
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +57 -98
- pulumi_snowflake/file_format.py +33 -28
- pulumi_snowflake/function_java.py +1211 -0
- pulumi_snowflake/function_javascript.py +882 -0
- pulumi_snowflake/function_python.py +1212 -0
- pulumi_snowflake/function_scala.py +1212 -0
- pulumi_snowflake/function_sql.py +835 -0
- pulumi_snowflake/get_account_roles.py +129 -0
- pulumi_snowflake/get_accounts.py +53 -22
- pulumi_snowflake/get_alerts.py +22 -9
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -13
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -9
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -47
- pulumi_snowflake/get_databases.py +91 -73
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -9
- pulumi_snowflake/get_external_tables.py +28 -9
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -9
- pulumi_snowflake/get_functions.py +28 -9
- pulumi_snowflake/get_grants.py +207 -84
- pulumi_snowflake/get_masking_policies.py +91 -51
- pulumi_snowflake/get_materialized_views.py +28 -9
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -15
- pulumi_snowflake/get_pipes.py +28 -9
- pulumi_snowflake/get_procedures.py +28 -9
- pulumi_snowflake/get_resource_monitors.py +37 -24
- pulumi_snowflake/get_row_access_policies.py +91 -51
- pulumi_snowflake/get_schemas.py +145 -41
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -9
- pulumi_snowflake/get_shares.py +18 -9
- pulumi_snowflake/get_stages.py +28 -9
- pulumi_snowflake/get_storage_integrations.py +16 -9
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -54
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +120 -5
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -9
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -54
- pulumi_snowflake/get_users.py +116 -44
- pulumi_snowflake/get_views.py +114 -54
- pulumi_snowflake/get_warehouses.py +79 -26
- pulumi_snowflake/grant_account_role.py +28 -75
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -94
- pulumi_snowflake/grant_ownership.py +382 -0
- pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
- pulumi_snowflake/grant_privileges_to_database_role.py +37 -383
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +40 -11
- pulumi_snowflake/masking_policy.py +213 -310
- pulumi_snowflake/materialized_view.py +62 -71
- pulumi_snowflake/network_policy.py +217 -61
- pulumi_snowflake/network_policy_attachment.py +5 -34
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +49 -84
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
- pulumi_snowflake/object_parameter.py +10 -101
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -4
- pulumi_snowflake/primary_connection.py +330 -0
- pulumi_snowflake/procedure_java.py +1273 -0
- pulumi_snowflake/procedure_javascript.py +895 -0
- pulumi_snowflake/procedure_python.py +1226 -0
- pulumi_snowflake/procedure_scala.py +1273 -0
- pulumi_snowflake/procedure_sql.py +895 -0
- pulumi_snowflake/provider.py +378 -613
- pulumi_snowflake/pulumi-plugin.json +2 -1
- pulumi_snowflake/resource_monitor.py +118 -327
- pulumi_snowflake/row_access_policy.py +200 -149
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
- pulumi_snowflake/schema.py +949 -178
- pulumi_snowflake/scim_integration.py +286 -109
- pulumi_snowflake/secondary_connection.py +339 -0
- pulumi_snowflake/secondary_database.py +1080 -0
- pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
- pulumi_snowflake/secret_with_basic_authentication.py +500 -0
- pulumi_snowflake/secret_with_client_credentials.py +511 -0
- pulumi_snowflake/secret_with_generic_string.py +452 -0
- pulumi_snowflake/sequence.py +9 -34
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +33 -28
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -84
- pulumi_snowflake/storage_integration.py +46 -4
- pulumi_snowflake/stream_on_directory_table.py +517 -0
- pulumi_snowflake/stream_on_external_table.py +632 -0
- pulumi_snowflake/stream_on_table.py +666 -0
- pulumi_snowflake/stream_on_view.py +666 -0
- pulumi_snowflake/streamlit.py +671 -0
- pulumi_snowflake/table.py +86 -97
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -172
- pulumi_snowflake/tag.py +142 -74
- pulumi_snowflake/tag_association.py +40 -215
- pulumi_snowflake/task.py +3048 -418
- pulumi_snowflake/user.py +3351 -384
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +5 -4
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -215
- pulumi_snowflake/warehouse.py +184 -168
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
- pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -343
- pulumi_snowflake/database_grant.py +0 -495
- pulumi_snowflake/external_table_grant.py +0 -690
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -635
- pulumi_snowflake/function.py +0 -872
- pulumi_snowflake/function_grant.py +0 -745
- pulumi_snowflake/get_role.py +0 -121
- pulumi_snowflake/get_roles.py +0 -120
- pulumi_snowflake/grant_privileges_to_role.py +0 -825
- pulumi_snowflake/integration_grant.py +0 -440
- pulumi_snowflake/masking_policy_grant.py +0 -542
- pulumi_snowflake/materialized_view_grant.py +0 -689
- pulumi_snowflake/pipe_grant.py +0 -587
- pulumi_snowflake/procedure.py +0 -887
- pulumi_snowflake/procedure_grant.py +0 -745
- pulumi_snowflake/resource_monitor_grant.py +0 -387
- pulumi_snowflake/role.py +0 -273
- pulumi_snowflake/role_grants.py +0 -352
- pulumi_snowflake/role_ownership_grant.py +0 -338
- pulumi_snowflake/row_access_policy_grant.py +0 -540
- pulumi_snowflake/schema_grant.py +0 -647
- pulumi_snowflake/sequence_grant.py +0 -635
- pulumi_snowflake/session_parameter.py +0 -332
- pulumi_snowflake/stage_grant.py +0 -635
- pulumi_snowflake/stream.py +0 -614
- pulumi_snowflake/stream_grant.py +0 -635
- pulumi_snowflake/table_grant.py +0 -677
- pulumi_snowflake/tag_grant.py +0 -532
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -635
- pulumi_snowflake/user_grant.py +0 -394
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -705
- pulumi_snowflake/warehouse_grant.py +0 -440
- pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,939 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = ['SharedDatabaseArgs', 'SharedDatabase']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class SharedDatabaseArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
from_share: pulumi.Input[str],
|
|
23
|
+
catalog: Optional[pulumi.Input[str]] = None,
|
|
24
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
25
|
+
default_ddl_collation: Optional[pulumi.Input[str]] = None,
|
|
26
|
+
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
27
|
+
external_volume: Optional[pulumi.Input[str]] = None,
|
|
28
|
+
log_level: Optional[pulumi.Input[str]] = None,
|
|
29
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
30
|
+
quoted_identifiers_ignore_case: Optional[pulumi.Input[bool]] = None,
|
|
31
|
+
replace_invalid_characters: Optional[pulumi.Input[bool]] = None,
|
|
32
|
+
storage_serialization_policy: Optional[pulumi.Input[str]] = None,
|
|
33
|
+
suspend_task_after_num_failures: Optional[pulumi.Input[int]] = None,
|
|
34
|
+
task_auto_retry_attempts: Optional[pulumi.Input[int]] = None,
|
|
35
|
+
trace_level: Optional[pulumi.Input[str]] = None,
|
|
36
|
+
user_task_managed_initial_warehouse_size: Optional[pulumi.Input[str]] = None,
|
|
37
|
+
user_task_minimum_trigger_interval_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
38
|
+
user_task_timeout_ms: Optional[pulumi.Input[int]] = None):
|
|
39
|
+
"""
|
|
40
|
+
The set of arguments for constructing a SharedDatabase resource.
|
|
41
|
+
:param pulumi.Input[str] from_share: A fully qualified path to a share from which the database will be created. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<share_name>"`. For more information about this resource, see docs.
|
|
42
|
+
:param pulumi.Input[str] catalog: The database parameter that specifies the default catalog to use for Iceberg tables. For more information, see [CATALOG](https://docs.snowflake.com/en/sql-reference/parameters#catalog).
|
|
43
|
+
:param pulumi.Input[str] comment: Specifies a comment for the database.
|
|
44
|
+
:param pulumi.Input[str] default_ddl_collation: Specifies a default collation specification for all schemas and tables added to the database. It can be overridden on schema or table level. For more information, see [collation specification](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
|
|
45
|
+
:param pulumi.Input[bool] enable_console_output: If true, enables stdout/stderr fast path logging for anonymous stored procedures.
|
|
46
|
+
:param pulumi.Input[str] external_volume: The database parameter that specifies the default external volume to use for Iceberg tables. For more information, see [EXTERNAL_VOLUME](https://docs.snowflake.com/en/sql-reference/parameters#external-volume).
|
|
47
|
+
:param pulumi.Input[str] log_level: Specifies the severity level of messages that should be ingested and made available in the active event table. Valid options are: [TRACE DEBUG INFO WARN ERROR FATAL OFF]. Messages at the specified level (and at more severe levels) are ingested. For more information, see [LOG_LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
|
|
48
|
+
:param pulumi.Input[str] name: Specifies the identifier for the database; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
49
|
+
:param pulumi.Input[bool] quoted_identifiers_ignore_case: If true, the case of quoted identifiers is ignored. For more information, see [QUOTED*IDENTIFIERS*IGNORE_CASE](https://docs.snowflake.com/en/sql-reference/parameters#quoted-identifiers-ignore-case).
|
|
50
|
+
:param pulumi.Input[bool] replace_invalid_characters: Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table. You can only set this parameter for tables that use an external Iceberg catalog. For more information, see [REPLACE*INVALID*CHARACTERS](https://docs.snowflake.com/en/sql-reference/parameters#replace-invalid-characters).
|
|
51
|
+
:param pulumi.Input[str] storage_serialization_policy: The storage serialization policy for Iceberg tables that use Snowflake as the catalog. Valid options are: [COMPATIBLE OPTIMIZED]. COMPATIBLE: Snowflake performs encoding and compression of data files that ensures interoperability with third-party compute engines. OPTIMIZED: Snowflake performs encoding and compression of data files that ensures the best table performance within Snowflake. For more information, see [STORAGE*SERIALIZATION*POLICY](https://docs.snowflake.com/en/sql-reference/parameters#storage-serialization-policy).
|
|
52
|
+
:param pulumi.Input[int] suspend_task_after_num_failures: How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending. For more information, see [SUSPEND*TASK*AFTER*NUM*FAILURES](https://docs.snowflake.com/en/sql-reference/parameters#suspend-task-after-num-failures).
|
|
53
|
+
:param pulumi.Input[int] task_auto_retry_attempts: Maximum automatic retries allowed for a user task. For more information, see [TASK*AUTO*RETRY_ATTEMPTS](https://docs.snowflake.com/en/sql-reference/parameters#task-auto-retry-attempts).
|
|
54
|
+
:param pulumi.Input[str] trace_level: Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
|
|
55
|
+
:param pulumi.Input[str] user_task_managed_initial_warehouse_size: The initial size of warehouse to use for managed warehouses in the absence of history. For more information, see [USER*TASK*MANAGED*INITIAL*WAREHOUSE_SIZE](https://docs.snowflake.com/en/sql-reference/parameters#user-task-managed-initial-warehouse-size).
|
|
56
|
+
:param pulumi.Input[int] user_task_minimum_trigger_interval_in_seconds: Minimum amount of time between Triggered Task executions in seconds.
|
|
57
|
+
:param pulumi.Input[int] user_task_timeout_ms: User task execution timeout in milliseconds. For more information, see [USER*TASK*TIMEOUT_MS](https://docs.snowflake.com/en/sql-reference/parameters#user-task-timeout-ms).
|
|
58
|
+
"""
|
|
59
|
+
pulumi.set(__self__, "from_share", from_share)
|
|
60
|
+
if catalog is not None:
|
|
61
|
+
pulumi.set(__self__, "catalog", catalog)
|
|
62
|
+
if comment is not None:
|
|
63
|
+
pulumi.set(__self__, "comment", comment)
|
|
64
|
+
if default_ddl_collation is not None:
|
|
65
|
+
pulumi.set(__self__, "default_ddl_collation", default_ddl_collation)
|
|
66
|
+
if enable_console_output is not None:
|
|
67
|
+
pulumi.set(__self__, "enable_console_output", enable_console_output)
|
|
68
|
+
if external_volume is not None:
|
|
69
|
+
pulumi.set(__self__, "external_volume", external_volume)
|
|
70
|
+
if log_level is not None:
|
|
71
|
+
pulumi.set(__self__, "log_level", log_level)
|
|
72
|
+
if name is not None:
|
|
73
|
+
pulumi.set(__self__, "name", name)
|
|
74
|
+
if quoted_identifiers_ignore_case is not None:
|
|
75
|
+
pulumi.set(__self__, "quoted_identifiers_ignore_case", quoted_identifiers_ignore_case)
|
|
76
|
+
if replace_invalid_characters is not None:
|
|
77
|
+
pulumi.set(__self__, "replace_invalid_characters", replace_invalid_characters)
|
|
78
|
+
if storage_serialization_policy is not None:
|
|
79
|
+
pulumi.set(__self__, "storage_serialization_policy", storage_serialization_policy)
|
|
80
|
+
if suspend_task_after_num_failures is not None:
|
|
81
|
+
pulumi.set(__self__, "suspend_task_after_num_failures", suspend_task_after_num_failures)
|
|
82
|
+
if task_auto_retry_attempts is not None:
|
|
83
|
+
pulumi.set(__self__, "task_auto_retry_attempts", task_auto_retry_attempts)
|
|
84
|
+
if trace_level is not None:
|
|
85
|
+
pulumi.set(__self__, "trace_level", trace_level)
|
|
86
|
+
if user_task_managed_initial_warehouse_size is not None:
|
|
87
|
+
pulumi.set(__self__, "user_task_managed_initial_warehouse_size", user_task_managed_initial_warehouse_size)
|
|
88
|
+
if user_task_minimum_trigger_interval_in_seconds is not None:
|
|
89
|
+
pulumi.set(__self__, "user_task_minimum_trigger_interval_in_seconds", user_task_minimum_trigger_interval_in_seconds)
|
|
90
|
+
if user_task_timeout_ms is not None:
|
|
91
|
+
pulumi.set(__self__, "user_task_timeout_ms", user_task_timeout_ms)
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
@pulumi.getter(name="fromShare")
|
|
95
|
+
def from_share(self) -> pulumi.Input[str]:
|
|
96
|
+
"""
|
|
97
|
+
A fully qualified path to a share from which the database will be created. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<share_name>"`. For more information about this resource, see docs.
|
|
98
|
+
"""
|
|
99
|
+
return pulumi.get(self, "from_share")
|
|
100
|
+
|
|
101
|
+
@from_share.setter
|
|
102
|
+
def from_share(self, value: pulumi.Input[str]):
|
|
103
|
+
pulumi.set(self, "from_share", value)
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
@pulumi.getter
|
|
107
|
+
def catalog(self) -> Optional[pulumi.Input[str]]:
|
|
108
|
+
"""
|
|
109
|
+
The database parameter that specifies the default catalog to use for Iceberg tables. For more information, see [CATALOG](https://docs.snowflake.com/en/sql-reference/parameters#catalog).
|
|
110
|
+
"""
|
|
111
|
+
return pulumi.get(self, "catalog")
|
|
112
|
+
|
|
113
|
+
@catalog.setter
|
|
114
|
+
def catalog(self, value: Optional[pulumi.Input[str]]):
|
|
115
|
+
pulumi.set(self, "catalog", value)
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
@pulumi.getter
|
|
119
|
+
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
120
|
+
"""
|
|
121
|
+
Specifies a comment for the database.
|
|
122
|
+
"""
|
|
123
|
+
return pulumi.get(self, "comment")
|
|
124
|
+
|
|
125
|
+
@comment.setter
|
|
126
|
+
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
127
|
+
pulumi.set(self, "comment", value)
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter(name="defaultDdlCollation")
|
|
131
|
+
def default_ddl_collation(self) -> Optional[pulumi.Input[str]]:
|
|
132
|
+
"""
|
|
133
|
+
Specifies a default collation specification for all schemas and tables added to the database. It can be overridden on schema or table level. For more information, see [collation specification](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "default_ddl_collation")
|
|
136
|
+
|
|
137
|
+
@default_ddl_collation.setter
|
|
138
|
+
def default_ddl_collation(self, value: Optional[pulumi.Input[str]]):
|
|
139
|
+
pulumi.set(self, "default_ddl_collation", value)
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
@pulumi.getter(name="enableConsoleOutput")
|
|
143
|
+
def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
|
|
144
|
+
"""
|
|
145
|
+
If true, enables stdout/stderr fast path logging for anonymous stored procedures.
|
|
146
|
+
"""
|
|
147
|
+
return pulumi.get(self, "enable_console_output")
|
|
148
|
+
|
|
149
|
+
@enable_console_output.setter
|
|
150
|
+
def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
|
|
151
|
+
pulumi.set(self, "enable_console_output", value)
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
@pulumi.getter(name="externalVolume")
|
|
155
|
+
def external_volume(self) -> Optional[pulumi.Input[str]]:
|
|
156
|
+
"""
|
|
157
|
+
The database parameter that specifies the default external volume to use for Iceberg tables. For more information, see [EXTERNAL_VOLUME](https://docs.snowflake.com/en/sql-reference/parameters#external-volume).
|
|
158
|
+
"""
|
|
159
|
+
return pulumi.get(self, "external_volume")
|
|
160
|
+
|
|
161
|
+
@external_volume.setter
|
|
162
|
+
def external_volume(self, value: Optional[pulumi.Input[str]]):
|
|
163
|
+
pulumi.set(self, "external_volume", value)
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter(name="logLevel")
|
|
167
|
+
def log_level(self) -> Optional[pulumi.Input[str]]:
|
|
168
|
+
"""
|
|
169
|
+
Specifies the severity level of messages that should be ingested and made available in the active event table. Valid options are: [TRACE DEBUG INFO WARN ERROR FATAL OFF]. Messages at the specified level (and at more severe levels) are ingested. For more information, see [LOG_LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "log_level")
|
|
172
|
+
|
|
173
|
+
@log_level.setter
|
|
174
|
+
def log_level(self, value: Optional[pulumi.Input[str]]):
|
|
175
|
+
pulumi.set(self, "log_level", value)
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
@pulumi.getter
|
|
179
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
180
|
+
"""
|
|
181
|
+
Specifies the identifier for the database; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
182
|
+
"""
|
|
183
|
+
return pulumi.get(self, "name")
|
|
184
|
+
|
|
185
|
+
@name.setter
|
|
186
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
187
|
+
pulumi.set(self, "name", value)
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
@pulumi.getter(name="quotedIdentifiersIgnoreCase")
|
|
191
|
+
def quoted_identifiers_ignore_case(self) -> Optional[pulumi.Input[bool]]:
|
|
192
|
+
"""
|
|
193
|
+
If true, the case of quoted identifiers is ignored. For more information, see [QUOTED*IDENTIFIERS*IGNORE_CASE](https://docs.snowflake.com/en/sql-reference/parameters#quoted-identifiers-ignore-case).
|
|
194
|
+
"""
|
|
195
|
+
return pulumi.get(self, "quoted_identifiers_ignore_case")
|
|
196
|
+
|
|
197
|
+
@quoted_identifiers_ignore_case.setter
|
|
198
|
+
def quoted_identifiers_ignore_case(self, value: Optional[pulumi.Input[bool]]):
|
|
199
|
+
pulumi.set(self, "quoted_identifiers_ignore_case", value)
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
@pulumi.getter(name="replaceInvalidCharacters")
|
|
203
|
+
def replace_invalid_characters(self) -> Optional[pulumi.Input[bool]]:
|
|
204
|
+
"""
|
|
205
|
+
Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table. You can only set this parameter for tables that use an external Iceberg catalog. For more information, see [REPLACE*INVALID*CHARACTERS](https://docs.snowflake.com/en/sql-reference/parameters#replace-invalid-characters).
|
|
206
|
+
"""
|
|
207
|
+
return pulumi.get(self, "replace_invalid_characters")
|
|
208
|
+
|
|
209
|
+
@replace_invalid_characters.setter
|
|
210
|
+
def replace_invalid_characters(self, value: Optional[pulumi.Input[bool]]):
|
|
211
|
+
pulumi.set(self, "replace_invalid_characters", value)
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
@pulumi.getter(name="storageSerializationPolicy")
|
|
215
|
+
def storage_serialization_policy(self) -> Optional[pulumi.Input[str]]:
|
|
216
|
+
"""
|
|
217
|
+
The storage serialization policy for Iceberg tables that use Snowflake as the catalog. Valid options are: [COMPATIBLE OPTIMIZED]. COMPATIBLE: Snowflake performs encoding and compression of data files that ensures interoperability with third-party compute engines. OPTIMIZED: Snowflake performs encoding and compression of data files that ensures the best table performance within Snowflake. For more information, see [STORAGE*SERIALIZATION*POLICY](https://docs.snowflake.com/en/sql-reference/parameters#storage-serialization-policy).
|
|
218
|
+
"""
|
|
219
|
+
return pulumi.get(self, "storage_serialization_policy")
|
|
220
|
+
|
|
221
|
+
@storage_serialization_policy.setter
|
|
222
|
+
def storage_serialization_policy(self, value: Optional[pulumi.Input[str]]):
|
|
223
|
+
pulumi.set(self, "storage_serialization_policy", value)
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
@pulumi.getter(name="suspendTaskAfterNumFailures")
|
|
227
|
+
def suspend_task_after_num_failures(self) -> Optional[pulumi.Input[int]]:
|
|
228
|
+
"""
|
|
229
|
+
How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending. For more information, see [SUSPEND*TASK*AFTER*NUM*FAILURES](https://docs.snowflake.com/en/sql-reference/parameters#suspend-task-after-num-failures).
|
|
230
|
+
"""
|
|
231
|
+
return pulumi.get(self, "suspend_task_after_num_failures")
|
|
232
|
+
|
|
233
|
+
@suspend_task_after_num_failures.setter
|
|
234
|
+
def suspend_task_after_num_failures(self, value: Optional[pulumi.Input[int]]):
|
|
235
|
+
pulumi.set(self, "suspend_task_after_num_failures", value)
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
@pulumi.getter(name="taskAutoRetryAttempts")
|
|
239
|
+
def task_auto_retry_attempts(self) -> Optional[pulumi.Input[int]]:
|
|
240
|
+
"""
|
|
241
|
+
Maximum automatic retries allowed for a user task. For more information, see [TASK*AUTO*RETRY_ATTEMPTS](https://docs.snowflake.com/en/sql-reference/parameters#task-auto-retry-attempts).
|
|
242
|
+
"""
|
|
243
|
+
return pulumi.get(self, "task_auto_retry_attempts")
|
|
244
|
+
|
|
245
|
+
@task_auto_retry_attempts.setter
|
|
246
|
+
def task_auto_retry_attempts(self, value: Optional[pulumi.Input[int]]):
|
|
247
|
+
pulumi.set(self, "task_auto_retry_attempts", value)
|
|
248
|
+
|
|
249
|
+
@property
|
|
250
|
+
@pulumi.getter(name="traceLevel")
|
|
251
|
+
def trace_level(self) -> Optional[pulumi.Input[str]]:
|
|
252
|
+
"""
|
|
253
|
+
Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
|
|
254
|
+
"""
|
|
255
|
+
return pulumi.get(self, "trace_level")
|
|
256
|
+
|
|
257
|
+
@trace_level.setter
|
|
258
|
+
def trace_level(self, value: Optional[pulumi.Input[str]]):
|
|
259
|
+
pulumi.set(self, "trace_level", value)
|
|
260
|
+
|
|
261
|
+
@property
|
|
262
|
+
@pulumi.getter(name="userTaskManagedInitialWarehouseSize")
|
|
263
|
+
def user_task_managed_initial_warehouse_size(self) -> Optional[pulumi.Input[str]]:
|
|
264
|
+
"""
|
|
265
|
+
The initial size of warehouse to use for managed warehouses in the absence of history. For more information, see [USER*TASK*MANAGED*INITIAL*WAREHOUSE_SIZE](https://docs.snowflake.com/en/sql-reference/parameters#user-task-managed-initial-warehouse-size).
|
|
266
|
+
"""
|
|
267
|
+
return pulumi.get(self, "user_task_managed_initial_warehouse_size")
|
|
268
|
+
|
|
269
|
+
@user_task_managed_initial_warehouse_size.setter
|
|
270
|
+
def user_task_managed_initial_warehouse_size(self, value: Optional[pulumi.Input[str]]):
|
|
271
|
+
pulumi.set(self, "user_task_managed_initial_warehouse_size", value)
|
|
272
|
+
|
|
273
|
+
@property
|
|
274
|
+
@pulumi.getter(name="userTaskMinimumTriggerIntervalInSeconds")
|
|
275
|
+
def user_task_minimum_trigger_interval_in_seconds(self) -> Optional[pulumi.Input[int]]:
|
|
276
|
+
"""
|
|
277
|
+
Minimum amount of time between Triggered Task executions in seconds.
|
|
278
|
+
"""
|
|
279
|
+
return pulumi.get(self, "user_task_minimum_trigger_interval_in_seconds")
|
|
280
|
+
|
|
281
|
+
@user_task_minimum_trigger_interval_in_seconds.setter
|
|
282
|
+
def user_task_minimum_trigger_interval_in_seconds(self, value: Optional[pulumi.Input[int]]):
|
|
283
|
+
pulumi.set(self, "user_task_minimum_trigger_interval_in_seconds", value)
|
|
284
|
+
|
|
285
|
+
@property
|
|
286
|
+
@pulumi.getter(name="userTaskTimeoutMs")
|
|
287
|
+
def user_task_timeout_ms(self) -> Optional[pulumi.Input[int]]:
|
|
288
|
+
"""
|
|
289
|
+
User task execution timeout in milliseconds. For more information, see [USER*TASK*TIMEOUT_MS](https://docs.snowflake.com/en/sql-reference/parameters#user-task-timeout-ms).
|
|
290
|
+
"""
|
|
291
|
+
return pulumi.get(self, "user_task_timeout_ms")
|
|
292
|
+
|
|
293
|
+
@user_task_timeout_ms.setter
|
|
294
|
+
def user_task_timeout_ms(self, value: Optional[pulumi.Input[int]]):
|
|
295
|
+
pulumi.set(self, "user_task_timeout_ms", value)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
@pulumi.input_type
|
|
299
|
+
class _SharedDatabaseState:
|
|
300
|
+
def __init__(__self__, *,
|
|
301
|
+
catalog: Optional[pulumi.Input[str]] = None,
|
|
302
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
303
|
+
default_ddl_collation: Optional[pulumi.Input[str]] = None,
|
|
304
|
+
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
305
|
+
external_volume: Optional[pulumi.Input[str]] = None,
|
|
306
|
+
from_share: Optional[pulumi.Input[str]] = None,
|
|
307
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
308
|
+
log_level: Optional[pulumi.Input[str]] = None,
|
|
309
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
310
|
+
quoted_identifiers_ignore_case: Optional[pulumi.Input[bool]] = None,
|
|
311
|
+
replace_invalid_characters: Optional[pulumi.Input[bool]] = None,
|
|
312
|
+
storage_serialization_policy: Optional[pulumi.Input[str]] = None,
|
|
313
|
+
suspend_task_after_num_failures: Optional[pulumi.Input[int]] = None,
|
|
314
|
+
task_auto_retry_attempts: Optional[pulumi.Input[int]] = None,
|
|
315
|
+
trace_level: Optional[pulumi.Input[str]] = None,
|
|
316
|
+
user_task_managed_initial_warehouse_size: Optional[pulumi.Input[str]] = None,
|
|
317
|
+
user_task_minimum_trigger_interval_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
318
|
+
user_task_timeout_ms: Optional[pulumi.Input[int]] = None):
|
|
319
|
+
"""
|
|
320
|
+
Input properties used for looking up and filtering SharedDatabase resources.
|
|
321
|
+
:param pulumi.Input[str] catalog: The database parameter that specifies the default catalog to use for Iceberg tables. For more information, see [CATALOG](https://docs.snowflake.com/en/sql-reference/parameters#catalog).
|
|
322
|
+
:param pulumi.Input[str] comment: Specifies a comment for the database.
|
|
323
|
+
:param pulumi.Input[str] default_ddl_collation: Specifies a default collation specification for all schemas and tables added to the database. It can be overridden on schema or table level. For more information, see [collation specification](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
|
|
324
|
+
:param pulumi.Input[bool] enable_console_output: If true, enables stdout/stderr fast path logging for anonymous stored procedures.
|
|
325
|
+
:param pulumi.Input[str] external_volume: The database parameter that specifies the default external volume to use for Iceberg tables. For more information, see [EXTERNAL_VOLUME](https://docs.snowflake.com/en/sql-reference/parameters#external-volume).
|
|
326
|
+
:param pulumi.Input[str] from_share: A fully qualified path to a share from which the database will be created. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<share_name>"`. For more information about this resource, see docs.
|
|
327
|
+
: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).
|
|
328
|
+
:param pulumi.Input[str] log_level: Specifies the severity level of messages that should be ingested and made available in the active event table. Valid options are: [TRACE DEBUG INFO WARN ERROR FATAL OFF]. Messages at the specified level (and at more severe levels) are ingested. For more information, see [LOG_LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
|
|
329
|
+
:param pulumi.Input[str] name: Specifies the identifier for the database; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
330
|
+
:param pulumi.Input[bool] quoted_identifiers_ignore_case: If true, the case of quoted identifiers is ignored. For more information, see [QUOTED*IDENTIFIERS*IGNORE_CASE](https://docs.snowflake.com/en/sql-reference/parameters#quoted-identifiers-ignore-case).
|
|
331
|
+
:param pulumi.Input[bool] replace_invalid_characters: Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table. You can only set this parameter for tables that use an external Iceberg catalog. For more information, see [REPLACE*INVALID*CHARACTERS](https://docs.snowflake.com/en/sql-reference/parameters#replace-invalid-characters).
|
|
332
|
+
:param pulumi.Input[str] storage_serialization_policy: The storage serialization policy for Iceberg tables that use Snowflake as the catalog. Valid options are: [COMPATIBLE OPTIMIZED]. COMPATIBLE: Snowflake performs encoding and compression of data files that ensures interoperability with third-party compute engines. OPTIMIZED: Snowflake performs encoding and compression of data files that ensures the best table performance within Snowflake. For more information, see [STORAGE*SERIALIZATION*POLICY](https://docs.snowflake.com/en/sql-reference/parameters#storage-serialization-policy).
|
|
333
|
+
:param pulumi.Input[int] suspend_task_after_num_failures: How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending. For more information, see [SUSPEND*TASK*AFTER*NUM*FAILURES](https://docs.snowflake.com/en/sql-reference/parameters#suspend-task-after-num-failures).
|
|
334
|
+
:param pulumi.Input[int] task_auto_retry_attempts: Maximum automatic retries allowed for a user task. For more information, see [TASK*AUTO*RETRY_ATTEMPTS](https://docs.snowflake.com/en/sql-reference/parameters#task-auto-retry-attempts).
|
|
335
|
+
:param pulumi.Input[str] trace_level: Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
|
|
336
|
+
:param pulumi.Input[str] user_task_managed_initial_warehouse_size: The initial size of warehouse to use for managed warehouses in the absence of history. For more information, see [USER*TASK*MANAGED*INITIAL*WAREHOUSE_SIZE](https://docs.snowflake.com/en/sql-reference/parameters#user-task-managed-initial-warehouse-size).
|
|
337
|
+
:param pulumi.Input[int] user_task_minimum_trigger_interval_in_seconds: Minimum amount of time between Triggered Task executions in seconds.
|
|
338
|
+
:param pulumi.Input[int] user_task_timeout_ms: User task execution timeout in milliseconds. For more information, see [USER*TASK*TIMEOUT_MS](https://docs.snowflake.com/en/sql-reference/parameters#user-task-timeout-ms).
|
|
339
|
+
"""
|
|
340
|
+
if catalog is not None:
|
|
341
|
+
pulumi.set(__self__, "catalog", catalog)
|
|
342
|
+
if comment is not None:
|
|
343
|
+
pulumi.set(__self__, "comment", comment)
|
|
344
|
+
if default_ddl_collation is not None:
|
|
345
|
+
pulumi.set(__self__, "default_ddl_collation", default_ddl_collation)
|
|
346
|
+
if enable_console_output is not None:
|
|
347
|
+
pulumi.set(__self__, "enable_console_output", enable_console_output)
|
|
348
|
+
if external_volume is not None:
|
|
349
|
+
pulumi.set(__self__, "external_volume", external_volume)
|
|
350
|
+
if from_share is not None:
|
|
351
|
+
pulumi.set(__self__, "from_share", from_share)
|
|
352
|
+
if fully_qualified_name is not None:
|
|
353
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
354
|
+
if log_level is not None:
|
|
355
|
+
pulumi.set(__self__, "log_level", log_level)
|
|
356
|
+
if name is not None:
|
|
357
|
+
pulumi.set(__self__, "name", name)
|
|
358
|
+
if quoted_identifiers_ignore_case is not None:
|
|
359
|
+
pulumi.set(__self__, "quoted_identifiers_ignore_case", quoted_identifiers_ignore_case)
|
|
360
|
+
if replace_invalid_characters is not None:
|
|
361
|
+
pulumi.set(__self__, "replace_invalid_characters", replace_invalid_characters)
|
|
362
|
+
if storage_serialization_policy is not None:
|
|
363
|
+
pulumi.set(__self__, "storage_serialization_policy", storage_serialization_policy)
|
|
364
|
+
if suspend_task_after_num_failures is not None:
|
|
365
|
+
pulumi.set(__self__, "suspend_task_after_num_failures", suspend_task_after_num_failures)
|
|
366
|
+
if task_auto_retry_attempts is not None:
|
|
367
|
+
pulumi.set(__self__, "task_auto_retry_attempts", task_auto_retry_attempts)
|
|
368
|
+
if trace_level is not None:
|
|
369
|
+
pulumi.set(__self__, "trace_level", trace_level)
|
|
370
|
+
if user_task_managed_initial_warehouse_size is not None:
|
|
371
|
+
pulumi.set(__self__, "user_task_managed_initial_warehouse_size", user_task_managed_initial_warehouse_size)
|
|
372
|
+
if user_task_minimum_trigger_interval_in_seconds is not None:
|
|
373
|
+
pulumi.set(__self__, "user_task_minimum_trigger_interval_in_seconds", user_task_minimum_trigger_interval_in_seconds)
|
|
374
|
+
if user_task_timeout_ms is not None:
|
|
375
|
+
pulumi.set(__self__, "user_task_timeout_ms", user_task_timeout_ms)
|
|
376
|
+
|
|
377
|
+
@property
|
|
378
|
+
@pulumi.getter
|
|
379
|
+
def catalog(self) -> Optional[pulumi.Input[str]]:
|
|
380
|
+
"""
|
|
381
|
+
The database parameter that specifies the default catalog to use for Iceberg tables. For more information, see [CATALOG](https://docs.snowflake.com/en/sql-reference/parameters#catalog).
|
|
382
|
+
"""
|
|
383
|
+
return pulumi.get(self, "catalog")
|
|
384
|
+
|
|
385
|
+
@catalog.setter
|
|
386
|
+
def catalog(self, value: Optional[pulumi.Input[str]]):
|
|
387
|
+
pulumi.set(self, "catalog", value)
|
|
388
|
+
|
|
389
|
+
@property
|
|
390
|
+
@pulumi.getter
|
|
391
|
+
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
392
|
+
"""
|
|
393
|
+
Specifies a comment for the database.
|
|
394
|
+
"""
|
|
395
|
+
return pulumi.get(self, "comment")
|
|
396
|
+
|
|
397
|
+
@comment.setter
|
|
398
|
+
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
399
|
+
pulumi.set(self, "comment", value)
|
|
400
|
+
|
|
401
|
+
@property
|
|
402
|
+
@pulumi.getter(name="defaultDdlCollation")
|
|
403
|
+
def default_ddl_collation(self) -> Optional[pulumi.Input[str]]:
|
|
404
|
+
"""
|
|
405
|
+
Specifies a default collation specification for all schemas and tables added to the database. It can be overridden on schema or table level. For more information, see [collation specification](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
|
|
406
|
+
"""
|
|
407
|
+
return pulumi.get(self, "default_ddl_collation")
|
|
408
|
+
|
|
409
|
+
@default_ddl_collation.setter
|
|
410
|
+
def default_ddl_collation(self, value: Optional[pulumi.Input[str]]):
|
|
411
|
+
pulumi.set(self, "default_ddl_collation", value)
|
|
412
|
+
|
|
413
|
+
@property
|
|
414
|
+
@pulumi.getter(name="enableConsoleOutput")
|
|
415
|
+
def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
|
|
416
|
+
"""
|
|
417
|
+
If true, enables stdout/stderr fast path logging for anonymous stored procedures.
|
|
418
|
+
"""
|
|
419
|
+
return pulumi.get(self, "enable_console_output")
|
|
420
|
+
|
|
421
|
+
@enable_console_output.setter
|
|
422
|
+
def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
|
|
423
|
+
pulumi.set(self, "enable_console_output", value)
|
|
424
|
+
|
|
425
|
+
@property
|
|
426
|
+
@pulumi.getter(name="externalVolume")
|
|
427
|
+
def external_volume(self) -> Optional[pulumi.Input[str]]:
|
|
428
|
+
"""
|
|
429
|
+
The database parameter that specifies the default external volume to use for Iceberg tables. For more information, see [EXTERNAL_VOLUME](https://docs.snowflake.com/en/sql-reference/parameters#external-volume).
|
|
430
|
+
"""
|
|
431
|
+
return pulumi.get(self, "external_volume")
|
|
432
|
+
|
|
433
|
+
@external_volume.setter
|
|
434
|
+
def external_volume(self, value: Optional[pulumi.Input[str]]):
|
|
435
|
+
pulumi.set(self, "external_volume", value)
|
|
436
|
+
|
|
437
|
+
@property
|
|
438
|
+
@pulumi.getter(name="fromShare")
|
|
439
|
+
def from_share(self) -> Optional[pulumi.Input[str]]:
|
|
440
|
+
"""
|
|
441
|
+
A fully qualified path to a share from which the database will be created. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<share_name>"`. For more information about this resource, see docs.
|
|
442
|
+
"""
|
|
443
|
+
return pulumi.get(self, "from_share")
|
|
444
|
+
|
|
445
|
+
@from_share.setter
|
|
446
|
+
def from_share(self, value: Optional[pulumi.Input[str]]):
|
|
447
|
+
pulumi.set(self, "from_share", value)
|
|
448
|
+
|
|
449
|
+
@property
|
|
450
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
451
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
452
|
+
"""
|
|
453
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
454
|
+
"""
|
|
455
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
456
|
+
|
|
457
|
+
@fully_qualified_name.setter
|
|
458
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
459
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
460
|
+
|
|
461
|
+
@property
|
|
462
|
+
@pulumi.getter(name="logLevel")
|
|
463
|
+
def log_level(self) -> Optional[pulumi.Input[str]]:
|
|
464
|
+
"""
|
|
465
|
+
Specifies the severity level of messages that should be ingested and made available in the active event table. Valid options are: [TRACE DEBUG INFO WARN ERROR FATAL OFF]. Messages at the specified level (and at more severe levels) are ingested. For more information, see [LOG_LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
|
|
466
|
+
"""
|
|
467
|
+
return pulumi.get(self, "log_level")
|
|
468
|
+
|
|
469
|
+
@log_level.setter
|
|
470
|
+
def log_level(self, value: Optional[pulumi.Input[str]]):
|
|
471
|
+
pulumi.set(self, "log_level", value)
|
|
472
|
+
|
|
473
|
+
@property
|
|
474
|
+
@pulumi.getter
|
|
475
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
476
|
+
"""
|
|
477
|
+
Specifies the identifier for the database; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
478
|
+
"""
|
|
479
|
+
return pulumi.get(self, "name")
|
|
480
|
+
|
|
481
|
+
@name.setter
|
|
482
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
483
|
+
pulumi.set(self, "name", value)
|
|
484
|
+
|
|
485
|
+
@property
|
|
486
|
+
@pulumi.getter(name="quotedIdentifiersIgnoreCase")
|
|
487
|
+
def quoted_identifiers_ignore_case(self) -> Optional[pulumi.Input[bool]]:
|
|
488
|
+
"""
|
|
489
|
+
If true, the case of quoted identifiers is ignored. For more information, see [QUOTED*IDENTIFIERS*IGNORE_CASE](https://docs.snowflake.com/en/sql-reference/parameters#quoted-identifiers-ignore-case).
|
|
490
|
+
"""
|
|
491
|
+
return pulumi.get(self, "quoted_identifiers_ignore_case")
|
|
492
|
+
|
|
493
|
+
@quoted_identifiers_ignore_case.setter
|
|
494
|
+
def quoted_identifiers_ignore_case(self, value: Optional[pulumi.Input[bool]]):
|
|
495
|
+
pulumi.set(self, "quoted_identifiers_ignore_case", value)
|
|
496
|
+
|
|
497
|
+
@property
|
|
498
|
+
@pulumi.getter(name="replaceInvalidCharacters")
|
|
499
|
+
def replace_invalid_characters(self) -> Optional[pulumi.Input[bool]]:
|
|
500
|
+
"""
|
|
501
|
+
Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table. You can only set this parameter for tables that use an external Iceberg catalog. For more information, see [REPLACE*INVALID*CHARACTERS](https://docs.snowflake.com/en/sql-reference/parameters#replace-invalid-characters).
|
|
502
|
+
"""
|
|
503
|
+
return pulumi.get(self, "replace_invalid_characters")
|
|
504
|
+
|
|
505
|
+
@replace_invalid_characters.setter
|
|
506
|
+
def replace_invalid_characters(self, value: Optional[pulumi.Input[bool]]):
|
|
507
|
+
pulumi.set(self, "replace_invalid_characters", value)
|
|
508
|
+
|
|
509
|
+
@property
|
|
510
|
+
@pulumi.getter(name="storageSerializationPolicy")
|
|
511
|
+
def storage_serialization_policy(self) -> Optional[pulumi.Input[str]]:
|
|
512
|
+
"""
|
|
513
|
+
The storage serialization policy for Iceberg tables that use Snowflake as the catalog. Valid options are: [COMPATIBLE OPTIMIZED]. COMPATIBLE: Snowflake performs encoding and compression of data files that ensures interoperability with third-party compute engines. OPTIMIZED: Snowflake performs encoding and compression of data files that ensures the best table performance within Snowflake. For more information, see [STORAGE*SERIALIZATION*POLICY](https://docs.snowflake.com/en/sql-reference/parameters#storage-serialization-policy).
|
|
514
|
+
"""
|
|
515
|
+
return pulumi.get(self, "storage_serialization_policy")
|
|
516
|
+
|
|
517
|
+
@storage_serialization_policy.setter
|
|
518
|
+
def storage_serialization_policy(self, value: Optional[pulumi.Input[str]]):
|
|
519
|
+
pulumi.set(self, "storage_serialization_policy", value)
|
|
520
|
+
|
|
521
|
+
@property
|
|
522
|
+
@pulumi.getter(name="suspendTaskAfterNumFailures")
|
|
523
|
+
def suspend_task_after_num_failures(self) -> Optional[pulumi.Input[int]]:
|
|
524
|
+
"""
|
|
525
|
+
How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending. For more information, see [SUSPEND*TASK*AFTER*NUM*FAILURES](https://docs.snowflake.com/en/sql-reference/parameters#suspend-task-after-num-failures).
|
|
526
|
+
"""
|
|
527
|
+
return pulumi.get(self, "suspend_task_after_num_failures")
|
|
528
|
+
|
|
529
|
+
@suspend_task_after_num_failures.setter
|
|
530
|
+
def suspend_task_after_num_failures(self, value: Optional[pulumi.Input[int]]):
|
|
531
|
+
pulumi.set(self, "suspend_task_after_num_failures", value)
|
|
532
|
+
|
|
533
|
+
@property
|
|
534
|
+
@pulumi.getter(name="taskAutoRetryAttempts")
|
|
535
|
+
def task_auto_retry_attempts(self) -> Optional[pulumi.Input[int]]:
|
|
536
|
+
"""
|
|
537
|
+
Maximum automatic retries allowed for a user task. For more information, see [TASK*AUTO*RETRY_ATTEMPTS](https://docs.snowflake.com/en/sql-reference/parameters#task-auto-retry-attempts).
|
|
538
|
+
"""
|
|
539
|
+
return pulumi.get(self, "task_auto_retry_attempts")
|
|
540
|
+
|
|
541
|
+
@task_auto_retry_attempts.setter
|
|
542
|
+
def task_auto_retry_attempts(self, value: Optional[pulumi.Input[int]]):
|
|
543
|
+
pulumi.set(self, "task_auto_retry_attempts", value)
|
|
544
|
+
|
|
545
|
+
@property
|
|
546
|
+
@pulumi.getter(name="traceLevel")
|
|
547
|
+
def trace_level(self) -> Optional[pulumi.Input[str]]:
|
|
548
|
+
"""
|
|
549
|
+
Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
|
|
550
|
+
"""
|
|
551
|
+
return pulumi.get(self, "trace_level")
|
|
552
|
+
|
|
553
|
+
@trace_level.setter
|
|
554
|
+
def trace_level(self, value: Optional[pulumi.Input[str]]):
|
|
555
|
+
pulumi.set(self, "trace_level", value)
|
|
556
|
+
|
|
557
|
+
@property
|
|
558
|
+
@pulumi.getter(name="userTaskManagedInitialWarehouseSize")
|
|
559
|
+
def user_task_managed_initial_warehouse_size(self) -> Optional[pulumi.Input[str]]:
|
|
560
|
+
"""
|
|
561
|
+
The initial size of warehouse to use for managed warehouses in the absence of history. For more information, see [USER*TASK*MANAGED*INITIAL*WAREHOUSE_SIZE](https://docs.snowflake.com/en/sql-reference/parameters#user-task-managed-initial-warehouse-size).
|
|
562
|
+
"""
|
|
563
|
+
return pulumi.get(self, "user_task_managed_initial_warehouse_size")
|
|
564
|
+
|
|
565
|
+
@user_task_managed_initial_warehouse_size.setter
|
|
566
|
+
def user_task_managed_initial_warehouse_size(self, value: Optional[pulumi.Input[str]]):
|
|
567
|
+
pulumi.set(self, "user_task_managed_initial_warehouse_size", value)
|
|
568
|
+
|
|
569
|
+
@property
|
|
570
|
+
@pulumi.getter(name="userTaskMinimumTriggerIntervalInSeconds")
|
|
571
|
+
def user_task_minimum_trigger_interval_in_seconds(self) -> Optional[pulumi.Input[int]]:
|
|
572
|
+
"""
|
|
573
|
+
Minimum amount of time between Triggered Task executions in seconds.
|
|
574
|
+
"""
|
|
575
|
+
return pulumi.get(self, "user_task_minimum_trigger_interval_in_seconds")
|
|
576
|
+
|
|
577
|
+
@user_task_minimum_trigger_interval_in_seconds.setter
|
|
578
|
+
def user_task_minimum_trigger_interval_in_seconds(self, value: Optional[pulumi.Input[int]]):
|
|
579
|
+
pulumi.set(self, "user_task_minimum_trigger_interval_in_seconds", value)
|
|
580
|
+
|
|
581
|
+
@property
|
|
582
|
+
@pulumi.getter(name="userTaskTimeoutMs")
|
|
583
|
+
def user_task_timeout_ms(self) -> Optional[pulumi.Input[int]]:
|
|
584
|
+
"""
|
|
585
|
+
User task execution timeout in milliseconds. For more information, see [USER*TASK*TIMEOUT_MS](https://docs.snowflake.com/en/sql-reference/parameters#user-task-timeout-ms).
|
|
586
|
+
"""
|
|
587
|
+
return pulumi.get(self, "user_task_timeout_ms")
|
|
588
|
+
|
|
589
|
+
@user_task_timeout_ms.setter
|
|
590
|
+
def user_task_timeout_ms(self, value: Optional[pulumi.Input[int]]):
|
|
591
|
+
pulumi.set(self, "user_task_timeout_ms", value)
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
class SharedDatabase(pulumi.CustomResource):
|
|
595
|
+
@overload
|
|
596
|
+
def __init__(__self__,
|
|
597
|
+
resource_name: str,
|
|
598
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
599
|
+
catalog: Optional[pulumi.Input[str]] = None,
|
|
600
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
601
|
+
default_ddl_collation: Optional[pulumi.Input[str]] = None,
|
|
602
|
+
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
603
|
+
external_volume: Optional[pulumi.Input[str]] = None,
|
|
604
|
+
from_share: Optional[pulumi.Input[str]] = None,
|
|
605
|
+
log_level: Optional[pulumi.Input[str]] = None,
|
|
606
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
607
|
+
quoted_identifiers_ignore_case: Optional[pulumi.Input[bool]] = None,
|
|
608
|
+
replace_invalid_characters: Optional[pulumi.Input[bool]] = None,
|
|
609
|
+
storage_serialization_policy: Optional[pulumi.Input[str]] = None,
|
|
610
|
+
suspend_task_after_num_failures: Optional[pulumi.Input[int]] = None,
|
|
611
|
+
task_auto_retry_attempts: Optional[pulumi.Input[int]] = None,
|
|
612
|
+
trace_level: Optional[pulumi.Input[str]] = None,
|
|
613
|
+
user_task_managed_initial_warehouse_size: Optional[pulumi.Input[str]] = None,
|
|
614
|
+
user_task_minimum_trigger_interval_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
615
|
+
user_task_timeout_ms: Optional[pulumi.Input[int]] = None,
|
|
616
|
+
__props__=None):
|
|
617
|
+
"""
|
|
618
|
+
## Import
|
|
619
|
+
|
|
620
|
+
```sh
|
|
621
|
+
$ pulumi import snowflake:index/sharedDatabase:SharedDatabase example '"<shared_database_name>"'
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
:param str resource_name: The name of the resource.
|
|
625
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
626
|
+
:param pulumi.Input[str] catalog: The database parameter that specifies the default catalog to use for Iceberg tables. For more information, see [CATALOG](https://docs.snowflake.com/en/sql-reference/parameters#catalog).
|
|
627
|
+
:param pulumi.Input[str] comment: Specifies a comment for the database.
|
|
628
|
+
:param pulumi.Input[str] default_ddl_collation: Specifies a default collation specification for all schemas and tables added to the database. It can be overridden on schema or table level. For more information, see [collation specification](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
|
|
629
|
+
:param pulumi.Input[bool] enable_console_output: If true, enables stdout/stderr fast path logging for anonymous stored procedures.
|
|
630
|
+
:param pulumi.Input[str] external_volume: The database parameter that specifies the default external volume to use for Iceberg tables. For more information, see [EXTERNAL_VOLUME](https://docs.snowflake.com/en/sql-reference/parameters#external-volume).
|
|
631
|
+
:param pulumi.Input[str] from_share: A fully qualified path to a share from which the database will be created. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<share_name>"`. For more information about this resource, see docs.
|
|
632
|
+
:param pulumi.Input[str] log_level: Specifies the severity level of messages that should be ingested and made available in the active event table. Valid options are: [TRACE DEBUG INFO WARN ERROR FATAL OFF]. Messages at the specified level (and at more severe levels) are ingested. For more information, see [LOG_LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
|
|
633
|
+
:param pulumi.Input[str] name: Specifies the identifier for the database; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
634
|
+
:param pulumi.Input[bool] quoted_identifiers_ignore_case: If true, the case of quoted identifiers is ignored. For more information, see [QUOTED*IDENTIFIERS*IGNORE_CASE](https://docs.snowflake.com/en/sql-reference/parameters#quoted-identifiers-ignore-case).
|
|
635
|
+
:param pulumi.Input[bool] replace_invalid_characters: Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table. You can only set this parameter for tables that use an external Iceberg catalog. For more information, see [REPLACE*INVALID*CHARACTERS](https://docs.snowflake.com/en/sql-reference/parameters#replace-invalid-characters).
|
|
636
|
+
:param pulumi.Input[str] storage_serialization_policy: The storage serialization policy for Iceberg tables that use Snowflake as the catalog. Valid options are: [COMPATIBLE OPTIMIZED]. COMPATIBLE: Snowflake performs encoding and compression of data files that ensures interoperability with third-party compute engines. OPTIMIZED: Snowflake performs encoding and compression of data files that ensures the best table performance within Snowflake. For more information, see [STORAGE*SERIALIZATION*POLICY](https://docs.snowflake.com/en/sql-reference/parameters#storage-serialization-policy).
|
|
637
|
+
:param pulumi.Input[int] suspend_task_after_num_failures: How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending. For more information, see [SUSPEND*TASK*AFTER*NUM*FAILURES](https://docs.snowflake.com/en/sql-reference/parameters#suspend-task-after-num-failures).
|
|
638
|
+
:param pulumi.Input[int] task_auto_retry_attempts: Maximum automatic retries allowed for a user task. For more information, see [TASK*AUTO*RETRY_ATTEMPTS](https://docs.snowflake.com/en/sql-reference/parameters#task-auto-retry-attempts).
|
|
639
|
+
:param pulumi.Input[str] trace_level: Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
|
|
640
|
+
:param pulumi.Input[str] user_task_managed_initial_warehouse_size: The initial size of warehouse to use for managed warehouses in the absence of history. For more information, see [USER*TASK*MANAGED*INITIAL*WAREHOUSE_SIZE](https://docs.snowflake.com/en/sql-reference/parameters#user-task-managed-initial-warehouse-size).
|
|
641
|
+
:param pulumi.Input[int] user_task_minimum_trigger_interval_in_seconds: Minimum amount of time between Triggered Task executions in seconds.
|
|
642
|
+
:param pulumi.Input[int] user_task_timeout_ms: User task execution timeout in milliseconds. For more information, see [USER*TASK*TIMEOUT_MS](https://docs.snowflake.com/en/sql-reference/parameters#user-task-timeout-ms).
|
|
643
|
+
"""
|
|
644
|
+
...
|
|
645
|
+
@overload
|
|
646
|
+
def __init__(__self__,
|
|
647
|
+
resource_name: str,
|
|
648
|
+
args: SharedDatabaseArgs,
|
|
649
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
650
|
+
"""
|
|
651
|
+
## Import
|
|
652
|
+
|
|
653
|
+
```sh
|
|
654
|
+
$ pulumi import snowflake:index/sharedDatabase:SharedDatabase example '"<shared_database_name>"'
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
:param str resource_name: The name of the resource.
|
|
658
|
+
:param SharedDatabaseArgs args: The arguments to use to populate this resource's properties.
|
|
659
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
660
|
+
"""
|
|
661
|
+
...
|
|
662
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
663
|
+
resource_args, opts = _utilities.get_resource_args_opts(SharedDatabaseArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
664
|
+
if resource_args is not None:
|
|
665
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
666
|
+
else:
|
|
667
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
668
|
+
|
|
669
|
+
def _internal_init(__self__,
|
|
670
|
+
resource_name: str,
|
|
671
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
672
|
+
catalog: Optional[pulumi.Input[str]] = None,
|
|
673
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
674
|
+
default_ddl_collation: Optional[pulumi.Input[str]] = None,
|
|
675
|
+
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
676
|
+
external_volume: Optional[pulumi.Input[str]] = None,
|
|
677
|
+
from_share: Optional[pulumi.Input[str]] = None,
|
|
678
|
+
log_level: Optional[pulumi.Input[str]] = None,
|
|
679
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
680
|
+
quoted_identifiers_ignore_case: Optional[pulumi.Input[bool]] = None,
|
|
681
|
+
replace_invalid_characters: Optional[pulumi.Input[bool]] = None,
|
|
682
|
+
storage_serialization_policy: Optional[pulumi.Input[str]] = None,
|
|
683
|
+
suspend_task_after_num_failures: Optional[pulumi.Input[int]] = None,
|
|
684
|
+
task_auto_retry_attempts: Optional[pulumi.Input[int]] = None,
|
|
685
|
+
trace_level: Optional[pulumi.Input[str]] = None,
|
|
686
|
+
user_task_managed_initial_warehouse_size: Optional[pulumi.Input[str]] = None,
|
|
687
|
+
user_task_minimum_trigger_interval_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
688
|
+
user_task_timeout_ms: Optional[pulumi.Input[int]] = None,
|
|
689
|
+
__props__=None):
|
|
690
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
691
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
692
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
693
|
+
if opts.id is None:
|
|
694
|
+
if __props__ is not None:
|
|
695
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
696
|
+
__props__ = SharedDatabaseArgs.__new__(SharedDatabaseArgs)
|
|
697
|
+
|
|
698
|
+
__props__.__dict__["catalog"] = catalog
|
|
699
|
+
__props__.__dict__["comment"] = comment
|
|
700
|
+
__props__.__dict__["default_ddl_collation"] = default_ddl_collation
|
|
701
|
+
__props__.__dict__["enable_console_output"] = enable_console_output
|
|
702
|
+
__props__.__dict__["external_volume"] = external_volume
|
|
703
|
+
if from_share is None and not opts.urn:
|
|
704
|
+
raise TypeError("Missing required property 'from_share'")
|
|
705
|
+
__props__.__dict__["from_share"] = from_share
|
|
706
|
+
__props__.__dict__["log_level"] = log_level
|
|
707
|
+
__props__.__dict__["name"] = name
|
|
708
|
+
__props__.__dict__["quoted_identifiers_ignore_case"] = quoted_identifiers_ignore_case
|
|
709
|
+
__props__.__dict__["replace_invalid_characters"] = replace_invalid_characters
|
|
710
|
+
__props__.__dict__["storage_serialization_policy"] = storage_serialization_policy
|
|
711
|
+
__props__.__dict__["suspend_task_after_num_failures"] = suspend_task_after_num_failures
|
|
712
|
+
__props__.__dict__["task_auto_retry_attempts"] = task_auto_retry_attempts
|
|
713
|
+
__props__.__dict__["trace_level"] = trace_level
|
|
714
|
+
__props__.__dict__["user_task_managed_initial_warehouse_size"] = user_task_managed_initial_warehouse_size
|
|
715
|
+
__props__.__dict__["user_task_minimum_trigger_interval_in_seconds"] = user_task_minimum_trigger_interval_in_seconds
|
|
716
|
+
__props__.__dict__["user_task_timeout_ms"] = user_task_timeout_ms
|
|
717
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
718
|
+
super(SharedDatabase, __self__).__init__(
|
|
719
|
+
'snowflake:index/sharedDatabase:SharedDatabase',
|
|
720
|
+
resource_name,
|
|
721
|
+
__props__,
|
|
722
|
+
opts)
|
|
723
|
+
|
|
724
|
+
@staticmethod
|
|
725
|
+
def get(resource_name: str,
|
|
726
|
+
id: pulumi.Input[str],
|
|
727
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
728
|
+
catalog: Optional[pulumi.Input[str]] = None,
|
|
729
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
730
|
+
default_ddl_collation: Optional[pulumi.Input[str]] = None,
|
|
731
|
+
enable_console_output: Optional[pulumi.Input[bool]] = None,
|
|
732
|
+
external_volume: Optional[pulumi.Input[str]] = None,
|
|
733
|
+
from_share: Optional[pulumi.Input[str]] = None,
|
|
734
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
735
|
+
log_level: Optional[pulumi.Input[str]] = None,
|
|
736
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
737
|
+
quoted_identifiers_ignore_case: Optional[pulumi.Input[bool]] = None,
|
|
738
|
+
replace_invalid_characters: Optional[pulumi.Input[bool]] = None,
|
|
739
|
+
storage_serialization_policy: Optional[pulumi.Input[str]] = None,
|
|
740
|
+
suspend_task_after_num_failures: Optional[pulumi.Input[int]] = None,
|
|
741
|
+
task_auto_retry_attempts: Optional[pulumi.Input[int]] = None,
|
|
742
|
+
trace_level: Optional[pulumi.Input[str]] = None,
|
|
743
|
+
user_task_managed_initial_warehouse_size: Optional[pulumi.Input[str]] = None,
|
|
744
|
+
user_task_minimum_trigger_interval_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
745
|
+
user_task_timeout_ms: Optional[pulumi.Input[int]] = None) -> 'SharedDatabase':
|
|
746
|
+
"""
|
|
747
|
+
Get an existing SharedDatabase resource's state with the given name, id, and optional extra
|
|
748
|
+
properties used to qualify the lookup.
|
|
749
|
+
|
|
750
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
751
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
752
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
753
|
+
:param pulumi.Input[str] catalog: The database parameter that specifies the default catalog to use for Iceberg tables. For more information, see [CATALOG](https://docs.snowflake.com/en/sql-reference/parameters#catalog).
|
|
754
|
+
:param pulumi.Input[str] comment: Specifies a comment for the database.
|
|
755
|
+
:param pulumi.Input[str] default_ddl_collation: Specifies a default collation specification for all schemas and tables added to the database. It can be overridden on schema or table level. For more information, see [collation specification](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
|
|
756
|
+
:param pulumi.Input[bool] enable_console_output: If true, enables stdout/stderr fast path logging for anonymous stored procedures.
|
|
757
|
+
:param pulumi.Input[str] external_volume: The database parameter that specifies the default external volume to use for Iceberg tables. For more information, see [EXTERNAL_VOLUME](https://docs.snowflake.com/en/sql-reference/parameters#external-volume).
|
|
758
|
+
:param pulumi.Input[str] from_share: A fully qualified path to a share from which the database will be created. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<share_name>"`. For more information about this resource, see docs.
|
|
759
|
+
: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).
|
|
760
|
+
:param pulumi.Input[str] log_level: Specifies the severity level of messages that should be ingested and made available in the active event table. Valid options are: [TRACE DEBUG INFO WARN ERROR FATAL OFF]. Messages at the specified level (and at more severe levels) are ingested. For more information, see [LOG_LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
|
|
761
|
+
:param pulumi.Input[str] name: Specifies the identifier for the database; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
762
|
+
:param pulumi.Input[bool] quoted_identifiers_ignore_case: If true, the case of quoted identifiers is ignored. For more information, see [QUOTED*IDENTIFIERS*IGNORE_CASE](https://docs.snowflake.com/en/sql-reference/parameters#quoted-identifiers-ignore-case).
|
|
763
|
+
:param pulumi.Input[bool] replace_invalid_characters: Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table. You can only set this parameter for tables that use an external Iceberg catalog. For more information, see [REPLACE*INVALID*CHARACTERS](https://docs.snowflake.com/en/sql-reference/parameters#replace-invalid-characters).
|
|
764
|
+
:param pulumi.Input[str] storage_serialization_policy: The storage serialization policy for Iceberg tables that use Snowflake as the catalog. Valid options are: [COMPATIBLE OPTIMIZED]. COMPATIBLE: Snowflake performs encoding and compression of data files that ensures interoperability with third-party compute engines. OPTIMIZED: Snowflake performs encoding and compression of data files that ensures the best table performance within Snowflake. For more information, see [STORAGE*SERIALIZATION*POLICY](https://docs.snowflake.com/en/sql-reference/parameters#storage-serialization-policy).
|
|
765
|
+
:param pulumi.Input[int] suspend_task_after_num_failures: How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending. For more information, see [SUSPEND*TASK*AFTER*NUM*FAILURES](https://docs.snowflake.com/en/sql-reference/parameters#suspend-task-after-num-failures).
|
|
766
|
+
:param pulumi.Input[int] task_auto_retry_attempts: Maximum automatic retries allowed for a user task. For more information, see [TASK*AUTO*RETRY_ATTEMPTS](https://docs.snowflake.com/en/sql-reference/parameters#task-auto-retry-attempts).
|
|
767
|
+
:param pulumi.Input[str] trace_level: Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
|
|
768
|
+
:param pulumi.Input[str] user_task_managed_initial_warehouse_size: The initial size of warehouse to use for managed warehouses in the absence of history. For more information, see [USER*TASK*MANAGED*INITIAL*WAREHOUSE_SIZE](https://docs.snowflake.com/en/sql-reference/parameters#user-task-managed-initial-warehouse-size).
|
|
769
|
+
:param pulumi.Input[int] user_task_minimum_trigger_interval_in_seconds: Minimum amount of time between Triggered Task executions in seconds.
|
|
770
|
+
:param pulumi.Input[int] user_task_timeout_ms: User task execution timeout in milliseconds. For more information, see [USER*TASK*TIMEOUT_MS](https://docs.snowflake.com/en/sql-reference/parameters#user-task-timeout-ms).
|
|
771
|
+
"""
|
|
772
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
773
|
+
|
|
774
|
+
__props__ = _SharedDatabaseState.__new__(_SharedDatabaseState)
|
|
775
|
+
|
|
776
|
+
__props__.__dict__["catalog"] = catalog
|
|
777
|
+
__props__.__dict__["comment"] = comment
|
|
778
|
+
__props__.__dict__["default_ddl_collation"] = default_ddl_collation
|
|
779
|
+
__props__.__dict__["enable_console_output"] = enable_console_output
|
|
780
|
+
__props__.__dict__["external_volume"] = external_volume
|
|
781
|
+
__props__.__dict__["from_share"] = from_share
|
|
782
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
783
|
+
__props__.__dict__["log_level"] = log_level
|
|
784
|
+
__props__.__dict__["name"] = name
|
|
785
|
+
__props__.__dict__["quoted_identifiers_ignore_case"] = quoted_identifiers_ignore_case
|
|
786
|
+
__props__.__dict__["replace_invalid_characters"] = replace_invalid_characters
|
|
787
|
+
__props__.__dict__["storage_serialization_policy"] = storage_serialization_policy
|
|
788
|
+
__props__.__dict__["suspend_task_after_num_failures"] = suspend_task_after_num_failures
|
|
789
|
+
__props__.__dict__["task_auto_retry_attempts"] = task_auto_retry_attempts
|
|
790
|
+
__props__.__dict__["trace_level"] = trace_level
|
|
791
|
+
__props__.__dict__["user_task_managed_initial_warehouse_size"] = user_task_managed_initial_warehouse_size
|
|
792
|
+
__props__.__dict__["user_task_minimum_trigger_interval_in_seconds"] = user_task_minimum_trigger_interval_in_seconds
|
|
793
|
+
__props__.__dict__["user_task_timeout_ms"] = user_task_timeout_ms
|
|
794
|
+
return SharedDatabase(resource_name, opts=opts, __props__=__props__)
|
|
795
|
+
|
|
796
|
+
@property
|
|
797
|
+
@pulumi.getter
|
|
798
|
+
def catalog(self) -> pulumi.Output[str]:
|
|
799
|
+
"""
|
|
800
|
+
The database parameter that specifies the default catalog to use for Iceberg tables. For more information, see [CATALOG](https://docs.snowflake.com/en/sql-reference/parameters#catalog).
|
|
801
|
+
"""
|
|
802
|
+
return pulumi.get(self, "catalog")
|
|
803
|
+
|
|
804
|
+
@property
|
|
805
|
+
@pulumi.getter
|
|
806
|
+
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
807
|
+
"""
|
|
808
|
+
Specifies a comment for the database.
|
|
809
|
+
"""
|
|
810
|
+
return pulumi.get(self, "comment")
|
|
811
|
+
|
|
812
|
+
@property
|
|
813
|
+
@pulumi.getter(name="defaultDdlCollation")
|
|
814
|
+
def default_ddl_collation(self) -> pulumi.Output[str]:
|
|
815
|
+
"""
|
|
816
|
+
Specifies a default collation specification for all schemas and tables added to the database. It can be overridden on schema or table level. For more information, see [collation specification](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
|
|
817
|
+
"""
|
|
818
|
+
return pulumi.get(self, "default_ddl_collation")
|
|
819
|
+
|
|
820
|
+
@property
|
|
821
|
+
@pulumi.getter(name="enableConsoleOutput")
|
|
822
|
+
def enable_console_output(self) -> pulumi.Output[bool]:
|
|
823
|
+
"""
|
|
824
|
+
If true, enables stdout/stderr fast path logging for anonymous stored procedures.
|
|
825
|
+
"""
|
|
826
|
+
return pulumi.get(self, "enable_console_output")
|
|
827
|
+
|
|
828
|
+
@property
|
|
829
|
+
@pulumi.getter(name="externalVolume")
|
|
830
|
+
def external_volume(self) -> pulumi.Output[str]:
|
|
831
|
+
"""
|
|
832
|
+
The database parameter that specifies the default external volume to use for Iceberg tables. For more information, see [EXTERNAL_VOLUME](https://docs.snowflake.com/en/sql-reference/parameters#external-volume).
|
|
833
|
+
"""
|
|
834
|
+
return pulumi.get(self, "external_volume")
|
|
835
|
+
|
|
836
|
+
@property
|
|
837
|
+
@pulumi.getter(name="fromShare")
|
|
838
|
+
def from_share(self) -> pulumi.Output[str]:
|
|
839
|
+
"""
|
|
840
|
+
A fully qualified path to a share from which the database will be created. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<share_name>"`. For more information about this resource, see docs.
|
|
841
|
+
"""
|
|
842
|
+
return pulumi.get(self, "from_share")
|
|
843
|
+
|
|
844
|
+
@property
|
|
845
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
846
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
847
|
+
"""
|
|
848
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
849
|
+
"""
|
|
850
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
851
|
+
|
|
852
|
+
@property
|
|
853
|
+
@pulumi.getter(name="logLevel")
|
|
854
|
+
def log_level(self) -> pulumi.Output[str]:
|
|
855
|
+
"""
|
|
856
|
+
Specifies the severity level of messages that should be ingested and made available in the active event table. Valid options are: [TRACE DEBUG INFO WARN ERROR FATAL OFF]. Messages at the specified level (and at more severe levels) are ingested. For more information, see [LOG_LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
|
|
857
|
+
"""
|
|
858
|
+
return pulumi.get(self, "log_level")
|
|
859
|
+
|
|
860
|
+
@property
|
|
861
|
+
@pulumi.getter
|
|
862
|
+
def name(self) -> pulumi.Output[str]:
|
|
863
|
+
"""
|
|
864
|
+
Specifies the identifier for the database; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
865
|
+
"""
|
|
866
|
+
return pulumi.get(self, "name")
|
|
867
|
+
|
|
868
|
+
@property
|
|
869
|
+
@pulumi.getter(name="quotedIdentifiersIgnoreCase")
|
|
870
|
+
def quoted_identifiers_ignore_case(self) -> pulumi.Output[bool]:
|
|
871
|
+
"""
|
|
872
|
+
If true, the case of quoted identifiers is ignored. For more information, see [QUOTED*IDENTIFIERS*IGNORE_CASE](https://docs.snowflake.com/en/sql-reference/parameters#quoted-identifiers-ignore-case).
|
|
873
|
+
"""
|
|
874
|
+
return pulumi.get(self, "quoted_identifiers_ignore_case")
|
|
875
|
+
|
|
876
|
+
@property
|
|
877
|
+
@pulumi.getter(name="replaceInvalidCharacters")
|
|
878
|
+
def replace_invalid_characters(self) -> pulumi.Output[bool]:
|
|
879
|
+
"""
|
|
880
|
+
Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table. You can only set this parameter for tables that use an external Iceberg catalog. For more information, see [REPLACE*INVALID*CHARACTERS](https://docs.snowflake.com/en/sql-reference/parameters#replace-invalid-characters).
|
|
881
|
+
"""
|
|
882
|
+
return pulumi.get(self, "replace_invalid_characters")
|
|
883
|
+
|
|
884
|
+
@property
|
|
885
|
+
@pulumi.getter(name="storageSerializationPolicy")
|
|
886
|
+
def storage_serialization_policy(self) -> pulumi.Output[str]:
|
|
887
|
+
"""
|
|
888
|
+
The storage serialization policy for Iceberg tables that use Snowflake as the catalog. Valid options are: [COMPATIBLE OPTIMIZED]. COMPATIBLE: Snowflake performs encoding and compression of data files that ensures interoperability with third-party compute engines. OPTIMIZED: Snowflake performs encoding and compression of data files that ensures the best table performance within Snowflake. For more information, see [STORAGE*SERIALIZATION*POLICY](https://docs.snowflake.com/en/sql-reference/parameters#storage-serialization-policy).
|
|
889
|
+
"""
|
|
890
|
+
return pulumi.get(self, "storage_serialization_policy")
|
|
891
|
+
|
|
892
|
+
@property
|
|
893
|
+
@pulumi.getter(name="suspendTaskAfterNumFailures")
|
|
894
|
+
def suspend_task_after_num_failures(self) -> pulumi.Output[int]:
|
|
895
|
+
"""
|
|
896
|
+
How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending. For more information, see [SUSPEND*TASK*AFTER*NUM*FAILURES](https://docs.snowflake.com/en/sql-reference/parameters#suspend-task-after-num-failures).
|
|
897
|
+
"""
|
|
898
|
+
return pulumi.get(self, "suspend_task_after_num_failures")
|
|
899
|
+
|
|
900
|
+
@property
|
|
901
|
+
@pulumi.getter(name="taskAutoRetryAttempts")
|
|
902
|
+
def task_auto_retry_attempts(self) -> pulumi.Output[int]:
|
|
903
|
+
"""
|
|
904
|
+
Maximum automatic retries allowed for a user task. For more information, see [TASK*AUTO*RETRY_ATTEMPTS](https://docs.snowflake.com/en/sql-reference/parameters#task-auto-retry-attempts).
|
|
905
|
+
"""
|
|
906
|
+
return pulumi.get(self, "task_auto_retry_attempts")
|
|
907
|
+
|
|
908
|
+
@property
|
|
909
|
+
@pulumi.getter(name="traceLevel")
|
|
910
|
+
def trace_level(self) -> pulumi.Output[str]:
|
|
911
|
+
"""
|
|
912
|
+
Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
|
|
913
|
+
"""
|
|
914
|
+
return pulumi.get(self, "trace_level")
|
|
915
|
+
|
|
916
|
+
@property
|
|
917
|
+
@pulumi.getter(name="userTaskManagedInitialWarehouseSize")
|
|
918
|
+
def user_task_managed_initial_warehouse_size(self) -> pulumi.Output[str]:
|
|
919
|
+
"""
|
|
920
|
+
The initial size of warehouse to use for managed warehouses in the absence of history. For more information, see [USER*TASK*MANAGED*INITIAL*WAREHOUSE_SIZE](https://docs.snowflake.com/en/sql-reference/parameters#user-task-managed-initial-warehouse-size).
|
|
921
|
+
"""
|
|
922
|
+
return pulumi.get(self, "user_task_managed_initial_warehouse_size")
|
|
923
|
+
|
|
924
|
+
@property
|
|
925
|
+
@pulumi.getter(name="userTaskMinimumTriggerIntervalInSeconds")
|
|
926
|
+
def user_task_minimum_trigger_interval_in_seconds(self) -> pulumi.Output[int]:
|
|
927
|
+
"""
|
|
928
|
+
Minimum amount of time between Triggered Task executions in seconds.
|
|
929
|
+
"""
|
|
930
|
+
return pulumi.get(self, "user_task_minimum_trigger_interval_in_seconds")
|
|
931
|
+
|
|
932
|
+
@property
|
|
933
|
+
@pulumi.getter(name="userTaskTimeoutMs")
|
|
934
|
+
def user_task_timeout_ms(self) -> pulumi.Output[int]:
|
|
935
|
+
"""
|
|
936
|
+
User task execution timeout in milliseconds. For more information, see [USER*TASK*TIMEOUT_MS](https://docs.snowflake.com/en/sql-reference/parameters#user-task-timeout-ms).
|
|
937
|
+
"""
|
|
938
|
+
return pulumi.get(self, "user_task_timeout_ms")
|
|
939
|
+
|