pulumi-newrelic 5.22.0__py3-none-any.whl → 5.58.0a1763707205__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-newrelic might be problematic. Click here for more details.

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +28 -1
  2. pulumi_newrelic/_inputs.py +10385 -2976
  3. pulumi_newrelic/_utilities.py +50 -10
  4. pulumi_newrelic/account_management.py +48 -42
  5. pulumi_newrelic/alert_channel.py +165 -175
  6. pulumi_newrelic/alert_condition.py +307 -319
  7. pulumi_newrelic/alert_muting_rule.py +193 -140
  8. pulumi_newrelic/alert_policy.py +121 -117
  9. pulumi_newrelic/alert_policy_channel.py +89 -79
  10. pulumi_newrelic/api_access_key.py +195 -193
  11. pulumi_newrelic/browser_application.py +120 -114
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2714
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
  16. pulumi_newrelic/cloud/aws_integrations.py +510 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +80 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +673 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +121 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +428 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +65 -61
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2321
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +8 -3
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +119 -117
  28. pulumi_newrelic/entity_tags.py +111 -53
  29. pulumi_newrelic/events_to_metrics_rule.py +106 -102
  30. pulumi_newrelic/get_account.py +41 -33
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +82 -33
  33. pulumi_newrelic/get_application.py +51 -43
  34. pulumi_newrelic/get_authentication_domain.py +27 -23
  35. pulumi_newrelic/get_cloud_account.py +43 -35
  36. pulumi_newrelic/get_entity.py +126 -183
  37. pulumi_newrelic/get_group.py +76 -31
  38. pulumi_newrelic/get_key_transaction.py +117 -42
  39. pulumi_newrelic/get_notification_destination.py +75 -38
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -39
  41. pulumi_newrelic/get_service_level_alert_helper.py +189 -171
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -36
  43. pulumi_newrelic/get_user.py +39 -31
  44. pulumi_newrelic/group.py +59 -199
  45. pulumi_newrelic/infra_alert_condition.py +399 -405
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +71 -28
  48. pulumi_newrelic/insights/event.py +54 -52
  49. pulumi_newrelic/insights/outputs.py +28 -23
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +159 -157
  52. pulumi_newrelic/monitor_downtime.py +311 -331
  53. pulumi_newrelic/notification_channel.py +534 -464
  54. pulumi_newrelic/notification_destination.py +238 -141
  55. pulumi_newrelic/nrql_alert_condition.py +820 -614
  56. pulumi_newrelic/nrql_drop_rule.py +113 -151
  57. pulumi_newrelic/obfuscation_expression.py +80 -76
  58. pulumi_newrelic/obfuscation_rule.py +115 -109
  59. pulumi_newrelic/one_dashboard.py +110 -104
  60. pulumi_newrelic/one_dashboard_json.py +69 -63
  61. pulumi_newrelic/one_dashboard_raw.py +212 -206
  62. pulumi_newrelic/outputs.py +4936 -2234
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +519 -89
  66. pulumi_newrelic/plugins/application_settings.py +463 -187
  67. pulumi_newrelic/plugins/outputs.py +336 -74
  68. pulumi_newrelic/plugins/workload.py +313 -189
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +263 -263
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +265 -108
  74. pulumi_newrelic/synthetics/alert_condition.py +170 -180
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -47
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
  79. pulumi_newrelic/synthetics/monitor.py +658 -460
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
  81. pulumi_newrelic/synthetics/outputs.py +92 -87
  82. pulumi_newrelic/synthetics/private_location.py +118 -112
  83. pulumi_newrelic/synthetics/script_monitor.py +613 -373
  84. pulumi_newrelic/synthetics/secure_credential.py +97 -95
  85. pulumi_newrelic/synthetics/step_monitor.py +445 -275
  86. pulumi_newrelic/user.py +84 -80
  87. pulumi_newrelic/workflow.py +336 -322
  88. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
  92. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
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 *
@@ -17,24 +22,28 @@ __all__ = ['AlertMutingRuleArgs', 'AlertMutingRule']
17
22
  class AlertMutingRuleArgs:
