@aws-sdk/client-ssm-contacts 3.141.0 → 3.150.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +135 -228
- package/dist-es/protocols/Aws_json1_1.js +217 -229
- package/package.json +11 -6
|
@@ -296,7 +296,6 @@ const deserializeAws_json1_1AcceptPageCommandError = async (output, context) =>
|
|
|
296
296
|
...output,
|
|
297
297
|
body: await parseBody(output.body, context),
|
|
298
298
|
};
|
|
299
|
-
let response;
|
|
300
299
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
301
300
|
switch (errorCode) {
|
|
302
301
|
case "AccessDeniedException":
|
|
@@ -316,14 +315,12 @@ const deserializeAws_json1_1AcceptPageCommandError = async (output, context) =>
|
|
|
316
315
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
317
316
|
default:
|
|
318
317
|
const parsedBody = parsedOutput.body;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
$metadata,
|
|
318
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
319
|
+
output,
|
|
320
|
+
parsedBody,
|
|
321
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
322
|
+
errorCode,
|
|
325
323
|
});
|
|
326
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
327
324
|
}
|
|
328
325
|
};
|
|
329
326
|
const deserializeAws_json1_1ActivateContactChannelCommand = async (output, context) => {
|
|
@@ -345,7 +342,6 @@ const deserializeAws_json1_1ActivateContactChannelCommandError = async (output,
|
|
|
345
342
|
...output,
|
|
346
343
|
body: await parseBody(output.body, context),
|
|
347
344
|
};
|
|
348
|
-
let response;
|
|
349
345
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
350
346
|
switch (errorCode) {
|
|
351
347
|
case "AccessDeniedException":
|
|
@@ -365,14 +361,12 @@ const deserializeAws_json1_1ActivateContactChannelCommandError = async (output,
|
|
|
365
361
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
366
362
|
default:
|
|
367
363
|
const parsedBody = parsedOutput.body;
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
$metadata,
|
|
364
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
365
|
+
output,
|
|
366
|
+
parsedBody,
|
|
367
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
368
|
+
errorCode,
|
|
374
369
|
});
|
|
375
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
376
370
|
}
|
|
377
371
|
};
|
|
378
372
|
const deserializeAws_json1_1CreateContactCommand = async (output, context) => {
|
|
@@ -394,7 +388,6 @@ const deserializeAws_json1_1CreateContactCommandError = async (output, context)
|
|
|
394
388
|
...output,
|
|
395
389
|
body: await parseBody(output.body, context),
|
|
396
390
|
};
|
|
397
|
-
let response;
|
|
398
391
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
399
392
|
switch (errorCode) {
|
|
400
393
|
case "AccessDeniedException":
|
|
@@ -420,14 +413,12 @@ const deserializeAws_json1_1CreateContactCommandError = async (output, context)
|
|
|
420
413
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
421
414
|
default:
|
|
422
415
|
const parsedBody = parsedOutput.body;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
$metadata,
|
|
416
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
417
|
+
output,
|
|
418
|
+
parsedBody,
|
|
419
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
420
|
+
errorCode,
|
|
429
421
|
});
|
|
430
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
431
422
|
}
|
|
432
423
|
};
|
|
433
424
|
const deserializeAws_json1_1CreateContactChannelCommand = async (output, context) => {
|
|
@@ -449,7 +440,6 @@ const deserializeAws_json1_1CreateContactChannelCommandError = async (output, co
|
|
|
449
440
|
...output,
|
|
450
441
|
body: await parseBody(output.body, context),
|
|
451
442
|
};
|
|
452
|
-
let response;
|
|
453
443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
454
444
|
switch (errorCode) {
|
|
455
445
|
case "AccessDeniedException":
|
|
@@ -472,14 +462,12 @@ const deserializeAws_json1_1CreateContactChannelCommandError = async (output, co
|
|
|
472
462
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
473
463
|
default:
|
|
474
464
|
const parsedBody = parsedOutput.body;
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
$metadata,
|
|
465
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
466
|
+
output,
|
|
467
|
+
parsedBody,
|
|
468
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
469
|
+
errorCode,
|
|
481
470
|
});
|
|
482
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
483
471
|
}
|
|
484
472
|
};
|
|
485
473
|
const deserializeAws_json1_1DeactivateContactChannelCommand = async (output, context) => {
|
|
@@ -501,7 +489,6 @@ const deserializeAws_json1_1DeactivateContactChannelCommandError = async (output
|
|
|
501
489
|
...output,
|
|
502
490
|
body: await parseBody(output.body, context),
|
|
503
491
|
};
|
|
504
|
-
let response;
|
|
505
492
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
493
|
switch (errorCode) {
|
|
507
494
|
case "AccessDeniedException":
|
|
@@ -521,14 +508,12 @@ const deserializeAws_json1_1DeactivateContactChannelCommandError = async (output
|
|
|
521
508
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
522
509
|
default:
|
|
523
510
|
const parsedBody = parsedOutput.body;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
$metadata,
|
|
511
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
512
|
+
output,
|
|
513
|
+
parsedBody,
|
|
514
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
515
|
+
errorCode,
|
|
530
516
|
});
|
|
531
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
532
517
|
}
|
|
533
518
|
};
|
|
534
519
|
const deserializeAws_json1_1DeleteContactCommand = async (output, context) => {
|
|
@@ -550,7 +535,6 @@ const deserializeAws_json1_1DeleteContactCommandError = async (output, context)
|
|
|
550
535
|
...output,
|
|
551
536
|
body: await parseBody(output.body, context),
|
|
552
537
|
};
|
|
553
|
-
let response;
|
|
554
538
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
539
|
switch (errorCode) {
|
|
556
540
|
case "AccessDeniedException":
|
|
@@ -570,14 +554,12 @@ const deserializeAws_json1_1DeleteContactCommandError = async (output, context)
|
|
|
570
554
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
571
555
|
default:
|
|
572
556
|
const parsedBody = parsedOutput.body;
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
$metadata,
|
|
557
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
558
|
+
output,
|
|
559
|
+
parsedBody,
|
|
560
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
561
|
+
errorCode,
|
|
579
562
|
});
|
|
580
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
581
563
|
}
|
|
582
564
|
};
|
|
583
565
|
const deserializeAws_json1_1DeleteContactChannelCommand = async (output, context) => {
|
|
@@ -599,7 +581,6 @@ const deserializeAws_json1_1DeleteContactChannelCommandError = async (output, co
|
|
|
599
581
|
...output,
|
|
600
582
|
body: await parseBody(output.body, context),
|
|
601
583
|
};
|
|
602
|
-
let response;
|
|
603
584
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
585
|
switch (errorCode) {
|
|
605
586
|
case "AccessDeniedException":
|
|
@@ -619,14 +600,12 @@ const deserializeAws_json1_1DeleteContactChannelCommandError = async (output, co
|
|
|
619
600
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
620
601
|
default:
|
|
621
602
|
const parsedBody = parsedOutput.body;
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
$metadata,
|
|
603
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
604
|
+
output,
|
|
605
|
+
parsedBody,
|
|
606
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
607
|
+
errorCode,
|
|
628
608
|
});
|
|
629
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
630
609
|
}
|
|
631
610
|
};
|
|
632
611
|
const deserializeAws_json1_1DescribeEngagementCommand = async (output, context) => {
|
|
@@ -648,7 +627,6 @@ const deserializeAws_json1_1DescribeEngagementCommandError = async (output, cont
|
|
|
648
627
|
...output,
|
|
649
628
|
body: await parseBody(output.body, context),
|
|
650
629
|
};
|
|
651
|
-
let response;
|
|
652
630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
631
|
switch (errorCode) {
|
|
654
632
|
case "AccessDeniedException":
|
|
@@ -671,14 +649,12 @@ const deserializeAws_json1_1DescribeEngagementCommandError = async (output, cont
|
|
|
671
649
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
672
650
|
default:
|
|
673
651
|
const parsedBody = parsedOutput.body;
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
$metadata,
|
|
652
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
653
|
+
output,
|
|
654
|
+
parsedBody,
|
|
655
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
656
|
+
errorCode,
|
|
680
657
|
});
|
|
681
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
682
658
|
}
|
|
683
659
|
};
|
|
684
660
|
const deserializeAws_json1_1DescribePageCommand = async (output, context) => {
|
|
@@ -700,7 +676,6 @@ const deserializeAws_json1_1DescribePageCommandError = async (output, context) =
|
|
|
700
676
|
...output,
|
|
701
677
|
body: await parseBody(output.body, context),
|
|
702
678
|
};
|
|
703
|
-
let response;
|
|
704
679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
705
680
|
switch (errorCode) {
|
|
706
681
|
case "AccessDeniedException":
|
|
@@ -723,14 +698,12 @@ const deserializeAws_json1_1DescribePageCommandError = async (output, context) =
|
|
|
723
698
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
724
699
|
default:
|
|
725
700
|
const parsedBody = parsedOutput.body;
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
$metadata,
|
|
701
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
702
|
+
output,
|
|
703
|
+
parsedBody,
|
|
704
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
705
|
+
errorCode,
|
|
732
706
|
});
|
|
733
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
734
707
|
}
|
|
735
708
|
};
|
|
736
709
|
const deserializeAws_json1_1GetContactCommand = async (output, context) => {
|
|
@@ -752,7 +725,6 @@ const deserializeAws_json1_1GetContactCommandError = async (output, context) =>
|
|
|
752
725
|
...output,
|
|
753
726
|
body: await parseBody(output.body, context),
|
|
754
727
|
};
|
|
755
|
-
let response;
|
|
756
728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
729
|
switch (errorCode) {
|
|
758
730
|
case "AccessDeniedException":
|
|
@@ -775,14 +747,12 @@ const deserializeAws_json1_1GetContactCommandError = async (output, context) =>
|
|
|
775
747
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
776
748
|
default:
|
|
777
749
|
const parsedBody = parsedOutput.body;
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
$metadata,
|
|
750
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
751
|
+
output,
|
|
752
|
+
parsedBody,
|
|
753
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
754
|
+
errorCode,
|
|
784
755
|
});
|
|
785
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
786
756
|
}
|
|
787
757
|
};
|
|
788
758
|
const deserializeAws_json1_1GetContactChannelCommand = async (output, context) => {
|
|
@@ -804,7 +774,6 @@ const deserializeAws_json1_1GetContactChannelCommandError = async (output, conte
|
|
|
804
774
|
...output,
|
|
805
775
|
body: await parseBody(output.body, context),
|
|
806
776
|
};
|
|
807
|
-
let response;
|
|
808
777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
778
|
switch (errorCode) {
|
|
810
779
|
case "AccessDeniedException":
|
|
@@ -827,14 +796,12 @@ const deserializeAws_json1_1GetContactChannelCommandError = async (output, conte
|
|
|
827
796
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
828
797
|
default:
|
|
829
798
|
const parsedBody = parsedOutput.body;
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
$metadata,
|
|
799
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
800
|
+
output,
|
|
801
|
+
parsedBody,
|
|
802
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
803
|
+
errorCode,
|
|
836
804
|
});
|
|
837
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
838
805
|
}
|
|
839
806
|
};
|
|
840
807
|
const deserializeAws_json1_1GetContactPolicyCommand = async (output, context) => {
|
|
@@ -856,7 +823,6 @@ const deserializeAws_json1_1GetContactPolicyCommandError = async (output, contex
|
|
|
856
823
|
...output,
|
|
857
824
|
body: await parseBody(output.body, context),
|
|
858
825
|
};
|
|
859
|
-
let response;
|
|
860
826
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
827
|
switch (errorCode) {
|
|
862
828
|
case "AccessDeniedException":
|
|
@@ -876,14 +842,12 @@ const deserializeAws_json1_1GetContactPolicyCommandError = async (output, contex
|
|
|
876
842
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
877
843
|
default:
|
|
878
844
|
const parsedBody = parsedOutput.body;
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
$metadata,
|
|
845
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
846
|
+
output,
|
|
847
|
+
parsedBody,
|
|
848
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
849
|
+
errorCode,
|
|
885
850
|
});
|
|
886
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
887
851
|
}
|
|
888
852
|
};
|
|
889
853
|
const deserializeAws_json1_1ListContactChannelsCommand = async (output, context) => {
|
|
@@ -905,7 +869,6 @@ const deserializeAws_json1_1ListContactChannelsCommandError = async (output, con
|
|
|
905
869
|
...output,
|
|
906
870
|
body: await parseBody(output.body, context),
|
|
907
871
|
};
|
|
908
|
-
let response;
|
|
909
872
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
873
|
switch (errorCode) {
|
|
911
874
|
case "AccessDeniedException":
|
|
@@ -928,14 +891,12 @@ const deserializeAws_json1_1ListContactChannelsCommandError = async (output, con
|
|
|
928
891
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
929
892
|
default:
|
|
930
893
|
const parsedBody = parsedOutput.body;
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
$metadata,
|
|
894
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
895
|
+
output,
|
|
896
|
+
parsedBody,
|
|
897
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
898
|
+
errorCode,
|
|
937
899
|
});
|
|
938
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
939
900
|
}
|
|
940
901
|
};
|
|
941
902
|
const deserializeAws_json1_1ListContactsCommand = async (output, context) => {
|
|
@@ -957,7 +918,6 @@ const deserializeAws_json1_1ListContactsCommandError = async (output, context) =
|
|
|
957
918
|
...output,
|
|
958
919
|
body: await parseBody(output.body, context),
|
|
959
920
|
};
|
|
960
|
-
let response;
|
|
961
921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
922
|
switch (errorCode) {
|
|
963
923
|
case "AccessDeniedException":
|
|
@@ -974,14 +934,12 @@ const deserializeAws_json1_1ListContactsCommandError = async (output, context) =
|
|
|
974
934
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
975
935
|
default:
|
|
976
936
|
const parsedBody = parsedOutput.body;
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
$metadata,
|
|
937
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
938
|
+
output,
|
|
939
|
+
parsedBody,
|
|
940
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
941
|
+
errorCode,
|
|
983
942
|
});
|
|
984
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
985
943
|
}
|
|
986
944
|
};
|
|
987
945
|
const deserializeAws_json1_1ListEngagementsCommand = async (output, context) => {
|
|
@@ -1003,7 +961,6 @@ const deserializeAws_json1_1ListEngagementsCommandError = async (output, context
|
|
|
1003
961
|
...output,
|
|
1004
962
|
body: await parseBody(output.body, context),
|
|
1005
963
|
};
|
|
1006
|
-
let response;
|
|
1007
964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
965
|
switch (errorCode) {
|
|
1009
966
|
case "AccessDeniedException":
|
|
@@ -1020,14 +977,12 @@ const deserializeAws_json1_1ListEngagementsCommandError = async (output, context
|
|
|
1020
977
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1021
978
|
default:
|
|
1022
979
|
const parsedBody = parsedOutput.body;
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
$metadata,
|
|
980
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
981
|
+
output,
|
|
982
|
+
parsedBody,
|
|
983
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
984
|
+
errorCode,
|
|
1029
985
|
});
|
|
1030
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1031
986
|
}
|
|
1032
987
|
};
|
|
1033
988
|
const deserializeAws_json1_1ListPageReceiptsCommand = async (output, context) => {
|
|
@@ -1049,7 +1004,6 @@ const deserializeAws_json1_1ListPageReceiptsCommandError = async (output, contex
|
|
|
1049
1004
|
...output,
|
|
1050
1005
|
body: await parseBody(output.body, context),
|
|
1051
1006
|
};
|
|
1052
|
-
let response;
|
|
1053
1007
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
1008
|
switch (errorCode) {
|
|
1055
1009
|
case "AccessDeniedException":
|
|
@@ -1069,14 +1023,12 @@ const deserializeAws_json1_1ListPageReceiptsCommandError = async (output, contex
|
|
|
1069
1023
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1070
1024
|
default:
|
|
1071
1025
|
const parsedBody = parsedOutput.body;
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
$metadata,
|
|
1026
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1027
|
+
output,
|
|
1028
|
+
parsedBody,
|
|
1029
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1030
|
+
errorCode,
|
|
1078
1031
|
});
|
|
1079
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1080
1032
|
}
|
|
1081
1033
|
};
|
|
1082
1034
|
const deserializeAws_json1_1ListPagesByContactCommand = async (output, context) => {
|
|
@@ -1098,7 +1050,6 @@ const deserializeAws_json1_1ListPagesByContactCommandError = async (output, cont
|
|
|
1098
1050
|
...output,
|
|
1099
1051
|
body: await parseBody(output.body, context),
|
|
1100
1052
|
};
|
|
1101
|
-
let response;
|
|
1102
1053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1103
1054
|
switch (errorCode) {
|
|
1104
1055
|
case "AccessDeniedException":
|
|
@@ -1118,14 +1069,12 @@ const deserializeAws_json1_1ListPagesByContactCommandError = async (output, cont
|
|
|
1118
1069
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1119
1070
|
default:
|
|
1120
1071
|
const parsedBody = parsedOutput.body;
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
$metadata,
|
|
1072
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1073
|
+
output,
|
|
1074
|
+
parsedBody,
|
|
1075
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1076
|
+
errorCode,
|
|
1127
1077
|
});
|
|
1128
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1129
1078
|
}
|
|
1130
1079
|
};
|
|
1131
1080
|
const deserializeAws_json1_1ListPagesByEngagementCommand = async (output, context) => {
|
|
@@ -1147,7 +1096,6 @@ const deserializeAws_json1_1ListPagesByEngagementCommandError = async (output, c
|
|
|
1147
1096
|
...output,
|
|
1148
1097
|
body: await parseBody(output.body, context),
|
|
1149
1098
|
};
|
|
1150
|
-
let response;
|
|
1151
1099
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
1100
|
switch (errorCode) {
|
|
1153
1101
|
case "AccessDeniedException":
|
|
@@ -1167,14 +1115,12 @@ const deserializeAws_json1_1ListPagesByEngagementCommandError = async (output, c
|
|
|
1167
1115
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1168
1116
|
default:
|
|
1169
1117
|
const parsedBody = parsedOutput.body;
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
$metadata,
|
|
1118
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1119
|
+
output,
|
|
1120
|
+
parsedBody,
|
|
1121
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1122
|
+
errorCode,
|
|
1176
1123
|
});
|
|
1177
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1178
1124
|
}
|
|
1179
1125
|
};
|
|
1180
1126
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1196,7 +1142,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1196
1142
|
...output,
|
|
1197
1143
|
body: await parseBody(output.body, context),
|
|
1198
1144
|
};
|
|
1199
|
-
let response;
|
|
1200
1145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
1146
|
switch (errorCode) {
|
|
1202
1147
|
case "AccessDeniedException":
|
|
@@ -1216,14 +1161,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1216
1161
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1217
1162
|
default:
|
|
1218
1163
|
const parsedBody = parsedOutput.body;
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
$metadata,
|
|
1164
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1165
|
+
output,
|
|
1166
|
+
parsedBody,
|
|
1167
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1168
|
+
errorCode,
|
|
1225
1169
|
});
|
|
1226
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1227
1170
|
}
|
|
1228
1171
|
};
|
|
1229
1172
|
const deserializeAws_json1_1PutContactPolicyCommand = async (output, context) => {
|
|
@@ -1245,7 +1188,6 @@ const deserializeAws_json1_1PutContactPolicyCommandError = async (output, contex
|
|
|
1245
1188
|
...output,
|
|
1246
1189
|
body: await parseBody(output.body, context),
|
|
1247
1190
|
};
|
|
1248
|
-
let response;
|
|
1249
1191
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1250
1192
|
switch (errorCode) {
|
|
1251
1193
|
case "AccessDeniedException":
|
|
@@ -1268,14 +1210,12 @@ const deserializeAws_json1_1PutContactPolicyCommandError = async (output, contex
|
|
|
1268
1210
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1269
1211
|
default:
|
|
1270
1212
|
const parsedBody = parsedOutput.body;
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
$metadata,
|
|
1213
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1214
|
+
output,
|
|
1215
|
+
parsedBody,
|
|
1216
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1217
|
+
errorCode,
|
|
1277
1218
|
});
|
|
1278
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1279
1219
|
}
|
|
1280
1220
|
};
|
|
1281
1221
|
const deserializeAws_json1_1SendActivationCodeCommand = async (output, context) => {
|
|
@@ -1297,7 +1237,6 @@ const deserializeAws_json1_1SendActivationCodeCommandError = async (output, cont
|
|
|
1297
1237
|
...output,
|
|
1298
1238
|
body: await parseBody(output.body, context),
|
|
1299
1239
|
};
|
|
1300
|
-
let response;
|
|
1301
1240
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
1241
|
switch (errorCode) {
|
|
1303
1242
|
case "AccessDeniedException":
|
|
@@ -1323,14 +1262,12 @@ const deserializeAws_json1_1SendActivationCodeCommandError = async (output, cont
|
|
|
1323
1262
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1324
1263
|
default:
|
|
1325
1264
|
const parsedBody = parsedOutput.body;
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
$metadata,
|
|
1265
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1266
|
+
output,
|
|
1267
|
+
parsedBody,
|
|
1268
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1269
|
+
errorCode,
|
|
1332
1270
|
});
|
|
1333
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1334
1271
|
}
|
|
1335
1272
|
};
|
|
1336
1273
|
const deserializeAws_json1_1StartEngagementCommand = async (output, context) => {
|
|
@@ -1352,7 +1289,6 @@ const deserializeAws_json1_1StartEngagementCommandError = async (output, context
|
|
|
1352
1289
|
...output,
|
|
1353
1290
|
body: await parseBody(output.body, context),
|
|
1354
1291
|
};
|
|
1355
|
-
let response;
|
|
1356
1292
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
1293
|
switch (errorCode) {
|
|
1358
1294
|
case "AccessDeniedException":
|
|
@@ -1375,14 +1311,12 @@ const deserializeAws_json1_1StartEngagementCommandError = async (output, context
|
|
|
1375
1311
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1376
1312
|
default:
|
|
1377
1313
|
const parsedBody = parsedOutput.body;
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
$metadata,
|
|
1314
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1315
|
+
output,
|
|
1316
|
+
parsedBody,
|
|
1317
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1318
|
+
errorCode,
|
|
1384
1319
|
});
|
|
1385
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1386
1320
|
}
|
|
1387
1321
|
};
|
|
1388
1322
|
const deserializeAws_json1_1StopEngagementCommand = async (output, context) => {
|
|
@@ -1404,7 +1338,6 @@ const deserializeAws_json1_1StopEngagementCommandError = async (output, context)
|
|
|
1404
1338
|
...output,
|
|
1405
1339
|
body: await parseBody(output.body, context),
|
|
1406
1340
|
};
|
|
1407
|
-
let response;
|
|
1408
1341
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1342
|
switch (errorCode) {
|
|
1410
1343
|
case "AccessDeniedException":
|
|
@@ -1424,14 +1357,12 @@ const deserializeAws_json1_1StopEngagementCommandError = async (output, context)
|
|
|
1424
1357
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1425
1358
|
default:
|
|
1426
1359
|
const parsedBody = parsedOutput.body;
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
$metadata,
|
|
1360
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1361
|
+
output,
|
|
1362
|
+
parsedBody,
|
|
1363
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1364
|
+
errorCode,
|
|
1433
1365
|
});
|
|
1434
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1435
1366
|
}
|
|
1436
1367
|
};
|
|
1437
1368
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -1453,7 +1384,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1453
1384
|
...output,
|
|
1454
1385
|
body: await parseBody(output.body, context),
|
|
1455
1386
|
};
|
|
1456
|
-
let response;
|
|
1457
1387
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1388
|
switch (errorCode) {
|
|
1459
1389
|
case "AccessDeniedException":
|
|
@@ -1476,14 +1406,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1476
1406
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1477
1407
|
default:
|
|
1478
1408
|
const parsedBody = parsedOutput.body;
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
$metadata,
|
|
1409
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1410
|
+
output,
|
|
1411
|
+
parsedBody,
|
|
1412
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1413
|
+
errorCode,
|
|
1485
1414
|
});
|
|
1486
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1487
1415
|
}
|
|
1488
1416
|
};
|
|
1489
1417
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -1505,7 +1433,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1505
1433
|
...output,
|
|
1506
1434
|
body: await parseBody(output.body, context),
|
|
1507
1435
|
};
|
|
1508
|
-
let response;
|
|
1509
1436
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
1437
|
switch (errorCode) {
|
|
1511
1438
|
case "AccessDeniedException":
|
|
@@ -1525,14 +1452,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1525
1452
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1526
1453
|
default:
|
|
1527
1454
|
const parsedBody = parsedOutput.body;
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
$metadata,
|
|
1455
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1456
|
+
output,
|
|
1457
|
+
parsedBody,
|
|
1458
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1459
|
+
errorCode,
|
|
1534
1460
|
});
|
|
1535
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1536
1461
|
}
|
|
1537
1462
|
};
|
|
1538
1463
|
const deserializeAws_json1_1UpdateContactCommand = async (output, context) => {
|
|
@@ -1554,7 +1479,6 @@ const deserializeAws_json1_1UpdateContactCommandError = async (output, context)
|
|
|
1554
1479
|
...output,
|
|
1555
1480
|
body: await parseBody(output.body, context),
|
|
1556
1481
|
};
|
|
1557
|
-
let response;
|
|
1558
1482
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1559
1483
|
switch (errorCode) {
|
|
1560
1484
|
case "AccessDeniedException":
|
|
@@ -1580,14 +1504,12 @@ const deserializeAws_json1_1UpdateContactCommandError = async (output, context)
|
|
|
1580
1504
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1581
1505
|
default:
|
|
1582
1506
|
const parsedBody = parsedOutput.body;
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
$metadata,
|
|
1507
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1508
|
+
output,
|
|
1509
|
+
parsedBody,
|
|
1510
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1511
|
+
errorCode,
|
|
1589
1512
|
});
|
|
1590
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1591
1513
|
}
|
|
1592
1514
|
};
|
|
1593
1515
|
const deserializeAws_json1_1UpdateContactChannelCommand = async (output, context) => {
|
|
@@ -1609,7 +1531,6 @@ const deserializeAws_json1_1UpdateContactChannelCommandError = async (output, co
|
|
|
1609
1531
|
...output,
|
|
1610
1532
|
body: await parseBody(output.body, context),
|
|
1611
1533
|
};
|
|
1612
|
-
let response;
|
|
1613
1534
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1614
1535
|
switch (errorCode) {
|
|
1615
1536
|
case "AccessDeniedException":
|
|
@@ -1635,14 +1556,12 @@ const deserializeAws_json1_1UpdateContactChannelCommandError = async (output, co
|
|
|
1635
1556
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1636
1557
|
default:
|
|
1637
1558
|
const parsedBody = parsedOutput.body;
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
$metadata,
|
|
1559
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1560
|
+
output,
|
|
1561
|
+
parsedBody,
|
|
1562
|
+
exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
|
|
1563
|
+
errorCode,
|
|
1644
1564
|
});
|
|
1645
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1646
1565
|
}
|
|
1647
1566
|
};
|
|
1648
1567
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1891,9 +1810,6 @@ const serializeAws_json1_1StagesList = (input, context) => {
|
|
|
1891
1810
|
return input
|
|
1892
1811
|
.filter((e) => e != null)
|
|
1893
1812
|
.map((entry) => {
|
|
1894
|
-
if (entry === null) {
|
|
1895
|
-
return null;
|
|
1896
|
-
}
|
|
1897
1813
|
return serializeAws_json1_1Stage(entry, context);
|
|
1898
1814
|
});
|
|
1899
1815
|
};
|
|
@@ -1926,9 +1842,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
1926
1842
|
return input
|
|
1927
1843
|
.filter((e) => e != null)
|
|
1928
1844
|
.map((entry) => {
|
|
1929
|
-
if (entry === null) {
|
|
1930
|
-
return null;
|
|
1931
|
-
}
|
|
1932
1845
|
return entry;
|
|
1933
1846
|
});
|
|
1934
1847
|
};
|
|
@@ -1942,9 +1855,6 @@ const serializeAws_json1_1TagsList = (input, context) => {
|
|
|
1942
1855
|
return input
|
|
1943
1856
|
.filter((e) => e != null)
|
|
1944
1857
|
.map((entry) => {
|
|
1945
|
-
if (entry === null) {
|
|
1946
|
-
return null;
|
|
1947
|
-
}
|
|
1948
1858
|
return serializeAws_json1_1Tag(entry, context);
|
|
1949
1859
|
});
|
|
1950
1860
|
};
|
|
@@ -1962,9 +1872,6 @@ const serializeAws_json1_1TargetsList = (input, context) => {
|
|
|
1962
1872
|
return input
|
|
1963
1873
|
.filter((e) => e != null)
|
|
1964
1874
|
.map((entry) => {
|
|
1965
|
-
if (entry === null) {
|
|
1966
|
-
return null;
|
|
1967
|
-
}
|
|
1968
1875
|
return serializeAws_json1_1Target(entry, context);
|
|
1969
1876
|
});
|
|
1970
1877
|
};
|