pulumi-azure-native 2.78.0__py3-none-any.whl → 2.78.0a1734029897__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-azure-native might be problematic. Click here for more details.
- pulumi_azure_native/__init__.py +16 -0
- pulumi_azure_native/alertsmanagement/__init__.py +6 -0
- pulumi_azure_native/alertsmanagement/action_rule_by_name.py +1 -1
- pulumi_azure_native/alertsmanagement/alert_processing_rule_by_name.py +5 -1
- pulumi_azure_native/alertsmanagement/get_alert_processing_rule_by_name.py +4 -0
- pulumi_azure_native/alertsmanagement/v20190505preview/action_rule_by_name.py +1 -1
- pulumi_azure_native/alertsmanagement/v20210808/alert_processing_rule_by_name.py +1 -1
- pulumi_azure_native/alertsmanagement/v20230501preview/__init__.py +12 -0
- pulumi_azure_native/alertsmanagement/v20230501preview/_enums.py +80 -0
- pulumi_azure_native/alertsmanagement/v20230501preview/_inputs.py +868 -0
- pulumi_azure_native/alertsmanagement/v20230501preview/alert_processing_rule_by_name.py +258 -0
- pulumi_azure_native/alertsmanagement/v20230501preview/get_alert_processing_rule_by_name.py +171 -0
- pulumi_azure_native/alertsmanagement/v20230501preview/outputs.py +795 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/__init__.py +12 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/_enums.py +88 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/_inputs.py +965 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/alert_processing_rule_by_name.py +258 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/get_alert_processing_rule_by_name.py +171 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/outputs.py +877 -0
- pulumi_azure_native/pulumi-plugin.json +1 -1
- {pulumi_azure_native-2.78.0.dist-info → pulumi_azure_native-2.78.0a1734029897.dist-info}/METADATA +3 -3
- {pulumi_azure_native-2.78.0.dist-info → pulumi_azure_native-2.78.0a1734029897.dist-info}/RECORD +24 -12
- {pulumi_azure_native-2.78.0.dist-info → pulumi_azure_native-2.78.0a1734029897.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-2.78.0.dist-info → pulumi_azure_native-2.78.0a1734029897.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,877 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from ... import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._enums import *
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
'AddActionGroupsResponse',
|
|
21
|
+
'AlertProcessingRulePropertiesResponse',
|
|
22
|
+
'ConditionResponse',
|
|
23
|
+
'CorrelateAlertsResponse',
|
|
24
|
+
'CorrelateByResponse',
|
|
25
|
+
'CorrelationUpdatesResponse',
|
|
26
|
+
'DailyRecurrenceResponse',
|
|
27
|
+
'MonthlyRecurrenceResponse',
|
|
28
|
+
'RemoveAllActionGroupsResponse',
|
|
29
|
+
'ScheduleResponse',
|
|
30
|
+
'SystemDataResponse',
|
|
31
|
+
'WeeklyRecurrenceResponse',
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
@pulumi.output_type
|
|
35
|
+
class AddActionGroupsResponse(dict):
|
|
36
|
+
"""
|
|
37
|
+
Add action groups to alert processing rule.
|
|
38
|
+
"""
|
|
39
|
+
@staticmethod
|
|
40
|
+
def __key_warning(key: str):
|
|
41
|
+
suggest = None
|
|
42
|
+
if key == "actionGroupIds":
|
|
43
|
+
suggest = "action_group_ids"
|
|
44
|
+
elif key == "actionType":
|
|
45
|
+
suggest = "action_type"
|
|
46
|
+
|
|
47
|
+
if suggest:
|
|
48
|
+
pulumi.log.warn(f"Key '{key}' not found in AddActionGroupsResponse. Access the value via the '{suggest}' property getter instead.")
|
|
49
|
+
|
|
50
|
+
def __getitem__(self, key: str) -> Any:
|
|
51
|
+
AddActionGroupsResponse.__key_warning(key)
|
|
52
|
+
return super().__getitem__(key)
|
|
53
|
+
|
|
54
|
+
def get(self, key: str, default = None) -> Any:
|
|
55
|
+
AddActionGroupsResponse.__key_warning(key)
|
|
56
|
+
return super().get(key, default)
|
|
57
|
+
|
|
58
|
+
def __init__(__self__, *,
|
|
59
|
+
action_group_ids: Sequence[str],
|
|
60
|
+
action_type: str):
|
|
61
|
+
"""
|
|
62
|
+
Add action groups to alert processing rule.
|
|
63
|
+
:param Sequence[str] action_group_ids: List of action group Ids to add to alert processing rule.
|
|
64
|
+
:param str action_type: Action that should be applied.
|
|
65
|
+
Expected value is 'AddActionGroups'.
|
|
66
|
+
"""
|
|
67
|
+
pulumi.set(__self__, "action_group_ids", action_group_ids)
|
|
68
|
+
pulumi.set(__self__, "action_type", 'AddActionGroups')
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
@pulumi.getter(name="actionGroupIds")
|
|
72
|
+
def action_group_ids(self) -> Sequence[str]:
|
|
73
|
+
"""
|
|
74
|
+
List of action group Ids to add to alert processing rule.
|
|
75
|
+
"""
|
|
76
|
+
return pulumi.get(self, "action_group_ids")
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
@pulumi.getter(name="actionType")
|
|
80
|
+
def action_type(self) -> str:
|
|
81
|
+
"""
|
|
82
|
+
Action that should be applied.
|
|
83
|
+
Expected value is 'AddActionGroups'.
|
|
84
|
+
"""
|
|
85
|
+
return pulumi.get(self, "action_type")
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
@pulumi.output_type
|
|
89
|
+
class AlertProcessingRulePropertiesResponse(dict):
|
|
90
|
+
"""
|
|
91
|
+
Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule.
|
|
92
|
+
"""
|
|
93
|
+
def __init__(__self__, *,
|
|
94
|
+
actions: Sequence[Any],
|
|
95
|
+
scopes: Sequence[str],
|
|
96
|
+
conditions: Optional[Sequence['outputs.ConditionResponse']] = None,
|
|
97
|
+
description: Optional[str] = None,
|
|
98
|
+
enabled: Optional[bool] = None,
|
|
99
|
+
schedule: Optional['outputs.ScheduleResponse'] = None):
|
|
100
|
+
"""
|
|
101
|
+
Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule.
|
|
102
|
+
:param Sequence[Union['AddActionGroupsResponse', 'CorrelateAlertsResponse', 'RemoveAllActionGroupsResponse']] actions: Actions to be applied.
|
|
103
|
+
:param Sequence[str] scopes: Scopes on which alert processing rule will apply.
|
|
104
|
+
:param Sequence['ConditionResponse'] conditions: Conditions on which alerts will be filtered.
|
|
105
|
+
:param str description: Description of alert processing rule.
|
|
106
|
+
:param bool enabled: Indicates if the given alert processing rule is enabled or disabled.
|
|
107
|
+
:param 'ScheduleResponse' schedule: Scheduling for alert processing rule.
|
|
108
|
+
"""
|
|
109
|
+
pulumi.set(__self__, "actions", actions)
|
|
110
|
+
pulumi.set(__self__, "scopes", scopes)
|
|
111
|
+
if conditions is not None:
|
|
112
|
+
pulumi.set(__self__, "conditions", conditions)
|
|
113
|
+
if description is not None:
|
|
114
|
+
pulumi.set(__self__, "description", description)
|
|
115
|
+
if enabled is None:
|
|
116
|
+
enabled = True
|
|
117
|
+
if enabled is not None:
|
|
118
|
+
pulumi.set(__self__, "enabled", enabled)
|
|
119
|
+
if schedule is not None:
|
|
120
|
+
pulumi.set(__self__, "schedule", schedule)
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
@pulumi.getter
|
|
124
|
+
def actions(self) -> Sequence[Any]:
|
|
125
|
+
"""
|
|
126
|
+
Actions to be applied.
|
|
127
|
+
"""
|
|
128
|
+
return pulumi.get(self, "actions")
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
@pulumi.getter
|
|
132
|
+
def scopes(self) -> Sequence[str]:
|
|
133
|
+
"""
|
|
134
|
+
Scopes on which alert processing rule will apply.
|
|
135
|
+
"""
|
|
136
|
+
return pulumi.get(self, "scopes")
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
@pulumi.getter
|
|
140
|
+
def conditions(self) -> Optional[Sequence['outputs.ConditionResponse']]:
|
|
141
|
+
"""
|
|
142
|
+
Conditions on which alerts will be filtered.
|
|
143
|
+
"""
|
|
144
|
+
return pulumi.get(self, "conditions")
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
@pulumi.getter
|
|
148
|
+
def description(self) -> Optional[str]:
|
|
149
|
+
"""
|
|
150
|
+
Description of alert processing rule.
|
|
151
|
+
"""
|
|
152
|
+
return pulumi.get(self, "description")
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
@pulumi.getter
|
|
156
|
+
def enabled(self) -> Optional[bool]:
|
|
157
|
+
"""
|
|
158
|
+
Indicates if the given alert processing rule is enabled or disabled.
|
|
159
|
+
"""
|
|
160
|
+
return pulumi.get(self, "enabled")
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
@pulumi.getter
|
|
164
|
+
def schedule(self) -> Optional['outputs.ScheduleResponse']:
|
|
165
|
+
"""
|
|
166
|
+
Scheduling for alert processing rule.
|
|
167
|
+
"""
|
|
168
|
+
return pulumi.get(self, "schedule")
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
@pulumi.output_type
|
|
172
|
+
class ConditionResponse(dict):
|
|
173
|
+
"""
|
|
174
|
+
Condition to trigger an alert processing rule.
|
|
175
|
+
"""
|
|
176
|
+
def __init__(__self__, *,
|
|
177
|
+
field: Optional[str] = None,
|
|
178
|
+
operator: Optional[str] = None,
|
|
179
|
+
values: Optional[Sequence[str]] = None):
|
|
180
|
+
"""
|
|
181
|
+
Condition to trigger an alert processing rule.
|
|
182
|
+
:param str field: Field for a given condition.
|
|
183
|
+
:param str operator: Operator for a given condition.
|
|
184
|
+
:param Sequence[str] values: List of values to match for a given condition.
|
|
185
|
+
"""
|
|
186
|
+
if field is not None:
|
|
187
|
+
pulumi.set(__self__, "field", field)
|
|
188
|
+
if operator is not None:
|
|
189
|
+
pulumi.set(__self__, "operator", operator)
|
|
190
|
+
if values is not None:
|
|
191
|
+
pulumi.set(__self__, "values", values)
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
@pulumi.getter
|
|
195
|
+
def field(self) -> Optional[str]:
|
|
196
|
+
"""
|
|
197
|
+
Field for a given condition.
|
|
198
|
+
"""
|
|
199
|
+
return pulumi.get(self, "field")
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
@pulumi.getter
|
|
203
|
+
def operator(self) -> Optional[str]:
|
|
204
|
+
"""
|
|
205
|
+
Operator for a given condition.
|
|
206
|
+
"""
|
|
207
|
+
return pulumi.get(self, "operator")
|
|
208
|
+
|
|
209
|
+
@property
|
|
210
|
+
@pulumi.getter
|
|
211
|
+
def values(self) -> Optional[Sequence[str]]:
|
|
212
|
+
"""
|
|
213
|
+
List of values to match for a given condition.
|
|
214
|
+
"""
|
|
215
|
+
return pulumi.get(self, "values")
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
@pulumi.output_type
|
|
219
|
+
class CorrelateAlertsResponse(dict):
|
|
220
|
+
"""
|
|
221
|
+
Add logic for alerts correlation.
|
|
222
|
+
"""
|
|
223
|
+
@staticmethod
|
|
224
|
+
def __key_warning(key: str):
|
|
225
|
+
suggest = None
|
|
226
|
+
if key == "actionType":
|
|
227
|
+
suggest = "action_type"
|
|
228
|
+
elif key == "correlateBy":
|
|
229
|
+
suggest = "correlate_by"
|
|
230
|
+
elif key == "correlationInterval":
|
|
231
|
+
suggest = "correlation_interval"
|
|
232
|
+
elif key == "correlationUpdates":
|
|
233
|
+
suggest = "correlation_updates"
|
|
234
|
+
elif key == "notificationsForCorrelatedAlerts":
|
|
235
|
+
suggest = "notifications_for_correlated_alerts"
|
|
236
|
+
|
|
237
|
+
if suggest:
|
|
238
|
+
pulumi.log.warn(f"Key '{key}' not found in CorrelateAlertsResponse. Access the value via the '{suggest}' property getter instead.")
|
|
239
|
+
|
|
240
|
+
def __getitem__(self, key: str) -> Any:
|
|
241
|
+
CorrelateAlertsResponse.__key_warning(key)
|
|
242
|
+
return super().__getitem__(key)
|
|
243
|
+
|
|
244
|
+
def get(self, key: str, default = None) -> Any:
|
|
245
|
+
CorrelateAlertsResponse.__key_warning(key)
|
|
246
|
+
return super().get(key, default)
|
|
247
|
+
|
|
248
|
+
def __init__(__self__, *,
|
|
249
|
+
action_type: str,
|
|
250
|
+
correlate_by: Sequence['outputs.CorrelateByResponse'],
|
|
251
|
+
correlation_interval: str,
|
|
252
|
+
priority: int,
|
|
253
|
+
correlation_updates: Optional['outputs.CorrelationUpdatesResponse'] = None,
|
|
254
|
+
notifications_for_correlated_alerts: Optional[str] = None):
|
|
255
|
+
"""
|
|
256
|
+
Add logic for alerts correlation.
|
|
257
|
+
:param str action_type: Action that should be applied.
|
|
258
|
+
Expected value is 'CorrelateAlerts'.
|
|
259
|
+
:param Sequence['CorrelateByResponse'] correlate_by: The list of conditions for the alerts correlations.
|
|
260
|
+
:param str correlation_interval: The required duration (in ISO8601 format) for the alerts correlation.
|
|
261
|
+
:param int priority: The priority of this correlation.
|
|
262
|
+
:param 'CorrelationUpdatesResponse' correlation_updates: Defines the updates to be applied for correlation.
|
|
263
|
+
:param str notifications_for_correlated_alerts: Indicates how to handle child alerts notifications.
|
|
264
|
+
"""
|
|
265
|
+
pulumi.set(__self__, "action_type", 'CorrelateAlerts')
|
|
266
|
+
pulumi.set(__self__, "correlate_by", correlate_by)
|
|
267
|
+
pulumi.set(__self__, "correlation_interval", correlation_interval)
|
|
268
|
+
pulumi.set(__self__, "priority", priority)
|
|
269
|
+
if correlation_updates is not None:
|
|
270
|
+
pulumi.set(__self__, "correlation_updates", correlation_updates)
|
|
271
|
+
if notifications_for_correlated_alerts is None:
|
|
272
|
+
notifications_for_correlated_alerts = 'SuppressAlways'
|
|
273
|
+
if notifications_for_correlated_alerts is not None:
|
|
274
|
+
pulumi.set(__self__, "notifications_for_correlated_alerts", notifications_for_correlated_alerts)
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
@pulumi.getter(name="actionType")
|
|
278
|
+
def action_type(self) -> str:
|
|
279
|
+
"""
|
|
280
|
+
Action that should be applied.
|
|
281
|
+
Expected value is 'CorrelateAlerts'.
|
|
282
|
+
"""
|
|
283
|
+
return pulumi.get(self, "action_type")
|
|
284
|
+
|
|
285
|
+
@property
|
|
286
|
+
@pulumi.getter(name="correlateBy")
|
|
287
|
+
def correlate_by(self) -> Sequence['outputs.CorrelateByResponse']:
|
|
288
|
+
"""
|
|
289
|
+
The list of conditions for the alerts correlations.
|
|
290
|
+
"""
|
|
291
|
+
return pulumi.get(self, "correlate_by")
|
|
292
|
+
|
|
293
|
+
@property
|
|
294
|
+
@pulumi.getter(name="correlationInterval")
|
|
295
|
+
def correlation_interval(self) -> str:
|
|
296
|
+
"""
|
|
297
|
+
The required duration (in ISO8601 format) for the alerts correlation.
|
|
298
|
+
"""
|
|
299
|
+
return pulumi.get(self, "correlation_interval")
|
|
300
|
+
|
|
301
|
+
@property
|
|
302
|
+
@pulumi.getter
|
|
303
|
+
def priority(self) -> int:
|
|
304
|
+
"""
|
|
305
|
+
The priority of this correlation.
|
|
306
|
+
"""
|
|
307
|
+
return pulumi.get(self, "priority")
|
|
308
|
+
|
|
309
|
+
@property
|
|
310
|
+
@pulumi.getter(name="correlationUpdates")
|
|
311
|
+
def correlation_updates(self) -> Optional['outputs.CorrelationUpdatesResponse']:
|
|
312
|
+
"""
|
|
313
|
+
Defines the updates to be applied for correlation.
|
|
314
|
+
"""
|
|
315
|
+
return pulumi.get(self, "correlation_updates")
|
|
316
|
+
|
|
317
|
+
@property
|
|
318
|
+
@pulumi.getter(name="notificationsForCorrelatedAlerts")
|
|
319
|
+
def notifications_for_correlated_alerts(self) -> Optional[str]:
|
|
320
|
+
"""
|
|
321
|
+
Indicates how to handle child alerts notifications.
|
|
322
|
+
"""
|
|
323
|
+
return pulumi.get(self, "notifications_for_correlated_alerts")
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
@pulumi.output_type
|
|
327
|
+
class CorrelateByResponse(dict):
|
|
328
|
+
"""
|
|
329
|
+
The logic for the correlation.
|
|
330
|
+
"""
|
|
331
|
+
def __init__(__self__, *,
|
|
332
|
+
field: Optional[str] = None):
|
|
333
|
+
"""
|
|
334
|
+
The logic for the correlation.
|
|
335
|
+
:param str field: The JPath of the property that the alerts should be correlated by.
|
|
336
|
+
"""
|
|
337
|
+
if field is not None:
|
|
338
|
+
pulumi.set(__self__, "field", field)
|
|
339
|
+
|
|
340
|
+
@property
|
|
341
|
+
@pulumi.getter
|
|
342
|
+
def field(self) -> Optional[str]:
|
|
343
|
+
"""
|
|
344
|
+
The JPath of the property that the alerts should be correlated by.
|
|
345
|
+
"""
|
|
346
|
+
return pulumi.get(self, "field")
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
@pulumi.output_type
|
|
350
|
+
class CorrelationUpdatesResponse(dict):
|
|
351
|
+
"""
|
|
352
|
+
Defines the updates to be applied for correlation.
|
|
353
|
+
"""
|
|
354
|
+
@staticmethod
|
|
355
|
+
def __key_warning(key: str):
|
|
356
|
+
suggest = None
|
|
357
|
+
if key == "actionGroups":
|
|
358
|
+
suggest = "action_groups"
|
|
359
|
+
elif key == "updateInterval":
|
|
360
|
+
suggest = "update_interval"
|
|
361
|
+
elif key == "updateType":
|
|
362
|
+
suggest = "update_type"
|
|
363
|
+
|
|
364
|
+
if suggest:
|
|
365
|
+
pulumi.log.warn(f"Key '{key}' not found in CorrelationUpdatesResponse. Access the value via the '{suggest}' property getter instead.")
|
|
366
|
+
|
|
367
|
+
def __getitem__(self, key: str) -> Any:
|
|
368
|
+
CorrelationUpdatesResponse.__key_warning(key)
|
|
369
|
+
return super().__getitem__(key)
|
|
370
|
+
|
|
371
|
+
def get(self, key: str, default = None) -> Any:
|
|
372
|
+
CorrelationUpdatesResponse.__key_warning(key)
|
|
373
|
+
return super().get(key, default)
|
|
374
|
+
|
|
375
|
+
def __init__(__self__, *,
|
|
376
|
+
action_groups: Sequence[str],
|
|
377
|
+
update_interval: str,
|
|
378
|
+
update_type: Optional[str] = None):
|
|
379
|
+
"""
|
|
380
|
+
Defines the updates to be applied for correlation.
|
|
381
|
+
:param Sequence[str] action_groups: The action group ids.
|
|
382
|
+
:param str update_interval: The update interval for notification updates in ISO8601 format.
|
|
383
|
+
:param str update_type: The type of update that needs to be performed.
|
|
384
|
+
"""
|
|
385
|
+
pulumi.set(__self__, "action_groups", action_groups)
|
|
386
|
+
pulumi.set(__self__, "update_interval", update_interval)
|
|
387
|
+
if update_type is None:
|
|
388
|
+
update_type = 'timeBased'
|
|
389
|
+
pulumi.set(__self__, "update_type", update_type)
|
|
390
|
+
|
|
391
|
+
@property
|
|
392
|
+
@pulumi.getter(name="actionGroups")
|
|
393
|
+
def action_groups(self) -> Sequence[str]:
|
|
394
|
+
"""
|
|
395
|
+
The action group ids.
|
|
396
|
+
"""
|
|
397
|
+
return pulumi.get(self, "action_groups")
|
|
398
|
+
|
|
399
|
+
@property
|
|
400
|
+
@pulumi.getter(name="updateInterval")
|
|
401
|
+
def update_interval(self) -> str:
|
|
402
|
+
"""
|
|
403
|
+
The update interval for notification updates in ISO8601 format.
|
|
404
|
+
"""
|
|
405
|
+
return pulumi.get(self, "update_interval")
|
|
406
|
+
|
|
407
|
+
@property
|
|
408
|
+
@pulumi.getter(name="updateType")
|
|
409
|
+
def update_type(self) -> str:
|
|
410
|
+
"""
|
|
411
|
+
The type of update that needs to be performed.
|
|
412
|
+
"""
|
|
413
|
+
return pulumi.get(self, "update_type")
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
@pulumi.output_type
|
|
417
|
+
class DailyRecurrenceResponse(dict):
|
|
418
|
+
"""
|
|
419
|
+
Daily recurrence object.
|
|
420
|
+
"""
|
|
421
|
+
@staticmethod
|
|
422
|
+
def __key_warning(key: str):
|
|
423
|
+
suggest = None
|
|
424
|
+
if key == "endTime":
|
|
425
|
+
suggest = "end_time"
|
|
426
|
+
elif key == "recurrenceType":
|
|
427
|
+
suggest = "recurrence_type"
|
|
428
|
+
elif key == "startTime":
|
|
429
|
+
suggest = "start_time"
|
|
430
|
+
|
|
431
|
+
if suggest:
|
|
432
|
+
pulumi.log.warn(f"Key '{key}' not found in DailyRecurrenceResponse. Access the value via the '{suggest}' property getter instead.")
|
|
433
|
+
|
|
434
|
+
def __getitem__(self, key: str) -> Any:
|
|
435
|
+
DailyRecurrenceResponse.__key_warning(key)
|
|
436
|
+
return super().__getitem__(key)
|
|
437
|
+
|
|
438
|
+
def get(self, key: str, default = None) -> Any:
|
|
439
|
+
DailyRecurrenceResponse.__key_warning(key)
|
|
440
|
+
return super().get(key, default)
|
|
441
|
+
|
|
442
|
+
def __init__(__self__, *,
|
|
443
|
+
end_time: str,
|
|
444
|
+
recurrence_type: str,
|
|
445
|
+
start_time: str):
|
|
446
|
+
"""
|
|
447
|
+
Daily recurrence object.
|
|
448
|
+
:param str end_time: End time for recurrence.
|
|
449
|
+
:param str recurrence_type: Specifies when the recurrence should be applied.
|
|
450
|
+
Expected value is 'Daily'.
|
|
451
|
+
:param str start_time: Start time for recurrence.
|
|
452
|
+
"""
|
|
453
|
+
pulumi.set(__self__, "end_time", end_time)
|
|
454
|
+
pulumi.set(__self__, "recurrence_type", 'Daily')
|
|
455
|
+
pulumi.set(__self__, "start_time", start_time)
|
|
456
|
+
|
|
457
|
+
@property
|
|
458
|
+
@pulumi.getter(name="endTime")
|
|
459
|
+
def end_time(self) -> str:
|
|
460
|
+
"""
|
|
461
|
+
End time for recurrence.
|
|
462
|
+
"""
|
|
463
|
+
return pulumi.get(self, "end_time")
|
|
464
|
+
|
|
465
|
+
@property
|
|
466
|
+
@pulumi.getter(name="recurrenceType")
|
|
467
|
+
def recurrence_type(self) -> str:
|
|
468
|
+
"""
|
|
469
|
+
Specifies when the recurrence should be applied.
|
|
470
|
+
Expected value is 'Daily'.
|
|
471
|
+
"""
|
|
472
|
+
return pulumi.get(self, "recurrence_type")
|
|
473
|
+
|
|
474
|
+
@property
|
|
475
|
+
@pulumi.getter(name="startTime")
|
|
476
|
+
def start_time(self) -> str:
|
|
477
|
+
"""
|
|
478
|
+
Start time for recurrence.
|
|
479
|
+
"""
|
|
480
|
+
return pulumi.get(self, "start_time")
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
@pulumi.output_type
|
|
484
|
+
class MonthlyRecurrenceResponse(dict):
|
|
485
|
+
"""
|
|
486
|
+
Monthly recurrence object.
|
|
487
|
+
"""
|
|
488
|
+
@staticmethod
|
|
489
|
+
def __key_warning(key: str):
|
|
490
|
+
suggest = None
|
|
491
|
+
if key == "daysOfMonth":
|
|
492
|
+
suggest = "days_of_month"
|
|
493
|
+
elif key == "recurrenceType":
|
|
494
|
+
suggest = "recurrence_type"
|
|
495
|
+
elif key == "endTime":
|
|
496
|
+
suggest = "end_time"
|
|
497
|
+
elif key == "startTime":
|
|
498
|
+
suggest = "start_time"
|
|
499
|
+
|
|
500
|
+
if suggest:
|
|
501
|
+
pulumi.log.warn(f"Key '{key}' not found in MonthlyRecurrenceResponse. Access the value via the '{suggest}' property getter instead.")
|
|
502
|
+
|
|
503
|
+
def __getitem__(self, key: str) -> Any:
|
|
504
|
+
MonthlyRecurrenceResponse.__key_warning(key)
|
|
505
|
+
return super().__getitem__(key)
|
|
506
|
+
|
|
507
|
+
def get(self, key: str, default = None) -> Any:
|
|
508
|
+
MonthlyRecurrenceResponse.__key_warning(key)
|
|
509
|
+
return super().get(key, default)
|
|
510
|
+
|
|
511
|
+
def __init__(__self__, *,
|
|
512
|
+
days_of_month: Sequence[int],
|
|
513
|
+
recurrence_type: str,
|
|
514
|
+
end_time: Optional[str] = None,
|
|
515
|
+
start_time: Optional[str] = None):
|
|
516
|
+
"""
|
|
517
|
+
Monthly recurrence object.
|
|
518
|
+
:param Sequence[int] days_of_month: Specifies the values for monthly recurrence pattern.
|
|
519
|
+
:param str recurrence_type: Specifies when the recurrence should be applied.
|
|
520
|
+
Expected value is 'Monthly'.
|
|
521
|
+
:param str end_time: End time for recurrence.
|
|
522
|
+
:param str start_time: Start time for recurrence.
|
|
523
|
+
"""
|
|
524
|
+
pulumi.set(__self__, "days_of_month", days_of_month)
|
|
525
|
+
pulumi.set(__self__, "recurrence_type", 'Monthly')
|
|
526
|
+
if end_time is not None:
|
|
527
|
+
pulumi.set(__self__, "end_time", end_time)
|
|
528
|
+
if start_time is not None:
|
|
529
|
+
pulumi.set(__self__, "start_time", start_time)
|
|
530
|
+
|
|
531
|
+
@property
|
|
532
|
+
@pulumi.getter(name="daysOfMonth")
|
|
533
|
+
def days_of_month(self) -> Sequence[int]:
|
|
534
|
+
"""
|
|
535
|
+
Specifies the values for monthly recurrence pattern.
|
|
536
|
+
"""
|
|
537
|
+
return pulumi.get(self, "days_of_month")
|
|
538
|
+
|
|
539
|
+
@property
|
|
540
|
+
@pulumi.getter(name="recurrenceType")
|
|
541
|
+
def recurrence_type(self) -> str:
|
|
542
|
+
"""
|
|
543
|
+
Specifies when the recurrence should be applied.
|
|
544
|
+
Expected value is 'Monthly'.
|
|
545
|
+
"""
|
|
546
|
+
return pulumi.get(self, "recurrence_type")
|
|
547
|
+
|
|
548
|
+
@property
|
|
549
|
+
@pulumi.getter(name="endTime")
|
|
550
|
+
def end_time(self) -> Optional[str]:
|
|
551
|
+
"""
|
|
552
|
+
End time for recurrence.
|
|
553
|
+
"""
|
|
554
|
+
return pulumi.get(self, "end_time")
|
|
555
|
+
|
|
556
|
+
@property
|
|
557
|
+
@pulumi.getter(name="startTime")
|
|
558
|
+
def start_time(self) -> Optional[str]:
|
|
559
|
+
"""
|
|
560
|
+
Start time for recurrence.
|
|
561
|
+
"""
|
|
562
|
+
return pulumi.get(self, "start_time")
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
@pulumi.output_type
|
|
566
|
+
class RemoveAllActionGroupsResponse(dict):
|
|
567
|
+
"""
|
|
568
|
+
Indicates if all action groups should be removed.
|
|
569
|
+
"""
|
|
570
|
+
@staticmethod
|
|
571
|
+
def __key_warning(key: str):
|
|
572
|
+
suggest = None
|
|
573
|
+
if key == "actionType":
|
|
574
|
+
suggest = "action_type"
|
|
575
|
+
|
|
576
|
+
if suggest:
|
|
577
|
+
pulumi.log.warn(f"Key '{key}' not found in RemoveAllActionGroupsResponse. Access the value via the '{suggest}' property getter instead.")
|
|
578
|
+
|
|
579
|
+
def __getitem__(self, key: str) -> Any:
|
|
580
|
+
RemoveAllActionGroupsResponse.__key_warning(key)
|
|
581
|
+
return super().__getitem__(key)
|
|
582
|
+
|
|
583
|
+
def get(self, key: str, default = None) -> Any:
|
|
584
|
+
RemoveAllActionGroupsResponse.__key_warning(key)
|
|
585
|
+
return super().get(key, default)
|
|
586
|
+
|
|
587
|
+
def __init__(__self__, *,
|
|
588
|
+
action_type: str):
|
|
589
|
+
"""
|
|
590
|
+
Indicates if all action groups should be removed.
|
|
591
|
+
:param str action_type: Action that should be applied.
|
|
592
|
+
Expected value is 'RemoveAllActionGroups'.
|
|
593
|
+
"""
|
|
594
|
+
pulumi.set(__self__, "action_type", 'RemoveAllActionGroups')
|
|
595
|
+
|
|
596
|
+
@property
|
|
597
|
+
@pulumi.getter(name="actionType")
|
|
598
|
+
def action_type(self) -> str:
|
|
599
|
+
"""
|
|
600
|
+
Action that should be applied.
|
|
601
|
+
Expected value is 'RemoveAllActionGroups'.
|
|
602
|
+
"""
|
|
603
|
+
return pulumi.get(self, "action_type")
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
@pulumi.output_type
|
|
607
|
+
class ScheduleResponse(dict):
|
|
608
|
+
"""
|
|
609
|
+
Scheduling configuration for a given alert processing rule.
|
|
610
|
+
"""
|
|
611
|
+
@staticmethod
|
|
612
|
+
def __key_warning(key: str):
|
|
613
|
+
suggest = None
|
|
614
|
+
if key == "effectiveFrom":
|
|
615
|
+
suggest = "effective_from"
|
|
616
|
+
elif key == "effectiveUntil":
|
|
617
|
+
suggest = "effective_until"
|
|
618
|
+
elif key == "timeZone":
|
|
619
|
+
suggest = "time_zone"
|
|
620
|
+
|
|
621
|
+
if suggest:
|
|
622
|
+
pulumi.log.warn(f"Key '{key}' not found in ScheduleResponse. Access the value via the '{suggest}' property getter instead.")
|
|
623
|
+
|
|
624
|
+
def __getitem__(self, key: str) -> Any:
|
|
625
|
+
ScheduleResponse.__key_warning(key)
|
|
626
|
+
return super().__getitem__(key)
|
|
627
|
+
|
|
628
|
+
def get(self, key: str, default = None) -> Any:
|
|
629
|
+
ScheduleResponse.__key_warning(key)
|
|
630
|
+
return super().get(key, default)
|
|
631
|
+
|
|
632
|
+
def __init__(__self__, *,
|
|
633
|
+
effective_from: Optional[str] = None,
|
|
634
|
+
effective_until: Optional[str] = None,
|
|
635
|
+
recurrences: Optional[Sequence[Any]] = None,
|
|
636
|
+
time_zone: Optional[str] = None):
|
|
637
|
+
"""
|
|
638
|
+
Scheduling configuration for a given alert processing rule.
|
|
639
|
+
:param str effective_from: Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
|
|
640
|
+
:param str effective_until: Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
|
|
641
|
+
:param Sequence[Union['DailyRecurrenceResponse', 'MonthlyRecurrenceResponse', 'WeeklyRecurrenceResponse']] recurrences: List of recurrences.
|
|
642
|
+
:param str time_zone: Scheduling time zone.
|
|
643
|
+
"""
|
|
644
|
+
if effective_from is not None:
|
|
645
|
+
pulumi.set(__self__, "effective_from", effective_from)
|
|
646
|
+
if effective_until is not None:
|
|
647
|
+
pulumi.set(__self__, "effective_until", effective_until)
|
|
648
|
+
if recurrences is not None:
|
|
649
|
+
pulumi.set(__self__, "recurrences", recurrences)
|
|
650
|
+
if time_zone is not None:
|
|
651
|
+
pulumi.set(__self__, "time_zone", time_zone)
|
|
652
|
+
|
|
653
|
+
@property
|
|
654
|
+
@pulumi.getter(name="effectiveFrom")
|
|
655
|
+
def effective_from(self) -> Optional[str]:
|
|
656
|
+
"""
|
|
657
|
+
Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
|
|
658
|
+
"""
|
|
659
|
+
return pulumi.get(self, "effective_from")
|
|
660
|
+
|
|
661
|
+
@property
|
|
662
|
+
@pulumi.getter(name="effectiveUntil")
|
|
663
|
+
def effective_until(self) -> Optional[str]:
|
|
664
|
+
"""
|
|
665
|
+
Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
|
|
666
|
+
"""
|
|
667
|
+
return pulumi.get(self, "effective_until")
|
|
668
|
+
|
|
669
|
+
@property
|
|
670
|
+
@pulumi.getter
|
|
671
|
+
def recurrences(self) -> Optional[Sequence[Any]]:
|
|
672
|
+
"""
|
|
673
|
+
List of recurrences.
|
|
674
|
+
"""
|
|
675
|
+
return pulumi.get(self, "recurrences")
|
|
676
|
+
|
|
677
|
+
@property
|
|
678
|
+
@pulumi.getter(name="timeZone")
|
|
679
|
+
def time_zone(self) -> Optional[str]:
|
|
680
|
+
"""
|
|
681
|
+
Scheduling time zone.
|
|
682
|
+
"""
|
|
683
|
+
return pulumi.get(self, "time_zone")
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
@pulumi.output_type
|
|
687
|
+
class SystemDataResponse(dict):
|
|
688
|
+
"""
|
|
689
|
+
Metadata pertaining to creation and last modification of the resource.
|
|
690
|
+
"""
|
|
691
|
+
@staticmethod
|
|
692
|
+
def __key_warning(key: str):
|
|
693
|
+
suggest = None
|
|
694
|
+
if key == "createdAt":
|
|
695
|
+
suggest = "created_at"
|
|
696
|
+
elif key == "createdBy":
|
|
697
|
+
suggest = "created_by"
|
|
698
|
+
elif key == "createdByType":
|
|
699
|
+
suggest = "created_by_type"
|
|
700
|
+
elif key == "lastModifiedAt":
|
|
701
|
+
suggest = "last_modified_at"
|
|
702
|
+
elif key == "lastModifiedBy":
|
|
703
|
+
suggest = "last_modified_by"
|
|
704
|
+
elif key == "lastModifiedByType":
|
|
705
|
+
suggest = "last_modified_by_type"
|
|
706
|
+
|
|
707
|
+
if suggest:
|
|
708
|
+
pulumi.log.warn(f"Key '{key}' not found in SystemDataResponse. Access the value via the '{suggest}' property getter instead.")
|
|
709
|
+
|
|
710
|
+
def __getitem__(self, key: str) -> Any:
|
|
711
|
+
SystemDataResponse.__key_warning(key)
|
|
712
|
+
return super().__getitem__(key)
|
|
713
|
+
|
|
714
|
+
def get(self, key: str, default = None) -> Any:
|
|
715
|
+
SystemDataResponse.__key_warning(key)
|
|
716
|
+
return super().get(key, default)
|
|
717
|
+
|
|
718
|
+
def __init__(__self__, *,
|
|
719
|
+
created_at: Optional[str] = None,
|
|
720
|
+
created_by: Optional[str] = None,
|
|
721
|
+
created_by_type: Optional[str] = None,
|
|
722
|
+
last_modified_at: Optional[str] = None,
|
|
723
|
+
last_modified_by: Optional[str] = None,
|
|
724
|
+
last_modified_by_type: Optional[str] = None):
|
|
725
|
+
"""
|
|
726
|
+
Metadata pertaining to creation and last modification of the resource.
|
|
727
|
+
:param str created_at: The timestamp of resource creation (UTC).
|
|
728
|
+
:param str created_by: The identity that created the resource.
|
|
729
|
+
:param str created_by_type: The type of identity that created the resource.
|
|
730
|
+
:param str last_modified_at: The timestamp of resource last modification (UTC)
|
|
731
|
+
:param str last_modified_by: The identity that last modified the resource.
|
|
732
|
+
:param str last_modified_by_type: The type of identity that last modified the resource.
|
|
733
|
+
"""
|
|
734
|
+
if created_at is not None:
|
|
735
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
736
|
+
if created_by is not None:
|
|
737
|
+
pulumi.set(__self__, "created_by", created_by)
|
|
738
|
+
if created_by_type is not None:
|
|
739
|
+
pulumi.set(__self__, "created_by_type", created_by_type)
|
|
740
|
+
if last_modified_at is not None:
|
|
741
|
+
pulumi.set(__self__, "last_modified_at", last_modified_at)
|
|
742
|
+
if last_modified_by is not None:
|
|
743
|
+
pulumi.set(__self__, "last_modified_by", last_modified_by)
|
|
744
|
+
if last_modified_by_type is not None:
|
|
745
|
+
pulumi.set(__self__, "last_modified_by_type", last_modified_by_type)
|
|
746
|
+
|
|
747
|
+
@property
|
|
748
|
+
@pulumi.getter(name="createdAt")
|
|
749
|
+
def created_at(self) -> Optional[str]:
|
|
750
|
+
"""
|
|
751
|
+
The timestamp of resource creation (UTC).
|
|
752
|
+
"""
|
|
753
|
+
return pulumi.get(self, "created_at")
|
|
754
|
+
|
|
755
|
+
@property
|
|
756
|
+
@pulumi.getter(name="createdBy")
|
|
757
|
+
def created_by(self) -> Optional[str]:
|
|
758
|
+
"""
|
|
759
|
+
The identity that created the resource.
|
|
760
|
+
"""
|
|
761
|
+
return pulumi.get(self, "created_by")
|
|
762
|
+
|
|
763
|
+
@property
|
|
764
|
+
@pulumi.getter(name="createdByType")
|
|
765
|
+
def created_by_type(self) -> Optional[str]:
|
|
766
|
+
"""
|
|
767
|
+
The type of identity that created the resource.
|
|
768
|
+
"""
|
|
769
|
+
return pulumi.get(self, "created_by_type")
|
|
770
|
+
|
|
771
|
+
@property
|
|
772
|
+
@pulumi.getter(name="lastModifiedAt")
|
|
773
|
+
def last_modified_at(self) -> Optional[str]:
|
|
774
|
+
"""
|
|
775
|
+
The timestamp of resource last modification (UTC)
|
|
776
|
+
"""
|
|
777
|
+
return pulumi.get(self, "last_modified_at")
|
|
778
|
+
|
|
779
|
+
@property
|
|
780
|
+
@pulumi.getter(name="lastModifiedBy")
|
|
781
|
+
def last_modified_by(self) -> Optional[str]:
|
|
782
|
+
"""
|
|
783
|
+
The identity that last modified the resource.
|
|
784
|
+
"""
|
|
785
|
+
return pulumi.get(self, "last_modified_by")
|
|
786
|
+
|
|
787
|
+
@property
|
|
788
|
+
@pulumi.getter(name="lastModifiedByType")
|
|
789
|
+
def last_modified_by_type(self) -> Optional[str]:
|
|
790
|
+
"""
|
|
791
|
+
The type of identity that last modified the resource.
|
|
792
|
+
"""
|
|
793
|
+
return pulumi.get(self, "last_modified_by_type")
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
@pulumi.output_type
|
|
797
|
+
class WeeklyRecurrenceResponse(dict):
|
|
798
|
+
"""
|
|
799
|
+
Weekly recurrence object.
|
|
800
|
+
"""
|
|
801
|
+
@staticmethod
|
|
802
|
+
def __key_warning(key: str):
|
|
803
|
+
suggest = None
|
|
804
|
+
if key == "daysOfWeek":
|
|
805
|
+
suggest = "days_of_week"
|
|
806
|
+
elif key == "recurrenceType":
|
|
807
|
+
suggest = "recurrence_type"
|
|
808
|
+
elif key == "endTime":
|
|
809
|
+
suggest = "end_time"
|
|
810
|
+
elif key == "startTime":
|
|
811
|
+
suggest = "start_time"
|
|
812
|
+
|
|
813
|
+
if suggest:
|
|
814
|
+
pulumi.log.warn(f"Key '{key}' not found in WeeklyRecurrenceResponse. Access the value via the '{suggest}' property getter instead.")
|
|
815
|
+
|
|
816
|
+
def __getitem__(self, key: str) -> Any:
|
|
817
|
+
WeeklyRecurrenceResponse.__key_warning(key)
|
|
818
|
+
return super().__getitem__(key)
|
|
819
|
+
|
|
820
|
+
def get(self, key: str, default = None) -> Any:
|
|
821
|
+
WeeklyRecurrenceResponse.__key_warning(key)
|
|
822
|
+
return super().get(key, default)
|
|
823
|
+
|
|
824
|
+
def __init__(__self__, *,
|
|
825
|
+
days_of_week: Sequence[str],
|
|
826
|
+
recurrence_type: str,
|
|
827
|
+
end_time: Optional[str] = None,
|
|
828
|
+
start_time: Optional[str] = None):
|
|
829
|
+
"""
|
|
830
|
+
Weekly recurrence object.
|
|
831
|
+
:param Sequence[str] days_of_week: Specifies the values for weekly recurrence pattern.
|
|
832
|
+
:param str recurrence_type: Specifies when the recurrence should be applied.
|
|
833
|
+
Expected value is 'Weekly'.
|
|
834
|
+
:param str end_time: End time for recurrence.
|
|
835
|
+
:param str start_time: Start time for recurrence.
|
|
836
|
+
"""
|
|
837
|
+
pulumi.set(__self__, "days_of_week", days_of_week)
|
|
838
|
+
pulumi.set(__self__, "recurrence_type", 'Weekly')
|
|
839
|
+
if end_time is not None:
|
|
840
|
+
pulumi.set(__self__, "end_time", end_time)
|
|
841
|
+
if start_time is not None:
|
|
842
|
+
pulumi.set(__self__, "start_time", start_time)
|
|
843
|
+
|
|
844
|
+
@property
|
|
845
|
+
@pulumi.getter(name="daysOfWeek")
|
|
846
|
+
def days_of_week(self) -> Sequence[str]:
|
|
847
|
+
"""
|
|
848
|
+
Specifies the values for weekly recurrence pattern.
|
|
849
|
+
"""
|
|
850
|
+
return pulumi.get(self, "days_of_week")
|
|
851
|
+
|
|
852
|
+
@property
|
|
853
|
+
@pulumi.getter(name="recurrenceType")
|
|
854
|
+
def recurrence_type(self) -> str:
|
|
855
|
+
"""
|
|
856
|
+
Specifies when the recurrence should be applied.
|
|
857
|
+
Expected value is 'Weekly'.
|
|
858
|
+
"""
|
|
859
|
+
return pulumi.get(self, "recurrence_type")
|
|
860
|
+
|
|
861
|
+
@property
|
|
862
|
+
@pulumi.getter(name="endTime")
|
|
863
|
+
def end_time(self) -> Optional[str]:
|
|
864
|
+
"""
|
|
865
|
+
End time for recurrence.
|
|
866
|
+
"""
|
|
867
|
+
return pulumi.get(self, "end_time")
|
|
868
|
+
|
|
869
|
+
@property
|
|
870
|
+
@pulumi.getter(name="startTime")
|
|
871
|
+
def start_time(self) -> Optional[str]:
|
|
872
|
+
"""
|
|
873
|
+
Start time for recurrence.
|
|
874
|
+
"""
|
|
875
|
+
return pulumi.get(self, "start_time")
|
|
876
|
+
|
|
877
|
+
|