pulumi-snowflake 0.59.0a1726827563__py3-none-any.whl → 0.60.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/__init__.py +36 -0
- pulumi_snowflake/_inputs.py +20444 -3310
- pulumi_snowflake/_utilities.py +1 -1
- pulumi_snowflake/account.py +5 -0
- pulumi_snowflake/account_parameter.py +5 -0
- pulumi_snowflake/account_password_policy_attachment.py +5 -0
- pulumi_snowflake/account_role.py +5 -0
- pulumi_snowflake/alert.py +5 -0
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +5 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +5 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +5 -0
- pulumi_snowflake/api_integration.py +5 -0
- pulumi_snowflake/config/__init__.pyi +5 -0
- pulumi_snowflake/config/outputs.py +5 -0
- pulumi_snowflake/config/vars.py +5 -0
- pulumi_snowflake/cortex_search_service.py +5 -0
- pulumi_snowflake/database.py +5 -0
- pulumi_snowflake/database_old.py +5 -0
- pulumi_snowflake/database_role.py +5 -0
- pulumi_snowflake/dynamic_table.py +5 -0
- pulumi_snowflake/email_notification_integration.py +5 -0
- pulumi_snowflake/external_function.py +5 -0
- pulumi_snowflake/external_oauth_integration.py +5 -0
- pulumi_snowflake/external_table.py +5 -0
- pulumi_snowflake/failover_group.py +5 -0
- pulumi_snowflake/file_format.py +5 -0
- pulumi_snowflake/function.py +5 -0
- pulumi_snowflake/get_accounts.py +13 -4
- pulumi_snowflake/get_alerts.py +17 -4
- pulumi_snowflake/get_cortex_search_services.py +19 -4
- pulumi_snowflake/get_current_account.py +13 -4
- pulumi_snowflake/get_current_role.py +11 -4
- pulumi_snowflake/get_database.py +20 -4
- pulumi_snowflake/get_database_role.py +16 -4
- pulumi_snowflake/get_database_roles.py +21 -4
- pulumi_snowflake/get_databases.py +21 -4
- pulumi_snowflake/get_dynamic_tables.py +19 -4
- pulumi_snowflake/get_external_functions.py +15 -4
- pulumi_snowflake/get_external_tables.py +15 -4
- pulumi_snowflake/get_failover_groups.py +13 -4
- pulumi_snowflake/get_file_formats.py +15 -4
- pulumi_snowflake/get_functions.py +15 -4
- pulumi_snowflake/get_grants.py +21 -4
- pulumi_snowflake/get_masking_policies.py +92 -52
- pulumi_snowflake/get_materialized_views.py +15 -4
- pulumi_snowflake/get_network_policies.py +15 -4
- pulumi_snowflake/get_parameters.py +21 -4
- pulumi_snowflake/get_pipes.py +15 -4
- pulumi_snowflake/get_procedures.py +15 -4
- pulumi_snowflake/get_resource_monitors.py +41 -20
- pulumi_snowflake/get_role.py +13 -4
- pulumi_snowflake/get_roles.py +15 -4
- pulumi_snowflake/get_row_access_policies.py +92 -52
- pulumi_snowflake/get_schemas.py +23 -4
- pulumi_snowflake/get_security_integrations.py +15 -4
- pulumi_snowflake/get_sequences.py +15 -4
- pulumi_snowflake/get_shares.py +13 -4
- pulumi_snowflake/get_stages.py +15 -4
- pulumi_snowflake/get_storage_integrations.py +11 -4
- pulumi_snowflake/get_streamlits.py +19 -4
- pulumi_snowflake/get_streams.py +15 -4
- pulumi_snowflake/get_system_generate_scim_access_token.py +13 -4
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +13 -4
- pulumi_snowflake/get_system_get_private_link_config.py +19 -4
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +12 -4
- pulumi_snowflake/get_tables.py +15 -4
- pulumi_snowflake/get_tasks.py +15 -4
- pulumi_snowflake/get_users.py +21 -4
- pulumi_snowflake/get_views.py +25 -4
- pulumi_snowflake/get_warehouses.py +17 -4
- pulumi_snowflake/grant_account_role.py +5 -0
- pulumi_snowflake/grant_application_role.py +5 -0
- pulumi_snowflake/grant_database_role.py +5 -0
- pulumi_snowflake/grant_ownership.py +5 -0
- pulumi_snowflake/grant_privileges_to_account_role.py +5 -0
- pulumi_snowflake/grant_privileges_to_database_role.py +5 -0
- pulumi_snowflake/grant_privileges_to_share.py +5 -0
- pulumi_snowflake/legacy_service_user.py +3666 -0
- pulumi_snowflake/managed_account.py +5 -0
- pulumi_snowflake/masking_policy.py +197 -234
- pulumi_snowflake/materialized_view.py +5 -0
- pulumi_snowflake/network_policy.py +5 -0
- pulumi_snowflake/network_policy_attachment.py +5 -0
- pulumi_snowflake/network_rule.py +5 -0
- pulumi_snowflake/notification_integration.py +5 -0
- pulumi_snowflake/oauth_integration.py +5 -0
- pulumi_snowflake/oauth_integration_for_custom_clients.py +5 -0
- pulumi_snowflake/oauth_integration_for_partner_applications.py +5 -0
- pulumi_snowflake/object_parameter.py +5 -0
- pulumi_snowflake/outputs.py +11392 -2385
- pulumi_snowflake/password_policy.py +5 -0
- pulumi_snowflake/pipe.py +5 -0
- pulumi_snowflake/procedure.py +5 -0
- pulumi_snowflake/provider.py +5 -0
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +88 -259
- pulumi_snowflake/role.py +5 -0
- pulumi_snowflake/row_access_policy.py +173 -114
- pulumi_snowflake/saml2_integration.py +5 -0
- pulumi_snowflake/saml_integration.py +5 -0
- pulumi_snowflake/schema.py +5 -0
- pulumi_snowflake/scim_integration.py +5 -0
- pulumi_snowflake/secondary_database.py +5 -0
- pulumi_snowflake/sequence.py +5 -0
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/session_parameter.py +5 -0
- pulumi_snowflake/share.py +5 -0
- pulumi_snowflake/shared_database.py +5 -0
- pulumi_snowflake/stage.py +12 -7
- pulumi_snowflake/storage_integration.py +5 -0
- pulumi_snowflake/stream.py +5 -0
- pulumi_snowflake/stream_on_external_table.py +597 -0
- pulumi_snowflake/stream_on_table.py +631 -0
- pulumi_snowflake/streamlit.py +5 -0
- pulumi_snowflake/table.py +5 -0
- pulumi_snowflake/table_column_masking_policy_application.py +5 -0
- pulumi_snowflake/table_constraint.py +5 -0
- pulumi_snowflake/tag.py +5 -0
- pulumi_snowflake/tag_association.py +5 -0
- pulumi_snowflake/tag_masking_policy_association.py +5 -0
- pulumi_snowflake/task.py +5 -0
- pulumi_snowflake/unsafe_execute.py +5 -0
- pulumi_snowflake/user.py +7 -2
- pulumi_snowflake/user_password_policy_attachment.py +5 -0
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +12 -7
- pulumi_snowflake/warehouse.py +9 -4
- {pulumi_snowflake-0.59.0a1726827563.dist-info → pulumi_snowflake-0.60.0.dist-info}/METADATA +3 -2
- pulumi_snowflake-0.60.0.dist-info/RECORD +133 -0
- pulumi_snowflake-0.59.0a1726827563.dist-info/RECORD +0 -129
- {pulumi_snowflake-0.59.0a1726827563.dist-info → pulumi_snowflake-0.60.0.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-0.59.0a1726827563.dist-info → pulumi_snowflake-0.60.0.dist-info}/top_level.txt +0 -0
|
@@ -4,10 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
11
18
|
|
|
12
19
|
__all__ = ['ResourceMonitorArgs', 'ResourceMonitor']
|
|
13
20
|
|
|
@@ -20,28 +27,20 @@ class ResourceMonitorArgs:
|
|
|
20
27
|
name: Optional[pulumi.Input[str]] = None,
|
|
21
28
|
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
22
29
|
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
23
|
-
set_for_account: Optional[pulumi.Input[bool]] = None,
|
|
24
30
|
start_timestamp: Optional[pulumi.Input[str]] = None,
|
|
25
31
|
suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
|
|
26
|
-
|
|
27
|
-
suspend_trigger: Optional[pulumi.Input[int]] = None,
|
|
28
|
-
suspend_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
29
|
-
warehouses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
32
|
+
suspend_trigger: Optional[pulumi.Input[int]] = None):
|
|
30
33
|
"""
|
|
31
34
|
The set of arguments for constructing a ResourceMonitor resource.
|
|
32
|
-
:param pulumi.Input[int] credit_quota: The number of credits allocated
|
|
35
|
+
:param pulumi.Input[int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
33
36
|
:param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
34
|
-
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set
|
|
35
|
-
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account.
|
|
36
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers:
|
|
37
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users to receive email notifications on resource monitors.
|
|
38
|
-
:param pulumi.Input[
|
|
39
|
-
:param pulumi.Input[
|
|
40
|
-
:param pulumi.Input[int]
|
|
41
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] suspend_immediate_triggers: A list of percentage thresholds at which to suspend all warehouses.
|
|
42
|
-
:param pulumi.Input[int] suspend_trigger: The number that represents the percentage threshold at which to suspend all warehouses.
|
|
43
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] suspend_triggers: A list of percentage thresholds at which to suspend all warehouses.
|
|
44
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] warehouses: A list of warehouses to apply the resource monitor to.
|
|
37
|
+
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
38
|
+
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
39
|
+
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
40
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
|
|
41
|
+
:param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
42
|
+
:param pulumi.Input[int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
43
|
+
:param pulumi.Input[int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
45
44
|
"""
|
|
46
45
|
if credit_quota is not None:
|
|
47
46
|
pulumi.set(__self__, "credit_quota", credit_quota)
|
|
@@ -55,32 +54,18 @@ class ResourceMonitorArgs:
|
|
|
55
54
|
pulumi.set(__self__, "notify_triggers", notify_triggers)
|
|
56
55
|
if notify_users is not None:
|
|
57
56
|
pulumi.set(__self__, "notify_users", notify_users)
|
|
58
|
-
if set_for_account is not None:
|
|
59
|
-
pulumi.set(__self__, "set_for_account", set_for_account)
|
|
60
57
|
if start_timestamp is not None:
|
|
61
58
|
pulumi.set(__self__, "start_timestamp", start_timestamp)
|
|
62
59
|
if suspend_immediate_trigger is not None:
|
|
63
60
|
pulumi.set(__self__, "suspend_immediate_trigger", suspend_immediate_trigger)
|
|
64
|
-
if suspend_immediate_triggers is not None:
|
|
65
|
-
warnings.warn("""Use suspend_immediate_trigger instead""", DeprecationWarning)
|
|
66
|
-
pulumi.log.warn("""suspend_immediate_triggers is deprecated: Use suspend_immediate_trigger instead""")
|
|
67
|
-
if suspend_immediate_triggers is not None:
|
|
68
|
-
pulumi.set(__self__, "suspend_immediate_triggers", suspend_immediate_triggers)
|
|
69
61
|
if suspend_trigger is not None:
|
|
70
62
|
pulumi.set(__self__, "suspend_trigger", suspend_trigger)
|
|
71
|
-
if suspend_triggers is not None:
|
|
72
|
-
warnings.warn("""Use suspend_trigger instead""", DeprecationWarning)
|
|
73
|
-
pulumi.log.warn("""suspend_triggers is deprecated: Use suspend_trigger instead""")
|
|
74
|
-
if suspend_triggers is not None:
|
|
75
|
-
pulumi.set(__self__, "suspend_triggers", suspend_triggers)
|
|
76
|
-
if warehouses is not None:
|
|
77
|
-
pulumi.set(__self__, "warehouses", warehouses)
|
|
78
63
|
|
|
79
64
|
@property
|
|
80
65
|
@pulumi.getter(name="creditQuota")
|
|
81
66
|
def credit_quota(self) -> Optional[pulumi.Input[int]]:
|
|
82
67
|
"""
|
|
83
|
-
The number of credits allocated
|
|
68
|
+
The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
84
69
|
"""
|
|
85
70
|
return pulumi.get(self, "credit_quota")
|
|
86
71
|
|
|
@@ -104,7 +89,7 @@ class ResourceMonitorArgs:
|
|
|
104
89
|
@pulumi.getter
|
|
105
90
|
def frequency(self) -> Optional[pulumi.Input[str]]:
|
|
106
91
|
"""
|
|
107
|
-
The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set
|
|
92
|
+
The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
108
93
|
"""
|
|
109
94
|
return pulumi.get(self, "frequency")
|
|
110
95
|
|
|
@@ -116,7 +101,7 @@ class ResourceMonitorArgs:
|
|
|
116
101
|
@pulumi.getter
|
|
117
102
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
118
103
|
"""
|
|
119
|
-
Identifier for the resource monitor; must be unique for your account.
|
|
104
|
+
Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
120
105
|
"""
|
|
121
106
|
return pulumi.get(self, "name")
|
|
122
107
|
|
|
@@ -128,7 +113,7 @@ class ResourceMonitorArgs:
|
|
|
128
113
|
@pulumi.getter(name="notifyTriggers")
|
|
129
114
|
def notify_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
130
115
|
"""
|
|
131
|
-
|
|
116
|
+
Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
132
117
|
"""
|
|
133
118
|
return pulumi.get(self, "notify_triggers")
|
|
134
119
|
|
|
@@ -140,7 +125,7 @@ class ResourceMonitorArgs:
|
|
|
140
125
|
@pulumi.getter(name="notifyUsers")
|
|
141
126
|
def notify_users(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
142
127
|
"""
|
|
143
|
-
Specifies the list of users to receive email notifications on resource monitors.
|
|
128
|
+
Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
|
|
144
129
|
"""
|
|
145
130
|
return pulumi.get(self, "notify_users")
|
|
146
131
|
|
|
@@ -148,23 +133,11 @@ class ResourceMonitorArgs:
|
|
|
148
133
|
def notify_users(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
149
134
|
pulumi.set(self, "notify_users", value)
|
|
150
135
|
|
|
151
|
-
@property
|
|
152
|
-
@pulumi.getter(name="setForAccount")
|
|
153
|
-
def set_for_account(self) -> Optional[pulumi.Input[bool]]:
|
|
154
|
-
"""
|
|
155
|
-
Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
|
|
156
|
-
"""
|
|
157
|
-
return pulumi.get(self, "set_for_account")
|
|
158
|
-
|
|
159
|
-
@set_for_account.setter
|
|
160
|
-
def set_for_account(self, value: Optional[pulumi.Input[bool]]):
|
|
161
|
-
pulumi.set(self, "set_for_account", value)
|
|
162
|
-
|
|
163
136
|
@property
|
|
164
137
|
@pulumi.getter(name="startTimestamp")
|
|
165
138
|
def start_timestamp(self) -> Optional[pulumi.Input[str]]:
|
|
166
139
|
"""
|
|
167
|
-
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
|
|
140
|
+
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
168
141
|
"""
|
|
169
142
|
return pulumi.get(self, "start_timestamp")
|
|
170
143
|
|
|
@@ -176,7 +149,7 @@ class ResourceMonitorArgs:
|
|
|
176
149
|
@pulumi.getter(name="suspendImmediateTrigger")
|
|
177
150
|
def suspend_immediate_trigger(self) -> Optional[pulumi.Input[int]]:
|
|
178
151
|
"""
|
|
179
|
-
|
|
152
|
+
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
180
153
|
"""
|
|
181
154
|
return pulumi.get(self, "suspend_immediate_trigger")
|
|
182
155
|
|
|
@@ -184,24 +157,11 @@ class ResourceMonitorArgs:
|
|
|
184
157
|
def suspend_immediate_trigger(self, value: Optional[pulumi.Input[int]]):
|
|
185
158
|
pulumi.set(self, "suspend_immediate_trigger", value)
|
|
186
159
|
|
|
187
|
-
@property
|
|
188
|
-
@pulumi.getter(name="suspendImmediateTriggers")
|
|
189
|
-
@_utilities.deprecated("""Use suspend_immediate_trigger instead""")
|
|
190
|
-
def suspend_immediate_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
191
|
-
"""
|
|
192
|
-
A list of percentage thresholds at which to suspend all warehouses.
|
|
193
|
-
"""
|
|
194
|
-
return pulumi.get(self, "suspend_immediate_triggers")
|
|
195
|
-
|
|
196
|
-
@suspend_immediate_triggers.setter
|
|
197
|
-
def suspend_immediate_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
|
198
|
-
pulumi.set(self, "suspend_immediate_triggers", value)
|
|
199
|
-
|
|
200
160
|
@property
|
|
201
161
|
@pulumi.getter(name="suspendTrigger")
|
|
202
162
|
def suspend_trigger(self) -> Optional[pulumi.Input[int]]:
|
|
203
163
|
"""
|
|
204
|
-
|
|
164
|
+
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
205
165
|
"""
|
|
206
166
|
return pulumi.get(self, "suspend_trigger")
|
|
207
167
|
|
|
@@ -209,31 +169,6 @@ class ResourceMonitorArgs:
|
|
|
209
169
|
def suspend_trigger(self, value: Optional[pulumi.Input[int]]):
|
|
210
170
|
pulumi.set(self, "suspend_trigger", value)
|
|
211
171
|
|
|
212
|
-
@property
|
|
213
|
-
@pulumi.getter(name="suspendTriggers")
|
|
214
|
-
@_utilities.deprecated("""Use suspend_trigger instead""")
|
|
215
|
-
def suspend_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
216
|
-
"""
|
|
217
|
-
A list of percentage thresholds at which to suspend all warehouses.
|
|
218
|
-
"""
|
|
219
|
-
return pulumi.get(self, "suspend_triggers")
|
|
220
|
-
|
|
221
|
-
@suspend_triggers.setter
|
|
222
|
-
def suspend_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
|
223
|
-
pulumi.set(self, "suspend_triggers", value)
|
|
224
|
-
|
|
225
|
-
@property
|
|
226
|
-
@pulumi.getter
|
|
227
|
-
def warehouses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
228
|
-
"""
|
|
229
|
-
A list of warehouses to apply the resource monitor to.
|
|
230
|
-
"""
|
|
231
|
-
return pulumi.get(self, "warehouses")
|
|
232
|
-
|
|
233
|
-
@warehouses.setter
|
|
234
|
-
def warehouses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
235
|
-
pulumi.set(self, "warehouses", value)
|
|
236
|
-
|
|
237
172
|
|
|
238
173
|
@pulumi.input_type
|
|
239
174
|
class _ResourceMonitorState:
|
|
@@ -245,29 +180,23 @@ class _ResourceMonitorState:
|
|
|
245
180
|
name: Optional[pulumi.Input[str]] = None,
|
|
246
181
|
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
247
182
|
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
248
|
-
|
|
183
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceMonitorShowOutputArgs']]]] = None,
|
|
249
184
|
start_timestamp: Optional[pulumi.Input[str]] = None,
|
|
250
185
|
suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
|
|
251
|
-
|
|
252
|
-
suspend_trigger: Optional[pulumi.Input[int]] = None,
|
|
253
|
-
suspend_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
254
|
-
warehouses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
186
|
+
suspend_trigger: Optional[pulumi.Input[int]] = None):
|
|
255
187
|
"""
|
|
256
188
|
Input properties used for looking up and filtering ResourceMonitor resources.
|
|
257
|
-
:param pulumi.Input[int] credit_quota: The number of credits allocated
|
|
189
|
+
:param pulumi.Input[int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
258
190
|
:param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
259
|
-
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set
|
|
191
|
+
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
260
192
|
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
261
|
-
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account.
|
|
262
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers:
|
|
263
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users to receive email notifications on resource monitors.
|
|
264
|
-
:param pulumi.Input[
|
|
265
|
-
:param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
|
|
266
|
-
:param pulumi.Input[int] suspend_immediate_trigger:
|
|
267
|
-
:param pulumi.Input[
|
|
268
|
-
:param pulumi.Input[int] suspend_trigger: The number that represents the percentage threshold at which to suspend all warehouses.
|
|
269
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] suspend_triggers: A list of percentage thresholds at which to suspend all warehouses.
|
|
270
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] warehouses: A list of warehouses to apply the resource monitor to.
|
|
193
|
+
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
194
|
+
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
195
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
|
|
196
|
+
:param pulumi.Input[Sequence[pulumi.Input['ResourceMonitorShowOutputArgs']]] show_outputs: Outputs the result of `SHOW RESOURCE MONITORS` for the given resource monitor.
|
|
197
|
+
:param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
198
|
+
:param pulumi.Input[int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
199
|
+
:param pulumi.Input[int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
271
200
|
"""
|
|
272
201
|
if credit_quota is not None:
|
|
273
202
|
pulumi.set(__self__, "credit_quota", credit_quota)
|
|
@@ -283,32 +212,20 @@ class _ResourceMonitorState:
|
|
|
283
212
|
pulumi.set(__self__, "notify_triggers", notify_triggers)
|
|
284
213
|
if notify_users is not None:
|
|
285
214
|
pulumi.set(__self__, "notify_users", notify_users)
|
|
286
|
-
if
|
|
287
|
-
pulumi.set(__self__, "
|
|
215
|
+
if show_outputs is not None:
|
|
216
|
+
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
288
217
|
if start_timestamp is not None:
|
|
289
218
|
pulumi.set(__self__, "start_timestamp", start_timestamp)
|
|
290
219
|
if suspend_immediate_trigger is not None:
|
|
291
220
|
pulumi.set(__self__, "suspend_immediate_trigger", suspend_immediate_trigger)
|
|
292
|
-
if suspend_immediate_triggers is not None:
|
|
293
|
-
warnings.warn("""Use suspend_immediate_trigger instead""", DeprecationWarning)
|
|
294
|
-
pulumi.log.warn("""suspend_immediate_triggers is deprecated: Use suspend_immediate_trigger instead""")
|
|
295
|
-
if suspend_immediate_triggers is not None:
|
|
296
|
-
pulumi.set(__self__, "suspend_immediate_triggers", suspend_immediate_triggers)
|
|
297
221
|
if suspend_trigger is not None:
|
|
298
222
|
pulumi.set(__self__, "suspend_trigger", suspend_trigger)
|
|
299
|
-
if suspend_triggers is not None:
|
|
300
|
-
warnings.warn("""Use suspend_trigger instead""", DeprecationWarning)
|
|
301
|
-
pulumi.log.warn("""suspend_triggers is deprecated: Use suspend_trigger instead""")
|
|
302
|
-
if suspend_triggers is not None:
|
|
303
|
-
pulumi.set(__self__, "suspend_triggers", suspend_triggers)
|
|
304
|
-
if warehouses is not None:
|
|
305
|
-
pulumi.set(__self__, "warehouses", warehouses)
|
|
306
223
|
|
|
307
224
|
@property
|
|
308
225
|
@pulumi.getter(name="creditQuota")
|
|
309
226
|
def credit_quota(self) -> Optional[pulumi.Input[int]]:
|
|
310
227
|
"""
|
|
311
|
-
The number of credits allocated
|
|
228
|
+
The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
312
229
|
"""
|
|
313
230
|
return pulumi.get(self, "credit_quota")
|
|
314
231
|
|
|
@@ -332,7 +249,7 @@ class _ResourceMonitorState:
|
|
|
332
249
|
@pulumi.getter
|
|
333
250
|
def frequency(self) -> Optional[pulumi.Input[str]]:
|
|
334
251
|
"""
|
|
335
|
-
The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set
|
|
252
|
+
The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
336
253
|
"""
|
|
337
254
|
return pulumi.get(self, "frequency")
|
|
338
255
|
|
|
@@ -356,7 +273,7 @@ class _ResourceMonitorState:
|
|
|
356
273
|
@pulumi.getter
|
|
357
274
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
358
275
|
"""
|
|
359
|
-
Identifier for the resource monitor; must be unique for your account.
|
|
276
|
+
Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
360
277
|
"""
|
|
361
278
|
return pulumi.get(self, "name")
|
|
362
279
|
|
|
@@ -368,7 +285,7 @@ class _ResourceMonitorState:
|
|
|
368
285
|
@pulumi.getter(name="notifyTriggers")
|
|
369
286
|
def notify_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
370
287
|
"""
|
|
371
|
-
|
|
288
|
+
Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
372
289
|
"""
|
|
373
290
|
return pulumi.get(self, "notify_triggers")
|
|
374
291
|
|
|
@@ -380,7 +297,7 @@ class _ResourceMonitorState:
|
|
|
380
297
|
@pulumi.getter(name="notifyUsers")
|
|
381
298
|
def notify_users(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
382
299
|
"""
|
|
383
|
-
Specifies the list of users to receive email notifications on resource monitors.
|
|
300
|
+
Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
|
|
384
301
|
"""
|
|
385
302
|
return pulumi.get(self, "notify_users")
|
|
386
303
|
|
|
@@ -389,22 +306,22 @@ class _ResourceMonitorState:
|
|
|
389
306
|
pulumi.set(self, "notify_users", value)
|
|
390
307
|
|
|
391
308
|
@property
|
|
392
|
-
@pulumi.getter(name="
|
|
393
|
-
def
|
|
309
|
+
@pulumi.getter(name="showOutputs")
|
|
310
|
+
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ResourceMonitorShowOutputArgs']]]]:
|
|
394
311
|
"""
|
|
395
|
-
|
|
312
|
+
Outputs the result of `SHOW RESOURCE MONITORS` for the given resource monitor.
|
|
396
313
|
"""
|
|
397
|
-
return pulumi.get(self, "
|
|
314
|
+
return pulumi.get(self, "show_outputs")
|
|
398
315
|
|
|
399
|
-
@
|
|
400
|
-
def
|
|
401
|
-
pulumi.set(self, "
|
|
316
|
+
@show_outputs.setter
|
|
317
|
+
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceMonitorShowOutputArgs']]]]):
|
|
318
|
+
pulumi.set(self, "show_outputs", value)
|
|
402
319
|
|
|
403
320
|
@property
|
|
404
321
|
@pulumi.getter(name="startTimestamp")
|
|
405
322
|
def start_timestamp(self) -> Optional[pulumi.Input[str]]:
|
|
406
323
|
"""
|
|
407
|
-
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
|
|
324
|
+
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
408
325
|
"""
|
|
409
326
|
return pulumi.get(self, "start_timestamp")
|
|
410
327
|
|
|
@@ -416,7 +333,7 @@ class _ResourceMonitorState:
|
|
|
416
333
|
@pulumi.getter(name="suspendImmediateTrigger")
|
|
417
334
|
def suspend_immediate_trigger(self) -> Optional[pulumi.Input[int]]:
|
|
418
335
|
"""
|
|
419
|
-
|
|
336
|
+
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
420
337
|
"""
|
|
421
338
|
return pulumi.get(self, "suspend_immediate_trigger")
|
|
422
339
|
|
|
@@ -424,24 +341,11 @@ class _ResourceMonitorState:
|
|
|
424
341
|
def suspend_immediate_trigger(self, value: Optional[pulumi.Input[int]]):
|
|
425
342
|
pulumi.set(self, "suspend_immediate_trigger", value)
|
|
426
343
|
|
|
427
|
-
@property
|
|
428
|
-
@pulumi.getter(name="suspendImmediateTriggers")
|
|
429
|
-
@_utilities.deprecated("""Use suspend_immediate_trigger instead""")
|
|
430
|
-
def suspend_immediate_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
431
|
-
"""
|
|
432
|
-
A list of percentage thresholds at which to suspend all warehouses.
|
|
433
|
-
"""
|
|
434
|
-
return pulumi.get(self, "suspend_immediate_triggers")
|
|
435
|
-
|
|
436
|
-
@suspend_immediate_triggers.setter
|
|
437
|
-
def suspend_immediate_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
|
438
|
-
pulumi.set(self, "suspend_immediate_triggers", value)
|
|
439
|
-
|
|
440
344
|
@property
|
|
441
345
|
@pulumi.getter(name="suspendTrigger")
|
|
442
346
|
def suspend_trigger(self) -> Optional[pulumi.Input[int]]:
|
|
443
347
|
"""
|
|
444
|
-
|
|
348
|
+
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
445
349
|
"""
|
|
446
350
|
return pulumi.get(self, "suspend_trigger")
|
|
447
351
|
|
|
@@ -449,31 +353,6 @@ class _ResourceMonitorState:
|
|
|
449
353
|
def suspend_trigger(self, value: Optional[pulumi.Input[int]]):
|
|
450
354
|
pulumi.set(self, "suspend_trigger", value)
|
|
451
355
|
|
|
452
|
-
@property
|
|
453
|
-
@pulumi.getter(name="suspendTriggers")
|
|
454
|
-
@_utilities.deprecated("""Use suspend_trigger instead""")
|
|
455
|
-
def suspend_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
456
|
-
"""
|
|
457
|
-
A list of percentage thresholds at which to suspend all warehouses.
|
|
458
|
-
"""
|
|
459
|
-
return pulumi.get(self, "suspend_triggers")
|
|
460
|
-
|
|
461
|
-
@suspend_triggers.setter
|
|
462
|
-
def suspend_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
|
463
|
-
pulumi.set(self, "suspend_triggers", value)
|
|
464
|
-
|
|
465
|
-
@property
|
|
466
|
-
@pulumi.getter
|
|
467
|
-
def warehouses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
468
|
-
"""
|
|
469
|
-
A list of warehouses to apply the resource monitor to.
|
|
470
|
-
"""
|
|
471
|
-
return pulumi.get(self, "warehouses")
|
|
472
|
-
|
|
473
|
-
@warehouses.setter
|
|
474
|
-
def warehouses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
475
|
-
pulumi.set(self, "warehouses", value)
|
|
476
|
-
|
|
477
356
|
|
|
478
357
|
class ResourceMonitor(pulumi.CustomResource):
|
|
479
358
|
@overload
|
|
@@ -486,13 +365,9 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
486
365
|
name: Optional[pulumi.Input[str]] = None,
|
|
487
366
|
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
488
367
|
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
489
|
-
set_for_account: Optional[pulumi.Input[bool]] = None,
|
|
490
368
|
start_timestamp: Optional[pulumi.Input[str]] = None,
|
|
491
369
|
suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
|
|
492
|
-
suspend_immediate_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
493
370
|
suspend_trigger: Optional[pulumi.Input[int]] = None,
|
|
494
|
-
suspend_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
495
|
-
warehouses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
496
371
|
__props__=None):
|
|
497
372
|
"""
|
|
498
373
|
## Import
|
|
@@ -505,19 +380,15 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
505
380
|
|
|
506
381
|
:param str resource_name: The name of the resource.
|
|
507
382
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
508
|
-
:param pulumi.Input[int] credit_quota: The number of credits allocated
|
|
383
|
+
:param pulumi.Input[int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
509
384
|
:param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
510
|
-
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set
|
|
511
|
-
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account.
|
|
512
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers:
|
|
513
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users to receive email notifications on resource monitors.
|
|
514
|
-
:param pulumi.Input[
|
|
515
|
-
:param pulumi.Input[
|
|
516
|
-
:param pulumi.Input[int]
|
|
517
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] suspend_immediate_triggers: A list of percentage thresholds at which to suspend all warehouses.
|
|
518
|
-
:param pulumi.Input[int] suspend_trigger: The number that represents the percentage threshold at which to suspend all warehouses.
|
|
519
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] suspend_triggers: A list of percentage thresholds at which to suspend all warehouses.
|
|
520
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] warehouses: A list of warehouses to apply the resource monitor to.
|
|
385
|
+
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
386
|
+
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
387
|
+
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
388
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
|
|
389
|
+
:param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
390
|
+
:param pulumi.Input[int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
391
|
+
:param pulumi.Input[int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
521
392
|
"""
|
|
522
393
|
...
|
|
523
394
|
@overload
|
|
@@ -555,13 +426,9 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
555
426
|
name: Optional[pulumi.Input[str]] = None,
|
|
556
427
|
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
557
428
|
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
558
|
-
set_for_account: Optional[pulumi.Input[bool]] = None,
|
|
559
429
|
start_timestamp: Optional[pulumi.Input[str]] = None,
|
|
560
430
|
suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
|
|
561
|
-
suspend_immediate_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
562
431
|
suspend_trigger: Optional[pulumi.Input[int]] = None,
|
|
563
|
-
suspend_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
564
|
-
warehouses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
565
432
|
__props__=None):
|
|
566
433
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
567
434
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -577,14 +444,11 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
577
444
|
__props__.__dict__["name"] = name
|
|
578
445
|
__props__.__dict__["notify_triggers"] = notify_triggers
|
|
579
446
|
__props__.__dict__["notify_users"] = notify_users
|
|
580
|
-
__props__.__dict__["set_for_account"] = set_for_account
|
|
581
447
|
__props__.__dict__["start_timestamp"] = start_timestamp
|
|
582
448
|
__props__.__dict__["suspend_immediate_trigger"] = suspend_immediate_trigger
|
|
583
|
-
__props__.__dict__["suspend_immediate_triggers"] = suspend_immediate_triggers
|
|
584
449
|
__props__.__dict__["suspend_trigger"] = suspend_trigger
|
|
585
|
-
__props__.__dict__["suspend_triggers"] = suspend_triggers
|
|
586
|
-
__props__.__dict__["warehouses"] = warehouses
|
|
587
450
|
__props__.__dict__["fully_qualified_name"] = None
|
|
451
|
+
__props__.__dict__["show_outputs"] = None
|
|
588
452
|
super(ResourceMonitor, __self__).__init__(
|
|
589
453
|
'snowflake:index/resourceMonitor:ResourceMonitor',
|
|
590
454
|
resource_name,
|
|
@@ -602,13 +466,10 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
602
466
|
name: Optional[pulumi.Input[str]] = None,
|
|
603
467
|
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
604
468
|
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
605
|
-
|
|
469
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ResourceMonitorShowOutputArgs', 'ResourceMonitorShowOutputArgsDict']]]]] = None,
|
|
606
470
|
start_timestamp: Optional[pulumi.Input[str]] = None,
|
|
607
471
|
suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
|
|
608
|
-
|
|
609
|
-
suspend_trigger: Optional[pulumi.Input[int]] = None,
|
|
610
|
-
suspend_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
611
|
-
warehouses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'ResourceMonitor':
|
|
472
|
+
suspend_trigger: Optional[pulumi.Input[int]] = None) -> 'ResourceMonitor':
|
|
612
473
|
"""
|
|
613
474
|
Get an existing ResourceMonitor resource's state with the given name, id, and optional extra
|
|
614
475
|
properties used to qualify the lookup.
|
|
@@ -616,20 +477,17 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
616
477
|
:param str resource_name: The unique name of the resulting resource.
|
|
617
478
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
618
479
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
619
|
-
:param pulumi.Input[int] credit_quota: The number of credits allocated
|
|
480
|
+
:param pulumi.Input[int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
620
481
|
:param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
621
|
-
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set
|
|
482
|
+
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
622
483
|
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
623
|
-
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account.
|
|
624
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers:
|
|
625
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users to receive email notifications on resource monitors.
|
|
626
|
-
:param pulumi.Input[
|
|
627
|
-
:param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
|
|
628
|
-
:param pulumi.Input[int] suspend_immediate_trigger:
|
|
629
|
-
:param pulumi.Input[
|
|
630
|
-
:param pulumi.Input[int] suspend_trigger: The number that represents the percentage threshold at which to suspend all warehouses.
|
|
631
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] suspend_triggers: A list of percentage thresholds at which to suspend all warehouses.
|
|
632
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] warehouses: A list of warehouses to apply the resource monitor to.
|
|
484
|
+
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
485
|
+
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
486
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
|
|
487
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ResourceMonitorShowOutputArgs', 'ResourceMonitorShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW RESOURCE MONITORS` for the given resource monitor.
|
|
488
|
+
:param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
489
|
+
:param pulumi.Input[int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
490
|
+
:param pulumi.Input[int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
633
491
|
"""
|
|
634
492
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
635
493
|
|
|
@@ -642,20 +500,17 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
642
500
|
__props__.__dict__["name"] = name
|
|
643
501
|
__props__.__dict__["notify_triggers"] = notify_triggers
|
|
644
502
|
__props__.__dict__["notify_users"] = notify_users
|
|
645
|
-
__props__.__dict__["
|
|
503
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
646
504
|
__props__.__dict__["start_timestamp"] = start_timestamp
|
|
647
505
|
__props__.__dict__["suspend_immediate_trigger"] = suspend_immediate_trigger
|
|
648
|
-
__props__.__dict__["suspend_immediate_triggers"] = suspend_immediate_triggers
|
|
649
506
|
__props__.__dict__["suspend_trigger"] = suspend_trigger
|
|
650
|
-
__props__.__dict__["suspend_triggers"] = suspend_triggers
|
|
651
|
-
__props__.__dict__["warehouses"] = warehouses
|
|
652
507
|
return ResourceMonitor(resource_name, opts=opts, __props__=__props__)
|
|
653
508
|
|
|
654
509
|
@property
|
|
655
510
|
@pulumi.getter(name="creditQuota")
|
|
656
|
-
def credit_quota(self) -> pulumi.Output[int]:
|
|
511
|
+
def credit_quota(self) -> pulumi.Output[Optional[int]]:
|
|
657
512
|
"""
|
|
658
|
-
The number of credits allocated
|
|
513
|
+
The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
659
514
|
"""
|
|
660
515
|
return pulumi.get(self, "credit_quota")
|
|
661
516
|
|
|
@@ -669,9 +524,9 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
669
524
|
|
|
670
525
|
@property
|
|
671
526
|
@pulumi.getter
|
|
672
|
-
def frequency(self) -> pulumi.Output[str]:
|
|
527
|
+
def frequency(self) -> pulumi.Output[Optional[str]]:
|
|
673
528
|
"""
|
|
674
|
-
The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set
|
|
529
|
+
The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
675
530
|
"""
|
|
676
531
|
return pulumi.get(self, "frequency")
|
|
677
532
|
|
|
@@ -687,7 +542,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
687
542
|
@pulumi.getter
|
|
688
543
|
def name(self) -> pulumi.Output[str]:
|
|
689
544
|
"""
|
|
690
|
-
Identifier for the resource monitor; must be unique for your account.
|
|
545
|
+
Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
691
546
|
"""
|
|
692
547
|
return pulumi.get(self, "name")
|
|
693
548
|
|
|
@@ -695,7 +550,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
695
550
|
@pulumi.getter(name="notifyTriggers")
|
|
696
551
|
def notify_triggers(self) -> pulumi.Output[Optional[Sequence[int]]]:
|
|
697
552
|
"""
|
|
698
|
-
|
|
553
|
+
Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
699
554
|
"""
|
|
700
555
|
return pulumi.get(self, "notify_triggers")
|
|
701
556
|
|
|
@@ -703,23 +558,23 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
703
558
|
@pulumi.getter(name="notifyUsers")
|
|
704
559
|
def notify_users(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
705
560
|
"""
|
|
706
|
-
Specifies the list of users to receive email notifications on resource monitors.
|
|
561
|
+
Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
|
|
707
562
|
"""
|
|
708
563
|
return pulumi.get(self, "notify_users")
|
|
709
564
|
|
|
710
565
|
@property
|
|
711
|
-
@pulumi.getter(name="
|
|
712
|
-
def
|
|
566
|
+
@pulumi.getter(name="showOutputs")
|
|
567
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.ResourceMonitorShowOutput']]:
|
|
713
568
|
"""
|
|
714
|
-
|
|
569
|
+
Outputs the result of `SHOW RESOURCE MONITORS` for the given resource monitor.
|
|
715
570
|
"""
|
|
716
|
-
return pulumi.get(self, "
|
|
571
|
+
return pulumi.get(self, "show_outputs")
|
|
717
572
|
|
|
718
573
|
@property
|
|
719
574
|
@pulumi.getter(name="startTimestamp")
|
|
720
|
-
def start_timestamp(self) -> pulumi.Output[str]:
|
|
575
|
+
def start_timestamp(self) -> pulumi.Output[Optional[str]]:
|
|
721
576
|
"""
|
|
722
|
-
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
|
|
577
|
+
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
723
578
|
"""
|
|
724
579
|
return pulumi.get(self, "start_timestamp")
|
|
725
580
|
|
|
@@ -727,41 +582,15 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
727
582
|
@pulumi.getter(name="suspendImmediateTrigger")
|
|
728
583
|
def suspend_immediate_trigger(self) -> pulumi.Output[Optional[int]]:
|
|
729
584
|
"""
|
|
730
|
-
|
|
585
|
+
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
731
586
|
"""
|
|
732
587
|
return pulumi.get(self, "suspend_immediate_trigger")
|
|
733
588
|
|
|
734
|
-
@property
|
|
735
|
-
@pulumi.getter(name="suspendImmediateTriggers")
|
|
736
|
-
@_utilities.deprecated("""Use suspend_immediate_trigger instead""")
|
|
737
|
-
def suspend_immediate_triggers(self) -> pulumi.Output[Optional[Sequence[int]]]:
|
|
738
|
-
"""
|
|
739
|
-
A list of percentage thresholds at which to suspend all warehouses.
|
|
740
|
-
"""
|
|
741
|
-
return pulumi.get(self, "suspend_immediate_triggers")
|
|
742
|
-
|
|
743
589
|
@property
|
|
744
590
|
@pulumi.getter(name="suspendTrigger")
|
|
745
591
|
def suspend_trigger(self) -> pulumi.Output[Optional[int]]:
|
|
746
592
|
"""
|
|
747
|
-
|
|
593
|
+
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
748
594
|
"""
|
|
749
595
|
return pulumi.get(self, "suspend_trigger")
|
|
750
596
|
|
|
751
|
-
@property
|
|
752
|
-
@pulumi.getter(name="suspendTriggers")
|
|
753
|
-
@_utilities.deprecated("""Use suspend_trigger instead""")
|
|
754
|
-
def suspend_triggers(self) -> pulumi.Output[Optional[Sequence[int]]]:
|
|
755
|
-
"""
|
|
756
|
-
A list of percentage thresholds at which to suspend all warehouses.
|
|
757
|
-
"""
|
|
758
|
-
return pulumi.get(self, "suspend_triggers")
|
|
759
|
-
|
|
760
|
-
@property
|
|
761
|
-
@pulumi.getter
|
|
762
|
-
def warehouses(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
763
|
-
"""
|
|
764
|
-
A list of warehouses to apply the resource monitor to.
|
|
765
|
-
"""
|
|
766
|
-
return pulumi.get(self, "warehouses")
|
|
767
|
-
|