pulumi-newrelic 5.28.0a1723009616__py3-none-any.whl → 5.29.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 +18 -18
- pulumi_newrelic/alert_channel.py +69 -69
- pulumi_newrelic/alert_condition.py +49 -49
- pulumi_newrelic/alert_muting_rule.py +54 -54
- pulumi_newrelic/alert_policy.py +16 -16
- pulumi_newrelic/alert_policy_channel.py +16 -16
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +100 -100
- pulumi_newrelic/cloud/aws_integrations.py +798 -798
- pulumi_newrelic/cloud/azure_integrations.py +424 -424
- pulumi_newrelic/cloud/gcp_integrations.py +288 -288
- pulumi_newrelic/entity_tags.py +21 -21
- pulumi_newrelic/get_application.py +14 -14
- pulumi_newrelic/get_entity.py +4 -4
- pulumi_newrelic/get_key_transaction.py +14 -14
- pulumi_newrelic/get_notification_destination.py +5 -5
- pulumi_newrelic/get_obfuscation_expression.py +10 -10
- pulumi_newrelic/get_service_level_alert_helper.py +76 -76
- pulumi_newrelic/infra_alert_condition.py +90 -90
- pulumi_newrelic/insights/event.py +43 -43
- pulumi_newrelic/monitor_downtime.py +52 -52
- pulumi_newrelic/notification_channel.py +218 -194
- pulumi_newrelic/notification_destination.py +46 -39
- pulumi_newrelic/nrql_alert_condition.py +262 -164
- pulumi_newrelic/obfuscation_rule.py +15 -15
- pulumi_newrelic/one_dashboard.py +10 -10
- pulumi_newrelic/one_dashboard_raw.py +75 -75
- pulumi_newrelic/outputs.py +14 -14
- pulumi_newrelic/plugins/workload.py +101 -101
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +164 -164
- pulumi_newrelic/synthetics/alert_condition.py +32 -32
- pulumi_newrelic/synthetics/broken_links_monitor.py +21 -21
- pulumi_newrelic/synthetics/cert_check_monitor.py +21 -21
- pulumi_newrelic/synthetics/get_private_location.py +6 -6
- pulumi_newrelic/synthetics/monitor.py +74 -74
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +66 -66
- pulumi_newrelic/synthetics/script_monitor.py +58 -58
- pulumi_newrelic/synthetics/step_monitor.py +59 -59
- pulumi_newrelic/workflow.py +155 -155
- {pulumi_newrelic-5.28.0a1723009616.dist-info → pulumi_newrelic-5.29.0.dist-info}/METADATA +1 -1
- {pulumi_newrelic-5.28.0a1723009616.dist-info → pulumi_newrelic-5.29.0.dist-info}/RECORD +43 -43
- {pulumi_newrelic-5.28.0a1723009616.dist-info → pulumi_newrelic-5.29.0.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.28.0a1723009616.dist-info → pulumi_newrelic-5.29.0.dist-info}/top_level.txt +0 -0
@@ -28,7 +28,7 @@ class NotificationChannelArgs:
|
|
28
28
|
:param pulumi.Input[str] destination_id: The id of the destination.
|
29
29
|
:param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
30
30
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details.
|
31
|
-
:param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
31
|
+
:param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
32
32
|
:param pulumi.Input[str] account_id: Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
|
33
33
|
:param pulumi.Input[bool] active: Indicates whether the channel is active.
|
34
34
|
:param pulumi.Input[str] name: The name of the channel.
|
@@ -84,7 +84,7 @@ class NotificationChannelArgs:
|
|
84
84
|
@pulumi.getter
|
85
85
|
def type(self) -> pulumi.Input[str]:
|
86
86
|
"""
|
87
|
-
The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
87
|
+
The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
88
88
|
"""
|
89
89
|
return pulumi.get(self, "type")
|
90
90
|
|
@@ -149,7 +149,7 @@ class _NotificationChannelState:
|
|
149
149
|
:param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
150
150
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationChannelPropertyArgs']]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details.
|
151
151
|
:param pulumi.Input[str] status: The status of the channel.
|
152
|
-
:param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
152
|
+
:param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
153
153
|
"""
|
154
154
|
if account_id is not None:
|
155
155
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -256,7 +256,7 @@ class _NotificationChannelState:
|
|
256
256
|
@pulumi.getter
|
257
257
|
def type(self) -> Optional[pulumi.Input[str]]:
|
258
258
|
"""
|
259
|
-
The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
259
|
+
The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
260
260
|
"""
|
261
261
|
return pulumi.get(self, "type")
|
262
262
|
|
@@ -275,7 +275,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
275
275
|
destination_id: Optional[pulumi.Input[str]] = None,
|
276
276
|
name: Optional[pulumi.Input[str]] = None,
|
277
277
|
product: Optional[pulumi.Input[str]] = None,
|
278
|
-
properties: Optional[pulumi.Input[Sequence[pulumi.Input[
|
278
|
+
properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationChannelPropertyArgs', 'NotificationChannelPropertyArgsDict']]]]] = None,
|
279
279
|
type: Optional[pulumi.Input[str]] = None,
|
280
280
|
__props__=None):
|
281
281
|
"""
|
@@ -296,11 +296,11 @@ class NotificationChannel(pulumi.CustomResource):
|
|
296
296
|
type="WEBHOOK",
|
297
297
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
298
298
|
product="IINT",
|
299
|
-
properties=[
|
300
|
-
key
|
301
|
-
value
|
302
|
-
label
|
303
|
-
|
299
|
+
properties=[{
|
300
|
+
"key": "payload",
|
301
|
+
"value": "name: {{ foo }}",
|
302
|
+
"label": "Payload Template",
|
303
|
+
}])
|
304
304
|
```
|
305
305
|
See additional examples.
|
306
306
|
|
@@ -322,16 +322,28 @@ class NotificationChannel(pulumi.CustomResource):
|
|
322
322
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
323
323
|
product="IINT",
|
324
324
|
properties=[
|
325
|
-
|
326
|
-
key
|
327
|
-
value
|
328
|
-
|
329
|
-
|
330
|
-
key
|
331
|
-
value
|
332
|
-
|
325
|
+
{
|
326
|
+
"key": "description",
|
327
|
+
"value": "General description",
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"key": "short_description",
|
331
|
+
"value": "Short description",
|
332
|
+
},
|
333
333
|
])
|
334
334
|
```
|
335
|
+
##### [ServiceNowApp](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenowapp)
|
336
|
+
```python
|
337
|
+
import pulumi
|
338
|
+
import pulumi_newrelic as newrelic
|
339
|
+
|
340
|
+
foo = newrelic.NotificationChannel("foo",
|
341
|
+
account_id="12345678",
|
342
|
+
name="servicenow-app-example",
|
343
|
+
type="SERVICE_NOW_APP",
|
344
|
+
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
345
|
+
product="IINT")
|
346
|
+
```
|
335
347
|
|
336
348
|
##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email)
|
337
349
|
```python
|
@@ -345,14 +357,14 @@ class NotificationChannel(pulumi.CustomResource):
|
|
345
357
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
346
358
|
product="IINT",
|
347
359
|
properties=[
|
348
|
-
|
349
|
-
key
|
350
|
-
value
|
351
|
-
|
352
|
-
|
353
|
-
key
|
354
|
-
value
|
355
|
-
|
360
|
+
{
|
361
|
+
"key": "subject",
|
362
|
+
"value": "New Subject Title",
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"key": "customDetailsEmail",
|
366
|
+
"value": "issue id - {{issueId}}",
|
367
|
+
},
|
356
368
|
])
|
357
369
|
```
|
358
370
|
|
@@ -368,22 +380,22 @@ class NotificationChannel(pulumi.CustomResource):
|
|
368
380
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
369
381
|
product="ERROR_TRACKING",
|
370
382
|
properties=[
|
371
|
-
|
372
|
-
key
|
373
|
-
value
|
374
|
-
|
375
|
-
|
376
|
-
key
|
377
|
-
value
|
378
|
-
|
379
|
-
|
380
|
-
key
|
381
|
-
value
|
382
|
-
|
383
|
-
|
384
|
-
key
|
385
|
-
value
|
386
|
-
|
383
|
+
{
|
384
|
+
"key": "project",
|
385
|
+
"value": "10000",
|
386
|
+
},
|
387
|
+
{
|
388
|
+
"key": "issuetype",
|
389
|
+
"value": "10004",
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"key": "description",
|
393
|
+
"value": "Issue ID: {{ issueId }}",
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"key": "summary",
|
397
|
+
"value": "{{ annotations.title.[0] }}",
|
398
|
+
},
|
387
399
|
])
|
388
400
|
```
|
389
401
|
|
@@ -399,22 +411,22 @@ class NotificationChannel(pulumi.CustomResource):
|
|
399
411
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
400
412
|
product="IINT",
|
401
413
|
properties=[
|
402
|
-
|
403
|
-
key
|
404
|
-
value
|
405
|
-
|
406
|
-
|
407
|
-
key
|
408
|
-
label
|
409
|
-
value
|
410
|
-
|
411
|
-
|
412
|
-
key
|
413
|
-
value
|
414
|
-
|
415
|
-
|
416
|
-
key
|
417
|
-
value
|
414
|
+
{
|
415
|
+
"key": "summary",
|
416
|
+
"value": "General summary",
|
417
|
+
},
|
418
|
+
{
|
419
|
+
"key": "service",
|
420
|
+
"label": "Service Name",
|
421
|
+
"value": "PTQK3FM",
|
422
|
+
},
|
423
|
+
{
|
424
|
+
"key": "email",
|
425
|
+
"value": "example@email.com",
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"key": "customDetails",
|
429
|
+
"value": \"\"\"{
|
418
430
|
"id":{{json issueId}},
|
419
431
|
"IssueURL":{{json issuePageUrl}},
|
420
432
|
"NewRelic priority":{{json priority}},
|
@@ -428,7 +440,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
428
440
|
"Workflow Name":{{json workflowName}}
|
429
441
|
}
|
430
442
|
\"\"\",
|
431
|
-
|
443
|
+
},
|
432
444
|
])
|
433
445
|
```
|
434
446
|
|
@@ -444,13 +456,13 @@ class NotificationChannel(pulumi.CustomResource):
|
|
444
456
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
445
457
|
product="IINT",
|
446
458
|
properties=[
|
447
|
-
|
448
|
-
key
|
449
|
-
value
|
450
|
-
|
451
|
-
|
452
|
-
key
|
453
|
-
value
|
459
|
+
{
|
460
|
+
"key": "summary",
|
461
|
+
"value": "General summary",
|
462
|
+
},
|
463
|
+
{
|
464
|
+
"key": "customDetails",
|
465
|
+
"value": \"\"\"{
|
454
466
|
"id":{{json issueId}},
|
455
467
|
"IssueURL":{{json issuePageUrl}},
|
456
468
|
"NewRelic priority":{{json priority}},
|
@@ -464,7 +476,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
464
476
|
"Workflow Name":{{json workflowName}}
|
465
477
|
}
|
466
478
|
\"\"\",
|
467
|
-
|
479
|
+
},
|
468
480
|
])
|
469
481
|
```
|
470
482
|
|
@@ -493,14 +505,14 @@ class NotificationChannel(pulumi.CustomResource):
|
|
493
505
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
494
506
|
product="IINT",
|
495
507
|
properties=[
|
496
|
-
|
497
|
-
key
|
498
|
-
value
|
499
|
-
|
500
|
-
|
501
|
-
key
|
502
|
-
value
|
503
|
-
|
508
|
+
{
|
509
|
+
"key": "eventSource",
|
510
|
+
"value": "aws.partner/mydomain/myaccountid/name",
|
511
|
+
},
|
512
|
+
{
|
513
|
+
"key": "eventContent",
|
514
|
+
"value": "{ id: {{ json issueId }} }",
|
515
|
+
},
|
504
516
|
])
|
505
517
|
```
|
506
518
|
|
@@ -516,14 +528,14 @@ class NotificationChannel(pulumi.CustomResource):
|
|
516
528
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
517
529
|
product="IINT",
|
518
530
|
properties=[
|
519
|
-
|
520
|
-
key
|
521
|
-
value
|
522
|
-
|
523
|
-
|
524
|
-
key
|
525
|
-
value
|
526
|
-
|
531
|
+
{
|
532
|
+
"key": "channelId",
|
533
|
+
"value": "123456",
|
534
|
+
},
|
535
|
+
{
|
536
|
+
"key": "customDetailsSlack",
|
537
|
+
"value": "issue id - {{issueId}}",
|
538
|
+
},
|
527
539
|
])
|
528
540
|
```
|
529
541
|
|
@@ -542,14 +554,14 @@ class NotificationChannel(pulumi.CustomResource):
|
|
542
554
|
account_id="12345678",
|
543
555
|
name="destination-webhook",
|
544
556
|
type="WEBHOOK",
|
545
|
-
properties=[
|
546
|
-
key
|
547
|
-
value
|
548
|
-
|
549
|
-
auth_basic=
|
550
|
-
user
|
551
|
-
password
|
552
|
-
)
|
557
|
+
properties=[{
|
558
|
+
"key": "url",
|
559
|
+
"value": "https://webhook.mywebhook.com",
|
560
|
+
}],
|
561
|
+
auth_basic={
|
562
|
+
"user": "username",
|
563
|
+
"password": "password",
|
564
|
+
})
|
553
565
|
```
|
554
566
|
|
555
567
|
### Create a channel
|
@@ -563,11 +575,11 @@ class NotificationChannel(pulumi.CustomResource):
|
|
563
575
|
type="WEBHOOK",
|
564
576
|
destination_id=webhook_destination["id"],
|
565
577
|
product="IINT",
|
566
|
-
properties=[
|
567
|
-
key
|
568
|
-
value
|
569
|
-
label
|
570
|
-
|
578
|
+
properties=[{
|
579
|
+
"key": "payload",
|
580
|
+
"value": "{name: foo}",
|
581
|
+
"label": "Payload Template",
|
582
|
+
}])
|
571
583
|
```
|
572
584
|
|
573
585
|
## Additional Information
|
@@ -599,8 +611,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
599
611
|
:param pulumi.Input[str] destination_id: The id of the destination.
|
600
612
|
:param pulumi.Input[str] name: The name of the channel.
|
601
613
|
:param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
602
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
603
|
-
:param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
614
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationChannelPropertyArgs', 'NotificationChannelPropertyArgsDict']]]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details.
|
615
|
+
:param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
604
616
|
"""
|
605
617
|
...
|
606
618
|
@overload
|
@@ -626,11 +638,11 @@ class NotificationChannel(pulumi.CustomResource):
|
|
626
638
|
type="WEBHOOK",
|
627
639
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
628
640
|
product="IINT",
|
629
|
-
properties=[
|
630
|
-
key
|
631
|
-
value
|
632
|
-
label
|
633
|
-
|
641
|
+
properties=[{
|
642
|
+
"key": "payload",
|
643
|
+
"value": "name: {{ foo }}",
|
644
|
+
"label": "Payload Template",
|
645
|
+
}])
|
634
646
|
```
|
635
647
|
See additional examples.
|
636
648
|
|
@@ -652,16 +664,28 @@ class NotificationChannel(pulumi.CustomResource):
|
|
652
664
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
653
665
|
product="IINT",
|
654
666
|
properties=[
|
655
|
-
|
656
|
-
key
|
657
|
-
value
|
658
|
-
|
659
|
-
|
660
|
-
key
|
661
|
-
value
|
662
|
-
|
667
|
+
{
|
668
|
+
"key": "description",
|
669
|
+
"value": "General description",
|
670
|
+
},
|
671
|
+
{
|
672
|
+
"key": "short_description",
|
673
|
+
"value": "Short description",
|
674
|
+
},
|
663
675
|
])
|
664
676
|
```
|
677
|
+
##### [ServiceNowApp](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenowapp)
|
678
|
+
```python
|
679
|
+
import pulumi
|
680
|
+
import pulumi_newrelic as newrelic
|
681
|
+
|
682
|
+
foo = newrelic.NotificationChannel("foo",
|
683
|
+
account_id="12345678",
|
684
|
+
name="servicenow-app-example",
|
685
|
+
type="SERVICE_NOW_APP",
|
686
|
+
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
687
|
+
product="IINT")
|
688
|
+
```
|
665
689
|
|
666
690
|
##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email)
|
667
691
|
```python
|
@@ -675,14 +699,14 @@ class NotificationChannel(pulumi.CustomResource):
|
|
675
699
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
676
700
|
product="IINT",
|
677
701
|
properties=[
|
678
|
-
|
679
|
-
key
|
680
|
-
value
|
681
|
-
|
682
|
-
|
683
|
-
key
|
684
|
-
value
|
685
|
-
|
702
|
+
{
|
703
|
+
"key": "subject",
|
704
|
+
"value": "New Subject Title",
|
705
|
+
},
|
706
|
+
{
|
707
|
+
"key": "customDetailsEmail",
|
708
|
+
"value": "issue id - {{issueId}}",
|
709
|
+
},
|
686
710
|
])
|
687
711
|
```
|
688
712
|
|
@@ -698,22 +722,22 @@ class NotificationChannel(pulumi.CustomResource):
|
|
698
722
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
699
723
|
product="ERROR_TRACKING",
|
700
724
|
properties=[
|
701
|
-
|
702
|
-
key
|
703
|
-
value
|
704
|
-
|
705
|
-
|
706
|
-
key
|
707
|
-
value
|
708
|
-
|
709
|
-
|
710
|
-
key
|
711
|
-
value
|
712
|
-
|
713
|
-
|
714
|
-
key
|
715
|
-
value
|
716
|
-
|
725
|
+
{
|
726
|
+
"key": "project",
|
727
|
+
"value": "10000",
|
728
|
+
},
|
729
|
+
{
|
730
|
+
"key": "issuetype",
|
731
|
+
"value": "10004",
|
732
|
+
},
|
733
|
+
{
|
734
|
+
"key": "description",
|
735
|
+
"value": "Issue ID: {{ issueId }}",
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"key": "summary",
|
739
|
+
"value": "{{ annotations.title.[0] }}",
|
740
|
+
},
|
717
741
|
])
|
718
742
|
```
|
719
743
|
|
@@ -729,22 +753,22 @@ class NotificationChannel(pulumi.CustomResource):
|
|
729
753
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
730
754
|
product="IINT",
|
731
755
|
properties=[
|
732
|
-
|
733
|
-
key
|
734
|
-
value
|
735
|
-
|
736
|
-
|
737
|
-
key
|
738
|
-
label
|
739
|
-
value
|
740
|
-
|
741
|
-
|
742
|
-
key
|
743
|
-
value
|
744
|
-
|
745
|
-
|
746
|
-
key
|
747
|
-
value
|
756
|
+
{
|
757
|
+
"key": "summary",
|
758
|
+
"value": "General summary",
|
759
|
+
},
|
760
|
+
{
|
761
|
+
"key": "service",
|
762
|
+
"label": "Service Name",
|
763
|
+
"value": "PTQK3FM",
|
764
|
+
},
|
765
|
+
{
|
766
|
+
"key": "email",
|
767
|
+
"value": "example@email.com",
|
768
|
+
},
|
769
|
+
{
|
770
|
+
"key": "customDetails",
|
771
|
+
"value": \"\"\"{
|
748
772
|
"id":{{json issueId}},
|
749
773
|
"IssueURL":{{json issuePageUrl}},
|
750
774
|
"NewRelic priority":{{json priority}},
|
@@ -758,7 +782,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
758
782
|
"Workflow Name":{{json workflowName}}
|
759
783
|
}
|
760
784
|
\"\"\",
|
761
|
-
|
785
|
+
},
|
762
786
|
])
|
763
787
|
```
|
764
788
|
|
@@ -774,13 +798,13 @@ class NotificationChannel(pulumi.CustomResource):
|
|
774
798
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
775
799
|
product="IINT",
|
776
800
|
properties=[
|
777
|
-
|
778
|
-
key
|
779
|
-
value
|
780
|
-
|
781
|
-
|
782
|
-
key
|
783
|
-
value
|
801
|
+
{
|
802
|
+
"key": "summary",
|
803
|
+
"value": "General summary",
|
804
|
+
},
|
805
|
+
{
|
806
|
+
"key": "customDetails",
|
807
|
+
"value": \"\"\"{
|
784
808
|
"id":{{json issueId}},
|
785
809
|
"IssueURL":{{json issuePageUrl}},
|
786
810
|
"NewRelic priority":{{json priority}},
|
@@ -794,7 +818,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
794
818
|
"Workflow Name":{{json workflowName}}
|
795
819
|
}
|
796
820
|
\"\"\",
|
797
|
-
|
821
|
+
},
|
798
822
|
])
|
799
823
|
```
|
800
824
|
|
@@ -823,14 +847,14 @@ class NotificationChannel(pulumi.CustomResource):
|
|
823
847
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
824
848
|
product="IINT",
|
825
849
|
properties=[
|
826
|
-
|
827
|
-
key
|
828
|
-
value
|
829
|
-
|
830
|
-
|
831
|
-
key
|
832
|
-
value
|
833
|
-
|
850
|
+
{
|
851
|
+
"key": "eventSource",
|
852
|
+
"value": "aws.partner/mydomain/myaccountid/name",
|
853
|
+
},
|
854
|
+
{
|
855
|
+
"key": "eventContent",
|
856
|
+
"value": "{ id: {{ json issueId }} }",
|
857
|
+
},
|
834
858
|
])
|
835
859
|
```
|
836
860
|
|
@@ -846,14 +870,14 @@ class NotificationChannel(pulumi.CustomResource):
|
|
846
870
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
847
871
|
product="IINT",
|
848
872
|
properties=[
|
849
|
-
|
850
|
-
key
|
851
|
-
value
|
852
|
-
|
853
|
-
|
854
|
-
key
|
855
|
-
value
|
856
|
-
|
873
|
+
{
|
874
|
+
"key": "channelId",
|
875
|
+
"value": "123456",
|
876
|
+
},
|
877
|
+
{
|
878
|
+
"key": "customDetailsSlack",
|
879
|
+
"value": "issue id - {{issueId}}",
|
880
|
+
},
|
857
881
|
])
|
858
882
|
```
|
859
883
|
|
@@ -872,14 +896,14 @@ class NotificationChannel(pulumi.CustomResource):
|
|
872
896
|
account_id="12345678",
|
873
897
|
name="destination-webhook",
|
874
898
|
type="WEBHOOK",
|
875
|
-
properties=[
|
876
|
-
key
|
877
|
-
value
|
878
|
-
|
879
|
-
auth_basic=
|
880
|
-
user
|
881
|
-
password
|
882
|
-
)
|
899
|
+
properties=[{
|
900
|
+
"key": "url",
|
901
|
+
"value": "https://webhook.mywebhook.com",
|
902
|
+
}],
|
903
|
+
auth_basic={
|
904
|
+
"user": "username",
|
905
|
+
"password": "password",
|
906
|
+
})
|
883
907
|
```
|
884
908
|
|
885
909
|
### Create a channel
|
@@ -893,11 +917,11 @@ class NotificationChannel(pulumi.CustomResource):
|
|
893
917
|
type="WEBHOOK",
|
894
918
|
destination_id=webhook_destination["id"],
|
895
919
|
product="IINT",
|
896
|
-
properties=[
|
897
|
-
key
|
898
|
-
value
|
899
|
-
label
|
900
|
-
|
920
|
+
properties=[{
|
921
|
+
"key": "payload",
|
922
|
+
"value": "{name: foo}",
|
923
|
+
"label": "Payload Template",
|
924
|
+
}])
|
901
925
|
```
|
902
926
|
|
903
927
|
## Additional Information
|
@@ -942,7 +966,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
942
966
|
destination_id: Optional[pulumi.Input[str]] = None,
|
943
967
|
name: Optional[pulumi.Input[str]] = None,
|
944
968
|
product: Optional[pulumi.Input[str]] = None,
|
945
|
-
properties: Optional[pulumi.Input[Sequence[pulumi.Input[
|
969
|
+
properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationChannelPropertyArgs', 'NotificationChannelPropertyArgsDict']]]]] = None,
|
946
970
|
type: Optional[pulumi.Input[str]] = None,
|
947
971
|
__props__=None):
|
948
972
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
@@ -984,7 +1008,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
984
1008
|
destination_id: Optional[pulumi.Input[str]] = None,
|
985
1009
|
name: Optional[pulumi.Input[str]] = None,
|
986
1010
|
product: Optional[pulumi.Input[str]] = None,
|
987
|
-
properties: Optional[pulumi.Input[Sequence[pulumi.Input[
|
1011
|
+
properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationChannelPropertyArgs', 'NotificationChannelPropertyArgsDict']]]]] = None,
|
988
1012
|
status: Optional[pulumi.Input[str]] = None,
|
989
1013
|
type: Optional[pulumi.Input[str]] = None) -> 'NotificationChannel':
|
990
1014
|
"""
|
@@ -999,9 +1023,9 @@ class NotificationChannel(pulumi.CustomResource):
|
|
999
1023
|
:param pulumi.Input[str] destination_id: The id of the destination.
|
1000
1024
|
:param pulumi.Input[str] name: The name of the channel.
|
1001
1025
|
:param pulumi.Input[str] product: The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
1002
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
1026
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationChannelPropertyArgs', 'NotificationChannelPropertyArgsDict']]]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details.
|
1003
1027
|
:param pulumi.Input[str] status: The status of the channel.
|
1004
|
-
:param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
1028
|
+
:param pulumi.Input[str] type: The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
1005
1029
|
"""
|
1006
1030
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
1007
1031
|
|
@@ -1077,7 +1101,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
1077
1101
|
@pulumi.getter
|
1078
1102
|
def type(self) -> pulumi.Output[str]:
|
1079
1103
|
"""
|
1080
|
-
The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
1104
|
+
The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
1081
1105
|
"""
|
1082
1106
|
return pulumi.get(self, "type")
|
1083
1107
|
|