pulumi-snowflake 0.56.0a1721200104__py3-none-any.whl → 0.56.0a1721667766__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.
- pulumi_snowflake/__init__.py +66 -217
- pulumi_snowflake/_inputs.py +10145 -1557
- pulumi_snowflake/_utilities.py +3 -4
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +688 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +641 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +676 -0
- pulumi_snowflake/cortex_search_service.py +563 -0
- pulumi_snowflake/database.py +854 -232
- pulumi_snowflake/database_old.py +556 -0
- pulumi_snowflake/external_oauth_integration.py +562 -534
- pulumi_snowflake/failover_group.py +2 -2
- pulumi_snowflake/get_cortex_search_services.py +197 -0
- pulumi_snowflake/get_databases.py +71 -62
- pulumi_snowflake/get_security_integrations.py +122 -0
- pulumi_snowflake/get_warehouses.py +66 -18
- pulumi_snowflake/grant_privileges_to_database_role.py +0 -4
- pulumi_snowflake/managed_account.py +7 -7
- pulumi_snowflake/oauth_integration.py +4 -0
- pulumi_snowflake/oauth_integration_for_custom_clients.py +936 -0
- pulumi_snowflake/oauth_integration_for_partner_applications.py +580 -0
- pulumi_snowflake/outputs.py +12987 -2857
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/saml2_integration.py +971 -0
- pulumi_snowflake/saml_integration.py +4 -0
- pulumi_snowflake/scim_integration.py +255 -105
- pulumi_snowflake/secondary_database.py +1059 -0
- pulumi_snowflake/sequence.py +6 -6
- pulumi_snowflake/shared_database.py +914 -0
- pulumi_snowflake/tag_association.py +38 -38
- pulumi_snowflake/user_password_policy_attachment.py +32 -0
- pulumi_snowflake/warehouse.py +143 -120
- {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/METADATA +1 -1
- {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/RECORD +35 -50
- {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -319
- pulumi_snowflake/database_grant.py +0 -471
- pulumi_snowflake/external_table_grant.py +0 -666
- pulumi_snowflake/failover_group_grant.py +0 -368
- pulumi_snowflake/file_format_grant.py +0 -611
- pulumi_snowflake/function_grant.py +0 -721
- pulumi_snowflake/grant_privileges_to_role.py +0 -821
- pulumi_snowflake/integration_grant.py +0 -416
- pulumi_snowflake/masking_policy_grant.py +0 -518
- pulumi_snowflake/materialized_view_grant.py +0 -665
- pulumi_snowflake/pipe_grant.py +0 -563
- pulumi_snowflake/procedure_grant.py +0 -721
- pulumi_snowflake/resource_monitor_grant.py +0 -363
- pulumi_snowflake/role_grants.py +0 -340
- pulumi_snowflake/role_ownership_grant.py +0 -329
- pulumi_snowflake/row_access_policy_grant.py +0 -516
- pulumi_snowflake/schema_grant.py +0 -603
- pulumi_snowflake/sequence_grant.py +0 -611
- pulumi_snowflake/stage_grant.py +0 -611
- pulumi_snowflake/stream_grant.py +0 -611
- pulumi_snowflake/table_grant.py +0 -653
- pulumi_snowflake/tag_grant.py +0 -508
- pulumi_snowflake/task_grant.py +0 -611
- pulumi_snowflake/user_grant.py +0 -370
- pulumi_snowflake/user_ownership_grant.py +0 -275
- pulumi_snowflake/view_grant.py +0 -685
- pulumi_snowflake/warehouse_grant.py +0 -416
- {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/top_level.txt +0 -0
pulumi_snowflake/warehouse.py
CHANGED
|
@@ -8,16 +8,18 @@ import pulumi
|
|
|
8
8
|
import pulumi.runtime
|
|
9
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
from ._inputs import *
|
|
11
13
|
|
|
12
14
|
__all__ = ['WarehouseArgs', 'Warehouse']
|
|
13
15
|
|
|
14
16
|
@pulumi.input_type
|
|
15
17
|
class WarehouseArgs:
|
|
16
18
|
def __init__(__self__, *,
|
|
17
|
-
auto_resume: Optional[pulumi.Input[
|
|
19
|
+
auto_resume: Optional[pulumi.Input[str]] = None,
|
|
18
20
|
auto_suspend: Optional[pulumi.Input[int]] = None,
|
|
19
21
|
comment: Optional[pulumi.Input[str]] = None,
|
|
20
|
-
enable_query_acceleration: Optional[pulumi.Input[
|
|
22
|
+
enable_query_acceleration: Optional[pulumi.Input[str]] = None,
|
|
21
23
|
initially_suspended: Optional[pulumi.Input[bool]] = None,
|
|
22
24
|
max_cluster_count: Optional[pulumi.Input[int]] = None,
|
|
23
25
|
max_concurrency_level: Optional[pulumi.Input[int]] = None,
|
|
@@ -28,14 +30,14 @@ class WarehouseArgs:
|
|
|
28
30
|
scaling_policy: Optional[pulumi.Input[str]] = None,
|
|
29
31
|
statement_queued_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
30
32
|
statement_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
31
|
-
wait_for_provisioning: Optional[pulumi.Input[bool]] = None,
|
|
32
33
|
warehouse_size: Optional[pulumi.Input[str]] = None,
|
|
33
34
|
warehouse_type: Optional[pulumi.Input[str]] = None):
|
|
34
35
|
"""
|
|
35
36
|
The set of arguments for constructing a Warehouse resource.
|
|
36
|
-
:param pulumi.Input[
|
|
37
|
+
:param pulumi.Input[str] auto_resume: Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it. 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.
|
|
37
38
|
:param pulumi.Input[int] auto_suspend: Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
|
|
38
|
-
:param pulumi.Input[
|
|
39
|
+
:param pulumi.Input[str] comment: Specifies a comment for the warehouse.
|
|
40
|
+
:param pulumi.Input[str] enable_query_acceleration: Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources. 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.
|
|
39
41
|
:param pulumi.Input[bool] initially_suspended: Specifies whether the warehouse is created initially in the ‘Suspended’ state.
|
|
40
42
|
:param pulumi.Input[int] max_cluster_count: Specifies the maximum number of server clusters for the warehouse.
|
|
41
43
|
:param pulumi.Input[int] max_concurrency_level: Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
|
|
@@ -43,12 +45,11 @@ class WarehouseArgs:
|
|
|
43
45
|
:param pulumi.Input[str] name: Identifier for the virtual warehouse; must be unique for your account.
|
|
44
46
|
:param pulumi.Input[int] query_acceleration_max_scale_factor: Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.
|
|
45
47
|
:param pulumi.Input[str] resource_monitor: Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
|
|
46
|
-
:param pulumi.Input[str] scaling_policy: Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
|
|
48
|
+
:param pulumi.Input[str] scaling_policy: Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode. Valid values are (case-insensitive): `STANDARD` | `ECONOMY`.
|
|
47
49
|
:param pulumi.Input[int] statement_queued_timeout_in_seconds: Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
|
|
48
50
|
:param pulumi.Input[int] statement_timeout_in_seconds: Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
|
|
49
|
-
:param pulumi.Input[
|
|
50
|
-
:param pulumi.Input[str]
|
|
51
|
-
:param pulumi.Input[str] warehouse_type: Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse
|
|
51
|
+
:param pulumi.Input[str] warehouse_size: Specifies the size of the virtual warehouse. Valid values are (case-insensitive): `XSMALL` | `X-SMALL` | `SMALL` | `MEDIUM` | `LARGE` | `XLARGE` | `X-LARGE` | `XXLARGE` | `X2LARGE` | `2X-LARGE` | `XXXLARGE` | `X3LARGE` | `3X-LARGE` | `X4LARGE` | `4X-LARGE` | `X5LARGE` | `5X-LARGE` | `X6LARGE` | `6X-LARGE`. Consult [warehouse documentation](https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties) for the details. Note: removing the size from config will result in the resource recreation.
|
|
52
|
+
:param pulumi.Input[str] warehouse_type: Specifies warehouse type. Valid values are (case-insensitive): `STANDARD` | `SNOWPARK-OPTIMIZED`. Warehouse needs to be suspended to change its type. Provider will handle automatic suspension and resumption if needed.
|
|
52
53
|
"""
|
|
53
54
|
if auto_resume is not None:
|
|
54
55
|
pulumi.set(__self__, "auto_resume", auto_resume)
|
|
@@ -78,11 +79,6 @@ class WarehouseArgs:
|
|
|
78
79
|
pulumi.set(__self__, "statement_queued_timeout_in_seconds", statement_queued_timeout_in_seconds)
|
|
79
80
|
if statement_timeout_in_seconds is not None:
|
|
80
81
|
pulumi.set(__self__, "statement_timeout_in_seconds", statement_timeout_in_seconds)
|
|
81
|
-
if wait_for_provisioning is not None:
|
|
82
|
-
warnings.warn("""This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.""", DeprecationWarning)
|
|
83
|
-
pulumi.log.warn("""wait_for_provisioning is deprecated: This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.""")
|
|
84
|
-
if wait_for_provisioning is not None:
|
|
85
|
-
pulumi.set(__self__, "wait_for_provisioning", wait_for_provisioning)
|
|
86
82
|
if warehouse_size is not None:
|
|
87
83
|
pulumi.set(__self__, "warehouse_size", warehouse_size)
|
|
88
84
|
if warehouse_type is not None:
|
|
@@ -90,14 +86,14 @@ class WarehouseArgs:
|
|
|
90
86
|
|
|
91
87
|
@property
|
|
92
88
|
@pulumi.getter(name="autoResume")
|
|
93
|
-
def auto_resume(self) -> Optional[pulumi.Input[
|
|
89
|
+
def auto_resume(self) -> Optional[pulumi.Input[str]]:
|
|
94
90
|
"""
|
|
95
|
-
Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
|
|
91
|
+
Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it. 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.
|
|
96
92
|
"""
|
|
97
93
|
return pulumi.get(self, "auto_resume")
|
|
98
94
|
|
|
99
95
|
@auto_resume.setter
|
|
100
|
-
def auto_resume(self, value: Optional[pulumi.Input[
|
|
96
|
+
def auto_resume(self, value: Optional[pulumi.Input[str]]):
|
|
101
97
|
pulumi.set(self, "auto_resume", value)
|
|
102
98
|
|
|
103
99
|
@property
|
|
@@ -115,6 +111,9 @@ class WarehouseArgs:
|
|
|
115
111
|
@property
|
|
116
112
|
@pulumi.getter
|
|
117
113
|
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
114
|
+
"""
|
|
115
|
+
Specifies a comment for the warehouse.
|
|
116
|
+
"""
|
|
118
117
|
return pulumi.get(self, "comment")
|
|
119
118
|
|
|
120
119
|
@comment.setter
|
|
@@ -123,14 +122,14 @@ class WarehouseArgs:
|
|
|
123
122
|
|
|
124
123
|
@property
|
|
125
124
|
@pulumi.getter(name="enableQueryAcceleration")
|
|
126
|
-
def enable_query_acceleration(self) -> Optional[pulumi.Input[
|
|
125
|
+
def enable_query_acceleration(self) -> Optional[pulumi.Input[str]]:
|
|
127
126
|
"""
|
|
128
|
-
Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.
|
|
127
|
+
Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources. 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.
|
|
129
128
|
"""
|
|
130
129
|
return pulumi.get(self, "enable_query_acceleration")
|
|
131
130
|
|
|
132
131
|
@enable_query_acceleration.setter
|
|
133
|
-
def enable_query_acceleration(self, value: Optional[pulumi.Input[
|
|
132
|
+
def enable_query_acceleration(self, value: Optional[pulumi.Input[str]]):
|
|
134
133
|
pulumi.set(self, "enable_query_acceleration", value)
|
|
135
134
|
|
|
136
135
|
@property
|
|
@@ -221,7 +220,7 @@ class WarehouseArgs:
|
|
|
221
220
|
@pulumi.getter(name="scalingPolicy")
|
|
222
221
|
def scaling_policy(self) -> Optional[pulumi.Input[str]]:
|
|
223
222
|
"""
|
|
224
|
-
Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
|
|
223
|
+
Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode. Valid values are (case-insensitive): `STANDARD` | `ECONOMY`.
|
|
225
224
|
"""
|
|
226
225
|
return pulumi.get(self, "scaling_policy")
|
|
227
226
|
|
|
@@ -253,24 +252,11 @@ class WarehouseArgs:
|
|
|
253
252
|
def statement_timeout_in_seconds(self, value: Optional[pulumi.Input[int]]):
|
|
254
253
|
pulumi.set(self, "statement_timeout_in_seconds", value)
|
|
255
254
|
|
|
256
|
-
@property
|
|
257
|
-
@pulumi.getter(name="waitForProvisioning")
|
|
258
|
-
@_utilities.deprecated("""This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.""")
|
|
259
|
-
def wait_for_provisioning(self) -> Optional[pulumi.Input[bool]]:
|
|
260
|
-
"""
|
|
261
|
-
Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
|
|
262
|
-
"""
|
|
263
|
-
return pulumi.get(self, "wait_for_provisioning")
|
|
264
|
-
|
|
265
|
-
@wait_for_provisioning.setter
|
|
266
|
-
def wait_for_provisioning(self, value: Optional[pulumi.Input[bool]]):
|
|
267
|
-
pulumi.set(self, "wait_for_provisioning", value)
|
|
268
|
-
|
|
269
255
|
@property
|
|
270
256
|
@pulumi.getter(name="warehouseSize")
|
|
271
257
|
def warehouse_size(self) -> Optional[pulumi.Input[str]]:
|
|
272
258
|
"""
|
|
273
|
-
Specifies the size of the virtual warehouse.
|
|
259
|
+
Specifies the size of the virtual warehouse. Valid values are (case-insensitive): `XSMALL` | `X-SMALL` | `SMALL` | `MEDIUM` | `LARGE` | `XLARGE` | `X-LARGE` | `XXLARGE` | `X2LARGE` | `2X-LARGE` | `XXXLARGE` | `X3LARGE` | `3X-LARGE` | `X4LARGE` | `4X-LARGE` | `X5LARGE` | `5X-LARGE` | `X6LARGE` | `6X-LARGE`. Consult [warehouse documentation](https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties) for the details. Note: removing the size from config will result in the resource recreation.
|
|
274
260
|
"""
|
|
275
261
|
return pulumi.get(self, "warehouse_size")
|
|
276
262
|
|
|
@@ -282,7 +268,7 @@ class WarehouseArgs:
|
|
|
282
268
|
@pulumi.getter(name="warehouseType")
|
|
283
269
|
def warehouse_type(self) -> Optional[pulumi.Input[str]]:
|
|
284
270
|
"""
|
|
285
|
-
Specifies
|
|
271
|
+
Specifies warehouse type. Valid values are (case-insensitive): `STANDARD` | `SNOWPARK-OPTIMIZED`. Warehouse needs to be suspended to change its type. Provider will handle automatic suspension and resumption if needed.
|
|
286
272
|
"""
|
|
287
273
|
return pulumi.get(self, "warehouse_type")
|
|
288
274
|
|
|
@@ -294,41 +280,44 @@ class WarehouseArgs:
|
|
|
294
280
|
@pulumi.input_type
|
|
295
281
|
class _WarehouseState:
|
|
296
282
|
def __init__(__self__, *,
|
|
297
|
-
auto_resume: Optional[pulumi.Input[
|
|
283
|
+
auto_resume: Optional[pulumi.Input[str]] = None,
|
|
298
284
|
auto_suspend: Optional[pulumi.Input[int]] = None,
|
|
299
285
|
comment: Optional[pulumi.Input[str]] = None,
|
|
300
|
-
enable_query_acceleration: Optional[pulumi.Input[
|
|
286
|
+
enable_query_acceleration: Optional[pulumi.Input[str]] = None,
|
|
301
287
|
initially_suspended: Optional[pulumi.Input[bool]] = None,
|
|
302
288
|
max_cluster_count: Optional[pulumi.Input[int]] = None,
|
|
303
289
|
max_concurrency_level: Optional[pulumi.Input[int]] = None,
|
|
304
290
|
min_cluster_count: Optional[pulumi.Input[int]] = None,
|
|
305
291
|
name: Optional[pulumi.Input[str]] = None,
|
|
292
|
+
parameters: Optional[pulumi.Input[Sequence[pulumi.Input['WarehouseParameterArgs']]]] = None,
|
|
306
293
|
query_acceleration_max_scale_factor: Optional[pulumi.Input[int]] = None,
|
|
307
294
|
resource_monitor: Optional[pulumi.Input[str]] = None,
|
|
308
295
|
scaling_policy: Optional[pulumi.Input[str]] = None,
|
|
296
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['WarehouseShowOutputArgs']]]] = None,
|
|
309
297
|
statement_queued_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
310
298
|
statement_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
311
|
-
wait_for_provisioning: Optional[pulumi.Input[bool]] = None,
|
|
312
299
|
warehouse_size: Optional[pulumi.Input[str]] = None,
|
|
313
300
|
warehouse_type: Optional[pulumi.Input[str]] = None):
|
|
314
301
|
"""
|
|
315
302
|
Input properties used for looking up and filtering Warehouse resources.
|
|
316
|
-
:param pulumi.Input[
|
|
303
|
+
:param pulumi.Input[str] auto_resume: Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it. 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.
|
|
317
304
|
:param pulumi.Input[int] auto_suspend: Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
|
|
318
|
-
:param pulumi.Input[
|
|
305
|
+
:param pulumi.Input[str] comment: Specifies a comment for the warehouse.
|
|
306
|
+
:param pulumi.Input[str] enable_query_acceleration: Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources. 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.
|
|
319
307
|
:param pulumi.Input[bool] initially_suspended: Specifies whether the warehouse is created initially in the ‘Suspended’ state.
|
|
320
308
|
:param pulumi.Input[int] max_cluster_count: Specifies the maximum number of server clusters for the warehouse.
|
|
321
309
|
:param pulumi.Input[int] max_concurrency_level: Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
|
|
322
310
|
:param pulumi.Input[int] min_cluster_count: Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
|
|
323
311
|
:param pulumi.Input[str] name: Identifier for the virtual warehouse; must be unique for your account.
|
|
312
|
+
:param pulumi.Input[Sequence[pulumi.Input['WarehouseParameterArgs']]] parameters: Outputs the result of `SHOW PARAMETERS IN WAREHOUSE` for the given warehouse.
|
|
324
313
|
:param pulumi.Input[int] query_acceleration_max_scale_factor: Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.
|
|
325
314
|
:param pulumi.Input[str] resource_monitor: Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
|
|
326
|
-
:param pulumi.Input[str] scaling_policy: Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
|
|
315
|
+
:param pulumi.Input[str] scaling_policy: Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode. Valid values are (case-insensitive): `STANDARD` | `ECONOMY`.
|
|
316
|
+
:param pulumi.Input[Sequence[pulumi.Input['WarehouseShowOutputArgs']]] show_outputs: Outputs the result of `SHOW WAREHOUSE` for the given warehouse.
|
|
327
317
|
:param pulumi.Input[int] statement_queued_timeout_in_seconds: Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
|
|
328
318
|
:param pulumi.Input[int] statement_timeout_in_seconds: Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
|
|
329
|
-
:param pulumi.Input[
|
|
330
|
-
:param pulumi.Input[str]
|
|
331
|
-
:param pulumi.Input[str] warehouse_type: Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse
|
|
319
|
+
:param pulumi.Input[str] warehouse_size: Specifies the size of the virtual warehouse. Valid values are (case-insensitive): `XSMALL` | `X-SMALL` | `SMALL` | `MEDIUM` | `LARGE` | `XLARGE` | `X-LARGE` | `XXLARGE` | `X2LARGE` | `2X-LARGE` | `XXXLARGE` | `X3LARGE` | `3X-LARGE` | `X4LARGE` | `4X-LARGE` | `X5LARGE` | `5X-LARGE` | `X6LARGE` | `6X-LARGE`. Consult [warehouse documentation](https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties) for the details. Note: removing the size from config will result in the resource recreation.
|
|
320
|
+
:param pulumi.Input[str] warehouse_type: Specifies warehouse type. Valid values are (case-insensitive): `STANDARD` | `SNOWPARK-OPTIMIZED`. Warehouse needs to be suspended to change its type. Provider will handle automatic suspension and resumption if needed.
|
|
332
321
|
"""
|
|
333
322
|
if auto_resume is not None:
|
|
334
323
|
pulumi.set(__self__, "auto_resume", auto_resume)
|
|
@@ -348,21 +337,20 @@ class _WarehouseState:
|
|
|
348
337
|
pulumi.set(__self__, "min_cluster_count", min_cluster_count)
|
|
349
338
|
if name is not None:
|
|
350
339
|
pulumi.set(__self__, "name", name)
|
|
340
|
+
if parameters is not None:
|
|
341
|
+
pulumi.set(__self__, "parameters", parameters)
|
|
351
342
|
if query_acceleration_max_scale_factor is not None:
|
|
352
343
|
pulumi.set(__self__, "query_acceleration_max_scale_factor", query_acceleration_max_scale_factor)
|
|
353
344
|
if resource_monitor is not None:
|
|
354
345
|
pulumi.set(__self__, "resource_monitor", resource_monitor)
|
|
355
346
|
if scaling_policy is not None:
|
|
356
347
|
pulumi.set(__self__, "scaling_policy", scaling_policy)
|
|
348
|
+
if show_outputs is not None:
|
|
349
|
+
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
357
350
|
if statement_queued_timeout_in_seconds is not None:
|
|
358
351
|
pulumi.set(__self__, "statement_queued_timeout_in_seconds", statement_queued_timeout_in_seconds)
|
|
359
352
|
if statement_timeout_in_seconds is not None:
|
|
360
353
|
pulumi.set(__self__, "statement_timeout_in_seconds", statement_timeout_in_seconds)
|
|
361
|
-
if wait_for_provisioning is not None:
|
|
362
|
-
warnings.warn("""This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.""", DeprecationWarning)
|
|
363
|
-
pulumi.log.warn("""wait_for_provisioning is deprecated: This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.""")
|
|
364
|
-
if wait_for_provisioning is not None:
|
|
365
|
-
pulumi.set(__self__, "wait_for_provisioning", wait_for_provisioning)
|
|
366
354
|
if warehouse_size is not None:
|
|
367
355
|
pulumi.set(__self__, "warehouse_size", warehouse_size)
|
|
368
356
|
if warehouse_type is not None:
|
|
@@ -370,14 +358,14 @@ class _WarehouseState:
|
|
|
370
358
|
|
|
371
359
|
@property
|
|
372
360
|
@pulumi.getter(name="autoResume")
|
|
373
|
-
def auto_resume(self) -> Optional[pulumi.Input[
|
|
361
|
+
def auto_resume(self) -> Optional[pulumi.Input[str]]:
|
|
374
362
|
"""
|
|
375
|
-
Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
|
|
363
|
+
Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it. 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.
|
|
376
364
|
"""
|
|
377
365
|
return pulumi.get(self, "auto_resume")
|
|
378
366
|
|
|
379
367
|
@auto_resume.setter
|
|
380
|
-
def auto_resume(self, value: Optional[pulumi.Input[
|
|
368
|
+
def auto_resume(self, value: Optional[pulumi.Input[str]]):
|
|
381
369
|
pulumi.set(self, "auto_resume", value)
|
|
382
370
|
|
|
383
371
|
@property
|
|
@@ -395,6 +383,9 @@ class _WarehouseState:
|
|
|
395
383
|
@property
|
|
396
384
|
@pulumi.getter
|
|
397
385
|
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
386
|
+
"""
|
|
387
|
+
Specifies a comment for the warehouse.
|
|
388
|
+
"""
|
|
398
389
|
return pulumi.get(self, "comment")
|
|
399
390
|
|
|
400
391
|
@comment.setter
|
|
@@ -403,14 +394,14 @@ class _WarehouseState:
|
|
|
403
394
|
|
|
404
395
|
@property
|
|
405
396
|
@pulumi.getter(name="enableQueryAcceleration")
|
|
406
|
-
def enable_query_acceleration(self) -> Optional[pulumi.Input[
|
|
397
|
+
def enable_query_acceleration(self) -> Optional[pulumi.Input[str]]:
|
|
407
398
|
"""
|
|
408
|
-
Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.
|
|
399
|
+
Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources. 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.
|
|
409
400
|
"""
|
|
410
401
|
return pulumi.get(self, "enable_query_acceleration")
|
|
411
402
|
|
|
412
403
|
@enable_query_acceleration.setter
|
|
413
|
-
def enable_query_acceleration(self, value: Optional[pulumi.Input[
|
|
404
|
+
def enable_query_acceleration(self, value: Optional[pulumi.Input[str]]):
|
|
414
405
|
pulumi.set(self, "enable_query_acceleration", value)
|
|
415
406
|
|
|
416
407
|
@property
|
|
@@ -473,6 +464,18 @@ class _WarehouseState:
|
|
|
473
464
|
def name(self, value: Optional[pulumi.Input[str]]):
|
|
474
465
|
pulumi.set(self, "name", value)
|
|
475
466
|
|
|
467
|
+
@property
|
|
468
|
+
@pulumi.getter
|
|
469
|
+
def parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WarehouseParameterArgs']]]]:
|
|
470
|
+
"""
|
|
471
|
+
Outputs the result of `SHOW PARAMETERS IN WAREHOUSE` for the given warehouse.
|
|
472
|
+
"""
|
|
473
|
+
return pulumi.get(self, "parameters")
|
|
474
|
+
|
|
475
|
+
@parameters.setter
|
|
476
|
+
def parameters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WarehouseParameterArgs']]]]):
|
|
477
|
+
pulumi.set(self, "parameters", value)
|
|
478
|
+
|
|
476
479
|
@property
|
|
477
480
|
@pulumi.getter(name="queryAccelerationMaxScaleFactor")
|
|
478
481
|
def query_acceleration_max_scale_factor(self) -> Optional[pulumi.Input[int]]:
|
|
@@ -501,7 +504,7 @@ class _WarehouseState:
|
|
|
501
504
|
@pulumi.getter(name="scalingPolicy")
|
|
502
505
|
def scaling_policy(self) -> Optional[pulumi.Input[str]]:
|
|
503
506
|
"""
|
|
504
|
-
Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
|
|
507
|
+
Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode. Valid values are (case-insensitive): `STANDARD` | `ECONOMY`.
|
|
505
508
|
"""
|
|
506
509
|
return pulumi.get(self, "scaling_policy")
|
|
507
510
|
|
|
@@ -509,6 +512,18 @@ class _WarehouseState:
|
|
|
509
512
|
def scaling_policy(self, value: Optional[pulumi.Input[str]]):
|
|
510
513
|
pulumi.set(self, "scaling_policy", value)
|
|
511
514
|
|
|
515
|
+
@property
|
|
516
|
+
@pulumi.getter(name="showOutputs")
|
|
517
|
+
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WarehouseShowOutputArgs']]]]:
|
|
518
|
+
"""
|
|
519
|
+
Outputs the result of `SHOW WAREHOUSE` for the given warehouse.
|
|
520
|
+
"""
|
|
521
|
+
return pulumi.get(self, "show_outputs")
|
|
522
|
+
|
|
523
|
+
@show_outputs.setter
|
|
524
|
+
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WarehouseShowOutputArgs']]]]):
|
|
525
|
+
pulumi.set(self, "show_outputs", value)
|
|
526
|
+
|
|
512
527
|
@property
|
|
513
528
|
@pulumi.getter(name="statementQueuedTimeoutInSeconds")
|
|
514
529
|
def statement_queued_timeout_in_seconds(self) -> Optional[pulumi.Input[int]]:
|
|
@@ -533,24 +548,11 @@ class _WarehouseState:
|
|
|
533
548
|
def statement_timeout_in_seconds(self, value: Optional[pulumi.Input[int]]):
|
|
534
549
|
pulumi.set(self, "statement_timeout_in_seconds", value)
|
|
535
550
|
|
|
536
|
-
@property
|
|
537
|
-
@pulumi.getter(name="waitForProvisioning")
|
|
538
|
-
@_utilities.deprecated("""This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.""")
|
|
539
|
-
def wait_for_provisioning(self) -> Optional[pulumi.Input[bool]]:
|
|
540
|
-
"""
|
|
541
|
-
Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
|
|
542
|
-
"""
|
|
543
|
-
return pulumi.get(self, "wait_for_provisioning")
|
|
544
|
-
|
|
545
|
-
@wait_for_provisioning.setter
|
|
546
|
-
def wait_for_provisioning(self, value: Optional[pulumi.Input[bool]]):
|
|
547
|
-
pulumi.set(self, "wait_for_provisioning", value)
|
|
548
|
-
|
|
549
551
|
@property
|
|
550
552
|
@pulumi.getter(name="warehouseSize")
|
|
551
553
|
def warehouse_size(self) -> Optional[pulumi.Input[str]]:
|
|
552
554
|
"""
|
|
553
|
-
Specifies the size of the virtual warehouse.
|
|
555
|
+
Specifies the size of the virtual warehouse. Valid values are (case-insensitive): `XSMALL` | `X-SMALL` | `SMALL` | `MEDIUM` | `LARGE` | `XLARGE` | `X-LARGE` | `XXLARGE` | `X2LARGE` | `2X-LARGE` | `XXXLARGE` | `X3LARGE` | `3X-LARGE` | `X4LARGE` | `4X-LARGE` | `X5LARGE` | `5X-LARGE` | `X6LARGE` | `6X-LARGE`. Consult [warehouse documentation](https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties) for the details. Note: removing the size from config will result in the resource recreation.
|
|
554
556
|
"""
|
|
555
557
|
return pulumi.get(self, "warehouse_size")
|
|
556
558
|
|
|
@@ -562,7 +564,7 @@ class _WarehouseState:
|
|
|
562
564
|
@pulumi.getter(name="warehouseType")
|
|
563
565
|
def warehouse_type(self) -> Optional[pulumi.Input[str]]:
|
|
564
566
|
"""
|
|
565
|
-
Specifies
|
|
567
|
+
Specifies warehouse type. Valid values are (case-insensitive): `STANDARD` | `SNOWPARK-OPTIMIZED`. Warehouse needs to be suspended to change its type. Provider will handle automatic suspension and resumption if needed.
|
|
566
568
|
"""
|
|
567
569
|
return pulumi.get(self, "warehouse_type")
|
|
568
570
|
|
|
@@ -576,10 +578,10 @@ class Warehouse(pulumi.CustomResource):
|
|
|
576
578
|
def __init__(__self__,
|
|
577
579
|
resource_name: str,
|
|
578
580
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
579
|
-
auto_resume: Optional[pulumi.Input[
|
|
581
|
+
auto_resume: Optional[pulumi.Input[str]] = None,
|
|
580
582
|
auto_suspend: Optional[pulumi.Input[int]] = None,
|
|
581
583
|
comment: Optional[pulumi.Input[str]] = None,
|
|
582
|
-
enable_query_acceleration: Optional[pulumi.Input[
|
|
584
|
+
enable_query_acceleration: Optional[pulumi.Input[str]] = None,
|
|
583
585
|
initially_suspended: Optional[pulumi.Input[bool]] = None,
|
|
584
586
|
max_cluster_count: Optional[pulumi.Input[int]] = None,
|
|
585
587
|
max_concurrency_level: Optional[pulumi.Input[int]] = None,
|
|
@@ -590,11 +592,14 @@ class Warehouse(pulumi.CustomResource):
|
|
|
590
592
|
scaling_policy: Optional[pulumi.Input[str]] = None,
|
|
591
593
|
statement_queued_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
592
594
|
statement_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
593
|
-
wait_for_provisioning: Optional[pulumi.Input[bool]] = None,
|
|
594
595
|
warehouse_size: Optional[pulumi.Input[str]] = None,
|
|
595
596
|
warehouse_type: Optional[pulumi.Input[str]] = None,
|
|
596
597
|
__props__=None):
|
|
597
598
|
"""
|
|
599
|
+
!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
|
|
600
|
+
|
|
601
|
+
Resource used to manage warehouse objects. For more information, check [warehouse documentation](https://docs.snowflake.com/en/sql-reference/commands-warehouse).
|
|
602
|
+
|
|
598
603
|
## Example Usage
|
|
599
604
|
|
|
600
605
|
```python
|
|
@@ -615,9 +620,10 @@ class Warehouse(pulumi.CustomResource):
|
|
|
615
620
|
|
|
616
621
|
:param str resource_name: The name of the resource.
|
|
617
622
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
618
|
-
:param pulumi.Input[
|
|
623
|
+
:param pulumi.Input[str] auto_resume: Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it. 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.
|
|
619
624
|
:param pulumi.Input[int] auto_suspend: Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
|
|
620
|
-
:param pulumi.Input[
|
|
625
|
+
:param pulumi.Input[str] comment: Specifies a comment for the warehouse.
|
|
626
|
+
:param pulumi.Input[str] enable_query_acceleration: Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources. 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.
|
|
621
627
|
:param pulumi.Input[bool] initially_suspended: Specifies whether the warehouse is created initially in the ‘Suspended’ state.
|
|
622
628
|
:param pulumi.Input[int] max_cluster_count: Specifies the maximum number of server clusters for the warehouse.
|
|
623
629
|
:param pulumi.Input[int] max_concurrency_level: Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
|
|
@@ -625,12 +631,11 @@ class Warehouse(pulumi.CustomResource):
|
|
|
625
631
|
:param pulumi.Input[str] name: Identifier for the virtual warehouse; must be unique for your account.
|
|
626
632
|
:param pulumi.Input[int] query_acceleration_max_scale_factor: Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.
|
|
627
633
|
:param pulumi.Input[str] resource_monitor: Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
|
|
628
|
-
:param pulumi.Input[str] scaling_policy: Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
|
|
634
|
+
:param pulumi.Input[str] scaling_policy: Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode. Valid values are (case-insensitive): `STANDARD` | `ECONOMY`.
|
|
629
635
|
:param pulumi.Input[int] statement_queued_timeout_in_seconds: Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
|
|
630
636
|
:param pulumi.Input[int] statement_timeout_in_seconds: Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
|
|
631
|
-
:param pulumi.Input[
|
|
632
|
-
:param pulumi.Input[str]
|
|
633
|
-
:param pulumi.Input[str] warehouse_type: Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse
|
|
637
|
+
:param pulumi.Input[str] warehouse_size: Specifies the size of the virtual warehouse. Valid values are (case-insensitive): `XSMALL` | `X-SMALL` | `SMALL` | `MEDIUM` | `LARGE` | `XLARGE` | `X-LARGE` | `XXLARGE` | `X2LARGE` | `2X-LARGE` | `XXXLARGE` | `X3LARGE` | `3X-LARGE` | `X4LARGE` | `4X-LARGE` | `X5LARGE` | `5X-LARGE` | `X6LARGE` | `6X-LARGE`. Consult [warehouse documentation](https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties) for the details. Note: removing the size from config will result in the resource recreation.
|
|
638
|
+
:param pulumi.Input[str] warehouse_type: Specifies warehouse type. Valid values are (case-insensitive): `STANDARD` | `SNOWPARK-OPTIMIZED`. Warehouse needs to be suspended to change its type. Provider will handle automatic suspension and resumption if needed.
|
|
634
639
|
"""
|
|
635
640
|
...
|
|
636
641
|
@overload
|
|
@@ -639,6 +644,10 @@ class Warehouse(pulumi.CustomResource):
|
|
|
639
644
|
args: Optional[WarehouseArgs] = None,
|
|
640
645
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
641
646
|
"""
|
|
647
|
+
!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
|
|
648
|
+
|
|
649
|
+
Resource used to manage warehouse objects. For more information, check [warehouse documentation](https://docs.snowflake.com/en/sql-reference/commands-warehouse).
|
|
650
|
+
|
|
642
651
|
## Example Usage
|
|
643
652
|
|
|
644
653
|
```python
|
|
@@ -672,10 +681,10 @@ class Warehouse(pulumi.CustomResource):
|
|
|
672
681
|
def _internal_init(__self__,
|
|
673
682
|
resource_name: str,
|
|
674
683
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
675
|
-
auto_resume: Optional[pulumi.Input[
|
|
684
|
+
auto_resume: Optional[pulumi.Input[str]] = None,
|
|
676
685
|
auto_suspend: Optional[pulumi.Input[int]] = None,
|
|
677
686
|
comment: Optional[pulumi.Input[str]] = None,
|
|
678
|
-
enable_query_acceleration: Optional[pulumi.Input[
|
|
687
|
+
enable_query_acceleration: Optional[pulumi.Input[str]] = None,
|
|
679
688
|
initially_suspended: Optional[pulumi.Input[bool]] = None,
|
|
680
689
|
max_cluster_count: Optional[pulumi.Input[int]] = None,
|
|
681
690
|
max_concurrency_level: Optional[pulumi.Input[int]] = None,
|
|
@@ -686,7 +695,6 @@ class Warehouse(pulumi.CustomResource):
|
|
|
686
695
|
scaling_policy: Optional[pulumi.Input[str]] = None,
|
|
687
696
|
statement_queued_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
688
697
|
statement_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
689
|
-
wait_for_provisioning: Optional[pulumi.Input[bool]] = None,
|
|
690
698
|
warehouse_size: Optional[pulumi.Input[str]] = None,
|
|
691
699
|
warehouse_type: Optional[pulumi.Input[str]] = None,
|
|
692
700
|
__props__=None):
|
|
@@ -712,9 +720,10 @@ class Warehouse(pulumi.CustomResource):
|
|
|
712
720
|
__props__.__dict__["scaling_policy"] = scaling_policy
|
|
713
721
|
__props__.__dict__["statement_queued_timeout_in_seconds"] = statement_queued_timeout_in_seconds
|
|
714
722
|
__props__.__dict__["statement_timeout_in_seconds"] = statement_timeout_in_seconds
|
|
715
|
-
__props__.__dict__["wait_for_provisioning"] = wait_for_provisioning
|
|
716
723
|
__props__.__dict__["warehouse_size"] = warehouse_size
|
|
717
724
|
__props__.__dict__["warehouse_type"] = warehouse_type
|
|
725
|
+
__props__.__dict__["parameters"] = None
|
|
726
|
+
__props__.__dict__["show_outputs"] = None
|
|
718
727
|
super(Warehouse, __self__).__init__(
|
|
719
728
|
'snowflake:index/warehouse:Warehouse',
|
|
720
729
|
resource_name,
|
|
@@ -725,21 +734,22 @@ class Warehouse(pulumi.CustomResource):
|
|
|
725
734
|
def get(resource_name: str,
|
|
726
735
|
id: pulumi.Input[str],
|
|
727
736
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
728
|
-
auto_resume: Optional[pulumi.Input[
|
|
737
|
+
auto_resume: Optional[pulumi.Input[str]] = None,
|
|
729
738
|
auto_suspend: Optional[pulumi.Input[int]] = None,
|
|
730
739
|
comment: Optional[pulumi.Input[str]] = None,
|
|
731
|
-
enable_query_acceleration: Optional[pulumi.Input[
|
|
740
|
+
enable_query_acceleration: Optional[pulumi.Input[str]] = None,
|
|
732
741
|
initially_suspended: Optional[pulumi.Input[bool]] = None,
|
|
733
742
|
max_cluster_count: Optional[pulumi.Input[int]] = None,
|
|
734
743
|
max_concurrency_level: Optional[pulumi.Input[int]] = None,
|
|
735
744
|
min_cluster_count: Optional[pulumi.Input[int]] = None,
|
|
736
745
|
name: Optional[pulumi.Input[str]] = None,
|
|
746
|
+
parameters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WarehouseParameterArgs']]]]] = None,
|
|
737
747
|
query_acceleration_max_scale_factor: Optional[pulumi.Input[int]] = None,
|
|
738
748
|
resource_monitor: Optional[pulumi.Input[str]] = None,
|
|
739
749
|
scaling_policy: Optional[pulumi.Input[str]] = None,
|
|
750
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WarehouseShowOutputArgs']]]]] = None,
|
|
740
751
|
statement_queued_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
741
752
|
statement_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
|
|
742
|
-
wait_for_provisioning: Optional[pulumi.Input[bool]] = None,
|
|
743
753
|
warehouse_size: Optional[pulumi.Input[str]] = None,
|
|
744
754
|
warehouse_type: Optional[pulumi.Input[str]] = None) -> 'Warehouse':
|
|
745
755
|
"""
|
|
@@ -749,22 +759,24 @@ class Warehouse(pulumi.CustomResource):
|
|
|
749
759
|
:param str resource_name: The unique name of the resulting resource.
|
|
750
760
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
751
761
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
752
|
-
:param pulumi.Input[
|
|
762
|
+
:param pulumi.Input[str] auto_resume: Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it. 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.
|
|
753
763
|
:param pulumi.Input[int] auto_suspend: Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
|
|
754
|
-
:param pulumi.Input[
|
|
764
|
+
:param pulumi.Input[str] comment: Specifies a comment for the warehouse.
|
|
765
|
+
:param pulumi.Input[str] enable_query_acceleration: Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources. 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.
|
|
755
766
|
:param pulumi.Input[bool] initially_suspended: Specifies whether the warehouse is created initially in the ‘Suspended’ state.
|
|
756
767
|
:param pulumi.Input[int] max_cluster_count: Specifies the maximum number of server clusters for the warehouse.
|
|
757
768
|
:param pulumi.Input[int] max_concurrency_level: Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
|
|
758
769
|
:param pulumi.Input[int] min_cluster_count: Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
|
|
759
770
|
:param pulumi.Input[str] name: Identifier for the virtual warehouse; must be unique for your account.
|
|
771
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WarehouseParameterArgs']]]] parameters: Outputs the result of `SHOW PARAMETERS IN WAREHOUSE` for the given warehouse.
|
|
760
772
|
:param pulumi.Input[int] query_acceleration_max_scale_factor: Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.
|
|
761
773
|
:param pulumi.Input[str] resource_monitor: Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
|
|
762
|
-
:param pulumi.Input[str] scaling_policy: Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
|
|
774
|
+
:param pulumi.Input[str] scaling_policy: Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode. Valid values are (case-insensitive): `STANDARD` | `ECONOMY`.
|
|
775
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WarehouseShowOutputArgs']]]] show_outputs: Outputs the result of `SHOW WAREHOUSE` for the given warehouse.
|
|
763
776
|
:param pulumi.Input[int] statement_queued_timeout_in_seconds: Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
|
|
764
777
|
:param pulumi.Input[int] statement_timeout_in_seconds: Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
|
|
765
|
-
:param pulumi.Input[
|
|
766
|
-
:param pulumi.Input[str]
|
|
767
|
-
:param pulumi.Input[str] warehouse_type: Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse
|
|
778
|
+
:param pulumi.Input[str] warehouse_size: Specifies the size of the virtual warehouse. Valid values are (case-insensitive): `XSMALL` | `X-SMALL` | `SMALL` | `MEDIUM` | `LARGE` | `XLARGE` | `X-LARGE` | `XXLARGE` | `X2LARGE` | `2X-LARGE` | `XXXLARGE` | `X3LARGE` | `3X-LARGE` | `X4LARGE` | `4X-LARGE` | `X5LARGE` | `5X-LARGE` | `X6LARGE` | `6X-LARGE`. Consult [warehouse documentation](https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties) for the details. Note: removing the size from config will result in the resource recreation.
|
|
779
|
+
:param pulumi.Input[str] warehouse_type: Specifies warehouse type. Valid values are (case-insensitive): `STANDARD` | `SNOWPARK-OPTIMIZED`. Warehouse needs to be suspended to change its type. Provider will handle automatic suspension and resumption if needed.
|
|
768
780
|
"""
|
|
769
781
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
770
782
|
|
|
@@ -779,27 +791,28 @@ class Warehouse(pulumi.CustomResource):
|
|
|
779
791
|
__props__.__dict__["max_concurrency_level"] = max_concurrency_level
|
|
780
792
|
__props__.__dict__["min_cluster_count"] = min_cluster_count
|
|
781
793
|
__props__.__dict__["name"] = name
|
|
794
|
+
__props__.__dict__["parameters"] = parameters
|
|
782
795
|
__props__.__dict__["query_acceleration_max_scale_factor"] = query_acceleration_max_scale_factor
|
|
783
796
|
__props__.__dict__["resource_monitor"] = resource_monitor
|
|
784
797
|
__props__.__dict__["scaling_policy"] = scaling_policy
|
|
798
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
785
799
|
__props__.__dict__["statement_queued_timeout_in_seconds"] = statement_queued_timeout_in_seconds
|
|
786
800
|
__props__.__dict__["statement_timeout_in_seconds"] = statement_timeout_in_seconds
|
|
787
|
-
__props__.__dict__["wait_for_provisioning"] = wait_for_provisioning
|
|
788
801
|
__props__.__dict__["warehouse_size"] = warehouse_size
|
|
789
802
|
__props__.__dict__["warehouse_type"] = warehouse_type
|
|
790
803
|
return Warehouse(resource_name, opts=opts, __props__=__props__)
|
|
791
804
|
|
|
792
805
|
@property
|
|
793
806
|
@pulumi.getter(name="autoResume")
|
|
794
|
-
def auto_resume(self) -> pulumi.Output[
|
|
807
|
+
def auto_resume(self) -> pulumi.Output[Optional[str]]:
|
|
795
808
|
"""
|
|
796
|
-
Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
|
|
809
|
+
Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it. 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.
|
|
797
810
|
"""
|
|
798
811
|
return pulumi.get(self, "auto_resume")
|
|
799
812
|
|
|
800
813
|
@property
|
|
801
814
|
@pulumi.getter(name="autoSuspend")
|
|
802
|
-
def auto_suspend(self) -> pulumi.Output[int]:
|
|
815
|
+
def auto_suspend(self) -> pulumi.Output[Optional[int]]:
|
|
803
816
|
"""
|
|
804
817
|
Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
|
|
805
818
|
"""
|
|
@@ -808,13 +821,16 @@ class Warehouse(pulumi.CustomResource):
|
|
|
808
821
|
@property
|
|
809
822
|
@pulumi.getter
|
|
810
823
|
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
824
|
+
"""
|
|
825
|
+
Specifies a comment for the warehouse.
|
|
826
|
+
"""
|
|
811
827
|
return pulumi.get(self, "comment")
|
|
812
828
|
|
|
813
829
|
@property
|
|
814
830
|
@pulumi.getter(name="enableQueryAcceleration")
|
|
815
|
-
def enable_query_acceleration(self) -> pulumi.Output[Optional[
|
|
831
|
+
def enable_query_acceleration(self) -> pulumi.Output[Optional[str]]:
|
|
816
832
|
"""
|
|
817
|
-
Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.
|
|
833
|
+
Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources. 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.
|
|
818
834
|
"""
|
|
819
835
|
return pulumi.get(self, "enable_query_acceleration")
|
|
820
836
|
|
|
@@ -828,7 +844,7 @@ class Warehouse(pulumi.CustomResource):
|
|
|
828
844
|
|
|
829
845
|
@property
|
|
830
846
|
@pulumi.getter(name="maxClusterCount")
|
|
831
|
-
def max_cluster_count(self) -> pulumi.Output[int]:
|
|
847
|
+
def max_cluster_count(self) -> pulumi.Output[Optional[int]]:
|
|
832
848
|
"""
|
|
833
849
|
Specifies the maximum number of server clusters for the warehouse.
|
|
834
850
|
"""
|
|
@@ -836,7 +852,7 @@ class Warehouse(pulumi.CustomResource):
|
|
|
836
852
|
|
|
837
853
|
@property
|
|
838
854
|
@pulumi.getter(name="maxConcurrencyLevel")
|
|
839
|
-
def max_concurrency_level(self) -> pulumi.Output[
|
|
855
|
+
def max_concurrency_level(self) -> pulumi.Output[int]:
|
|
840
856
|
"""
|
|
841
857
|
Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
|
|
842
858
|
"""
|
|
@@ -844,7 +860,7 @@ class Warehouse(pulumi.CustomResource):
|
|
|
844
860
|
|
|
845
861
|
@property
|
|
846
862
|
@pulumi.getter(name="minClusterCount")
|
|
847
|
-
def min_cluster_count(self) -> pulumi.Output[int]:
|
|
863
|
+
def min_cluster_count(self) -> pulumi.Output[Optional[int]]:
|
|
848
864
|
"""
|
|
849
865
|
Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
|
|
850
866
|
"""
|
|
@@ -858,6 +874,14 @@ class Warehouse(pulumi.CustomResource):
|
|
|
858
874
|
"""
|
|
859
875
|
return pulumi.get(self, "name")
|
|
860
876
|
|
|
877
|
+
@property
|
|
878
|
+
@pulumi.getter
|
|
879
|
+
def parameters(self) -> pulumi.Output[Sequence['outputs.WarehouseParameter']]:
|
|
880
|
+
"""
|
|
881
|
+
Outputs the result of `SHOW PARAMETERS IN WAREHOUSE` for the given warehouse.
|
|
882
|
+
"""
|
|
883
|
+
return pulumi.get(self, "parameters")
|
|
884
|
+
|
|
861
885
|
@property
|
|
862
886
|
@pulumi.getter(name="queryAccelerationMaxScaleFactor")
|
|
863
887
|
def query_acceleration_max_scale_factor(self) -> pulumi.Output[Optional[int]]:
|
|
@@ -868,7 +892,7 @@ class Warehouse(pulumi.CustomResource):
|
|
|
868
892
|
|
|
869
893
|
@property
|
|
870
894
|
@pulumi.getter(name="resourceMonitor")
|
|
871
|
-
def resource_monitor(self) -> pulumi.Output[str]:
|
|
895
|
+
def resource_monitor(self) -> pulumi.Output[Optional[str]]:
|
|
872
896
|
"""
|
|
873
897
|
Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
|
|
874
898
|
"""
|
|
@@ -876,15 +900,23 @@ class Warehouse(pulumi.CustomResource):
|
|
|
876
900
|
|
|
877
901
|
@property
|
|
878
902
|
@pulumi.getter(name="scalingPolicy")
|
|
879
|
-
def scaling_policy(self) -> pulumi.Output[str]:
|
|
903
|
+
def scaling_policy(self) -> pulumi.Output[Optional[str]]:
|
|
880
904
|
"""
|
|
881
|
-
Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
|
|
905
|
+
Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode. Valid values are (case-insensitive): `STANDARD` | `ECONOMY`.
|
|
882
906
|
"""
|
|
883
907
|
return pulumi.get(self, "scaling_policy")
|
|
884
908
|
|
|
909
|
+
@property
|
|
910
|
+
@pulumi.getter(name="showOutputs")
|
|
911
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.WarehouseShowOutput']]:
|
|
912
|
+
"""
|
|
913
|
+
Outputs the result of `SHOW WAREHOUSE` for the given warehouse.
|
|
914
|
+
"""
|
|
915
|
+
return pulumi.get(self, "show_outputs")
|
|
916
|
+
|
|
885
917
|
@property
|
|
886
918
|
@pulumi.getter(name="statementQueuedTimeoutInSeconds")
|
|
887
|
-
def statement_queued_timeout_in_seconds(self) -> pulumi.Output[
|
|
919
|
+
def statement_queued_timeout_in_seconds(self) -> pulumi.Output[int]:
|
|
888
920
|
"""
|
|
889
921
|
Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
|
|
890
922
|
"""
|
|
@@ -892,26 +924,17 @@ class Warehouse(pulumi.CustomResource):
|
|
|
892
924
|
|
|
893
925
|
@property
|
|
894
926
|
@pulumi.getter(name="statementTimeoutInSeconds")
|
|
895
|
-
def statement_timeout_in_seconds(self) -> pulumi.Output[
|
|
927
|
+
def statement_timeout_in_seconds(self) -> pulumi.Output[int]:
|
|
896
928
|
"""
|
|
897
929
|
Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
|
|
898
930
|
"""
|
|
899
931
|
return pulumi.get(self, "statement_timeout_in_seconds")
|
|
900
932
|
|
|
901
|
-
@property
|
|
902
|
-
@pulumi.getter(name="waitForProvisioning")
|
|
903
|
-
@_utilities.deprecated("""This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.""")
|
|
904
|
-
def wait_for_provisioning(self) -> pulumi.Output[Optional[bool]]:
|
|
905
|
-
"""
|
|
906
|
-
Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
|
|
907
|
-
"""
|
|
908
|
-
return pulumi.get(self, "wait_for_provisioning")
|
|
909
|
-
|
|
910
933
|
@property
|
|
911
934
|
@pulumi.getter(name="warehouseSize")
|
|
912
|
-
def warehouse_size(self) -> pulumi.Output[str]:
|
|
935
|
+
def warehouse_size(self) -> pulumi.Output[Optional[str]]:
|
|
913
936
|
"""
|
|
914
|
-
Specifies the size of the virtual warehouse.
|
|
937
|
+
Specifies the size of the virtual warehouse. Valid values are (case-insensitive): `XSMALL` | `X-SMALL` | `SMALL` | `MEDIUM` | `LARGE` | `XLARGE` | `X-LARGE` | `XXLARGE` | `X2LARGE` | `2X-LARGE` | `XXXLARGE` | `X3LARGE` | `3X-LARGE` | `X4LARGE` | `4X-LARGE` | `X5LARGE` | `5X-LARGE` | `X6LARGE` | `6X-LARGE`. Consult [warehouse documentation](https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties) for the details. Note: removing the size from config will result in the resource recreation.
|
|
915
938
|
"""
|
|
916
939
|
return pulumi.get(self, "warehouse_size")
|
|
917
940
|
|
|
@@ -919,7 +942,7 @@ class Warehouse(pulumi.CustomResource):
|
|
|
919
942
|
@pulumi.getter(name="warehouseType")
|
|
920
943
|
def warehouse_type(self) -> pulumi.Output[Optional[str]]:
|
|
921
944
|
"""
|
|
922
|
-
Specifies
|
|
945
|
+
Specifies warehouse type. Valid values are (case-insensitive): `STANDARD` | `SNOWPARK-OPTIMIZED`. Warehouse needs to be suspended to change its type. Provider will handle automatic suspension and resumption if needed.
|
|
923
946
|
"""
|
|
924
947
|
return pulumi.get(self, "warehouse_type")
|
|
925
948
|
|