pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.21.0__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 (70) hide show
  1. pulumi_newrelic/_inputs.py +69 -29
  2. pulumi_newrelic/account_management.py +6 -2
  3. pulumi_newrelic/alert_channel.py +34 -2
  4. pulumi_newrelic/alert_condition.py +26 -2
  5. pulumi_newrelic/alert_muting_rule.py +6 -2
  6. pulumi_newrelic/alert_policy.py +22 -4
  7. pulumi_newrelic/alert_policy_channel.py +8 -4
  8. pulumi_newrelic/api_access_key.py +6 -26
  9. pulumi_newrelic/browser_application.py +6 -2
  10. pulumi_newrelic/cloud/aws_govcloud_integrations.py +2 -2
  11. pulumi_newrelic/cloud/aws_govcloud_link_account.py +6 -2
  12. pulumi_newrelic/cloud/aws_integrations.py +6 -2
  13. pulumi_newrelic/cloud/aws_link_account.py +6 -2
  14. pulumi_newrelic/cloud/azure_integrations.py +6 -2
  15. pulumi_newrelic/cloud/azure_link_account.py +6 -2
  16. pulumi_newrelic/cloud/gcp_integrations.py +6 -2
  17. pulumi_newrelic/cloud/gcp_link_account.py +6 -2
  18. pulumi_newrelic/data_partition_rule.py +8 -2
  19. pulumi_newrelic/entity_tags.py +8 -4
  20. pulumi_newrelic/events_to_metrics_rule.py +8 -4
  21. pulumi_newrelic/get_account.py +4 -0
  22. pulumi_newrelic/get_application.py +4 -0
  23. pulumi_newrelic/get_authentication_domain.py +4 -0
  24. pulumi_newrelic/get_cloud_account.py +4 -0
  25. pulumi_newrelic/get_entity.py +66 -4
  26. pulumi_newrelic/get_group.py +4 -0
  27. pulumi_newrelic/get_key_transaction.py +4 -0
  28. pulumi_newrelic/get_notification_destination.py +14 -1
  29. pulumi_newrelic/get_obfuscation_expression.py +4 -0
  30. pulumi_newrelic/get_service_level_alert_helper.py +12 -0
  31. pulumi_newrelic/get_test_grok_pattern.py +4 -0
  32. pulumi_newrelic/get_user.py +4 -0
  33. pulumi_newrelic/group.py +14 -0
  34. pulumi_newrelic/infra_alert_condition.py +33 -9
  35. pulumi_newrelic/insights/event.py +6 -0
  36. pulumi_newrelic/log_parsing_rule.py +12 -2
  37. pulumi_newrelic/monitor_downtime.py +28 -2
  38. pulumi_newrelic/notification_channel.py +50 -4
  39. pulumi_newrelic/notification_destination.py +92 -72
  40. pulumi_newrelic/nrql_alert_condition.py +28 -4
  41. pulumi_newrelic/nrql_drop_rule.py +30 -4
  42. pulumi_newrelic/obfuscation_expression.py +6 -2
  43. pulumi_newrelic/obfuscation_rule.py +6 -2
  44. pulumi_newrelic/one_dashboard.py +2 -2
  45. pulumi_newrelic/one_dashboard_json.py +2 -2
  46. pulumi_newrelic/one_dashboard_raw.py +6 -0
  47. pulumi_newrelic/outputs.py +78 -29
  48. pulumi_newrelic/plugins/_inputs.py +2 -2
  49. pulumi_newrelic/plugins/application_settings.py +22 -2
  50. pulumi_newrelic/plugins/outputs.py +2 -2
  51. pulumi_newrelic/plugins/workload.py +112 -4
  52. pulumi_newrelic/service_level.py +20 -6
  53. pulumi_newrelic/synthetics/alert_condition.py +26 -2
  54. pulumi_newrelic/synthetics/broken_links_monitor.py +19 -23
  55. pulumi_newrelic/synthetics/cert_check_monitor.py +19 -23
  56. pulumi_newrelic/synthetics/get_private_location.py +8 -0
  57. pulumi_newrelic/synthetics/get_secure_credential.py +4 -0
  58. pulumi_newrelic/synthetics/monitor.py +27 -23
  59. pulumi_newrelic/synthetics/multi_location_alert_condition.py +12 -4
  60. pulumi_newrelic/synthetics/private_location.py +6 -2
  61. pulumi_newrelic/synthetics/script_monitor.py +27 -23
  62. pulumi_newrelic/synthetics/secure_credential.py +6 -2
  63. pulumi_newrelic/synthetics/step_monitor.py +15 -23
  64. pulumi_newrelic/user.py +4 -0
  65. pulumi_newrelic/workflow.py +22 -4
  66. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0.dist-info}/METADATA +1 -1
  67. pulumi_newrelic-5.21.0.dist-info/RECORD +89 -0
  68. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0.dist-info}/WHEEL +1 -1
  69. pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
  70. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0.dist-info}/top_level.txt +0 -0
