pulumi-newrelic 5.23.0__py3-none-any.whl → 5.23.0a1711605988__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.
Files changed (68) hide show
  1. pulumi_newrelic/_inputs.py +270 -183
  2. pulumi_newrelic/account_management.py +20 -20
  3. pulumi_newrelic/alert_channel.py +92 -76
  4. pulumi_newrelic/alert_condition.py +163 -104
  5. pulumi_newrelic/alert_muting_rule.py +35 -33
  6. pulumi_newrelic/alert_policy.py +43 -68
  7. pulumi_newrelic/alert_policy_channel.py +8 -12
  8. pulumi_newrelic/cloud/_inputs.py +1072 -322
  9. pulumi_newrelic/cloud/aws_govcloud_link_account.py +6 -4
  10. pulumi_newrelic/cloud/aws_integrations.py +15 -13
  11. pulumi_newrelic/cloud/aws_link_account.py +6 -4
  12. pulumi_newrelic/cloud/azure_integrations.py +12 -10
  13. pulumi_newrelic/cloud/azure_link_account.py +6 -4
  14. pulumi_newrelic/cloud/gcp_integrations.py +6 -6
  15. pulumi_newrelic/cloud/gcp_link_account.py +6 -4
  16. pulumi_newrelic/cloud/outputs.py +1072 -322
  17. pulumi_newrelic/data_partition_rule.py +4 -0
  18. pulumi_newrelic/entity_tags.py +17 -13
  19. pulumi_newrelic/events_to_metrics_rule.py +4 -2
  20. pulumi_newrelic/get_account.py +4 -0
  21. pulumi_newrelic/get_application.py +10 -8
  22. pulumi_newrelic/get_authentication_domain.py +8 -4
  23. pulumi_newrelic/get_cloud_account.py +4 -0
  24. pulumi_newrelic/get_entity.py +33 -48
  25. pulumi_newrelic/get_group.py +8 -42
  26. pulumi_newrelic/get_key_transaction.py +10 -8
  27. pulumi_newrelic/get_notification_destination.py +1 -20
  28. pulumi_newrelic/get_obfuscation_expression.py +4 -2
  29. pulumi_newrelic/get_service_level_alert_helper.py +46 -22
  30. pulumi_newrelic/get_test_grok_pattern.py +6 -4
  31. pulumi_newrelic/get_user.py +4 -0
  32. pulumi_newrelic/group.py +42 -40
  33. pulumi_newrelic/infra_alert_condition.py +145 -154
  34. pulumi_newrelic/insights/event.py +25 -8
  35. pulumi_newrelic/log_parsing_rule.py +10 -6
  36. pulumi_newrelic/monitor_downtime.py +193 -174
  37. pulumi_newrelic/notification_channel.py +150 -124
  38. pulumi_newrelic/notification_destination.py +1 -95
  39. pulumi_newrelic/nrql_alert_condition.py +48 -38
  40. pulumi_newrelic/nrql_drop_rule.py +38 -34
  41. pulumi_newrelic/obfuscation_expression.py +4 -2
  42. pulumi_newrelic/obfuscation_rule.py +4 -4
  43. pulumi_newrelic/one_dashboard.py +48 -42
  44. pulumi_newrelic/one_dashboard_raw.py +86 -86
  45. pulumi_newrelic/outputs.py +270 -180
  46. pulumi_newrelic/plugins/_inputs.py +16 -16
  47. pulumi_newrelic/plugins/application_settings.py +36 -20
  48. pulumi_newrelic/plugins/outputs.py +16 -16
  49. pulumi_newrelic/plugins/workload.py +40 -158
  50. pulumi_newrelic/service_level.py +123 -38
  51. pulumi_newrelic/synthetics/alert_condition.py +78 -34
  52. pulumi_newrelic/synthetics/broken_links_monitor.py +20 -18
  53. pulumi_newrelic/synthetics/cert_check_monitor.py +18 -16
  54. pulumi_newrelic/synthetics/get_private_location.py +8 -0
  55. pulumi_newrelic/synthetics/get_secure_credential.py +12 -0
  56. pulumi_newrelic/synthetics/monitor.py +52 -48
  57. pulumi_newrelic/synthetics/multi_location_alert_condition.py +83 -69
  58. pulumi_newrelic/synthetics/private_location.py +6 -6
  59. pulumi_newrelic/synthetics/script_monitor.py +42 -38
  60. pulumi_newrelic/synthetics/secure_credential.py +22 -25
  61. pulumi_newrelic/synthetics/step_monitor.py +20 -18
  62. pulumi_newrelic/user.py +10 -8
  63. pulumi_newrelic/workflow.py +24 -20
  64. {pulumi_newrelic-5.23.0.dist-info → pulumi_newrelic-5.23.0a1711605988.dist-info}/METADATA +1 -1
  65. pulumi_newrelic-5.23.0a1711605988.dist-info/RECORD +89 -0
  66. pulumi_newrelic-5.23.0.dist-info/RECORD +0 -89
  67. {pulumi_newrelic-5.23.0.dist-info → pulumi_newrelic-5.23.0a1711605988.dist-info}/WHEEL +0 -0
  68. {pulumi_newrelic-5.23.0.dist-info → pulumi_newrelic-5.23.0a1711605988.dist-info}/top_level.txt +0 -0
@@ -28,17 +28,18 @@ class MonitorDowntimeArgs:
28
28
  name: Optional[pulumi.Input[str]] = None):
29
29
  """
30
30
  The set of arguments for constructing a MonitorDowntime resource.
31
- :param pulumi.Input[str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
32
- :param pulumi.Input[str] mode: An identifier of the type of Monitor Downtime to be created.
33
- :param pulumi.Input[str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
31
+ :param pulumi.Input[str] end_time: The time at which the monitor downtime would end operating, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2024-01-05T14:27:07`.
32
+ :param pulumi.Input[str] mode: One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
33
+ :param pulumi.Input[str] start_time: The time at which the monitor downtime would begin to operate, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2023-12-20T10:48:53`.
34
34
  :param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
35
- :param pulumi.Input[int] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
36
- provider{} configuration if not specified.
37
- :param pulumi.Input['MonitorDowntimeEndRepeatArgs'] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
38
- :param pulumi.Input['MonitorDowntimeFrequencyArgs'] frequency: Configuration options for which days of the month a monitor downtime will occur
39
- :param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
40
- :param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
41
- :param pulumi.Input[str] name: A name to identify the Monitor Downtime to be created.
35
+ :param pulumi.Input[int] account_id: The account in which the monitor downtime would be created. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` (or the `account_id` specified in the `provider{}`), if not specified.
36
+ :param pulumi.Input['MonitorDowntimeEndRepeatArgs'] end_repeat: Options which may be used to specify when the repeat cycle of the monitor should end. This argument comprises the following nested arguments -
37
+ :param pulumi.Input['MonitorDowntimeFrequencyArgs'] frequency: Options which may be used to specify the configuration of a monthly monitor downtime. This argument comprises the following nested arguments -
38
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of days on which weekly monitor downtimes would function. Valid values which go into this list would be `"SUNDAY"`, `"MONDAY"`, `"TUESDAY"`, `"WEDNESDAY"`, `"THURSDAY"`, `"FRIDAY"` and/or `"SATURDAY"`.
39
+
40
+ > **NOTE:** `maintenance_days` **can only be used with the mode** `WEEKLY`, and **is a required argument** with weekly monitor downtimes (i.e. if the `mode` is `WEEKLY`).
41
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of synthetic monitors the monitor downtime would need to be applied to.
42
+ :param pulumi.Input[str] name: Name of the monitor downtime to be created.
42
43
  """
43
44
  pulumi.set(__self__, "end_time", end_time)
44
45
  pulumi.set(__self__, "mode", mode)
@@ -61,7 +62,7 @@ class MonitorDowntimeArgs:
61
62
  @pulumi.getter(name="endTime")
62
63
  def end_time(self) -> pulumi.Input[str]:
63
64
  """
64
- A datetime stamp signifying the end of the Monitor Downtime.
65
+ The time at which the monitor downtime would end operating, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2024-01-05T14:27:07`.
65
66
  """
66
67
  return pulumi.get(self, "end_time")
67
68
 
@@ -73,7 +74,7 @@ class MonitorDowntimeArgs:
73
74
  @pulumi.getter
74
75
  def mode(self) -> pulumi.Input[str]:
75
76
  """
76
- An identifier of the type of Monitor Downtime to be created.
77
+ One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
77
78
  """
78
79
  return pulumi.get(self, "mode")
79
80
 
@@ -85,7 +86,7 @@ class MonitorDowntimeArgs:
85
86
  @pulumi.getter(name="startTime")
86
87
  def start_time(self) -> pulumi.Input[str]:
87
88
  """
88
- A datetime stamp signifying the start of the Monitor Downtime.
89
+ The time at which the monitor downtime would begin to operate, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2023-12-20T10:48:53`.
89
90
  """
90
91
  return pulumi.get(self, "start_time")
91
92
 
@@ -109,8 +110,7 @@ class MonitorDowntimeArgs:
109
110
  @pulumi.getter(name="accountId")
110
111
  def account_id(self) -> Optional[pulumi.Input[int]]:
111
112
  """
112
- The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
113
- provider{} configuration if not specified.
113
+ The account in which the monitor downtime would be created. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` (or the `account_id` specified in the `provider{}`), if not specified.
114
114
  """
115
115
  return pulumi.get(self, "account_id")
116
116
 
@@ -122,7 +122,7 @@ class MonitorDowntimeArgs:
122
122
  @pulumi.getter(name="endRepeat")
123
123
  def end_repeat(self) -> Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']]:
124
124
  """
125
- A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
125
+ Options which may be used to specify when the repeat cycle of the monitor should end. This argument comprises the following nested arguments -
126
126
  """
127
127
  return pulumi.get(self, "end_repeat")
128
128
 
@@ -134,7 +134,7 @@ class MonitorDowntimeArgs:
134
134
  @pulumi.getter
135
135
  def frequency(self) -> Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']]:
136
136
  """
137
- Configuration options for which days of the month a monitor downtime will occur
137
+ Options which may be used to specify the configuration of a monthly monitor downtime. This argument comprises the following nested arguments -
138
138
  """
139
139
  return pulumi.get(self, "frequency")
140
140
 
@@ -146,7 +146,9 @@ class MonitorDowntimeArgs:
146
146
  @pulumi.getter(name="maintenanceDays")
147
147
  def maintenance_days(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
148
148
  """
149
- A list of maintenance days to be included with the created weekly Monitor Downtime.
149
+ A list of days on which weekly monitor downtimes would function. Valid values which go into this list would be `"SUNDAY"`, `"MONDAY"`, `"TUESDAY"`, `"WEDNESDAY"`, `"THURSDAY"`, `"FRIDAY"` and/or `"SATURDAY"`.
150
+
151
+ > **NOTE:** `maintenance_days` **can only be used with the mode** `WEEKLY`, and **is a required argument** with weekly monitor downtimes (i.e. if the `mode` is `WEEKLY`).
150
152
  """
151
153
  return pulumi.get(self, "maintenance_days")
152
154
 
@@ -158,7 +160,7 @@ class MonitorDowntimeArgs:
158
160
  @pulumi.getter(name="monitorGuids")
159
161
  def monitor_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
160
162
  """
161
- A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
163
+ A list of GUIDs of synthetic monitors the monitor downtime would need to be applied to.
162
164
  """
163
165
  return pulumi.get(self, "monitor_guids")
164
166
 
@@ -170,7 +172,7 @@ class MonitorDowntimeArgs:
170
172
  @pulumi.getter
171
173
  def name(self) -> Optional[pulumi.Input[str]]:
172
174
  """
173
- A name to identify the Monitor Downtime to be created.
175
+ Name of the monitor downtime to be created.
174
176
  """
175
177
  return pulumi.get(self, "name")
176
178
 
@@ -194,16 +196,17 @@ class _MonitorDowntimeState:
194
196
  time_zone: Optional[pulumi.Input[str]] = None):
195
197
  """
196
198
  Input properties used for looking up and filtering MonitorDowntime resources.
197
- :param pulumi.Input[int] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
198
- provider{} configuration if not specified.
199
- :param pulumi.Input['MonitorDowntimeEndRepeatArgs'] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
200
- :param pulumi.Input[str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
201
- :param pulumi.Input['MonitorDowntimeFrequencyArgs'] frequency: Configuration options for which days of the month a monitor downtime will occur
202
- :param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
203
- :param pulumi.Input[str] mode: An identifier of the type of Monitor Downtime to be created.
204
- :param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
205
- :param pulumi.Input[str] name: A name to identify the Monitor Downtime to be created.
206
- :param pulumi.Input[str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
199
+ :param pulumi.Input[int] account_id: The account in which the monitor downtime would be created. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` (or the `account_id` specified in the `provider{}`), if not specified.
200
+ :param pulumi.Input['MonitorDowntimeEndRepeatArgs'] end_repeat: Options which may be used to specify when the repeat cycle of the monitor should end. This argument comprises the following nested arguments -
201
+ :param pulumi.Input[str] end_time: The time at which the monitor downtime would end operating, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2024-01-05T14:27:07`.
202
+ :param pulumi.Input['MonitorDowntimeFrequencyArgs'] frequency: Options which may be used to specify the configuration of a monthly monitor downtime. This argument comprises the following nested arguments -
203
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of days on which weekly monitor downtimes would function. Valid values which go into this list would be `"SUNDAY"`, `"MONDAY"`, `"TUESDAY"`, `"WEDNESDAY"`, `"THURSDAY"`, `"FRIDAY"` and/or `"SATURDAY"`.
204
+
205
+ > **NOTE:** `maintenance_days` **can only be used with the mode** `WEEKLY`, and **is a required argument** with weekly monitor downtimes (i.e. if the `mode` is `WEEKLY`).
206
+ :param pulumi.Input[str] mode: One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
207
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of synthetic monitors the monitor downtime would need to be applied to.
208
+ :param pulumi.Input[str] name: Name of the monitor downtime to be created.
209
+ :param pulumi.Input[str] start_time: The time at which the monitor downtime would begin to operate, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2023-12-20T10:48:53`.
207
210
  :param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
208
211
  """
209
212
  if account_id is not None:
@@ -231,8 +234,7 @@ class _MonitorDowntimeState:
231
234
  @pulumi.getter(name="accountId")
232
235
  def account_id(self) -> Optional[pulumi.Input[int]]:
233
236
  """
234
- The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
235
- provider{} configuration if not specified.
237
+ The account in which the monitor downtime would be created. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` (or the `account_id` specified in the `provider{}`), if not specified.
236
238
  """
237
239
  return pulumi.get(self, "account_id")
238
240
 
@@ -244,7 +246,7 @@ class _MonitorDowntimeState:
244
246
  @pulumi.getter(name="endRepeat")
245
247
  def end_repeat(self) -> Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']]:
246
248
  """
247
- A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
249
+ Options which may be used to specify when the repeat cycle of the monitor should end. This argument comprises the following nested arguments -
248
250
  """
249
251
  return pulumi.get(self, "end_repeat")
250
252
 
@@ -256,7 +258,7 @@ class _MonitorDowntimeState:
256
258
  @pulumi.getter(name="endTime")
257
259
  def end_time(self) -> Optional[pulumi.Input[str]]:
258
260
  """
259
- A datetime stamp signifying the end of the Monitor Downtime.
261
+ The time at which the monitor downtime would end operating, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2024-01-05T14:27:07`.
260
262
  """
261
263
  return pulumi.get(self, "end_time")
262
264
 
@@ -268,7 +270,7 @@ class _MonitorDowntimeState:
268
270
  @pulumi.getter
269
271
  def frequency(self) -> Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']]:
270
272
  """
271
- Configuration options for which days of the month a monitor downtime will occur
273
+ Options which may be used to specify the configuration of a monthly monitor downtime. This argument comprises the following nested arguments -
272
274
  """
273
275
  return pulumi.get(self, "frequency")
274
276
 
@@ -280,7 +282,9 @@ class _MonitorDowntimeState:
280
282
  @pulumi.getter(name="maintenanceDays")
281
283
  def maintenance_days(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
282
284
  """
283
- A list of maintenance days to be included with the created weekly Monitor Downtime.
285
+ A list of days on which weekly monitor downtimes would function. Valid values which go into this list would be `"SUNDAY"`, `"MONDAY"`, `"TUESDAY"`, `"WEDNESDAY"`, `"THURSDAY"`, `"FRIDAY"` and/or `"SATURDAY"`.
286
+
287
+ > **NOTE:** `maintenance_days` **can only be used with the mode** `WEEKLY`, and **is a required argument** with weekly monitor downtimes (i.e. if the `mode` is `WEEKLY`).
284
288
  """
285
289
  return pulumi.get(self, "maintenance_days")
286
290
 
@@ -292,7 +296,7 @@ class _MonitorDowntimeState:
292
296
  @pulumi.getter
293
297
  def mode(self) -> Optional[pulumi.Input[str]]:
294
298
  """
295
- An identifier of the type of Monitor Downtime to be created.
299
+ One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
296
300
  """
297
301
  return pulumi.get(self, "mode")
298
302
 
@@ -304,7 +308,7 @@ class _MonitorDowntimeState:
304
308
  @pulumi.getter(name="monitorGuids")
305
309
  def monitor_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
306
310
  """
307
- A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
311
+ A list of GUIDs of synthetic monitors the monitor downtime would need to be applied to.
308
312
  """
309
313
  return pulumi.get(self, "monitor_guids")
310
314
 
@@ -316,7 +320,7 @@ class _MonitorDowntimeState:
316
320
  @pulumi.getter
317
321
  def name(self) -> Optional[pulumi.Input[str]]:
318
322
  """
319
- A name to identify the Monitor Downtime to be created.
323
+ Name of the monitor downtime to be created.
320
324
  """
321
325
  return pulumi.get(self, "name")
322
326
 
@@ -328,7 +332,7 @@ class _MonitorDowntimeState:
328
332
  @pulumi.getter(name="startTime")
329
333
  def start_time(self) -> Optional[pulumi.Input[str]]:
330
334
  """
331
- A datetime stamp signifying the start of the Monitor Downtime.
335
+ The time at which the monitor downtime would begin to operate, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2023-12-20T10:48:53`.
332
336
  """
333
337
  return pulumi.get(self, "start_time")
334
338
 
@@ -370,28 +374,29 @@ class MonitorDowntime(pulumi.CustomResource):
370
374
 
371
375
  ## Example Usage
372
376
 
377
+ <!--Start PulumiCodeChooser -->
373
378
  ```python
374
379
  import pulumi
375
380
  import pulumi_newrelic as newrelic
376
381
 
377
382
  foo = newrelic.MonitorDowntime("foo",
378
- name="Sample Monitor Downtime",
379
- monitor_guids=[
380
- "<GUID-1>",
381
- "<GUID-2>",
382
- ],
383
- mode="WEEKLY",
384
- start_time="2023-11-30T10:30:00",
385
- end_time="2023-12-10T02:45:30",
386
- time_zone="Asia/Kolkata",
387
383
  end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
388
384
  on_date="2023-12-20",
389
385
  ),
386
+ end_time="2023-12-10T02:45:30",
390
387
  maintenance_days=[
391
388
  "FRIDAY",
392
389
  "SATURDAY",
393
- ])
390
+ ],
391
+ mode="WEEKLY",
392
+ monitor_guids=[
393
+ "<GUID-1>",
394
+ "<GUID-2>",
395
+ ],
396
+ start_time="2023-11-30T10:30:00",
397
+ time_zone="Asia/Kolkata")
394
398
  ```
399
+ <!--End PulumiCodeChooser -->
395
400
  Monitor Downtimes are of four types; **one-time**, **daily**, **weekly** and **monthly**. For more details on each type and the right arguments that go with them, check out the argument reference and examples sections below.
396
401
 
397
402
  ## Examples
@@ -400,21 +405,22 @@ class MonitorDowntime(pulumi.CustomResource):
400
405
 
401
406
  The below example illustrates creating a **one-time** monitor downtime.
402
407
 
408
+ <!--Start PulumiCodeChooser -->
403
409
  ```python
404
410
  import pulumi
405
411
  import pulumi_newrelic as newrelic
406
412
 
407
- sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_one_time_newrelic_monitor_downtime",
408
- name="Sample One Time Monitor Downtime",
413
+ sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("sampleOneTimeNewrelicMonitorDowntime",
414
+ end_time="2024-01-04T16:24:30",
415
+ mode="ONE_TIME",
409
416
  monitor_guids=[
410
417
  "<GUID-1>",
411
418
  "<GUID-2>",
412
419
  ],
413
- mode="ONE_TIME",
414
420
  start_time="2023-12-04T10:15:00",
415
- end_time="2024-01-04T16:24:30",
416
421
  time_zone="America/Los_Angeles")
417
422
  ```
423
+ <!--End PulumiCodeChooser -->
418
424
 
419
425
  ### Daily Monitor Downtime
420
426
 
@@ -422,24 +428,25 @@ class MonitorDowntime(pulumi.CustomResource):
422
428
 
423
429
  Note that `end_repeat` has been specified in the configuration; however, this is optional, in accordance with the rules of `end_repeat` specified in the argument reference section above. This example uses the `on_date` nested argument of `end_repeat`, however, the other nested argument, `on_repeat` may also be used _instead_, as you may see in some of the other examples below; though both `on_date` and `on_repeat` cannot be specified together, as they are mutually exclusive.
424
430
 
431
+ <!--Start PulumiCodeChooser -->
425
432
  ```python
426
433
  import pulumi
427
434
  import pulumi_newrelic as newrelic
428
435
 
429
- sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_daily_newrelic_monitor_downtime",
430
- name="Sample Daily Monitor Downtime",
436
+ sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("sampleDailyNewrelicMonitorDowntime",
437
+ end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
438
+ on_date="2023-12-25",
439
+ ),
440
+ end_time="2024-01-04T07:15:00",
441
+ mode="DAILY",
431
442
  monitor_guids=[
432
443
  "<GUID-1>",
433
444
  "<GUID-2>",
434
445
  ],
435
- mode="DAILY",
436
446
  start_time="2023-12-04T18:15:00",
437
- end_time="2024-01-04T07:15:00",
438
- end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
439
- on_date="2023-12-25",
440
- ),
441
447
  time_zone="Asia/Kolkata")
442
448
  ```
449
+ <!--End PulumiCodeChooser -->
443
450
 
444
451
  ### Weekly Monitor Downtime
445
452
 
@@ -447,25 +454,26 @@ class MonitorDowntime(pulumi.CustomResource):
447
454
 
448
455
  Note that `maintenance_days` has been specified in the configuration as it is required with weekly monitor downtimes; and `end_repeat` has not been specified as it is optional, all in accordance with the rules of these arguments specified in the argument reference section above.
449
456
 
457
+ <!--Start PulumiCodeChooser -->
450
458
  ```python
451
459
  import pulumi
452
460
  import pulumi_newrelic as newrelic
453
461
 
454
- sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_weekly_newrelic_monitor_downtime",
455
- name="Sample Weekly Monitor Downtime",
462
+ sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sampleWeeklyNewrelicMonitorDowntime",
463
+ end_time="2024-01-04T23:55:00",
464
+ maintenance_days=[
465
+ "SATURDAY",
466
+ "SUNDAY",
467
+ ],
468
+ mode="WEEKLY",
456
469
  monitor_guids=[
457
470
  "<GUID-1>",
458
471
  "<GUID-2>",
459
472
  ],
460
- mode="WEEKLY",
461
473
  start_time="2023-12-04T14:15:00",
462
- end_time="2024-01-04T23:55:00",
463
- time_zone="US/Hawaii",
464
- maintenance_days=[
465
- "SATURDAY",
466
- "SUNDAY",
467
- ])
474
+ time_zone="US/Hawaii")
468
475
  ```
476
+ <!--End PulumiCodeChooser -->
469
477
 
470
478
  ### Monthly Monitor Downtime
471
479
 
@@ -473,48 +481,42 @@ class MonitorDowntime(pulumi.CustomResource):
473
481
 
474
482
  Note that `frequency` has been specified in the configuration as it is required with monthly monitor downtimes, and `end_repeat` has been specified too, though it is optional. `frequency` has been specified with `days_of_week` comprising both of its nested arguments, `ordinal_day_of_month` and `week_day`; all in accordance with the rules of these arguments specified in the argument reference section above.
475
483
 
484
+ <!--Start PulumiCodeChooser -->
476
485
  ```python
477
486
  import pulumi
478
487
  import pulumi_newrelic as newrelic
479
488
 
480
- sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
481
- name="Sample Monthly Monitor Downtime",
482
- monitor_guids=[
483
- "<GUID-1>",
484
- "<GUID-2>",
485
- ],
486
- mode="MONTHLY",
487
- start_time="2023-12-04T07:15:00",
488
- end_time="2024-01-04T19:15:00",
489
+ sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sampleMonthlyNewrelicMonitorDowntime",
489
490
  end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
490
491
  on_repeat=6,
491
492
  ),
492
- time_zone="Europe/Dublin",
493
+ end_time="2024-01-04T19:15:00",
493
494
  frequency=newrelic.MonitorDowntimeFrequencyArgs(
494
495
  days_of_week=newrelic.MonitorDowntimeFrequencyDaysOfWeekArgs(
495
496
  ordinal_day_of_month="SECOND",
496
497
  week_day="SATURDAY",
497
498
  ),
498
- ))
499
+ ),
500
+ mode="MONTHLY",
501
+ monitor_guids=[
502
+ "<GUID-1>",
503
+ "<GUID-2>",
504
+ ],
505
+ start_time="2023-12-04T07:15:00",
506
+ time_zone="Europe/Dublin")
499
507
  ```
508
+ <!--End PulumiCodeChooser -->
500
509
  However, the `frequency` block in monthly monitor downtimes may also be specified with its other nested argument, `days_of_month`, as shown in the example below - though both `days_of_month` and `days_of_week` cannot be specified together, as they are mutually exclusive.
510
+ <!--Start PulumiCodeChooser -->
501
511
  ```python
502
512
  import pulumi
503
513
  import pulumi_newrelic as newrelic
504
514
 
505
- sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
506
- name="Sample Monthly Monitor Downtime",
507
- monitor_guids=[
508
- "<GUID-1>",
509
- "<GUID-2>",
510
- ],
511
- mode="MONTHLY",
512
- start_time="2023-12-04T07:15:00",
513
- end_time="2024-01-04T19:15:00",
515
+ sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sampleMonthlyNewrelicMonitorDowntime",
514
516
  end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
515
517
  on_repeat=6,
516
518
  ),
517
- time_zone="Europe/Dublin",
519
+ end_time="2024-01-04T19:15:00",
518
520
  frequency=newrelic.MonitorDowntimeFrequencyArgs(
519
521
  days_of_months=[
520
522
  3,
@@ -522,8 +524,16 @@ class MonitorDowntime(pulumi.CustomResource):
522
524
  14,
523
525
  23,
524
526
  ],
525
- ))
527
+ ),
528
+ mode="MONTHLY",
529
+ monitor_guids=[
530
+ "<GUID-1>",
531
+ "<GUID-2>",
532
+ ],
533
+ start_time="2023-12-04T07:15:00",
534
+ time_zone="Europe/Dublin")
526
535
  ```
536
+ <!--End PulumiCodeChooser -->
527
537
 
528
538
  ## Import
529
539
 
@@ -537,16 +547,17 @@ class MonitorDowntime(pulumi.CustomResource):
537
547
 
538
548
  :param str resource_name: The name of the resource.
539
549
  :param pulumi.ResourceOptions opts: Options for the resource.
540
- :param pulumi.Input[int] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
541
- provider{} configuration if not specified.
542
- :param pulumi.Input[pulumi.InputType['MonitorDowntimeEndRepeatArgs']] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
543
- :param pulumi.Input[str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
544
- :param pulumi.Input[pulumi.InputType['MonitorDowntimeFrequencyArgs']] frequency: Configuration options for which days of the month a monitor downtime will occur
545
- :param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
546
- :param pulumi.Input[str] mode: An identifier of the type of Monitor Downtime to be created.
547
- :param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
548
- :param pulumi.Input[str] name: A name to identify the Monitor Downtime to be created.
549
- :param pulumi.Input[str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
550
+ :param pulumi.Input[int] account_id: The account in which the monitor downtime would be created. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` (or the `account_id` specified in the `provider{}`), if not specified.
551
+ :param pulumi.Input[pulumi.InputType['MonitorDowntimeEndRepeatArgs']] end_repeat: Options which may be used to specify when the repeat cycle of the monitor should end. This argument comprises the following nested arguments -
552
+ :param pulumi.Input[str] end_time: The time at which the monitor downtime would end operating, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2024-01-05T14:27:07`.
553
+ :param pulumi.Input[pulumi.InputType['MonitorDowntimeFrequencyArgs']] frequency: Options which may be used to specify the configuration of a monthly monitor downtime. This argument comprises the following nested arguments -
554
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of days on which weekly monitor downtimes would function. Valid values which go into this list would be `"SUNDAY"`, `"MONDAY"`, `"TUESDAY"`, `"WEDNESDAY"`, `"THURSDAY"`, `"FRIDAY"` and/or `"SATURDAY"`.
555
+
556
+ > **NOTE:** `maintenance_days` **can only be used with the mode** `WEEKLY`, and **is a required argument** with weekly monitor downtimes (i.e. if the `mode` is `WEEKLY`).
557
+ :param pulumi.Input[str] mode: One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
558
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of synthetic monitors the monitor downtime would need to be applied to.
559
+ :param pulumi.Input[str] name: Name of the monitor downtime to be created.
560
+ :param pulumi.Input[str] start_time: The time at which the monitor downtime would begin to operate, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2023-12-20T10:48:53`.
550
561
  :param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
551
562
  """
552
563
  ...
@@ -560,28 +571,29 @@ class MonitorDowntime(pulumi.CustomResource):
560
571
 
561
572
  ## Example Usage
562
573
 
574
+ <!--Start PulumiCodeChooser -->
563
575
  ```python
564
576
  import pulumi
565
577
  import pulumi_newrelic as newrelic
566
578
 
567
579
  foo = newrelic.MonitorDowntime("foo",
568
- name="Sample Monitor Downtime",
569
- monitor_guids=[
570
- "<GUID-1>",
571
- "<GUID-2>",
572
- ],
573
- mode="WEEKLY",
574
- start_time="2023-11-30T10:30:00",
575
- end_time="2023-12-10T02:45:30",
576
- time_zone="Asia/Kolkata",
577
580
  end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
578
581
  on_date="2023-12-20",
579
582
  ),
583
+ end_time="2023-12-10T02:45:30",
580
584
  maintenance_days=[
581
585
  "FRIDAY",
582
586
  "SATURDAY",
583
- ])
587
+ ],
588
+ mode="WEEKLY",
589
+ monitor_guids=[
590
+ "<GUID-1>",
591
+ "<GUID-2>",
592
+ ],
593
+ start_time="2023-11-30T10:30:00",
594
+ time_zone="Asia/Kolkata")
584
595
  ```
596
+ <!--End PulumiCodeChooser -->
585
597
  Monitor Downtimes are of four types; **one-time**, **daily**, **weekly** and **monthly**. For more details on each type and the right arguments that go with them, check out the argument reference and examples sections below.
586
598
 
587
599
  ## Examples
@@ -590,21 +602,22 @@ class MonitorDowntime(pulumi.CustomResource):
590
602
 
591
603
  The below example illustrates creating a **one-time** monitor downtime.
592
604
 
605
+ <!--Start PulumiCodeChooser -->
593
606
  ```python
594
607
  import pulumi
595
608
  import pulumi_newrelic as newrelic
596
609
 
597
- sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_one_time_newrelic_monitor_downtime",
598
- name="Sample One Time Monitor Downtime",
610
+ sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("sampleOneTimeNewrelicMonitorDowntime",
611
+ end_time="2024-01-04T16:24:30",
612
+ mode="ONE_TIME",
599
613
  monitor_guids=[
600
614
  "<GUID-1>",
601
615
  "<GUID-2>",
602
616
  ],
603
- mode="ONE_TIME",
604
617
  start_time="2023-12-04T10:15:00",
605
- end_time="2024-01-04T16:24:30",
606
618
  time_zone="America/Los_Angeles")
607
619
  ```
620
+ <!--End PulumiCodeChooser -->
608
621
 
609
622
  ### Daily Monitor Downtime
610
623
 
@@ -612,24 +625,25 @@ class MonitorDowntime(pulumi.CustomResource):
612
625
 
613
626
  Note that `end_repeat` has been specified in the configuration; however, this is optional, in accordance with the rules of `end_repeat` specified in the argument reference section above. This example uses the `on_date` nested argument of `end_repeat`, however, the other nested argument, `on_repeat` may also be used _instead_, as you may see in some of the other examples below; though both `on_date` and `on_repeat` cannot be specified together, as they are mutually exclusive.
614
627
 
628
+ <!--Start PulumiCodeChooser -->
615
629
  ```python
616
630
  import pulumi
617
631
  import pulumi_newrelic as newrelic
618
632
 
619
- sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_daily_newrelic_monitor_downtime",
620
- name="Sample Daily Monitor Downtime",
633
+ sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("sampleDailyNewrelicMonitorDowntime",
634
+ end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
635
+ on_date="2023-12-25",
636
+ ),
637
+ end_time="2024-01-04T07:15:00",
638
+ mode="DAILY",
621
639
  monitor_guids=[
622
640
  "<GUID-1>",
623
641
  "<GUID-2>",
624
642
  ],
625
- mode="DAILY",
626
643
  start_time="2023-12-04T18:15:00",
627
- end_time="2024-01-04T07:15:00",
628
- end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
629
- on_date="2023-12-25",
630
- ),
631
644
  time_zone="Asia/Kolkata")
632
645
  ```
646
+ <!--End PulumiCodeChooser -->
633
647
 
634
648
  ### Weekly Monitor Downtime
635
649
 
@@ -637,25 +651,26 @@ class MonitorDowntime(pulumi.CustomResource):
637
651
 
638
652
  Note that `maintenance_days` has been specified in the configuration as it is required with weekly monitor downtimes; and `end_repeat` has not been specified as it is optional, all in accordance with the rules of these arguments specified in the argument reference section above.
639
653
 
654
+ <!--Start PulumiCodeChooser -->
640
655
  ```python
641
656
  import pulumi
642
657
  import pulumi_newrelic as newrelic
643
658
 
644
- sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_weekly_newrelic_monitor_downtime",
645
- name="Sample Weekly Monitor Downtime",
659
+ sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sampleWeeklyNewrelicMonitorDowntime",
660
+ end_time="2024-01-04T23:55:00",
661
+ maintenance_days=[
662
+ "SATURDAY",
663
+ "SUNDAY",
664
+ ],
665
+ mode="WEEKLY",
646
666
  monitor_guids=[
647
667
  "<GUID-1>",
648
668
  "<GUID-2>",
649
669
  ],
650
- mode="WEEKLY",
651
670
  start_time="2023-12-04T14:15:00",
652
- end_time="2024-01-04T23:55:00",
653
- time_zone="US/Hawaii",
654
- maintenance_days=[
655
- "SATURDAY",
656
- "SUNDAY",
657
- ])
671
+ time_zone="US/Hawaii")
658
672
  ```
673
+ <!--End PulumiCodeChooser -->
659
674
 
660
675
  ### Monthly Monitor Downtime
661
676
 
@@ -663,48 +678,42 @@ class MonitorDowntime(pulumi.CustomResource):
663
678
 
664
679
  Note that `frequency` has been specified in the configuration as it is required with monthly monitor downtimes, and `end_repeat` has been specified too, though it is optional. `frequency` has been specified with `days_of_week` comprising both of its nested arguments, `ordinal_day_of_month` and `week_day`; all in accordance with the rules of these arguments specified in the argument reference section above.
665
680
 
681
+ <!--Start PulumiCodeChooser -->
666
682
  ```python
667
683
  import pulumi
668
684
  import pulumi_newrelic as newrelic
669
685
 
670
- sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
671
- name="Sample Monthly Monitor Downtime",
672
- monitor_guids=[
673
- "<GUID-1>",
674
- "<GUID-2>",
675
- ],
676
- mode="MONTHLY",
677
- start_time="2023-12-04T07:15:00",
678
- end_time="2024-01-04T19:15:00",
686
+ sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sampleMonthlyNewrelicMonitorDowntime",
679
687
  end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
680
688
  on_repeat=6,
681
689
  ),
682
- time_zone="Europe/Dublin",
690
+ end_time="2024-01-04T19:15:00",
683
691
  frequency=newrelic.MonitorDowntimeFrequencyArgs(
684
692
  days_of_week=newrelic.MonitorDowntimeFrequencyDaysOfWeekArgs(
685
693
  ordinal_day_of_month="SECOND",
686
694
  week_day="SATURDAY",
687
695
  ),
688
- ))
696
+ ),
697
+ mode="MONTHLY",
698
+ monitor_guids=[
699
+ "<GUID-1>",
700
+ "<GUID-2>",
701
+ ],
702
+ start_time="2023-12-04T07:15:00",
703
+ time_zone="Europe/Dublin")
689
704
  ```
705
+ <!--End PulumiCodeChooser -->
690
706
  However, the `frequency` block in monthly monitor downtimes may also be specified with its other nested argument, `days_of_month`, as shown in the example below - though both `days_of_month` and `days_of_week` cannot be specified together, as they are mutually exclusive.
707
+ <!--Start PulumiCodeChooser -->
691
708
  ```python
692
709
  import pulumi
693
710
  import pulumi_newrelic as newrelic
694
711
 
695
- sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
696
- name="Sample Monthly Monitor Downtime",
697
- monitor_guids=[
698
- "<GUID-1>",
699
- "<GUID-2>",
700
- ],
701
- mode="MONTHLY",
702
- start_time="2023-12-04T07:15:00",
703
- end_time="2024-01-04T19:15:00",
712
+ sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sampleMonthlyNewrelicMonitorDowntime",
704
713
  end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
705
714
  on_repeat=6,
706
715
  ),
707
- time_zone="Europe/Dublin",
716
+ end_time="2024-01-04T19:15:00",
708
717
  frequency=newrelic.MonitorDowntimeFrequencyArgs(
709
718
  days_of_months=[
710
719
  3,
@@ -712,8 +721,16 @@ class MonitorDowntime(pulumi.CustomResource):
712
721
  14,
713
722
  23,
714
723
  ],
715
- ))
724
+ ),
725
+ mode="MONTHLY",
726
+ monitor_guids=[
727
+ "<GUID-1>",
728
+ "<GUID-2>",
729
+ ],
730
+ start_time="2023-12-04T07:15:00",
731
+ time_zone="Europe/Dublin")
716
732
  ```
733
+ <!--End PulumiCodeChooser -->
717
734
 
718
735
  ## Import
719
736
 
@@ -804,16 +821,17 @@ class MonitorDowntime(pulumi.CustomResource):
804
821
  :param str resource_name: The unique name of the resulting resource.
805
822
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
806
823
  :param pulumi.ResourceOptions opts: Options for the resource.
807
- :param pulumi.Input[int] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
808
- provider{} configuration if not specified.
809
- :param pulumi.Input[pulumi.InputType['MonitorDowntimeEndRepeatArgs']] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
810
- :param pulumi.Input[str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
811
- :param pulumi.Input[pulumi.InputType['MonitorDowntimeFrequencyArgs']] frequency: Configuration options for which days of the month a monitor downtime will occur
812
- :param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
813
- :param pulumi.Input[str] mode: An identifier of the type of Monitor Downtime to be created.
814
- :param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
815
- :param pulumi.Input[str] name: A name to identify the Monitor Downtime to be created.
816
- :param pulumi.Input[str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
824
+ :param pulumi.Input[int] account_id: The account in which the monitor downtime would be created. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` (or the `account_id` specified in the `provider{}`), if not specified.
825
+ :param pulumi.Input[pulumi.InputType['MonitorDowntimeEndRepeatArgs']] end_repeat: Options which may be used to specify when the repeat cycle of the monitor should end. This argument comprises the following nested arguments -
826
+ :param pulumi.Input[str] end_time: The time at which the monitor downtime would end operating, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2024-01-05T14:27:07`.
827
+ :param pulumi.Input[pulumi.InputType['MonitorDowntimeFrequencyArgs']] frequency: Options which may be used to specify the configuration of a monthly monitor downtime. This argument comprises the following nested arguments -
828
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of days on which weekly monitor downtimes would function. Valid values which go into this list would be `"SUNDAY"`, `"MONDAY"`, `"TUESDAY"`, `"WEDNESDAY"`, `"THURSDAY"`, `"FRIDAY"` and/or `"SATURDAY"`.
829
+
830
+ > **NOTE:** `maintenance_days` **can only be used with the mode** `WEEKLY`, and **is a required argument** with weekly monitor downtimes (i.e. if the `mode` is `WEEKLY`).
831
+ :param pulumi.Input[str] mode: One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
832
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of synthetic monitors the monitor downtime would need to be applied to.
833
+ :param pulumi.Input[str] name: Name of the monitor downtime to be created.
834
+ :param pulumi.Input[str] start_time: The time at which the monitor downtime would begin to operate, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2023-12-20T10:48:53`.
817
835
  :param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
