pulumi-newrelic 5.28.0a1723107045__py3-none-any.whl → 5.29.0a1723454189__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. pulumi_newrelic/alert_channel.py +69 -69
  2. pulumi_newrelic/alert_condition.py +49 -49
  3. pulumi_newrelic/alert_muting_rule.py +54 -54
  4. pulumi_newrelic/alert_policy.py +16 -16
  5. pulumi_newrelic/alert_policy_channel.py +16 -16
  6. pulumi_newrelic/cloud/aws_govcloud_integrations.py +100 -100
  7. pulumi_newrelic/cloud/aws_integrations.py +798 -798
  8. pulumi_newrelic/cloud/azure_integrations.py +424 -424
  9. pulumi_newrelic/cloud/gcp_integrations.py +288 -288
  10. pulumi_newrelic/entity_tags.py +21 -21
  11. pulumi_newrelic/get_application.py +14 -14
  12. pulumi_newrelic/get_entity.py +4 -4
  13. pulumi_newrelic/get_key_transaction.py +14 -14
  14. pulumi_newrelic/get_notification_destination.py +4 -4
  15. pulumi_newrelic/get_obfuscation_expression.py +10 -10
  16. pulumi_newrelic/get_service_level_alert_helper.py +76 -76
  17. pulumi_newrelic/infra_alert_condition.py +90 -90
  18. pulumi_newrelic/insights/event.py +43 -43
  19. pulumi_newrelic/monitor_downtime.py +52 -52
  20. pulumi_newrelic/notification_channel.py +187 -187
  21. pulumi_newrelic/notification_destination.py +25 -25
  22. pulumi_newrelic/nrql_alert_condition.py +164 -164
  23. pulumi_newrelic/obfuscation_rule.py +15 -15
  24. pulumi_newrelic/one_dashboard.py +10 -10
  25. pulumi_newrelic/one_dashboard_raw.py +75 -75
  26. pulumi_newrelic/plugins/workload.py +101 -101
  27. pulumi_newrelic/pulumi-plugin.json +1 -1
  28. pulumi_newrelic/service_level.py +164 -164
  29. pulumi_newrelic/synthetics/alert_condition.py +32 -32
  30. pulumi_newrelic/synthetics/broken_links_monitor.py +21 -21
  31. pulumi_newrelic/synthetics/cert_check_monitor.py +21 -21
  32. pulumi_newrelic/synthetics/get_private_location.py +6 -6
  33. pulumi_newrelic/synthetics/monitor.py +74 -74
  34. pulumi_newrelic/synthetics/multi_location_alert_condition.py +66 -66
  35. pulumi_newrelic/synthetics/script_monitor.py +58 -58
  36. pulumi_newrelic/synthetics/step_monitor.py +59 -59
  37. pulumi_newrelic/workflow.py +155 -155
  38. {pulumi_newrelic-5.28.0a1723107045.dist-info → pulumi_newrelic-5.29.0a1723454189.dist-info}/METADATA +1 -1
  39. {pulumi_newrelic-5.28.0a1723107045.dist-info → pulumi_newrelic-5.29.0a1723454189.dist-info}/RECORD +41 -41
  40. {pulumi_newrelic-5.28.0a1723107045.dist-info → pulumi_newrelic-5.29.0a1723454189.dist-info}/WHEEL +0 -0
  41. {pulumi_newrelic-5.28.0a1723107045.dist-info → pulumi_newrelic-5.29.0a1723454189.dist-info}/top_level.txt +0 -0
@@ -879,7 +879,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
879
879
  aggregation_window: Optional[pulumi.Input[int]] = None,
880
880
  baseline_direction: Optional[pulumi.Input[str]] = None,
881
881
  close_violations_on_expiration: Optional[pulumi.Input[bool]] = None,
882
- critical: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionCriticalArgs']]] = None,
882
+ critical: Optional[pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']]] = None,
883
883
  description: Optional[pulumi.Input[str]] = None,
884
884
  enabled: Optional[pulumi.Input[bool]] = None,
885
885
  evaluation_delay: Optional[pulumi.Input[int]] = None,
@@ -887,16 +887,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
887
887
  fill_option: Optional[pulumi.Input[str]] = None,
888
888
  fill_value: Optional[pulumi.Input[float]] = None,
889
889
  name: Optional[pulumi.Input[str]] = None,
890
- nrql: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionNrqlArgs']]] = None,
890
+ nrql: Optional[pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']]] = None,
891
891
  open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
892
892
  policy_id: Optional[pulumi.Input[str]] = None,
893
893
  runbook_url: Optional[pulumi.Input[str]] = None,
894
894
  slide_by: Optional[pulumi.Input[int]] = None,
895
- terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NrqlAlertConditionTermArgs']]]]] = None,
895
+ terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]]] = None,
896
896
  type: Optional[pulumi.Input[str]] = None,