@@ -140,6 +140,7 @@ class _NotificationDestinationState:
140
140
  active: Optional[pulumi.Input[bool]] = None,
141
141
  auth_basic: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']] = None,
142
142
  auth_token: Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']] = None,
143
+ guid: Optional[pulumi.Input[str]] = None,
143
144
  last_sent: Optional[pulumi.Input[str]] = None,
144
145
  name: Optional[pulumi.Input[str]] = None,
145
146
  properties: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]]] = None,
@@ -151,6 +152,7 @@ class _NotificationDestinationState:
151
152
  :param pulumi.Input[bool] active: Indicates whether the destination is active.
152
153
  :param pulumi.Input['NotificationDestinationAuthBasicArgs'] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
153
154
  :param pulumi.Input['NotificationDestinationAuthTokenArgs'] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
155
+ :param pulumi.Input[str] guid: The unique entity identifier of the destination in New Relic.
154
156
  :param pulumi.Input[str] last_sent: The last time a notification was sent.
155
157
  :param pulumi.Input[str] name: The name of the destination.
156
158
  :param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
@@ -166,6 +168,8 @@ class _NotificationDestinationState:
166
168
  pulumi.set(__self__, "auth_basic", auth_basic)
167
169
  if auth_token is not None:
168
170
  pulumi.set(__self__, "auth_token", auth_token)
171
+ if guid is not None:
172
+ pulumi.set(__self__, "guid", guid)
169
173
  if last_sent is not None:
170
174
  pulumi.set(__self__, "last_sent", last_sent)
171
175
  if name is not None:
@@ -225,6 +229,18 @@ class _NotificationDestinationState:
225
229
  def auth_token(self, value: Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']]):
226
230
  pulumi.set(self, "auth_token", value)
227
231
 
232
+ @property
233
+ @pulumi.getter
234
+ def guid(self) -> Optional[pulumi.Input[str]]:
235
+ """
236
+ The unique entity identifier of the destination in New Relic.
237
+ """
238
+ return pulumi.get(self, "guid")
239
+
240
+ @guid.setter
241
+ def guid(self, value: Optional[pulumi.Input[str]]):
242
+ pulumi.set(self, "guid", value)
243
+
228
244
  @property
229
245
  @pulumi.getter(name="lastSent")
230
246
  def last_sent(self) -> Optional[pulumi.Input[str]]:
@@ -305,71 +321,67 @@ class NotificationDestination(pulumi.CustomResource):
305
321
 
306
322
  Destination id can be found in the Destinations page -> three dots at the right of the chosen destination -> copy destination id to clipboard.
307
323
 
308
- This example is especially useful for slack destinations which *must* be imported.
324
+ This example is especially useful for slack destinations which *must* be imported.
309
325
 
310
- 1. Add an empty resource to your terraform file:
326
+ 1. Add an empty resource to your terraform file:
311
327
 
312
- terraform
328
+ terraform
313
329
 
314
- resource "newrelic_notification_destination" "foo" {
330
+ resource "newrelic_notification_destination" "foo" {
315
331
 
316
- }
332
+ }
317
333
 
318
334
  ```sh
319
- $ pulumi import newrelic:index/notificationDestination:NotificationDestination
320
-
321
- Run import command: `newrelic_notification_destination.foo <destination_id>`
335
+ $ pulumi import newrelic:index/notificationDestination:NotificationDestination Run import command: `newrelic_notification_destination.foo <destination_id>`
322
336
  ```
323
337
 
324
- 3. Run the following command after the import successfully done and copy the information to your resource:
325
-
326
- `terraform state show newrelic_notification_destination.foo`
327
-
328
- 4. Add `ignore_changes` attribute on `auth_token` in your imported resource:
329
-
330
- terraform
338
+ 3. Run the following command after the import successfully done and copy the information to your resource:
331
339
 
332
- lifecycle {
340
+ `terraform state show newrelic_notification_destination.foo`
333
341
 
334
- ignore_changes = [auth_token]
342
+ 4. Add `ignore_changes` attribute on `auth_token` in your imported resource:
335
343
 
336
- }
344
+ terraform
337
345
 
338
- Your imported destination should look like that:
346
+ lifecycle {
339
347
 
340
- terraform
348
+ ignore_changes = [auth_token]
341
349
 
342
- resource "newrelic_notification_destination" "foo" {
350
+ }
343
351
 
344
- lifecycle {
352
+ Your imported destination should look like that:
345
353
 
346
- ignore_changes = [auth_token]
354
+ terraform
347
355
 
348
- }
356
+ resource "newrelic_notification_destination" "foo" {
349
357
 
350
- name = "*********"
358
+ lifecycle {
351
359
 
352
- type = "SLACK"
360
+ ignore_changes = [auth_token]
353
361
 
354
- auth_token {
362
+ }
355
363
 
356
- prefix = "Bearer"
364
+ name = "*********"
357
365
 
358
- }
366
+ type = "SLACK"
359
367
 
360
- property {
368
+ auth_token {
361
369
 
362
- key
370
+ prefix = "Bearer"
363
371
 
364
- = "teamName"
372
+ }
365
373
 
366
- label = "Team Name"
374
+ property {
367
375
 
368
- value = "******"
376
+ key = "teamName"
377
+
378
+ label = "Team Name"
379
+
380
+ value = "******"
369
381
 
370
- }
382
+ }
371
383
 
372
- }
384
+ }
373
385
 
374
386
  :param str resource_name: The name of the resource.
375
387
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -393,71 +405,67 @@ class NotificationDestination(pulumi.CustomResource):
393
405
 
394
406
  Destination id can be found in the Destinations page -> three dots at the right of the chosen destination -> copy destination id to clipboard.
395
407
 
396
- This example is especially useful for slack destinations which *must* be imported.
408
+ This example is especially useful for slack destinations which *must* be imported.
397
409
 
398
- 1. Add an empty resource to your terraform file:
410
+ 1. Add an empty resource to your terraform file:
399
411
 
400
- terraform
412
+ terraform
401
413
 
402
- resource "newrelic_notification_destination" "foo" {
414
+ resource "newrelic_notification_destination" "foo" {
403
415
 
404
- }
416
+ }
405
417
 
406
418
  ```sh
407
- $ pulumi import newrelic:index/notificationDestination:NotificationDestination
408
-
409
- Run import command: `newrelic_notification_destination.foo <destination_id>`
419
+ $ pulumi import newrelic:index/notificationDestination:NotificationDestination Run import command: `newrelic_notification_destination.foo <destination_id>`
410
420
  ```
411
421
 
412
- 3. Run the following command after the import successfully done and copy the information to your resource:
413
-
414
- `terraform state show newrelic_notification_destination.foo`
415
-
416
- 4. Add `ignore_changes` attribute on `auth_token` in your imported resource:
422
+ 3. Run the following command after the import successfully done and copy the information to your resource:
417
423
 
418
- terraform
424
+ `terraform state show newrelic_notification_destination.foo`
419
425
 
420
- lifecycle {
426
+ 4. Add `ignore_changes` attribute on `auth_token` in your imported resource:
421
427
 
422
- ignore_changes = [auth_token]
428
+ terraform
423
429
 
424
- }
430
+ lifecycle {
425
431
 
426
- Your imported destination should look like that:
432
+ ignore_changes = [auth_token]
427
433
 
428
- terraform
434
+ }
429
435
 
430
- resource "newrelic_notification_destination" "foo" {
436
+ Your imported destination should look like that:
431
437
 
432
- lifecycle {
438
+ terraform
433
439
 
434
- ignore_changes = [auth_token]
440
+ resource "newrelic_notification_destination" "foo" {
435
441
 
436
- }
442
+ lifecycle {
437
443
 
438
- name = "*********"
444
+ ignore_changes = [auth_token]
439
445
 
440
- type = "SLACK"
446
+ }
441
447
 
442
- auth_token {
448
+ name = "*********"
443
449
 
444
- prefix = "Bearer"
450
+ type = "SLACK"
445
451
 
446
- }
452
+ auth_token {
447
453
 
448
- property {
454
+ prefix = "Bearer"
449
455
 
450
- key
456
+ }
451
457
 
452
- = "teamName"
458
+ property {
453
459
 
454
- label = "Team Name"
460
+ key = "teamName"
461
+
462
+ label = "Team Name"
463
+
464
+ value = "******"
455
465
 
456
- value = "******"
466
+ }
457
467
 
458
- }
459
-
460
- }
468
+ }
461
469
 
462
470
  :param str resource_name: The name of the resource.
463
471
  :param NotificationDestinationArgs args: The arguments to use to populate this resource's properties.
@@ -501,6 +509,7 @@ class NotificationDestination(pulumi.CustomResource):
501
509
  if type is None and not opts.urn:
502
510
  raise TypeError("Missing required property 'type'")
503
511
  __props__.__dict__["type"] = type
512
+ __props__.__dict__["guid"] = None
504
513
  __props__.__dict__["last_sent"] = None
505
514
  __props__.__dict__["status"] = None
506
515
  super(NotificationDestination, __self__).__init__(
@@ -517,6 +526,7 @@ class NotificationDestination(pulumi.CustomResource):
517
526
  active: Optional[pulumi.Input[bool]] = None,
518
527
  auth_basic: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']]] = None,
519
528
  auth_token: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']]] = None,
529
+ guid: Optional[pulumi.Input[str]] = None,
520
530
  last_sent: Optional[pulumi.Input[str]] = None,
521
531
  name: Optional[pulumi.Input[str]] = None,
522
532
  properties: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]]] = None,
