pulumi-newrelic 5.20.0a1709365820__py3-none-any.whl → 5.21.0a1710157101__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 (67) hide show
  1. pulumi_newrelic/__init__.py +10 -0
  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 +48 -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_alert_policy.py +3 -3
  23. pulumi_newrelic/get_application.py +4 -0
  24. pulumi_newrelic/get_authentication_domain.py +4 -0
  25. pulumi_newrelic/get_cloud_account.py +4 -0
  26. pulumi_newrelic/get_entity.py +66 -4
  27. pulumi_newrelic/get_group.py +145 -0
  28. pulumi_newrelic/get_key_transaction.py +4 -0
  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 +10 -6
  33. pulumi_newrelic/group.py +426 -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 +72 -0
  39. pulumi_newrelic/notification_destination.py +132 -2
  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/plugins/application_settings.py +22 -2
  48. pulumi_newrelic/plugins/workload.py +112 -4
  49. pulumi_newrelic/service_level.py +20 -6
  50. pulumi_newrelic/synthetics/alert_condition.py +26 -2
  51. pulumi_newrelic/synthetics/broken_links_monitor.py +12 -2
  52. pulumi_newrelic/synthetics/cert_check_monitor.py +12 -2
  53. pulumi_newrelic/synthetics/get_private_location.py +8 -0
  54. pulumi_newrelic/synthetics/get_secure_credential.py +4 -0
  55. pulumi_newrelic/synthetics/monitor.py +20 -2
  56. pulumi_newrelic/synthetics/multi_location_alert_condition.py +12 -4
  57. pulumi_newrelic/synthetics/private_location.py +6 -2
  58. pulumi_newrelic/synthetics/script_monitor.py +20 -2
  59. pulumi_newrelic/synthetics/secure_credential.py +6 -2
  60. pulumi_newrelic/synthetics/step_monitor.py +8 -2
  61. pulumi_newrelic/user.py +4 -0
  62. pulumi_newrelic/workflow.py +22 -4
  63. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/METADATA +1 -1
  64. pulumi_newrelic-5.21.0a1710157101.dist-info/RECORD +89 -0
  65. pulumi_newrelic-5.20.0a1709365820.dist-info/RECORD +0 -87
  66. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/WHEEL +0 -0
  67. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/top_level.txt +0 -0
@@ -301,7 +301,72 @@ class NotificationDestination(pulumi.CustomResource):
301
301
  type: Optional[pulumi.Input[str]] = None,
302
302
  __props__=None):
303
303
  """
304
- Create a NotificationDestination resource with the given unique name, props, and options.
304
+ ## Import
305
+
306
+ Destination id can be found in the Destinations page -> three dots at the right of the chosen destination -> copy destination id to clipboard.
307
+
308
+ This example is especially useful for slack destinations which *must* be imported.
309
+
310
+ 1. Add an empty resource to your terraform file:
311
+
312
+ terraform
313
+
314
+ resource "newrelic_notification_destination" "foo" {
315
+
316
+ }
317
+
318
+ ```sh
319
+ $ pulumi import newrelic:index/notificationDestination:NotificationDestination Run import command: `newrelic_notification_destination.foo <destination_id>`
320
+ ```
321
+
322
+ 3. Run the following command after the import successfully done and copy the information to your resource:
323
+
324
+ `terraform state show newrelic_notification_destination.foo`
325
+
326
+ 4. Add `ignore_changes` attribute on `auth_token` in your imported resource:
327
+
328
+ terraform
329
+
330
+ lifecycle {
331
+
332
+ ignore_changes = [auth_token]
333
+
334
+ }
335
+
336
+ Your imported destination should look like that:
337
+
338
+ terraform
339
+
340
+ resource "newrelic_notification_destination" "foo" {
341
+
342
+ lifecycle {
343
+
344
+ ignore_changes = [auth_token]
345
+
346
+ }
347
+
348
+ name = "*********"
349
+
350
+ type = "SLACK"
351
+
352
+ auth_token {
353
+
354
+ prefix = "Bearer"
355
+
356
+ }
357
+
358
+ property {
359
+
360
+ key = "teamName"
361
+
362
+ label = "Team Name"
363
+
364
+ value = "******"
365
+
366
+ }
367
+
368
+ }
369
+
305
370
  :param str resource_name: The name of the resource.
306
371
  :param pulumi.ResourceOptions opts: Options for the resource.
307
372
  :param pulumi.Input[int] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
@@ -320,7 +385,72 @@ class NotificationDestination(pulumi.CustomResource):
320
385
  args: NotificationDestinationArgs,
321
386
  opts: Optional[pulumi.ResourceOptions] = None):
322
387
  """
