pulumi-snowflake 0.59.0__py3-none-any.whl → 0.59.0a1726294094__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.

@@ -8,8 +8,6 @@ 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 *
13
11
 
14
12
  __all__ = ['ResourceMonitorArgs', 'ResourceMonitor']
15
13
 
@@ -22,20 +20,28 @@ class ResourceMonitorArgs:
22
20
  name: Optional[pulumi.Input[str]] = None,
23
21
  notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
24
22
  notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
23
+ set_for_account: Optional[pulumi.Input[bool]] = None,
25
24
  start_timestamp: Optional[pulumi.Input[str]] = None,
26
25
  suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
27
- suspend_trigger: Optional[pulumi.Input[int]] = None):
26
+ suspend_immediate_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
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):
28
30
  """
29
31
  The set of arguments for constructing a ResourceMonitor resource.
30
- :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.
32
+ :param pulumi.Input[int] credit_quota: The number of credits allocated monthly to the resource monitor.
31
33
  :param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
32
- :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.
33
- :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: `|`, `.`, `(`, `)`, `"`
34
- :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.
35
- :param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
36
- :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.
37
- :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.
38
- :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.
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 START_TIMESTAMP.
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: A list of percentage thresholds at which to send an alert to subscribed users.
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[bool] set_for_account: Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
39
+ :param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
40
+ :param pulumi.Input[int] suspend_immediate_trigger: The number that represents the percentage threshold at which to immediately suspend all warehouses.
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.
39
45
  """
40
46
  if credit_quota is not None:
41
47
  pulumi.set(__self__, "credit_quota", credit_quota)
@@ -49,18 +55,32 @@ class ResourceMonitorArgs:
49
55
  pulumi.set(__self__, "notify_triggers", notify_triggers)
50
56
  if notify_users is not None:
51
57
  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)
52
60
  if start_timestamp is not None:
53
61
  pulumi.set(__self__, "start_timestamp", start_timestamp)
54
62
  if suspend_immediate_trigger is not None:
55
63
  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)
56
69
  if suspend_trigger is not None:
57
70
  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)
58
78
 
59
79
  @property
60
80
  @pulumi.getter(name="creditQuota")
61
81
  def credit_quota(self) -> Optional[pulumi.Input[int]]:
62
82
  """
63
- 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.
83
+ The number of credits allocated monthly to the resource monitor.
64
84
  """
65
85
  return pulumi.get(self, "credit_quota")
66
86
 
@@ -84,7 +104,7 @@ class ResourceMonitorArgs:
84
104
  @pulumi.getter
85
105
  def frequency(self) -> Optional[pulumi.Input[str]]:
86
106
  """
87
- 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.
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 START_TIMESTAMP.
88
108
  """
89
109
  return pulumi.get(self, "frequency")
90
110
 
@@ -96,7 +116,7 @@ class ResourceMonitorArgs:
96
116
  @pulumi.getter
97
117
  def name(self) -> Optional[pulumi.Input[str]]:
98
118
  """
99
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
119
+ Identifier for the resource monitor; must be unique for your account.
100
120
  """
101
121
  return pulumi.get(self, "name")
102
122
 
@@ -108,7 +128,7 @@ class ResourceMonitorArgs:
108
128
  @pulumi.getter(name="notifyTriggers")
109
129
  def notify_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
110
130
  """
111
- 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.
131
+ A list of percentage thresholds at which to send an alert to subscribed users.
112
132
  """
113
133
  return pulumi.get(self, "notify_triggers")
114
134
 
@@ -120,7 +140,7 @@ class ResourceMonitorArgs:
120
140
  @pulumi.getter(name="notifyUsers")
