pulumi-snowflake 0.57.0__py3-none-any.whl → 0.57.0a1721891443__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.
Files changed (32) hide show
  1. pulumi_snowflake/__init__.py +0 -20
  2. pulumi_snowflake/_inputs.py +241 -2479
  3. pulumi_snowflake/_utilities.py +0 -2
  4. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +0 -4
  5. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +0 -4
  6. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +0 -4
  7. pulumi_snowflake/database.py +63 -63
  8. pulumi_snowflake/external_oauth_integration.py +2 -2
  9. pulumi_snowflake/get_roles.py +31 -37
  10. pulumi_snowflake/get_schemas.py +38 -115
  11. pulumi_snowflake/network_policy.py +19 -103
  12. pulumi_snowflake/oauth_integration_for_custom_clients.py +14 -18
  13. pulumi_snowflake/oauth_integration_for_partner_applications.py +14 -18
  14. pulumi_snowflake/outputs.py +2761 -5882
  15. pulumi_snowflake/pulumi-plugin.json +1 -1
  16. pulumi_snowflake/role.py +72 -44
  17. pulumi_snowflake/saml2_integration.py +28 -32
  18. pulumi_snowflake/schema.py +151 -905
  19. pulumi_snowflake/scim_integration.py +21 -25
  20. pulumi_snowflake/secondary_database.py +63 -63
  21. pulumi_snowflake/shared_database.py +63 -63
  22. pulumi_snowflake/table.py +120 -0
  23. pulumi_snowflake/table_constraint.py +2 -2
  24. pulumi_snowflake/unsafe_execute.py +8 -8
  25. {pulumi_snowflake-0.57.0.dist-info → pulumi_snowflake-0.57.0a1721891443.dist-info}/METADATA +1 -1
  26. {pulumi_snowflake-0.57.0.dist-info → pulumi_snowflake-0.57.0a1721891443.dist-info}/RECORD +28 -32
  27. {pulumi_snowflake-0.57.0.dist-info → pulumi_snowflake-0.57.0a1721891443.dist-info}/WHEEL +1 -1
  28. pulumi_snowflake/account_role.py +0 -226
  29. pulumi_snowflake/get_network_policies.py +0 -122
  30. pulumi_snowflake/get_streamlits.py +0 -159
  31. pulumi_snowflake/streamlit.py +0 -650
  32. {pulumi_snowflake-0.57.0.dist-info → pulumi_snowflake-0.57.0a1721891443.dist-info}/top_level.txt +0 -0
@@ -17,95 +17,38 @@ __all__ = ['SchemaArgs', 'Schema']
17
17
  class SchemaArgs:
18
18
  def __init__(__self__, *,
19
19
  database: pulumi.Input[str],
20
- catalog: Optional[pulumi.Input[str]] = None,
21
20
  comment: Optional[pulumi.Input[str]] = None,
22
- data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
23
- default_ddl_collation: Optional[pulumi.Input[str]] = None,
24
- enable_console_output: Optional[pulumi.Input[bool]] = None,
25
- external_volume: Optional[pulumi.Input[str]] = None,
26
- is_transient: Optional[pulumi.Input[str]] = None,
27
- log_level: Optional[pulumi.Input[str]] = None,
28
- max_data_extension_time_in_days: Optional[pulumi.Input[int]] = None,
21
+ data_retention_days: Optional[pulumi.Input[int]] = None,
22
+ is_managed: Optional[pulumi.Input[bool]] = None,
23
+ is_transient: Optional[pulumi.Input[bool]] = None,
29
24
  name: Optional[pulumi.Input[str]] = None,
30
- pipe_execution_paused: Optional[pulumi.Input[bool]] = None,
31
- quoted_identifiers_ignore_case: Optional[pulumi.Input[bool]] = None,
32
- replace_invalid_characters: Optional[pulumi.Input[bool]] = None,
33
- storage_serialization_policy: Optional[pulumi.Input[str]] = None,
34
- suspend_task_after_num_failures: Optional[pulumi.Input[int]] = None,
35
- task_auto_retry_attempts: Optional[pulumi.Input[int]] = None,
36
- trace_level: Optional[pulumi.Input[str]] = None,
37
- user_task_managed_initial_warehouse_size: Optional[pulumi.Input[str]] = None,
38
- user_task_minimum_trigger_interval_in_seconds: Optional[pulumi.Input[int]] = None,
39
- user_task_timeout_ms: Optional[pulumi.Input[int]] = None,
40
- with_managed_access: Optional[pulumi.Input[str]] = None):
25
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaTagArgs']]]] = None):
41
26
  """
42
27
  The set of arguments for constructing a Schema resource.
43
28
  :param pulumi.Input[str] database: The database in which to create the schema.
44
- :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).
45
29
  :param pulumi.Input[str] comment: Specifies a comment for the schema.
46
- :param pulumi.Input[int] data_retention_time_in_days: Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database. For more details, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
47
- :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).
48
- :param pulumi.Input[bool] enable_console_output: If true, enables stdout/stderr fast path logging for anonymous stored procedures.
49
- :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).
50
- :param pulumi.Input[str] is_transient: Specifies the schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss. 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.
51
- :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).
52
- :param pulumi.Input[int] max_data_extension_time_in_days: Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale. For a detailed description of this parameter, see [MAX*DATA*EXTENSION*TIME*IN_DAYS](https://docs.snowflake.com/en/sql-reference/parameters.html#label-max-data-extension-time-in-days).
30
+ :param pulumi.Input[int] data_retention_days: Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema. Default value for this field is set to -1, which is a fallback to use Snowflake default.
31
+ :param pulumi.Input[bool] is_managed: Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
32
+ :param pulumi.Input[bool] is_transient: Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
53
33
  :param pulumi.Input[str] name: Specifies the identifier for the schema; must be unique for the database in which the schema is created.
54
- :param pulumi.Input[bool] pipe_execution_paused: Specifies whether to pause a running pipe, primarily in preparation for transferring ownership of the pipe to a different role. For more information, see [PIPE*EXECUTION*PAUSED](https://docs.snowflake.com/en/sql-reference/parameters#pipe-execution-paused).
55
- :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).
56
- :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).
57
- :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).
58
- :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).
59
- :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).
60
- :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).
61
- :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).
62
- :param pulumi.Input[int] user_task_minimum_trigger_interval_in_seconds: Minimum amount of time between Triggered Task executions in seconds.
63
- :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).
64
- :param pulumi.Input[str] with_managed_access: Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner. 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.
34
+ :param pulumi.Input[Sequence[pulumi.Input['SchemaTagArgs']]] tags: Definitions of a tag to associate with the resource.
65
35
  """
66
36
  pulumi.set(__self__, "database", database)
67
- if catalog is not None:
68
- pulumi.set(__self__, "catalog", catalog)
69
37
  if comment is not None:
70
38
  pulumi.set(__self__, "comment", comment)
71
- if data_retention_time_in_days is not None:
72
- pulumi.set(__self__, "data_retention_time_in_days", data_retention_time_in_days)
73
- if default_ddl_collation is not None:
74
- pulumi.set(__self__, "default_ddl_collation", default_ddl_collation)
75
- if enable_console_output is not None:
76
- pulumi.set(__self__, "enable_console_output", enable_console_output)
77
- if external_volume is not None:
78
- pulumi.set(__self__, "external_volume", external_volume)
39
+ if data_retention_days is not None:
40
+ pulumi.set(__self__, "data_retention_days", data_retention_days)
41
+ if is_managed is not None:
42
+ pulumi.set(__self__, "is_managed", is_managed)
79
43
  if is_transient is not None:
80
44
  pulumi.set(__self__, "is_transient", is_transient)
81
- if log_level is not None:
82
- pulumi.set(__self__, "log_level", log_level)
83
- if max_data_extension_time_in_days is not None:
84
- pulumi.set(__self__, "max_data_extension_time_in_days", max_data_extension_time_in_days)
85
45
  if name is not None:
86
46
  pulumi.set(__self__, "name", name)
