pulumi-newrelic 5.21.0a1710157101__py3-none-any.whl → 5.39.0a1736849617__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. pulumi_newrelic/__init__.py +9 -0
  2. pulumi_newrelic/_inputs.py +7153 -461
  3. pulumi_newrelic/_utilities.py +41 -5
  4. pulumi_newrelic/account_management.py +11 -6
  5. pulumi_newrelic/alert_channel.py +116 -127
  6. pulumi_newrelic/alert_condition.py +116 -129
  7. pulumi_newrelic/alert_muting_rule.py +128 -76
  8. pulumi_newrelic/alert_policy.py +78 -75
  9. pulumi_newrelic/alert_policy_channel.py +77 -68
  10. pulumi_newrelic/api_access_key.py +45 -28
  11. pulumi_newrelic/browser_application.py +77 -78
  12. pulumi_newrelic/cloud/_inputs.py +2527 -1082
  13. pulumi_newrelic/cloud/aws_govcloud_integrations.py +133 -128
  14. pulumi_newrelic/cloud/aws_govcloud_link_account.py +23 -20
  15. pulumi_newrelic/cloud/aws_integrations.py +298 -1326
  16. pulumi_newrelic/cloud/aws_link_account.py +23 -20
  17. pulumi_newrelic/cloud/azure_integrations.py +521 -483
  18. pulumi_newrelic/cloud/azure_link_account.py +34 -31
  19. pulumi_newrelic/cloud/gcp_integrations.py +341 -322
  20. pulumi_newrelic/cloud/gcp_link_account.py +23 -20
  21. pulumi_newrelic/cloud/outputs.py +327 -1072
  22. pulumi_newrelic/config/__init__.pyi +6 -1
  23. pulumi_newrelic/config/vars.py +7 -2
  24. pulumi_newrelic/data_partition_rule.py +19 -18
  25. pulumi_newrelic/entity_tags.py +32 -31
  26. pulumi_newrelic/events_to_metrics_rule.py +23 -20
  27. pulumi_newrelic/get_account.py +24 -16
  28. pulumi_newrelic/get_alert_channel.py +26 -13
  29. pulumi_newrelic/get_alert_policy.py +35 -12
  30. pulumi_newrelic/get_application.py +39 -31
  31. pulumi_newrelic/get_authentication_domain.py +17 -13
  32. pulumi_newrelic/get_cloud_account.py +26 -18
  33. pulumi_newrelic/get_entity.py +90 -147
  34. pulumi_newrelic/get_group.py +58 -13
  35. pulumi_newrelic/get_key_transaction.py +109 -34
  36. pulumi_newrelic/get_notification_destination.py +64 -14
  37. pulumi_newrelic/get_obfuscation_expression.py +36 -28
  38. pulumi_newrelic/get_service_level_alert_helper.py +135 -117
  39. pulumi_newrelic/get_test_grok_pattern.py +29 -18
  40. pulumi_newrelic/get_user.py +17 -9
  41. pulumi_newrelic/group.py +5 -146
  42. pulumi_newrelic/infra_alert_condition.py +160 -167
  43. pulumi_newrelic/insights/_inputs.py +43 -0
  44. pulumi_newrelic/insights/event.py +48 -47
  45. pulumi_newrelic/insights/outputs.py +5 -0
  46. pulumi_newrelic/key_transaction.py +464 -0
  47. pulumi_newrelic/log_parsing_rule.py +25 -24
  48. pulumi_newrelic/monitor_downtime.py +211 -225
  49. pulumi_newrelic/notification_channel.py +381 -366
  50. pulumi_newrelic/notification_destination.py +192 -54
  51. pulumi_newrelic/nrql_alert_condition.py +345 -262
  52. pulumi_newrelic/nrql_drop_rule.py +31 -30
  53. pulumi_newrelic/obfuscation_expression.py +23 -20
  54. pulumi_newrelic/obfuscation_rule.py +38 -33
  55. pulumi_newrelic/one_dashboard.py +29 -24
  56. pulumi_newrelic/one_dashboard_json.py +19 -14
  57. pulumi_newrelic/one_dashboard_raw.py +110 -105
  58. pulumi_newrelic/outputs.py +2446 -245
  59. pulumi_newrelic/plugins/_inputs.py +145 -10
  60. pulumi_newrelic/plugins/application_settings.py +25 -36
  61. pulumi_newrelic/plugins/outputs.py +15 -10
  62. pulumi_newrelic/plugins/workload.py +215 -92
  63. pulumi_newrelic/provider.py +27 -33
  64. pulumi_newrelic/pulumi-plugin.json +2 -1
  65. pulumi_newrelic/service_level.py +185 -186
  66. pulumi_newrelic/synthetics/_inputs.py +159 -2
  67. pulumi_newrelic/synthetics/alert_condition.py +87 -98
  68. pulumi_newrelic/synthetics/broken_links_monitor.py +216 -99
  69. pulumi_newrelic/synthetics/cert_check_monitor.py +219 -100
  70. pulumi_newrelic/synthetics/get_private_location.py +34 -30
  71. pulumi_newrelic/synthetics/get_secure_credential.py +24 -16
  72. pulumi_newrelic/synthetics/monitor.py +348 -193
  73. pulumi_newrelic/synthetics/multi_location_alert_condition.py +105 -100
  74. pulumi_newrelic/synthetics/outputs.py +7 -2
  75. pulumi_newrelic/synthetics/private_location.py +25 -20
  76. pulumi_newrelic/synthetics/script_monitor.py +317 -182
  77. pulumi_newrelic/synthetics/secure_credential.py +23 -22
  78. pulumi_newrelic/synthetics/step_monitor.py +405 -100
  79. pulumi_newrelic/user.py +13 -10
  80. pulumi_newrelic/workflow.py +209 -196
  81. {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.dist-info}/METADATA +7 -6
  82. pulumi_newrelic-5.39.0a1736849617.dist-info/RECORD +90 -0
  83. {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.dist-info}/WHEEL +1 -1
  84. pulumi_newrelic-5.21.0a1710157101.dist-info/RECORD +0 -89
  85. {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.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[int]] = None,
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[int] account_id: The account id of the MutingRule.
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[int]]:
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[int]]):
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[int]] = None,
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[int] account_id: The account id of the MutingRule.
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[int]]:
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[int]]):
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,53 +261,54 @@ 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[int]] = None,
228
- condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
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[pulumi.InputType['AlertMutingRuleScheduleArgs']]] = None,
270
+ schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None,
233
271
  __props__=None):