18
23
  def __init__(__self__, *,
19
24
  condition: pulumi.Input['AlertMutingRuleConditionArgs'],
20
- enabled: pulumi.Input[bool],
21
- account_id: Optional[pulumi.Input[int]] = None,
22
- description: Optional[pulumi.Input[str]] = None,
23
- name: Optional[pulumi.Input[str]] = None,
25
+ enabled: pulumi.Input[_builtins.bool],
26
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
27
+ action_on_muting_rule_window_ended: Optional[pulumi.Input[_builtins.str]] = None,
28
+ description: Optional[pulumi.Input[_builtins.str]] = None,
29
+ name: Optional[pulumi.Input[_builtins.str]] = None,
24
30
  schedule: Optional[pulumi.Input['AlertMutingRuleScheduleArgs']] = None):
25
31
  """
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
- :param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
29
- :param pulumi.Input[int] account_id: The account id of the MutingRule.
30
- :param pulumi.Input[str] description: The description of the MutingRule.
31
- :param pulumi.Input[str] name: The name of the MutingRule.
34
+ :param pulumi.Input[_builtins.bool] enabled: Whether the MutingRule is enabled.
35
+ :param pulumi.Input[_builtins.str] account_id: The account id of the MutingRule.
36
+ :param pulumi.Input[_builtins.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`.
37
+ :param pulumi.Input[_builtins.str] description: The description of the MutingRule.
38
+ :param pulumi.Input[_builtins.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
33
40
  """
34
41
  pulumi.set(__self__, "condition", condition)
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:
@@ -42,7 +51,7 @@ class AlertMutingRuleArgs:
42
51
  if schedule is not None:
43
52
  pulumi.set(__self__, "schedule", schedule)
44
53
 
45
- @property
54
+ @_builtins.property
46
55
  @pulumi.getter
47
56
  def condition(self) -> pulumi.Input['AlertMutingRuleConditionArgs']:
48
57
  """
@@ -54,55 +63,67 @@ class AlertMutingRuleArgs:
54
63
  def condition(self, value: pulumi.Input['AlertMutingRuleConditionArgs']):
55
64
  pulumi.set(self, "condition", value)
56
65
 
57
- @property
66
+ @_builtins.property
58
67
  @pulumi.getter
59
- def enabled(self) -> pulumi.Input[bool]:
68
+ def enabled(self) -> pulumi.Input[_builtins.bool]:
60
69
  """
61
70
  Whether the MutingRule is enabled.
62
71
  """
63
72
  return pulumi.get(self, "enabled")
64
73
 
65
74
  @enabled.setter
66
- def enabled(self, value: pulumi.Input[bool]):
75
+ def enabled(self, value: pulumi.Input[_builtins.bool]):
67
76
  pulumi.set(self, "enabled", value)
68
77
 
69
- @property
78
+ @_builtins.property
70
79
  @pulumi.getter(name="accountId")
71
- def account_id(self) -> Optional[pulumi.Input[int]]:
80
+ def account_id(self) -> Optional[pulumi.Input[_builtins.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[_builtins.str]]):
79
88
  pulumi.set(self, "account_id", value)
80
89
 
81
- @property
90
+ @_builtins.property
91
+ @pulumi.getter(name="actionOnMutingRuleWindowEnded")
92
+ def action_on_muting_rule_window_ended(self) -> Optional[pulumi.Input[_builtins.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[_builtins.str]]):
100
+ pulumi.set(self, "action_on_muting_rule_window_ended", value)
101
+
102
+ @_builtins.property
82
103
  @pulumi.getter
83
- def description(self) -> Optional[pulumi.Input[str]]:
104
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
84
105
  """
85
106
  The description of the MutingRule.
86
107
  """
87
108
  return pulumi.get(self, "description")
88
109
 
89
110
  @description.setter
90
- def description(self, value: Optional[pulumi.Input[str]]):
111
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
91
112
  pulumi.set(self, "description", value)
92
113
 
93
- @property
114
+ @_builtins.property
94
115
  @pulumi.getter
95
- def name(self) -> Optional[pulumi.Input[str]]:
116
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
96
117
  """
97
118
  The name of the MutingRule.
98
119
  """
99
120
  return pulumi.get(self, "name")
100
121
 
101
122
  @name.setter
102
- def name(self, value: Optional[pulumi.Input[str]]):
123
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
103
124
  pulumi.set(self, "name", value)
104
125
 
105
- @property
126
+ @_builtins.property
106
127
  @pulumi.getter
107
128
  def schedule(self) -> Optional[pulumi.Input['AlertMutingRuleScheduleArgs']]:
108
129
  """
@@ -118,23 +139,27 @@ 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[_builtins.str]] = None,
143
+ action_on_muting_rule_window_ended: Optional[pulumi.Input[_builtins.str]] = None,
122
144
  condition: Optional[pulumi.Input['AlertMutingRuleConditionArgs']] = None,
123
- description: Optional[pulumi.Input[str]] = None,
124
- enabled: Optional[pulumi.Input[bool]] = None,
125
- name: Optional[pulumi.Input[str]] = None,
145
+ description: Optional[pulumi.Input[_builtins.str]] = None,
146
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
147
+ name: Optional[pulumi.Input[_builtins.str]] = None,
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[_builtins.str] account_id: The account id of the MutingRule.
152
+ :param pulumi.Input[_builtins.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
- :param pulumi.Input[str] description: The description of the MutingRule.
132
- :param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
133
- :param pulumi.Input[str] name: The name of the MutingRule.
154
+ :param pulumi.Input[_builtins.str] description: The description of the MutingRule.
155
+ :param pulumi.Input[_builtins.bool] enabled: Whether the MutingRule is enabled.
156
+ :param pulumi.Input[_builtins.str] name: The name of the MutingRule.
134
157
  :param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
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:
@@ -146,19 +171,31 @@ class _AlertMutingRuleState:
146
171
  if schedule is not None:
147
172
  pulumi.set(__self__, "schedule", schedule)
148
173
 
149
- @property
174
+ @_builtins.property
150
175
  @pulumi.getter(name="accountId")
151
- def account_id(self) -> Optional[pulumi.Input[int]]:
176
+ def account_id(self) -> Optional[pulumi.Input[_builtins.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[_builtins.str]]):
159
184
  pulumi.set(self, "account_id", value)
160
185
 
161
- @property
186
+ @_builtins.property
187
+ @pulumi.getter(name="actionOnMutingRuleWindowEnded")
188
+ def action_on_muting_rule_window_ended(self) -> Optional[pulumi.Input[_builtins.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[_builtins.str]]):
196
+ pulumi.set(self, "action_on_muting_rule_window_ended", value)
197
+
198
+ @_builtins.property
162
199
  @pulumi.getter
163
200
  def condition(self) -> Optional[pulumi.Input['AlertMutingRuleConditionArgs']]:
164
201
  """
@@ -170,43 +207,43 @@ class _AlertMutingRuleState:
170
207
  def condition(self, value: Optional[pulumi.Input['AlertMutingRuleConditionArgs']]):
171
208
  pulumi.set(self, "condition", value)
172
209
 
173
- @property
210
+ @_builtins.property
174
211
  @pulumi.getter
175
- def description(self) -> Optional[pulumi.Input[str]]:
212
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
176
213
  """
177
214
  The description of the MutingRule.
178
215
  """
179
216
  return pulumi.get(self, "description")
180
217
 
181
218
  @description.setter
182
- def description(self, value: Optional[pulumi.Input[str]]):
219
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
183
220
  pulumi.set(self, "description", value)
184
221
 
185
- @property
222
+ @_builtins.property
186
223
  @pulumi.getter
187
- def enabled(self) -> Optional[pulumi.Input[bool]]:
224
+ def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
188
225
  """
189
226
  Whether the MutingRule is enabled.
190
227
  """
191
228
  return pulumi.get(self, "enabled")
192
229
 
193
230
  @enabled.setter
194
- def enabled(self, value: Optional[pulumi.Input[bool]]):
231
+ def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
195
232
  pulumi.set(self, "enabled", value)
196
233
 
197
- @property
234
+ @_builtins.property
198
235
  @pulumi.getter
199
- def name(self) -> Optional[pulumi.Input[str]]:
236
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
200
237
  """
201
238
  The name of the MutingRule.
202
239
  """
203
240
  return pulumi.get(self, "name")
204
241
 
205
242
  @name.setter
206
- def name(self, value: Optional[pulumi.Input[str]]):
243
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
207
244
  pulumi.set(self, "name", value)
208
245
 
209
- @property
246
+ @_builtins.property
210
247
  @pulumi.getter
211
248
  def schedule(self) -> Optional[pulumi.Input['AlertMutingRuleScheduleArgs']]:
212
249
  """
@@ -219,62 +256,64 @@ class _AlertMutingRuleState:
219
256
  pulumi.set(self, "schedule", value)
220
257
 
221
258
 
259
+ @pulumi.type_token("newrelic:index/alertMutingRule:AlertMutingRule")
222
260
  class AlertMutingRule(pulumi.CustomResource):
223
261
  @overload
224
262
  def __init__(__self__,
225
263
  resource_name: str,
226
264
  opts: Optional[pulumi.ResourceOptions] = None,
227
- account_id: Optional[pulumi.Input[int]] = None,
228
- condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
229
- description: Optional[pulumi.Input[str]] = None,
230
- enabled: Optional[pulumi.Input[bool]] = None,
231
- name: Optional[pulumi.Input[str]] = None,
232
- schedule: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']]] = None,
265
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
266
+ action_on_muting_rule_window_ended: Optional[pulumi.Input[_builtins.str]] = None,
267
+ condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
268
+ description: Optional[pulumi.Input[_builtins.str]] = None,
269
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
270
+ name: Optional[pulumi.Input[_builtins.str]] = None,
271
+ schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None,
233
272
  __props__=None):
234
273
  """
235
274
  ## Example Usage
236
275
 
237
- <!--Start PulumiCodeChooser -->
238
276
  ```python
239
277
  import pulumi
240
278
  import pulumi_newrelic as newrelic
241
279
 
242
280
  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.",
281
+ name="Example Muting Rule",
259
282
  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=[
283
+ description="muting rule test.",
284
+ condition={
285
+ "conditions": [
286
+ {
287
+ "attribute": "product",
288
+ "operator": "EQUALS",
289
+ "values": ["APM"],
290
+ },
291
+ {
292
+ "attribute": "targetId",
293
+ "operator": "EQUALS",
294
+ "values": ["Muted"],
295
+ },
296
+ ],
297
+ "operator": "AND",
298
+ },
299
+ schedule={
300
+ "start_time": "2021-01-28T15:30:00",
301
+ "end_time": "2021-01-28T16:30:00",
302
+ "time_zone": "America/Los_Angeles",
303
+ "repeat": "WEEKLY",
304
+ "weekly_repeat_days": [
267
305
  "MONDAY",
268
306
  "WEDNESDAY",
269
307
  "FRIDAY",
270
308
  ],
271
- ))
309
+ "repeat_count": 42,
310
+ },
311
+ action_on_muting_rule_window_ended="CLOSE_ISSUES_ON_INACTIVE")
272
312
  ```
273
- <!--End PulumiCodeChooser -->
274
313
 
275
314
  ## Import
276
315
 
277
- Alert conditions can be imported using a composite ID of `<account_id>:<muting_rule_id>`, e.g.
316
+ Alert Muting Rules can be imported using a composite ID of `<account_id>:<muting_rule_id>`, e.g.
278
317
 
279
318
  ```sh
280
319
  $ pulumi import newrelic:index/alertMutingRule:AlertMutingRule foo 538291:6789035
@@ -282,12 +321,13 @@ class AlertMutingRule(pulumi.CustomResource):
282
321
 
283
322
  :param str resource_name: The name of the resource.
284
323
  :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.
287
- :param pulumi.Input[str] description: The description of the MutingRule.
288
- :param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
289
- :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
324
+ :param pulumi.Input[_builtins.str] account_id: The account id of the MutingRule.
325
+ :param pulumi.Input[_builtins.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`.
326
+ :param pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
327
+ :param pulumi.Input[_builtins.str] description: The description of the MutingRule.
328
+ :param pulumi.Input[_builtins.bool] enabled: Whether the MutingRule is enabled.
329
+ :param pulumi.Input[_builtins.str] name: The name of the MutingRule.
330
+ :param pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
291
331
  """
292
332
  ...
293
333
  @overload
@@ -298,47 +338,47 @@ class AlertMutingRule(pulumi.CustomResource):
298
338
  """
299
339
  ## Example Usage
300
340
 
301
- <!--Start PulumiCodeChooser -->
302
341
  ```python
303
342
  import pulumi
304
343
  import pulumi_newrelic as newrelic
305
344
 
306
345
  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.",
346
+ name="Example Muting Rule",
323
347
  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=[
348
+ description="muting rule test.",
349
+ condition={
350
+ "conditions": [
351
+ {
352
+ "attribute": "product",
353
+ "operator": "EQUALS",
354
+ "values": ["APM"],
355
+ },
356
+ {
357
+ "attribute": "targetId",
358
+ "operator": "EQUALS",
359
+ "values": ["Muted"],
360
+ },
361
+ ],
362
+ "operator": "AND",
363
+ },
364
+ schedule={
365
+ "start_time": "2021-01-28T15:30:00",
366
+ "end_time": "2021-01-28T16:30:00",
367
+ "time_zone": "America/Los_Angeles",
368
+ "repeat": "WEEKLY",
369
+ "weekly_repeat_days": [
331
370
  "MONDAY",
332
371
  "WEDNESDAY",
333
372
  "FRIDAY",
334
373
  ],
335
- ))
374
+ "repeat_count": 42,
375
+ },
376
+ action_on_muting_rule_window_ended="CLOSE_ISSUES_ON_INACTIVE")
336
377
  ```
337
- <!--End PulumiCodeChooser -->
338
378
 
339
379
  ## Import
340
380
 
341
- Alert conditions can be imported using a composite ID of `<account_id>:<muting_rule_id>`, e.g.
381
+ Alert Muting Rules can be imported using a composite ID of `<account_id>:<muting_rule_id>`, e.g.
342
382
 
343
383
  ```sh
344
384
  $ pulumi import newrelic:index/alertMutingRule:AlertMutingRule foo 538291:6789035
@@ -359,12 +399,13 @@ class AlertMutingRule(pulumi.CustomResource):
359
399
  def _internal_init(__self__,
360
400
  resource_name: str,
361
401
  opts: Optional[pulumi.ResourceOptions] = None,
362
- account_id: Optional[pulumi.Input[int]] = None,
363
- condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
364
- description: Optional[pulumi.Input[str]] = None,
365
- enabled: Optional[pulumi.Input[bool]] = None,
366
- name: Optional[pulumi.Input[str]] = None,
367
- schedule: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']]] = None,
402
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
403
+ action_on_muting_rule_window_ended: Optional[pulumi.Input[_builtins.str]] = None,
404
+ condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
405
+ description: Optional[pulumi.Input[_builtins.str]] = None,
406
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
407
+ name: Optional[pulumi.Input[_builtins.str]] = None,
408
+ schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None,
368
409
  __props__=None):
369
410
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
370
411
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -375,6 +416,7 @@ class AlertMutingRule(pulumi.CustomResource):
375
416
  __props__ = AlertMutingRuleArgs.__new__(AlertMutingRuleArgs)
376
417
 
377
418
  __props__.__dict__["account_id"] = account_id
419
+ __props__.__dict__["action_on_muting_rule_window_ended"] = action_on_muting_rule_window_ended
378
420
  if condition is None and not opts.urn:
379
421
  raise TypeError("Missing required property 'condition'")
380
422
  __props__.__dict__["condition"] = condition
@@ -394,12 +436,13 @@ class AlertMutingRule(pulumi.CustomResource):
394
436
  def get(resource_name: str,
395
437
  id: pulumi.Input[str],
396
438
  opts: Optional[pulumi.ResourceOptions] = None,
397
- account_id: Optional[pulumi.Input[int]] = None,
398
- condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
399
- description: Optional[pulumi.Input[str]] = None,
400
- enabled: Optional[pulumi.Input[bool]] = None,
401
- name: Optional[pulumi.Input[str]] = None,
402
- schedule: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']]] = None) -> 'AlertMutingRule':
439
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
440
+ action_on_muting_rule_window_ended: Optional[pulumi.Input[_builtins.str]] = None,
441
+ condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
442
+ description: Optional[pulumi.Input[_builtins.str]] = None,
443
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
444
+ name: Optional[pulumi.Input[_builtins.str]] = None,
445
+ schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None) -> 'AlertMutingRule':
403
446
  """
404
447
  Get an existing AlertMutingRule resource's state with the given name, id, and optional extra
405
448
  properties used to qualify the lookup.
@@ -407,18 +450,20 @@ class AlertMutingRule(pulumi.CustomResource):
407
450
  :param str resource_name: The unique name of the resulting resource.
408
451
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
409
452
  :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.
412
- :param pulumi.Input[str] description: The description of the MutingRule.
413
- :param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
414
- :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
453
+ :param pulumi.Input[_builtins.str] account_id: The account id of the MutingRule.
454
+ :param pulumi.Input[_builtins.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`.
455
+ :param pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
456
+ :param pulumi.Input[_builtins.str] description: The description of the MutingRule.
457
+ :param pulumi.Input[_builtins.bool] enabled: Whether the MutingRule is enabled.
458
+ :param pulumi.Input[_builtins.str] name: The name of the MutingRule.
459
+ :param pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
416
460
  """
417
461
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
418
462
 
419
463
  __props__ = _AlertMutingRuleState.__new__(_AlertMutingRuleState)
420
464
 
421
465
  __props__.__dict__["account_id"] = account_id
466
+ __props__.__dict__["action_on_muting_rule_window_ended"] = action_on_muting_rule_window_ended
422
467
  __props__.__dict__["condition"] = condition
423
468
  __props__.__dict__["description"] = description
424
469
  __props__.__dict__["enabled"] = enabled
@@ -426,15 +471,23 @@ class AlertMutingRule(pulumi.CustomResource):
426
471
  __props__.__dict__["schedule"] = schedule
427
472
  return AlertMutingRule(resource_name, opts=opts, __props__=__props__)
428
473
 
429
- @property
474
+ @_builtins.property
430
475
  @pulumi.getter(name="accountId")
431
- def account_id(self) -> pulumi.Output[int]:
476
+ def account_id(self) -> pulumi.Output[_builtins.str]:
432
477
  """
433
478
  The account id of the MutingRule.
434
479
  """
435
480
  return pulumi.get(self, "account_id")
436
481
 
437
- @property
482
+ @_builtins.property
483
+ @pulumi.getter(name="actionOnMutingRuleWindowEnded")
484
+ def action_on_muting_rule_window_ended(self) -> pulumi.Output[_builtins.str]:
485
+ """
486
+ The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
487
+ """
488
+ return pulumi.get(self, "action_on_muting_rule_window_ended")
489
+
490
+ @_builtins.property
438
491
  @pulumi.getter
439
492
  def condition(self) -> pulumi.Output['outputs.AlertMutingRuleCondition']:
440
493
  """
@@ -442,31 +495,31 @@ class AlertMutingRule(pulumi.CustomResource):
442
495
  """
443
496
  return pulumi.get(self, "condition")
444
497
 
445
- @property
498
+ @_builtins.property
446
499
  @pulumi.getter
447
- def description(self) -> pulumi.Output[Optional[str]]:
500
+ def description(self) -> pulumi.Output[Optional[_builtins.str]]:
448
501
  """
449
502
  The description of the MutingRule.
450
503
  """
451
504
  return pulumi.get(self, "description")
452
505
 
453
- @property
506
+ @_builtins.property
454
507
  @pulumi.getter
455
- def enabled(self) -> pulumi.Output[bool]:
508
+ def enabled(self) -> pulumi.Output[_builtins.bool]:
456
509
  """
457
510
  Whether the MutingRule is enabled.
458
511
  """
459
512
  return pulumi.get(self, "enabled")
460
513
 
461
- @property
514
+ @_builtins.property
462
515
  @pulumi.getter
463
- def name(self) -> pulumi.Output[str]:
516
+ def name(self) -> pulumi.Output[_builtins.str]:
464
517
  """
465
518
  The name of the MutingRule.
466
519
  """
467
520
  return pulumi.get(self, "name")
468
521
 
469
- @property
522
+ @_builtins.property
470
523
  @pulumi.getter
471
524
  def schedule(self) -> pulumi.Output[Optional['outputs.AlertMutingRuleSchedule']]:
472
525
  """