87
- if pipe_execution_paused is not None:
88
- pulumi.set(__self__, "pipe_execution_paused", pipe_execution_paused)
89
- if quoted_identifiers_ignore_case is not None:
90
- pulumi.set(__self__, "quoted_identifiers_ignore_case", quoted_identifiers_ignore_case)
91
- if replace_invalid_characters is not None:
92
- pulumi.set(__self__, "replace_invalid_characters", replace_invalid_characters)
93
- if storage_serialization_policy is not None:
94
- pulumi.set(__self__, "storage_serialization_policy", storage_serialization_policy)
95
- if suspend_task_after_num_failures is not None:
96
- pulumi.set(__self__, "suspend_task_after_num_failures", suspend_task_after_num_failures)
97
- if task_auto_retry_attempts is not None:
98
- pulumi.set(__self__, "task_auto_retry_attempts", task_auto_retry_attempts)
99
- if trace_level is not None:
100
- pulumi.set(__self__, "trace_level", trace_level)
101
- if user_task_managed_initial_warehouse_size is not None:
102
- pulumi.set(__self__, "user_task_managed_initial_warehouse_size", user_task_managed_initial_warehouse_size)
103
- if user_task_minimum_trigger_interval_in_seconds is not None:
104
- pulumi.set(__self__, "user_task_minimum_trigger_interval_in_seconds", user_task_minimum_trigger_interval_in_seconds)
105
- if user_task_timeout_ms is not None:
106
- pulumi.set(__self__, "user_task_timeout_ms", user_task_timeout_ms)
107
- if with_managed_access is not None:
108
- pulumi.set(__self__, "with_managed_access", with_managed_access)
47
+ if tags is not None:
48
+ warnings.warn("""Use the 'snowflake_tag_association' resource instead.""", DeprecationWarning)
49
+ pulumi.log.warn("""tags is deprecated: Use the 'snowflake_tag_association' resource instead.""")
50
+ if tags is not None:
51
+ pulumi.set(__self__, "tags", tags)
109
52
 
110
53
  @property
111
54
  @pulumi.getter
@@ -119,18 +62,6 @@ class SchemaArgs:
119
62
  def database(self, value: pulumi.Input[str]):
120
63
  pulumi.set(self, "database", value)
121
64
 
122
- @property
123
- @pulumi.getter
124
- def catalog(self) -> Optional[pulumi.Input[str]]:
125
- """
126
- 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).
127
- """
128
- return pulumi.get(self, "catalog")
129
-
130
- @catalog.setter
131
- def catalog(self, value: Optional[pulumi.Input[str]]):
132
- pulumi.set(self, "catalog", value)
133
-
134
65
  @property
135
66
  @pulumi.getter
136
67
  def comment(self) -> Optional[pulumi.Input[str]]:
@@ -144,89 +75,41 @@ class SchemaArgs:
144
75
  pulumi.set(self, "comment", value)
145
76
 
146
77
  @property
147
- @pulumi.getter(name="dataRetentionTimeInDays")
148
- def data_retention_time_in_days(self) -> Optional[pulumi.Input[int]]:
149
- """
150
- Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database. For more details, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
151
- """
152
- return pulumi.get(self, "data_retention_time_in_days")
153
-
154
- @data_retention_time_in_days.setter
155
- def data_retention_time_in_days(self, value: Optional[pulumi.Input[int]]):
156
- pulumi.set(self, "data_retention_time_in_days", value)
157
-
158
- @property
159
- @pulumi.getter(name="defaultDdlCollation")
160
- def default_ddl_collation(self) -> Optional[pulumi.Input[str]]:
161
- """
162
- 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).
163
- """
164
- return pulumi.get(self, "default_ddl_collation")
165
-
166
- @default_ddl_collation.setter
167
- def default_ddl_collation(self, value: Optional[pulumi.Input[str]]):
168
- pulumi.set(self, "default_ddl_collation", value)
169
-
170
- @property
171
- @pulumi.getter(name="enableConsoleOutput")
172
- def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
78
+ @pulumi.getter(name="dataRetentionDays")
79
+ def data_retention_days(self) -> Optional[pulumi.Input[int]]:
173
80
  """
174
- If true, enables stdout/stderr fast path logging for anonymous stored procedures.
81
+ Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema. Default value for this field is set to -1, which is a fallback to use Snowflake default.
175
82
  """
176
- return pulumi.get(self, "enable_console_output")
83
+ return pulumi.get(self, "data_retention_days")
177
84
 
178
- @enable_console_output.setter
179
- def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
180
- pulumi.set(self, "enable_console_output", value)
85
+ @data_retention_days.setter
86
+ def data_retention_days(self, value: Optional[pulumi.Input[int]]):
87
+ pulumi.set(self, "data_retention_days", value)
181
88
 
182
89
  @property
183
- @pulumi.getter(name="externalVolume")
184
- def external_volume(self) -> Optional[pulumi.Input[str]]:
90
+ @pulumi.getter(name="isManaged")
91
+ def is_managed(self) -> Optional[pulumi.Input[bool]]:
185
92
  """
186
- 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).
93
+ Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
187
94
  """
188
- return pulumi.get(self, "external_volume")
95
+ return pulumi.get(self, "is_managed")
189
96
 
190
- @external_volume.setter
191
- def external_volume(self, value: Optional[pulumi.Input[str]]):
192
- pulumi.set(self, "external_volume", value)
97
+ @is_managed.setter
98
+ def is_managed(self, value: Optional[pulumi.Input[bool]]):
99
+ pulumi.set(self, "is_managed", value)
193
100
 
194
101
  @property
195
102
  @pulumi.getter(name="isTransient")
196
- def is_transient(self) -> Optional[pulumi.Input[str]]:
103
+ def is_transient(self) -> Optional[pulumi.Input[bool]]:
197
104
  """
198
- Specifies the schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss. 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.
105
+ Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
199
106
  """
200
107
  return pulumi.get(self, "is_transient")
201
108
 
202
109
  @is_transient.setter
203
- def is_transient(self, value: Optional[pulumi.Input[str]]):
110
+ def is_transient(self, value: Optional[pulumi.Input[bool]]):
204
111
  pulumi.set(self, "is_transient", value)
205
112
 
206
- @property
207
- @pulumi.getter(name="logLevel")
208
- def log_level(self) -> Optional[pulumi.Input[str]]:
209
- """
210
- 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).
211
- """
212
- return pulumi.get(self, "log_level")
213
-
214
- @log_level.setter
215
- def log_level(self, value: Optional[pulumi.Input[str]]):
216
- pulumi.set(self, "log_level", value)
217
-
218
- @property
219
- @pulumi.getter(name="maxDataExtensionTimeInDays")
220
- def max_data_extension_time_in_days(self) -> Optional[pulumi.Input[int]]:
221
- """
222
- Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale. For a detailed description of this parameter, see [MAX*DATA*EXTENSION*TIME*IN_DAYS](https://docs.snowflake.com/en/sql-reference/parameters.html#label-max-data-extension-time-in-days).
223
- """
224
- return pulumi.get(self, "max_data_extension_time_in_days")
225
-
226
- @max_data_extension_time_in_days.setter
227
- def max_data_extension_time_in_days(self, value: Optional[pulumi.Input[int]]):
228
- pulumi.set(self, "max_data_extension_time_in_days", value)
229
-
230
113
  @property
231
114
  @pulumi.getter
232
115
  def name(self) -> Optional[pulumi.Input[str]]:
@@ -240,256 +123,56 @@ class SchemaArgs:
240
123
  pulumi.set(self, "name", value)
241
124
 
242
125
  @property