234
272
  """
235
273
  ## Example Usage
236
274
 
237
- <!--Start PulumiCodeChooser -->
238
275
  ```python
239
276
  import pulumi
240
277
  import pulumi_newrelic as newrelic
241
278
 
242
279
  foo = newrelic.AlertMutingRule("foo",
243
- condition=newrelic.AlertMutingRuleConditionArgs(
244
- conditions=[
245
- newrelic.AlertMutingRuleConditionConditionArgs(
246
- attribute="product",
247
- operator="EQUALS",
248
- values=["APM"],
249
- ),
250
- newrelic.AlertMutingRuleConditionConditionArgs(
251
- attribute="targetId",
252
- operator="EQUALS",
253
- values=["Muted"],
254
- ),
255
- ],
256
- operator="AND",
257
- ),
258
- description="muting rule test.",
280
+ name="Example Muting Rule",
259
281
  enabled=True,
260
- schedule=newrelic.AlertMutingRuleScheduleArgs(
261
- end_time="2021-01-28T16:30:00",
262
- repeat="WEEKLY",
263
- repeat_count=42,
264
- start_time="2021-01-28T15:30:00",
265
- time_zone="America/Los_Angeles",
266
- weekly_repeat_days=[
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": [
267
304
  "MONDAY",
268
305
  "WEDNESDAY",
269
306
  "FRIDAY",
270
307
  ],
271
- ))
308
+ "repeat_count": 42,
309
+ },
310
+ action_on_muting_rule_window_ended="CLOSE_ISSUES_ON_INACTIVE")
272
311
  ```
273
- <!--End PulumiCodeChooser -->
274
312
 
275
313
  ## Import
276
314
 
@@ -282,12 +320,13 @@ class AlertMutingRule(pulumi.CustomResource):
282
320
 
283
321
  :param str resource_name: The name of the resource.
284
322
  :param pulumi.ResourceOptions opts: Options for the resource.
285
- :param pulumi.Input[int] account_id: The account id of the MutingRule.
286
- :param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
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.
287
326
  :param pulumi.Input[str] description: The description of the MutingRule.
288
327
  :param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
289
328
  :param pulumi.Input[str] name: The name of the MutingRule.
290
- :param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
329
+ :param pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
291
330
  """
292
331
  ...
293
332
  @overload