@@ -533,6 +543,7 @@ class NotificationDestination(pulumi.CustomResource):
533
543
  :param pulumi.Input[bool] active: Indicates whether the destination is active.
534
544
  :param pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
535
545
  :param pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
546
+ :param pulumi.Input[str] guid: The unique entity identifier of the destination in New Relic.
536
547
  :param pulumi.Input[str] last_sent: The last time a notification was sent.
537
548
  :param pulumi.Input[str] name: The name of the destination.
538
549
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
@@ -548,6 +559,7 @@ class NotificationDestination(pulumi.CustomResource):
548
559
  __props__.__dict__["active"] = active
549
560
  __props__.__dict__["auth_basic"] = auth_basic
550
561
  __props__.__dict__["auth_token"] = auth_token
562
+ __props__.__dict__["guid"] = guid
551
563
  __props__.__dict__["last_sent"] = last_sent
552
564
  __props__.__dict__["name"] = name
553
565
  __props__.__dict__["properties"] = properties
@@ -587,6 +599,14 @@ class NotificationDestination(pulumi.CustomResource):
587
599
  """
588
600
  return pulumi.get(self, "auth_token")
589
601
 
602
+ @property
603
+ @pulumi.getter
604
+ def guid(self) -> pulumi.Output[str]:
605
+ """
606
+ The unique entity identifier of the destination in New Relic.
607
+ """
608
+ return pulumi.get(self, "guid")
609
+
590
610
  @property
591
611
  @pulumi.getter(name="lastSent")
592
612
  def last_sent(self) -> pulumi.Output[str]:
@@ -910,8 +910,10 @@ class NrqlAlertCondition(pulumi.CustomResource):
910
910
  Use this resource to create and manage NRQL alert conditions in New Relic.
911
911
 
912
912
  ## Example Usage
913
+
913
914
  ### Type: `static` (default)
914
915
 
916
+ <!--Start PulumiCodeChooser -->
915
917
  ```python
916
918
  import pulumi
917
919
  import pulumi_newrelic as newrelic
@@ -950,6 +952,8 @@ class NrqlAlertCondition(pulumi.CustomResource):
950
952
  threshold_occurrences="ALL",
951
953
  ))
952
954
  ```
955
+ <!--End PulumiCodeChooser -->
956
+
953
957
  ## NRQL
954
958
 
955
959
  The `nrql` block supports the following arguments:
@@ -988,6 +992,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
988
992
 
989
993
  [Baseline NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-baseline-alert-conditions) are dynamic in nature and adjust to the behavior of your data. The example below demonstrates a baseline NRQL alert condition for alerting when transaction durations are above a specified threshold and dynamically adjusts based on data trends.
990
994
 
995
+ <!--Start PulumiCodeChooser -->
991
996
  ```python
992
997
  import pulumi
993
998
  import pulumi_newrelic as newrelic
@@ -1026,11 +1031,13 @@ class NrqlAlertCondition(pulumi.CustomResource):
1026
1031
  threshold_occurrences="ALL",
1027
1032
  ))
1028
1033
  ```
1034
+ <!--End PulumiCodeChooser -->
1029
1035
 
1030
1036
  ## Tags
1031
1037
 
1032
1038
  Manage NRQL alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check `EntityTags`.
1033
1039
 
1040
+ <!--Start PulumiCodeChooser -->
1034
1041
  ```python
1035
1042
  import pulumi
1036
1043
  import pulumi_newrelic as newrelic
@@ -1084,6 +1091,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1084
1091
  ),
1085
1092
  ])
1086
1093
  ```
1094
+ <!--End PulumiCodeChooser -->
1087
1095
 
1088
1096
  <small>alerts.newrelic.com/accounts/**\\<account_id\\>**/policies/**\\<policy_id\\>**/conditions/**\\<condition_id\\>**/edit</small>
1089
1097
 
@@ -1095,6 +1103,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1095
1103
 
1096
1104
  An example resource from 1.x might look like the following.
1097
1105
 
1106
+ <!--Start PulumiCodeChooser -->
1098
1107
  ```python
1099
1108
  import pulumi
1100
1109
  import pulumi_newrelic as newrelic
@@ -1115,10 +1124,12 @@ class NrqlAlertCondition(pulumi.CustomResource):
1115
1124
  query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1116
1125
  ))
1117
1126
  ```
1127
+ <!--End PulumiCodeChooser -->
1118
1128
 
1119
1129
  After making the appropriate adjustments mentioned in the deprecation warnings,
1120
1130
  the resource now looks like the following.
1121
1131
 
1132
+ <!--Start PulumiCodeChooser -->
1122
1133
  ```python
1123
1134
  import pulumi
1124
1135
  import pulumi_newrelic as newrelic
@@ -1140,18 +1151,19 @@ class NrqlAlertCondition(pulumi.CustomResource):
1140
1151
  query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1141
1152
  ))
1142
1153
  ```
1154
+ <!--End PulumiCodeChooser -->
1143
1155
 
1144
1156
  ## Import
1145
1157
 
1146
1158
  NRQL alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>:<conditionType>`, e.g.
1147
1159
 
1148
- // For `baseline` conditions
1160
+ // For `baseline` conditions
1149
1161
 
1150
1162
  ```sh
1151
1163
  $ pulumi import newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:baseline
1152
1164
  ```
1153
1165
 
1154
- // For `static` conditions
1166
+ // For `static` conditions
1155
1167
 
1156
1168
  ```sh
1157
1169
  $ pulumi import newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:static
@@ -1197,8 +1209,10 @@ class NrqlAlertCondition(pulumi.CustomResource):
1197
1209
  Use this resource to create and manage NRQL alert conditions in New Relic.
1198
1210
 
1199
1211
  ## Example Usage
1212
+
1200
1213
  ### Type: `static` (default)
1201
1214
 
1215
+ <!--Start PulumiCodeChooser -->
1202
1216
  ```python
1203
1217
  import pulumi
1204
1218
  import pulumi_newrelic as newrelic
@@ -1237,6 +1251,8 @@ class NrqlAlertCondition(pulumi.CustomResource):
1237
1251
  threshold_occurrences="ALL",
1238
1252
  ))
1239
1253
  ```
1254
+ <!--End PulumiCodeChooser -->
1255
+
1240
1256
  ## NRQL
1241
1257
 
1242
1258
  The `nrql` block supports the following arguments:
@@ -1275,6 +1291,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1275
1291
 
1276
1292
  [Baseline NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-baseline-alert-conditions) are dynamic in nature and adjust to the behavior of your data. The example below demonstrates a baseline NRQL alert condition for alerting when transaction durations are above a specified threshold and dynamically adjusts based on data trends.
1277
1293
 
1294
+ <!--Start PulumiCodeChooser -->
1278
1295
  ```python
1279
1296
  import pulumi
1280
1297
  import pulumi_newrelic as newrelic
@@ -1313,11 +1330,13 @@ class NrqlAlertCondition(pulumi.CustomResource):
1313
1330
  threshold_occurrences="ALL",
1314
1331
  ))
1315
1332
  ```
1333
+ <!--End PulumiCodeChooser -->
1316
1334
 
1317
1335
  ## Tags
1318
1336
 
1319
1337
  Manage NRQL alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check `EntityTags`.
1320
1338
 
1339
+ <!--Start PulumiCodeChooser -->
1321
1340
  ```python
1322
1341
  import pulumi
1323
1342
  import pulumi_newrelic as newrelic
@@ -1371,6 +1390,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1371
1390
  ),
1372
1391
  ])
1373
1392
  ```
1393
+ <!--End PulumiCodeChooser -->
1374
1394
 
1375
1395
  <small>alerts.newrelic.com/accounts/**\\<account_id\\>**/policies/**\\<policy_id\\>**/conditions/**\\<condition_id\\>**/edit</small>
1376
1396
 
@@ -1382,6 +1402,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1382
1402
 
1383
1403
  An example resource from 1.x might look like the following.
1384
1404
 
1405
+ <!--Start PulumiCodeChooser -->
1385
1406
  ```python
1386
1407
  import pulumi
1387
1408
  import pulumi_newrelic as newrelic
@@ -1402,10 +1423,12 @@ class NrqlAlertCondition(pulumi.CustomResource):
1402
1423
  query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1403
1424
  ))
1404
1425
  ```
1426
+ <!--End PulumiCodeChooser -->
1405
1427
 
1406
1428
  After making the appropriate adjustments mentioned in the deprecation warnings,
1407
1429
  the resource now looks like the following.
1408
1430
 
1431
+ <!--Start PulumiCodeChooser -->
1409
1432
  ```python
1410
1433
  import pulumi
1411
1434
  import pulumi_newrelic as newrelic
@@ -1427,18 +1450,19 @@ class NrqlAlertCondition(pulumi.CustomResource):
1427
1450
  query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1428
1451
  ))
1429
1452
  ```
1453
+ <!--End PulumiCodeChooser -->
1430
1454
 
1431
1455
  ## Import
1432
1456
 
1433
1457
  NRQL alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>:<conditionType>`, e.g.
1434
1458
 
1435
- // For `baseline` conditions
1459
+ // For `baseline` conditions
1436
1460
 
1437
1461
  ```sh
1438
1462
  $ pulumi import newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:baseline
1439
1463
  ```
1440
1464
 
1441
- // For `static` conditions
1465
+ // For `static` conditions
1442
1466
 
1443
1467
  ```sh
1444
1468
  $ pulumi import newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:static
@@ -182,6 +182,7 @@ class NrqlDropRule(pulumi.CustomResource):
182
182
  """
