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.
Files changed (43) hide show
  1. pulumi_newrelic/_inputs.py +18 -18
  2. pulumi_newrelic/alert_channel.py +69 -69
  3. pulumi_newrelic/alert_condition.py +49 -49
  4. pulumi_newrelic/alert_muting_rule.py +54 -54
  5. pulumi_newrelic/alert_policy.py +16 -16
  6. pulumi_newrelic/alert_policy_channel.py +16 -16
  7. pulumi_newrelic/cloud/aws_govcloud_integrations.py +100 -100
  8. pulumi_newrelic/cloud/aws_integrations.py +798 -798
  9. pulumi_newrelic/cloud/azure_integrations.py +424 -424
  10. pulumi_newrelic/cloud/gcp_integrations.py +288 -288
  11. pulumi_newrelic/entity_tags.py +21 -21
  12. pulumi_newrelic/get_application.py +14 -14
  13. pulumi_newrelic/get_entity.py +4 -4
  14. pulumi_newrelic/get_key_transaction.py +14 -14
  15. pulumi_newrelic/get_notification_destination.py +5 -5
  16. pulumi_newrelic/get_obfuscation_expression.py +10 -10
  17. pulumi_newrelic/get_service_level_alert_helper.py +76 -76
  18. pulumi_newrelic/infra_alert_condition.py +90 -90
  19. pulumi_newrelic/insights/event.py +43 -43
  20. pulumi_newrelic/monitor_downtime.py +52 -52
  21. pulumi_newrelic/notification_channel.py +218 -194
  22. pulumi_newrelic/notification_destination.py +46 -39
  23. pulumi_newrelic/nrql_alert_condition.py +262 -164
  24. pulumi_newrelic/obfuscation_rule.py +15 -15
  25. pulumi_newrelic/one_dashboard.py +10 -10
  26. pulumi_newrelic/one_dashboard_raw.py +75 -75
  27. pulumi_newrelic/outputs.py +14 -14
  28. pulumi_newrelic/plugins/workload.py +101 -101
  29. pulumi_newrelic/pulumi-plugin.json +1 -1
  30. pulumi_newrelic/service_level.py +164 -164
  31. pulumi_newrelic/synthetics/alert_condition.py +32 -32
  32. pulumi_newrelic/synthetics/broken_links_monitor.py +21 -21
  33. pulumi_newrelic/synthetics/cert_check_monitor.py +21 -21
  34. pulumi_newrelic/synthetics/get_private_location.py +6 -6
  35. pulumi_newrelic/synthetics/monitor.py +74 -74
  36. pulumi_newrelic/synthetics/multi_location_alert_condition.py +66 -66
  37. pulumi_newrelic/synthetics/script_monitor.py +58 -58
  38. pulumi_newrelic/synthetics/step_monitor.py +59 -59
  39. pulumi_newrelic/workflow.py +155 -155
  40. {pulumi_newrelic-5.28.0a1723009616.dist-info → pulumi_newrelic-5.29.0.dist-info}/METADATA +1 -1
  41. {pulumi_newrelic-5.28.0a1723009616.dist-info → pulumi_newrelic-5.29.0.dist-info}/RECORD +43 -43
  42. {pulumi_newrelic-5.28.0a1723009616.dist-info → pulumi_newrelic-5.29.0.dist-info}/WHEEL +0 -0
  43. {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[pulumi.InputType['NotificationChannelPropertyArgs']]]]] = None,
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=[newrelic.NotificationChannelPropertyArgs(
300
- key="payload",
301
- value="name: {{ foo }}",
302
- label="Payload Template",
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
- newrelic.NotificationChannelPropertyArgs(
326
- key="description",
327
- value="General description",
328
- ),
329
- newrelic.NotificationChannelPropertyArgs(
330
- key="short_description",
331
- value="Short description",
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
- newrelic.NotificationChannelPropertyArgs(
349
- key="subject",
350
- value="New Subject Title",
351
- ),
352
- newrelic.NotificationChannelPropertyArgs(
353
- key="customDetailsEmail",
354
- value="issue id - {{issueId}}",
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
- newrelic.NotificationChannelPropertyArgs(
372
- key="project",
373
- value="10000",
374
- ),
375
- newrelic.NotificationChannelPropertyArgs(
376
- key="issuetype",
377
- value="10004",
378
- ),
379
- newrelic.NotificationChannelPropertyArgs(
380
- key="description",
381
- value="Issue ID: {{ issueId }}",
382
- ),
383
- newrelic.NotificationChannelPropertyArgs(
384
- key="summary",
385
- value="{{ annotations.title.[0] }}",
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
- newrelic.NotificationChannelPropertyArgs(
403
- key="summary",
404
- value="General summary",
405
- ),
406
- newrelic.NotificationChannelPropertyArgs(
407
- key="service",
408
- label="Service Name",
409
- value="PTQK3FM",
410
- ),
411
- newrelic.NotificationChannelPropertyArgs(
412
- key="email",
413
- value="example@email.com",
414
- ),
415
- newrelic.NotificationChannelPropertyArgs(
416
- key="customDetails",
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
- newrelic.NotificationChannelPropertyArgs(
448
- key="summary",
449
- value="General summary",
450
- ),
451
- newrelic.NotificationChannelPropertyArgs(
452
- key="customDetails",
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
- newrelic.NotificationChannelPropertyArgs(
497
- key="eventSource",
498
- value="aws.partner/mydomain/myaccountid/name",
499
- ),
500
- newrelic.NotificationChannelPropertyArgs(
501
- key="eventContent",
502
- value="{ id: {{ json issueId }} }",
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
- newrelic.NotificationChannelPropertyArgs(
520
- key="channelId",
521
- value="123456",
522
- ),
523
- newrelic.NotificationChannelPropertyArgs(
524
- key="customDetailsSlack",
525
- value="issue id - {{issueId}}",
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=[newrelic.NotificationDestinationPropertyArgs(
546
- key="url",
547
- value="https://webhook.mywebhook.com",
548
- )],
549
- auth_basic=newrelic.NotificationDestinationAuthBasicArgs(
550
- user="username",
551
- password="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=[newrelic.NotificationChannelPropertyArgs(
567
- key="payload",
568
- value="{name: foo}",
569
- label="Payload Template",
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[pulumi.InputType['NotificationChannelPropertyArgs']]]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details.
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=[newrelic.NotificationChannelPropertyArgs(
630
- key="payload",
631
- value="name: {{ foo }}",
632
- label="Payload Template",
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
- newrelic.NotificationChannelPropertyArgs(
656
- key="description",
657
- value="General description",
658
- ),
659
- newrelic.NotificationChannelPropertyArgs(
660
- key="short_description",
661
- value="Short description",
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
- newrelic.NotificationChannelPropertyArgs(
679
- key="subject",
680
- value="New Subject Title",
681
- ),
682
- newrelic.NotificationChannelPropertyArgs(
683
- key="customDetailsEmail",
684
- value="issue id - {{issueId}}",
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
- newrelic.NotificationChannelPropertyArgs(
702
- key="project",
703
- value="10000",
704
- ),
705
- newrelic.NotificationChannelPropertyArgs(
706
- key="issuetype",
707
- value="10004",
708
- ),
709
- newrelic.NotificationChannelPropertyArgs(
710
- key="description",
711
- value="Issue ID: {{ issueId }}",
712
- ),
713
- newrelic.NotificationChannelPropertyArgs(
714
- key="summary",
715
- value="{{ annotations.title.[0] }}",
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
- newrelic.NotificationChannelPropertyArgs(
733
- key="summary",
734
- value="General summary",
735
- ),
736
- newrelic.NotificationChannelPropertyArgs(
737
- key="service",
738
- label="Service Name",
739
- value="PTQK3FM",
740
- ),
741
- newrelic.NotificationChannelPropertyArgs(
742
- key="email",
743
- value="example@email.com",
744
- ),
745
- newrelic.NotificationChannelPropertyArgs(
746
- key="customDetails",
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
- newrelic.NotificationChannelPropertyArgs(
778
- key="summary",
779
- value="General summary",
780
- ),
781
- newrelic.NotificationChannelPropertyArgs(
782
- key="customDetails",
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
- newrelic.NotificationChannelPropertyArgs(
827
- key="eventSource",
828
- value="aws.partner/mydomain/myaccountid/name",
829
- ),
830
- newrelic.NotificationChannelPropertyArgs(
831
- key="eventContent",
832
- value="{ id: {{ json issueId }} }",
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
- newrelic.NotificationChannelPropertyArgs(
850
- key="channelId",
851
- value="123456",
852
- ),
853
- newrelic.NotificationChannelPropertyArgs(
854
- key="customDetailsSlack",
855
- value="issue id - {{issueId}}",
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=[newrelic.NotificationDestinationPropertyArgs(
876
- key="url",
877
- value="https://webhook.mywebhook.com",
878
- )],
879
- auth_basic=newrelic.NotificationDestinationAuthBasicArgs(
880
- user="username",
881
- password="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=[newrelic.NotificationChannelPropertyArgs(
897
- key="payload",
898
- value="{name: foo}",
899
- label="Payload Template",
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[pulumi.InputType['NotificationChannelPropertyArgs']]]]] = None,
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[pulumi.InputType['NotificationChannelPropertyArgs']]]]] = None,
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[pulumi.InputType['NotificationChannelPropertyArgs']]]] properties: A nested block that describes a notification channel property. See Nested property blocks below for details.
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