pulumi-newrelic 5.20.0a1709365820__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 (72) hide show
  1. pulumi_newrelic/__init__.py +10 -0
  2. pulumi_newrelic/_inputs.py +69 -29
  3. pulumi_newrelic/account_management.py +6 -2
  4. pulumi_newrelic/alert_channel.py +34 -2
  5. pulumi_newrelic/alert_condition.py +26 -2
  6. pulumi_newrelic/alert_muting_rule.py +6 -2
  7. pulumi_newrelic/alert_policy.py +48 -4
  8. pulumi_newrelic/alert_policy_channel.py +8 -4
  9. pulumi_newrelic/api_access_key.py +6 -26
  10. pulumi_newrelic/browser_application.py +6 -2
  11. pulumi_newrelic/cloud/aws_govcloud_integrations.py +2 -2
  12. pulumi_newrelic/cloud/aws_govcloud_link_account.py +6 -2
  13. pulumi_newrelic/cloud/aws_integrations.py +6 -2
  14. pulumi_newrelic/cloud/aws_link_account.py +6 -2
  15. pulumi_newrelic/cloud/azure_integrations.py +6 -2
  16. pulumi_newrelic/cloud/azure_link_account.py +6 -2
  17. pulumi_newrelic/cloud/gcp_integrations.py +6 -2
  18. pulumi_newrelic/cloud/gcp_link_account.py +6 -2
  19. pulumi_newrelic/data_partition_rule.py +8 -2
  20. pulumi_newrelic/entity_tags.py +8 -4
  21. pulumi_newrelic/events_to_metrics_rule.py +8 -4
  22. pulumi_newrelic/get_account.py +4 -0
  23. pulumi_newrelic/get_alert_policy.py +3 -3
  24. pulumi_newrelic/get_application.py +4 -0
  25. pulumi_newrelic/get_authentication_domain.py +4 -0
  26. pulumi_newrelic/get_cloud_account.py +4 -0
  27. pulumi_newrelic/get_entity.py +66 -4
  28. pulumi_newrelic/get_group.py +145 -0
  29. pulumi_newrelic/get_key_transaction.py +4 -0
  30. pulumi_newrelic/get_notification_destination.py +14 -1
  31. pulumi_newrelic/get_obfuscation_expression.py +4 -0
  32. pulumi_newrelic/get_service_level_alert_helper.py +12 -0
  33. pulumi_newrelic/get_test_grok_pattern.py +4 -0
  34. pulumi_newrelic/get_user.py +10 -6
  35. pulumi_newrelic/group.py +426 -0
  36. pulumi_newrelic/infra_alert_condition.py +33 -9
  37. pulumi_newrelic/insights/event.py +6 -0
  38. pulumi_newrelic/log_parsing_rule.py +12 -2
  39. pulumi_newrelic/monitor_downtime.py +28 -2
  40. pulumi_newrelic/notification_channel.py +72 -0
  41. pulumi_newrelic/notification_destination.py +160 -2
  42. pulumi_newrelic/nrql_alert_condition.py +28 -4
  43. pulumi_newrelic/nrql_drop_rule.py +30 -4
  44. pulumi_newrelic/obfuscation_expression.py +6 -2
  45. pulumi_newrelic/obfuscation_rule.py +6 -2
  46. pulumi_newrelic/one_dashboard.py +2 -2
  47. pulumi_newrelic/one_dashboard_json.py +2 -2
  48. pulumi_newrelic/one_dashboard_raw.py +6 -0
  49. pulumi_newrelic/outputs.py +78 -29
  50. pulumi_newrelic/plugins/_inputs.py +2 -2
  51. pulumi_newrelic/plugins/application_settings.py +22 -2
  52. pulumi_newrelic/plugins/outputs.py +2 -2
  53. pulumi_newrelic/plugins/workload.py +112 -4
  54. pulumi_newrelic/service_level.py +20 -6
  55. pulumi_newrelic/synthetics/alert_condition.py +26 -2
  56. pulumi_newrelic/synthetics/broken_links_monitor.py +19 -23
  57. pulumi_newrelic/synthetics/cert_check_monitor.py +19 -23
  58. pulumi_newrelic/synthetics/get_private_location.py +8 -0
  59. pulumi_newrelic/synthetics/get_secure_credential.py +4 -0
  60. pulumi_newrelic/synthetics/monitor.py +27 -23
  61. pulumi_newrelic/synthetics/multi_location_alert_condition.py +12 -4
  62. pulumi_newrelic/synthetics/private_location.py +6 -2
  63. pulumi_newrelic/synthetics/script_monitor.py +27 -23
  64. pulumi_newrelic/synthetics/secure_credential.py +6 -2
  65. pulumi_newrelic/synthetics/step_monitor.py +15 -23
  66. pulumi_newrelic/user.py +4 -0
  67. pulumi_newrelic/workflow.py +22 -4
  68. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0.dist-info}/METADATA +1 -1
  69. pulumi_newrelic-5.21.0.dist-info/RECORD +89 -0
  70. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0.dist-info}/WHEEL +1 -1
  71. pulumi_newrelic-5.20.0a1709365820.dist-info/RECORD +0 -87
  72. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0.dist-info}/top_level.txt +0 -0
@@ -46,9 +46,11 @@ class AlertConditionArgs:
46
46
 
47
47
  > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
48
48
 
49
+ <!--Start PulumiCodeChooser -->
49
50
  ```python
50
51
  import pulumi
51
52
  ```
53
+ <!--End PulumiCodeChooser -->
52
54
  :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
53
55
  * when `type` = `apm_app_metric` and `condition_scope` = `instance`
54
56
  * when `type` = `apm_jvm_metric`
@@ -215,9 +217,11 @@ class AlertConditionArgs:
215
217
 
216
218
  > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
217
219
 
220
+ <!--Start PulumiCodeChooser -->
218
221
  ```python
219
222
  import pulumi
220
223
  ```
224
+ <!--End PulumiCodeChooser -->
221
225
  """
222
226
  return pulumi.get(self, "user_defined_value_function")
223
227
 
@@ -275,9 +279,11 @@ class _AlertConditionState:
275
279
 
276
280
  > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
277
281
 
282
+ <!--Start PulumiCodeChooser -->
278
283
  ```python
279
284
  import pulumi
280
285
  ```
286
+ <!--End PulumiCodeChooser -->
281
287
  :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
282
288
  * when `type` = `apm_app_metric` and `condition_scope` = `instance`
283
289
  * when `type` = `apm_jvm_metric`
@@ -463,9 +469,11 @@ class _AlertConditionState:
463
469
 
464
470
  > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
465
471
 
472
+ <!--Start PulumiCodeChooser -->
466
473
  ```python
467
474
  import pulumi
468
475
  ```
476
+ <!--End PulumiCodeChooser -->
469
477
  """
470
478
  return pulumi.get(self, "user_defined_value_function")
471
479
 
@@ -514,6 +522,7 @@ class AlertCondition(pulumi.CustomResource):
514
522
 
515
523
  ## Example Usage
516
524
 
525
+ <!--Start PulumiCodeChooser -->
517
526
  ```python
518
527
  import pulumi
519
528
  import pulumi_newrelic as newrelic
@@ -537,6 +546,8 @@ class AlertCondition(pulumi.CustomResource):
537
546
  time_function="all",
538
547
  )])
539
548
  ```
549
+ <!--End PulumiCodeChooser -->
550
+
540
551
  ## Terms
541
552
 
542
553
  The `term` mapping supports the following arguments:
@@ -551,6 +562,7 @@ class AlertCondition(pulumi.CustomResource):
551
562
 
552
563
  Manage alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
553
564
 
565
+ <!--Start PulumiCodeChooser -->
554
566
  ```python
555
567
  import pulumi
556
568
  import pulumi_newrelic as newrelic
@@ -587,13 +599,14 @@ class AlertCondition(pulumi.CustomResource):
587
599
  ),
588
600
  ])
589
601
  ```
602
+ <!--End PulumiCodeChooser -->
590
603
 
591
604
  ## Import
592
605
 
593
606
  Alert conditions can be imported using notation `alert_policy_id:alert_condition_id`, e.g.
594
607
 
595
608
  ```sh
596
- $ pulumi import newrelic:index/alertCondition:AlertCondition main 123456:6789012345
609
+ $ pulumi import newrelic:index/alertCondition:AlertCondition main 123456:6789012345
597
610
  ```
598
611
 
599
612
  :param str resource_name: The name of the resource.
@@ -613,9 +626,11 @@ class AlertCondition(pulumi.CustomResource):
613
626
 
614
627
  > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
615
628
 
629
+ <!--Start PulumiCodeChooser -->
616
630
  ```python
617
631
  import pulumi
618
632
  ```
633
+ <!--End PulumiCodeChooser -->
619
634
  :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
620
635
  * when `type` = `apm_app_metric` and `condition_scope` = `instance`
621
636
  * when `type` = `apm_jvm_metric`
@@ -633,6 +648,7 @@ class AlertCondition(pulumi.CustomResource):
633
648
 
634
649
  ## Example Usage
635
650
 
651
+ <!--Start PulumiCodeChooser -->
636
652
  ```python
637
653
  import pulumi
638
654
  import pulumi_newrelic as newrelic
@@ -656,6 +672,8 @@ class AlertCondition(pulumi.CustomResource):
656
672
  time_function="all",
657
673
  )])
658
674
  ```
675
+ <!--End PulumiCodeChooser -->
676
+
659
677
  ## Terms
660
678
 
661
679
  The `term` mapping supports the following arguments:
@@ -670,6 +688,7 @@ class AlertCondition(pulumi.CustomResource):
670
688
 
671
689
  Manage alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
672
690
 
691
+ <!--Start PulumiCodeChooser -->
673
692
  ```python
674
693
  import pulumi
675
694
  import pulumi_newrelic as newrelic
@@ -706,13 +725,14 @@ class AlertCondition(pulumi.CustomResource):
706
725
  ),
707
726
  ])
708
727
  ```
728
+ <!--End PulumiCodeChooser -->
709
729
 
710
730
  ## Import
711
731
 
712
732
  Alert conditions can be imported using notation `alert_policy_id:alert_condition_id`, e.g.
713
733
 
714
734
  ```sh
715
- $ pulumi import newrelic:index/alertCondition:AlertCondition main 123456:6789012345
735
+ $ pulumi import newrelic:index/alertCondition:AlertCondition main 123456:6789012345
716
736
  ```
717
737
 
718
738
  :param str resource_name: The name of the resource.
@@ -823,9 +843,11 @@ class AlertCondition(pulumi.CustomResource):
823
843
 
824
844
  > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
825
845
 
846
+ <!--Start PulumiCodeChooser -->
826
847
  ```python
827
848
  import pulumi
828
849
  ```
850
+ <!--End PulumiCodeChooser -->
829
851
  :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
830
852
  * when `type` = `apm_app_metric` and `condition_scope` = `instance`
831
853
  * when `type` = `apm_jvm_metric`
@@ -954,9 +976,11 @@ class AlertCondition(pulumi.CustomResource):
954
976
 
955
977
  > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
956
978
 
979
+ <!--Start PulumiCodeChooser -->
957
980
  ```python
958
981
  import pulumi
959
982
  ```
983
+ <!--End PulumiCodeChooser -->
960
984
  """
961
985
  return pulumi.get(self, "user_defined_value_function")
962
986
 
@@ -234,6 +234,7 @@ class AlertMutingRule(pulumi.CustomResource):
234
234
  """
235
235
  ## Example Usage
236
236
 
237
+ <!--Start PulumiCodeChooser -->
237
238
  ```python
238
239
  import pulumi
239
240
  import pulumi_newrelic as newrelic
@@ -269,13 +270,14 @@ class AlertMutingRule(pulumi.CustomResource):
269
270
  ],
270
271
  ))
271
272
  ```
273
+ <!--End PulumiCodeChooser -->
272
274
 
273
275
  ## Import
274
276
 
275
277
  Alert conditions can be imported using a composite ID of `<account_id>:<muting_rule_id>`, e.g.
276
278
 
277
279
  ```sh
278
- $ pulumi import newrelic:index/alertMutingRule:AlertMutingRule foo 538291:6789035
280
+ $ pulumi import newrelic:index/alertMutingRule:AlertMutingRule foo 538291:6789035
279
281
  ```
280
282
 
281
283
  :param str resource_name: The name of the resource.
