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