818
836
  """
819
837
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -836,8 +854,7 @@ class MonitorDowntime(pulumi.CustomResource):
836
854
  @pulumi.getter(name="accountId")
837
855
  def account_id(self) -> pulumi.Output[int]:
838
856
  """
839
- The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
840
- provider{} configuration if not specified.
857
+ The account in which the monitor downtime would be created. Defaults to the value of the environment variable `NEW_RELIC_ACCOUNT_ID` (or the `account_id` specified in the `provider{}`), if not specified.
841
858
  """
842
859
  return pulumi.get(self, "account_id")
843
860
 
@@ -845,7 +862,7 @@ class MonitorDowntime(pulumi.CustomResource):
845
862
  @pulumi.getter(name="endRepeat")
846
863
  def end_repeat(self) -> pulumi.Output[Optional['outputs.MonitorDowntimeEndRepeat']]:
847
864
  """
848
- A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
865
+ Options which may be used to specify when the repeat cycle of the monitor should end. This argument comprises the following nested arguments -
849
866
  """
850
867
  return pulumi.get(self, "end_repeat")
851
868
 
@@ -853,7 +870,7 @@ class MonitorDowntime(pulumi.CustomResource):
853
870
  @pulumi.getter(name="endTime")
854
871
  def end_time(self) -> pulumi.Output[str]:
855
872
  """
856
- A datetime stamp signifying the end of the Monitor Downtime.
873
+ The time at which the monitor downtime would end operating, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2024-01-05T14:27:07`.
857
874
  """
858
875
  return pulumi.get(self, "end_time")
859
876
 
@@ -861,7 +878,7 @@ class MonitorDowntime(pulumi.CustomResource):
861
878
  @pulumi.getter
862
879
  def frequency(self) -> pulumi.Output[Optional['outputs.MonitorDowntimeFrequency']]:
863
880
  """
864
- Configuration options for which days of the month a monitor downtime will occur
881
+ Options which may be used to specify the configuration of a monthly monitor downtime. This argument comprises the following nested arguments -
865
882
  """
866
883
  return pulumi.get(self, "frequency")
867
884
 
@@ -869,7 +886,9 @@ class MonitorDowntime(pulumi.CustomResource):
869
886
  @pulumi.getter(name="maintenanceDays")
870
887
  def maintenance_days(self) -> pulumi.Output[Optional[Sequence[str]]]:
871
888
  """
872
- A list of maintenance days to be included with the created weekly Monitor Downtime.
889
+ A list of days on which weekly monitor downtimes would function. Valid values which go into this list would be `"SUNDAY"`, `"MONDAY"`, `"TUESDAY"`, `"WEDNESDAY"`, `"THURSDAY"`, `"FRIDAY"` and/or `"SATURDAY"`.
890
+
891
+ > **NOTE:** `maintenance_days` **can only be used with the mode** `WEEKLY`, and **is a required argument** with weekly monitor downtimes (i.e. if the `mode` is `WEEKLY`).
873
892
  """
874
893
  return pulumi.get(self, "maintenance_days")
875
894
 
@@ -877,7 +896,7 @@ class MonitorDowntime(pulumi.CustomResource):
877
896
  @pulumi.getter
878
897
  def mode(self) -> pulumi.Output[str]:
879
898
  """
880
- An identifier of the type of Monitor Downtime to be created.
899
+ One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
881
900
  """
882
901
  return pulumi.get(self, "mode")
883
902
 
@@ -885,7 +904,7 @@ class MonitorDowntime(pulumi.CustomResource):
885
904
  @pulumi.getter(name="monitorGuids")
886
905
  def monitor_guids(self) -> pulumi.Output[Optional[Sequence[str]]]:
887
906
  """
888
- A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
907
+ A list of GUIDs of synthetic monitors the monitor downtime would need to be applied to.
889
908
  """
890
909
  return pulumi.get(self, "monitor_guids")
891
910
 
@@ -893,7 +912,7 @@ class MonitorDowntime(pulumi.CustomResource):
893
912
  @pulumi.getter
894
913
  def name(self) -> pulumi.Output[str]:
895
914
  """
896
- A name to identify the Monitor Downtime to be created.
915
+ Name of the monitor downtime to be created.
897
916
  """
898
917
  return pulumi.get(self, "name")
899
918
 
@@ -901,7 +920,7 @@ class MonitorDowntime(pulumi.CustomResource):
901
920
  @pulumi.getter(name="startTime")
902
921
  def start_time(self) -> pulumi.Output[str]:
903
922
  """
904
- A datetime stamp signifying the start of the Monitor Downtime.
923
+ The time at which the monitor downtime would begin to operate, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2023-12-20T10:48:53`.
905
924
  """
906
925
  return pulumi.get(self, "start_time")
907
926