243
- @pulumi.getter(name="pipeExecutionPaused")
244
- def pipe_execution_paused(self) -> Optional[pulumi.Input[bool]]:
245
- """
246
- Specifies whether to pause a running pipe, primarily in preparation for transferring ownership of the pipe to a different role. For more information, see [PIPE*EXECUTION*PAUSED](https://docs.snowflake.com/en/sql-reference/parameters#pipe-execution-paused).
247
- """
248
- return pulumi.get(self, "pipe_execution_paused")
249
-
250
- @pipe_execution_paused.setter
251
- def pipe_execution_paused(self, value: Optional[pulumi.Input[bool]]):
252
- pulumi.set(self, "pipe_execution_paused", value)
253
-
254
- @property
255
- @pulumi.getter(name="quotedIdentifiersIgnoreCase")
256
- def quoted_identifiers_ignore_case(self) -> Optional[pulumi.Input[bool]]:
257
- """
258
- 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).
259
- """
260
- return pulumi.get(self, "quoted_identifiers_ignore_case")
261
-
262
- @quoted_identifiers_ignore_case.setter
263
- def quoted_identifiers_ignore_case(self, value: Optional[pulumi.Input[bool]]):
264
- pulumi.set(self, "quoted_identifiers_ignore_case", value)
265
-
266
- @property
267
- @pulumi.getter(name="replaceInvalidCharacters")
268
- def replace_invalid_characters(self) -> Optional[pulumi.Input[bool]]:
269
- """
270
- 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).
271
- """
272
- return pulumi.get(self, "replace_invalid_characters")
273
-
274
- @replace_invalid_characters.setter
275
- def replace_invalid_characters(self, value: Optional[pulumi.Input[bool]]):
276
- pulumi.set(self, "replace_invalid_characters", value)
277
-
278
- @property
279
- @pulumi.getter(name="storageSerializationPolicy")
280
- def storage_serialization_policy(self) -> Optional[pulumi.Input[str]]:
281
- """
282
- 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).
283
- """
284
- return pulumi.get(self, "storage_serialization_policy")
285
-
286
- @storage_serialization_policy.setter
287
- def storage_serialization_policy(self, value: Optional[pulumi.Input[str]]):
288
- pulumi.set(self, "storage_serialization_policy", value)
289
-
290
- @property
291
- @pulumi.getter(name="suspendTaskAfterNumFailures")
292
- def suspend_task_after_num_failures(self) -> Optional[pulumi.Input[int]]:
293
- """
294
- 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).
295
- """
296
- return pulumi.get(self, "suspend_task_after_num_failures")
297
-
298
- @suspend_task_after_num_failures.setter
299
- def suspend_task_after_num_failures(self, value: Optional[pulumi.Input[int]]):
300
- pulumi.set(self, "suspend_task_after_num_failures", value)
301
-
302
- @property
303
- @pulumi.getter(name="taskAutoRetryAttempts")
304
- def task_auto_retry_attempts(self) -> Optional[pulumi.Input[int]]:
305
- """
306
- 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).
307
- """
308
- return pulumi.get(self, "task_auto_retry_attempts")
309
-
310
- @task_auto_retry_attempts.setter
311
- def task_auto_retry_attempts(self, value: Optional[pulumi.Input[int]]):
312
- pulumi.set(self, "task_auto_retry_attempts", value)
313
-
314
- @property
315
- @pulumi.getter(name="traceLevel")
316
- def trace_level(self) -> Optional[pulumi.Input[str]]:
317
- """
318
- 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).
319
- """
320
- return pulumi.get(self, "trace_level")
321
-
322
- @trace_level.setter
323
- def trace_level(self, value: Optional[pulumi.Input[str]]):
324
- pulumi.set(self, "trace_level", value)
325
-
326
- @property
327
- @pulumi.getter(name="userTaskManagedInitialWarehouseSize")
328
- def user_task_managed_initial_warehouse_size(self) -> Optional[pulumi.Input[str]]:
329
- """
330
- 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).
331
- """
332
- return pulumi.get(self, "user_task_managed_initial_warehouse_size")
333
-
334
- @user_task_managed_initial_warehouse_size.setter
335
- def user_task_managed_initial_warehouse_size(self, value: Optional[pulumi.Input[str]]):
336
- pulumi.set(self, "user_task_managed_initial_warehouse_size", value)
337
-
338
- @property
339
- @pulumi.getter(name="userTaskMinimumTriggerIntervalInSeconds")
340
- def user_task_minimum_trigger_interval_in_seconds(self) -> Optional[pulumi.Input[int]]:
341
- """
342
- Minimum amount of time between Triggered Task executions in seconds.
343
- """
344
- return pulumi.get(self, "user_task_minimum_trigger_interval_in_seconds")
345
-
346
- @user_task_minimum_trigger_interval_in_seconds.setter
347
- def user_task_minimum_trigger_interval_in_seconds(self, value: Optional[pulumi.Input[int]]):
348
- pulumi.set(self, "user_task_minimum_trigger_interval_in_seconds", value)
349
-
350
- @property
351
- @pulumi.getter(name="userTaskTimeoutMs")
352
- def user_task_timeout_ms(self) -> Optional[pulumi.Input[int]]:
353
- """
354
- 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).
355
- """
356
- return pulumi.get(self, "user_task_timeout_ms")
357
-
358
- @user_task_timeout_ms.setter
359
- def user_task_timeout_ms(self, value: Optional[pulumi.Input[int]]):
360
- pulumi.set(self, "user_task_timeout_ms", value)
361
-
362
- @property
363
- @pulumi.getter(name="withManagedAccess")
364
- def with_managed_access(self) -> Optional[pulumi.Input[str]]:
126
+ @pulumi.getter
127
+ @_utilities.deprecated("""Use the 'snowflake_tag_association' resource instead.""")
128
+ def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SchemaTagArgs']]]]:
365
129
  """
366
- Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner. 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.
130
+ Definitions of a tag to associate with the resource.
367
131
  """
368
- return pulumi.get(self, "with_managed_access")
132
+ return pulumi.get(self, "tags")
369
133
 
370
- @with_managed_access.setter
371
- def with_managed_access(self, value: Optional[pulumi.Input[str]]):
372
- pulumi.set(self, "with_managed_access", value)
134
+ @tags.setter
135
+ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaTagArgs']]]]):
136
+ pulumi.set(self, "tags", value)
373
137
 
374
138
 
375
139
  @pulumi.input_type
376
140
  class _SchemaState:
377
141
  def __init__(__self__, *,
378
- catalog: Optional[pulumi.Input[str]] = None,
379
142
  comment: Optional[pulumi.Input[str]] = None,
380
- data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
143
+ data_retention_days: Optional[pulumi.Input[int]] = None,
381
144
  database: Optional[pulumi.Input[str]] = None,
382
- default_ddl_collation: Optional[pulumi.Input[str]] = None,
383
- describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaDescribeOutputArgs']]]] = None,
384
- enable_console_output: Optional[pulumi.Input[bool]] = None,
385
- external_volume: Optional[pulumi.Input[str]] = None,
386
- is_transient: Optional[pulumi.Input[str]] = None,
387
- log_level: Optional[pulumi.Input[str]] = None,
388
- max_data_extension_time_in_days: Optional[pulumi.Input[int]] = None,
145
+ is_managed: Optional[pulumi.Input[bool]] = None,
146
+ is_transient: Optional[pulumi.Input[bool]] = None,
389
147
  name: Optional[pulumi.Input[str]] = None,
390
- parameters: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaParameterArgs']]]] = None,
391
- pipe_execution_paused: Optional[pulumi.Input[bool]] = None,
392
- quoted_identifiers_ignore_case: Optional[pulumi.Input[bool]] = None,
393
- replace_invalid_characters: Optional[pulumi.Input[bool]] = None,
394
- show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaShowOutputArgs']]]] = None,
395
- storage_serialization_policy: Optional[pulumi.Input[str]] = None,
396
- suspend_task_after_num_failures: Optional[pulumi.Input[int]] = None,
397
- task_auto_retry_attempts: Optional[pulumi.Input[int]] = None,
398
- trace_level: Optional[pulumi.Input[str]] = None,
399
- user_task_managed_initial_warehouse_size: Optional[pulumi.Input[str]] = None,
400
- user_task_minimum_trigger_interval_in_seconds: Optional[pulumi.Input[int]] = None,
401
- user_task_timeout_ms: Optional[pulumi.Input[int]] = None,
402
- with_managed_access: Optional[pulumi.Input[str]] = None):
148
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaTagArgs']]]] = None):
403
149
  """
404
150
  Input properties used for looking up and filtering Schema resources.
405
- :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).
406
151
  :param pulumi.Input[str] comment: Specifies a comment for the schema.
407
- :param pulumi.Input[int] data_retention_time_in_days: Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database. For more details, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
152
+ :param pulumi.Input[int] data_retention_days: Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema. Default value for this field is set to -1, which is a fallback to use Snowflake default.
408
153
  :param pulumi.Input[str] database: The database in which to create the schema.
409
- :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).
410
- :param pulumi.Input[Sequence[pulumi.Input['SchemaDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE SCHEMA` for the given object. In order to handle this output, one must grant sufficient privileges, e.g. grant*ownership on all objects in the schema.
411
- :param pulumi.Input[bool] enable_console_output: If true, enables stdout/stderr fast path logging for anonymous stored procedures.
412
- :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).
413
- :param pulumi.Input[str] is_transient: Specifies the schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss. 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.
414
- :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).
415
- :param pulumi.Input[int] max_data_extension_time_in_days: Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale. For a detailed description of this parameter, see [MAX*DATA*EXTENSION*TIME*IN_DAYS](https://docs.snowflake.com/en/sql-reference/parameters.html#label-max-data-extension-time-in-days).
154
+ :param pulumi.Input[bool] is_managed: Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
155
+ :param pulumi.Input[bool] is_transient: Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
416
156
  :param pulumi.Input[str] name: Specifies the identifier for the schema; must be unique for the database in which the schema is created.
417
- :param pulumi.Input[Sequence[pulumi.Input['SchemaParameterArgs']]] parameters: Outputs the result of `SHOW PARAMETERS IN SCHEMA` for the given object.
418
- :param pulumi.Input[bool] pipe_execution_paused: Specifies whether to pause a running pipe, primarily in preparation for transferring ownership of the pipe to a different role. For more information, see [PIPE*EXECUTION*PAUSED](https://docs.snowflake.com/en/sql-reference/parameters#pipe-execution-paused).
419
- :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).
420
- :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).
421
- :param pulumi.Input[Sequence[pulumi.Input['SchemaShowOutputArgs']]] show_outputs: Outputs the result of `SHOW SCHEMA` for the given object.
422
- :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).
423
- :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).
424
- :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).
425
- :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).
426
- :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).
427
- :param pulumi.Input[int] user_task_minimum_trigger_interval_in_seconds: Minimum amount of time between Triggered Task executions in seconds.
428
- :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).
429
- :param pulumi.Input[str] with_managed_access: Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner. 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.
157
+ :param pulumi.Input[Sequence[pulumi.Input['SchemaTagArgs']]] tags: Definitions of a tag to associate with the resource.
430
158
  """