@@ -298,43 +337,43 @@ class AlertMutingRule(pulumi.CustomResource):
298
337
  """
299
338
  ## Example Usage
300
339
 
301
- <!--Start PulumiCodeChooser -->
302
340
  ```python
303
341
  import pulumi
304
342
  import pulumi_newrelic as newrelic
305
343
 
306
344
  foo = newrelic.AlertMutingRule("foo",
307
- condition=newrelic.AlertMutingRuleConditionArgs(
308
- conditions=[
309
- newrelic.AlertMutingRuleConditionConditionArgs(
310
- attribute="product",
311
- operator="EQUALS",
312
- values=["APM"],
313
- ),
314
- newrelic.AlertMutingRuleConditionConditionArgs(
315
- attribute="targetId",
316
- operator="EQUALS",
317
- values=["Muted"],
318
- ),
319
- ],
320
- operator="AND",
321
- ),
322
- description="muting rule test.",
345
+ name="Example Muting Rule",
323
346
  enabled=True,
324
- schedule=newrelic.AlertMutingRuleScheduleArgs(
325
- end_time="2021-01-28T16:30:00",
326
- repeat="WEEKLY",
327
- repeat_count=42,
328
- start_time="2021-01-28T15:30:00",
329
- time_zone="America/Los_Angeles",
330
- weekly_repeat_days=[
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": [
331
369
  "MONDAY",
332
370
  "WEDNESDAY",
333
371
  "FRIDAY",
334
372
  ],
335
- ))
373
+ "repeat_count": 42,
374
+ },
375
+ action_on_muting_rule_window_ended="CLOSE_ISSUES_ON_INACTIVE")
336
376
  ```
337
- <!--End PulumiCodeChooser -->
338
377
 
339
378
  ## Import
340
379
 
@@ -359,12 +398,13 @@ class AlertMutingRule(pulumi.CustomResource):
359
398
  def _internal_init(__self__,
360
399
  resource_name: str,
361
400
  opts: Optional[pulumi.ResourceOptions] = None,
362
- account_id: Optional[pulumi.Input[int]] = None,
363
- condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
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,
364
404
  description: Optional[pulumi.Input[str]] = None,
365
405
  enabled: Optional[pulumi.Input[bool]] = None,
366
406
  name: Optional[pulumi.Input[str]] = None,
367
- schedule: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']]] = None,
407
+ schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None,
368
408
  __props__=None):
369
409
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
370
410
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -375,6 +415,7 @@ class AlertMutingRule(pulumi.CustomResource):
375
415
  __props__ = AlertMutingRuleArgs.__new__(AlertMutingRuleArgs)
376
416
 
377
417
  __props__.__dict__["account_id"] = account_id
418
+ __props__.__dict__["action_on_muting_rule_window_ended"] = action_on_muting_rule_window_ended
378
419
  if condition is None and not opts.urn:
379
420
  raise TypeError("Missing required property 'condition'")
380
421
  __props__.__dict__["condition"] = condition
@@ -394,12 +435,13 @@ class AlertMutingRule(pulumi.CustomResource):
394
435
  def get(resource_name: str,
395
436
  id: pulumi.Input[str],
396
437
  opts: Optional[pulumi.ResourceOptions] = None,
397
- account_id: Optional[pulumi.Input[int]] = None,
398
- condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
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,
399
441
  description: Optional[pulumi.Input[str]] = None,
400
442
  enabled: Optional[pulumi.Input[bool]] = None,
401
443
  name: Optional[pulumi.Input[str]] = None,
402
- schedule: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']]] = None) -> 'AlertMutingRule':
444
+ schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None) -> 'AlertMutingRule':
403
445
  """
404
446
  Get an existing AlertMutingRule resource's state with the given name, id, and optional extra
405
447
  properties used to qualify the lookup.
@@ -407,18 +449,20 @@ class AlertMutingRule(pulumi.CustomResource):
407
449
  :param str resource_name: The unique name of the resulting resource.
408
450
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
409
451
  :param pulumi.ResourceOptions opts: Options for the resource.
410
- :param pulumi.Input[int] account_id: The account id of the MutingRule.
411
- :param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
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.
412
455
  :param pulumi.Input[str] description: The description of the MutingRule.
413
456
  :param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
414
457
  :param pulumi.Input[str] name: The name of the MutingRule.
415
- :param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
458
+ :param pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
416
459
  """
417
460
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
418
461
 
419
462
  __props__ = _AlertMutingRuleState.__new__(_AlertMutingRuleState)
420
463
 
421
464
  __props__.__dict__["account_id"] = account_id
465
+ __props__.__dict__["action_on_muting_rule_window_ended"] = action_on_muting_rule_window_ended
422
466
  __props__.__dict__["condition"] = condition
423
467
  __props__.__dict__["description"] = description
424
468
  __props__.__dict__["enabled"] = enabled
@@ -428,12 +472,20 @@ class AlertMutingRule(pulumi.CustomResource):
428
472
 
429
473
  @property
430
474
  @pulumi.getter(name="accountId")
431
- def account_id(self) -> pulumi.Output[int]:
475
+ def account_id(self) -> pulumi.Output[str]:
432
476
  """
433
477
  The account id of the MutingRule.
434
478
  """
435
479
  return pulumi.get(self, "account_id")
436
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
+
437
489
  @property
438
490
  @pulumi.getter
439
491
  def condition(self) -> pulumi.Output['outputs.AlertMutingRuleCondition']: