pulumi-newrelic 5.16.0a1698964311__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 +58 -1
  2. pulumi_newrelic/_inputs.py +10772 -2775
  3. pulumi_newrelic/_utilities.py +92 -11
  4. pulumi_newrelic/account_management.py +56 -42
  5. pulumi_newrelic/alert_channel.py +177 -151
  6. pulumi_newrelic/alert_condition.py +313 -301
  7. pulumi_newrelic/alert_muting_rule.py +195 -138
  8. pulumi_newrelic/alert_policy.py +157 -109
  9. pulumi_newrelic/alert_policy_channel.py +95 -81
  10. pulumi_newrelic/api_access_key.py +191 -209
  11. pulumi_newrelic/browser_application.py +161 -153
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2710
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +238 -200
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +159 -212
  16. pulumi_newrelic/cloud/aws_integrations.py +518 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +88 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +681 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +129 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +436 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +71 -59
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2317
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +45 -0
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +129 -117
  28. pulumi_newrelic/entity_tags.py +153 -31
  29. pulumi_newrelic/events_to_metrics_rule.py +114 -102
  30. pulumi_newrelic/get_account.py +41 -29
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +83 -34
  33. pulumi_newrelic/get_application.py +51 -39
  34. pulumi_newrelic/get_authentication_domain.py +111 -0
  35. pulumi_newrelic/get_cloud_account.py +43 -31
  36. pulumi_newrelic/get_entity.py +126 -121
  37. pulumi_newrelic/get_group.py +190 -0
  38. pulumi_newrelic/get_key_transaction.py +117 -38
  39. pulumi_newrelic/get_notification_destination.py +86 -36
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -35
  41. pulumi_newrelic/get_service_level_alert_helper.py +237 -137
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -32
  43. pulumi_newrelic/get_user.py +165 -0
  44. pulumi_newrelic/group.py +286 -0
  45. pulumi_newrelic/infra_alert_condition.py +400 -382
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +94 -23
  48. pulumi_newrelic/insights/event.py +56 -48
  49. pulumi_newrelic/insights/outputs.py +51 -18
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +169 -153
  52. pulumi_newrelic/monitor_downtime.py +914 -0
  53. pulumi_newrelic/notification_channel.py +560 -418
  54. pulumi_newrelic/notification_destination.py +379 -124
  55. pulumi_newrelic/nrql_alert_condition.py +945 -513
  56. pulumi_newrelic/nrql_drop_rule.py +121 -129
  57. pulumi_newrelic/obfuscation_expression.py +88 -76
  58. pulumi_newrelic/obfuscation_rule.py +123 -109
  59. pulumi_newrelic/one_dashboard.py +118 -108
  60. pulumi_newrelic/one_dashboard_json.py +77 -67
  61. pulumi_newrelic/one_dashboard_raw.py +214 -202
  62. pulumi_newrelic/outputs.py +5491 -2141
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +520 -90
  66. pulumi_newrelic/plugins/application_settings.py +463 -167
  67. pulumi_newrelic/plugins/outputs.py +337 -75
  68. pulumi_newrelic/plugins/workload.py +387 -151
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +277 -255
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +275 -106
  74. pulumi_newrelic/synthetics/alert_condition.py +174 -160
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +367 -207
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +380 -218
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -39
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -27
  79. pulumi_newrelic/synthetics/monitor.py +668 -462
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +219 -201
  81. pulumi_newrelic/synthetics/outputs.py +102 -85
  82. pulumi_newrelic/synthetics/private_location.py +120 -110
  83. pulumi_newrelic/synthetics/script_monitor.py +623 -375
  84. pulumi_newrelic/synthetics/secure_credential.py +99 -93
  85. pulumi_newrelic/synthetics/step_monitor.py +545 -201
  86. pulumi_newrelic/user.py +366 -0
  87. pulumi_newrelic/workflow.py +348 -312
  88. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +8 -7
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.16.0a1698964311.dist-info/RECORD +0 -82
  92. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,914 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
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
15
+ from . import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
18
+
19
+ __all__ = ['MonitorDowntimeArgs', 'MonitorDowntime']
20
+
21
+ @pulumi.input_type
22
+ class MonitorDowntimeArgs:
23
+ def __init__(__self__, *,
24
+ end_time: pulumi.Input[_builtins.str],
25
+ mode: pulumi.Input[_builtins.str],
26
+ start_time: pulumi.Input[_builtins.str],
27
+ time_zone: pulumi.Input[_builtins.str],
28
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
29
+ end_repeat: Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']] = None,
30
+ frequency: Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']] = None,
31
+ maintenance_days: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
32
+ monitor_guids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
33
+ name: Optional[pulumi.Input[_builtins.str]] = None):
34
+ """
35
+ The set of arguments for constructing a MonitorDowntime resource.
36
+ :param pulumi.Input[_builtins.str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
37
+ :param pulumi.Input[_builtins.str] mode: An identifier of the type of Monitor Downtime to be created.
38
+ :param pulumi.Input[_builtins.str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
39
+ :param pulumi.Input[_builtins.str] time_zone: The timezone that applies to the Monitor Downtime schedule.
40
+ :param pulumi.Input[_builtins.str] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the provider{} configuration if not specified.
41
+ :param pulumi.Input['MonitorDowntimeEndRepeatArgs'] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
42
+ :param pulumi.Input['MonitorDowntimeFrequencyArgs'] frequency: Configuration options for which days of the month a monitor downtime will occur
43
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
44
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
45
+ :param pulumi.Input[_builtins.str] name: A name to identify the Monitor Downtime to be created.
46
+ """
47
+ pulumi.set(__self__, "end_time", end_time)
48
+ pulumi.set(__self__, "mode", mode)
49
+ pulumi.set(__self__, "start_time", start_time)
50
+ pulumi.set(__self__, "time_zone", time_zone)
51
+ if account_id is not None:
52
+ pulumi.set(__self__, "account_id", account_id)
53
+ if end_repeat is not None:
54
+ pulumi.set(__self__, "end_repeat", end_repeat)
55
+ if frequency is not None:
56
+ pulumi.set(__self__, "frequency", frequency)
57
+ if maintenance_days is not None:
58
+ pulumi.set(__self__, "maintenance_days", maintenance_days)
59
+ if monitor_guids is not None:
60
+ pulumi.set(__self__, "monitor_guids", monitor_guids)
61
+ if name is not None:
62
+ pulumi.set(__self__, "name", name)
63
+
64
+ @_builtins.property
65
+ @pulumi.getter(name="endTime")
66
+ def end_time(self) -> pulumi.Input[_builtins.str]:
67
+ """
68
+ A datetime stamp signifying the end of the Monitor Downtime.
69
+ """
70
+ return pulumi.get(self, "end_time")
71
+
72
+ @end_time.setter
73
+ def end_time(self, value: pulumi.Input[_builtins.str]):
74
+ pulumi.set(self, "end_time", value)
75
+
76
+ @_builtins.property
77
+ @pulumi.getter
78
+ def mode(self) -> pulumi.Input[_builtins.str]:
79
+ """
80
+ An identifier of the type of Monitor Downtime to be created.
81
+ """
82
+ return pulumi.get(self, "mode")
83
+
84
+ @mode.setter
85
+ def mode(self, value: pulumi.Input[_builtins.str]):
86
+ pulumi.set(self, "mode", value)
87
+
88
+ @_builtins.property
89
+ @pulumi.getter(name="startTime")
90
+ def start_time(self) -> pulumi.Input[_builtins.str]:
91
+ """
92
+ A datetime stamp signifying the start of the Monitor Downtime.
93
+ """
94
+ return pulumi.get(self, "start_time")
95
+
96
+ @start_time.setter
97
+ def start_time(self, value: pulumi.Input[_builtins.str]):
98
+ pulumi.set(self, "start_time", value)
99
+
100
+ @_builtins.property
101
+ @pulumi.getter(name="timeZone")
102
+ def time_zone(self) -> pulumi.Input[_builtins.str]:
103
+ """
104
+ The timezone that applies to the Monitor Downtime schedule.
105
+ """
106
+ return pulumi.get(self, "time_zone")
107
+
108
+ @time_zone.setter
109
+ def time_zone(self, value: pulumi.Input[_builtins.str]):
110
+ pulumi.set(self, "time_zone", value)
111
+
112
+ @_builtins.property
113
+ @pulumi.getter(name="accountId")
114
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
115
+ """
116
+ The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the provider{} configuration if not specified.
117
+ """
118
+ return pulumi.get(self, "account_id")
119
+
120
+ @account_id.setter
121
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
122
+ pulumi.set(self, "account_id", value)
123
+
124
+ @_builtins.property
125
+ @pulumi.getter(name="endRepeat")
126
+ def end_repeat(self) -> Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']]:
127
+ """
128
+ A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
129
+ """
130
+ return pulumi.get(self, "end_repeat")
131
+
132
+ @end_repeat.setter
133
+ def end_repeat(self, value: Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']]):
134
+ pulumi.set(self, "end_repeat", value)
135
+
136
+ @_builtins.property
137
+ @pulumi.getter
138
+ def frequency(self) -> Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']]:
139
+ """
140
+ Configuration options for which days of the month a monitor downtime will occur
141
+ """
142
+ return pulumi.get(self, "frequency")
143
+
144
+ @frequency.setter
145
+ def frequency(self, value: Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']]):
146
+ pulumi.set(self, "frequency", value)
147
+
148
+ @_builtins.property
149
+ @pulumi.getter(name="maintenanceDays")
150
+ def maintenance_days(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
151
+ """
152
+ A list of maintenance days to be included with the created weekly Monitor Downtime.
153
+ """
154
+ return pulumi.get(self, "maintenance_days")
155
+
156
+ @maintenance_days.setter
157
+ def maintenance_days(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
158
+ pulumi.set(self, "maintenance_days", value)
159
+
160
+ @_builtins.property
161
+ @pulumi.getter(name="monitorGuids")
162
+ def monitor_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
163
+ """
164
+ A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
165
+ """
166
+ return pulumi.get(self, "monitor_guids")
167
+
168
+ @monitor_guids.setter
169
+ def monitor_guids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
170
+ pulumi.set(self, "monitor_guids", value)
171
+
172
+ @_builtins.property
173
+ @pulumi.getter
174
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
175
+ """
176
+ A name to identify the Monitor Downtime to be created.
177
+ """
178
+ return pulumi.get(self, "name")
179
+
180
+ @name.setter
181
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
182
+ pulumi.set(self, "name", value)
183
+
184
+
185
+ @pulumi.input_type
186
+ class _MonitorDowntimeState:
187
+ def __init__(__self__, *,
188
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
189
+ end_repeat: Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']] = None,
190
+ end_time: Optional[pulumi.Input[_builtins.str]] = None,
191
+ frequency: Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']] = None,
192
+ maintenance_days: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
193
+ mode: Optional[pulumi.Input[_builtins.str]] = None,
194
+ monitor_guids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
195
+ name: Optional[pulumi.Input[_builtins.str]] = None,
196
+ start_time: Optional[pulumi.Input[_builtins.str]] = None,
197
+ time_zone: Optional[pulumi.Input[_builtins.str]] = None):
198
+ """
199
+ Input properties used for looking up and filtering MonitorDowntime resources.
200
+ :param pulumi.Input[_builtins.str] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the provider{} configuration if not specified.
201
+ :param pulumi.Input['MonitorDowntimeEndRepeatArgs'] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
202
+ :param pulumi.Input[_builtins.str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
203
+ :param pulumi.Input['MonitorDowntimeFrequencyArgs'] frequency: Configuration options for which days of the month a monitor downtime will occur
204
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
205
+ :param pulumi.Input[_builtins.str] mode: An identifier of the type of Monitor Downtime to be created.
206
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
207
+ :param pulumi.Input[_builtins.str] name: A name to identify the Monitor Downtime to be created.
208
+ :param pulumi.Input[_builtins.str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
209
+ :param pulumi.Input[_builtins.str] time_zone: The timezone that applies to the Monitor Downtime schedule.
210
+ """
211
+ if account_id is not None:
212
+ pulumi.set(__self__, "account_id", account_id)
213
+ if end_repeat is not None:
214
+ pulumi.set(__self__, "end_repeat", end_repeat)
215
+ if end_time is not None:
216
+ pulumi.set(__self__, "end_time", end_time)
217
+ if frequency is not None:
218
+ pulumi.set(__self__, "frequency", frequency)
219
+ if maintenance_days is not None:
220
+ pulumi.set(__self__, "maintenance_days", maintenance_days)
221
+ if mode is not None:
222
+ pulumi.set(__self__, "mode", mode)
223
+ if monitor_guids is not None:
224
+ pulumi.set(__self__, "monitor_guids", monitor_guids)
225
+ if name is not None:
226
+ pulumi.set(__self__, "name", name)
227
+ if start_time is not None:
228
+ pulumi.set(__self__, "start_time", start_time)
229
+ if time_zone is not None:
230
+ pulumi.set(__self__, "time_zone", time_zone)
231
+
232
+ @_builtins.property
233
+ @pulumi.getter(name="accountId")
234
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
235
+ """
236
+ The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the provider{} configuration if not specified.
237
+ """
238
+ return pulumi.get(self, "account_id")
239
+
240
+ @account_id.setter
241
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
242
+ pulumi.set(self, "account_id", value)
243
+
244
+ @_builtins.property
245
+ @pulumi.getter(name="endRepeat")
246
+ def end_repeat(self) -> Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']]:
247
+ """
248
+ A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
249
+ """
250
+ return pulumi.get(self, "end_repeat")
251
+
252
+ @end_repeat.setter
253
+ def end_repeat(self, value: Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']]):
254
+ pulumi.set(self, "end_repeat", value)
255
+
256
+ @_builtins.property
257
+ @pulumi.getter(name="endTime")
258
+ def end_time(self) -> Optional[pulumi.Input[_builtins.str]]:
259
+ """
260
+ A datetime stamp signifying the end of the Monitor Downtime.
261
+ """
262
+ return pulumi.get(self, "end_time")
263
+
264
+ @end_time.setter
265
+ def end_time(self, value: Optional[pulumi.Input[_builtins.str]]):
266
+ pulumi.set(self, "end_time", value)
267
+
268
+ @_builtins.property
269
+ @pulumi.getter
270
+ def frequency(self) -> Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']]:
271
+ """
272
+ Configuration options for which days of the month a monitor downtime will occur
273
+ """
274
+ return pulumi.get(self, "frequency")
275
+
276
+ @frequency.setter
277
+ def frequency(self, value: Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']]):
278
+ pulumi.set(self, "frequency", value)
279
+
280
+ @_builtins.property
281
+ @pulumi.getter(name="maintenanceDays")
282
+ def maintenance_days(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
283
+ """
284
+ A list of maintenance days to be included with the created weekly Monitor Downtime.
285
+ """
286
+ return pulumi.get(self, "maintenance_days")
287
+
288
+ @maintenance_days.setter
289
+ def maintenance_days(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
290
+ pulumi.set(self, "maintenance_days", value)
291
+
292
+ @_builtins.property
293
+ @pulumi.getter
294
+ def mode(self) -> Optional[pulumi.Input[_builtins.str]]:
295
+ """
296
+ An identifier of the type of Monitor Downtime to be created.
297
+ """
298
+ return pulumi.get(self, "mode")
299
+
300
+ @mode.setter
301
+ def mode(self, value: Optional[pulumi.Input[_builtins.str]]):
302
+ pulumi.set(self, "mode", value)
303
+
304
+ @_builtins.property
305
+ @pulumi.getter(name="monitorGuids")
306
+ def monitor_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
307
+ """
308
+ A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
309
+ """
310
+ return pulumi.get(self, "monitor_guids")
311
+
312
+ @monitor_guids.setter
313
+ def monitor_guids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
314
+ pulumi.set(self, "monitor_guids", value)
315
+
316
+ @_builtins.property
317
+ @pulumi.getter
318
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
319
+ """
320
+ A name to identify the Monitor Downtime to be created.
321
+ """
322
+ return pulumi.get(self, "name")
323
+
324
+ @name.setter
325
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
326
+ pulumi.set(self, "name", value)
327
+
328
+ @_builtins.property
329
+ @pulumi.getter(name="startTime")
330
+ def start_time(self) -> Optional[pulumi.Input[_builtins.str]]:
331
+ """
332
+ A datetime stamp signifying the start of the Monitor Downtime.
333
+ """
334
+ return pulumi.get(self, "start_time")
335
+
336
+ @start_time.setter
337
+ def start_time(self, value: Optional[pulumi.Input[_builtins.str]]):
338
+ pulumi.set(self, "start_time", value)
339
+
340
+ @_builtins.property
341
+ @pulumi.getter(name="timeZone")
342
+ def time_zone(self) -> Optional[pulumi.Input[_builtins.str]]:
343
+ """
344
+ The timezone that applies to the Monitor Downtime schedule.
345
+ """
346
+ return pulumi.get(self, "time_zone")
347
+
348
+ @time_zone.setter
349
+ def time_zone(self, value: Optional[pulumi.Input[_builtins.str]]):
350
+ pulumi.set(self, "time_zone", value)
351
+
352
+
353
+ @pulumi.type_token("newrelic:index/monitorDowntime:MonitorDowntime")
354
+ class MonitorDowntime(pulumi.CustomResource):
355
+ @overload
356
+ def __init__(__self__,
357
+ resource_name: str,
358
+ opts: Optional[pulumi.ResourceOptions] = None,
359
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
360
+ end_repeat: Optional[pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']]] = None,
361
+ end_time: Optional[pulumi.Input[_builtins.str]] = None,
362
+ frequency: Optional[pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']]] = None,
363
+ maintenance_days: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
364
+ mode: Optional[pulumi.Input[_builtins.str]] = None,
365
+ monitor_guids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
366
+ name: Optional[pulumi.Input[_builtins.str]] = None,
367
+ start_time: Optional[pulumi.Input[_builtins.str]] = None,
368
+ time_zone: Optional[pulumi.Input[_builtins.str]] = None,
369
+ __props__=None):
370
+ """
371
+ Use this resource to create, update, and delete [Monitor Downtimes](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/using-monitors/monitor-downtimes-disable-monitoring-during-scheduled-maintenance-times/) in New Relic.
372
+
373
+ ## Example Usage
374
+
375
+ ```python
376
+ import pulumi
377
+ import pulumi_newrelic as newrelic
378
+
379
+ foo = newrelic.MonitorDowntime("foo",
380
+ name="Sample Monitor Downtime",
381
+ monitor_guids=[
382
+ "<GUID-1>",
383
+ "<GUID-2>",
384
+ ],
385
+ mode="WEEKLY",
386
+ start_time="2023-11-30T10:30:00",
387
+ end_time="2023-12-10T02:45:30",
388
+ time_zone="Asia/Kolkata",
389
+ end_repeat={
390
+ "on_date": "2023-12-20",
391
+ },
392
+ maintenance_days=[
393
+ "FRIDAY",
394
+ "SATURDAY",
395
+ ])
396
+ ```
397
+ 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.
398
+
399
+ ## Examples
400
+
401
+ ### One-Time Monitor Downtime
402
+
403
+ The below example illustrates creating a **one-time** monitor downtime.
404
+
405
+ ```python
406
+ import pulumi
407
+ import pulumi_newrelic as newrelic
408
+
409
+ sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_one_time_newrelic_monitor_downtime",
410
+ name="Sample One Time Monitor Downtime",
411
+ monitor_guids=[
412
+ "<GUID-1>",
413
+ "<GUID-2>",
414
+ ],
415
+ mode="ONE_TIME",
416
+ start_time="2023-12-04T10:15:00",
417
+ end_time="2024-01-04T16:24:30",
418
+ time_zone="America/Los_Angeles")
419
+ ```
420
+
421
+ ### Daily Monitor Downtime
422
+
423
+ The below example illustrates creating a **daily** monitor downtime.
424
+
425
+ 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.
426
+
427
+ ```python
428
+ import pulumi
429
+ import pulumi_newrelic as newrelic
430
+
431
+ sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_daily_newrelic_monitor_downtime",
432
+ name="Sample Daily Monitor Downtime",
433
+ monitor_guids=[
434
+ "<GUID-1>",
435
+ "<GUID-2>",
436
+ ],
437
+ mode="DAILY",
438
+ start_time="2023-12-04T18:15:00",
439
+ end_time="2024-01-04T07:15:00",
440
+ end_repeat={
441
+ "on_date": "2023-12-25",
442
+ },
443
+ time_zone="Asia/Kolkata")
444
+ ```
445
+
446
+ ### Weekly Monitor Downtime
447
+
448
+ The below example illustrates creating a **weekly** monitor downtime.
449
+
450
+ 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.
451
+
452
+ ```python
453
+ import pulumi
454
+ import pulumi_newrelic as newrelic
455
+
456
+ sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_weekly_newrelic_monitor_downtime",
457
+ name="Sample Weekly Monitor Downtime",
458
+ monitor_guids=[
459
+ "<GUID-1>",
460
+ "<GUID-2>",
461
+ ],
462
+ mode="WEEKLY",
463
+ start_time="2023-12-04T14:15:00",
464
+ end_time="2024-01-04T23:55:00",
465
+ time_zone="US/Hawaii",
466
+ maintenance_days=[
467
+ "SATURDAY",
468
+ "SUNDAY",
469
+ ])
470
+ ```
471
+
472
+ ### Monthly Monitor Downtime
473
+
474
+ The below example illustrates creating a **monthly** monitor downtime.
475
+
476
+ 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.
477
+
478
+ ```python
479
+ import pulumi
480
+ import pulumi_newrelic as newrelic
481
+
482
+ sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
483
+ name="Sample Monthly Monitor Downtime",
484
+ monitor_guids=[
485
+ "<GUID-1>",
486
+ "<GUID-2>",
487
+ ],
488
+ mode="MONTHLY",
489
+ start_time="2023-12-04T07:15:00",
490
+ end_time="2024-01-04T19:15:00",
491
+ end_repeat={
492
+ "on_repeat": 6,
493
+ },
494
+ time_zone="Europe/Dublin",
495
+ frequency={
496
+ "days_of_week": {
497
+ "ordinal_day_of_month": "SECOND",
498
+ "week_day": "SATURDAY",
499
+ },
500
+ })
501
+ ```
502
+ 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.
503
+ ```python
504
+ import pulumi
505
+ import pulumi_newrelic as newrelic
506
+
507
+ sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
508
+ name="Sample Monthly Monitor Downtime",
509
+ monitor_guids=[
510
+ "<GUID-1>",
511
+ "<GUID-2>",
512
+ ],
513
+ mode="MONTHLY",
514
+ start_time="2023-12-04T07:15:00",
515
+ end_time="2024-01-04T19:15:00",
516
+ end_repeat={
517
+ "on_repeat": 6,
518
+ },
519
+ time_zone="Europe/Dublin",
520
+ frequency={
521
+ "days_of_months": [
522
+ 3,
523
+ 6,
524
+ 14,
525
+ 23,
526
+ ],
527
+ })
528
+ ```
529
+
530
+ ## Import
531
+
532
+ A monitor downtime can be imported into Terraform configuration using its `guid`, i.e.
533
+
534
+ bash
535
+
536
+ ```sh
537
+ $ pulumi import newrelic:index/monitorDowntime:MonitorDowntime monitor <guid>
538
+ ```
539
+
540
+ :param str resource_name: The name of the resource.
541
+ :param pulumi.ResourceOptions opts: Options for the resource.
542
+ :param pulumi.Input[_builtins.str] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the provider{} configuration if not specified.
543
+ :param pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
544
+ :param pulumi.Input[_builtins.str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
545
+ :param pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']] frequency: Configuration options for which days of the month a monitor downtime will occur
546
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
547
+ :param pulumi.Input[_builtins.str] mode: An identifier of the type of Monitor Downtime to be created.
548
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
549
+ :param pulumi.Input[_builtins.str] name: A name to identify the Monitor Downtime to be created.
550
+ :param pulumi.Input[_builtins.str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
551
+ :param pulumi.Input[_builtins.str] time_zone: The timezone that applies to the Monitor Downtime schedule.
552
+ """
553
+ ...
554
+ @overload
555
+ def __init__(__self__,
556
+ resource_name: str,
557
+ args: MonitorDowntimeArgs,
558
+ opts: Optional[pulumi.ResourceOptions] = None):
559
+ """
560
+ Use this resource to create, update, and delete [Monitor Downtimes](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/using-monitors/monitor-downtimes-disable-monitoring-during-scheduled-maintenance-times/) in New Relic.
561
+
562
+ ## Example Usage
563
+
564
+ ```python
565
+ import pulumi
566
+ import pulumi_newrelic as newrelic
567
+
568
+ foo = newrelic.MonitorDowntime("foo",
569
+ name="Sample Monitor Downtime",
570
+ monitor_guids=[
571
+ "<GUID-1>",
572
+ "<GUID-2>",
573
+ ],
574
+ mode="WEEKLY",
575
+ start_time="2023-11-30T10:30:00",
576
+ end_time="2023-12-10T02:45:30",
577
+ time_zone="Asia/Kolkata",
578
+ end_repeat={
579
+ "on_date": "2023-12-20",
580
+ },
581
+ maintenance_days=[
582
+ "FRIDAY",
583
+ "SATURDAY",
584
+ ])
585
+ ```
586
+ 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.
587
+
588
+ ## Examples
589
+
590
+ ### One-Time Monitor Downtime
591
+
592
+ The below example illustrates creating a **one-time** monitor downtime.
593
+
594
+ ```python
595
+ import pulumi
596
+ import pulumi_newrelic as newrelic
597
+
598
+ sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_one_time_newrelic_monitor_downtime",
599
+ name="Sample One Time Monitor Downtime",
600
+ monitor_guids=[
601
+ "<GUID-1>",
602
+ "<GUID-2>",
603
+ ],
604
+ mode="ONE_TIME",
605
+ start_time="2023-12-04T10:15:00",
606
+ end_time="2024-01-04T16:24:30",
607
+ time_zone="America/Los_Angeles")
608
+ ```
609
+
610
+ ### Daily Monitor Downtime
611
+
612
+ The below example illustrates creating a **daily** monitor downtime.
613
+
614
+ 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.
615
+
616
+ ```python
617
+ import pulumi
618
+ import pulumi_newrelic as newrelic
619
+
620
+ sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_daily_newrelic_monitor_downtime",
621
+ name="Sample Daily Monitor Downtime",
622
+ monitor_guids=[
623
+ "<GUID-1>",
624
+ "<GUID-2>",
625
+ ],
626
+ mode="DAILY",
627
+ start_time="2023-12-04T18:15:00",
628
+ end_time="2024-01-04T07:15:00",
629
+ end_repeat={
630
+ "on_date": "2023-12-25",
631
+ },
632
+ time_zone="Asia/Kolkata")
633
+ ```
634
+
635
+ ### Weekly Monitor Downtime
636
+
637
+ The below example illustrates creating a **weekly** monitor downtime.
638
+
639
+ 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.
640
+
641
+ ```python
642
+ import pulumi
643
+ import pulumi_newrelic as newrelic
644
+
645
+ sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_weekly_newrelic_monitor_downtime",
646
+ name="Sample Weekly Monitor Downtime",
647
+ monitor_guids=[
648
+ "<GUID-1>",
649
+ "<GUID-2>",
650
+ ],
651
+ mode="WEEKLY",
652
+ start_time="2023-12-04T14:15:00",
653
+ end_time="2024-01-04T23:55:00",
654
+ time_zone="US/Hawaii",
655
+ maintenance_days=[
656
+ "SATURDAY",
657
+ "SUNDAY",
658
+ ])
659
+ ```
660
+
661
+ ### Monthly Monitor Downtime
662
+
663
+ The below example illustrates creating a **monthly** monitor downtime.
664
+
665
+ 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.
666
+
667
+ ```python
668
+ import pulumi
669
+ import pulumi_newrelic as newrelic
670
+
671
+ sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
672
+ name="Sample Monthly Monitor Downtime",
673
+ monitor_guids=[
674
+ "<GUID-1>",
675
+ "<GUID-2>",
676
+ ],
677
+ mode="MONTHLY",
678
+ start_time="2023-12-04T07:15:00",
679
+ end_time="2024-01-04T19:15:00",
680
+ end_repeat={
681
+ "on_repeat": 6,
682
+ },
683
+ time_zone="Europe/Dublin",
684
+ frequency={
685
+ "days_of_week": {
686
+ "ordinal_day_of_month": "SECOND",
687
+ "week_day": "SATURDAY",
688
+ },
689
+ })
690
+ ```
691
+ 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.
692
+ ```python
693
+ import pulumi
694
+ import pulumi_newrelic as newrelic
695
+
696
+ sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
697
+ name="Sample Monthly Monitor Downtime",
698
+ monitor_guids=[
699
+ "<GUID-1>",
700
+ "<GUID-2>",
701
+ ],
702
+ mode="MONTHLY",
703
+ start_time="2023-12-04T07:15:00",
704
+ end_time="2024-01-04T19:15:00",
705
+ end_repeat={
706
+ "on_repeat": 6,
707
+ },
708
+ time_zone="Europe/Dublin",
709
+ frequency={
710
+ "days_of_months": [
711
+ 3,
712
+ 6,
713
+ 14,
714
+ 23,
715
+ ],
716
+ })
717
+ ```
718
+
719
+ ## Import
720
+
721
+ A monitor downtime can be imported into Terraform configuration using its `guid`, i.e.
722
+
723
+ bash
724
+
725
+ ```sh
726
+ $ pulumi import newrelic:index/monitorDowntime:MonitorDowntime monitor <guid>
727
+ ```
728
+
729
+ :param str resource_name: The name of the resource.
730
+ :param MonitorDowntimeArgs args: The arguments to use to populate this resource's properties.
731
+ :param pulumi.ResourceOptions opts: Options for the resource.
732
+ """
733
+ ...
734
+ def __init__(__self__, resource_name: str, *args, **kwargs):
735
+ resource_args, opts = _utilities.get_resource_args_opts(MonitorDowntimeArgs, pulumi.ResourceOptions, *args, **kwargs)
736
+ if resource_args is not None:
737
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
738
+ else:
739
+ __self__._internal_init(resource_name, *args, **kwargs)
740
+
741
+ def _internal_init(__self__,
742
+ resource_name: str,
743
+ opts: Optional[pulumi.ResourceOptions] = None,
744
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
745
+ end_repeat: Optional[pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']]] = None,
746
+ end_time: Optional[pulumi.Input[_builtins.str]] = None,
747
+ frequency: Optional[pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']]] = None,
748
+ maintenance_days: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
749
+ mode: Optional[pulumi.Input[_builtins.str]] = None,
750
+ monitor_guids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
751
+ name: Optional[pulumi.Input[_builtins.str]] = None,
752
+ start_time: Optional[pulumi.Input[_builtins.str]] = None,
753
+ time_zone: Optional[pulumi.Input[_builtins.str]] = None,
754
+ __props__=None):
755
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
756
+ if not isinstance(opts, pulumi.ResourceOptions):
757
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
758
+ if opts.id is None:
759
+ if __props__ is not None:
760
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
761
+ __props__ = MonitorDowntimeArgs.__new__(MonitorDowntimeArgs)
762
+
763
+ __props__.__dict__["account_id"] = account_id
764
+ __props__.__dict__["end_repeat"] = end_repeat
765
+ if end_time is None and not opts.urn:
766
+ raise TypeError("Missing required property 'end_time'")
767
+ __props__.__dict__["end_time"] = end_time
768
+ __props__.__dict__["frequency"] = frequency
769
+ __props__.__dict__["maintenance_days"] = maintenance_days
770
+ if mode is None and not opts.urn:
771
+ raise TypeError("Missing required property 'mode'")
772
+ __props__.__dict__["mode"] = mode
773
+ __props__.__dict__["monitor_guids"] = monitor_guids
774
+ __props__.__dict__["name"] = name
775
+ if start_time is None and not opts.urn:
776
+ raise TypeError("Missing required property 'start_time'")
777
+ __props__.__dict__["start_time"] = start_time
778
+ if time_zone is None and not opts.urn:
779
+ raise TypeError("Missing required property 'time_zone'")
780
+ __props__.__dict__["time_zone"] = time_zone
781
+ super(MonitorDowntime, __self__).__init__(
782
+ 'newrelic:index/monitorDowntime:MonitorDowntime',
783
+ resource_name,
784
+ __props__,
785
+ opts)
786
+
787
+ @staticmethod
788
+ def get(resource_name: str,
789
+ id: pulumi.Input[str],
790
+ opts: Optional[pulumi.ResourceOptions] = None,
791
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
792
+ end_repeat: Optional[pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']]] = None,
793
+ end_time: Optional[pulumi.Input[_builtins.str]] = None,
794
+ frequency: Optional[pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']]] = None,
795
+ maintenance_days: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
796
+ mode: Optional[pulumi.Input[_builtins.str]] = None,
797
+ monitor_guids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
798
+ name: Optional[pulumi.Input[_builtins.str]] = None,
799
+ start_time: Optional[pulumi.Input[_builtins.str]] = None,
800
+ time_zone: Optional[pulumi.Input[_builtins.str]] = None) -> 'MonitorDowntime':
801
+ """
802
+ Get an existing MonitorDowntime resource's state with the given name, id, and optional extra
803
+ properties used to qualify the lookup.
804
+
805
+ :param str resource_name: The unique name of the resulting resource.
806
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
807
+ :param pulumi.ResourceOptions opts: Options for the resource.
808
+ :param pulumi.Input[_builtins.str] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the provider{} configuration if not specified.
809
+ :param pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
810
+ :param pulumi.Input[_builtins.str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
811
+ :param pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']] frequency: Configuration options for which days of the month a monitor downtime will occur
812
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
813
+ :param pulumi.Input[_builtins.str] mode: An identifier of the type of Monitor Downtime to be created.
814
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
815
+ :param pulumi.Input[_builtins.str] name: A name to identify the Monitor Downtime to be created.
816
+ :param pulumi.Input[_builtins.str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
817
+ :param pulumi.Input[_builtins.str] time_zone: The timezone that applies to the Monitor Downtime schedule.
818
+ """
819
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
820
+
821
+ __props__ = _MonitorDowntimeState.__new__(_MonitorDowntimeState)
822
+
823
+ __props__.__dict__["account_id"] = account_id
824
+ __props__.__dict__["end_repeat"] = end_repeat
825
+ __props__.__dict__["end_time"] = end_time
826
+ __props__.__dict__["frequency"] = frequency
827
+ __props__.__dict__["maintenance_days"] = maintenance_days
828
+ __props__.__dict__["mode"] = mode
829
+ __props__.__dict__["monitor_guids"] = monitor_guids
830
+ __props__.__dict__["name"] = name
831
+ __props__.__dict__["start_time"] = start_time
832
+ __props__.__dict__["time_zone"] = time_zone
833
+ return MonitorDowntime(resource_name, opts=opts, __props__=__props__)
834
+
835
+ @_builtins.property
836
+ @pulumi.getter(name="accountId")
837
+ def account_id(self) -> pulumi.Output[_builtins.str]:
838
+ """
839
+ The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the provider{} configuration if not specified.
840
+ """
841
+ return pulumi.get(self, "account_id")
842
+
843
+ @_builtins.property
844
+ @pulumi.getter(name="endRepeat")
845
+ def end_repeat(self) -> pulumi.Output[Optional['outputs.MonitorDowntimeEndRepeat']]:
846
+ """
847
+ A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
848
+ """
849
+ return pulumi.get(self, "end_repeat")
850
+
851
+ @_builtins.property
852
+ @pulumi.getter(name="endTime")
853
+ def end_time(self) -> pulumi.Output[_builtins.str]:
854
+ """
855
+ A datetime stamp signifying the end of the Monitor Downtime.
856
+ """
857
+ return pulumi.get(self, "end_time")
858
+
859
+ @_builtins.property
860
+ @pulumi.getter
861
+ def frequency(self) -> pulumi.Output[Optional['outputs.MonitorDowntimeFrequency']]:
862
+ """
863
+ Configuration options for which days of the month a monitor downtime will occur
864
+ """
865
+ return pulumi.get(self, "frequency")
866
+
867
+ @_builtins.property
868
+ @pulumi.getter(name="maintenanceDays")
869
+ def maintenance_days(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
870
+ """
871
+ A list of maintenance days to be included with the created weekly Monitor Downtime.
872
+ """
873
+ return pulumi.get(self, "maintenance_days")
874
+
875
+ @_builtins.property
876
+ @pulumi.getter
877
+ def mode(self) -> pulumi.Output[_builtins.str]:
878
+ """
879
+ An identifier of the type of Monitor Downtime to be created.
880
+ """
881
+ return pulumi.get(self, "mode")
882
+
883
+ @_builtins.property
884
+ @pulumi.getter(name="monitorGuids")
885
+ def monitor_guids(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
886
+ """
887
+ A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
888
+ """
889
+ return pulumi.get(self, "monitor_guids")
890
+
891
+ @_builtins.property
892
+ @pulumi.getter
893
+ def name(self) -> pulumi.Output[_builtins.str]:
894
+ """
895
+ A name to identify the Monitor Downtime to be created.
896
+ """
897
+ return pulumi.get(self, "name")
898
+
899
+ @_builtins.property
900
+ @pulumi.getter(name="startTime")
901
+ def start_time(self) -> pulumi.Output[_builtins.str]:
902
+ """
903
+ A datetime stamp signifying the start of the Monitor Downtime.
904
+ """
905
+ return pulumi.get(self, "start_time")
906
+
907
+ @_builtins.property
908
+ @pulumi.getter(name="timeZone")
909
+ def time_zone(self) -> pulumi.Output[_builtins.str]:
910
+ """
911
+ The timezone that applies to the Monitor Downtime schedule.
912
+ """
913
+ return pulumi.get(self, "time_zone")
914
+