aws-sdk-ssmcontacts 1.6.0 → 1.7.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ssmcontacts/client.rb +695 -6
- data/lib/aws-sdk-ssmcontacts/types.rb +10 -10
- data/lib/aws-sdk-ssmcontacts.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7851ff1d5f57fdc10b884d98fbda1b8711364def0747d5dcf3566a5d6f5d435
|
|
4
|
+
data.tar.gz: 6351b3eeb5696b538b415f0873db35695e9dcfbc48e82bc30ab51be548042984
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a4616239d2d939895d7919a4a97f81342c9370e53247f65debd74ac34ed512c6711710484b6ae1ac604772465fb785b4a05619d5e339e0a69aecffdc649ee22c
|
|
7
|
+
data.tar.gz: 1da3bb4aaba6ebc6eadd6c98fad98e41f2ad9e638a7d5b95bf5536ee4c20f03245e599d9713256039c19bf4b5e02bd0c7d9f326261ec1e86fc03791b6764d91f
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.7.0
|
|
@@ -369,6 +369,21 @@ module Aws::SSMContacts
|
|
|
369
369
|
#
|
|
370
370
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
371
371
|
#
|
|
372
|
+
#
|
|
373
|
+
# @example Example: To accept a page during and engagement
|
|
374
|
+
#
|
|
375
|
+
# # The following accept-page operation uses an accept code sent to the contact channel to accept a page.
|
|
376
|
+
#
|
|
377
|
+
# resp = client.accept_page({
|
|
378
|
+
# accept_code: "425440",
|
|
379
|
+
# accept_type: "READ",
|
|
380
|
+
# page_id: "arn:aws:ssm-contacts:us-east-2:682428703967:page/akuam/94ea0c7b-56d9-46c3-b84a-a37c8b067ad3",
|
|
381
|
+
# })
|
|
382
|
+
#
|
|
383
|
+
# resp.to_h outputs the following:
|
|
384
|
+
# {
|
|
385
|
+
# }
|
|
386
|
+
#
|
|
372
387
|
# @example Request syntax with placeholder values
|
|
373
388
|
#
|
|
374
389
|
# resp = client.accept_page({
|
|
@@ -401,6 +416,20 @@ module Aws::SSMContacts
|
|
|
401
416
|
#
|
|
402
417
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
403
418
|
#
|
|
419
|
+
#
|
|
420
|
+
# @example Example: Activate a contact's contact channel
|
|
421
|
+
#
|
|
422
|
+
# # The following activate-contact-channel example activates a contact channel and makes it usable as part of an incident.
|
|
423
|
+
#
|
|
424
|
+
# resp = client.activate_contact_channel({
|
|
425
|
+
# activation_code: "466136",
|
|
426
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d",
|
|
427
|
+
# })
|
|
428
|
+
#
|
|
429
|
+
# resp.to_h outputs the following:
|
|
430
|
+
# {
|
|
431
|
+
# }
|
|
432
|
+
#
|
|
404
433
|
# @example Request syntax with placeholder values
|
|
405
434
|
#
|
|
406
435
|
# resp = client.activate_contact_channel({
|
|
@@ -442,7 +471,7 @@ module Aws::SSMContacts
|
|
|
442
471
|
# first Region of your replication set.
|
|
443
472
|
#
|
|
444
473
|
# @option params [String] :idempotency_token
|
|
445
|
-
# A token ensuring that the
|
|
474
|
+
# A token ensuring that the operation is called only once with the
|
|
446
475
|
# specified details.
|
|
447
476
|
#
|
|
448
477
|
# **A suitable default value is auto-generated.** You should normally
|
|
@@ -452,6 +481,28 @@ module Aws::SSMContacts
|
|
|
452
481
|
#
|
|
453
482
|
# * {Types::CreateContactResult#contact_arn #contact_arn} => String
|
|
454
483
|
#
|
|
484
|
+
#
|
|
485
|
+
# @example Example: To create a contact
|
|
486
|
+
#
|
|
487
|
+
# # The following create-contact example creates a contact in your environment with a blank plan. The plan can be updated
|
|
488
|
+
# # after creating contact channels. Use the create-contact-channel operation with the output ARN of this command. After you
|
|
489
|
+
# # have created contact channels for this contact use update-contact to update the plan.
|
|
490
|
+
#
|
|
491
|
+
# resp = client.create_contact({
|
|
492
|
+
# alias: "akuam",
|
|
493
|
+
# display_name: "Akua Mansa",
|
|
494
|
+
# plan: {
|
|
495
|
+
# stages: [
|
|
496
|
+
# ],
|
|
497
|
+
# },
|
|
498
|
+
# type: "PERSONAL",
|
|
499
|
+
# })
|
|
500
|
+
#
|
|
501
|
+
# resp.to_h outputs the following:
|
|
502
|
+
# {
|
|
503
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
504
|
+
# }
|
|
505
|
+
#
|
|
455
506
|
# @example Request syntax with placeholder values
|
|
456
507
|
#
|
|
457
508
|
# resp = client.create_contact({
|
|
@@ -535,7 +586,7 @@ module Aws::SSMContacts
|
|
|
535
586
|
# until it has been activated.
|
|
536
587
|
#
|
|
537
588
|
# @option params [String] :idempotency_token
|
|
538
|
-
# A token ensuring that the
|
|
589
|
+
# A token ensuring that the operation is called only once with the
|
|
539
590
|
# specified details.
|
|
540
591
|
#
|
|
541
592
|
# **A suitable default value is auto-generated.** You should normally
|
|
@@ -545,6 +596,26 @@ module Aws::SSMContacts
|
|
|
545
596
|
#
|
|
546
597
|
# * {Types::CreateContactChannelResult#contact_channel_arn #contact_channel_arn} => String
|
|
547
598
|
#
|
|
599
|
+
#
|
|
600
|
+
# @example Example: To create a contact channel
|
|
601
|
+
#
|
|
602
|
+
# # Creates a contact channel of type SMS for the contact Akua Mansa. Contact channels can be created of type SMS, EMAIL, or
|
|
603
|
+
# # VOICE.
|
|
604
|
+
#
|
|
605
|
+
# resp = client.create_contact_channel({
|
|
606
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam",
|
|
607
|
+
# delivery_address: {
|
|
608
|
+
# simple_address: "+15005550199",
|
|
609
|
+
# },
|
|
610
|
+
# name: "akuas sms-test",
|
|
611
|
+
# type: "SMS",
|
|
612
|
+
# })
|
|
613
|
+
#
|
|
614
|
+
# resp.to_h outputs the following:
|
|
615
|
+
# {
|
|
616
|
+
# contact_channel_arn: "arn:aws:ssm-contacts:us-east-1:111122223333:contact-channel/akuam/02f506b9-ea5d-4764-af89-2daa793ff024",
|
|
617
|
+
# }
|
|
618
|
+
#
|
|
548
619
|
# @example Request syntax with placeholder values
|
|
549
620
|
#
|
|
550
621
|
# resp = client.create_contact_channel({
|
|
@@ -580,6 +651,21 @@ module Aws::SSMContacts
|
|
|
580
651
|
#
|
|
581
652
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
582
653
|
#
|
|
654
|
+
#
|
|
655
|
+
# @example Example: To deactivate a contact channel
|
|
656
|
+
#
|
|
657
|
+
# # The following ``deactivate-contact-channel`` example deactivates a contact channel. Deactivating a contact channel means
|
|
658
|
+
# # the contact channel will no longer be paged during an incident. You can also reactivate a contact channel at any time
|
|
659
|
+
# # using the activate-contact-channel operation.
|
|
660
|
+
#
|
|
661
|
+
# resp = client.deactivate_contact_channel({
|
|
662
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d",
|
|
663
|
+
# })
|
|
664
|
+
#
|
|
665
|
+
# resp.to_h outputs the following:
|
|
666
|
+
# {
|
|
667
|
+
# }
|
|
668
|
+
#
|
|
583
669
|
# @example Request syntax with placeholder values
|
|
584
670
|
#
|
|
585
671
|
# resp = client.deactivate_contact_channel({
|
|
@@ -606,6 +692,20 @@ module Aws::SSMContacts
|
|
|
606
692
|
#
|
|
607
693
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
608
694
|
#
|
|
695
|
+
#
|
|
696
|
+
# @example Example: To delete a contact
|
|
697
|
+
#
|
|
698
|
+
# # The following delete-contact example deletes a contact. The contact will no longer be reachable from any escalation plan
|
|
699
|
+
# # that refers to them.
|
|
700
|
+
#
|
|
701
|
+
# resp = client.delete_contact({
|
|
702
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-1:111122223333:contact/alejr",
|
|
703
|
+
# })
|
|
704
|
+
#
|
|
705
|
+
# resp.to_h outputs the following:
|
|
706
|
+
# {
|
|
707
|
+
# }
|
|
708
|
+
#
|
|
609
709
|
# @example Request syntax with placeholder values
|
|
610
710
|
#
|
|
611
711
|
# resp = client.delete_contact({
|
|
@@ -632,6 +732,20 @@ module Aws::SSMContacts
|
|
|
632
732
|
#
|
|
633
733
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
634
734
|
#
|
|
735
|
+
#
|
|
736
|
+
# @example Example: To delete a contact channel
|
|
737
|
+
#
|
|
738
|
+
# # The following delete-contact-channel example deletes a contact channel. Deleting a contact channel ensures the contact
|
|
739
|
+
# # channel will not be paged during an incident.
|
|
740
|
+
#
|
|
741
|
+
# resp = client.delete_contact_channel({
|
|
742
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-1:111122223333:contact-channel/akuam/13149bad-52ee-45ea-ae1e-45857f78f9b2",
|
|
743
|
+
# })
|
|
744
|
+
#
|
|
745
|
+
# resp.to_h outputs the following:
|
|
746
|
+
# {
|
|
747
|
+
# }
|
|
748
|
+
#
|
|
635
749
|
# @example Request syntax with placeholder values
|
|
636
750
|
#
|
|
637
751
|
# resp = client.delete_contact_channel({
|
|
@@ -668,6 +782,28 @@ module Aws::SSMContacts
|
|
|
668
782
|
# * {Types::DescribeEngagementResult#start_time #start_time} => Time
|
|
669
783
|
# * {Types::DescribeEngagementResult#stop_time #stop_time} => Time
|
|
670
784
|
#
|
|
785
|
+
#
|
|
786
|
+
# @example Example: To describe the details of an engagement
|
|
787
|
+
#
|
|
788
|
+
# # The following describe-engagement example lists the details of an engagement to a contact or escalation plan. The
|
|
789
|
+
# # subject and content are sent to the contact channels.
|
|
790
|
+
#
|
|
791
|
+
# resp = client.describe_engagement({
|
|
792
|
+
# engagement_id: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/example_escalation/69e40ce1-8dbb-4d57-8962-5fbe7fc53356",
|
|
793
|
+
# })
|
|
794
|
+
#
|
|
795
|
+
# resp.to_h outputs the following:
|
|
796
|
+
# {
|
|
797
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/example_escalation",
|
|
798
|
+
# content: "Testing engagements",
|
|
799
|
+
# engagement_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/example_escalation/69e40ce1-8dbb-4d57-8962-5fbe7fc53356",
|
|
800
|
+
# public_content: "Testing engagements",
|
|
801
|
+
# public_subject: "test",
|
|
802
|
+
# sender: "tester",
|
|
803
|
+
# start_time: Time.parse("$2021-05-18T18:25:41.151000+00:00"),
|
|
804
|
+
# subject: "test",
|
|
805
|
+
# }
|
|
806
|
+
#
|
|
671
807
|
# @example Request syntax with placeholder values
|
|
672
808
|
#
|
|
673
809
|
# resp = client.describe_engagement({
|
|
@@ -716,6 +852,31 @@ module Aws::SSMContacts
|
|
|
716
852
|
# * {Types::DescribePageResult#read_time #read_time} => Time
|
|
717
853
|
# * {Types::DescribePageResult#delivery_time #delivery_time} => Time
|
|
718
854
|
#
|
|
855
|
+
#
|
|
856
|
+
# @example Example: To list the details of a page to a contact channel
|
|
857
|
+
#
|
|
858
|
+
# # The following describe-page example lists details of a page to a contact channel. The page will include the subject and
|
|
859
|
+
# # content provided.
|
|
860
|
+
#
|
|
861
|
+
# resp = client.describe_page({
|
|
862
|
+
# page_id: "arn:aws:ssm-contacts:us-east-2:111122223333:page/akuam/ad0052bd-e606-498a-861b-25726292eb93",
|
|
863
|
+
# })
|
|
864
|
+
#
|
|
865
|
+
# resp.to_h outputs the following:
|
|
866
|
+
# {
|
|
867
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
868
|
+
# content: "Testing engagements",
|
|
869
|
+
# delivery_time: Time.parse("2021-05-18T18:43:55.265000+00:00"),
|
|
870
|
+
# engagement_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/akuam/78a29753-3674-4ac5-9f83-0468563567f0",
|
|
871
|
+
# page_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:page/akuam/ad0052bd-e606-498a-861b-25726292eb93",
|
|
872
|
+
# public_content: "Testing engagements",
|
|
873
|
+
# public_subject: "test",
|
|
874
|
+
# read_time: Time.parse("2021-05-18T18:43:55.708000+00:00"),
|
|
875
|
+
# sender: "tester",
|
|
876
|
+
# sent_time: Time.parse("2021-05-18T18:43:29.301000+00:00"),
|
|
877
|
+
# subject: "test",
|
|
878
|
+
# }
|
|
879
|
+
#
|
|
719
880
|
# @example Request syntax with placeholder values
|
|
720
881
|
#
|
|
721
882
|
# resp = client.describe_page({
|
|
@@ -759,6 +920,113 @@ module Aws::SSMContacts
|
|
|
759
920
|
# * {Types::GetContactResult#type #type} => String
|
|
760
921
|
# * {Types::GetContactResult#plan #plan} => Types::Plan
|
|
761
922
|
#
|
|
923
|
+
#
|
|
924
|
+
# @example Example: Example 1: To describe a contact plan
|
|
925
|
+
#
|
|
926
|
+
# # The following get-contact example describes a contact.
|
|
927
|
+
#
|
|
928
|
+
# resp = client.get_contact({
|
|
929
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
930
|
+
# })
|
|
931
|
+
#
|
|
932
|
+
# resp.to_h outputs the following:
|
|
933
|
+
# {
|
|
934
|
+
# alias: "akuam",
|
|
935
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
936
|
+
# display_name: "Akua Mansa",
|
|
937
|
+
# plan: {
|
|
938
|
+
# stages: [
|
|
939
|
+
# {
|
|
940
|
+
# duration_in_minutes: 5,
|
|
941
|
+
# targets: [
|
|
942
|
+
# {
|
|
943
|
+
# channel_target_info: {
|
|
944
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/beb25840-5ac8-4644-95cc-7a8de390fa65",
|
|
945
|
+
# retry_interval_in_minutes: 1,
|
|
946
|
+
# },
|
|
947
|
+
# },
|
|
948
|
+
# ],
|
|
949
|
+
# },
|
|
950
|
+
# {
|
|
951
|
+
# duration_in_minutes: 5,
|
|
952
|
+
# targets: [
|
|
953
|
+
# {
|
|
954
|
+
# channel_target_info: {
|
|
955
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/49f3c24d-5f9f-4638-ae25-3f49e04229ad",
|
|
956
|
+
# retry_interval_in_minutes: 1,
|
|
957
|
+
# },
|
|
958
|
+
# },
|
|
959
|
+
# ],
|
|
960
|
+
# },
|
|
961
|
+
# {
|
|
962
|
+
# duration_in_minutes: 5,
|
|
963
|
+
# targets: [
|
|
964
|
+
# {
|
|
965
|
+
# channel_target_info: {
|
|
966
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/77d4f447-f619-4954-afff-85551e369c2a",
|
|
967
|
+
# retry_interval_in_minutes: 1,
|
|
968
|
+
# },
|
|
969
|
+
# },
|
|
970
|
+
# ],
|
|
971
|
+
# },
|
|
972
|
+
# ],
|
|
973
|
+
# },
|
|
974
|
+
# type: "PERSONAL",
|
|
975
|
+
# }
|
|
976
|
+
#
|
|
977
|
+
# @example Example: Example 2: To describe an escalation plan
|
|
978
|
+
#
|
|
979
|
+
# # The following get-contact example describes an escalation plan.
|
|
980
|
+
#
|
|
981
|
+
# resp = client.get_contact({
|
|
982
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/example_escalation",
|
|
983
|
+
# })
|
|
984
|
+
#
|
|
985
|
+
# resp.to_h outputs the following:
|
|
986
|
+
# {
|
|
987
|
+
# alias: "example_escalation",
|
|
988
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/example_escalation",
|
|
989
|
+
# display_name: "Example Escalation Plan",
|
|
990
|
+
# plan: {
|
|
991
|
+
# stages: [
|
|
992
|
+
# {
|
|
993
|
+
# duration_in_minutes: 5,
|
|
994
|
+
# targets: [
|
|
995
|
+
# {
|
|
996
|
+
# contact_target_info: {
|
|
997
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
998
|
+
# is_essential: true,
|
|
999
|
+
# },
|
|
1000
|
+
# },
|
|
1001
|
+
# ],
|
|
1002
|
+
# },
|
|
1003
|
+
# {
|
|
1004
|
+
# duration_in_minutes: 5,
|
|
1005
|
+
# targets: [
|
|
1006
|
+
# {
|
|
1007
|
+
# contact_target_info: {
|
|
1008
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/alejr",
|
|
1009
|
+
# is_essential: false,
|
|
1010
|
+
# },
|
|
1011
|
+
# },
|
|
1012
|
+
# ],
|
|
1013
|
+
# },
|
|
1014
|
+
# {
|
|
1015
|
+
# duration_in_minutes: 0,
|
|
1016
|
+
# targets: [
|
|
1017
|
+
# {
|
|
1018
|
+
# contact_target_info: {
|
|
1019
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/anasi",
|
|
1020
|
+
# is_essential: false,
|
|
1021
|
+
# },
|
|
1022
|
+
# },
|
|
1023
|
+
# ],
|
|
1024
|
+
# },
|
|
1025
|
+
# ],
|
|
1026
|
+
# },
|
|
1027
|
+
# type: "ESCALATION",
|
|
1028
|
+
# }
|
|
1029
|
+
#
|
|
762
1030
|
# @example Request syntax with placeholder values
|
|
763
1031
|
#
|
|
764
1032
|
# resp = client.get_contact({
|
|
@@ -803,6 +1071,27 @@ module Aws::SSMContacts
|
|
|
803
1071
|
# * {Types::GetContactChannelResult#delivery_address #delivery_address} => Types::ContactChannelAddress
|
|
804
1072
|
# * {Types::GetContactChannelResult#activation_status #activation_status} => String
|
|
805
1073
|
#
|
|
1074
|
+
#
|
|
1075
|
+
# @example Example: To list the details of a contact channel
|
|
1076
|
+
#
|
|
1077
|
+
# # The following get-contact-channel example lists the details of a contact channel.
|
|
1078
|
+
#
|
|
1079
|
+
# resp = client.get_contact_channel({
|
|
1080
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d",
|
|
1081
|
+
# })
|
|
1082
|
+
#
|
|
1083
|
+
# resp.to_h outputs the following:
|
|
1084
|
+
# {
|
|
1085
|
+
# activation_status: "ACTIVATED",
|
|
1086
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
1087
|
+
# contact_channel_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d",
|
|
1088
|
+
# delivery_address: {
|
|
1089
|
+
# simple_address: "+15005550199",
|
|
1090
|
+
# },
|
|
1091
|
+
# name: "akuas sms",
|
|
1092
|
+
# type: "SMS",
|
|
1093
|
+
# }
|
|
1094
|
+
#
|
|
806
1095
|
# @example Request syntax with placeholder values
|
|
807
1096
|
#
|
|
808
1097
|
# resp = client.get_contact_channel({
|
|
@@ -838,6 +1127,21 @@ module Aws::SSMContacts
|
|
|
838
1127
|
# * {Types::GetContactPolicyResult#contact_arn #contact_arn} => String
|
|
839
1128
|
# * {Types::GetContactPolicyResult#policy #policy} => String
|
|
840
1129
|
#
|
|
1130
|
+
#
|
|
1131
|
+
# @example Example: To list the resource policies of a contact
|
|
1132
|
+
#
|
|
1133
|
+
# # The following get-contact-policy example lists the resource policies associated with the specified contact.
|
|
1134
|
+
#
|
|
1135
|
+
# resp = client.get_contact_policy({
|
|
1136
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam",
|
|
1137
|
+
# })
|
|
1138
|
+
#
|
|
1139
|
+
# resp.to_h outputs the following:
|
|
1140
|
+
# {
|
|
1141
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam",
|
|
1142
|
+
# policy: "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"SharePolicyForDocumentationDralia\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"222233334444\"},\"Action\":[\"ssm-contacts:GetContact\",\"ssm-contacts:StartEngagement\",\"ssm-contacts:DescribeEngagement\",\"ssm-contacts:ListPagesByEngagement\",\"ssm-contacts:StopEngagement\"],\"Resource\":[\"arn:aws:ssm-contacts:*:111122223333:contact/akuam\",\"arn:aws:ssm-contacts:*:111122223333:engagement/akuam/*\"]}]}",
|
|
1143
|
+
# }
|
|
1144
|
+
#
|
|
841
1145
|
# @example Request syntax with placeholder values
|
|
842
1146
|
#
|
|
843
1147
|
# resp = client.get_contact_policy({
|
|
@@ -876,6 +1180,31 @@ module Aws::SSMContacts
|
|
|
876
1180
|
#
|
|
877
1181
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
878
1182
|
#
|
|
1183
|
+
#
|
|
1184
|
+
# @example Example: To list the contact channels of a contact
|
|
1185
|
+
#
|
|
1186
|
+
# # The following list-contact-channels example lists the available contact channels of the specified contact.
|
|
1187
|
+
#
|
|
1188
|
+
# resp = client.list_contact_channels({
|
|
1189
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
1190
|
+
# })
|
|
1191
|
+
#
|
|
1192
|
+
# resp.to_h outputs the following:
|
|
1193
|
+
# {
|
|
1194
|
+
# contact_channels: [
|
|
1195
|
+
# {
|
|
1196
|
+
# activation_status: "ACTIVATED",
|
|
1197
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
1198
|
+
# contact_channel_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d",
|
|
1199
|
+
# delivery_address: {
|
|
1200
|
+
# simple_address: "+15005550100",
|
|
1201
|
+
# },
|
|
1202
|
+
# name: "akuas sms",
|
|
1203
|
+
# type: "SMS",
|
|
1204
|
+
# },
|
|
1205
|
+
# ],
|
|
1206
|
+
# }
|
|
1207
|
+
#
|
|
879
1208
|
# @example Request syntax with placeholder values
|
|
880
1209
|
#
|
|
881
1210
|
# resp = client.list_contact_channels({
|
|
@@ -928,6 +1257,44 @@ module Aws::SSMContacts
|
|
|
928
1257
|
#
|
|
929
1258
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
930
1259
|
#
|
|
1260
|
+
#
|
|
1261
|
+
# @example Example: To list all escalation plans and contacts
|
|
1262
|
+
#
|
|
1263
|
+
# # The following list-contacts example lists the contacts and escalation plans in your account.
|
|
1264
|
+
#
|
|
1265
|
+
# resp = client.list_contacts({
|
|
1266
|
+
# })
|
|
1267
|
+
#
|
|
1268
|
+
# resp.to_h outputs the following:
|
|
1269
|
+
# {
|
|
1270
|
+
# contacts: [
|
|
1271
|
+
# {
|
|
1272
|
+
# alias: "akuam",
|
|
1273
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
1274
|
+
# display_name: "Akua Mansa",
|
|
1275
|
+
# type: "PERSONAL",
|
|
1276
|
+
# },
|
|
1277
|
+
# {
|
|
1278
|
+
# alias: "alejr",
|
|
1279
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/alejr",
|
|
1280
|
+
# display_name: "Alejandro Rosalez",
|
|
1281
|
+
# type: "PERSONAL",
|
|
1282
|
+
# },
|
|
1283
|
+
# {
|
|
1284
|
+
# alias: "anasi",
|
|
1285
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/anasi",
|
|
1286
|
+
# display_name: "Ana Carolina Silva",
|
|
1287
|
+
# type: "PERSONAL",
|
|
1288
|
+
# },
|
|
1289
|
+
# {
|
|
1290
|
+
# alias: "example_escalation",
|
|
1291
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/example_escalation",
|
|
1292
|
+
# display_name: "Example Escalation",
|
|
1293
|
+
# type: "ESCALATION",
|
|
1294
|
+
# },
|
|
1295
|
+
# ],
|
|
1296
|
+
# }
|
|
1297
|
+
#
|
|
931
1298
|
# @example Request syntax with placeholder values
|
|
932
1299
|
#
|
|
933
1300
|
# resp = client.list_contacts({
|
|
@@ -977,6 +1344,45 @@ module Aws::SSMContacts
|
|
|
977
1344
|
#
|
|
978
1345
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
979
1346
|
#
|
|
1347
|
+
#
|
|
1348
|
+
# @example Example: To list all engagements
|
|
1349
|
+
#
|
|
1350
|
+
# # The following list-engagements example lists engagements to escalation plans and contacts. You can also list engagements
|
|
1351
|
+
# # for a single incident.
|
|
1352
|
+
#
|
|
1353
|
+
# resp = client.list_engagements({
|
|
1354
|
+
# })
|
|
1355
|
+
#
|
|
1356
|
+
# resp.to_h outputs the following:
|
|
1357
|
+
# {
|
|
1358
|
+
# engagements: [
|
|
1359
|
+
# {
|
|
1360
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
1361
|
+
# engagement_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/akuam/91792571-0b53-4821-9f73-d25d13d9e529",
|
|
1362
|
+
# sender: "cli",
|
|
1363
|
+
# start_time: Time.parse("2021-05-18T20:37:50.300000+00:00"),
|
|
1364
|
+
# },
|
|
1365
|
+
# {
|
|
1366
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
1367
|
+
# engagement_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/akuam/78a29753-3674-4ac5-9f83-0468563567f0",
|
|
1368
|
+
# sender: "cli",
|
|
1369
|
+
# start_time: Time.parse("2021-05-18T18:40:26.666000+00:00"),
|
|
1370
|
+
# },
|
|
1371
|
+
# {
|
|
1372
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/example_escalation",
|
|
1373
|
+
# engagement_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/example_escalation/69e40ce1-8dbb-4d57-8962-5fbe7fc53356",
|
|
1374
|
+
# sender: "cli",
|
|
1375
|
+
# start_time: Time.parse("2021-05-18T18:25:41.151000+00:00"),
|
|
1376
|
+
# },
|
|
1377
|
+
# {
|
|
1378
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
1379
|
+
# engagement_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/akuam/607ced0e-e8fa-4ea7-8958-a237b8803f8f",
|
|
1380
|
+
# sender: "cli",
|
|
1381
|
+
# start_time: Time.parse("2021-05-18T18:20:58.093000+00:00"),
|
|
1382
|
+
# },
|
|
1383
|
+
# ],
|
|
1384
|
+
# }
|
|
1385
|
+
#
|
|
980
1386
|
# @example Request syntax with placeholder values
|
|
981
1387
|
#
|
|
982
1388
|
# resp = client.list_engagements({
|
|
@@ -1029,6 +1435,39 @@ module Aws::SSMContacts
|
|
|
1029
1435
|
#
|
|
1030
1436
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1031
1437
|
#
|
|
1438
|
+
#
|
|
1439
|
+
# @example Example: To list page receipts
|
|
1440
|
+
#
|
|
1441
|
+
# # The following command-name example lists whether a page was received or not by a contact.
|
|
1442
|
+
#
|
|
1443
|
+
# resp = client.list_page_receipts({
|
|
1444
|
+
# page_id: "arn:aws:ssm-contacts:us-east-2:111122223333:page/akuam/94ea0c7b-56d9-46c3-b84a-a37c8b067ad3",
|
|
1445
|
+
# })
|
|
1446
|
+
#
|
|
1447
|
+
# resp.to_h outputs the following:
|
|
1448
|
+
# {
|
|
1449
|
+
# receipts: [
|
|
1450
|
+
# {
|
|
1451
|
+
# contact_channel_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d",
|
|
1452
|
+
# receipt_info: "425440",
|
|
1453
|
+
# receipt_time: Time.parse("2021-05-18T20:42:57.485000+00:00"),
|
|
1454
|
+
# receipt_type: "DELIVERED",
|
|
1455
|
+
# },
|
|
1456
|
+
# {
|
|
1457
|
+
# contact_channel_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d",
|
|
1458
|
+
# receipt_info: "425440",
|
|
1459
|
+
# receipt_time: Time.parse("2021-05-18T20:42:57.907000+00:00"),
|
|
1460
|
+
# receipt_type: "READ",
|
|
1461
|
+
# },
|
|
1462
|
+
# {
|
|
1463
|
+
# contact_channel_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d",
|
|
1464
|
+
# receipt_info: "SM6656c19132f1465f9c9c1123a5dde7c9",
|
|
1465
|
+
# receipt_time: Time.parse("2021-05-18T20:40:52.962000+00:00"),
|
|
1466
|
+
# receipt_type: "SENT",
|
|
1467
|
+
# },
|
|
1468
|
+
# ],
|
|
1469
|
+
# }
|
|
1470
|
+
#
|
|
1032
1471
|
# @example Request syntax with placeholder values
|
|
1033
1472
|
#
|
|
1034
1473
|
# resp = client.list_page_receipts({
|
|
@@ -1075,6 +1514,30 @@ module Aws::SSMContacts
|
|
|
1075
1514
|
#
|
|
1076
1515
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1077
1516
|
#
|
|
1517
|
+
#
|
|
1518
|
+
# @example Example: To list pages by contact
|
|
1519
|
+
#
|
|
1520
|
+
# # The following list-pages-by-contact example lists all pages to the specified contact.
|
|
1521
|
+
#
|
|
1522
|
+
# resp = client.list_pages_by_contact({
|
|
1523
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
1524
|
+
# })
|
|
1525
|
+
#
|
|
1526
|
+
# resp.to_h outputs the following:
|
|
1527
|
+
# {
|
|
1528
|
+
# pages: [
|
|
1529
|
+
# {
|
|
1530
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
1531
|
+
# delivery_time: Time.parse("2021-05-18T18:43:55.265000+00:00"),
|
|
1532
|
+
# engagement_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/akuam/78a29753-3674-4ac5-9f83-0468563567f0",
|
|
1533
|
+
# page_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:page/akuam/ad0052bd-e606-498a-861b-25726292eb93",
|
|
1534
|
+
# read_time: Time.parse("2021-05-18T18:43:55.708000+00:00"),
|
|
1535
|
+
# sender: "cli",
|
|
1536
|
+
# sent_time: Time.parse("2021-05-18T18:43:29.301000+00:00"),
|
|
1537
|
+
# },
|
|
1538
|
+
# ],
|
|
1539
|
+
# }
|
|
1540
|
+
#
|
|
1078
1541
|
# @example Request syntax with placeholder values
|
|
1079
1542
|
#
|
|
1080
1543
|
# resp = client.list_pages_by_contact({
|
|
@@ -1125,6 +1588,28 @@ module Aws::SSMContacts
|
|
|
1125
1588
|
#
|
|
1126
1589
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1127
1590
|
#
|
|
1591
|
+
#
|
|
1592
|
+
# @example Example: To list pages to contact channels started from an engagement.
|
|
1593
|
+
#
|
|
1594
|
+
# # The following list-pages-by-engagement example lists the pages that occurred while engaging the defined engagement plan.
|
|
1595
|
+
#
|
|
1596
|
+
# resp = client.list_pages_by_engagement({
|
|
1597
|
+
# engagement_id: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/akuam/78a29753-3674-4ac5-9f83-0468563567f0",
|
|
1598
|
+
# })
|
|
1599
|
+
#
|
|
1600
|
+
# resp.to_h outputs the following:
|
|
1601
|
+
# {
|
|
1602
|
+
# pages: [
|
|
1603
|
+
# {
|
|
1604
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
1605
|
+
# engagement_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/akuam/78a29753-3674-4ac5-9f83-0468563567f0",
|
|
1606
|
+
# page_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:page/akuam/ad0052bd-e606-498a-861b-25726292eb93",
|
|
1607
|
+
# sender: "cli",
|
|
1608
|
+
# sent_time: Time.parse("2021-05-18T18:40:27.245000+00:00"),
|
|
1609
|
+
# },
|
|
1610
|
+
# ],
|
|
1611
|
+
# }
|
|
1612
|
+
#
|
|
1128
1613
|
# @example Request syntax with placeholder values
|
|
1129
1614
|
#
|
|
1130
1615
|
# resp = client.list_pages_by_engagement({
|
|
@@ -1164,6 +1649,25 @@ module Aws::SSMContacts
|
|
|
1164
1649
|
#
|
|
1165
1650
|
# * {Types::ListTagsForResourceResult#tags #tags} => Array<Types::Tag>
|
|
1166
1651
|
#
|
|
1652
|
+
#
|
|
1653
|
+
# @example Example: To list tags for a contact
|
|
1654
|
+
#
|
|
1655
|
+
# # The following list-tags-for-resource example lists the tags of the specified contact.
|
|
1656
|
+
#
|
|
1657
|
+
# resp = client.list_tags_for_resource({
|
|
1658
|
+
# resource_arn: "arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam",
|
|
1659
|
+
# })
|
|
1660
|
+
#
|
|
1661
|
+
# resp.to_h outputs the following:
|
|
1662
|
+
# {
|
|
1663
|
+
# tags: [
|
|
1664
|
+
# {
|
|
1665
|
+
# key: "group1",
|
|
1666
|
+
# value: "1",
|
|
1667
|
+
# },
|
|
1668
|
+
# ],
|
|
1669
|
+
# }
|
|
1670
|
+
#
|
|
1167
1671
|
# @example Request syntax with placeholder values
|
|
1168
1672
|
#
|
|
1169
1673
|
# resp = client.list_tags_for_resource({
|
|
@@ -1195,6 +1699,21 @@ module Aws::SSMContacts
|
|
|
1195
1699
|
#
|
|
1196
1700
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1197
1701
|
#
|
|
1702
|
+
#
|
|
1703
|
+
# @example Example: To share a contact and engagements
|
|
1704
|
+
#
|
|
1705
|
+
# # The following put-contact-policy example adds a resource policy to the contact Akua that shares the contact and related
|
|
1706
|
+
# # engagements with the principal.
|
|
1707
|
+
#
|
|
1708
|
+
# resp = client.put_contact_policy({
|
|
1709
|
+
# contact_arn: "arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam",
|
|
1710
|
+
# policy: "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"ExampleResourcePolicy\",\"Action\":[\"ssm-contacts:GetContact\",\"ssm-contacts:StartEngagement\",\"ssm-contacts:DescribeEngagement\",\"ssm-contacts:ListPagesByEngagement\",\"ssm-contacts:StopEngagement\"],\"Principal\":{\"AWS\":\"222233334444\"},\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:ssm-contacts:*:111122223333:contact/akuam\",\"arn:aws:ssm-contacts:*:111122223333:engagement/akuam/*\"]}]}",
|
|
1711
|
+
# })
|
|
1712
|
+
#
|
|
1713
|
+
# resp.to_h outputs the following:
|
|
1714
|
+
# {
|
|
1715
|
+
# }
|
|
1716
|
+
#
|
|
1198
1717
|
# @example Request syntax with placeholder values
|
|
1199
1718
|
#
|
|
1200
1719
|
# resp = client.put_contact_policy({
|
|
@@ -1213,7 +1732,7 @@ module Aws::SSMContacts
|
|
|
1213
1732
|
|
|
1214
1733
|
# Sends an activation code to a contact channel. The contact can use
|
|
1215
1734
|
# this code to activate the contact channel in the console or with the
|
|
1216
|
-
# `ActivateChannel`
|
|
1735
|
+
# `ActivateChannel` operation. Incident Manager can't engage a contact
|
|
1217
1736
|
# channel until it has been activated.
|
|
1218
1737
|
#
|
|
1219
1738
|
# @option params [required, String] :contact_channel_id
|
|
@@ -1221,6 +1740,19 @@ module Aws::SSMContacts
|
|
|
1221
1740
|
#
|
|
1222
1741
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1223
1742
|
#
|
|
1743
|
+
#
|
|
1744
|
+
# @example Example: To send an activation code
|
|
1745
|
+
#
|
|
1746
|
+
# # The following send-activation-code example sends an activation code and message to the specified contact channel.
|
|
1747
|
+
#
|
|
1748
|
+
# resp = client.send_activation_code({
|
|
1749
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-1:111122223333:contact-channel/akuam/8ddae2d1-12c8-4e45-b852-c8587266c400",
|
|
1750
|
+
# })
|
|
1751
|
+
#
|
|
1752
|
+
# resp.to_h outputs the following:
|
|
1753
|
+
# {
|
|
1754
|
+
# }
|
|
1755
|
+
#
|
|
1224
1756
|
# @example Request syntax with placeholder values
|
|
1225
1757
|
#
|
|
1226
1758
|
# resp = client.send_activation_code({
|
|
@@ -1265,7 +1797,7 @@ module Aws::SSMContacts
|
|
|
1265
1797
|
# The ARN of the incident that the engagement is part of.
|
|
1266
1798
|
#
|
|
1267
1799
|
# @option params [String] :idempotency_token
|
|
1268
|
-
# A token ensuring that the
|
|
1800
|
+
# A token ensuring that the operation is called only once with the
|
|
1269
1801
|
# specified details.
|
|
1270
1802
|
#
|
|
1271
1803
|
# **A suitable default value is auto-generated.** You should normally
|
|
@@ -1275,6 +1807,47 @@ module Aws::SSMContacts
|
|
|
1275
1807
|
#
|
|
1276
1808
|
# * {Types::StartEngagementResult#engagement_arn #engagement_arn} => String
|
|
1277
1809
|
#
|
|
1810
|
+
#
|
|
1811
|
+
# @example Example: Example 1: To page a contact's contact channels
|
|
1812
|
+
#
|
|
1813
|
+
# # The following start-engagement pages contact's contact channels. Sender, subject, public-subject, and public-content are
|
|
1814
|
+
# # all free from fields. Incident Manager sends the subject and content to the provided VOICE or EMAIL contact channels.
|
|
1815
|
+
# # Incident Manager sends the public-subject and public-content to the provided SMS contact channels. Sender is used to
|
|
1816
|
+
# # track who started the engagement.
|
|
1817
|
+
#
|
|
1818
|
+
# resp = client.start_engagement({
|
|
1819
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
1820
|
+
# content: "Testing engagements",
|
|
1821
|
+
# public_content: "Testing engagements",
|
|
1822
|
+
# public_subject: "test",
|
|
1823
|
+
# sender: "tester",
|
|
1824
|
+
# subject: "test",
|
|
1825
|
+
# })
|
|
1826
|
+
#
|
|
1827
|
+
# resp.to_h outputs the following:
|
|
1828
|
+
# {
|
|
1829
|
+
# engagement_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/akuam/607ced0e-e8fa-4ea7-8958-a237b8803f8f",
|
|
1830
|
+
# }
|
|
1831
|
+
#
|
|
1832
|
+
# @example Example: Example 2: To page a contact in the provided escalation plan.
|
|
1833
|
+
#
|
|
1834
|
+
# # The following start-engagement engages contact's through an escalation plan. Each contact is paged according to their
|
|
1835
|
+
# # engagement plan.
|
|
1836
|
+
#
|
|
1837
|
+
# resp = client.start_engagement({
|
|
1838
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/example_escalation",
|
|
1839
|
+
# content: "Testing engagements",
|
|
1840
|
+
# public_content: "Testing engagements",
|
|
1841
|
+
# public_subject: "test",
|
|
1842
|
+
# sender: "tester",
|
|
1843
|
+
# subject: "test",
|
|
1844
|
+
# })
|
|
1845
|
+
#
|
|
1846
|
+
# resp.to_h outputs the following:
|
|
1847
|
+
# {
|
|
1848
|
+
# engagement_arn: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/example_escalation/69e40ce1-8dbb-4d57-8962-5fbe7fc53356",
|
|
1849
|
+
# }
|
|
1850
|
+
#
|
|
1278
1851
|
# @example Request syntax with placeholder values
|
|
1279
1852
|
#
|
|
1280
1853
|
# resp = client.start_engagement({
|
|
@@ -1312,6 +1885,19 @@ module Aws::SSMContacts
|
|
|
1312
1885
|
#
|
|
1313
1886
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1314
1887
|
#
|
|
1888
|
+
#
|
|
1889
|
+
# @example Example: To stop an engagement
|
|
1890
|
+
#
|
|
1891
|
+
# # The following stop-engagement example stops an engagement from paging further contacts and contact channels.
|
|
1892
|
+
#
|
|
1893
|
+
# resp = client.stop_engagement({
|
|
1894
|
+
# engagement_id: "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/example_escalation/69e40ce1-8dbb-4d57-8962-5fbe7fc53356",
|
|
1895
|
+
# })
|
|
1896
|
+
#
|
|
1897
|
+
# resp.to_h outputs the following:
|
|
1898
|
+
# {
|
|
1899
|
+
# }
|
|
1900
|
+
#
|
|
1315
1901
|
# @example Request syntax with placeholder values
|
|
1316
1902
|
#
|
|
1317
1903
|
# resp = client.stop_engagement({
|
|
@@ -1339,6 +1925,25 @@ module Aws::SSMContacts
|
|
|
1339
1925
|
#
|
|
1340
1926
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1341
1927
|
#
|
|
1928
|
+
#
|
|
1929
|
+
# @example Example: To tag a contact
|
|
1930
|
+
#
|
|
1931
|
+
# # The following tag-resource example tags a specified contact with the provided tag key value pair.
|
|
1932
|
+
#
|
|
1933
|
+
# resp = client.tag_resource({
|
|
1934
|
+
# resource_arn: "arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam",
|
|
1935
|
+
# tags: [
|
|
1936
|
+
# {
|
|
1937
|
+
# key: "group1",
|
|
1938
|
+
# value: "1",
|
|
1939
|
+
# },
|
|
1940
|
+
# ],
|
|
1941
|
+
# })
|
|
1942
|
+
#
|
|
1943
|
+
# resp.to_h outputs the following:
|
|
1944
|
+
# {
|
|
1945
|
+
# }
|
|
1946
|
+
#
|
|
1342
1947
|
# @example Request syntax with placeholder values
|
|
1343
1948
|
#
|
|
1344
1949
|
# resp = client.tag_resource({
|
|
@@ -1370,6 +1975,22 @@ module Aws::SSMContacts
|
|
|
1370
1975
|
#
|
|
1371
1976
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1372
1977
|
#
|
|
1978
|
+
#
|
|
1979
|
+
# @example Example: To remove tags from a contact
|
|
1980
|
+
#
|
|
1981
|
+
# # The following untag-resource example removes the group1 tag from the specified contact.
|
|
1982
|
+
#
|
|
1983
|
+
# resp = client.untag_resource({
|
|
1984
|
+
# resource_arn: "arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam",
|
|
1985
|
+
# tag_keys: [
|
|
1986
|
+
# "group1",
|
|
1987
|
+
# ],
|
|
1988
|
+
# })
|
|
1989
|
+
#
|
|
1990
|
+
# resp.to_h outputs the following:
|
|
1991
|
+
# {
|
|
1992
|
+
# }
|
|
1993
|
+
#
|
|
1373
1994
|
# @example Request syntax with placeholder values
|
|
1374
1995
|
#
|
|
1375
1996
|
# resp = client.untag_resource({
|
|
@@ -1402,6 +2023,57 @@ module Aws::SSMContacts
|
|
|
1402
2023
|
#
|
|
1403
2024
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1404
2025
|
#
|
|
2026
|
+
#
|
|
2027
|
+
# @example Example: To update the engagement plan of contact
|
|
2028
|
+
#
|
|
2029
|
+
# # The following update-contact example updates the engagement plan of the contact Akua to include the three types of
|
|
2030
|
+
# # contacts channels. This is done after creating contact channels for Akua.
|
|
2031
|
+
#
|
|
2032
|
+
# resp = client.update_contact({
|
|
2033
|
+
# contact_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
2034
|
+
# plan: {
|
|
2035
|
+
# stages: [
|
|
2036
|
+
# {
|
|
2037
|
+
# duration_in_minutes: 5,
|
|
2038
|
+
# targets: [
|
|
2039
|
+
# {
|
|
2040
|
+
# channel_target_info: {
|
|
2041
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/beb25840-5ac8-4644-95cc-7a8de390fa65",
|
|
2042
|
+
# retry_interval_in_minutes: 1,
|
|
2043
|
+
# },
|
|
2044
|
+
# },
|
|
2045
|
+
# ],
|
|
2046
|
+
# },
|
|
2047
|
+
# {
|
|
2048
|
+
# duration_in_minutes: 5,
|
|
2049
|
+
# targets: [
|
|
2050
|
+
# {
|
|
2051
|
+
# channel_target_info: {
|
|
2052
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/49f3c24d-5f9f-4638-ae25-3f49e04229ad",
|
|
2053
|
+
# retry_interval_in_minutes: 1,
|
|
2054
|
+
# },
|
|
2055
|
+
# },
|
|
2056
|
+
# ],
|
|
2057
|
+
# },
|
|
2058
|
+
# {
|
|
2059
|
+
# duration_in_minutes: 5,
|
|
2060
|
+
# targets: [
|
|
2061
|
+
# {
|
|
2062
|
+
# channel_target_info: {
|
|
2063
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/77d4f447-f619-4954-afff-85551e369c2a",
|
|
2064
|
+
# retry_interval_in_minutes: 1,
|
|
2065
|
+
# },
|
|
2066
|
+
# },
|
|
2067
|
+
# ],
|
|
2068
|
+
# },
|
|
2069
|
+
# ],
|
|
2070
|
+
# },
|
|
2071
|
+
# })
|
|
2072
|
+
#
|
|
2073
|
+
# resp.to_h outputs the following:
|
|
2074
|
+
# {
|
|
2075
|
+
# }
|
|
2076
|
+
#
|
|
1405
2077
|
# @example Request syntax with placeholder values
|
|
1406
2078
|
#
|
|
1407
2079
|
# resp = client.update_contact({
|
|
@@ -1444,7 +2116,7 @@ module Aws::SSMContacts
|
|
|
1444
2116
|
# update.
|
|
1445
2117
|
#
|
|
1446
2118
|
# @option params [String] :name
|
|
1447
|
-
# The name of the contact channel
|
|
2119
|
+
# The name of the contact channel.
|
|
1448
2120
|
#
|
|
1449
2121
|
# @option params [Types::ContactChannelAddress] :delivery_address
|
|
1450
2122
|
# The details that Incident Manager uses when trying to engage the
|
|
@@ -1452,6 +2124,23 @@ module Aws::SSMContacts
|
|
|
1452
2124
|
#
|
|
1453
2125
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1454
2126
|
#
|
|
2127
|
+
#
|
|
2128
|
+
# @example Example: To update a contact channel
|
|
2129
|
+
#
|
|
2130
|
+
# # The following update-contact-channel example updates the name and delivery address of a contact channel.
|
|
2131
|
+
#
|
|
2132
|
+
# resp = client.update_contact_channel({
|
|
2133
|
+
# contact_channel_id: "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/49f3c24d-5f9f-4638-ae25-3f49e04229ad",
|
|
2134
|
+
# delivery_address: {
|
|
2135
|
+
# simple_address: "+15005550198",
|
|
2136
|
+
# },
|
|
2137
|
+
# name: "akuas voice channel",
|
|
2138
|
+
# })
|
|
2139
|
+
#
|
|
2140
|
+
# resp.to_h outputs the following:
|
|
2141
|
+
# {
|
|
2142
|
+
# }
|
|
2143
|
+
#
|
|
1455
2144
|
# @example Request syntax with placeholder values
|
|
1456
2145
|
#
|
|
1457
2146
|
# resp = client.update_contact_channel({
|
|
@@ -1484,7 +2173,7 @@ module Aws::SSMContacts
|
|
|
1484
2173
|
params: params,
|
|
1485
2174
|
config: config)
|
|
1486
2175
|
context[:gem_name] = 'aws-sdk-ssmcontacts'
|
|
1487
|
-
context[:gem_version] = '1.
|
|
2176
|
+
context[:gem_version] = '1.7.0'
|
|
1488
2177
|
Seahorse::Client::Request.new(handlers, context)
|
|
1489
2178
|
end
|
|
1490
2179
|
|
|
@@ -74,7 +74,7 @@ module Aws::SSMContacts
|
|
|
74
74
|
#
|
|
75
75
|
class AcceptPageResult < Aws::EmptyStructure; end
|
|
76
76
|
|
|
77
|
-
# You don't have sufficient access to perform this
|
|
77
|
+
# You don't have sufficient access to perform this operation.
|
|
78
78
|
#
|
|
79
79
|
# @!attribute [rw] message
|
|
80
80
|
# @return [String]
|
|
@@ -358,7 +358,7 @@ module Aws::SSMContacts
|
|
|
358
358
|
# @return [Boolean]
|
|
359
359
|
#
|
|
360
360
|
# @!attribute [rw] idempotency_token
|
|
361
|
-
# A token ensuring that the
|
|
361
|
+
# A token ensuring that the operation is called only once with the
|
|
362
362
|
# specified details.
|
|
363
363
|
#
|
|
364
364
|
# **A suitable default value is auto-generated.** You should normally
|
|
@@ -379,7 +379,7 @@ module Aws::SSMContacts
|
|
|
379
379
|
end
|
|
380
380
|
|
|
381
381
|
# @!attribute [rw] contact_channel_arn
|
|
382
|
-
# The ARN of the contact channel.
|
|
382
|
+
# The Amazon Resource Name (ARN) of the contact channel.
|
|
383
383
|
# @return [String]
|
|
384
384
|
#
|
|
385
385
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-contacts-2021-05-03/CreateContactChannelResult AWS API Documentation
|
|
@@ -451,7 +451,7 @@ module Aws::SSMContacts
|
|
|
451
451
|
# @return [Array<Types::Tag>]
|
|
452
452
|
#
|
|
453
453
|
# @!attribute [rw] idempotency_token
|
|
454
|
-
# A token ensuring that the
|
|
454
|
+
# A token ensuring that the operation is called only once with the
|
|
455
455
|
# specified details.
|
|
456
456
|
#
|
|
457
457
|
# **A suitable default value is auto-generated.** You should normally
|
|
@@ -484,7 +484,7 @@ module Aws::SSMContacts
|
|
|
484
484
|
include Aws::Structure
|
|
485
485
|
end
|
|
486
486
|
|
|
487
|
-
# The
|
|
487
|
+
# The operation failed to due an encryption key error.
|
|
488
488
|
#
|
|
489
489
|
# @!attribute [rw] message
|
|
490
490
|
# @return [String]
|
|
@@ -1607,7 +1607,7 @@ module Aws::SSMContacts
|
|
|
1607
1607
|
# @return [String]
|
|
1608
1608
|
#
|
|
1609
1609
|
# @!attribute [rw] idempotency_token
|
|
1610
|
-
# A token ensuring that the
|
|
1610
|
+
# A token ensuring that the operation is called only once with the
|
|
1611
1611
|
# specified details.
|
|
1612
1612
|
#
|
|
1613
1613
|
# **A suitable default value is auto-generated.** You should normally
|
|
@@ -1732,7 +1732,7 @@ module Aws::SSMContacts
|
|
|
1732
1732
|
#
|
|
1733
1733
|
class TagResourceResult < Aws::EmptyStructure; end
|
|
1734
1734
|
|
|
1735
|
-
# The contact or contact channel that
|
|
1735
|
+
# The contact or contact channel that's being engaged.
|
|
1736
1736
|
#
|
|
1737
1737
|
# @note When making an API call, you may pass Target
|
|
1738
1738
|
# data as a hash:
|
|
@@ -1866,7 +1866,7 @@ module Aws::SSMContacts
|
|
|
1866
1866
|
# @return [String]
|
|
1867
1867
|
#
|
|
1868
1868
|
# @!attribute [rw] name
|
|
1869
|
-
# The name of the contact channel
|
|
1869
|
+
# The name of the contact channel.
|
|
1870
1870
|
# @return [String]
|
|
1871
1871
|
#
|
|
1872
1872
|
# @!attribute [rw] delivery_address
|
|
@@ -1944,8 +1944,8 @@ module Aws::SSMContacts
|
|
|
1944
1944
|
#
|
|
1945
1945
|
class UpdateContactResult < Aws::EmptyStructure; end
|
|
1946
1946
|
|
|
1947
|
-
# The input fails to satisfy the constraints specified by an
|
|
1948
|
-
# service.
|
|
1947
|
+
# The input fails to satisfy the constraints specified by an Amazon Web
|
|
1948
|
+
# Services service.
|
|
1949
1949
|
#
|
|
1950
1950
|
# @!attribute [rw] message
|
|
1951
1951
|
# @return [String]
|
data/lib/aws-sdk-ssmcontacts.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-ssmcontacts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-09-
|
|
11
|
+
date: 2021-09-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|