183
183
  ## Example Usage
184
184
 
185
+ <!--Start PulumiCodeChooser -->
185
186
  ```python
186
187
  import pulumi
187
188
  import pulumi_newrelic as newrelic
@@ -202,14 +203,26 @@ class NrqlDropRule(pulumi.CustomResource):
202
203
  description="Removes containerId from metric aggregates to reduce metric cardinality.",
203
204
  nrql="SELECT containerId FROM Metric")
204
205
  ```
206
+ <!--End PulumiCodeChooser -->
207
+
208
+ ## Using `newrelic-cli` to List Out Drop Rules
209
+
210
+ All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
211
+
212
+ This would print all drop rules associated with your New Relic account to the terminal.
213
+ The number of rules to be printed can be customized using the `limit` argument of this command.
214
+ For instance, the following command limits the number of drop rules printed to two.
215
+
216
+ More details on the command and its arguments (for instance, the format in which the droprules are to be listed in the terminal, which is JSON by default) can be found in the output of the `newrelic nrql droprules --help` command.
217
+ If you do not have **newrelic-cli** installed on your device already, head over to [this page](https://github.com/newrelic/newrelic-cli#installation--upgrades) for instructions.
205
218
 
206
219
  ## Import
207
220
 
208
221
  New Relic NRQL drop rules can be imported using a concatenated string of the format
209
222
 
210
- `<account_id>:<rule_id>`, e.g.
223
+ `<account_id>:<rule_id>`, e.g.
211
224
 
212
- bash
225
+ bash
213
226
 
214
227
  ```sh
215
228
  $ pulumi import newrelic:index/nrqlDropRule:NrqlDropRule foo 12345:34567
@@ -231,6 +244,7 @@ class NrqlDropRule(pulumi.CustomResource):
231
244
  """
232
245
  ## Example Usage
233
246
 
247
+ <!--Start PulumiCodeChooser -->
234
248
  ```python
235
249
  import pulumi
236
250
  import pulumi_newrelic as newrelic
@@ -251,14 +265,26 @@ class NrqlDropRule(pulumi.CustomResource):
251
265
  description="Removes containerId from metric aggregates to reduce metric cardinality.",
252
266
  nrql="SELECT containerId FROM Metric")
