pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.39.0a1736834464__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pulumi_newrelic/__init__.py +9 -0
- pulumi_newrelic/_inputs.py +7153 -461
- pulumi_newrelic/_utilities.py +41 -5
- pulumi_newrelic/account_management.py +13 -4
- pulumi_newrelic/alert_channel.py +122 -101
- pulumi_newrelic/alert_condition.py +120 -109
- pulumi_newrelic/alert_muting_rule.py +130 -74
- pulumi_newrelic/alert_policy.py +88 -67
- pulumi_newrelic/alert_policy_channel.py +81 -68
- pulumi_newrelic/api_access_key.py +49 -52
- pulumi_newrelic/browser_application.py +79 -76
- pulumi_newrelic/cloud/_inputs.py +2527 -1082
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +135 -130
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +25 -18
- pulumi_newrelic/cloud/aws_integrations.py +300 -1324
- pulumi_newrelic/cloud/aws_link_account.py +25 -18
- pulumi_newrelic/cloud/azure_integrations.py +523 -481
- pulumi_newrelic/cloud/azure_link_account.py +36 -29
- pulumi_newrelic/cloud/gcp_integrations.py +343 -320
- pulumi_newrelic/cloud/gcp_link_account.py +25 -18
- pulumi_newrelic/cloud/outputs.py +327 -1072
- pulumi_newrelic/config/__init__.pyi +6 -1
- pulumi_newrelic/config/vars.py +7 -2
- pulumi_newrelic/data_partition_rule.py +23 -16
- pulumi_newrelic/entity_tags.py +36 -31
- pulumi_newrelic/events_to_metrics_rule.py +27 -20
- pulumi_newrelic/get_account.py +24 -12
- pulumi_newrelic/get_alert_channel.py +26 -13
- pulumi_newrelic/get_alert_policy.py +35 -12
- pulumi_newrelic/get_application.py +39 -27
- pulumi_newrelic/get_authentication_domain.py +17 -9
- pulumi_newrelic/get_cloud_account.py +26 -14
- pulumi_newrelic/get_entity.py +90 -85
- pulumi_newrelic/get_group.py +58 -9
- pulumi_newrelic/get_key_transaction.py +109 -30
- pulumi_newrelic/get_notification_destination.py +64 -14
- pulumi_newrelic/get_obfuscation_expression.py +36 -24
- pulumi_newrelic/get_service_level_alert_helper.py +135 -105
- pulumi_newrelic/get_test_grok_pattern.py +29 -14
- pulumi_newrelic/get_user.py +17 -5
- pulumi_newrelic/group.py +5 -132
- pulumi_newrelic/infra_alert_condition.py +157 -140
- pulumi_newrelic/insights/_inputs.py +43 -0
- pulumi_newrelic/insights/event.py +50 -43
- pulumi_newrelic/insights/outputs.py +5 -0
- pulumi_newrelic/key_transaction.py +464 -0
- pulumi_newrelic/log_parsing_rule.py +29 -18
- pulumi_newrelic/monitor_downtime.py +215 -203
- pulumi_newrelic/notification_channel.py +387 -326
- pulumi_newrelic/notification_destination.py +248 -118
- pulumi_newrelic/nrql_alert_condition.py +353 -246
- pulumi_newrelic/nrql_drop_rule.py +57 -30
- pulumi_newrelic/obfuscation_expression.py +25 -18
- pulumi_newrelic/obfuscation_rule.py +40 -31
- pulumi_newrelic/one_dashboard.py +31 -26
- pulumi_newrelic/one_dashboard_json.py +21 -16
- pulumi_newrelic/one_dashboard_raw.py +112 -101
- pulumi_newrelic/outputs.py +2446 -245
- pulumi_newrelic/plugins/_inputs.py +145 -10
- pulumi_newrelic/plugins/application_settings.py +29 -20
- pulumi_newrelic/plugins/outputs.py +15 -10
- pulumi_newrelic/plugins/workload.py +285 -54
- pulumi_newrelic/provider.py +27 -33
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +193 -180
- pulumi_newrelic/synthetics/_inputs.py +159 -2
- pulumi_newrelic/synthetics/alert_condition.py +91 -78
- pulumi_newrelic/synthetics/broken_links_monitor.py +220 -93
- pulumi_newrelic/synthetics/cert_check_monitor.py +223 -94
- pulumi_newrelic/synthetics/get_private_location.py +34 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +24 -12
- pulumi_newrelic/synthetics/monitor.py +352 -179
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +109 -96
- pulumi_newrelic/synthetics/outputs.py +7 -2
- pulumi_newrelic/synthetics/private_location.py +27 -18
- pulumi_newrelic/synthetics/script_monitor.py +321 -168
- pulumi_newrelic/synthetics/secure_credential.py +25 -20
- pulumi_newrelic/synthetics/step_monitor.py +409 -98
- pulumi_newrelic/user.py +13 -6
- pulumi_newrelic/workflow.py +215 -184
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.39.0a1736834464.dist-info/RECORD +90 -0
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from . import _utilities
|
11
16
|
from . import outputs
|
12
17
|
from ._inputs import *
|
@@ -18,7 +23,8 @@ class AlertMutingRuleArgs:
|
|
18
23
|
def __init__(__self__, *,
|
19
24
|
condition: pulumi.Input['AlertMutingRuleConditionArgs'],
|
20
25
|
enabled: pulumi.Input[bool],
|
21
|
-
account_id: Optional[pulumi.Input[
|
26
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
27
|
+
action_on_muting_rule_window_ended: Optional[pulumi.Input[str]] = None,
|
22
28
|
description: Optional[pulumi.Input[str]] = None,
|
23
29
|
name: Optional[pulumi.Input[str]] = None,
|
24
30
|
schedule: Optional[pulumi.Input['AlertMutingRuleScheduleArgs']] = None):
|
@@ -26,7 +32,8 @@ class AlertMutingRuleArgs:
|
|
26
32
|
The set of arguments for constructing a AlertMutingRule resource.
|
27
33
|
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
28
34
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
29
|
-
:param pulumi.Input[
|
35
|
+
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
36
|
+
:param pulumi.Input[str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
30
37
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
31
38
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
32
39
|
:param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
@@ -35,6 +42,8 @@ class AlertMutingRuleArgs:
|
|
35
42
|
pulumi.set(__self__, "enabled", enabled)
|
36
43
|
if account_id is not None:
|
37
44
|
pulumi.set(__self__, "account_id", account_id)
|
45
|
+
if action_on_muting_rule_window_ended is not None:
|
46
|
+
pulumi.set(__self__, "action_on_muting_rule_window_ended", action_on_muting_rule_window_ended)
|
38
47
|
if description is not None:
|
39
48
|
pulumi.set(__self__, "description", description)
|
40
49
|
if name is not None:
|
@@ -68,16 +77,28 @@ class AlertMutingRuleArgs:
|
|
68
77
|
|
69
78
|
@property
|
70
79
|
@pulumi.getter(name="accountId")
|
71
|
-
def account_id(self) -> Optional[pulumi.Input[
|
80
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
72
81
|
"""
|
73
82
|
The account id of the MutingRule.
|
74
83
|
"""
|
75
84
|
return pulumi.get(self, "account_id")
|
76
85
|
|
77
86
|
@account_id.setter
|
78
|
-
def account_id(self, value: Optional[pulumi.Input[
|
87
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
79
88
|
pulumi.set(self, "account_id", value)
|
80
89
|
|
90
|
+
@property
|
91
|
+
@pulumi.getter(name="actionOnMutingRuleWindowEnded")
|
92
|
+
def action_on_muting_rule_window_ended(self) -> Optional[pulumi.Input[str]]:
|
93
|
+
"""
|
94
|
+
The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
95
|
+
"""
|
96
|
+
return pulumi.get(self, "action_on_muting_rule_window_ended")
|
97
|
+
|
98
|
+
@action_on_muting_rule_window_ended.setter
|
99
|
+
def action_on_muting_rule_window_ended(self, value: Optional[pulumi.Input[str]]):
|
100
|
+
pulumi.set(self, "action_on_muting_rule_window_ended", value)
|
101
|
+
|
81
102
|
@property
|
82
103
|
@pulumi.getter
|
83
104
|
def description(self) -> Optional[pulumi.Input[str]]:
|
@@ -118,7 +139,8 @@ class AlertMutingRuleArgs:
|
|
118
139
|
@pulumi.input_type
|
119
140
|
class _AlertMutingRuleState:
|
120
141
|
def __init__(__self__, *,
|
121
|
-
account_id: Optional[pulumi.Input[
|
142
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
143
|
+
action_on_muting_rule_window_ended: Optional[pulumi.Input[str]] = None,
|
122
144
|
condition: Optional[pulumi.Input['AlertMutingRuleConditionArgs']] = None,
|
123
145
|
description: Optional[pulumi.Input[str]] = None,
|
124
146
|
enabled: Optional[pulumi.Input[bool]] = None,
|
@@ -126,7 +148,8 @@ class _AlertMutingRuleState:
|
|
126
148
|
schedule: Optional[pulumi.Input['AlertMutingRuleScheduleArgs']] = None):
|
127
149
|
"""
|
128
150
|
Input properties used for looking up and filtering AlertMutingRule resources.
|
129
|
-
:param pulumi.Input[
|
151
|
+
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
152
|
+
:param pulumi.Input[str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
130
153
|
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
131
154
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
132
155
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
@@ -135,6 +158,8 @@ class _AlertMutingRuleState:
|
|
135
158
|
"""
|
136
159
|
if account_id is not None:
|
137
160
|
pulumi.set(__self__, "account_id", account_id)
|
161
|
+
if action_on_muting_rule_window_ended is not None:
|
162
|
+
pulumi.set(__self__, "action_on_muting_rule_window_ended", action_on_muting_rule_window_ended)
|
138
163
|
if condition is not None:
|
139
164
|
pulumi.set(__self__, "condition", condition)
|
140
165
|
if description is not None:
|
@@ -148,16 +173,28 @@ class _AlertMutingRuleState:
|
|
148
173
|
|
149
174
|
@property
|
150
175
|
@pulumi.getter(name="accountId")
|
151
|
-
def account_id(self) -> Optional[pulumi.Input[
|
176
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
152
177
|
"""
|
153
178
|
The account id of the MutingRule.
|
154
179
|
"""
|
155
180
|
return pulumi.get(self, "account_id")
|
156
181
|
|
157
182
|
@account_id.setter
|
158
|
-
def account_id(self, value: Optional[pulumi.Input[
|
183
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
159
184
|
pulumi.set(self, "account_id", value)
|
160
185
|
|
186
|
+
@property
|
187
|
+
@pulumi.getter(name="actionOnMutingRuleWindowEnded")
|
188
|
+
def action_on_muting_rule_window_ended(self) -> Optional[pulumi.Input[str]]:
|
189
|
+
"""
|
190
|
+
The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
191
|
+
"""
|
192
|
+
return pulumi.get(self, "action_on_muting_rule_window_ended")
|
193
|
+
|
194
|
+
@action_on_muting_rule_window_ended.setter
|
195
|
+
def action_on_muting_rule_window_ended(self, value: Optional[pulumi.Input[str]]):
|
196
|
+
pulumi.set(self, "action_on_muting_rule_window_ended", value)
|
197
|
+
|
161
198
|
@property
|
162
199
|
@pulumi.getter
|
163
200
|
def condition(self) -> Optional[pulumi.Input['AlertMutingRuleConditionArgs']]:
|
@@ -224,12 +261,13 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
224
261
|
def __init__(__self__,
|
225
262
|
resource_name: str,
|
226
263
|
opts: Optional[pulumi.ResourceOptions] = None,
|
227
|
-
account_id: Optional[pulumi.Input[
|
228
|
-
|
264
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
265
|
+
action_on_muting_rule_window_ended: Optional[pulumi.Input[str]] = None,
|
266
|
+
condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
|
229
267
|
description: Optional[pulumi.Input[str]] = None,
|
230
268
|
enabled: Optional[pulumi.Input[bool]] = None,
|
231
269
|
name: Optional[pulumi.Input[str]] = None,
|
232
|
-
schedule: Optional[pulumi.Input[
|
270
|
+
schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None,
|
233
271
|
__props__=None):
|
234
272
|
"""
|
235
273
|
## Example Usage
|
@@ -239,35 +277,37 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
239
277
|
import pulumi_newrelic as newrelic
|
240
278
|
|
241
279
|
foo = newrelic.AlertMutingRule("foo",
|
242
|
-
|
243
|
-
conditions=[
|
244
|
-
newrelic.AlertMutingRuleConditionConditionArgs(
|
245
|
-
attribute="product",
|
246
|
-
operator="EQUALS",
|
247
|
-
values=["APM"],
|
248
|
-
),
|
249
|
-
newrelic.AlertMutingRuleConditionConditionArgs(
|
250
|
-
attribute="targetId",
|
251
|
-
operator="EQUALS",
|
252
|
-
values=["Muted"],
|
253
|
-
),
|
254
|
-
],
|
255
|
-
operator="AND",
|
256
|
-
),
|
257
|
-
description="muting rule test.",
|
280
|
+
name="Example Muting Rule",
|
258
281
|
enabled=True,
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
282
|
+
description="muting rule test.",
|
283
|
+
condition={
|
284
|
+
"conditions": [
|
285
|
+
{
|
286
|
+
"attribute": "product",
|
287
|
+
"operator": "EQUALS",
|
288
|
+
"values": ["APM"],
|
289
|
+
},
|
290
|
+
{
|
291
|
+
"attribute": "targetId",
|
292
|
+
"operator": "EQUALS",
|
293
|
+
"values": ["Muted"],
|
294
|
+
},
|
295
|
+
],
|
296
|
+
"operator": "AND",
|
297
|
+
},
|
298
|
+
schedule={
|
299
|
+
"start_time": "2021-01-28T15:30:00",
|
300
|
+
"end_time": "2021-01-28T16:30:00",
|
301
|
+
"time_zone": "America/Los_Angeles",
|
302
|
+
"repeat": "WEEKLY",
|
303
|
+
"weekly_repeat_days": [
|
266
304
|
"MONDAY",
|
267
305
|
"WEDNESDAY",
|
268
306
|
"FRIDAY",
|
269
307
|
],
|
270
|
-
|
308
|
+
"repeat_count": 42,
|
309
|
+
},
|
310
|
+
action_on_muting_rule_window_ended="CLOSE_ISSUES_ON_INACTIVE")
|
271
311
|
```
|
272
312
|
|
273
313
|
## Import
|
@@ -275,17 +315,18 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
275
315
|
Alert conditions can be imported using a composite ID of `<account_id>:<muting_rule_id>`, e.g.
|
276
316
|
|
277
317
|
```sh
|
278
|
-
|
318
|
+
$ pulumi import newrelic:index/alertMutingRule:AlertMutingRule foo 538291:6789035
|
279
319
|
```
|
280
320
|
|
281
321
|
:param str resource_name: The name of the resource.
|
282
322
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
283
|
-
:param pulumi.Input[
|
284
|
-
:param pulumi.Input[
|
323
|
+
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
324
|
+
:param pulumi.Input[str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
325
|
+
:param pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
285
326
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
286
327
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
287
328
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
288
|
-
:param pulumi.Input[
|
329
|
+
:param pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
289
330
|
"""
|
290
331
|
...
|
291
332
|
@overload
|
@@ -301,35 +342,37 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
301
342
|
import pulumi_newrelic as newrelic
|
302
343
|
|
303
344
|
foo = newrelic.AlertMutingRule("foo",
|
304
|
-
|
305
|
-
conditions=[
|
306
|
-
newrelic.AlertMutingRuleConditionConditionArgs(
|
307
|
-
attribute="product",
|
308
|
-
operator="EQUALS",
|
309
|
-
values=["APM"],
|
310
|
-
),
|
311
|
-
newrelic.AlertMutingRuleConditionConditionArgs(
|
312
|
-
attribute="targetId",
|
313
|
-
operator="EQUALS",
|
314
|
-
values=["Muted"],
|
315
|
-
),
|
316
|
-
],
|
317
|
-
operator="AND",
|
318
|
-
),
|
319
|
-
description="muting rule test.",
|
345
|
+
name="Example Muting Rule",
|
320
346
|
enabled=True,
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
347
|
+
description="muting rule test.",
|
348
|
+
condition={
|
349
|
+
"conditions": [
|
350
|
+
{
|
351
|
+
"attribute": "product",
|
352
|
+
"operator": "EQUALS",
|
353
|
+
"values": ["APM"],
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"attribute": "targetId",
|
357
|
+
"operator": "EQUALS",
|
358
|
+
"values": ["Muted"],
|
359
|
+
},
|
360
|
+
],
|
361
|
+
"operator": "AND",
|
362
|
+
},
|
363
|
+
schedule={
|
364
|
+
"start_time": "2021-01-28T15:30:00",
|
365
|
+
"end_time": "2021-01-28T16:30:00",
|
366
|
+
"time_zone": "America/Los_Angeles",
|
367
|
+
"repeat": "WEEKLY",
|
368
|
+
"weekly_repeat_days": [
|
328
369
|
"MONDAY",
|
329
370
|
"WEDNESDAY",
|
330
371
|
"FRIDAY",
|
331
372
|
],
|
332
|
-
|
373
|
+
"repeat_count": 42,
|
374
|
+
},
|
375
|
+
action_on_muting_rule_window_ended="CLOSE_ISSUES_ON_INACTIVE")
|
333
376
|
```
|
334
377
|
|
335
378
|
## Import
|
@@ -337,7 +380,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
337
380
|
Alert conditions can be imported using a composite ID of `<account_id>:<muting_rule_id>`, e.g.
|
338
381
|
|
339
382
|
```sh
|
340
|
-
|
383
|
+
$ pulumi import newrelic:index/alertMutingRule:AlertMutingRule foo 538291:6789035
|
341
384
|
```
|
342
385
|
|
343
386
|
:param str resource_name: The name of the resource.
|
@@ -355,12 +398,13 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
355
398
|
def _internal_init(__self__,
|
356
399
|
resource_name: str,
|
357
400
|
opts: Optional[pulumi.ResourceOptions] = None,
|
358
|
-
account_id: Optional[pulumi.Input[
|
359
|
-
|
401
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
402
|
+
action_on_muting_rule_window_ended: Optional[pulumi.Input[str]] = None,
|
403
|
+
condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
|
360
404
|
description: Optional[pulumi.Input[str]] = None,
|
361
405
|
enabled: Optional[pulumi.Input[bool]] = None,
|
362
406
|
name: Optional[pulumi.Input[str]] = None,
|
363
|
-
schedule: Optional[pulumi.Input[
|
407
|
+
schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None,
|
364
408
|
__props__=None):
|
365
409
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
366
410
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -371,6 +415,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
371
415
|
__props__ = AlertMutingRuleArgs.__new__(AlertMutingRuleArgs)
|
372
416
|
|
373
417
|
__props__.__dict__["account_id"] = account_id
|
418
|
+
__props__.__dict__["action_on_muting_rule_window_ended"] = action_on_muting_rule_window_ended
|
374
419
|
if condition is None and not opts.urn:
|
375
420
|
raise TypeError("Missing required property 'condition'")
|
376
421
|
__props__.__dict__["condition"] = condition
|
@@ -390,12 +435,13 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
390
435
|
def get(resource_name: str,
|
391
436
|
id: pulumi.Input[str],
|
392
437
|
opts: Optional[pulumi.ResourceOptions] = None,
|
393
|
-
account_id: Optional[pulumi.Input[
|
394
|
-
|
438
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
439
|
+
action_on_muting_rule_window_ended: Optional[pulumi.Input[str]] = None,
|
440
|
+
condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
|
395
441
|
description: Optional[pulumi.Input[str]] = None,
|
396
442
|
enabled: Optional[pulumi.Input[bool]] = None,
|
397
443
|
name: Optional[pulumi.Input[str]] = None,
|
398
|
-
schedule: Optional[pulumi.Input[
|
444
|
+
schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None) -> 'AlertMutingRule':
|
399
445
|
"""
|
400
446
|
Get an existing AlertMutingRule resource's state with the given name, id, and optional extra
|
401
447
|
properties used to qualify the lookup.
|
@@ -403,18 +449,20 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
403
449
|
:param str resource_name: The unique name of the resulting resource.
|
404
450
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
405
451
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
406
|
-
:param pulumi.Input[
|
407
|
-
:param pulumi.Input[
|
452
|
+
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
453
|
+
:param pulumi.Input[str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
454
|
+
:param pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
408
455
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
409
456
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
410
457
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
411
|
-
:param pulumi.Input[
|
458
|
+
:param pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
412
459
|
"""
|
413
460
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
414
461
|
|
415
462
|
__props__ = _AlertMutingRuleState.__new__(_AlertMutingRuleState)
|
416
463
|
|
417
464
|
__props__.__dict__["account_id"] = account_id
|
465
|
+
__props__.__dict__["action_on_muting_rule_window_ended"] = action_on_muting_rule_window_ended
|
418
466
|
__props__.__dict__["condition"] = condition
|
419
467
|
__props__.__dict__["description"] = description
|
420
468
|
__props__.__dict__["enabled"] = enabled
|
@@ -424,12 +472,20 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
424
472
|
|
425
473
|
@property
|
426
474
|
@pulumi.getter(name="accountId")
|
427
|
-
def account_id(self) -> pulumi.Output[
|
475
|
+
def account_id(self) -> pulumi.Output[str]:
|
428
476
|
"""
|
429
477
|
The account id of the MutingRule.
|
430
478
|
"""
|
431
479
|
return pulumi.get(self, "account_id")
|
432
480
|
|
481
|
+
@property
|
482
|
+
@pulumi.getter(name="actionOnMutingRuleWindowEnded")
|
483
|
+
def action_on_muting_rule_window_ended(self) -> pulumi.Output[str]:
|
484
|
+
"""
|
485
|
+
The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
486
|
+
"""
|
487
|
+
return pulumi.get(self, "action_on_muting_rule_window_ended")
|
488
|
+
|
433
489
|
@property
|
434
490
|
@pulumi.getter
|
435
491
|
def condition(self) -> pulumi.Output['outputs.AlertMutingRuleCondition']:
|