897
897
  violation_time_limit: Optional[pulumi.Input[str]] = None,
898
898
  violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
899
- warning: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionWarningArgs']]] = None,
899
+ warning: Optional[pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']]] = None,
900
900
  __props__=None):
901
901
  """
902
902
  Use this resource to create and manage NRQL alert conditions in New Relic.
@@ -928,21 +928,21 @@ class NrqlAlertCondition(pulumi.CustomResource):
928
928
  open_violation_on_expiration=True,
929
929
  close_violations_on_expiration=True,
930
930
  slide_by=30,
931
- nrql=newrelic.NrqlAlertConditionNrqlArgs(
932
- query="SELECT average(duration) FROM Transaction where appName = 'Your App'",
933
- ),
934
- critical=newrelic.NrqlAlertConditionCriticalArgs(
935
- operator="above",
936
- threshold=5.5,
937
- threshold_duration=300,
938
- threshold_occurrences="ALL",
939
- ),
940
- warning=newrelic.NrqlAlertConditionWarningArgs(
941
- operator="above",
942
- threshold=3.5,
943
- threshold_duration=600,
944
- threshold_occurrences="ALL",
945
- ))
931
+ nrql={
932
+ "query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
933
+ },
934
+ critical={
935
+ "operator": "above",
936
+ "threshold": 5.5,
937
+ "threshold_duration": 300,
938
+ "threshold_occurrences": "ALL",
939
+ },
940
+ warning={
941
+ "operator": "above",
942
+ "threshold": 3.5,
943
+ "threshold_duration": 600,
944
+ "threshold_occurrences": "ALL",
945
+ })
946
946
  ```
947
947
 
948
948
  ## NRQL
@@ -1007,21 +1007,21 @@ class NrqlAlertCondition(pulumi.CustomResource):
1007
1007
  open_violation_on_expiration=True,
1008
1008
  close_violations_on_expiration=True,
1009
1009
  slide_by=30,
1010
- nrql=newrelic.NrqlAlertConditionNrqlArgs(
1011
- query="SELECT average(duration) FROM Transaction where appName = 'Your App'",
1012
- ),
1013
- critical=newrelic.NrqlAlertConditionCriticalArgs(
1014
- operator="above",
1015
- threshold=5.5,
1016
- threshold_duration=300,
1017
- threshold_occurrences="ALL",
1018
- ),
1019
- warning=newrelic.NrqlAlertConditionWarningArgs(
1020
- operator="above",
1021
- threshold=3.5,
1022
- threshold_duration=600,
1023
- threshold_occurrences="ALL",
1024
- ))
1010
+ nrql={
1011
+ "query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
1012
+ },
1013
+ critical={
1014
+ "operator": "above",
1015
+ "threshold": 5.5,
1016
+ "threshold_duration": 300,
1017
+ "threshold_occurrences": "ALL",
1018
+ },
1019
+ warning={
1020
+ "operator": "above",
1021
+ "threshold": 3.5,
1022
+ "threshold_duration": 600,
1023
+ "threshold_occurrences": "ALL",
1024
+ })
1025
1025
  ```
1026
1026
 
1027
1027
  ## Tags
@@ -1051,35 +1051,35 @@ class NrqlAlertCondition(pulumi.CustomResource):
1051
1051
  open_violation_on_expiration=True,
1052
1052
  close_violations_on_expiration=True,
1053
1053
  slide_by=30,
1054
- nrql=newrelic.NrqlAlertConditionNrqlArgs(
1055
- query="SELECT average(duration) FROM Transaction where appName = 'Your App'",
1056
- ),
1057
- critical=newrelic.NrqlAlertConditionCriticalArgs(
1058
- operator="above",
1059
- threshold=5.5,
1060
- threshold_duration=300,
1061
- threshold_occurrences="ALL",
1062
- ),
1063
- warning=newrelic.NrqlAlertConditionWarningArgs(
1064
- operator="above",
1065
- threshold=3.5,
1066
- threshold_duration=600,
1067
- threshold_occurrences="ALL",
1068
- ))
1054
+ nrql={
1055
+ "query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
1056
+ },
1057
+ critical={
1058
+ "operator": "above",
1059
+ "threshold": 5.5,
1060
+ "threshold_duration": 300,
1061
+ "threshold_occurrences": "ALL",
1062
+ },
1063
+ warning={
1064
+ "operator": "above",
1065
+ "threshold": 3.5,
1066
+ "threshold_duration": 600,
1067
+ "threshold_occurrences": "ALL",
1068
+ })
1069
1069
  my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
1070
1070
  guid=foo_nrql_alert_condition.entity_guid,
1071
1071
  tags=[
1072
- newrelic.EntityTagsTagArgs(
1073
- key="my-key",
1074
- values=[
1072
+ {
1073
+ "key": "my-key",
1074
+ "values": [
1075
1075
  "my-value",
1076
1076
  "my-other-value",
1077
1077
  ],
1078
- ),
1079
- newrelic.EntityTagsTagArgs(
1080
- key="my-key-2",
1081
- values=["my-value-2"],
1082
- ),
1078
+ },
1079
+ {
1080
+ "key": "my-key-2",
1081
+ "values": ["my-value-2"],
1082
+ },
1083
1083
  ])
1084
1084
  ```
1085
1085
 
@@ -1104,15 +1104,15 @@ class NrqlAlertCondition(pulumi.CustomResource):
1104
1104
  runbook_url="https://localhost",
1105
1105
  enabled=True,
1106
1106
  violation_time_limit="TWENTY_FOUR_HOURS",
1107
- critical=newrelic.NrqlAlertConditionCriticalArgs(
1108
- operator="above",
1109
- threshold_duration=120,
1110
- threshold=3,
1111
- threshold_occurrences="AT_LEAST_ONCE",
1112
- ),
1113
- nrql=newrelic.NrqlAlertConditionNrqlArgs(
1114
- query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1115
- ))
1107
+ critical={
1108
+ "operator": "above",
1109
+ "threshold_duration": 120,
1110
+ "threshold": 3,
1111
+ "threshold_occurrences": "AT_LEAST_ONCE",
1112
+ },
1113
+ nrql={
1114
+ "query": "SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1115
+ })
1116
1116
  ```
1117
1117
 
1118
1118
  After making the appropriate adjustments mentioned in the deprecation warnings,
@@ -1129,16 +1129,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
1129
1129
  runbook_url="https://localhost",
1130
1130
  enabled=True,
1131
1131
  violation_time_limit_seconds=86400,
1132
- terms=[newrelic.NrqlAlertConditionTermArgs(
1133
- priority="critical",
1134
- operator="above",
1135
- threshold=3,
1136
- duration=5,
1137
- time_function="any",
1138
- )],
1139
- nrql=newrelic.NrqlAlertConditionNrqlArgs(
1140
- query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1141
- ))
1132
+ terms=[{
1133
+ "priority": "critical",
1134
+ "operator": "above",
1135
+ "threshold": 3,
1136
+ "duration": 5,
1137
+ "time_function": "any",
1138
+ }],
1139
+ nrql={
1140
+ "query": "SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1141
+ })
1142
1142
  ```
1143
1143
 
1144
1144
  ## Import
@@ -1166,7 +1166,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1166
1166
  :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
1167
1167
  :param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
1168
1168
  :param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
1169
- :param pulumi.Input[pulumi.InputType['NrqlAlertConditionCriticalArgs']] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1169
+ :param pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1170
1170
  :param pulumi.Input[str] description: The description of the NRQL alert condition.
1171
1171
  :param pulumi.Input[bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
1172
1172
  :param pulumi.Input[int] evaluation_delay: How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
@@ -1174,18 +1174,18 @@ class NrqlAlertCondition(pulumi.CustomResource):
1174
1174
  :param pulumi.Input[str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
1175
1175
  :param pulumi.Input[float] fill_value: This value will be used for filling gaps in the signal.
1176
1176
  :param pulumi.Input[str] name: The title of the condition.
1177
- :param pulumi.Input[pulumi.InputType['NrqlAlertConditionNrqlArgs']] nrql: A NRQL query. See NRQL below for details.
1177
+ :param pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']] nrql: A NRQL query. See NRQL below for details.
1178
1178
  :param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
1179
1179
  :param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
1180
1180
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
1181
1181
  :param pulumi.Input[int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
1182
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NrqlAlertConditionTermArgs']]]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
1182
+ :param pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
1183
1183
  :param pulumi.Input[str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
1184
1184
  :param pulumi.Input[str] violation_time_limit: **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
1185
1185
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1186
1186
  :param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
1187
1187
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1188
- :param pulumi.Input[pulumi.InputType['NrqlAlertConditionWarningArgs']] warning: A list containing the `warning` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1188
+ :param pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']] warning: A list containing the `warning` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1189
1189
  """
1190
1190
  ...
1191
1191
  @overload
@@ -1223,21 +1223,21 @@ class NrqlAlertCondition(pulumi.CustomResource):
1223
1223
  open_violation_on_expiration=True,
1224
1224
  close_violations_on_expiration=True,
1225
1225
  slide_by=30,
1226
- nrql=newrelic.NrqlAlertConditionNrqlArgs(
1227
- query="SELECT average(duration) FROM Transaction where appName = 'Your App'",
1228
- ),
1229
- critical=newrelic.NrqlAlertConditionCriticalArgs(
1230
- operator="above",
1231
- threshold=5.5,
1232
- threshold_duration=300,
1233
- threshold_occurrences="ALL",
1234
- ),
1235
- warning=newrelic.NrqlAlertConditionWarningArgs(
1236
- operator="above",
1237
- threshold=3.5,
1238
- threshold_duration=600,
1239
- threshold_occurrences="ALL",
1240
- ))
1226
+ nrql={
1227
+ "query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
1228
+ },
1229
+ critical={
1230
+ "operator": "above",
1231
+ "threshold": 5.5,
1232
+ "threshold_duration": 300,
1233
+ "threshold_occurrences": "ALL",
1234
+ },
1235
+ warning={
1236
+ "operator": "above",
1237
+ "threshold": 3.5,
1238
+ "threshold_duration": 600,
1239
+ "threshold_occurrences": "ALL",
1240
+ })
1241
1241
  ```
1242
1242
 
1243
1243
  ## NRQL
@@ -1302,21 +1302,21 @@ class NrqlAlertCondition(pulumi.CustomResource):
1302
1302
  open_violation_on_expiration=True,
1303
1303
  close_violations_on_expiration=True,
1304
1304
  slide_by=30,
1305
- nrql=newrelic.NrqlAlertConditionNrqlArgs(
1306
- query="SELECT average(duration) FROM Transaction where appName = 'Your App'",
1307
- ),
1308
- critical=newrelic.NrqlAlertConditionCriticalArgs(
1309
- operator="above",
1310
- threshold=5.5,
1311
- threshold_duration=300,
1312
- threshold_occurrences="ALL",
1313
- ),
1314
- warning=newrelic.NrqlAlertConditionWarningArgs(
1315
- operator="above",
1316
- threshold=3.5,
1317
- threshold_duration=600,
1318
- threshold_occurrences="ALL",
1319
- ))
1305
+ nrql={
1306
+ "query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
1307
+ },
1308
+ critical={
1309
+ "operator": "above",
1310
+ "threshold": 5.5,
1311
+ "threshold_duration": 300,
1312
+ "threshold_occurrences": "ALL",
1313
+ },
1314
+ warning={
1315
+ "operator": "above",
1316
+ "threshold": 3.5,
1317
+ "threshold_duration": 600,
1318
+ "threshold_occurrences": "ALL",
1319
+ })
1320
1320
  ```
1321
1321
 
1322
1322
  ## Tags
@@ -1346,35 +1346,35 @@ class NrqlAlertCondition(pulumi.CustomResource):
1346
1346
  open_violation_on_expiration=True,
1347
1347
  close_violations_on_expiration=True,
1348
1348
  slide_by=30,
1349
- nrql=newrelic.NrqlAlertConditionNrqlArgs(
1350
- query="SELECT average(duration) FROM Transaction where appName = 'Your App'",
1351
- ),
1352
- critical=newrelic.NrqlAlertConditionCriticalArgs(
1353
- operator="above",
1354
- threshold=5.5,
1355
- threshold_duration=300,
1356
- threshold_occurrences="ALL",
1357
- ),
1358
- warning=newrelic.NrqlAlertConditionWarningArgs(
1359
- operator="above",
1360
- threshold=3.5,
1361
- threshold_duration=600,
1362
- threshold_occurrences="ALL",
1363
- ))
1349
+ nrql={
1350
+ "query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
1351
+ },
1352
+ critical={
1353
+ "operator": "above",
1354
+ "threshold": 5.5,
1355
+ "threshold_duration": 300,
1356
+ "threshold_occurrences": "ALL",
1357
+ },
1358
+ warning={
1359
+ "operator": "above",
1360
+ "threshold": 3.5,
1361
+ "threshold_duration": 600,
1362
+ "threshold_occurrences": "ALL",
1363
+ })
1364
1364
  my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
1365
1365
  guid=foo_nrql_alert_condition.entity_guid,
1366
1366
  tags=[
1367
- newrelic.EntityTagsTagArgs(
1368
- key="my-key",
1369
- values=[
1367
+ {
1368
+ "key": "my-key",
1369
+ "values": [
1370
1370
  "my-value",
1371
1371
  "my-other-value",
1372
1372
  ],
1373
- ),
1374
- newrelic.EntityTagsTagArgs(
1375
- key="my-key-2",
1376
- values=["my-value-2"],
1377
- ),
1373
+ },
1374
+ {
1375
+ "key": "my-key-2",
1376
+ "values": ["my-value-2"],
1377
+ },
1378
1378
  ])
1379
1379
  ```
1380
1380
 
@@ -1399,15 +1399,15 @@ class NrqlAlertCondition(pulumi.CustomResource):
1399
1399
  runbook_url="https://localhost",
1400
1400
  enabled=True,
1401
1401
  violation_time_limit="TWENTY_FOUR_HOURS",
1402
- critical=newrelic.NrqlAlertConditionCriticalArgs(
1403
- operator="above",
1404
- threshold_duration=120,
1405
- threshold=3,
1406
- threshold_occurrences="AT_LEAST_ONCE",
1407
- ),
1408
- nrql=newrelic.NrqlAlertConditionNrqlArgs(
1409
- query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1410
- ))
1402
+ critical={
1403
+ "operator": "above",
1404
+ "threshold_duration": 120,
1405
+ "threshold": 3,
1406
+ "threshold_occurrences": "AT_LEAST_ONCE",
1407
+ },
1408
+ nrql={
1409
+ "query": "SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1410
+ })
1411
1411
  ```
1412
1412
 
1413
1413
  After making the appropriate adjustments mentioned in the deprecation warnings,
@@ -1424,16 +1424,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
1424
1424
  runbook_url="https://localhost",
1425
1425
  enabled=True,
1426
1426
  violation_time_limit_seconds=86400,
1427
- terms=[newrelic.NrqlAlertConditionTermArgs(
1428
- priority="critical",
1429
- operator="above",
1430
- threshold=3,
1431
- duration=5,
1432
- time_function="any",
1433
- )],
1434
- nrql=newrelic.NrqlAlertConditionNrqlArgs(
1435
- query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1436
- ))
1427
+ terms=[{
1428
+ "priority": "critical",
1429
+ "operator": "above",
1430
+ "threshold": 3,
1431
+ "duration": 5,
1432
+ "time_function": "any",
1433
+ }],
1434
+ nrql={
1435
+ "query": "SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1436
+ })
1437
1437
  ```
1438
1438
 
1439
1439
  ## Import
@@ -1474,7 +1474,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1474
1474
  aggregation_window: Optional[pulumi.Input[int]] = None,
1475
1475
  baseline_direction: Optional[pulumi.Input[str]] = None,
1476
1476
  close_violations_on_expiration: Optional[pulumi.Input[bool]] = None,
1477
- critical: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionCriticalArgs']]] = None,
1477
+ critical: Optional[pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']]] = None,
1478
1478
  description: Optional[pulumi.Input[str]] = None,
1479
1479
  enabled: Optional[pulumi.Input[bool]] = None,
1480
1480
  evaluation_delay: Optional[pulumi.Input[int]] = None,
@@ -1482,16 +1482,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
1482
1482
  fill_option: Optional[pulumi.Input[str]] = None,
1483
1483
  fill_value: Optional[pulumi.Input[float]] = None,
1484
1484
  name: Optional[pulumi.Input[str]] = None,
1485
- nrql: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionNrqlArgs']]] = None,
1485
+ nrql: Optional[pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']]] = None,
1486
1486
  open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
1487
1487
  policy_id: Optional[pulumi.Input[str]] = None,
1488
1488
  runbook_url: Optional[pulumi.Input[str]] = None,
1489
1489
  slide_by: Optional[pulumi.Input[int]] = None,
1490
- terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NrqlAlertConditionTermArgs']]]]] = None,
1490
+ terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]]] = None,
1491
1491
  type: Optional[pulumi.Input[str]] = None,
1492
1492
  violation_time_limit: Optional[pulumi.Input[str]] = None,
1493
1493
  violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
1494
- warning: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionWarningArgs']]] = None,
1494
+ warning: Optional[pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']]] = None,
1495
1495
  __props__=None):
1496
1496
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
1497
1497
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -1548,7 +1548,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1548
1548
  aggregation_window: Optional[pulumi.Input[int]] = None,
1549
1549
  baseline_direction: Optional[pulumi.Input[str]] = None,
1550
1550
  close_violations_on_expiration: Optional[pulumi.Input[bool]] = None,
1551
- critical: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionCriticalArgs']]] = None,
1551
+ critical: Optional[pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']]] = None,
1552
1552
  description: Optional[pulumi.Input[str]] = None,
1553
1553
  enabled: Optional[pulumi.Input[bool]] = None,
1554
1554
  entity_guid: Optional[pulumi.Input[str]] = None,
@@ -1557,16 +1557,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
1557
1557
  fill_option: Optional[pulumi.Input[str]] = None,
1558
1558
  fill_value: Optional[pulumi.Input[float]] = None,
1559
1559
  name: Optional[pulumi.Input[str]] = None,
1560
- nrql: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionNrqlArgs']]] = None,
1560
+ nrql: Optional[pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']]] = None,
1561
1561
  open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
1562
1562
  policy_id: Optional[pulumi.Input[str]] = None,
1563
1563
  runbook_url: Optional[pulumi.Input[str]] = None,
1564
1564
  slide_by: Optional[pulumi.Input[int]] = None,
1565
- terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NrqlAlertConditionTermArgs']]]]] = None,
1565
+ terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]]] = None,
1566
1566
  type: Optional[pulumi.Input[str]] = None,
1567
1567
  violation_time_limit: Optional[pulumi.Input[str]] = None,
1568
1568
  violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
1569
- warning: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionWarningArgs']]] = None) -> 'NrqlAlertCondition':
1569
+ warning: Optional[pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']]] = None) -> 'NrqlAlertCondition':
1570
1570
  """
1571
1571
  Get an existing NrqlAlertCondition resource's state with the given name, id, and optional extra
1572
1572
  properties used to qualify the lookup.
@@ -1581,7 +1581,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1581
1581
  :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
1582
1582
  :param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
1583
1583
  :param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
1584
- :param pulumi.Input[pulumi.InputType['NrqlAlertConditionCriticalArgs']] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1584
+ :param pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1585
1585
  :param pulumi.Input[str] description: The description of the NRQL alert condition.
1586
1586
  :param pulumi.Input[bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
1587
1587
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the NRQL Condition in New Relic.
@@ -1590,18 +1590,18 @@ class NrqlAlertCondition(pulumi.CustomResource):
1590
1590
  :param pulumi.Input[str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
1591
1591
  :param pulumi.Input[float] fill_value: This value will be used for filling gaps in the signal.
1592
1592
  :param pulumi.Input[str] name: The title of the condition.
1593
- :param pulumi.Input[pulumi.InputType['NrqlAlertConditionNrqlArgs']] nrql: A NRQL query. See NRQL below for details.
1593
+ :param pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']] nrql: A NRQL query. See NRQL below for details.
1594
1594
  :param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
1595
1595
  :param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
1596
1596
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
1597
1597
  :param pulumi.Input[int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
1598
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NrqlAlertConditionTermArgs']]]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
1598
+ :param pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
1599
1599
  :param pulumi.Input[str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
1600
1600
  :param pulumi.Input[str] violation_time_limit: **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
1601
1601
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1602
1602
  :param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
1603
1603
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1604
- :param pulumi.Input[pulumi.InputType['NrqlAlertConditionWarningArgs']] warning: A list containing the `warning` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1604
+ :param pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']] warning: A list containing the `warning` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1605
1605
  """
1606
1606
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
1607
1607
 
@@ -224,7 +224,7 @@ class ObfuscationRule(pulumi.CustomResource):
224
224
  resource_name: str,
225
225
  opts: Optional[pulumi.ResourceOptions] = None,
226
226
  account_id: Optional[pulumi.Input[str]] = None,
227
- actions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObfuscationRuleActionArgs']]]]] = None,
227
+ actions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ObfuscationRuleActionArgs', 'ObfuscationRuleActionArgsDict']]]]] = None,
228
228
  description: Optional[pulumi.Input[str]] = None,
229
229
  enabled: Optional[pulumi.Input[bool]] = None,
230
230
  filter: Optional[pulumi.Input[str]] = None,
@@ -248,11 +248,11 @@ class ObfuscationRule(pulumi.CustomResource):
248
248
  description="description of the rule",
249
249
  filter="hostStatus=running",
250
250
  enabled=True,
251
- actions=[newrelic.ObfuscationRuleActionArgs(
252
- attributes=["message"],
253
- expression_id=bar.id,
254
- method="MASK",
255
- )])
251
+ actions=[{
252
+ "attributes": ["message"],
253
+ "expression_id": bar.id,
254
+ "method": "MASK",
255
+ }])
256
256
  ```
257
257
 
258
258
  ## Import
@@ -268,7 +268,7 @@ class ObfuscationRule(pulumi.CustomResource):
268
268
  :param str resource_name: The name of the resource.
269
269
  :param pulumi.ResourceOptions opts: Options for the resource.
270
270
  :param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
271
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObfuscationRuleActionArgs']]]] actions: Actions for the rule. The actions will be applied in the order specified by this list.
271
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ObfuscationRuleActionArgs', 'ObfuscationRuleActionArgsDict']]]] actions: Actions for the rule. The actions will be applied in the order specified by this list.
272
272
  :param pulumi.Input[str] description: Description of rule.
273
273
  :param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
274
274
  :param pulumi.Input[str] filter: NRQL for determining whether a given log record should have obfuscation actions applied.
@@ -298,11 +298,11 @@ class ObfuscationRule(pulumi.CustomResource):
298
298
  description="description of the rule",
299
299
  filter="hostStatus=running",
300
300
  enabled=True,
301
- actions=[newrelic.ObfuscationRuleActionArgs(
302
- attributes=["message"],
303
- expression_id=bar.id,
304
- method="MASK",
305
- )])
301
+ actions=[{
302
+ "attributes": ["message"],
303
+ "expression_id": bar.id,
304
+ "method": "MASK",
305
+ }])
306
306
  ```
307
307
 
308
308
  ## Import
@@ -331,7 +331,7 @@ class ObfuscationRule(pulumi.CustomResource):
331
331
  resource_name: str,
332
332
  opts: Optional[pulumi.ResourceOptions] = None,
333
333
  account_id: Optional[pulumi.Input[str]] = None,
334
- actions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObfuscationRuleActionArgs']]]]] = None,
334
+ actions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ObfuscationRuleActionArgs', 'ObfuscationRuleActionArgsDict']]]]] = None,
335
335
  description: Optional[pulumi.Input[str]] = None,
336
336
  enabled: Optional[pulumi.Input[bool]] = None,
337
337
  filter: Optional[pulumi.Input[str]] = None,
@@ -368,7 +368,7 @@ class ObfuscationRule(pulumi.CustomResource):
368
368
  id: pulumi.Input[str],
369
369
  opts: Optional[pulumi.ResourceOptions] = None,
370
370
  account_id: Optional[pulumi.Input[str]] = None,
371
- actions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObfuscationRuleActionArgs']]]]] = None,
371
+ actions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ObfuscationRuleActionArgs', 'ObfuscationRuleActionArgsDict']]]]] = None,
372
372
  description: Optional[pulumi.Input[str]] = None,
373
373
  enabled: Optional[pulumi.Input[bool]] = None,
374
374
  filter: Optional[pulumi.Input[str]] = None,
@@ -381,7 +381,7 @@ class ObfuscationRule(pulumi.CustomResource):
381
381
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
382
382
  :param pulumi.ResourceOptions opts: Options for the resource.
383
383
  :param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
384
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObfuscationRuleActionArgs']]]] actions: Actions for the rule. The actions will be applied in the order specified by this list.
384
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ObfuscationRuleActionArgs', 'ObfuscationRuleActionArgsDict']]]] actions: Actions for the rule. The actions will be applied in the order specified by this list.
385
385
  :param pulumi.Input[str] description: Description of rule.
386
386
  :param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
387
387
  :param pulumi.Input[str] filter: NRQL for determining whether a given log record should have obfuscation actions applied.