253
267
  ```
268
+ <!--End PulumiCodeChooser -->
269
+
270
+ ## Using `newrelic-cli` to List Out Drop Rules
271
+
272
+ All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
273
+
274
+ This would print all drop rules associated with your New Relic account to the terminal.
275
+ The number of rules to be printed can be customized using the `limit` argument of this command.
276
+ For instance, the following command limits the number of drop rules printed to two.
277
+
278
+ More details on the command and its arguments (for instance, the format in which the droprules are to be listed in the terminal, which is JSON by default) can be found in the output of the `newrelic nrql droprules --help` command.
279
+ If you do not have **newrelic-cli** installed on your device already, head over to [this page](https://github.com/newrelic/newrelic-cli#installation--upgrades) for instructions.
254
280
 
255
281
  ## Import
256
282
 
257
283
  New Relic NRQL drop rules can be imported using a concatenated string of the format
258
284
 
259
- `<account_id>:<rule_id>`, e.g.
285
+ `<account_id>:<rule_id>`, e.g.
260
286
 
261
- bash
287
+ bash
262
288
 
263
289
  ```sh
264
290
  $ pulumi import newrelic:index/nrqlDropRule:NrqlDropRule foo 12345:34567
@@ -169,6 +169,7 @@ class ObfuscationExpression(pulumi.CustomResource):
169
169
 
