pulumi-newrelic 5.20.0a1709643785__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.
- 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_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 +64 -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/plugins/application_settings.py +22 -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 +12 -2
- pulumi_newrelic/synthetics/cert_check_monitor.py +12 -2
- pulumi_newrelic/synthetics/get_private_location.py +8 -0
- pulumi_newrelic/synthetics/get_secure_credential.py +4 -0
- pulumi_newrelic/synthetics/monitor.py +20 -2
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +12 -4
- pulumi_newrelic/synthetics/private_location.py +6 -2
- pulumi_newrelic/synthetics/script_monitor.py +20 -2
- pulumi_newrelic/synthetics/secure_credential.py +6 -2
- pulumi_newrelic/synthetics/step_monitor.py +8 -2
- pulumi_newrelic/user.py +4 -0
- pulumi_newrelic/workflow.py +22 -4
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.21.0a1710157101.dist-info/RECORD +89 -0
- pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/top_level.txt +0 -0
@@ -72,6 +72,7 @@ class Event(pulumi.CustomResource):
|
|
72
72
|
|
73
73
|
## Example Usage
|
74
74
|
|
75
|
+
<!--Start PulumiCodeChooser -->
|
75
76
|
```python
|
76
77
|
import pulumi
|
77
78
|
import pulumi_newrelic as newrelic
|
@@ -97,6 +98,8 @@ class Event(pulumi.CustomResource):
|
|
97
98
|
type="MyEvent",
|
98
99
|
)])
|
99
100
|
```
|
101
|
+
<!--End PulumiCodeChooser -->
|
102
|
+
|
100
103
|
## Events
|
101
104
|
|
102
105
|
The `event` mapping supports the following arguments:
|
@@ -128,6 +131,7 @@ class Event(pulumi.CustomResource):
|
|
128
131
|
|
129
132
|
## Example Usage
|
130
133
|
|
134
|
+
<!--Start PulumiCodeChooser -->
|
131
135
|
```python
|
132
136
|
import pulumi
|
133
137
|
import pulumi_newrelic as newrelic
|
@@ -153,6 +157,8 @@ class Event(pulumi.CustomResource):
|
|
153
157
|
type="MyEvent",
|
154
158
|
)])
|
155
159
|
```
|
160
|
+
<!--End PulumiCodeChooser -->
|
161
|
+
|
156
162
|
## Events
|
157
163
|
|
158
164
|
The `event` mapping supports the following arguments:
|
@@ -315,6 +315,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
315
315
|
## Example Usage
|
316
316
|
|
317
317
|
Use this example to create the log parse rule.
|
318
|
+
<!--Start PulumiCodeChooser -->
|
318
319
|
```python
|
319
320
|
import pulumi
|
320
321
|
import pulumi_newrelic as newrelic
|
@@ -326,10 +327,13 @@ class LogParsingRule(pulumi.CustomResource):
|
|
326
327
|
lucene="logtype:linux_messages",
|
327
328
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'")
|
328
329
|
```
|
330
|
+
<!--End PulumiCodeChooser -->
|
331
|
+
|
329
332
|
## Additional Example
|
330
333
|
|
331
334
|
Use this example to validate a grok pattern and create the log parse rule. More
|
332
335
|
information on grok pattern can be found [here](https://docs.newrelic.com/docs/logs/ui-data/parsing/#grok)
|
336
|
+
<!--Start PulumiCodeChooser -->
|
333
337
|
```python
|
334
338
|
import pulumi
|
335
339
|
import pulumi_newrelic as newrelic
|
@@ -344,12 +348,13 @@ class LogParsingRule(pulumi.CustomResource):
|
|
344
348
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'",
|
345
349
|
matched=grok.test_groks[0].matched)
|
346
350
|
```
|
351
|
+
<!--End PulumiCodeChooser -->
|
347
352
|
|
348
353
|
## Import
|
349
354
|
|
350
355
|
New Relic log parsing rule can be imported using the rule ID, e.g.
|
351
356
|
|
352
|
-
|
357
|
+
bash
|
353
358
|
|
354
359
|
```sh
|
355
360
|
$ pulumi import newrelic:index/logParsingRule:LogParsingRule foo 3456789
|
@@ -378,6 +383,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
378
383
|
## Example Usage
|
379
384
|
|
380
385
|
Use this example to create the log parse rule.
|
386
|
+
<!--Start PulumiCodeChooser -->
|
381
387
|
```python
|
382
388
|
import pulumi
|
383
389
|
import pulumi_newrelic as newrelic
|
@@ -389,10 +395,13 @@ class LogParsingRule(pulumi.CustomResource):
|
|
389
395
|
lucene="logtype:linux_messages",
|
390
396
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'")
|
391
397
|
```
|
398
|
+
<!--End PulumiCodeChooser -->
|
399
|
+
|
392
400
|
## Additional Example
|
393
401
|
|
394
402
|
Use this example to validate a grok pattern and create the log parse rule. More
|
395
403
|
information on grok pattern can be found [here](https://docs.newrelic.com/docs/logs/ui-data/parsing/#grok)
|
404
|
+
<!--Start PulumiCodeChooser -->
|
396
405
|
```python
|
397
406
|
import pulumi
|
398
407
|
import pulumi_newrelic as newrelic
|
@@ -407,12 +416,13 @@ class LogParsingRule(pulumi.CustomResource):
|
|
407
416
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'",
|
408
417
|
matched=grok.test_groks[0].matched)
|
409
418
|
```
|
419
|
+
<!--End PulumiCodeChooser -->
|
410
420
|
|
411
421
|
## Import
|
412
422
|
|
413
423
|
New Relic log parsing rule can be imported using the rule ID, e.g.
|
414
424
|
|
415
|
-
|
425
|
+
bash
|
416
426
|
|
417
427
|
```sh
|
418
428
|
$ pulumi import newrelic:index/logParsingRule:LogParsingRule foo 3456789
|
@@ -374,6 +374,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
374
374
|
|
375
375
|
## Example Usage
|
376
376
|
|
377
|
+
<!--Start PulumiCodeChooser -->
|
377
378
|
```python
|
378
379
|
import pulumi
|
379
380
|
import pulumi_newrelic as newrelic
|
@@ -395,13 +396,16 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
395
396
|
start_time="2023-11-30T10:30:00",
|
396
397
|
time_zone="Asia/Kolkata")
|
397
398
|
```
|
399
|
+
<!--End PulumiCodeChooser -->
|
398
400
|
Monitor Downtimes are of four types; **one-time**, **daily**, **weekly** and **monthly**. For more details on each type and the right arguments that go with them, check out the argument reference and examples sections below.
|
401
|
+
|
399
402
|
## Examples
|
400
403
|
|
401
404
|
### One-Time Monitor Downtime
|
402
405
|
|
403
406
|
The below example illustrates creating a **one-time** monitor downtime.
|
404
407
|
|
408
|
+
<!--Start PulumiCodeChooser -->
|
405
409
|
```python
|
406
410
|
import pulumi
|
407
411
|
import pulumi_newrelic as newrelic
|
@@ -416,6 +420,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
416
420
|
start_time="2023-12-04T10:15:00",
|
417
421
|
time_zone="America/Los_Angeles")
|
418
422
|
```
|
423
|
+
<!--End PulumiCodeChooser -->
|
419
424
|
|
420
425
|
### Daily Monitor Downtime
|
421
426
|
|
@@ -423,6 +428,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
423
428
|
|
424
429
|
Note that `end_repeat` has been specified in the configuration; however, this is optional, in accordance with the rules of `end_repeat` specified in the argument reference section above. This example uses the `on_date` nested argument of `end_repeat`, however, the other nested argument, `on_repeat` may also be used _instead_, as you may see in some of the other examples below; though both `on_date` and `on_repeat` cannot be specified together, as they are mutually exclusive.
|
425
430
|
|
431
|
+
<!--Start PulumiCodeChooser -->
|
426
432
|
```python
|
427
433
|
import pulumi
|
428
434
|
import pulumi_newrelic as newrelic
|
@@ -440,6 +446,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
440
446
|
start_time="2023-12-04T18:15:00",
|
441
447
|
time_zone="Asia/Kolkata")
|
442
448
|
```
|
449
|
+
<!--End PulumiCodeChooser -->
|
443
450
|
|
444
451
|
### Weekly Monitor Downtime
|
445
452
|
|
@@ -447,6 +454,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
447
454
|
|
448
455
|
Note that `maintenance_days` has been specified in the configuration as it is required with weekly monitor downtimes; and `end_repeat` has not been specified as it is optional, all in accordance with the rules of these arguments specified in the argument reference section above.
|
449
456
|
|
457
|
+
<!--Start PulumiCodeChooser -->
|
450
458
|
```python
|
451
459
|
import pulumi
|
452
460
|
import pulumi_newrelic as newrelic
|
@@ -465,6 +473,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
465
473
|
start_time="2023-12-04T14:15:00",
|
466
474
|
time_zone="US/Hawaii")
|
467
475
|
```
|
476
|
+
<!--End PulumiCodeChooser -->
|
468
477
|
|
469
478
|
### Monthly Monitor Downtime
|
470
479
|
|
@@ -472,6 +481,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
472
481
|
|
473
482
|
Note that `frequency` has been specified in the configuration as it is required with monthly monitor downtimes, and `end_repeat` has been specified too, though it is optional. `frequency` has been specified with `days_of_week` comprising both of its nested arguments, `ordinal_day_of_month` and `week_day`; all in accordance with the rules of these arguments specified in the argument reference section above.
|
474
483
|
|
484
|
+
<!--Start PulumiCodeChooser -->
|
475
485
|
```python
|
476
486
|
import pulumi
|
477
487
|
import pulumi_newrelic as newrelic
|
@@ -495,7 +505,9 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
495
505
|
start_time="2023-12-04T07:15:00",
|
496
506
|
time_zone="Europe/Dublin")
|
497
507
|
```
|
508
|
+
<!--End PulumiCodeChooser -->
|
498
509
|
However, the `frequency` block in monthly monitor downtimes may also be specified with its other nested argument, `days_of_month`, as shown in the example below - though both `days_of_month` and `days_of_week` cannot be specified together, as they are mutually exclusive.
|
510
|
+
<!--Start PulumiCodeChooser -->
|
499
511
|
```python
|
500
512
|
import pulumi
|
501
513
|
import pulumi_newrelic as newrelic
|
@@ -521,12 +533,13 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
521
533
|
start_time="2023-12-04T07:15:00",
|
522
534
|
time_zone="Europe/Dublin")
|
523
535
|
```
|
536
|
+
<!--End PulumiCodeChooser -->
|
524
537
|
|
525
538
|
## Import
|
526
539
|
|
527
540
|
A monitor downtime can be imported into Terraform configuration using its `guid`, i.e.
|
528
541
|
|
529
|
-
|
542
|
+
bash
|
530
543
|
|
531
544
|
```sh
|
532
545
|
$ pulumi import newrelic:index/monitorDowntime:MonitorDowntime monitor <guid>
|
@@ -558,6 +571,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
558
571
|
|
559
572
|
## Example Usage
|
560
573
|
|
574
|
+
<!--Start PulumiCodeChooser -->
|
561
575
|
```python
|
562
576
|
import pulumi
|
563
577
|
import pulumi_newrelic as newrelic
|
@@ -579,13 +593,16 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
579
593
|
start_time="2023-11-30T10:30:00",
|
580
594
|
time_zone="Asia/Kolkata")
|
581
595
|
```
|
596
|
+
<!--End PulumiCodeChooser -->
|
582
597
|
Monitor Downtimes are of four types; **one-time**, **daily**, **weekly** and **monthly**. For more details on each type and the right arguments that go with them, check out the argument reference and examples sections below.
|
598
|
+
|
583
599
|
## Examples
|
584
600
|
|
585
601
|
### One-Time Monitor Downtime
|
586
602
|
|
587
603
|
The below example illustrates creating a **one-time** monitor downtime.
|
588
604
|
|
605
|
+
<!--Start PulumiCodeChooser -->
|
589
606
|
```python
|
590
607
|
import pulumi
|
591
608
|
import pulumi_newrelic as newrelic
|
@@ -600,6 +617,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
600
617
|
start_time="2023-12-04T10:15:00",
|
601
618
|
time_zone="America/Los_Angeles")
|
602
619
|
```
|
620
|
+
<!--End PulumiCodeChooser -->
|
603
621
|
|
604
622
|
### Daily Monitor Downtime
|
605
623
|
|
@@ -607,6 +625,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
607
625
|
|
608
626
|
Note that `end_repeat` has been specified in the configuration; however, this is optional, in accordance with the rules of `end_repeat` specified in the argument reference section above. This example uses the `on_date` nested argument of `end_repeat`, however, the other nested argument, `on_repeat` may also be used _instead_, as you may see in some of the other examples below; though both `on_date` and `on_repeat` cannot be specified together, as they are mutually exclusive.
|
609
627
|
|
628
|
+
<!--Start PulumiCodeChooser -->
|
610
629
|
```python
|
611
630
|
import pulumi
|
612
631
|
import pulumi_newrelic as newrelic
|
@@ -624,6 +643,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
624
643
|
start_time="2023-12-04T18:15:00",
|
625
644
|
time_zone="Asia/Kolkata")
|
626
645
|
```
|
646
|
+
<!--End PulumiCodeChooser -->
|
627
647
|
|
628
648
|
### Weekly Monitor Downtime
|
629
649
|
|
@@ -631,6 +651,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
631
651
|
|
632
652
|
Note that `maintenance_days` has been specified in the configuration as it is required with weekly monitor downtimes; and `end_repeat` has not been specified as it is optional, all in accordance with the rules of these arguments specified in the argument reference section above.
|
633
653
|
|
654
|
+
<!--Start PulumiCodeChooser -->
|
634
655
|
```python
|
635
656
|
import pulumi
|
636
657
|
import pulumi_newrelic as newrelic
|
@@ -649,6 +670,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
649
670
|
start_time="2023-12-04T14:15:00",
|
650
671
|
time_zone="US/Hawaii")
|
651
672
|
```
|
673
|
+
<!--End PulumiCodeChooser -->
|
652
674
|
|
653
675
|
### Monthly Monitor Downtime
|
654
676
|
|
@@ -656,6 +678,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
656
678
|
|
657
679
|
Note that `frequency` has been specified in the configuration as it is required with monthly monitor downtimes, and `end_repeat` has been specified too, though it is optional. `frequency` has been specified with `days_of_week` comprising both of its nested arguments, `ordinal_day_of_month` and `week_day`; all in accordance with the rules of these arguments specified in the argument reference section above.
|
658
680
|
|
681
|
+
<!--Start PulumiCodeChooser -->
|
659
682
|
```python
|
660
683
|
import pulumi
|
661
684
|
import pulumi_newrelic as newrelic
|
@@ -679,7 +702,9 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
679
702
|
start_time="2023-12-04T07:15:00",
|
680
703
|
time_zone="Europe/Dublin")
|
681
704
|
```
|
705
|
+
<!--End PulumiCodeChooser -->
|
682
706
|
However, the `frequency` block in monthly monitor downtimes may also be specified with its other nested argument, `days_of_month`, as shown in the example below - though both `days_of_month` and `days_of_week` cannot be specified together, as they are mutually exclusive.
|
707
|
+
<!--Start PulumiCodeChooser -->
|
683
708
|
```python
|
684
709
|
import pulumi
|
685
710
|
import pulumi_newrelic as newrelic
|
@@ -705,12 +730,13 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
705
730
|
start_time="2023-12-04T07:15:00",
|
706
731
|
time_zone="Europe/Dublin")
|
707
732
|
```
|
733
|
+
<!--End PulumiCodeChooser -->
|
708
734
|
|
709
735
|
## Import
|
710
736
|
|
711
737
|
A monitor downtime can be imported into Terraform configuration using its `guid`, i.e.
|
712
738
|
|
713
|
-
|
739
|
+
bash
|
714
740
|
|
715
741
|
```sh
|
716
742
|
$ pulumi import newrelic:index/monitorDowntime:MonitorDowntime monitor <guid>
|
@@ -286,6 +286,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
286
286
|
## Example Usage
|
287
287
|
|
288
288
|
##### [Webhook](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#webhook)
|
289
|
+
<!--Start PulumiCodeChooser -->
|
289
290
|
```python
|
290
291
|
import pulumi
|
291
292
|
import pulumi_newrelic as newrelic
|
@@ -301,7 +302,9 @@ class NotificationChannel(pulumi.CustomResource):
|
|
301
302
|
)],
|
302
303
|
type="WEBHOOK")
|
303
304
|
```
|
305
|
+
<!--End PulumiCodeChooser -->
|
304
306
|
See additional examples.
|
307
|
+
|
305
308
|
## Additional Examples
|
306
309
|
|
307
310
|
> **NOTE:** We support all properties. The mentioned properties are just an example.
|
@@ -309,6 +312,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
309
312
|
##### [ServiceNow](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenow)
|
310
313
|
To see the properties’ keys for your account, check ServiceNow incidents table.
|
311
314
|
|
315
|
+
<!--Start PulumiCodeChooser -->
|
312
316
|
```python
|
313
317
|
import pulumi
|
314
318
|
import pulumi_newrelic as newrelic
|
@@ -329,8 +333,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
329
333
|
],
|
330
334
|
type="SERVICENOW_INCIDENTS")
|
331
335
|
```
|
336
|
+
<!--End PulumiCodeChooser -->
|
332
337
|
|
333
338
|
##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email)
|
339
|
+
<!--Start PulumiCodeChooser -->
|
334
340
|
```python
|
335
341
|
import pulumi
|
336
342
|
import pulumi_newrelic as newrelic
|
@@ -351,8 +357,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
351
357
|
],
|
352
358
|
type="EMAIL")
|
353
359
|
```
|
360
|
+
<!--End PulumiCodeChooser -->
|
354
361
|
|
355
362
|
##### [Jira Classic](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#jira)
|
363
|
+
<!--Start PulumiCodeChooser -->
|
356
364
|
```python
|
357
365
|
import pulumi
|
358
366
|
import pulumi_newrelic as newrelic
|
@@ -381,8 +389,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
381
389
|
],
|
382
390
|
type="JIRA_CLASSIC")
|
383
391
|
```
|
392
|
+
<!--End PulumiCodeChooser -->
|
384
393
|
|
385
394
|
##### [PagerDuty with account integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)
|
395
|
+
<!--Start PulumiCodeChooser -->
|
386
396
|
```python
|
387
397
|
import pulumi
|
388
398
|
import pulumi_newrelic as newrelic
|
@@ -426,8 +436,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
426
436
|
],
|
427
437
|
type="PAGERDUTY_ACCOUNT_INTEGRATION")
|
428
438
|
```
|
439
|
+
<!--End PulumiCodeChooser -->
|
429
440
|
|
430
441
|
##### [PagerDuty with service integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)
|
442
|
+
<!--Start PulumiCodeChooser -->
|
431
443
|
```python
|
432
444
|
import pulumi
|
433
445
|
import pulumi_newrelic as newrelic
|
@@ -462,8 +474,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
462
474
|
],
|
463
475
|
type="PAGERDUTY_SERVICE_INTEGRATION")
|
464
476
|
```
|
477
|
+
<!--End PulumiCodeChooser -->
|
465
478
|
|
466
479
|
#### Mobile Push
|
480
|
+
<!--Start PulumiCodeChooser -->
|
467
481
|
```python
|
468
482
|
import pulumi
|
469
483
|
import pulumi_newrelic as newrelic
|
@@ -474,8 +488,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
474
488
|
product="IINT",
|
475
489
|
type="MOBILE_PUSH")
|
476
490
|
```
|
491
|
+
<!--End PulumiCodeChooser -->
|
477
492
|
|
478
493
|
#### [AWS Event Bridge](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#eventBridge)
|
494
|
+
<!--Start PulumiCodeChooser -->
|
479
495
|
```python
|
480
496
|
import pulumi
|
481
497
|
import pulumi_newrelic as newrelic
|
@@ -496,8 +512,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
496
512
|
],
|
497
513
|
type="EVENT_BRIDGE")
|
498
514
|
```
|
515
|
+
<!--End PulumiCodeChooser -->
|
499
516
|
|
500
517
|
#### [SLACK](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#slack)
|
518
|
+
<!--Start PulumiCodeChooser -->
|
501
519
|
```python
|
502
520
|
import pulumi
|
503
521
|
import pulumi_newrelic as newrelic
|
@@ -518,6 +536,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
518
536
|
],
|
519
537
|
type="SLACK")
|
520
538
|
```
|
539
|
+
<!--End PulumiCodeChooser -->
|
521
540
|
|
522
541
|
> **NOTE:** Sensitive data such as channel API keys, service keys, etc are not returned from the underlying API for security reasons and may not be set in state when importing.
|
523
542
|
|
@@ -526,6 +545,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
526
545
|
Create a destination resource and reference that destination to the channel resource:
|
527
546
|
|
528
547
|
### Create a destination
|
548
|
+
<!--Start PulumiCodeChooser -->
|
529
549
|
```python
|
530
550
|
import pulumi
|
531
551
|
import pulumi_newrelic as newrelic
|
@@ -542,8 +562,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
542
562
|
)],
|
543
563
|
type="WEBHOOK")
|
544
564
|
```
|
565
|
+
<!--End PulumiCodeChooser -->
|
545
566
|
|
546
567
|
### Create a channel
|
568
|
+
<!--Start PulumiCodeChooser -->
|
547
569
|
```python
|
548
570
|
import pulumi
|
549
571
|
import pulumi_newrelic as newrelic
|
@@ -559,6 +581,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
559
581
|
label="Payload Template",
|
560
582
|
)])
|
561
583
|
```
|
584
|
+
<!--End PulumiCodeChooser -->
|
562
585
|
|
563
586
|
## Additional Information
|
564
587
|
|
@@ -570,9 +593,9 @@ class NotificationChannel(pulumi.CustomResource):
|
|
570
593
|
|
571
594
|
Channels can only be used by a single workflow, therefore importing them is not particularly useful, because in the UI channels are created upon workflow creation.
|
572
595
|
|
573
|
-
|
596
|
+
Additionally, the channel id isn't available via the UI, and you'd need to look it up with the `channels` query in the NerdGraph API.
|
574
597
|
|
575
|
-
|
598
|
+
That being said, importing is possible using -
|
576
599
|
|
577
600
|
```sh
|
578
601
|
$ pulumi import newrelic:index/notificationChannel:NotificationChannel foo <destination_id>
|
@@ -602,6 +625,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
602
625
|
## Example Usage
|
603
626
|
|
604
627
|
##### [Webhook](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#webhook)
|
628
|
+
<!--Start PulumiCodeChooser -->
|
605
629
|
```python
|
606
630
|
import pulumi
|
607
631
|
import pulumi_newrelic as newrelic
|
@@ -617,7 +641,9 @@ class NotificationChannel(pulumi.CustomResource):
|
|
617
641
|
)],
|
618
642
|
type="WEBHOOK")
|
619
643
|
```
|
644
|
+
<!--End PulumiCodeChooser -->
|
620
645
|
See additional examples.
|
646
|
+
|
621
647
|
## Additional Examples
|
622
648
|
|
623
649
|
> **NOTE:** We support all properties. The mentioned properties are just an example.
|
@@ -625,6 +651,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
625
651
|
##### [ServiceNow](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenow)
|
626
652
|
To see the properties’ keys for your account, check ServiceNow incidents table.
|
627
653
|
|
654
|
+
<!--Start PulumiCodeChooser -->
|
628
655
|
```python
|
629
656
|
import pulumi
|
630
657
|
import pulumi_newrelic as newrelic
|
@@ -645,8 +672,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
645
672
|
],
|
646
673
|
type="SERVICENOW_INCIDENTS")
|
647
674
|
```
|
675
|
+
<!--End PulumiCodeChooser -->
|
648
676
|
|
649
677
|
##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email)
|
678
|
+
<!--Start PulumiCodeChooser -->
|
650
679
|
```python
|
651
680
|
import pulumi
|
652
681
|
import pulumi_newrelic as newrelic
|
@@ -667,8 +696,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
667
696
|
],
|
668
697
|
type="EMAIL")
|
669
698
|
```
|
699
|
+
<!--End PulumiCodeChooser -->
|
670
700
|
|
671
701
|
##### [Jira Classic](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#jira)
|
702
|
+
<!--Start PulumiCodeChooser -->
|
672
703
|
```python
|
673
704
|
import pulumi
|
674
705
|
import pulumi_newrelic as newrelic
|
@@ -697,8 +728,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
697
728
|
],
|
698
729
|
type="JIRA_CLASSIC")
|
699
730
|
```
|
731
|
+
<!--End PulumiCodeChooser -->
|
700
732
|
|
701
733
|
##### [PagerDuty with account integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)
|
734
|
+
<!--Start PulumiCodeChooser -->
|
702
735
|
```python
|
703
736
|
import pulumi
|
704
737
|
import pulumi_newrelic as newrelic
|
@@ -742,8 +775,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
742
775
|
],
|
743
776
|
type="PAGERDUTY_ACCOUNT_INTEGRATION")
|
744
777
|
```
|
778
|
+
<!--End PulumiCodeChooser -->
|
745
779
|
|
746
780
|
##### [PagerDuty with service integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)
|
781
|
+
<!--Start PulumiCodeChooser -->
|
747
782
|
```python
|
748
783
|
import pulumi
|
749
784
|
import pulumi_newrelic as newrelic
|
@@ -778,8 +813,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
778
813
|
],
|
779
814
|
type="PAGERDUTY_SERVICE_INTEGRATION")
|
780
815
|
```
|
816
|
+
<!--End PulumiCodeChooser -->
|
781
817
|
|
782
818
|
#### Mobile Push
|
819
|
+
<!--Start PulumiCodeChooser -->
|
783
820
|
```python
|
784
821
|
import pulumi
|
785
822
|
import pulumi_newrelic as newrelic
|
@@ -790,8 +827,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
790
827
|
product="IINT",
|
791
828
|
type="MOBILE_PUSH")
|
792
829
|
```
|
830
|
+
<!--End PulumiCodeChooser -->
|
793
831
|
|
794
832
|
#### [AWS Event Bridge](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#eventBridge)
|
833
|
+
<!--Start PulumiCodeChooser -->
|
795
834
|
```python
|
796
835
|
import pulumi
|
797
836
|
import pulumi_newrelic as newrelic
|
@@ -812,8 +851,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
812
851
|
],
|
813
852
|
type="EVENT_BRIDGE")
|
814
853
|
```
|
854
|
+
<!--End PulumiCodeChooser -->
|
815
855
|
|
816
856
|
#### [SLACK](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#slack)
|
857
|
+
<!--Start PulumiCodeChooser -->
|
817
858
|
```python
|
818
859
|
import pulumi
|
819
860
|
import pulumi_newrelic as newrelic
|
@@ -834,6 +875,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
834
875
|
],
|
835
876
|
type="SLACK")
|
836
877
|
```
|
878
|
+
<!--End PulumiCodeChooser -->
|
837
879
|
|
838
880
|
> **NOTE:** Sensitive data such as channel API keys, service keys, etc are not returned from the underlying API for security reasons and may not be set in state when importing.
|
839
881
|
|
@@ -842,6 +884,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
842
884
|
Create a destination resource and reference that destination to the channel resource:
|
843
885
|
|
844
886
|
### Create a destination
|
887
|
+
<!--Start PulumiCodeChooser -->
|
845
888
|
```python
|
846
889
|
import pulumi
|
847
890
|
import pulumi_newrelic as newrelic
|
@@ -858,8 +901,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
858
901
|
)],
|
859
902
|
type="WEBHOOK")
|
860
903
|
```
|
904
|
+
<!--End PulumiCodeChooser -->
|
861
905
|
|
862
906
|
### Create a channel
|
907
|
+
<!--Start PulumiCodeChooser -->
|
863
908
|
```python
|
864
909
|
import pulumi
|
865
910
|
import pulumi_newrelic as newrelic
|
@@ -875,6 +920,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
875
920
|
label="Payload Template",
|
876
921
|
)])
|
877
922
|
```
|
923
|
+
<!--End PulumiCodeChooser -->
|
878
924
|
|
879
925
|
## Additional Information
|
880
926
|
|
@@ -886,9 +932,9 @@ class NotificationChannel(pulumi.CustomResource):
|
|
886
932
|
|
887
933
|
Channels can only be used by a single workflow, therefore importing them is not particularly useful, because in the UI channels are created upon workflow creation.
|
888
934
|
|
889
|
-
|
935
|
+
Additionally, the channel id isn't available via the UI, and you'd need to look it up with the `channels` query in the NerdGraph API.
|
890
936
|
|
891
|
-
|
937
|
+
That being said, importing is possible using -
|
892
938
|
|
893
939
|
```sh
|
894
940
|
$ pulumi import newrelic:index/notificationChannel:NotificationChannel foo <destination_id>
|