431
- if catalog is not None:
432
- pulumi.set(__self__, "catalog", catalog)
433
159
  if comment is not None:
434
160
  pulumi.set(__self__, "comment", comment)
435
- if data_retention_time_in_days is not None:
436
- pulumi.set(__self__, "data_retention_time_in_days", data_retention_time_in_days)
161
+ if data_retention_days is not None:
162
+ pulumi.set(__self__, "data_retention_days", data_retention_days)
437
163
  if database is not None:
438
164
  pulumi.set(__self__, "database", database)
439
- if default_ddl_collation is not None:
440
- pulumi.set(__self__, "default_ddl_collation", default_ddl_collation)
441
- if describe_outputs is not None:
442
- pulumi.set(__self__, "describe_outputs", describe_outputs)
443
- if enable_console_output is not None:
444
- pulumi.set(__self__, "enable_console_output", enable_console_output)
445
- if external_volume is not None:
446
- pulumi.set(__self__, "external_volume", external_volume)
165
+ if is_managed is not None:
166
+ pulumi.set(__self__, "is_managed", is_managed)
447
167
  if is_transient is not None:
448
168
  pulumi.set(__self__, "is_transient", is_transient)
449
- if log_level is not None:
450
- pulumi.set(__self__, "log_level", log_level)
451
- if max_data_extension_time_in_days is not None:
452
- pulumi.set(__self__, "max_data_extension_time_in_days", max_data_extension_time_in_days)
453
169
  if name is not None:
454
170
  pulumi.set(__self__, "name", name)
455
- if parameters is not None:
456
- pulumi.set(__self__, "parameters", parameters)
457
- if pipe_execution_paused is not None:
458
- pulumi.set(__self__, "pipe_execution_paused", pipe_execution_paused)
459
- if quoted_identifiers_ignore_case is not None:
460
- pulumi.set(__self__, "quoted_identifiers_ignore_case", quoted_identifiers_ignore_case)
461
- if replace_invalid_characters is not None:
462
- pulumi.set(__self__, "replace_invalid_characters", replace_invalid_characters)
463
- if show_outputs is not None:
464
- pulumi.set(__self__, "show_outputs", show_outputs)
465
- if storage_serialization_policy is not None:
466
- pulumi.set(__self__, "storage_serialization_policy", storage_serialization_policy)
467
- if suspend_task_after_num_failures is not None:
468
- pulumi.set(__self__, "suspend_task_after_num_failures", suspend_task_after_num_failures)
469
- if task_auto_retry_attempts is not None:
470
- pulumi.set(__self__, "task_auto_retry_attempts", task_auto_retry_attempts)
471
- if trace_level is not None:
472
- pulumi.set(__self__, "trace_level", trace_level)
473
- if user_task_managed_initial_warehouse_size is not None:
474
- pulumi.set(__self__, "user_task_managed_initial_warehouse_size", user_task_managed_initial_warehouse_size)
475
- if user_task_minimum_trigger_interval_in_seconds is not None:
476
- pulumi.set(__self__, "user_task_minimum_trigger_interval_in_seconds", user_task_minimum_trigger_interval_in_seconds)
477
- if user_task_timeout_ms is not None:
478
- pulumi.set(__self__, "user_task_timeout_ms", user_task_timeout_ms)
479
- if with_managed_access is not None:
480
- pulumi.set(__self__, "with_managed_access", with_managed_access)
481
-
482
- @property
483
- @pulumi.getter
484
- def catalog(self) -> Optional[pulumi.Input[str]]:
485
- """
486
- 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).
487
- """
488
- return pulumi.get(self, "catalog")
489
-
490
- @catalog.setter
491
- def catalog(self, value: Optional[pulumi.Input[str]]):
492
- pulumi.set(self, "catalog", value)
171
+ if tags is not None:
172
+ warnings.warn("""Use the 'snowflake_tag_association' resource instead.""", DeprecationWarning)
173
+ pulumi.log.warn("""tags is deprecated: Use the 'snowflake_tag_association' resource instead.""")
174
+ if tags is not None:
175
+ pulumi.set(__self__, "tags", tags)
493
176
 
494
177
  @property
495
178
  @pulumi.getter
@@ -504,16 +187,16 @@ class _SchemaState:
504
187
  pulumi.set(self, "comment", value)
505
188
 
506
189
  @property
507
- @pulumi.getter(name="dataRetentionTimeInDays")
508
- def data_retention_time_in_days(self) -> Optional[pulumi.Input[int]]:
190
+ @pulumi.getter(name="dataRetentionDays")
191
+ def data_retention_days(self) -> Optional[pulumi.Input[int]]:
509
192
  """
510
- Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database. For more details, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
193
+ Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema. Default value for this field is set to -1, which is a fallback to use Snowflake default.
511
194
  """
512
- return pulumi.get(self, "data_retention_time_in_days")
195
+ return pulumi.get(self, "data_retention_days")
513
196
 
514
- @data_retention_time_in_days.setter
515
- def data_retention_time_in_days(self, value: Optional[pulumi.Input[int]]):
516
- pulumi.set(self, "data_retention_time_in_days", value)
197
+ @data_retention_days.setter
198
+ def data_retention_days(self, value: Optional[pulumi.Input[int]]):
199
+ pulumi.set(self, "data_retention_days", value)
517
200
 
518
201
  @property
519
202
  @pulumi.getter
@@ -528,89 +211,29 @@ class _SchemaState:
528
211
  pulumi.set(self, "database", value)
529
212
 
530
213
  @property
531
- @pulumi.getter(name="defaultDdlCollation")
532
- def default_ddl_collation(self) -> Optional[pulumi.Input[str]]:
533
- """
534
- 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).
535
- """
536
- return pulumi.get(self, "default_ddl_collation")
537
-
538
- @default_ddl_collation.setter
539
- def default_ddl_collation(self, value: Optional[pulumi.Input[str]]):
540
- pulumi.set(self, "default_ddl_collation", value)
541
-
542
- @property
543
- @pulumi.getter(name="describeOutputs")
544
- def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SchemaDescribeOutputArgs']]]]:
545
- """
546
- Outputs the result of `DESCRIBE SCHEMA` for the given object. In order to handle this output, one must grant sufficient privileges, e.g. grant*ownership on all objects in the schema.
547
- """
548
- return pulumi.get(self, "describe_outputs")
549
-
550
- @describe_outputs.setter
551
- def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaDescribeOutputArgs']]]]):
552
- pulumi.set(self, "describe_outputs", value)
553
-
554
- @property
555
- @pulumi.getter(name="enableConsoleOutput")
556
- def enable_console_output(self) -> Optional[pulumi.Input[bool]]:
214
+ @pulumi.getter(name="isManaged")
215
+ def is_managed(self) -> Optional[pulumi.Input[bool]]:
557
216
  """
558
- If true, enables stdout/stderr fast path logging for anonymous stored procedures.
217
+ Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
559
218
  """
560
- return pulumi.get(self, "enable_console_output")
219
+ return pulumi.get(self, "is_managed")
561
220
 
562
- @enable_console_output.setter
563
- def enable_console_output(self, value: Optional[pulumi.Input[bool]]):
564
- pulumi.set(self, "enable_console_output", value)
565
-
566
- @property
567
- @pulumi.getter(name="externalVolume")
568
- def external_volume(self) -> Optional[pulumi.Input[str]]:
569
- """
570
- 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).
571
- """
572
- return pulumi.get(self, "external_volume")
573
-
574
- @external_volume.setter
575
- def external_volume(self, value: Optional[pulumi.Input[str]]):
576
- pulumi.set(self, "external_volume", value)
221
+ @is_managed.setter
222
+ def is_managed(self, value: Optional[pulumi.Input[bool]]):
223
+ pulumi.set(self, "is_managed", value)
577
224
 
578
225
  @property
579
226
  @pulumi.getter(name="isTransient")
580
- def is_transient(self) -> Optional[pulumi.Input[str]]:
227
+ def is_transient(self) -> Optional[pulumi.Input[bool]]:
581
228
  """
582
- Specifies the schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss. 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.
229
+ Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
583
230
  """
584
231
  return pulumi.get(self, "is_transient")
585
232
 
586
233
  @is_transient.setter
587
- def is_transient(self, value: Optional[pulumi.Input[str]]):
234
+ def is_transient(self, value: Optional[pulumi.Input[bool]]):
588
235
  pulumi.set(self, "is_transient", value)
589
236
 