170
170
  ## Example Usage
171
171
 
172
+ <!--Start PulumiCodeChooser -->
172
173
  ```python
173
174
  import pulumi
174
175
  import pulumi_newrelic as newrelic
@@ -178,12 +179,13 @@ class ObfuscationExpression(pulumi.CustomResource):
178
179
  description="The description",
179
180
  regex="(regex.*)")
180
181
  ```
182
+ <!--End PulumiCodeChooser -->
181
183
 
182
184
  ## Import
183
185
 
184
186
  New Relic obfuscation expression can be imported using the expression ID, e.g.
185
187
 
186
- bash
188
+ bash
187
189
 
188
190
  ```sh
189
191
  $ pulumi import newrelic:index/obfuscationExpression:ObfuscationExpression foo 34567
@@ -207,6 +209,7 @@ class ObfuscationExpression(pulumi.CustomResource):
207
209
 
208
210
  ## Example Usage
209
211
 
212
+ <!--Start PulumiCodeChooser -->
210
213
  ```python
211
214
  import pulumi
212
215
  import pulumi_newrelic as newrelic
@@ -216,12 +219,13 @@ class ObfuscationExpression(pulumi.CustomResource):
216
219
  description="The description",
217
220
  regex="(regex.*)")
218
221
  ```
222
+ <!--End PulumiCodeChooser -->
219
223
 
220
224
  ## Import
221
225
 
222
226
  New Relic obfuscation expression can be imported using the expression ID, e.g.
223
227
 
224
- bash
228
+ bash
225
229
 
226
230
  ```sh
