pulumi-newrelic 5.23.0a1713561620__py3-none-any.whl → 5.23.0a1713984329__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 +183 -270
  2. pulumi_newrelic/account_management.py +14 -18
  3. pulumi_newrelic/alert_channel.py +28 -56
  4. pulumi_newrelic/alert_condition.py +84 -133
  5. pulumi_newrelic/alert_muting_rule.py +21 -25
  6. pulumi_newrelic/alert_policy.py +42 -33
  7. pulumi_newrelic/alert_policy_channel.py +0 -4
  8. pulumi_newrelic/cloud/_inputs.py +322 -1072
  9. pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -4
  10. pulumi_newrelic/cloud/aws_integrations.py +7 -11
  11. pulumi_newrelic/cloud/aws_link_account.py +0 -4
  12. pulumi_newrelic/cloud/azure_integrations.py +0 -4
  13. pulumi_newrelic/cloud/azure_link_account.py +0 -4
  14. pulumi_newrelic/cloud/gcp_integrations.py +0 -4
  15. pulumi_newrelic/cloud/gcp_link_account.py +0 -4
  16. pulumi_newrelic/cloud/outputs.py +322 -1072
  17. pulumi_newrelic/data_partition_rule.py +0 -4
  18. pulumi_newrelic/entity_tags.py +7 -11
  19. pulumi_newrelic/events_to_metrics_rule.py +0 -4
  20. pulumi_newrelic/get_account.py +0 -4
  21. pulumi_newrelic/get_application.py +0 -4
  22. pulumi_newrelic/get_authentication_domain.py +0 -4
  23. pulumi_newrelic/get_cloud_account.py +0 -4
  24. pulumi_newrelic/get_entity.py +0 -16
  25. pulumi_newrelic/get_group.py +0 -8
  26. pulumi_newrelic/get_key_transaction.py +0 -4
  27. pulumi_newrelic/get_notification_destination.py +20 -1
  28. pulumi_newrelic/get_obfuscation_expression.py +0 -4
  29. pulumi_newrelic/get_service_level_alert_helper.py +0 -30
  30. pulumi_newrelic/get_test_grok_pattern.py +0 -4
  31. pulumi_newrelic/get_user.py +0 -4
  32. pulumi_newrelic/group.py +0 -12
  33. pulumi_newrelic/infra_alert_condition.py +126 -113
  34. pulumi_newrelic/insights/event.py +0 -17
  35. pulumi_newrelic/log_parsing_rule.py +0 -8
  36. pulumi_newrelic/monitor_downtime.py +70 -101
  37. pulumi_newrelic/notification_channel.py +0 -44
  38. pulumi_newrelic/notification_destination.py +95 -1
  39. pulumi_newrelic/nrql_alert_condition.py +0 -20
  40. pulumi_newrelic/nrql_drop_rule.py +28 -32
  41. pulumi_newrelic/obfuscation_expression.py +0 -4
  42. pulumi_newrelic/obfuscation_rule.py +0 -4
  43. pulumi_newrelic/one_dashboard.py +42 -48
  44. pulumi_newrelic/one_dashboard_raw.py +0 -4
  45. pulumi_newrelic/outputs.py +180 -270
  46. pulumi_newrelic/plugins/_inputs.py +16 -16
  47. pulumi_newrelic/plugins/application_settings.py +0 -4
  48. pulumi_newrelic/plugins/outputs.py +16 -16
  49. pulumi_newrelic/plugins/workload.py +28 -48
  50. pulumi_newrelic/service_level.py +0 -91
  51. pulumi_newrelic/synthetics/alert_condition.py +14 -50
  52. pulumi_newrelic/synthetics/broken_links_monitor.py +0 -8
  53. pulumi_newrelic/synthetics/cert_check_monitor.py +0 -8
  54. pulumi_newrelic/synthetics/get_private_location.py +0 -8
  55. pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
  56. pulumi_newrelic/synthetics/monitor.py +0 -16
  57. pulumi_newrelic/synthetics/multi_location_alert_condition.py +49 -71
  58. pulumi_newrelic/synthetics/private_location.py +0 -4
  59. pulumi_newrelic/synthetics/script_monitor.py +4 -20
  60. pulumi_newrelic/synthetics/secure_credential.py +21 -18
  61. pulumi_newrelic/synthetics/step_monitor.py +4 -12
  62. pulumi_newrelic/user.py +0 -4
  63. pulumi_newrelic/workflow.py +0 -16
  64. {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/METADATA +1 -1
  65. pulumi_newrelic-5.23.0a1713984329.dist-info/RECORD +89 -0
  66. pulumi_newrelic-5.23.0a1713561620.dist-info/RECORD +0 -89
  67. {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/WHEEL +0 -0
  68. {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/top_level.txt +0 -0
@@ -28,18 +28,17 @@ 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: 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`.
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.
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 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.
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.
43
42
  """
44
43
  pulumi.set(__self__, "end_time", end_time)
45
44
  pulumi.set(__self__, "mode", mode)
@@ -62,7 +61,7 @@ class MonitorDowntimeArgs:
62
61
  @pulumi.getter(name="endTime")
63
62
  def end_time(self) -> pulumi.Input[str]:
64
63
  """
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`.
64
+ A datetime stamp signifying the end of the Monitor Downtime.
66
65
  """
67
66
  return pulumi.get(self, "end_time")
68
67
 
@@ -74,7 +73,7 @@ class MonitorDowntimeArgs:
74
73
  @pulumi.getter
75
74
  def mode(self) -> pulumi.Input[str]:
76
75
  """
77
- One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
76
+ An identifier of the type of Monitor Downtime to be created.
78
77
  """
79
78
  return pulumi.get(self, "mode")
80
79
 
@@ -86,7 +85,7 @@ class MonitorDowntimeArgs:
86
85
  @pulumi.getter(name="startTime")
87
86
  def start_time(self) -> pulumi.Input[str]:
88
87
  """
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`.
88
+ A datetime stamp signifying the start of the Monitor Downtime.
90
89
  """
91
90
  return pulumi.get(self, "start_time")
92
91
 
@@ -110,7 +109,8 @@ class MonitorDowntimeArgs:
110
109
  @pulumi.getter(name="accountId")
111
110
  def account_id(self) -> Optional[pulumi.Input[int]]:
112
111
  """
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.
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.
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
- Options which may be used to specify when the repeat cycle of the monitor should end. This argument comprises the following nested arguments -
125
+ A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
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
- Options which may be used to specify the configuration of a monthly monitor downtime. This argument comprises the following nested arguments -
137
+ Configuration options for which days of the month a monitor downtime will occur
138
138
  """
139
139
  return pulumi.get(self, "frequency")
140
140
 
@@ -146,9 +146,7 @@ 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 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`).
149
+ A list of maintenance days to be included with the created weekly Monitor Downtime.
152
150
  """
153
151
  return pulumi.get(self, "maintenance_days")
154
152
 
@@ -160,7 +158,7 @@ class MonitorDowntimeArgs:
160
158
  @pulumi.getter(name="monitorGuids")
161
159
  def monitor_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
162
160
  """
163
- A list of GUIDs of synthetic monitors the monitor downtime would need to be applied to.
161
+ A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
164
162
  """
165
163
  return pulumi.get(self, "monitor_guids")
166
164
 
@@ -172,7 +170,7 @@ class MonitorDowntimeArgs:
172
170
  @pulumi.getter
173
171
  def name(self) -> Optional[pulumi.Input[str]]:
174
172
  """
175
- Name of the monitor downtime to be created.
173
+ A name to identify the Monitor Downtime to be created.
176
174
  """
177
175
  return pulumi.get(self, "name")
178
176
 
@@ -196,17 +194,16 @@ class _MonitorDowntimeState:
196
194
  time_zone: Optional[pulumi.Input[str]] = None):
197
195
  """
198
196
  Input properties used for looking up and filtering MonitorDowntime resources.
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`.
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.
210
207
  :param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
211
208
  """
212
209
  if account_id is not None:
@@ -234,7 +231,8 @@ class _MonitorDowntimeState:
234
231
  @pulumi.getter(name="accountId")
235
232
  def account_id(self) -> Optional[pulumi.Input[int]]:
236
233
  """
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.
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.
238
236
  """
239
237
  return pulumi.get(self, "account_id")
240
238
 
@@ -246,7 +244,7 @@ class _MonitorDowntimeState:
246
244
  @pulumi.getter(name="endRepeat")
247
245
  def end_repeat(self) -> Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']]:
248
246
  """
249
- Options which may be used to specify when the repeat cycle of the monitor should end. This argument comprises the following nested arguments -
247
+ A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
250
248
  """
251
249
  return pulumi.get(self, "end_repeat")
252
250
 
@@ -258,7 +256,7 @@ class _MonitorDowntimeState:
258
256
  @pulumi.getter(name="endTime")
259
257
  def end_time(self) -> Optional[pulumi.Input[str]]:
260
258
  """
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`.
259
+ A datetime stamp signifying the end of the Monitor Downtime.
262
260
  """
263
261
  return pulumi.get(self, "end_time")
264
262
 
@@ -270,7 +268,7 @@ class _MonitorDowntimeState:
270
268
  @pulumi.getter
271
269
  def frequency(self) -> Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']]:
272
270
  """
273
- Options which may be used to specify the configuration of a monthly monitor downtime. This argument comprises the following nested arguments -
271
+ Configuration options for which days of the month a monitor downtime will occur
274
272
  """
275
273
  return pulumi.get(self, "frequency")
276
274
 
@@ -282,9 +280,7 @@ class _MonitorDowntimeState:
282
280
  @pulumi.getter(name="maintenanceDays")
283
281
  def maintenance_days(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
284
282
  """
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`).
283
+ A list of maintenance days to be included with the created weekly Monitor Downtime.
288
284
  """
289
285
  return pulumi.get(self, "maintenance_days")
290
286
 
@@ -296,7 +292,7 @@ class _MonitorDowntimeState:
296
292
  @pulumi.getter
297
293
  def mode(self) -> Optional[pulumi.Input[str]]:
298
294
  """
299
- One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
295
+ An identifier of the type of Monitor Downtime to be created.
300
296
  """
301
297
  return pulumi.get(self, "mode")
302
298
 
@@ -308,7 +304,7 @@ class _MonitorDowntimeState:
308
304
  @pulumi.getter(name="monitorGuids")
309
305
  def monitor_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
310
306
  """
311
- A list of GUIDs of synthetic monitors the monitor downtime would need to be applied to.
307
+ A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
312
308
  """
313
309
  return pulumi.get(self, "monitor_guids")
314
310
 
@@ -320,7 +316,7 @@ class _MonitorDowntimeState:
320
316
  @pulumi.getter
321
317
  def name(self) -> Optional[pulumi.Input[str]]:
322
318
  """
323
- Name of the monitor downtime to be created.
319
+ A name to identify the Monitor Downtime to be created.
324
320
  """
325
321
  return pulumi.get(self, "name")
326
322
 
@@ -332,7 +328,7 @@ class _MonitorDowntimeState:
332
328
  @pulumi.getter(name="startTime")
333
329
  def start_time(self) -> Optional[pulumi.Input[str]]:
334
330
  """
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`.
331
+ A datetime stamp signifying the start of the Monitor Downtime.
336
332
  """
337
333
  return pulumi.get(self, "start_time")
338
334
 
@@ -374,7 +370,6 @@ class MonitorDowntime(pulumi.CustomResource):
374
370
 
375
371
  ## Example Usage
376
372
 
377
- <!--Start PulumiCodeChooser -->
378
373
  ```python
379
374
  import pulumi
380
375
  import pulumi_newrelic as newrelic
@@ -397,7 +392,6 @@ class MonitorDowntime(pulumi.CustomResource):
397
392
  "SATURDAY",
398
393
  ])
399
394
  ```
400
- <!--End PulumiCodeChooser -->
401
395
  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.
402
396
 
403
397
  ## Examples
@@ -406,7 +400,6 @@ class MonitorDowntime(pulumi.CustomResource):
406
400
 
407
401
  The below example illustrates creating a **one-time** monitor downtime.
408
402
 
409
- <!--Start PulumiCodeChooser -->
410
403
  ```python
411
404
  import pulumi
412
405
  import pulumi_newrelic as newrelic
@@ -422,7 +415,6 @@ class MonitorDowntime(pulumi.CustomResource):
422
415
  end_time="2024-01-04T16:24:30",
423
416
  time_zone="America/Los_Angeles")
424
417
  ```
425
- <!--End PulumiCodeChooser -->
426
418
 
427
419
  ### Daily Monitor Downtime
428
420
 
@@ -430,7 +422,6 @@ class MonitorDowntime(pulumi.CustomResource):
430
422
 
431
423
  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.
432
424
 
433
- <!--Start PulumiCodeChooser -->
434
425
  ```python
435
426
  import pulumi
436
427
  import pulumi_newrelic as newrelic
@@ -449,7 +440,6 @@ class MonitorDowntime(pulumi.CustomResource):
449
440
  ),
450
441
  time_zone="Asia/Kolkata")
451
442
  ```
452
- <!--End PulumiCodeChooser -->
453
443
 
454
444
  ### Weekly Monitor Downtime
455
445
 
@@ -457,7 +447,6 @@ class MonitorDowntime(pulumi.CustomResource):
457
447
 
458
448
  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.
459
449
 
460
- <!--Start PulumiCodeChooser -->
461
450
  ```python
462
451
  import pulumi
463
452
  import pulumi_newrelic as newrelic
@@ -477,7 +466,6 @@ class MonitorDowntime(pulumi.CustomResource):
477
466
  "SUNDAY",
478
467
  ])
479
468
  ```
480
- <!--End PulumiCodeChooser -->
481
469
 
482
470
  ### Monthly Monitor Downtime
483
471
 
@@ -485,7 +473,6 @@ class MonitorDowntime(pulumi.CustomResource):
485
473
 
486
474
  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.
487
475
 
488
- <!--Start PulumiCodeChooser -->
489
476
  ```python
490
477
  import pulumi
491
478
  import pulumi_newrelic as newrelic
@@ -510,9 +497,7 @@ class MonitorDowntime(pulumi.CustomResource):
510
497
  ),
511
498
  ))
512
499
  ```
513
- <!--End PulumiCodeChooser -->
514
500
  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.
515
- <!--Start PulumiCodeChooser -->
516
501
  ```python
517
502
  import pulumi
518
503
  import pulumi_newrelic as newrelic
@@ -539,7 +524,6 @@ class MonitorDowntime(pulumi.CustomResource):
539
524
  ],
540
525
  ))
541
526
  ```
542
- <!--End PulumiCodeChooser -->
543
527
 
544
528
  ## Import
545
529
 
@@ -553,17 +537,16 @@ class MonitorDowntime(pulumi.CustomResource):
553
537
 
554
538
  :param str resource_name: The name of the resource.
555
539
  :param pulumi.ResourceOptions opts: Options for the resource.
556
- :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.
557
- :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 -
558
- :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`.
559
- :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 -
560
- :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"`.
561
-
562
- > **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`).
563
- :param pulumi.Input[str] mode: One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
564
- :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.
565
- :param pulumi.Input[str] name: Name of the monitor downtime to be created.
566
- :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`.
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.
567
550
  :param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
568
551
  """
569
552
  ...
@@ -577,7 +560,6 @@ class MonitorDowntime(pulumi.CustomResource):
577
560
 
578
561
  ## Example Usage
579
562
 
580
- <!--Start PulumiCodeChooser -->
581
563
  ```python
582
564
  import pulumi
583
565
  import pulumi_newrelic as newrelic
@@ -600,7 +582,6 @@ class MonitorDowntime(pulumi.CustomResource):
600
582
  "SATURDAY",
601
583
  ])
602
584
  ```
603
- <!--End PulumiCodeChooser -->
604
585
  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.
605
586
 
606
587
  ## Examples
@@ -609,7 +590,6 @@ class MonitorDowntime(pulumi.CustomResource):
609
590
 
610
591
  The below example illustrates creating a **one-time** monitor downtime.
611
592
 
612
- <!--Start PulumiCodeChooser -->
613
593
  ```python
614
594
  import pulumi
615
595
  import pulumi_newrelic as newrelic
@@ -625,7 +605,6 @@ class MonitorDowntime(pulumi.CustomResource):
625
605
  end_time="2024-01-04T16:24:30",
626
606
  time_zone="America/Los_Angeles")
627
607
  ```
628
- <!--End PulumiCodeChooser -->
629
608
 
630
609
  ### Daily Monitor Downtime
631
610
 
@@ -633,7 +612,6 @@ class MonitorDowntime(pulumi.CustomResource):
633
612
 
634
613
  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.
635
614
 
636
- <!--Start PulumiCodeChooser -->
637
615
  ```python
638
616
  import pulumi
639
617
  import pulumi_newrelic as newrelic
@@ -652,7 +630,6 @@ class MonitorDowntime(pulumi.CustomResource):
652
630
  ),
653
631
  time_zone="Asia/Kolkata")
654
632
  ```
655
- <!--End PulumiCodeChooser -->
656
633
 
657
634
  ### Weekly Monitor Downtime
658
635
 
@@ -660,7 +637,6 @@ class MonitorDowntime(pulumi.CustomResource):
660
637
 
661
638
  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.
662
639
 
663
- <!--Start PulumiCodeChooser -->
664
640
  ```python
665
641
  import pulumi
666
642
  import pulumi_newrelic as newrelic
@@ -680,7 +656,6 @@ class MonitorDowntime(pulumi.CustomResource):
680
656
  "SUNDAY",
681
657
  ])
682
658
  ```
683
- <!--End PulumiCodeChooser -->
684
659
 
685
660
  ### Monthly Monitor Downtime
686
661
 
@@ -688,7 +663,6 @@ class MonitorDowntime(pulumi.CustomResource):
688
663
 
689
664
  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.
690
665
 
691
- <!--Start PulumiCodeChooser -->
692
666
  ```python
693
667
  import pulumi
694
668
  import pulumi_newrelic as newrelic
@@ -713,9 +687,7 @@ class MonitorDowntime(pulumi.CustomResource):
713
687
  ),
714
688
  ))
715
689
  ```
716
- <!--End PulumiCodeChooser -->
717
690
  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.
718
- <!--Start PulumiCodeChooser -->
719
691
  ```python
720
692
  import pulumi
721
693
  import pulumi_newrelic as newrelic
@@ -742,7 +714,6 @@ class MonitorDowntime(pulumi.CustomResource):
742
714
  ],
743
715
  ))
744
716
  ```
745
- <!--End PulumiCodeChooser -->
746
717
 
747
718
  ## Import
748
719
 
@@ -833,17 +804,16 @@ class MonitorDowntime(pulumi.CustomResource):
833
804
  :param str resource_name: The unique name of the resulting resource.
834
805
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
835
806
  :param pulumi.ResourceOptions opts: Options for the resource.
836
- :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.
837
- :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 -
838
- :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`.
839
- :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 -
840
- :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"`.
841
-
842
- > **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`).
843
- :param pulumi.Input[str] mode: One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
844
- :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.
845
- :param pulumi.Input[str] name: Name of the monitor downtime to be created.
846
- :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`.
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.
847
817
  :param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
848
818
  """
849
819
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -866,7 +836,8 @@ class MonitorDowntime(pulumi.CustomResource):
866
836
  @pulumi.getter(name="accountId")
867
837
  def account_id(self) -> pulumi.Output[int]:
868
838
  """
869
- 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.
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.
870
841
  """
871
842
  return pulumi.get(self, "account_id")
872
843
 
@@ -874,7 +845,7 @@ class MonitorDowntime(pulumi.CustomResource):
874
845
  @pulumi.getter(name="endRepeat")
875
846
  def end_repeat(self) -> pulumi.Output[Optional['outputs.MonitorDowntimeEndRepeat']]:
876
847
  """
877
- Options which may be used to specify when the repeat cycle of the monitor should end. This argument comprises the following nested arguments -
848
+ A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
878
849
  """
879
850
  return pulumi.get(self, "end_repeat")
880
851
 
@@ -882,7 +853,7 @@ class MonitorDowntime(pulumi.CustomResource):
882
853
  @pulumi.getter(name="endTime")
883
854
  def end_time(self) -> pulumi.Output[str]:
884
855
  """
885
- 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`.
856
+ A datetime stamp signifying the end of the Monitor Downtime.
886
857
  """
887
858
  return pulumi.get(self, "end_time")
888
859
 
@@ -890,7 +861,7 @@ class MonitorDowntime(pulumi.CustomResource):
890
861
  @pulumi.getter
891
862
  def frequency(self) -> pulumi.Output[Optional['outputs.MonitorDowntimeFrequency']]:
892
863
  """
893
- Options which may be used to specify the configuration of a monthly monitor downtime. This argument comprises the following nested arguments -
864
+ Configuration options for which days of the month a monitor downtime will occur
894
865
  """
895
866
  return pulumi.get(self, "frequency")
896
867
 
@@ -898,9 +869,7 @@ class MonitorDowntime(pulumi.CustomResource):
898
869
  @pulumi.getter(name="maintenanceDays")
899
870
  def maintenance_days(self) -> pulumi.Output[Optional[Sequence[str]]]:
900
871
  """
901
- 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"`.
902
-
903
- > **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`).
872
+ A list of maintenance days to be included with the created weekly Monitor Downtime.
904
873
  """
905
874
  return pulumi.get(self, "maintenance_days")
906
875
 
@@ -908,7 +877,7 @@ class MonitorDowntime(pulumi.CustomResource):
908
877
  @pulumi.getter
909
878
  def mode(self) -> pulumi.Output[str]:
910
879
  """
911
- One of the four modes of operation of monitor downtimes - `ONE_TIME`, `DAILY`, `MONTHLY` or `WEEKLY`.
880
+ An identifier of the type of Monitor Downtime to be created.
912
881
  """
913
882
  return pulumi.get(self, "mode")
914
883
 
@@ -916,7 +885,7 @@ class MonitorDowntime(pulumi.CustomResource):
916
885
  @pulumi.getter(name="monitorGuids")
917
886
  def monitor_guids(self) -> pulumi.Output[Optional[Sequence[str]]]:
918
887
  """
919
- A list of GUIDs of synthetic monitors the monitor downtime would need to be applied to.
888
+ A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
920
889
  """
921
890
  return pulumi.get(self, "monitor_guids")
922
891
 
@@ -924,7 +893,7 @@ class MonitorDowntime(pulumi.CustomResource):
924
893
  @pulumi.getter
925
894
  def name(self) -> pulumi.Output[str]:
926
895
  """
927
- Name of the monitor downtime to be created.
896
+ A name to identify the Monitor Downtime to be created.
928
897
  """
929
898
  return pulumi.get(self, "name")
930
899
 
@@ -932,7 +901,7 @@ class MonitorDowntime(pulumi.CustomResource):
932
901
  @pulumi.getter(name="startTime")
933
902
  def start_time(self) -> pulumi.Output[str]:
934
903
  """
935
- 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`.
904
+ A datetime stamp signifying the start of the Monitor Downtime.
936
905
  """
937
906
  return pulumi.get(self, "start_time")
938
907