590
- @property
591
- @pulumi.getter(name="logLevel")
592
- def log_level(self) -> Optional[pulumi.Input[str]]:
593
- """
594
- 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).
595
- """
596
- return pulumi.get(self, "log_level")
597
-
598
- @log_level.setter
599
- def log_level(self, value: Optional[pulumi.Input[str]]):
600
- pulumi.set(self, "log_level", value)
601
-
602
- @property
603
- @pulumi.getter(name="maxDataExtensionTimeInDays")
604
- def max_data_extension_time_in_days(self) -> Optional[pulumi.Input[int]]:
605
- """
606
- Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale. For a detailed description of this parameter, see [MAX*DATA*EXTENSION*TIME*IN_DAYS](https://docs.snowflake.com/en/sql-reference/parameters.html#label-max-data-extension-time-in-days).
607
- """
608
- return pulumi.get(self, "max_data_extension_time_in_days")
609
-
610
- @max_data_extension_time_in_days.setter
611
- def max_data_extension_time_in_days(self, value: Optional[pulumi.Input[int]]):
612
- pulumi.set(self, "max_data_extension_time_in_days", value)
613
-
614
237
  @property
615
238
  @pulumi.getter
616
239
  def name(self) -> Optional[pulumi.Input[str]]:
@@ -625,159 +248,16 @@ class _SchemaState:
625
248
 
626
249
  @property
627
250
  @pulumi.getter
628
- def parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SchemaParameterArgs']]]]:
251
+ @_utilities.deprecated("""Use the 'snowflake_tag_association' resource instead.""")
252
+ def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SchemaTagArgs']]]]:
629
253
  """
630
- Outputs the result of `SHOW PARAMETERS IN SCHEMA` for the given object.
254
+ Definitions of a tag to associate with the resource.
631
255
  """
632
- return pulumi.get(self, "parameters")
256
+ return pulumi.get(self, "tags")
633
257
 
634
- @parameters.setter
635
- def parameters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaParameterArgs']]]]):
636
- pulumi.set(self, "parameters", value)
637
-
638
- @property
639
- @pulumi.getter(name="pipeExecutionPaused")
640
- def pipe_execution_paused(self) -> Optional[pulumi.Input[bool]]:
641
- """
642
- Specifies whether to pause a running pipe, primarily in preparation for transferring ownership of the pipe to a different role. For more information, see [PIPE*EXECUTION*PAUSED](https://docs.snowflake.com/en/sql-reference/parameters#pipe-execution-paused).
643
- """
644
- return pulumi.get(self, "pipe_execution_paused")
645
-
646
- @pipe_execution_paused.setter
647
- def pipe_execution_paused(self, value: Optional[pulumi.Input[bool]]):
648
- pulumi.set(self, "pipe_execution_paused", value)
649
-
650
- @property
651
- @pulumi.getter(name="quotedIdentifiersIgnoreCase")
652
- def quoted_identifiers_ignore_case(self) -> Optional[pulumi.Input[bool]]:
653
- """
654
- 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).
655
- """
656
- return pulumi.get(self, "quoted_identifiers_ignore_case")
657
-
658
- @quoted_identifiers_ignore_case.setter
659
- def quoted_identifiers_ignore_case(self, value: Optional[pulumi.Input[bool]]):
660
- pulumi.set(self, "quoted_identifiers_ignore_case", value)
661
-
662
- @property
663
- @pulumi.getter(name="replaceInvalidCharacters")
664
- def replace_invalid_characters(self) -> Optional[pulumi.Input[bool]]:
665
- """
666
- 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).
667
- """
668
- return pulumi.get(self, "replace_invalid_characters")
669
-
670
- @replace_invalid_characters.setter
671
- def replace_invalid_characters(self, value: Optional[pulumi.Input[bool]]):
672
- pulumi.set(self, "replace_invalid_characters", value)
673
-
674
- @property
675
- @pulumi.getter(name="showOutputs")
676
- def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SchemaShowOutputArgs']]]]:
677
- """
678
- Outputs the result of `SHOW SCHEMA` for the given object.
679
- """
680
- return pulumi.get(self, "show_outputs")
681
-
682
- @show_outputs.setter
683
- def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaShowOutputArgs']]]]):
684
- pulumi.set(self, "show_outputs", value)
685
-
686
- @property
687
- @pulumi.getter(name="storageSerializationPolicy")
688
- def storage_serialization_policy(self) -> Optional[pulumi.Input[str]]:
689
- """
690
- 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).
691
- """
692
- return pulumi.get(self, "storage_serialization_policy")
693
-
694
- @storage_serialization_policy.setter
695
- def storage_serialization_policy(self, value: Optional[pulumi.Input[str]]):
696
- pulumi.set(self, "storage_serialization_policy", value)
697
-
698
- @property
699
- @pulumi.getter(name="suspendTaskAfterNumFailures")
700
- def suspend_task_after_num_failures(self) -> Optional[pulumi.Input[int]]:
701
- """
702
- 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).
703
- """
704
- return pulumi.get(self, "suspend_task_after_num_failures")
705
-
706
- @suspend_task_after_num_failures.setter
707
- def suspend_task_after_num_failures(self, value: Optional[pulumi.Input[int]]):
708
- pulumi.set(self, "suspend_task_after_num_failures", value)
709
-
710
- @property
711
- @pulumi.getter(name="taskAutoRetryAttempts")
712
- def task_auto_retry_attempts(self) -> Optional[pulumi.Input[int]]:
713
- """
714
- 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).
715
- """
716
- return pulumi.get(self, "task_auto_retry_attempts")
717
-
718
- @task_auto_retry_attempts.setter
719
- def task_auto_retry_attempts(self, value: Optional[pulumi.Input[int]]):
720
- pulumi.set(self, "task_auto_retry_attempts", value)
721
-
722
- @property
723
- @pulumi.getter(name="traceLevel")
724
- def trace_level(self) -> Optional[pulumi.Input[str]]:
725
- """
726
- 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).
727
- """
728
- return pulumi.get(self, "trace_level")
729
-
730
- @trace_level.setter
731
- def trace_level(self, value: Optional[pulumi.Input[str]]):
732
- pulumi.set(self, "trace_level", value)
733
-
734
- @property
735
- @pulumi.getter(name="userTaskManagedInitialWarehouseSize")
736
- def user_task_managed_initial_warehouse_size(self) -> Optional[pulumi.Input[str]]:
737
- """
738
- 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).
739
- """
740
- return pulumi.get(self, "user_task_managed_initial_warehouse_size")
741
-
742
- @user_task_managed_initial_warehouse_size.setter
743
- def user_task_managed_initial_warehouse_size(self, value: Optional[pulumi.Input[str]]):
744
- pulumi.set(self, "user_task_managed_initial_warehouse_size", value)
745
-
746
- @property
747
- @pulumi.getter(name="userTaskMinimumTriggerIntervalInSeconds")
748
- def user_task_minimum_trigger_interval_in_seconds(self) -> Optional[pulumi.Input[int]]:
749
- """
750
- Minimum amount of time between Triggered Task executions in seconds.
751
- """
752
- return pulumi.get(self, "user_task_minimum_trigger_interval_in_seconds")
753
-
754
- @user_task_minimum_trigger_interval_in_seconds.setter
755
- def user_task_minimum_trigger_interval_in_seconds(self, value: Optional[pulumi.Input[int]]):
756
- pulumi.set(self, "user_task_minimum_trigger_interval_in_seconds", value)
757
-
758
- @property
759
- @pulumi.getter(name="userTaskTimeoutMs")
760
- def user_task_timeout_ms(self) -> Optional[pulumi.Input[int]]:
761
- """
762
- 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).
763
- """
764
- return pulumi.get(self, "user_task_timeout_ms")
765
-
766
- @user_task_timeout_ms.setter
767
- def user_task_timeout_ms(self, value: Optional[pulumi.Input[int]]):
768
- pulumi.set(self, "user_task_timeout_ms", value)
769
-
770
- @property
771
- @pulumi.getter(name="withManagedAccess")
772
- def with_managed_access(self) -> Optional[pulumi.Input[str]]:
773
- """
774
- Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner. 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.
775
- """
776
- return pulumi.get(self, "with_managed_access")
777
-
778
- @with_managed_access.setter
779
- def with_managed_access(self, value: Optional[pulumi.Input[str]]):
780
- pulumi.set(self, "with_managed_access", value)
258
+ @tags.setter
259
+ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaTagArgs']]]]):
260
+ pulumi.set(self, "tags", value)
781
261
 
782
262
 
783
263
  class Schema(pulumi.CustomResource):