227
231
  $ pulumi import newrelic:index/obfuscationExpression:ObfuscationExpression foo 34567
@@ -235,6 +235,7 @@ class ObfuscationRule(pulumi.CustomResource):
235
235
 
236
236
  ## Example Usage
237
237
 
238
+ <!--Start PulumiCodeChooser -->
238
239
  ```python
239
240
  import pulumi
240
241
  import pulumi_newrelic as newrelic
@@ -252,12 +253,13 @@ class ObfuscationRule(pulumi.CustomResource):
252
253
  method="MASK",
253
254
  )])
254
255
  ```
256
+ <!--End PulumiCodeChooser -->
255
257
 
256
258
  ## Import
257
259
 
258
260
  New Relic obfuscation rule can be imported using the rule ID, e.g.
259
261
 
260
- bash
262
+ bash
261
263
 
262
264
  ```sh
263
265
  $ pulumi import newrelic:index/obfuscationRule:ObfuscationRule foo 34567
@@ -283,6 +285,7 @@ class ObfuscationRule(pulumi.CustomResource):
283
285
 
284
286
  ## Example Usage
285
287
 
288
+ <!--Start PulumiCodeChooser -->
286
289
  ```python
287
290
  import pulumi
288
291
  import pulumi_newrelic as newrelic
@@ -300,12 +303,13 @@ class ObfuscationRule(pulumi.CustomResource):
300
303
  method="MASK",
301
304
  )])
302
305
  ```
306
+ <!--End PulumiCodeChooser -->
303
307
 
304
308
  ## Import
305
309
 
306
310
  New Relic obfuscation rule can be imported using the rule ID, e.g.
307
311
 
308
- bash
312
+ bash
309
313
 
310
314
  ```sh
311
315
  $ pulumi import newrelic:index/obfuscationRule:ObfuscationRule foo 34567
@@ -269,7 +269,7 @@ class OneDashboard(pulumi.CustomResource):
269
269
 
270
270
  New Relic dashboards can be imported using their GUID, e.g.
271
271
 
272
- bash
272
+ bash
273
273
 
274
274
  ```sh
275
275
  $ pulumi import newrelic:index/oneDashboard:OneDashboard my_dashboard <dashboard GUID>
@@ -295,7 +295,7 @@ class OneDashboard(pulumi.CustomResource):
295
295
 
296
296
  New Relic dashboards can be imported using their GUID, e.g.
297
297
 
298
- bash
298
+ bash
299
299
 
300
300
  ```sh
301
301
  $ pulumi import newrelic:index/oneDashboard:OneDashboard my_dashboard <dashboard GUID>
@@ -151,7 +151,7 @@ class OneDashboardJson(pulumi.CustomResource):
151
151
 
152
152
  New Relic dashboards can be imported using their GUID, e.g.
153
153
 
154
- bash
154
+ bash
155
155
 
156
156
  ```sh
157
157
  $ pulumi import newrelic:index/oneDashboardJson:OneDashboardJson my_dashboard <dashboard GUID>
@@ -173,7 +173,7 @@ class OneDashboardJson(pulumi.CustomResource):
173
173
 
174
174
  New Relic dashboards can be imported using their GUID, e.g.
175
175
 
176
- bash
176
+ bash
177
177
 
178
178
  ```sh
179
179
  $ pulumi import newrelic:index/oneDashboardJson:OneDashboardJson my_dashboard <dashboard GUID>