pulumi-newrelic 5.22.0__py3-none-any.whl → 5.58.0a1763707205__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-newrelic might be problematic. Click here for more details.

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +28 -1
  2. pulumi_newrelic/_inputs.py +10385 -2976
  3. pulumi_newrelic/_utilities.py +50 -10
  4. pulumi_newrelic/account_management.py +48 -42
  5. pulumi_newrelic/alert_channel.py +165 -175
  6. pulumi_newrelic/alert_condition.py +307 -319
  7. pulumi_newrelic/alert_muting_rule.py +193 -140
  8. pulumi_newrelic/alert_policy.py +121 -117
  9. pulumi_newrelic/alert_policy_channel.py +89 -79
  10. pulumi_newrelic/api_access_key.py +195 -193
  11. pulumi_newrelic/browser_application.py +120 -114
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2714
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
  16. pulumi_newrelic/cloud/aws_integrations.py +510 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +80 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +673 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +121 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +428 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +65 -61
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2321
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +8 -3
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +119 -117
  28. pulumi_newrelic/entity_tags.py +111 -53
  29. pulumi_newrelic/events_to_metrics_rule.py +106 -102
  30. pulumi_newrelic/get_account.py +41 -33
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +82 -33
  33. pulumi_newrelic/get_application.py +51 -43
  34. pulumi_newrelic/get_authentication_domain.py +27 -23
  35. pulumi_newrelic/get_cloud_account.py +43 -35
  36. pulumi_newrelic/get_entity.py +126 -183
  37. pulumi_newrelic/get_group.py +76 -31
  38. pulumi_newrelic/get_key_transaction.py +117 -42
  39. pulumi_newrelic/get_notification_destination.py +75 -38
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -39
  41. pulumi_newrelic/get_service_level_alert_helper.py +189 -171
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -36
  43. pulumi_newrelic/get_user.py +39 -31
  44. pulumi_newrelic/group.py +59 -199
  45. pulumi_newrelic/infra_alert_condition.py +399 -405
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +71 -28
  48. pulumi_newrelic/insights/event.py +54 -52
  49. pulumi_newrelic/insights/outputs.py +28 -23
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +159 -157
  52. pulumi_newrelic/monitor_downtime.py +311 -331
  53. pulumi_newrelic/notification_channel.py +534 -464
  54. pulumi_newrelic/notification_destination.py +238 -141
  55. pulumi_newrelic/nrql_alert_condition.py +820 -614
  56. pulumi_newrelic/nrql_drop_rule.py +113 -151
  57. pulumi_newrelic/obfuscation_expression.py +80 -76
  58. pulumi_newrelic/obfuscation_rule.py +115 -109
  59. pulumi_newrelic/one_dashboard.py +110 -104
  60. pulumi_newrelic/one_dashboard_json.py +69 -63
  61. pulumi_newrelic/one_dashboard_raw.py +212 -206
  62. pulumi_newrelic/outputs.py +4936 -2234
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +519 -89
  66. pulumi_newrelic/plugins/application_settings.py +463 -187
  67. pulumi_newrelic/plugins/outputs.py +336 -74
  68. pulumi_newrelic/plugins/workload.py +313 -189
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +263 -263
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +265 -108
  74. pulumi_newrelic/synthetics/alert_condition.py +170 -180
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -47
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
  79. pulumi_newrelic/synthetics/monitor.py +658 -460
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
  81. pulumi_newrelic/synthetics/outputs.py +92 -87
  82. pulumi_newrelic/synthetics/private_location.py +118 -112
  83. pulumi_newrelic/synthetics/script_monitor.py +613 -373
  84. pulumi_newrelic/synthetics/secure_credential.py +97 -95
  85. pulumi_newrelic/synthetics/step_monitor.py +445 -275
  86. pulumi_newrelic/user.py +84 -80
  87. pulumi_newrelic/workflow.py +336 -322
  88. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
  92. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from .. import _utilities
11
16
  from . import outputs
12
17
  from ._inputs import *
@@ -17,22 +22,22 @@ __all__ = ['MultiLocationAlertConditionArgs', 'MultiLocationAlertCondition']
17
22
  class MultiLocationAlertConditionArgs:
18
23
  def __init__(__self__, *,
19
24
  critical: pulumi.Input['MultiLocationAlertConditionCriticalArgs'],
20
- entities: pulumi.Input[Sequence[pulumi.Input[str]]],
21
- policy_id: pulumi.Input[int],
22
- enabled: Optional[pulumi.Input[bool]] = None,
23
- name: Optional[pulumi.Input[str]] = None,
24
- runbook_url: Optional[pulumi.Input[str]] = None,
25
- violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
25
+ entities: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
26
+ policy_id: pulumi.Input[_builtins.str],
27
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
28
+ name: Optional[pulumi.Input[_builtins.str]] = None,
29
+ runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
30
+ violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
26
31
  warning: Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']] = None):
27
32
  """
28
33
  The set of arguments for constructing a MultiLocationAlertCondition resource.
29
34
  :param pulumi.Input['MultiLocationAlertConditionCriticalArgs'] critical: A condition term with the priority set to critical.
30
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
31
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
32
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
33
- :param pulumi.Input[str] name: The title of the condition.
34
- :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
35
- :param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
35
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
36
+ :param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition will be used.
37
+ :param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to true.
38
+ :param pulumi.Input[_builtins.str] name: The title of the condition.
39
+ :param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
40
+ :param pulumi.Input[_builtins.int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
36
41
  :param pulumi.Input['MultiLocationAlertConditionWarningArgs'] warning: A condition term with the priority set to warning.
37
42
 
38
43
 
@@ -52,7 +57,7 @@ class MultiLocationAlertConditionArgs:
52
57
  if warning is not None:
53
58
  pulumi.set(__self__, "warning", warning)
54
59
 
55
- @property
60
+ @_builtins.property
56
61
  @pulumi.getter
57
62
  def critical(self) -> pulumi.Input['MultiLocationAlertConditionCriticalArgs']:
58
63
  """
@@ -64,79 +69,79 @@ class MultiLocationAlertConditionArgs:
64
69
  def critical(self, value: pulumi.Input['MultiLocationAlertConditionCriticalArgs']):
65
70
  pulumi.set(self, "critical", value)
66
71
 
67
- @property
72
+ @_builtins.property
68
73
  @pulumi.getter
69
- def entities(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
74
+ def entities(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
70
75
  """
71
76
  The Monitor GUID's of the Synthetics monitors to alert on.
72
77
  """
73
78
  return pulumi.get(self, "entities")
74
79
 
75
80
  @entities.setter
76
- def entities(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
81
+ def entities(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
77
82
  pulumi.set(self, "entities", value)
78
83
 
79
- @property
84
+ @_builtins.property
80
85
  @pulumi.getter(name="policyId")
81
- def policy_id(self) -> pulumi.Input[int]:
86
+ def policy_id(self) -> pulumi.Input[_builtins.str]:
82
87
  """
83
88
  The ID of the policy where this condition will be used.
84
89
  """
85
90
  return pulumi.get(self, "policy_id")
86
91
 
87
92
  @policy_id.setter
88
- def policy_id(self, value: pulumi.Input[int]):
93
+ def policy_id(self, value: pulumi.Input[_builtins.str]):
89
94
  pulumi.set(self, "policy_id", value)
90
95
 
91
- @property
96
+ @_builtins.property
92
97
  @pulumi.getter
93
- def enabled(self) -> Optional[pulumi.Input[bool]]:
98
+ def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
94
99
  """
95
100
  Set whether to enable the alert condition. Defaults to true.
96
101
  """
97
102
  return pulumi.get(self, "enabled")
98
103
 
99
104
  @enabled.setter
100
- def enabled(self, value: Optional[pulumi.Input[bool]]):
105
+ def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
101
106
  pulumi.set(self, "enabled", value)
102
107
 
103
- @property
108
+ @_builtins.property
104
109
  @pulumi.getter
105
- def name(self) -> Optional[pulumi.Input[str]]:
110
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
106
111
  """
107
112
  The title of the condition.
108
113
  """
109
114
  return pulumi.get(self, "name")
110
115
 
111
116
  @name.setter
112
- def name(self, value: Optional[pulumi.Input[str]]):
117
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
113
118
  pulumi.set(self, "name", value)
114
119
 
115
- @property
120
+ @_builtins.property
116
121
  @pulumi.getter(name="runbookUrl")
117
- def runbook_url(self) -> Optional[pulumi.Input[str]]:
122
+ def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
118
123
  """
119
124
  Runbook URL to display in notifications.
120
125
  """
121
126
  return pulumi.get(self, "runbook_url")
122
127
 
123
128
  @runbook_url.setter
124
- def runbook_url(self, value: Optional[pulumi.Input[str]]):
129
+ def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
125
130
  pulumi.set(self, "runbook_url", value)
126
131
 
127
- @property
132
+ @_builtins.property
128
133
  @pulumi.getter(name="violationTimeLimitSeconds")
129
- def violation_time_limit_seconds(self) -> Optional[pulumi.Input[int]]:
134
+ def violation_time_limit_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
130
135
  """
131
136
  The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
132
137
  """
133
138
  return pulumi.get(self, "violation_time_limit_seconds")
134
139
 
135
140
  @violation_time_limit_seconds.setter
136
- def violation_time_limit_seconds(self, value: Optional[pulumi.Input[int]]):
141
+ def violation_time_limit_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
137
142
  pulumi.set(self, "violation_time_limit_seconds", value)
138
143
 
139
- @property
144
+ @_builtins.property
140
145
  @pulumi.getter
141
146
  def warning(self) -> Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']]:
142
147
  """
@@ -156,24 +161,24 @@ class MultiLocationAlertConditionArgs:
156
161
  class _MultiLocationAlertConditionState:
157
162
  def __init__(__self__, *,
158
163
  critical: Optional[pulumi.Input['MultiLocationAlertConditionCriticalArgs']] = None,
159
- enabled: Optional[pulumi.Input[bool]] = None,
160
- entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
161
- entity_guid: Optional[pulumi.Input[str]] = None,
162
- name: Optional[pulumi.Input[str]] = None,
163
- policy_id: Optional[pulumi.Input[int]] = None,
164
- runbook_url: Optional[pulumi.Input[str]] = None,
165
- violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
164
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
165
+ entities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
166
+ entity_guid: Optional[pulumi.Input[_builtins.str]] = None,
167
+ name: Optional[pulumi.Input[_builtins.str]] = None,
168
+ policy_id: Optional[pulumi.Input[_builtins.str]] = None,
169
+ runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
170
+ violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
166
171
  warning: Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']] = None):
167
172
  """
168
173
  Input properties used for looking up and filtering MultiLocationAlertCondition resources.
169
174
  :param pulumi.Input['MultiLocationAlertConditionCriticalArgs'] critical: A condition term with the priority set to critical.
170
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
171
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
172
- :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
173
- :param pulumi.Input[str] name: The title of the condition.
174
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
175
- :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
176
- :param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
175
+ :param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to true.
176
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
177
+ :param pulumi.Input[_builtins.str] entity_guid: The unique entity identifier of the condition in New Relic.
178
+ :param pulumi.Input[_builtins.str] name: The title of the condition.
179
+ :param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition will be used.
180
+ :param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
181
+ :param pulumi.Input[_builtins.int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
177
182
  :param pulumi.Input['MultiLocationAlertConditionWarningArgs'] warning: A condition term with the priority set to warning.
178
183
 
179
184
 
@@ -198,7 +203,7 @@ class _MultiLocationAlertConditionState:
198
203
  if warning is not None:
199
204
  pulumi.set(__self__, "warning", warning)
200
205
 
201
- @property
206
+ @_builtins.property
202
207
  @pulumi.getter
203
208
  def critical(self) -> Optional[pulumi.Input['MultiLocationAlertConditionCriticalArgs']]:
204
209
  """
@@ -210,91 +215,91 @@ class _MultiLocationAlertConditionState:
210
215
  def critical(self, value: Optional[pulumi.Input['MultiLocationAlertConditionCriticalArgs']]):
211
216
  pulumi.set(self, "critical", value)
212
217
 
213
- @property
218
+ @_builtins.property
214
219
  @pulumi.getter
215
- def enabled(self) -> Optional[pulumi.Input[bool]]:
220
+ def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
216
221
  """
217
222
  Set whether to enable the alert condition. Defaults to true.
218
223
  """
219
224
  return pulumi.get(self, "enabled")
220
225
 
221
226
  @enabled.setter
222
- def enabled(self, value: Optional[pulumi.Input[bool]]):
227
+ def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
223
228
  pulumi.set(self, "enabled", value)
224
229
 
225
- @property
230
+ @_builtins.property
226
231
  @pulumi.getter
227
- def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
232
+ def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
228
233
  """
229
234
  The Monitor GUID's of the Synthetics monitors to alert on.
230
235
  """
231
236
  return pulumi.get(self, "entities")
232
237
 
233
238
  @entities.setter
234
- def entities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
239
+ def entities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
235
240
  pulumi.set(self, "entities", value)
236
241
 
237
- @property
242
+ @_builtins.property
238
243
  @pulumi.getter(name="entityGuid")
239
- def entity_guid(self) -> Optional[pulumi.Input[str]]:
244
+ def entity_guid(self) -> Optional[pulumi.Input[_builtins.str]]:
240
245
  """
241
246
  The unique entity identifier of the condition in New Relic.
242
247
  """
243
248
  return pulumi.get(self, "entity_guid")
244
249
 
245
250
  @entity_guid.setter
246
- def entity_guid(self, value: Optional[pulumi.Input[str]]):
251
+ def entity_guid(self, value: Optional[pulumi.Input[_builtins.str]]):
247
252
  pulumi.set(self, "entity_guid", value)
248
253
 
249
- @property
254
+ @_builtins.property
250
255
  @pulumi.getter
251
- def name(self) -> Optional[pulumi.Input[str]]:
256
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
252
257
  """
253
258
  The title of the condition.
254
259
  """
255
260
  return pulumi.get(self, "name")
256
261
 
257
262
  @name.setter
258
- def name(self, value: Optional[pulumi.Input[str]]):
263
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
259
264
  pulumi.set(self, "name", value)
260
265
 
261
- @property
266
+ @_builtins.property
262
267
  @pulumi.getter(name="policyId")
263
- def policy_id(self) -> Optional[pulumi.Input[int]]:
268
+ def policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
264
269
  """
265
270
  The ID of the policy where this condition will be used.
266
271
  """
267
272
  return pulumi.get(self, "policy_id")
268
273
 
269
274
  @policy_id.setter
270
- def policy_id(self, value: Optional[pulumi.Input[int]]):
275
+ def policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
271
276
  pulumi.set(self, "policy_id", value)
272
277
 
273
- @property
278
+ @_builtins.property
274
279
  @pulumi.getter(name="runbookUrl")
275
- def runbook_url(self) -> Optional[pulumi.Input[str]]:
280
+ def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
276
281
  """
277
282
  Runbook URL to display in notifications.
278
283
  """
279
284
  return pulumi.get(self, "runbook_url")
280
285
 
281
286
  @runbook_url.setter
282
- def runbook_url(self, value: Optional[pulumi.Input[str]]):
287
+ def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
283
288
  pulumi.set(self, "runbook_url", value)
284
289
 
285
- @property
290
+ @_builtins.property
286
291
  @pulumi.getter(name="violationTimeLimitSeconds")
287
- def violation_time_limit_seconds(self) -> Optional[pulumi.Input[int]]:
292
+ def violation_time_limit_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
288
293
  """
289
294
  The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
290
295
  """
291
296
  return pulumi.get(self, "violation_time_limit_seconds")
292
297
 
293
298
  @violation_time_limit_seconds.setter
294
- def violation_time_limit_seconds(self, value: Optional[pulumi.Input[int]]):
299
+ def violation_time_limit_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
295
300
  pulumi.set(self, "violation_time_limit_seconds", value)
296
301
 
297
- @property
302
+ @_builtins.property
298
303
  @pulumi.getter
299
304
  def warning(self) -> Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']]:
300
305
  """
@@ -310,19 +315,20 @@ class _MultiLocationAlertConditionState:
310
315
  pulumi.set(self, "warning", value)
311
316
 
312
317
 
318
+ @pulumi.type_token("newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition")
313
319
  class MultiLocationAlertCondition(pulumi.CustomResource):
314
320
  @overload
315
321
  def __init__(__self__,
316
322
  resource_name: str,
317
323
  opts: Optional[pulumi.ResourceOptions] = None,
318
- critical: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']]] = None,
319
- enabled: Optional[pulumi.Input[bool]] = None,
320
- entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
321
- name: Optional[pulumi.Input[str]] = None,
322
- policy_id: Optional[pulumi.Input[int]] = None,
323
- runbook_url: Optional[pulumi.Input[str]] = None,
324
- violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
325
- warning: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']]] = None,
324
+ critical: Optional[pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']]] = None,
325
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
326
+ entities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
327
+ name: Optional[pulumi.Input[_builtins.str]] = None,
328
+ policy_id: Optional[pulumi.Input[_builtins.str]] = None,
329
+ runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
330
+ violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
331
+ warning: Optional[pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']]] = None,
326
332
  __props__=None):
327
333
  """
328
334
  Use this resource to create, update, and delete a New Relic Synthetics Location Alerts.
@@ -331,89 +337,89 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
331
337
 
332
338
  ## Example Usage
333
339
 
334
- <!--Start PulumiCodeChooser -->
335
340
  ```python
336
341
  import pulumi
337
342
  import pulumi_newrelic as newrelic
338
343
 
339
- policy = newrelic.AlertPolicy("policy")
344
+ policy = newrelic.AlertPolicy("policy", name="my-policy")
340
345
  monitor = newrelic.synthetics.Monitor("monitor",
341
346
  locations_publics=["US_WEST_1"],
347
+ name="my-monitor",
342
348
  period="EVERY_10_MINUTES",
343
349
  status="DISABLED",
344
350
  type="SIMPLE",
345
351
  uri="https://www.one.newrelic.com")
346
352
  example = newrelic.synthetics.MultiLocationAlertCondition("example",
347
353
  policy_id=policy.id,
354
+ name="Example condition",
348
355
  runbook_url="https://example.com",
349
356
  enabled=True,
350
357
  violation_time_limit_seconds=3600,
351
358
  entities=[monitor.id],
352
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
353
- threshold=2,
354
- ),
355
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
356
- threshold=1,
357
- ))
359
+ critical={
360
+ "threshold": 2,
361
+ },
362
+ warning={
363
+ "threshold": 1,
364
+ })
358
365
  ```
359
- <!--End PulumiCodeChooser -->
360
366
  ## Tags
361
367
 
362
368
  Manage synthetics multilocation alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
363
369
 
364
- <!--Start PulumiCodeChooser -->
365
370
  ```python
366
371
  import pulumi
367
372
  import pulumi_newrelic as newrelic
368
373
 
369
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
370
- foo_monitor = newrelic.synthetics.Monitor("fooMonitor",
374
+ foo = newrelic.AlertPolicy("foo", name="foo policy")
375
+ foo_monitor = newrelic.synthetics.Monitor("foo",
371
376
  status="ENABLED",
377
+ name="foo monitor",
372
378
  period="EVERY_MINUTE",
373
379
  uri="https://www.one.newrelic.com",
374
380
  type="SIMPLE",
375
381
  locations_publics=["AP_EAST_1"],
376
- custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
377
- name="some_name",
378
- value="some_value",
379
- )],
382
+ custom_headers=[{
383
+ "name": "some_name",
384
+ "value": "some_value",
385
+ }],
380
386
  treat_redirect_as_failure=True,
381
387
  validation_string="success",
382
388
  bypass_head_request=True,
383
389
  verify_ssl=True,
384
- tags=[newrelic.synthetics.MonitorTagArgs(
385
- key="some_key",
386
- values=["some_value"],
387
- )])
388
- foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("fooMultiLocationAlertCondition",
389
- policy_id=foo_alert_policy.id,
390
+ tags=[{
391
+ "key": "some_key",
392
+ "values": ["some_value"],
393
+ }])
394
+ foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("foo",
395
+ policy_id=foo.id,
396
+ name="foo condition",
390
397
  runbook_url="https://example.com",
391
398
  enabled=True,
392
399
  violation_time_limit_seconds=3600,
393
400
  entities=[foo_monitor.id],
394
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
395
- threshold=2,
396
- ),
397
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
398
- threshold=1,
399
- ))
400
- my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
401
+ critical={
402
+ "threshold": 2,
403
+ },
404
+ warning={
405
+ "threshold": 1,
406
+ })
407
+ my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
401
408
  guid=foo_multi_location_alert_condition.entity_guid,
402
409
  tags=[
403
- newrelic.EntityTagsTagArgs(
404
- key="my-key",
405
- values=[
410
+ {
411
+ "key": "my-key",
412
+ "values": [
406
413
  "my-value",
407
414
  "my-other-value",
408
415
  ],
409
- ),
410
- newrelic.EntityTagsTagArgs(
411
- key="my-key-2",
412
- values=["my-value-2"],
413
- ),
416
+ },
417
+ {
418
+ "key": "my-key-2",
419
+ "values": ["my-value-2"],
420
+ },
414
421
  ])
415
422
  ```
416
- <!--End PulumiCodeChooser -->
417
423
 
418
424
  ## Import
419
425
 
@@ -429,14 +435,14 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
429
435
 
430
436
  :param str resource_name: The name of the resource.
431
437
  :param pulumi.ResourceOptions opts: Options for the resource.
432
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']] critical: A condition term with the priority set to critical.
433
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
434
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
435
- :param pulumi.Input[str] name: The title of the condition.
436
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
437
- :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
438
- :param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
439
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']] warning: A condition term with the priority set to warning.
438
+ :param pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']] critical: A condition term with the priority set to critical.
439
+ :param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to true.
440
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
441
+ :param pulumi.Input[_builtins.str] name: The title of the condition.
442
+ :param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition will be used.
443
+ :param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
444
+ :param pulumi.Input[_builtins.int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
445
+ :param pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']] warning: A condition term with the priority set to warning.
440
446
 
441
447
 
442
448
  > **WARNING:** This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
@@ -454,89 +460,89 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
454
460
 
455
461
  ## Example Usage
456
462
 
457
- <!--Start PulumiCodeChooser -->
458
463
  ```python
459
464
  import pulumi
460
465
  import pulumi_newrelic as newrelic
461
466
 
462
- policy = newrelic.AlertPolicy("policy")
467
+ policy = newrelic.AlertPolicy("policy", name="my-policy")
463
468
  monitor = newrelic.synthetics.Monitor("monitor",
464
469
  locations_publics=["US_WEST_1"],
470
+ name="my-monitor",
465
471
  period="EVERY_10_MINUTES",
466
472
  status="DISABLED",
467
473
  type="SIMPLE",
468
474
  uri="https://www.one.newrelic.com")
469
475
  example = newrelic.synthetics.MultiLocationAlertCondition("example",
470
476
  policy_id=policy.id,
477
+ name="Example condition",
471
478
  runbook_url="https://example.com",
472
479
  enabled=True,
473
480
  violation_time_limit_seconds=3600,
474
481
  entities=[monitor.id],
475
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
476
- threshold=2,
477
- ),
478
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
479
- threshold=1,
480
- ))
482
+ critical={
483
+ "threshold": 2,
484
+ },
485
+ warning={
486
+ "threshold": 1,
487
+ })
481
488
  ```
482
- <!--End PulumiCodeChooser -->
483
489
  ## Tags
484
490
 
485
491
  Manage synthetics multilocation alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
486
492
 
487
- <!--Start PulumiCodeChooser -->
488
493
  ```python
489
494
  import pulumi
490
495
  import pulumi_newrelic as newrelic
491
496
 
492
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
493
- foo_monitor = newrelic.synthetics.Monitor("fooMonitor",
497
+ foo = newrelic.AlertPolicy("foo", name="foo policy")
498
+ foo_monitor = newrelic.synthetics.Monitor("foo",
494
499
  status="ENABLED",
500
+ name="foo monitor",
495
501
  period="EVERY_MINUTE",
496
502
  uri="https://www.one.newrelic.com",
497
503
  type="SIMPLE",
498
504
  locations_publics=["AP_EAST_1"],
499
- custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
500
- name="some_name",
501
- value="some_value",
502
- )],
505
+ custom_headers=[{
506
+ "name": "some_name",
507
+ "value": "some_value",
508
+ }],
503
509
  treat_redirect_as_failure=True,
504
510
  validation_string="success",
505
511
  bypass_head_request=True,
506
512
  verify_ssl=True,
507
- tags=[newrelic.synthetics.MonitorTagArgs(
508
- key="some_key",
509
- values=["some_value"],
510
- )])
511
- foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("fooMultiLocationAlertCondition",
512
- policy_id=foo_alert_policy.id,
513
+ tags=[{
514
+ "key": "some_key",
515
+ "values": ["some_value"],
516
+ }])
517
+ foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("foo",
518
+ policy_id=foo.id,
519
+ name="foo condition",
513
520
  runbook_url="https://example.com",
514
521
  enabled=True,
515
522
  violation_time_limit_seconds=3600,
516
523
  entities=[foo_monitor.id],
517
- critical=newrelic.synthetics.MultiLocationAlertConditionCriticalArgs(
518
- threshold=2,
519
- ),
520
- warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
521
- threshold=1,
522
- ))
523
- my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
524
+ critical={
525
+ "threshold": 2,
526
+ },
527
+ warning={
528
+ "threshold": 1,
529
+ })
530
+ my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
524
531
  guid=foo_multi_location_alert_condition.entity_guid,
525
532
  tags=[
526
- newrelic.EntityTagsTagArgs(
527
- key="my-key",
528
- values=[
533
+ {
534
+ "key": "my-key",
535
+ "values": [
529
536
  "my-value",
530
537
  "my-other-value",
531
538
  ],
532
- ),
533
- newrelic.EntityTagsTagArgs(
534
- key="my-key-2",
535
- values=["my-value-2"],
536
- ),
539
+ },
540
+ {
541
+ "key": "my-key-2",
542
+ "values": ["my-value-2"],
543
+ },
537
544
  ])
538
545
  ```
539
- <!--End PulumiCodeChooser -->
540
546
 
541
547
  ## Import
542
548
 
@@ -565,14 +571,14 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
565
571
  def _internal_init(__self__,
566
572
  resource_name: str,
567
573
  opts: Optional[pulumi.ResourceOptions] = None,
568
- critical: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']]] = None,
569
- enabled: Optional[pulumi.Input[bool]] = None,
570
- entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
571
- name: Optional[pulumi.Input[str]] = None,
572
- policy_id: Optional[pulumi.Input[int]] = None,
573
- runbook_url: Optional[pulumi.Input[str]] = None,
574
- violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
575
- warning: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']]] = None,
574
+ critical: Optional[pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']]] = None,
575
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
576
+ entities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
577
+ name: Optional[pulumi.Input[_builtins.str]] = None,
578
+ policy_id: Optional[pulumi.Input[_builtins.str]] = None,
579
+ runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
580
+ violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
581
+ warning: Optional[pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']]] = None,
576
582
  __props__=None):
577
583
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
578
584
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -607,15 +613,15 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
607
613
  def get(resource_name: str,
608
614
  id: pulumi.Input[str],
609
615
  opts: Optional[pulumi.ResourceOptions] = None,
610
- critical: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']]] = None,
611
- enabled: Optional[pulumi.Input[bool]] = None,
612
- entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
613
- entity_guid: Optional[pulumi.Input[str]] = None,
614
- name: Optional[pulumi.Input[str]] = None,
615
- policy_id: Optional[pulumi.Input[int]] = None,
616
- runbook_url: Optional[pulumi.Input[str]] = None,
617
- violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
618
- warning: Optional[pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']]] = None) -> 'MultiLocationAlertCondition':
616
+ critical: Optional[pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']]] = None,
617
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
618
+ entities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
619
+ entity_guid: Optional[pulumi.Input[_builtins.str]] = None,
620
+ name: Optional[pulumi.Input[_builtins.str]] = None,
621
+ policy_id: Optional[pulumi.Input[_builtins.str]] = None,
622
+ runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
623
+ violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
624
+ warning: Optional[pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']]] = None) -> 'MultiLocationAlertCondition':
619
625
  """
620
626
  Get an existing MultiLocationAlertCondition resource's state with the given name, id, and optional extra
621
627
  properties used to qualify the lookup.
@@ -623,15 +629,15 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
623
629
  :param str resource_name: The unique name of the resulting resource.
624
630
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
625
631
  :param pulumi.ResourceOptions opts: Options for the resource.
626
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']] critical: A condition term with the priority set to critical.
627
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
628
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
629
- :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
630
- :param pulumi.Input[str] name: The title of the condition.
631
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
632
- :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
633
- :param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
634
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']] warning: A condition term with the priority set to warning.
632
+ :param pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']] critical: A condition term with the priority set to critical.
633
+ :param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to true.
634
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
635
+ :param pulumi.Input[_builtins.str] entity_guid: The unique entity identifier of the condition in New Relic.
636
+ :param pulumi.Input[_builtins.str] name: The title of the condition.
637
+ :param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition will be used.
638
+ :param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
639
+ :param pulumi.Input[_builtins.int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
640
+ :param pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']] warning: A condition term with the priority set to warning.
635
641
 
636
642
 
637
643
  > **WARNING:** This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
@@ -651,7 +657,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
651
657
  __props__.__dict__["warning"] = warning
652
658
  return MultiLocationAlertCondition(resource_name, opts=opts, __props__=__props__)
653
659
 
654
- @property
660
+ @_builtins.property
655
661
  @pulumi.getter
656
662
  def critical(self) -> pulumi.Output['outputs.MultiLocationAlertConditionCritical']:
657
663
  """
@@ -659,63 +665,63 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
659
665
  """
660
666
  return pulumi.get(self, "critical")
661
667
 
662
- @property
668
+ @_builtins.property
663
669
  @pulumi.getter
664
- def enabled(self) -> pulumi.Output[Optional[bool]]:
670
+ def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
665
671
  """
666
672
  Set whether to enable the alert condition. Defaults to true.
667
673
  """
668
674
  return pulumi.get(self, "enabled")
669
675
 
670
- @property
676
+ @_builtins.property
671
677
  @pulumi.getter
672
- def entities(self) -> pulumi.Output[Sequence[str]]:
678
+ def entities(self) -> pulumi.Output[Sequence[_builtins.str]]:
673
679
  """
674
680
  The Monitor GUID's of the Synthetics monitors to alert on.
675
681
  """
676
682
  return pulumi.get(self, "entities")
677
683
 
678
- @property
684
+ @_builtins.property
679
685
  @pulumi.getter(name="entityGuid")
680
- def entity_guid(self) -> pulumi.Output[str]:
686
+ def entity_guid(self) -> pulumi.Output[_builtins.str]:
681
687
  """
682
688
  The unique entity identifier of the condition in New Relic.
683
689
  """
684
690
  return pulumi.get(self, "entity_guid")
685
691
 
686
- @property
692
+ @_builtins.property
687
693
  @pulumi.getter
688
- def name(self) -> pulumi.Output[str]:
694
+ def name(self) -> pulumi.Output[_builtins.str]:
689
695
  """
690
696
  The title of the condition.
691
697
  """
692
698
  return pulumi.get(self, "name")
693
699
 
694
- @property
700
+ @_builtins.property
695
701
  @pulumi.getter(name="policyId")
696
- def policy_id(self) -> pulumi.Output[int]:
702
+ def policy_id(self) -> pulumi.Output[_builtins.str]:
697
703
  """
698
704
  The ID of the policy where this condition will be used.
699
705
  """
700
706
  return pulumi.get(self, "policy_id")
701
707
 
702
- @property
708
+ @_builtins.property
703
709
  @pulumi.getter(name="runbookUrl")
704
- def runbook_url(self) -> pulumi.Output[Optional[str]]:
710
+ def runbook_url(self) -> pulumi.Output[Optional[_builtins.str]]:
705
711
  """
706
712
  Runbook URL to display in notifications.
707
713
  """
708
714
  return pulumi.get(self, "runbook_url")
709
715
 
710
- @property
716
+ @_builtins.property
711
717
  @pulumi.getter(name="violationTimeLimitSeconds")
712
- def violation_time_limit_seconds(self) -> pulumi.Output[Optional[int]]:
718
+ def violation_time_limit_seconds(self) -> pulumi.Output[Optional[_builtins.int]]:
713
719
  """
714
720
  The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
715
721
  """
716
722
  return pulumi.get(self, "violation_time_limit_seconds")
717
723
 
718
- @property
724
+ @_builtins.property
719
725
  @pulumi.getter
720
726
  def warning(self) -> pulumi.Output[Optional['outputs.MultiLocationAlertConditionWarning']]:
721
727
  """