@@ -785,31 +265,29 @@ class Schema(pulumi.CustomResource):
785
265
  def __init__(__self__,
786
266
  resource_name: str,
787
267
  opts: Optional[pulumi.ResourceOptions] = None,
788
- catalog: Optional[pulumi.Input[str]] = None,
789
268
  comment: Optional[pulumi.Input[str]] = None,
790
- data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
269
+ data_retention_days: Optional[pulumi.Input[int]] = None,
791
270
  database: Optional[pulumi.Input[str]] = None,
792
- default_ddl_collation: Optional[pulumi.Input[str]] = None,
793
- enable_console_output: Optional[pulumi.Input[bool]] = None,
794
- external_volume: Optional[pulumi.Input[str]] = None,
795
- is_transient: Optional[pulumi.Input[str]] = None,
796
- log_level: Optional[pulumi.Input[str]] = None,
797
- max_data_extension_time_in_days: Optional[pulumi.Input[int]] = None,
271
+ is_managed: Optional[pulumi.Input[bool]] = None,
272
+ is_transient: Optional[pulumi.Input[bool]] = None,
798
273
  name: Optional[pulumi.Input[str]] = None,
799
- pipe_execution_paused: Optional[pulumi.Input[bool]] = None,
800
- quoted_identifiers_ignore_case: Optional[pulumi.Input[bool]] = None,
801
- replace_invalid_characters: Optional[pulumi.Input[bool]] = None,
802
- storage_serialization_policy: Optional[pulumi.Input[str]] = None,
803
- suspend_task_after_num_failures: Optional[pulumi.Input[int]] = None,
804
- task_auto_retry_attempts: Optional[pulumi.Input[int]] = None,
805
- trace_level: Optional[pulumi.Input[str]] = None,
806
- user_task_managed_initial_warehouse_size: Optional[pulumi.Input[str]] = None,
807
- user_task_minimum_trigger_interval_in_seconds: Optional[pulumi.Input[int]] = None,
808
- user_task_timeout_ms: Optional[pulumi.Input[int]] = None,
809
- with_managed_access: Optional[pulumi.Input[str]] = None,
274
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SchemaTagArgs']]]]] = None,
810
275
  __props__=None):
811
276
  """
812
- Resource used to manage schema objects. For more information, check [schema documentation](https://docs.snowflake.com/en/sql-reference/sql/create-schema).
277
+ ## Example Usage
278
+
279
+ ```python
280
+ import pulumi
281
+ import pulumi_snowflake as snowflake
282
+
283
+ schema = snowflake.Schema("schema",
284
+ database="database",
285
+ name="schema",
286
+ comment="A schema.",
287
+ is_transient=False,
288
+ is_managed=False,
289
+ data_retention_days=1)
290
+ ```
813
291
 
814
292
  ## Import
815
293
 
@@ -821,28 +299,13 @@ class Schema(pulumi.CustomResource):
821
299
 
822
300
  :param str resource_name: The name of the resource.
823
301
  :param pulumi.ResourceOptions opts: Options for the resource.
824
- :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).
825
302
  :param pulumi.Input[str] comment: Specifies a comment for the schema.
826
- :param pulumi.Input[int] data_retention_time_in_days: Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database. For more details, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
303
+ :param pulumi.Input[int] data_retention_days: Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema. Default value for this field is set to -1, which is a fallback to use Snowflake default.
827
304
  :param pulumi.Input[str] database: The database in which to create the schema.
828
- :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).
829
- :param pulumi.Input[bool] enable_console_output: If true, enables stdout/stderr fast path logging for anonymous stored procedures.
830
- :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).
831
- :param pulumi.Input[str] is_transient: Specifies the schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss. 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.
832
- :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).
833
- :param pulumi.Input[int] max_data_extension_time_in_days: Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale. For a detailed description of this parameter, see [MAX*DATA*EXTENSION*TIME*IN_DAYS](https://docs.snowflake.com/en/sql-reference/parameters.html#label-max-data-extension-time-in-days).
305
+ :param pulumi.Input[bool] is_managed: Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
306
+ :param pulumi.Input[bool] is_transient: Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
834
307
  :param pulumi.Input[str] name: Specifies the identifier for the schema; must be unique for the database in which the schema is created.
835
- :param pulumi.Input[bool] pipe_execution_paused: Specifies whether to pause a running pipe, primarily in preparation for transferring ownership of the pipe to a different role. For more information, see [PIPE*EXECUTION*PAUSED](https://docs.snowflake.com/en/sql-reference/parameters#pipe-execution-paused).
836
- :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).
837
- :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).
838
- :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).
839
- :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).
840
- :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).
841
- :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).
842
- :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).
843
- :param pulumi.Input[int] user_task_minimum_trigger_interval_in_seconds: Minimum amount of time between Triggered Task executions in seconds.
844
- :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).
845
- :param pulumi.Input[str] with_managed_access: Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner. 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.
308
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SchemaTagArgs']]]] tags: Definitions of a tag to associate with the resource.
846
309
  """
847
310
  ...
848
311
  @overload
@@ -851,7 +314,20 @@ class Schema(pulumi.CustomResource):
851
314
  args: SchemaArgs,
852
315
  opts: Optional[pulumi.ResourceOptions] = None):
853
316
  """
854
- Resource used to manage schema objects. For more information, check [schema documentation](https://docs.snowflake.com/en/sql-reference/sql/create-schema).
317
+ ## Example Usage
318
+
319
+ ```python
320
+ import pulumi
321
+ import pulumi_snowflake as snowflake
322
+
323
+ schema = snowflake.Schema("schema",
324
+ database="database",
325
+ name="schema",
326
+ comment="A schema.",
327
+ is_transient=False,
328
+ is_managed=False,
329
+ data_retention_days=1)
330
+ ```
855
331
 
856
332
  ## Import
857
333
 
@@ -876,28 +352,13 @@ class Schema(pulumi.CustomResource):
876
352
  def _internal_init(__self__,
877
353
  resource_name: str,
878
354
  opts: Optional[pulumi.ResourceOptions] = None,
879
- catalog: Optional[pulumi.Input[str]] = None,
880
355
  comment: Optional[pulumi.Input[str]] = None,
881
- data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
356
+ data_retention_days: Optional[pulumi.Input[int]] = None,
882
357
  database: Optional[pulumi.Input[str]] = None,
883
- default_ddl_collation: Optional[pulumi.Input[str]] = None,
884
- enable_console_output: Optional[pulumi.Input[bool]] = None,
885
- external_volume: Optional[pulumi.Input[str]] = None,
886
- is_transient: Optional[pulumi.Input[str]] = None,
887
- log_level: Optional[pulumi.Input[str]] = None,
888
- max_data_extension_time_in_days: Optional[pulumi.Input[int]] = None,
358
+ is_managed: Optional[pulumi.Input[bool]] = None,
359
+ is_transient: Optional[pulumi.Input[bool]] = None,
889
360
  name: Optional[pulumi.Input[str]] = None,
890
- pipe_execution_paused: Optional[pulumi.Input[bool]] = None,
891
- quoted_identifiers_ignore_case: Optional[pulumi.Input[bool]] = None,
892
- replace_invalid_characters: Optional[pulumi.Input[bool]] = None,
893
- storage_serialization_policy: Optional[pulumi.Input[str]] = None,
894
- suspend_task_after_num_failures: Optional[pulumi.Input[int]] = None,
895
- task_auto_retry_attempts: Optional[pulumi.Input[int]] = None,
896
- trace_level: Optional[pulumi.Input[str]] = None,
897
- user_task_managed_initial_warehouse_size: Optional[pulumi.Input[str]] = None,
898
- user_task_minimum_trigger_interval_in_seconds: Optional[pulumi.Input[int]] = None,
899
- user_task_timeout_ms: Optional[pulumi.Input[int]] = None,
900
- with_managed_access: Optional[pulumi.Input[str]] = None,
361
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SchemaTagArgs']]]]] = None,
901
362
  __props__=None):
902
363
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
903
364
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -907,33 +368,15 @@ class Schema(pulumi.CustomResource):
907
368
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
908
369
  __props__ = SchemaArgs.__new__(SchemaArgs)
909
370
 
910
- __props__.__dict__["catalog"] = catalog
911
371
  __props__.__dict__["comment"] = comment
912
- __props__.__dict__["data_retention_time_in_days"] = data_retention_time_in_days
372
+ __props__.__dict__["data_retention_days"] = data_retention_days
913
373
  if database is None and not opts.urn:
914
374
  raise TypeError("Missing required property 'database'")
915
375
  __props__.__dict__["database"] = database
916
- __props__.__dict__["default_ddl_collation"] = default_ddl_collation
917
- __props__.__dict__["enable_console_output"] = enable_console_output
918
- __props__.__dict__["external_volume"] = external_volume
376
+ __props__.__dict__["is_managed"] = is_managed
919
377
  __props__.__dict__["is_transient"] = is_transient
920
- __props__.__dict__["log_level"] = log_level
921
- __props__.__dict__["max_data_extension_time_in_days"] = max_data_extension_time_in_days
922
378
  __props__.__dict__["name"] = name
923
- __props__.__dict__["pipe_execution_paused"] = pipe_execution_paused
924
- __props__.__dict__["quoted_identifiers_ignore_case"] = quoted_identifiers_ignore_case
925
- __props__.__dict__["replace_invalid_characters"] = replace_invalid_characters
926
- __props__.__dict__["storage_serialization_policy"] = storage_serialization_policy
927
- __props__.__dict__["suspend_task_after_num_failures"] = suspend_task_after_num_failures
928
- __props__.__dict__["task_auto_retry_attempts"] = task_auto_retry_attempts
929
- __props__.__dict__["trace_level"] = trace_level
930
- __props__.__dict__["user_task_managed_initial_warehouse_size"] = user_task_managed_initial_warehouse_size
931
- __props__.__dict__["user_task_minimum_trigger_interval_in_seconds"] = user_task_minimum_trigger_interval_in_seconds
932
- __props__.__dict__["user_task_timeout_ms"] = user_task_timeout_ms
933
- __props__.__dict__["with_managed_access"] = with_managed_access
934
- __props__.__dict__["describe_outputs"] = None
935
- __props__.__dict__["parameters"] = None
936
- __props__.__dict__["show_outputs"] = None
379
+ __props__.__dict__["tags"] = tags
937
380
  super(Schema, __self__).__init__(
938
381
  'snowflake:index/schema:Schema',
939
382
  resource_name,
@@ -944,31 +387,13 @@ class Schema(pulumi.CustomResource):
944
387
  def get(resource_name: str,
945
388
  id: pulumi.Input[str],
946
389
  opts: Optional[pulumi.ResourceOptions] = None,
947
- catalog: Optional[pulumi.Input[str]] = None,
948
390
  comment: Optional[pulumi.Input[str]] = None,
949
- data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
391
+ data_retention_days: Optional[pulumi.Input[int]] = None,
950
392
  database: Optional[pulumi.Input[str]] = None,
951
- default_ddl_collation: Optional[pulumi.Input[str]] = None,
952
- describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SchemaDescribeOutputArgs']]]]] = None,
953
- enable_console_output: Optional[pulumi.Input[bool]] = None,
954
- external_volume: Optional[pulumi.Input[str]] = None,
955
- is_transient: Optional[pulumi.Input[str]] = None,
956
- log_level: Optional[pulumi.Input[str]] = None,
957
- max_data_extension_time_in_days: Optional[pulumi.Input[int]] = None,
393
+ is_managed: Optional[pulumi.Input[bool]] = None,
394
+ is_transient: Optional[pulumi.Input[bool]] = None,
958
395
  name: Optional[pulumi.Input[str]] = None,
959
- parameters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SchemaParameterArgs']]]]] = None,
960
- pipe_execution_paused: Optional[pulumi.Input[bool]] = None,
961
- quoted_identifiers_ignore_case: Optional[pulumi.Input[bool]] = None,
962
- replace_invalid_characters: Optional[pulumi.Input[bool]] = None,
963
- show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SchemaShowOutputArgs']]]]] = None,
964
- storage_serialization_policy: Optional[pulumi.Input[str]] = None,
965
- suspend_task_after_num_failures: Optional[pulumi.Input[int]] = None,
966
- task_auto_retry_attempts: Optional[pulumi.Input[int]] = None,
967
- trace_level: Optional[pulumi.Input[str]] = None,
968
- user_task_managed_initial_warehouse_size: Optional[pulumi.Input[str]] = None,
969
- user_task_minimum_trigger_interval_in_seconds: Optional[pulumi.Input[int]] = None,
970
- user_task_timeout_ms: Optional[pulumi.Input[int]] = None,
971
- with_managed_access: Optional[pulumi.Input[str]] = None) -> 'Schema':
396
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SchemaTagArgs']]]]] = None) -> 'Schema':
972
397
  """