121
141
  def notify_users(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
122
142
  """
123
- Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
143
+ Specifies the list of users to receive email notifications on resource monitors.
124
144
  """
125
145
  return pulumi.get(self, "notify_users")
126
146
 
@@ -128,11 +148,23 @@ class ResourceMonitorArgs:
128
148
  def notify_users(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
129
149
  pulumi.set(self, "notify_users", value)
130
150
 
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
+
131
163
  @property
132
164
  @pulumi.getter(name="startTimestamp")
133
165
  def start_timestamp(self) -> Optional[pulumi.Input[str]]:
134
166
  """
135
- 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.
167
+ The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
136
168
  """
137
169
  return pulumi.get(self, "start_timestamp")
138
170
 
@@ -144,7 +176,7 @@ class ResourceMonitorArgs:
144
176
  @pulumi.getter(name="suspendImmediateTrigger")
145
177
  def suspend_immediate_trigger(self) -> Optional[pulumi.Input[int]]:
146
178
  """
147
- 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.
179
+ The number that represents the percentage threshold at which to immediately suspend all warehouses.
148
180
  """
149
181
  return pulumi.get(self, "suspend_immediate_trigger")
150
182
 
@@ -152,11 +184,24 @@ class ResourceMonitorArgs:
152
184
  def suspend_immediate_trigger(self, value: Optional[pulumi.Input[int]]):
153
185
  pulumi.set(self, "suspend_immediate_trigger", value)
154
186
 
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
+
155
200
  @property
156
201
  @pulumi.getter(name="suspendTrigger")
157
202
  def suspend_trigger(self) -> Optional[pulumi.Input[int]]:
158
203
  """
159
- 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.
204
+ The number that represents the percentage threshold at which to suspend all warehouses.
160
205
  """
161
206
  return pulumi.get(self, "suspend_trigger")
162
207
 
@@ -164,6 +209,31 @@ class ResourceMonitorArgs:
164
209
  def suspend_trigger(self, value: Optional[pulumi.Input[int]]):
165
210
  pulumi.set(self, "suspend_trigger", value)
166
211
 
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
+
167
237
 
168
238
  @pulumi.input_type
169
239
  class _ResourceMonitorState:
@@ -175,23 +245,29 @@ class _ResourceMonitorState:
175
245
  name: Optional[pulumi.Input[str]] = None,
176
246
  notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
177
247
  notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
178
- show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceMonitorShowOutputArgs']]]] = None,
248
+ set_for_account: Optional[pulumi.Input[bool]] = None,
179
249
  start_timestamp: Optional[pulumi.Input[str]] = None,
180
250
  suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
181
- suspend_trigger: Optional[pulumi.Input[int]] = None):
251
+ suspend_immediate_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
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):
182
255
  """
183
256
  Input properties used for looking up and filtering ResourceMonitor resources.
184
- :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.
257
+ :param pulumi.Input[int] credit_quota: The number of credits allocated monthly to the resource monitor.
185
258
  :param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
186
- :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.
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 START_TIMESTAMP.
187
260
  :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).
188
- :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: `|`, `.`, `(`, `)`, `"`
189
- :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.
190
- :param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
191
- :param pulumi.Input[Sequence[pulumi.Input['ResourceMonitorShowOutputArgs']]] show_outputs: Outputs the result of `SHOW RESOURCE MONITORS` for the given resource monitor.
192
- :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.
193
- :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.
194
- :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.
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: A list of percentage thresholds at which to send an alert to subscribed users.
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[bool] set_for_account: Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
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: The number that represents the percentage threshold at which to immediately suspend all warehouses.
267
+ :param pulumi.Input[Sequence[pulumi.Input[int]]] suspend_immediate_triggers: A list of percentage thresholds at which to suspend all warehouses.
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.
195
271
  """
196
272
  if credit_quota is not None:
197
273
  pulumi.set(__self__, "credit_quota", credit_quota)
@@ -207,20 +283,32 @@ class _ResourceMonitorState:
207
283
  pulumi.set(__self__, "notify_triggers", notify_triggers)
208
284
  if notify_users is not None:
209
285
  pulumi.set(__self__, "notify_users", notify_users)
210
- if show_outputs is not None:
211
- pulumi.set(__self__, "show_outputs", show_outputs)
286
+ if set_for_account is not None:
287
+ pulumi.set(__self__, "set_for_account", set_for_account)
212
288
  if start_timestamp is not None:
213
289
  pulumi.set(__self__, "start_timestamp", start_timestamp)
214
290
  if suspend_immediate_trigger is not None:
215
291
  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)
216
297
  if suspend_trigger is not None:
217
298
  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)
218
306
 
219
307
  @property
220
308
  @pulumi.getter(name="creditQuota")
221
309
  def credit_quota(self) -> Optional[pulumi.Input[int]]:
222
310
  """
223
- 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.
311
+ The number of credits allocated monthly to the resource monitor.
224
312
  """
225
313
  return pulumi.get(self, "credit_quota")
226
314
 
@@ -244,7 +332,7 @@ class _ResourceMonitorState:
244
332
  @pulumi.getter
245
333
  def frequency(self) -> Optional[pulumi.Input[str]]:
246
334
  """
247
- 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.
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 START_TIMESTAMP.
248
336
  """
249
337
  return pulumi.get(self, "frequency")
250
338
 
@@ -268,7 +356,7 @@ class _ResourceMonitorState:
268
356
  @pulumi.getter
269
357
  def name(self) -> Optional[pulumi.Input[str]]:
270
358
  """
271
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
359
+ Identifier for the resource monitor; must be unique for your account.
272
360
  """
273
361
  return pulumi.get(self, "name")
274
362
 
@@ -280,7 +368,7 @@ class _ResourceMonitorState:
280
368
  @pulumi.getter(name="notifyTriggers")
281
369
  def notify_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
282
370
  """
283
- 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.
371
+ A list of percentage thresholds at which to send an alert to subscribed users.
284
372
  """
285
373
  return pulumi.get(self, "notify_triggers")
286
374
 
@@ -292,7 +380,7 @@ class _ResourceMonitorState:
292
380
  @pulumi.getter(name="notifyUsers")
293
381
  def notify_users(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
294
382
  """
295
- Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
383
+ Specifies the list of users to receive email notifications on resource monitors.
296
384
  """
297
385
  return pulumi.get(self, "notify_users")
298
386
 
@@ -301,22 +389,22 @@ class _ResourceMonitorState:
301
389
  pulumi.set(self, "notify_users", value)
302
390
 
303
391
  @property
304
- @pulumi.getter(name="showOutputs")
305
- def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ResourceMonitorShowOutputArgs']]]]:
392
+ @pulumi.getter(name="setForAccount")
393
+ def set_for_account(self) -> Optional[pulumi.Input[bool]]:
306
394
  """
307
- Outputs the result of `SHOW RESOURCE MONITORS` for the given resource monitor.
395
+ Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
308
396
  """
309
- return pulumi.get(self, "show_outputs")
397
+ return pulumi.get(self, "set_for_account")
310
398
 
311
- @show_outputs.setter
312
- def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceMonitorShowOutputArgs']]]]):
313
- pulumi.set(self, "show_outputs", value)
399
+ @set_for_account.setter
400
+ def set_for_account(self, value: Optional[pulumi.Input[bool]]):
401
+ pulumi.set(self, "set_for_account", value)
314
402
 
315
403
  @property
316
404
  @pulumi.getter(name="startTimestamp")
317
405
  def start_timestamp(self) -> Optional[pulumi.Input[str]]:
318
406
  """
319
- 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.
407
+ The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
320
408
  """
321
409
  return pulumi.get(self, "start_timestamp")
322
410
 
@@ -328,7 +416,7 @@ class _ResourceMonitorState:
328
416
  @pulumi.getter(name="suspendImmediateTrigger")
329
417
  def suspend_immediate_trigger(self) -> Optional[pulumi.Input[int]]:
330
418
  """
331
- 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.
419
+ The number that represents the percentage threshold at which to immediately suspend all warehouses.
332
420
  """
333
421
  return pulumi.get(self, "suspend_immediate_trigger")
334
422
 
@@ -336,11 +424,24 @@ class _ResourceMonitorState:
336
424
  def suspend_immediate_trigger(self, value: Optional[pulumi.Input[int]]):
337
425
  pulumi.set(self, "suspend_immediate_trigger", value)
338
426
 
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
+
339
440
  @property
340
441
  @pulumi.getter(name="suspendTrigger")
341
442
  def suspend_trigger(self) -> Optional[pulumi.Input[int]]:
342
443
  """
343
- 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.
444
+ The number that represents the percentage threshold at which to suspend all warehouses.
344
445
  """
345
446
  return pulumi.get(self, "suspend_trigger")
346
447
 
@@ -348,6 +449,31 @@ class _ResourceMonitorState:
348
449
  def suspend_trigger(self, value: Optional[pulumi.Input[int]]):
349
450
  pulumi.set(self, "suspend_trigger", value)
350
451
 
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
+
351
477
 
352
478
  class ResourceMonitor(pulumi.CustomResource):
353
479
  @overload
@@ -360,9 +486,13 @@ class ResourceMonitor(pulumi.CustomResource):
360
486
  name: Optional[pulumi.Input[str]] = None,
361
487
  notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
362
488
  notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
489
+ set_for_account: Optional[pulumi.Input[bool]] = None,
363
490
  start_timestamp: Optional[pulumi.Input[str]] = None,
364
491
  suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
492
+ suspend_immediate_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
365
493
  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,
366
496
  __props__=None):