@@ -296,6 +298,7 @@ class AlertMutingRule(pulumi.CustomResource):
296
298
  """
297
299
  ## Example Usage
298
300
 
301
+ <!--Start PulumiCodeChooser -->
299
302
  ```python
300
303
  import pulumi
301
304
  import pulumi_newrelic as newrelic
@@ -331,13 +334,14 @@ class AlertMutingRule(pulumi.CustomResource):
331
334
  ],
332
335
  ))
333
336
  ```
337
+ <!--End PulumiCodeChooser -->
334
338
 
335
339
  ## Import
336
340
 
337
341
  Alert conditions can be imported using a composite ID of `<account_id>:<muting_rule_id>`, e.g.
338
342
 
339
343
  ```sh
340
- $ pulumi import newrelic:index/alertMutingRule:AlertMutingRule foo 538291:6789035
344
+ $ pulumi import newrelic:index/alertMutingRule:AlertMutingRule foo 538291:6789035
341
345
  ```
342
346
 
343
347
  :param str resource_name: The name of the resource.
@@ -181,16 +181,34 @@ class AlertPolicy(pulumi.CustomResource):
181
181
  Use this resource to create and manage New Relic alert policies.
182
182
 
183
183
  ## Example Usage
184
+
184
185
  ### Basic Usage
185
186
 
187
+ <!--Start PulumiCodeChooser -->
186
188
  ```python
187
189
  import pulumi
188
190
  import pulumi_newrelic as newrelic
189
191
 
190
192
  foo = newrelic.AlertPolicy("foo", incident_preference="PER_POLICY")
191
193
  ```
194
+ <!--End PulumiCodeChooser -->
195
+
192
196
  ### Provision multiple notification channels and add those channels to a policy
193
197
 
198
+ The following arguments are supported:
199
+
200
+ * `name` - (Required) The name of the policy.
201
+ * `incident_preference` - (Optional) The rollup strategy for the policy, which can have one of the following values (the default value is `PER_POLICY`):
202
+ * `PER_POLICY` - This sets the incident grouping preference of the policy to **One issue per policy**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-policy) for more details on this incident grouping preference.
203
+ * `PER_CONDITION` - This sets the incident grouping preference of the policy to **One issue per condition**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-condition) for more details on this incident grouping preference.
204
+ * `PER_CONDITION_AND_TARGET` - This sets the incident grouping preference of the policy to **One issue per condition and signal**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-signal) for more details on this incident grouping preference.
205
+ * `channel_ids` - (Optional) **DEPRECATED** The `channel_ids` argument is deprecated and will be removed in the next major release of the provider. An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported via `pulumi import` (see Import for info).
206
+ * `account_id` - (Optional) The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
207
+
208
+ ## Additional Examples
209
+
210
+ ##### Provision multiple notification channels and add those channels to a policy
211
+ <!--Start PulumiCodeChooser -->
194
212
  ```python
195
213
  import pulumi
196
214
  import pulumi_newrelic as newrelic
@@ -217,7 +235,10 @@ class AlertPolicy(pulumi.CustomResource):
217
235
  email_channel.id,
218
236
  ])
219
237
  ```
238
+ <!--End PulumiCodeChooser -->
239
+
220
240
  ### Reference existing notification channels and add those channel to a policy
241
+ <!--Start PulumiCodeChooser -->
221
242
  ```python
222
243
  import pulumi
223
244
  import pulumi_newrelic as newrelic
@@ -232,6 +253,7 @@ class AlertPolicy(pulumi.CustomResource):
232
253
  email_channel.id,
233
254
  ])
234
255
  ```
256
+ <!--End PulumiCodeChooser -->
235
257
 
236
258
  ## Import
237
259
 
@@ -240,9 +262,9 @@ class AlertPolicy(pulumi.CustomResource):
240
262
  Example import:
241
263
 
242
264
  ```sh
243
- $ pulumi import newrelic:index/alertPolicy:AlertPolicy foo 23423556:4593020
265
+ $ pulumi import newrelic:index/alertPolicy:AlertPolicy foo 23423556:4593020
244
266
  ```
245
- Please note that channel IDs (`channel_ids`) _cannot_ be imported due channels being a separate resource. However, to add channels to an imported alert policy, you can import the policy, add the `channel_ids` attribute with the associated channel IDs, then run `pulumi up`. This will result in the original alert policy being destroyed and a new alert policy being created along with the channels being added to the policy.
267
+ Please note that channel IDs (`channel_ids`) _cannot_ be imported due channels being a separate resource. However, to add channels to an imported alert policy, you can import the policy, add the `channel_ids` attribute with the associated channel IDs, then run `pulumi up`. This will result in the original alert policy being destroyed and a new alert policy being created along with the channels being added to the policy.
246
268
 
247
269
  :param str resource_name: The name of the resource.
248
270
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -261,16 +283,34 @@ class AlertPolicy(pulumi.CustomResource):
261
283
  Use this resource to create and manage New Relic alert policies.
262
284
 
263
285
  ## Example Usage
286
+
264
287
  ### Basic Usage
265
288
 
289
+ <!--Start PulumiCodeChooser -->
266
290
  ```python
267
291
  import pulumi
268
292
  import pulumi_newrelic as newrelic
269
293
 
270
294
  foo = newrelic.AlertPolicy("foo", incident_preference="PER_POLICY")
271
295
  ```
296
+ <!--End PulumiCodeChooser -->
297
+
272
298
  ### Provision multiple notification channels and add those channels to a policy
273
299
 
300
+ The following arguments are supported:
301
+
302
+ * `name` - (Required) The name of the policy.
303
+ * `incident_preference` - (Optional) The rollup strategy for the policy, which can have one of the following values (the default value is `PER_POLICY`):
304
+ * `PER_POLICY` - This sets the incident grouping preference of the policy to **One issue per policy**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-policy) for more details on this incident grouping preference.
305
+ * `PER_CONDITION` - This sets the incident grouping preference of the policy to **One issue per condition**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-condition) for more details on this incident grouping preference.
306
+ * `PER_CONDITION_AND_TARGET` - This sets the incident grouping preference of the policy to **One issue per condition and signal**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-signal) for more details on this incident grouping preference.
307
+ * `channel_ids` - (Optional) **DEPRECATED** The `channel_ids` argument is deprecated and will be removed in the next major release of the provider. An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported via `pulumi import` (see Import for info).
308
+ * `account_id` - (Optional) The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
309
+
310
+ ## Additional Examples
311
+
312
+ ##### Provision multiple notification channels and add those channels to a policy
313
+ <!--Start PulumiCodeChooser -->
274
314
  ```python
275
315
  import pulumi
276
316
  import pulumi_newrelic as newrelic
@@ -297,7 +337,10 @@ class AlertPolicy(pulumi.CustomResource):
297
337
  email_channel.id,
298
338
  ])
299
339
  ```
340
+ <!--End PulumiCodeChooser -->
341
+
300
342
  ### Reference existing notification channels and add those channel to a policy
343
+ <!--Start PulumiCodeChooser -->
301
344
  ```python
302
345
  import pulumi
303
346
  import pulumi_newrelic as newrelic
@@ -312,6 +355,7 @@ class AlertPolicy(pulumi.CustomResource):
312
355
  email_channel.id,
313
356
  ])
314
357
  ```
358
+ <!--End PulumiCodeChooser -->
315
359
 
316
360
  ## Import
317
361
 
@@ -320,9 +364,9 @@ class AlertPolicy(pulumi.CustomResource):
320
364
  Example import:
321
365
 
322
366
  ```sh
323
- $ pulumi import newrelic:index/alertPolicy:AlertPolicy foo 23423556:4593020
367
+ $ pulumi import newrelic:index/alertPolicy:AlertPolicy foo 23423556:4593020
324
368
  ```
325
- Please note that channel IDs (`channel_ids`) _cannot_ be imported due channels being a separate resource. However, to add channels to an imported alert policy, you can import the policy, add the `channel_ids` attribute with the associated channel IDs, then run `pulumi up`. This will result in the original alert policy being destroyed and a new alert policy being created along with the channels being added to the policy.
369
+ Please note that channel IDs (`channel_ids`) _cannot_ be imported due channels being a separate resource. However, to add channels to an imported alert policy, you can import the policy, add the `channel_ids` attribute with the associated channel IDs, then run `pulumi up`. This will result in the original alert policy being destroyed and a new alert policy being created along with the channels being added to the policy.
326
370
 
327
371
  :param str resource_name: The name of the resource.
328
372
  :param AlertPolicyArgs args: The arguments to use to populate this resource's properties.
@@ -139,6 +139,7 @@ class AlertPolicyChannel(pulumi.CustomResource):
139
139
 
140
140
  The example below will apply multiple alert channels to an existing New Relic alert policy.
141
141
 
142
+ <!--Start PulumiCodeChooser -->
142
143
  ```python
143
144
  import pulumi
144
145
  import pulumi_newrelic as newrelic
@@ -167,15 +168,16 @@ class AlertPolicyChannel(pulumi.CustomResource):
167
168
  slack_channel.id,
168
169
  ])
169
170
  ```
171
+ <!--End PulumiCodeChooser -->
170
172
 
171
173
  ## Import
172
174
 
173
175
  Alert policy channels can be imported using the following notation: `<policyID>:<channelID>:<channelID>`, e.g.
174
176
 
175
177
  ```sh
176
- $ pulumi import newrelic:index/alertPolicyChannel:AlertPolicyChannel foo 123456:3462754:2938324
178
+ $ pulumi import newrelic:index/alertPolicyChannel:AlertPolicyChannel foo 123456:3462754:2938324
177
179
  ```
178
- When importing `newrelic_alert_policy_channel` resource, the attribute `channel_ids`* will be set in your Terraform state. You can import multiple channels as long as those channel IDs are included as part of the import ID hash.
180
+ When importing `newrelic_alert_policy_channel` resource, the attribute `channel_ids`* will be set in your Terraform state. You can import multiple channels as long as those channel IDs are included as part of the import ID hash.
179
181
 
180
182
  :param str resource_name: The name of the resource.
181
183
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -198,6 +200,7 @@ class AlertPolicyChannel(pulumi.CustomResource):
198
200
 
199
201
  The example below will apply multiple alert channels to an existing New Relic alert policy.
200
202
 
203
+ <!--Start PulumiCodeChooser -->
201
204
  ```python
202
205
  import pulumi
203
206
  import pulumi_newrelic as newrelic
@@ -226,15 +229,16 @@ class AlertPolicyChannel(pulumi.CustomResource):
226
229
  slack_channel.id,
227
230
  ])
228
231
  ```
232
+ <!--End PulumiCodeChooser -->
229
233
 
230
234
  ## Import
231
235
 
232
236
  Alert policy channels can be imported using the following notation: `<policyID>:<channelID>:<channelID>`, e.g.
233
237
 
234
238
  ```sh
235
- $ pulumi import newrelic:index/alertPolicyChannel:AlertPolicyChannel foo 123456:3462754:2938324
239
+ $ pulumi import newrelic:index/alertPolicyChannel:AlertPolicyChannel foo 123456:3462754:2938324
236
240
  ```
237
- When importing `newrelic_alert_policy_channel` resource, the attribute `channel_ids`* will be set in your Terraform state. You can import multiple channels as long as those channel IDs are included as part of the import ID hash.
241
+ When importing `newrelic_alert_policy_channel` resource, the attribute `channel_ids`* will be set in your Terraform state. You can import multiple channels as long as those channel IDs are included as part of the import ID hash.
238
242
 
239
243
  :param str resource_name: The name of the resource.
240
244
  :param AlertPolicyChannelArgs args: The arguments to use to populate this resource's properties.
@@ -262,27 +262,17 @@ class ApiAccessKey(pulumi.CustomResource):
262
262
 
263
263
  ## Example Usage
264
264
 
265
- ```python
266
- import pulumi
267
- import pulumi_newrelic as newrelic
268
-
269
- foobar = newrelic.ApiAccessKey("foobar",
270
- account_id=1234567,
271
- ingest_type="LICENSE",
272
- key_type="INGEST",
273
- notes="To be used with service X")
274
- ```
275
-
276
265
  > **WARNING:** Creating 'Ingest - License' and 'Ingest - Browser' keys using this resource is restricted to 'core' or 'full platform' New Relic user accounts. If you've signed up as a 'basic' user with New Relic, or have been added as a 'basic' user to your organization on New Relic, you would not be able to use your account to create 'Ingest' keys. If you see the message `"You do not have permission to create this key"` in the response of the API called by this resource, it could be owing to the aforementioned. For more insights into user account types on New Relic and associated privileges, please check out this [page](https://docs.newrelic.com/docs/accounts/accounts-billing/new-relic-one-user-management/user-type/#api-access).
277
266
 
278
267
  ## Import
279
268
 
280
- Existing API access keys can be imported using a composite ID of `<api_access_key_id>:<key_type>`. `<key_type>` will be either `INGEST` or `USER`.
269
+ Existing API access keys can be imported using a composite ID of `<api_access_key_id>:<key_type>`. `<key_type>`
270
+ will be either `INGEST` or `USER`.
281
271
 
282
272
  For example:
283
273
 
284
274
  ```sh
285
- $ pulumi import newrelic:index/apiAccessKey:ApiAccessKey foobar "1234567:INGEST"
275
+ $ pulumi import newrelic:index/apiAccessKey:ApiAccessKey foobar "1234567:INGEST"
286
276
  ```
287
277
 
288
278
  :param str resource_name: The name of the resource.
@@ -317,27 +307,17 @@ class ApiAccessKey(pulumi.CustomResource):
317
307
 
318
308
  ## Example Usage
319
309
 
320
- ```python
321
- import pulumi
322
- import pulumi_newrelic as newrelic
323
-
324
- foobar = newrelic.ApiAccessKey("foobar",
325
- account_id=1234567,
326
- ingest_type="LICENSE",
327
- key_type="INGEST",
328
- notes="To be used with service X")
329
- ```
330
-
331
310
  > **WARNING:** Creating 'Ingest - License' and 'Ingest - Browser' keys using this resource is restricted to 'core' or 'full platform' New Relic user accounts. If you've signed up as a 'basic' user with New Relic, or have been added as a 'basic' user to your organization on New Relic, you would not be able to use your account to create 'Ingest' keys. If you see the message `"You do not have permission to create this key"` in the response of the API called by this resource, it could be owing to the aforementioned. For more insights into user account types on New Relic and associated privileges, please check out this [page](https://docs.newrelic.com/docs/accounts/accounts-billing/new-relic-one-user-management/user-type/#api-access).
332
311
 
333
312
  ## Import
334
313
 
335
- Existing API access keys can be imported using a composite ID of `<api_access_key_id>:<key_type>`. `<key_type>` will be either `INGEST` or `USER`.
314
+ Existing API access keys can be imported using a composite ID of `<api_access_key_id>:<key_type>`. `<key_type>`
315
+ will be either `INGEST` or `USER`.
336
316
 
337
317
  For example:
338
318
 
339
319
  ```sh
340
- $ pulumi import newrelic:index/apiAccessKey:ApiAccessKey foobar "1234567:INGEST"
320
+ $ pulumi import newrelic:index/apiAccessKey:ApiAccessKey foobar "1234567:INGEST"
341
321
  ```
342
322
 
343
323
  :param str resource_name: The name of the resource.
@@ -236,6 +236,7 @@ class BrowserApplication(pulumi.CustomResource):
236
236
  ## Example Usage
237
237
 
238
238
  Basic usage to create a standalone browser application.
239
+ <!--Start PulumiCodeChooser -->
239
240
  ```python
240
241
  import pulumi
241
242
  import pulumi_newrelic as newrelic
@@ -245,12 +246,13 @@ class BrowserApplication(pulumi.CustomResource):
245
246
  distributed_tracing_enabled=True,
246
247
  loader_type="SPA")
247
248
  ```
249
+ <!--End PulumiCodeChooser -->
248
250
 
249
251
  ## Import
250
252
 
251
253
  Browser applications can be imported using the GUID of the browser application.
252
254
 
253
- bash
255
+ bash
254
256
 
255
257
  ```sh
256
258
  $ pulumi import newrelic:index/browserApplication:BrowserApplication foo <GUID>
@@ -276,6 +278,7 @@ class BrowserApplication(pulumi.CustomResource):
276
278
  ## Example Usage
277
279
 
278
280
  Basic usage to create a standalone browser application.
281
+ <!--Start PulumiCodeChooser -->
279
282
  ```python
280
283
  import pulumi
281
284
  import pulumi_newrelic as newrelic
@@ -285,12 +288,13 @@ class BrowserApplication(pulumi.CustomResource):
285
288
  distributed_tracing_enabled=True,
286
289
  loader_type="SPA")
287
290
  ```
291
+ <!--End PulumiCodeChooser -->
288
292
 
289
293
  ## Import
290
294
 
291
295
  Browser applications can be imported using the GUID of the browser application.
292
296
 
293
- bash
297
+ bash
294
298
 
295
299
  ```sh
296
300
  $ pulumi import newrelic:index/browserApplication:BrowserApplication foo <GUID>
@@ -777,7 +777,7 @@ class AwsGovcloudIntegrations(pulumi.CustomResource):
777
777
 
778
778
  Integrate AWSGovCloud accounts can be imported using the `id`, e.g.
779
779
 
780
- bash
780
+ bash
781
781
 
782
782
  ```sh
783
783
  $ pulumi import newrelic:cloud/awsGovcloudIntegrations:AwsGovcloudIntegrations foo <id>
@@ -831,7 +831,7 @@ class AwsGovcloudIntegrations(pulumi.CustomResource):
831
831
 
832
832
  Integrate AWSGovCloud accounts can be imported using the `id`, e.g.
833
833
 
834
- bash
834
+ bash
835
835
 
836
836
  ```sh
837
837
  $ pulumi import newrelic:cloud/awsGovcloudIntegrations:AwsGovcloudIntegrations foo <id>
@@ -243,6 +243,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
243
243
 
244
244
  ## Example Usage
245
245
 
246
+ <!--Start PulumiCodeChooser -->
246
247
  ```python
247
248
  import pulumi
248
249
  import pulumi_newrelic as newrelic
@@ -254,12 +255,13 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
254
255
  metric_collection_mode="PULL",
255
256
  secret_access_key="secret access key of the aws govcloud account")
256
257
  ```
258
+ <!--End PulumiCodeChooser -->
257
259
 
258
260
  ## Import
259
261
 
260
262
  Linked AWSGovCloud accounts can be imported using the `id`, e.g.
261
263
 
262
- bash
264
+ bash
263
265
 
264
266
  ```sh
265
267
  $ pulumi import newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount foo <id>
@@ -295,6 +297,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
295
297
 
296
298
  ## Example Usage
297
299
 
300
+ <!--Start PulumiCodeChooser -->
298
301
  ```python
299
302
  import pulumi
300
303
  import pulumi_newrelic as newrelic
@@ -306,12 +309,13 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
306
309
  metric_collection_mode="PULL",
307
310
  secret_access_key="secret access key of the aws govcloud account")
308
311
  ```
312
+ <!--End PulumiCodeChooser -->
309
313
 
310
314
  ## Import
311
315
 
312
316
  Linked AWSGovCloud accounts can be imported using the `id`, e.g.
313
317
 
314
- bash
318
+ bash
315
319
 
316
320
  ```sh
317
321
  $ pulumi import newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount foo <id>
@@ -2075,6 +2075,7 @@ class AwsIntegrations(pulumi.CustomResource):
2075
2075
 
2076
2076
  Leave an integration block empty to use its default configuration. You can also use the full example, including the AWS set up, found in our guides.
2077
2077
 
2078
+ <!--Start PulumiCodeChooser -->
2078
2079
  ```python
2079
2080
  import pulumi
2080
2081
  import pulumi_newrelic as newrelic
@@ -2361,12 +2362,13 @@ class AwsIntegrations(pulumi.CustomResource):
2361
2362
  metrics_polling_interval=6000,
2362
2363
  ))
2363
2364
  ```
2365
+ <!--End PulumiCodeChooser -->
2364
2366
 
2365
2367
  ## Import
2366
2368
 
2367
2369
  Linked AWS account integrations can be imported using the `id`, e.g.
2368
2370
 
2369
- bash
2371
+ bash
2370
2372
 
2371
2373
  ```sh
2372
2374
  $ pulumi import newrelic:cloud/awsIntegrations:AwsIntegrations foo <id>
@@ -2511,6 +2513,7 @@ class AwsIntegrations(pulumi.CustomResource):
2511
2513
 
2512
2514
  Leave an integration block empty to use its default configuration. You can also use the full example, including the AWS set up, found in our guides.
2513
2515
 
2516
+ <!--Start PulumiCodeChooser -->
2514
2517
  ```python
2515
2518
  import pulumi
2516
2519
  import pulumi_newrelic as newrelic
@@ -2797,12 +2800,13 @@ class AwsIntegrations(pulumi.CustomResource):
2797
2800
  metrics_polling_interval=6000,
2798
2801
  ))
2799
2802
  ```
2803
+ <!--End PulumiCodeChooser -->
2800
2804
 
2801
2805
  ## Import
2802
2806
 
2803
2807
  Linked AWS account integrations can be imported using the `id`, e.g.
2804
2808
 
2805
- bash
2809
+ bash
2806
2810
 
2807
2811
  ```sh
2808
2812
  $ pulumi import newrelic:cloud/awsIntegrations:AwsIntegrations foo <id>
@@ -179,6 +179,7 @@ class AwsLinkAccount(pulumi.CustomResource):
179
179
 
180
180
  You can also use the full example, including the AWS set up, found in our guides.
181
181
 
182
+ <!--Start PulumiCodeChooser -->
182
183
  ```python
183
184
  import pulumi
184
185
  import pulumi_newrelic as newrelic
@@ -187,12 +188,13 @@ class AwsLinkAccount(pulumi.CustomResource):
187
188
  arn="arn:aws:service:region:account-id:resource-id",
188
189
  metric_collection_mode="PUSH")
189
190
  ```
191
+ <!--End PulumiCodeChooser -->
190
192
 
191
193
  ## Import
192
194
 
193
195
  Linked AWS accounts can be imported using the `id`, e.g.
194
196
 
195
- bash
197
+ bash
196
198
 
197
199
  ```sh
198
200
  $ pulumi import newrelic:cloud/awsLinkAccount:AwsLinkAccount foo <id>
@@ -226,6 +228,7 @@ class AwsLinkAccount(pulumi.CustomResource):
226
228
 
227
229
  You can also use the full example, including the AWS set up, found in our guides.
228
230
 
231
+ <!--Start PulumiCodeChooser -->
229
232
  ```python
230
233
  import pulumi
231
234
  import pulumi_newrelic as newrelic
@@ -234,12 +237,13 @@ class AwsLinkAccount(pulumi.CustomResource):
234
237
  arn="arn:aws:service:region:account-id:resource-id",
235
238
  metric_collection_mode="PUSH")
236
239
  ```
240
+ <!--End PulumiCodeChooser -->
237
241
 
238
242
  ## Import
239
243
 
240
244
  Linked AWS accounts can be imported using the `id`, e.g.
241
245
 
242
- bash
246
+ bash
243
247
 
244
248
  ```sh
245
249
  $ pulumi import newrelic:cloud/awsLinkAccount:AwsLinkAccount foo <id>