973
398
  Get an existing Schema resource's state with the given name, id, and optional extra
974
399
  properties used to qualify the lookup.
@@ -976,71 +401,27 @@ class Schema(pulumi.CustomResource):
976
401
  :param str resource_name: The unique name of the resulting resource.
977
402
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
978
403
  :param pulumi.ResourceOptions opts: Options for the resource.
979
- :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).
980
404
  :param pulumi.Input[str] comment: Specifies a comment for the schema.
981
- :param pulumi.Input[int] data_retention_time_in_days: Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database. For more details, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
405
+ :param pulumi.Input[int] data_retention_days: Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema. Default value for this field is set to -1, which is a fallback to use Snowflake default.
982
406
  :param pulumi.Input[str] database: The database in which to create the schema.
983
- :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).
984
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SchemaDescribeOutputArgs']]]] describe_outputs: Outputs the result of `DESCRIBE SCHEMA` for the given object. In order to handle this output, one must grant sufficient privileges, e.g. grant*ownership on all objects in the schema.
985
- :param pulumi.Input[bool] enable_console_output: If true, enables stdout/stderr fast path logging for anonymous stored procedures.
986
- :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).
987
- :param pulumi.Input[str] is_transient: Specifies the schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss. 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.
988
- :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).
989
- :param pulumi.Input[int] max_data_extension_time_in_days: Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale. For a detailed description of this parameter, see [MAX*DATA*EXTENSION*TIME*IN_DAYS](https://docs.snowflake.com/en/sql-reference/parameters.html#label-max-data-extension-time-in-days).
407
+ :param pulumi.Input[bool] is_managed: Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
408
+ :param pulumi.Input[bool] is_transient: Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
990
409
  :param pulumi.Input[str] name: Specifies the identifier for the schema; must be unique for the database in which the schema is created.
991
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SchemaParameterArgs']]]] parameters: Outputs the result of `SHOW PARAMETERS IN SCHEMA` for the given object.
992
- :param pulumi.Input[bool] pipe_execution_paused: Specifies whether to pause a running pipe, primarily in preparation for transferring ownership of the pipe to a different role. For more information, see [PIPE*EXECUTION*PAUSED](https://docs.snowflake.com/en/sql-reference/parameters#pipe-execution-paused).
993
- :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).
994
- :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).
995
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SchemaShowOutputArgs']]]] show_outputs: Outputs the result of `SHOW SCHEMA` for the given object.
996
- :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).
997
- :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).
998
- :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).
999
- :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).
1000
- :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).
1001
- :param pulumi.Input[int] user_task_minimum_trigger_interval_in_seconds: Minimum amount of time between Triggered Task executions in seconds.
1002
- :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).
1003
- :param pulumi.Input[str] with_managed_access: Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner. 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.
410
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SchemaTagArgs']]]] tags: Definitions of a tag to associate with the resource.
1004
411
  """
1005
412
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
1006
413
 
1007
414
  __props__ = _SchemaState.__new__(_SchemaState)
1008
415
 
1009
- __props__.__dict__["catalog"] = catalog
1010
416
  __props__.__dict__["comment"] = comment
1011
- __props__.__dict__["data_retention_time_in_days"] = data_retention_time_in_days
417
+ __props__.__dict__["data_retention_days"] = data_retention_days
1012
418
  __props__.__dict__["database"] = database
1013
- __props__.__dict__["default_ddl_collation"] = default_ddl_collation
1014
- __props__.__dict__["describe_outputs"] = describe_outputs
1015
- __props__.__dict__["enable_console_output"] = enable_console_output
1016
- __props__.__dict__["external_volume"] = external_volume
419
+ __props__.__dict__["is_managed"] = is_managed
1017
420
  __props__.__dict__["is_transient"] = is_transient
1018
- __props__.__dict__["log_level"] = log_level
1019
- __props__.__dict__["max_data_extension_time_in_days"] = max_data_extension_time_in_days
1020
421
  __props__.__dict__["name"] = name
1021
- __props__.__dict__["parameters"] = parameters
1022
- __props__.__dict__["pipe_execution_paused"] = pipe_execution_paused
1023
- __props__.__dict__["quoted_identifiers_ignore_case"] = quoted_identifiers_ignore_case
1024
- __props__.__dict__["replace_invalid_characters"] = replace_invalid_characters
1025
- __props__.__dict__["show_outputs"] = show_outputs
1026
- __props__.__dict__["storage_serialization_policy"] = storage_serialization_policy
1027
- __props__.__dict__["suspend_task_after_num_failures"] = suspend_task_after_num_failures
1028
- __props__.__dict__["task_auto_retry_attempts"] = task_auto_retry_attempts
1029
- __props__.__dict__["trace_level"] = trace_level
1030
- __props__.__dict__["user_task_managed_initial_warehouse_size"] = user_task_managed_initial_warehouse_size
1031
- __props__.__dict__["user_task_minimum_trigger_interval_in_seconds"] = user_task_minimum_trigger_interval_in_seconds
1032
- __props__.__dict__["user_task_timeout_ms"] = user_task_timeout_ms
1033
- __props__.__dict__["with_managed_access"] = with_managed_access
422
+ __props__.__dict__["tags"] = tags
1034
423
  return Schema(resource_name, opts=opts, __props__=__props__)
1035
424
 
1036
- @property
1037
- @pulumi.getter
1038
- def catalog(self) -> pulumi.Output[str]:
1039
- """
1040
- 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).
1041
- """
1042
- return pulumi.get(self, "catalog")
1043
-
1044
425
  @property
1045
426
  @pulumi.getter
1046
427
  def comment(self) -> pulumi.Output[Optional[str]]:
@@ -1050,12 +431,12 @@ class Schema(pulumi.CustomResource):
1050
431
  return pulumi.get(self, "comment")
1051
432
 
1052
433
  @property
1053
- @pulumi.getter(name="dataRetentionTimeInDays")
1054
- def data_retention_time_in_days(self) -> pulumi.Output[int]:
434
+ @pulumi.getter(name="dataRetentionDays")
435
+ def data_retention_days(self) -> pulumi.Output[Optional[int]]:
1055
436
  """