367
497
  """
368
498
  ## Import
@@ -375,15 +505,19 @@ class ResourceMonitor(pulumi.CustomResource):
375
505
 
376
506
  :param str resource_name: The name of the resource.
377
507
  :param pulumi.ResourceOptions opts: Options for the resource.
378
- :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.
508
+ :param pulumi.Input[int] credit_quota: The number of credits allocated monthly to the resource monitor.
379
509
  :param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
380
- :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.
381
- :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: `|`, `.`, `(`, `)`, `"`
382
- :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.
383
- :param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
384
- :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.
385
- :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.
386
- :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.
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 START_TIMESTAMP.
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: A list of percentage thresholds at which to send an alert to subscribed users.
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[bool] set_for_account: Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
515
+ :param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
516
+ :param pulumi.Input[int] suspend_immediate_trigger: The number that represents the percentage threshold at which to immediately suspend all warehouses.
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.
387
521
  """
388
522
  ...
389
523
  @overload
@@ -421,9 +555,13 @@ class ResourceMonitor(pulumi.CustomResource):
421
555
  name: Optional[pulumi.Input[str]] = None,
422
556
  notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
423
557
  notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
558
+ set_for_account: Optional[pulumi.Input[bool]] = None,
424
559
  start_timestamp: Optional[pulumi.Input[str]] = None,
425
560
  suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
561
+ suspend_immediate_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
426
562
  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,
427
565
  __props__=None):
428
566
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
429
567
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -439,11 +577,14 @@ class ResourceMonitor(pulumi.CustomResource):
439
577
  __props__.__dict__["name"] = name
440
578
  __props__.__dict__["notify_triggers"] = notify_triggers
441
579
  __props__.__dict__["notify_users"] = notify_users
580
+ __props__.__dict__["set_for_account"] = set_for_account
442
581
  __props__.__dict__["start_timestamp"] = start_timestamp
443
582
  __props__.__dict__["suspend_immediate_trigger"] = suspend_immediate_trigger
583
+ __props__.__dict__["suspend_immediate_triggers"] = suspend_immediate_triggers
444
584
  __props__.__dict__["suspend_trigger"] = suspend_trigger
585
+ __props__.__dict__["suspend_triggers"] = suspend_triggers
586
+ __props__.__dict__["warehouses"] = warehouses
445
587
  __props__.__dict__["fully_qualified_name"] = None
446
- __props__.__dict__["show_outputs"] = None
447
588
  super(ResourceMonitor, __self__).__init__(
448
589
  'snowflake:index/resourceMonitor:ResourceMonitor',
449
590
  resource_name,
@@ -461,10 +602,13 @@ class ResourceMonitor(pulumi.CustomResource):
461
602
  name: Optional[pulumi.Input[str]] = None,
462
603
  notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
463
604
  notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
464
- show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ResourceMonitorShowOutputArgs', 'ResourceMonitorShowOutputArgsDict']]]]] = None,
605
+ set_for_account: Optional[pulumi.Input[bool]] = None,
465
606
  start_timestamp: Optional[pulumi.Input[str]] = None,
466
607
  suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
467
- suspend_trigger: Optional[pulumi.Input[int]] = None) -> 'ResourceMonitor':
608
+ suspend_immediate_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
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':
468
612
  """
469
613
  Get an existing ResourceMonitor resource's state with the given name, id, and optional extra
470
614
  properties used to qualify the lookup.
@@ -472,17 +616,20 @@ class ResourceMonitor(pulumi.CustomResource):
472
616
  :param str resource_name: The unique name of the resulting resource.
473
617
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
474
618
  :param pulumi.ResourceOptions opts: Options for the resource.
475
- :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.
619
+ :param pulumi.Input[int] credit_quota: The number of credits allocated monthly to the resource monitor.
476
620
  :param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
477
- :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.
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 START_TIMESTAMP.
478
622
  :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).
479
- :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: `|`, `.`, `(`, `)`, `"`
480
- :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.
481
- :param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
482
- :param pulumi.Input[Sequence[pulumi.Input[Union['ResourceMonitorShowOutputArgs', 'ResourceMonitorShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW RESOURCE MONITORS` for the given resource monitor.
483
- :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.
484
- :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.
485
- :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.
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: A list of percentage thresholds at which to send an alert to subscribed users.
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[bool] set_for_account: Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
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: The number that represents the percentage threshold at which to immediately suspend all warehouses.
629
+ :param pulumi.Input[Sequence[pulumi.Input[int]]] suspend_immediate_triggers: A list of percentage thresholds at which to suspend all warehouses.
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.
486
633
  """
487
634
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
488
635
 
@@ -495,17 +642,20 @@ class ResourceMonitor(pulumi.CustomResource):
495
642
  __props__.__dict__["name"] = name
496
643
  __props__.__dict__["notify_triggers"] = notify_triggers
497
644
  __props__.__dict__["notify_users"] = notify_users
498
- __props__.__dict__["show_outputs"] = show_outputs
645
+ __props__.__dict__["set_for_account"] = set_for_account
499
646
  __props__.__dict__["start_timestamp"] = start_timestamp