323
- Create a NotificationDestination resource with the given unique name, props, and options.
388
+ ## Import
389
+
390
+ Destination id can be found in the Destinations page -> three dots at the right of the chosen destination -> copy destination id to clipboard.
391
+
392
+ This example is especially useful for slack destinations which *must* be imported.
393
+
394
+ 1. Add an empty resource to your terraform file:
395
+
396
+ terraform
397
+
398
+ resource "newrelic_notification_destination" "foo" {
399
+
400
+ }
401
+
402
+ ```sh
403
+ $ pulumi import newrelic:index/notificationDestination:NotificationDestination Run import command: `newrelic_notification_destination.foo <destination_id>`
404
+ ```
405
+
406
+ 3. Run the following command after the import successfully done and copy the information to your resource:
407
+
408
+ `terraform state show newrelic_notification_destination.foo`
409
+
410
+ 4. Add `ignore_changes` attribute on `auth_token` in your imported resource:
411
+
412
+ terraform
413
+
414
+ lifecycle {
415
+
416
+ ignore_changes = [auth_token]
417
+
418
+ }
419
+
420
+ Your imported destination should look like that:
421
+
422
+ terraform
423
+
424
+ resource "newrelic_notification_destination" "foo" {
425
+
426
+ lifecycle {
427
+
428
+ ignore_changes = [auth_token]
429
+
430
+ }
431
+
432
+ name = "*********"
433
+
434
+ type = "SLACK"
435
+
436
+ auth_token {
437
+
438
+ prefix = "Bearer"
439
+
440
+ }
441
+
442
+ property {
443
+
444
+ key = "teamName"
445
+
446
+ label = "Team Name"
447
+
448
+ value = "******"
449
+
450
+ }
451
+
452
+ }
453
+
324
454
  :param str resource_name: The name of the resource.
325
455
  :param NotificationDestinationArgs args: The arguments to use to populate this resource's properties.
326
456
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -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>
@@ -235,8 +235,10 @@ class OneDashboardRaw(pulumi.CustomResource):
235
235
  > **NOTE:** The OneDashboardJson resource is preferred for configuring dashboards in New Relic. This resource does not support the latest dashboard features and will receive less investment compared to newrelic_one_dashboard_json.
236
236
 
237
237
  ## Example Usage
238
+
238
239
  ### Create A New Relic One Dashboard With RawConfiguration
239
240
 
241
+ <!--Start PulumiCodeChooser -->
240
242
  ```python
241
243
  import pulumi
242
244
  import json
@@ -308,6 +310,7 @@ class OneDashboardRaw(pulumi.CustomResource):
308
310
  ],
309
311
  )])
310
312
  ```
313
+ <!--End PulumiCodeChooser -->
311
314
 
312
315
  :param str resource_name: The name of the resource.
313
316
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -327,8 +330,10 @@ class OneDashboardRaw(pulumi.CustomResource):
327
330
  > **NOTE:** The OneDashboardJson resource is preferred for configuring dashboards in New Relic. This resource does not support the latest dashboard features and will receive less investment compared to newrelic_one_dashboard_json.
328
331
 
329
332
  ## Example Usage
333
+
330
334
  ### Create A New Relic One Dashboard With RawConfiguration
331
335
 
336
+ <!--Start PulumiCodeChooser -->
332
337
  ```python
333
338
  import pulumi
334
339
  import json
@@ -400,6 +405,7 @@ class OneDashboardRaw(pulumi.CustomResource):
400
405
  ],
401
406
  )])
402
407
  ```
408
+ <!--End PulumiCodeChooser -->
403
409
 
404
410
  :param str resource_name: The name of the resource.
405
411
  :param OneDashboardRawArgs args: The arguments to use to populate this resource's properties.