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.
- pulumi_newrelic/_inputs.py +69 -29
- pulumi_newrelic/account_management.py +6 -2
- pulumi_newrelic/alert_channel.py +34 -2
- pulumi_newrelic/alert_condition.py +26 -2
- pulumi_newrelic/alert_muting_rule.py +6 -2
- pulumi_newrelic/alert_policy.py +22 -4
- pulumi_newrelic/alert_policy_channel.py +8 -4
- pulumi_newrelic/api_access_key.py +6 -26
- pulumi_newrelic/browser_application.py +6 -2
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +2 -2
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +6 -2
- pulumi_newrelic/cloud/aws_integrations.py +6 -2
- pulumi_newrelic/cloud/aws_link_account.py +6 -2
- pulumi_newrelic/cloud/azure_integrations.py +6 -2
- pulumi_newrelic/cloud/azure_link_account.py +6 -2
- pulumi_newrelic/cloud/gcp_integrations.py +6 -2
- pulumi_newrelic/cloud/gcp_link_account.py +6 -2
- pulumi_newrelic/data_partition_rule.py +8 -2
- pulumi_newrelic/entity_tags.py +8 -4
- pulumi_newrelic/events_to_metrics_rule.py +8 -4
- pulumi_newrelic/get_account.py +4 -0
- pulumi_newrelic/get_application.py +4 -0
- pulumi_newrelic/get_authentication_domain.py +4 -0
- pulumi_newrelic/get_cloud_account.py +4 -0
- pulumi_newrelic/get_entity.py +66 -4
- pulumi_newrelic/get_group.py +4 -0
- pulumi_newrelic/get_key_transaction.py +4 -0
- pulumi_newrelic/get_notification_destination.py +14 -1
- pulumi_newrelic/get_obfuscation_expression.py +4 -0
- pulumi_newrelic/get_service_level_alert_helper.py +12 -0
- pulumi_newrelic/get_test_grok_pattern.py +4 -0
- pulumi_newrelic/get_user.py +4 -0
- pulumi_newrelic/group.py +14 -0
- pulumi_newrelic/infra_alert_condition.py +33 -9
- pulumi_newrelic/insights/event.py +6 -0
- pulumi_newrelic/log_parsing_rule.py +12 -2
- pulumi_newrelic/monitor_downtime.py +28 -2
- pulumi_newrelic/notification_channel.py +50 -4
- pulumi_newrelic/notification_destination.py +92 -72
- pulumi_newrelic/nrql_alert_condition.py +28 -4
- pulumi_newrelic/nrql_drop_rule.py +30 -4
- pulumi_newrelic/obfuscation_expression.py +6 -2
- pulumi_newrelic/obfuscation_rule.py +6 -2
- pulumi_newrelic/one_dashboard.py +2 -2
- pulumi_newrelic/one_dashboard_json.py +2 -2
- pulumi_newrelic/one_dashboard_raw.py +6 -0
- pulumi_newrelic/outputs.py +78 -29
- pulumi_newrelic/plugins/_inputs.py +2 -2
- pulumi_newrelic/plugins/application_settings.py +22 -2
- pulumi_newrelic/plugins/outputs.py +2 -2
- pulumi_newrelic/plugins/workload.py +112 -4
- pulumi_newrelic/service_level.py +20 -6
- pulumi_newrelic/synthetics/alert_condition.py +26 -2
- pulumi_newrelic/synthetics/broken_links_monitor.py +19 -23
- pulumi_newrelic/synthetics/cert_check_monitor.py +19 -23
- pulumi_newrelic/synthetics/get_private_location.py +8 -0
- pulumi_newrelic/synthetics/get_secure_credential.py +4 -0
- pulumi_newrelic/synthetics/monitor.py +27 -23
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +12 -4
- pulumi_newrelic/synthetics/private_location.py +6 -2
- pulumi_newrelic/synthetics/script_monitor.py +27 -23
- pulumi_newrelic/synthetics/secure_credential.py +6 -2
- pulumi_newrelic/synthetics/step_monitor.py +15 -23
- pulumi_newrelic/user.py +4 -0
- pulumi_newrelic/workflow.py +22 -4
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.21.0.dist-info/RECORD +89 -0
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.20.0a1709643785.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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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.
|
pulumi_newrelic/alert_policy.py
CHANGED
@@ -181,14 +181,18 @@ 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
|
|
194
198
|
The following arguments are supported:
|
@@ -200,9 +204,11 @@ class AlertPolicy(pulumi.CustomResource):
|
|
200
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.
|
201
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).
|
202
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
|
+
|
203
208
|
## Additional Examples
|
204
209
|
|
205
210
|
##### Provision multiple notification channels and add those channels to a policy
|
211
|
+
<!--Start PulumiCodeChooser -->
|
206
212
|
```python
|
207
213
|
import pulumi
|
208
214
|
import pulumi_newrelic as newrelic
|
@@ -229,8 +235,10 @@ class AlertPolicy(pulumi.CustomResource):
|
|
229
235
|
email_channel.id,
|
230
236
|
])
|
231
237
|
```
|
238
|
+
<!--End PulumiCodeChooser -->
|
232
239
|
|
233
240
|
### Reference existing notification channels and add those channel to a policy
|
241
|
+
<!--Start PulumiCodeChooser -->
|
234
242
|
```python
|
235
243
|
import pulumi
|
236
244
|
import pulumi_newrelic as newrelic
|
@@ -245,6 +253,7 @@ class AlertPolicy(pulumi.CustomResource):
|
|
245
253
|
email_channel.id,
|
246
254
|
])
|
247
255
|
```
|
256
|
+
<!--End PulumiCodeChooser -->
|
248
257
|
|
249
258
|
## Import
|
250
259
|
|
@@ -253,9 +262,9 @@ class AlertPolicy(pulumi.CustomResource):
|
|
253
262
|
Example import:
|
254
263
|
|
255
264
|
```sh
|
256
|
-
|
265
|
+
$ pulumi import newrelic:index/alertPolicy:AlertPolicy foo 23423556:4593020
|
257
266
|
```
|
258
|
-
|
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.
|
259
268
|
|
260
269
|
:param str resource_name: The name of the resource.
|
261
270
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -274,14 +283,18 @@ class AlertPolicy(pulumi.CustomResource):
|
|
274
283
|
Use this resource to create and manage New Relic alert policies.
|
275
284
|
|
276
285
|
## Example Usage
|
286
|
+
|
277
287
|
### Basic Usage
|
278
288
|
|
289
|
+
<!--Start PulumiCodeChooser -->
|
279
290
|
```python
|
280
291
|
import pulumi
|
281
292
|
import pulumi_newrelic as newrelic
|
282
293
|
|
283
294
|
foo = newrelic.AlertPolicy("foo", incident_preference="PER_POLICY")
|
284
295
|
```
|
296
|
+
<!--End PulumiCodeChooser -->
|
297
|
+
|
285
298
|
### Provision multiple notification channels and add those channels to a policy
|
286
299
|
|
287
300
|
The following arguments are supported:
|
@@ -293,9 +306,11 @@ class AlertPolicy(pulumi.CustomResource):
|
|
293
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.
|
294
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).
|
295
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
|
+
|
296
310
|
## Additional Examples
|
297
311
|
|
298
312
|
##### Provision multiple notification channels and add those channels to a policy
|
313
|
+
<!--Start PulumiCodeChooser -->
|
299
314
|
```python
|
300
315
|
import pulumi
|
301
316
|
import pulumi_newrelic as newrelic
|
@@ -322,8 +337,10 @@ class AlertPolicy(pulumi.CustomResource):
|
|
322
337
|
email_channel.id,
|
323
338
|
])
|
324
339
|
```
|
340
|
+
<!--End PulumiCodeChooser -->
|
325
341
|
|
326
342
|
### Reference existing notification channels and add those channel to a policy
|
343
|
+
<!--Start PulumiCodeChooser -->
|
327
344
|
```python
|
328
345
|
import pulumi
|
329
346
|
import pulumi_newrelic as newrelic
|
@@ -338,6 +355,7 @@ class AlertPolicy(pulumi.CustomResource):
|
|
338
355
|
email_channel.id,
|
339
356
|
])
|
340
357
|
```
|
358
|
+
<!--End PulumiCodeChooser -->
|
341
359
|
|
342
360
|
## Import
|
343
361
|
|
@@ -346,9 +364,9 @@ class AlertPolicy(pulumi.CustomResource):
|
|
346
364
|
Example import:
|
347
365
|
|
348
366
|
```sh
|
349
|
-
|
367
|
+
$ pulumi import newrelic:index/alertPolicy:AlertPolicy foo 23423556:4593020
|
350
368
|
```
|
351
|
-
|
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.
|
352
370
|
|
353
371
|
:param str resource_name: The name of the resource.
|
354
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
|
-
|
178
|
+
$ pulumi import newrelic:index/alertPolicyChannel:AlertPolicyChannel foo 123456:3462754:2938324
|
177
179
|
```
|
178
|
-
|
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
|
-
|
239
|
+
$ pulumi import newrelic:index/alertPolicyChannel:AlertPolicyChannel foo 123456:3462754:2938324
|
236
240
|
```
|
237
|
-
|
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>`
|
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
|
-
|
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>`
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
246
|
+
bash
|
243
247
|
|
244
248
|
```sh
|
245
249
|
$ pulumi import newrelic:cloud/awsLinkAccount:AwsLinkAccount foo <id>
|