500
647
  __props__.__dict__["suspend_immediate_trigger"] = suspend_immediate_trigger
648
+ __props__.__dict__["suspend_immediate_triggers"] = suspend_immediate_triggers
501
649
  __props__.__dict__["suspend_trigger"] = suspend_trigger
650
+ __props__.__dict__["suspend_triggers"] = suspend_triggers
651
+ __props__.__dict__["warehouses"] = warehouses
502
652
  return ResourceMonitor(resource_name, opts=opts, __props__=__props__)
503
653
 
504
654
  @property
505
655
  @pulumi.getter(name="creditQuota")
506
- def credit_quota(self) -> pulumi.Output[Optional[int]]:
656
+ def credit_quota(self) -> pulumi.Output[int]:
507
657
  """
508
- 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.
658
+ The number of credits allocated monthly to the resource monitor.
509
659
  """
510
660
  return pulumi.get(self, "credit_quota")
511
661
 
@@ -519,9 +669,9 @@ class ResourceMonitor(pulumi.CustomResource):
519
669
 
520
670
  @property
521
671
  @pulumi.getter
522
- def frequency(self) -> pulumi.Output[Optional[str]]:
672
+ def frequency(self) -> pulumi.Output[str]:
523
673
  """
524
- 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.
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 START_TIMESTAMP.
525
675
  """
526
676
  return pulumi.get(self, "frequency")
527
677
 
@@ -537,7 +687,7 @@ class ResourceMonitor(pulumi.CustomResource):
537
687
  @pulumi.getter
538
688
  def name(self) -> pulumi.Output[str]:
539
689
  """
540
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
690
+ Identifier for the resource monitor; must be unique for your account.
541
691
  """
542
692
  return pulumi.get(self, "name")
543
693
 
@@ -545,7 +695,7 @@ class ResourceMonitor(pulumi.CustomResource):
545
695
  @pulumi.getter(name="notifyTriggers")
546
696
  def notify_triggers(self) -> pulumi.Output[Optional[Sequence[int]]]:
547
697
  """
548
- 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.
698
+ A list of percentage thresholds at which to send an alert to subscribed users.
549
699
  """
550
700
  return pulumi.get(self, "notify_triggers")
551
701
 
@@ -553,23 +703,23 @@ class ResourceMonitor(pulumi.CustomResource):
553
703
  @pulumi.getter(name="notifyUsers")
554
704
  def notify_users(self) -> pulumi.Output[Optional[Sequence[str]]]:
555
705
  """
556
- Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
706
+ Specifies the list of users to receive email notifications on resource monitors.
557
707
  """
558
708
  return pulumi.get(self, "notify_users")
559
709
 
560
710
  @property
561
- @pulumi.getter(name="showOutputs")
562
- def show_outputs(self) -> pulumi.Output[Sequence['outputs.ResourceMonitorShowOutput']]:
711
+ @pulumi.getter(name="setForAccount")
712
+ def set_for_account(self) -> pulumi.Output[Optional[bool]]:
563
713
  """
564
- Outputs the result of `SHOW RESOURCE MONITORS` for the given resource monitor.
714
+ Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
565
715
  """
566
- return pulumi.get(self, "show_outputs")
716
+ return pulumi.get(self, "set_for_account")
567
717
 
568
718
  @property
569
719
  @pulumi.getter(name="startTimestamp")
570
- def start_timestamp(self) -> pulumi.Output[Optional[str]]:
720
+ def start_timestamp(self) -> pulumi.Output[str]:
571
721
  """
572
- 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.
722
+ The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
573
723
  """
574
724
  return pulumi.get(self, "start_timestamp")
575
725
 
@@ -577,15 +727,41 @@ class ResourceMonitor(pulumi.CustomResource):
577
727
  @pulumi.getter(name="suspendImmediateTrigger")
578
728
  def suspend_immediate_trigger(self) -> pulumi.Output[Optional[int]]:
579
729
  """
580
- 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.
730
+ The number that represents the percentage threshold at which to immediately suspend all warehouses.
581
731
  """
582
732
  return pulumi.get(self, "suspend_immediate_trigger")
583
733
 
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
+
584
743
  @property
585
744
  @pulumi.getter(name="suspendTrigger")
586
745
  def suspend_trigger(self) -> pulumi.Output[Optional[int]]:
587
746
  """
588
- 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.
747
+ The number that represents the percentage threshold at which to suspend all warehouses.
589
748
  """
590
749
  return pulumi.get(self, "suspend_trigger")
591
750
 
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
+