1056
- Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database. For more details, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
437
+ Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema. Default value for this field is set to -1, which is a fallback to use Snowflake default.
1057
438
  """
1058
- return pulumi.get(self, "data_retention_time_in_days")
439
+ return pulumi.get(self, "data_retention_days")
1059
440
 
1060
441
  @property
1061
442
  @pulumi.getter
@@ -1066,61 +447,21 @@ class Schema(pulumi.CustomResource):
1066
447
  return pulumi.get(self, "database")
1067
448
 
1068
449
  @property
1069
- @pulumi.getter(name="defaultDdlCollation")
1070
- def default_ddl_collation(self) -> pulumi.Output[str]:
450
+ @pulumi.getter(name="isManaged")
451
+ def is_managed(self) -> pulumi.Output[Optional[bool]]:
1071
452
  """
1072
- 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).
453
+ Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
1073
454
  """
1074
- return pulumi.get(self, "default_ddl_collation")
1075
-
1076
- @property
1077
- @pulumi.getter(name="describeOutputs")
1078
- def describe_outputs(self) -> pulumi.Output[Sequence['outputs.SchemaDescribeOutput']]:
1079
- """
1080
- Outputs the result of `DESCRIBE SCHEMA` for the given object. In order to handle this output, one must grant sufficient privileges, e.g. grant*ownership on all objects in the schema.
1081
- """
1082
- return pulumi.get(self, "describe_outputs")
1083
-
1084
- @property
1085
- @pulumi.getter(name="enableConsoleOutput")
1086
- def enable_console_output(self) -> pulumi.Output[bool]:
1087
- """
1088
- If true, enables stdout/stderr fast path logging for anonymous stored procedures.
1089
- """
1090
- return pulumi.get(self, "enable_console_output")
1091
-
1092
- @property
1093
- @pulumi.getter(name="externalVolume")
1094
- def external_volume(self) -> pulumi.Output[str]:
1095
- """
1096
- 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).
1097
- """
1098
- return pulumi.get(self, "external_volume")
455
+ return pulumi.get(self, "is_managed")
1099
456
 
1100
457
  @property
1101
458
  @pulumi.getter(name="isTransient")
1102
- def is_transient(self) -> pulumi.Output[Optional[str]]:
459
+ def is_transient(self) -> pulumi.Output[Optional[bool]]:
1103
460
  """
1104
- Specifies the schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss. 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.
461
+ Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
1105
462
  """
1106
463
  return pulumi.get(self, "is_transient")
1107
464
 
1108
- @property
1109
- @pulumi.getter(name="logLevel")
1110
- def log_level(self) -> pulumi.Output[str]:
1111
- """
1112
- 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).
1113
- """
1114
- return pulumi.get(self, "log_level")
1115
-
1116
- @property
1117
- @pulumi.getter(name="maxDataExtensionTimeInDays")
1118
- def max_data_extension_time_in_days(self) -> pulumi.Output[int]:
1119
- """
1120
- Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale. For a detailed description of this parameter, see [MAX*DATA*EXTENSION*TIME*IN_DAYS](https://docs.snowflake.com/en/sql-reference/parameters.html#label-max-data-extension-time-in-days).
1121
- """
1122
- return pulumi.get(self, "max_data_extension_time_in_days")
1123
-
1124
465
  @property
1125
466
  @pulumi.getter
1126
467
  def name(self) -> pulumi.Output[str]:
@@ -1131,105 +472,10 @@ class Schema(pulumi.CustomResource):
1131
472
 
1132
473
  @property
1133
474
  @pulumi.getter
1134
- def parameters(self) -> pulumi.Output[Sequence['outputs.SchemaParameter']]:
1135
- """
1136
- Outputs the result of `SHOW PARAMETERS IN SCHEMA` for the given object.
1137
- """
1138
- return pulumi.get(self, "parameters")
1139
-
1140
- @property
1141
- @pulumi.getter(name="pipeExecutionPaused")
1142
- def pipe_execution_paused(self) -> pulumi.Output[bool]:
1143
- """
1144
- Specifies whether to pause a running pipe, primarily in preparation for transferring ownership of the pipe to a different role. For more information, see [PIPE*EXECUTION*PAUSED](https://docs.snowflake.com/en/sql-reference/parameters#pipe-execution-paused).
1145
- """
1146
- return pulumi.get(self, "pipe_execution_paused")
1147
-
1148
- @property
1149
- @pulumi.getter(name="quotedIdentifiersIgnoreCase")
1150
- def quoted_identifiers_ignore_case(self) -> pulumi.Output[bool]:
1151
- """
1152
- 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).
1153
- """
1154
- return pulumi.get(self, "quoted_identifiers_ignore_case")
1155
-
1156
- @property
1157
- @pulumi.getter(name="replaceInvalidCharacters")
1158
- def replace_invalid_characters(self) -> pulumi.Output[bool]:
1159
- """
1160
- 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).
1161
- """
1162
- return pulumi.get(self, "replace_invalid_characters")
1163
-
1164
- @property
1165
- @pulumi.getter(name="showOutputs")
1166
- def show_outputs(self) -> pulumi.Output[Sequence['outputs.SchemaShowOutput']]:
1167
- """
1168
- Outputs the result of `SHOW SCHEMA` for the given object.
1169
- """
1170
- return pulumi.get(self, "show_outputs")
1171
-
1172
- @property
1173
- @pulumi.getter(name="storageSerializationPolicy")
1174
- def storage_serialization_policy(self) -> pulumi.Output[str]:
1175
- """
1176
- 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).
1177
- """
1178
- return pulumi.get(self, "storage_serialization_policy")
1179
-
1180
- @property
1181
- @pulumi.getter(name="suspendTaskAfterNumFailures")
1182
- def suspend_task_after_num_failures(self) -> pulumi.Output[int]:
1183
- """
1184
- 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).
1185
- """
1186
- return pulumi.get(self, "suspend_task_after_num_failures")
1187
-
1188
- @property
1189
- @pulumi.getter(name="taskAutoRetryAttempts")
1190
- def task_auto_retry_attempts(self) -> pulumi.Output[int]:
1191
- """
1192
- 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).
1193
- """
1194
- return pulumi.get(self, "task_auto_retry_attempts")
1195
-
1196
- @property
1197
- @pulumi.getter(name="traceLevel")
1198
- def trace_level(self) -> pulumi.Output[str]:
1199
- """
1200
- 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).
1201
- """
1202
- return pulumi.get(self, "trace_level")
1203
-
1204
- @property
1205
- @pulumi.getter(name="userTaskManagedInitialWarehouseSize")
1206
- def user_task_managed_initial_warehouse_size(self) -> pulumi.Output[str]:
1207
- """
1208
- 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).
1209
- """
1210
- return pulumi.get(self, "user_task_managed_initial_warehouse_size")
1211
-
1212
- @property
1213
- @pulumi.getter(name="userTaskMinimumTriggerIntervalInSeconds")
1214
- def user_task_minimum_trigger_interval_in_seconds(self) -> pulumi.Output[int]:
1215
- """
1216
- Minimum amount of time between Triggered Task executions in seconds.
1217
- """
1218
- return pulumi.get(self, "user_task_minimum_trigger_interval_in_seconds")
1219
-
1220
- @property
1221
- @pulumi.getter(name="userTaskTimeoutMs")
1222
- def user_task_timeout_ms(self) -> pulumi.Output[int]:
1223
- """
1224
- 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).
1225
- """
1226
- return pulumi.get(self, "user_task_timeout_ms")
1227
-
1228
- @property
1229
- @pulumi.getter(name="withManagedAccess")
1230
- def with_managed_access(self) -> pulumi.Output[Optional[str]]:
475
+ @_utilities.deprecated("""Use the 'snowflake_tag_association' resource instead.""")
476
+ def tags(self) -> pulumi.Output[Optional[Sequence['outputs.SchemaTag']]]:
1231
477
  """
1232
- Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner. 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.
478
+ Definitions of a tag to associate with the resource.
1233
479
  """
1234
- return pulumi.get(self, "with_managed_access")
480
+ return pulumi.get(self, "tags")
1235
481