@aws-sdk/client-ssm-contacts 3.504.0 → 3.507.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/dist-cjs/index.js +76 -1305
- package/dist-es/protocols/Aws_json1_1.js +113 -1342
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -654,7 +654,7 @@ var se_UpdateRotationCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
654
654
|
}, "se_UpdateRotationCommand");
|
|
655
655
|
var de_AcceptPageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
656
656
|
if (output.statusCode >= 300) {
|
|
657
|
-
return
|
|
657
|
+
return de_CommandError(output, context);
|
|
658
658
|
}
|
|
659
659
|
const data = await parseBody(output.body, context);
|
|
660
660
|
let contents = {};
|
|
@@ -665,40 +665,9 @@ var de_AcceptPageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
665
665
|
};
|
|
666
666
|
return response;
|
|
667
667
|
}, "de_AcceptPageCommand");
|
|
668
|
-
var de_AcceptPageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
669
|
-
const parsedOutput = {
|
|
670
|
-
...output,
|
|
671
|
-
body: await parseErrorBody(output.body, context)
|
|
672
|
-
};
|
|
673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
674
|
-
switch (errorCode) {
|
|
675
|
-
case "AccessDeniedException":
|
|
676
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
677
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
678
|
-
case "InternalServerException":
|
|
679
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
680
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ResourceNotFoundException":
|
|
682
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
683
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
684
|
-
case "ThrottlingException":
|
|
685
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
686
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ValidationException":
|
|
688
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
689
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
690
|
-
default:
|
|
691
|
-
const parsedBody = parsedOutput.body;
|
|
692
|
-
return throwDefaultError({
|
|
693
|
-
output,
|
|
694
|
-
parsedBody,
|
|
695
|
-
errorCode
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
}, "de_AcceptPageCommandError");
|
|
699
668
|
var de_ActivateContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
700
669
|
if (output.statusCode >= 300) {
|
|
701
|
-
return
|
|
670
|
+
return de_CommandError(output, context);
|
|
702
671
|
}
|
|
703
672
|
const data = await parseBody(output.body, context);
|
|
704
673
|
let contents = {};
|
|
@@ -709,40 +678,9 @@ var de_ActivateContactChannelCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
709
678
|
};
|
|
710
679
|
return response;
|
|
711
680
|
}, "de_ActivateContactChannelCommand");
|
|
712
|
-
var de_ActivateContactChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
713
|
-
const parsedOutput = {
|
|
714
|
-
...output,
|
|
715
|
-
body: await parseErrorBody(output.body, context)
|
|
716
|
-
};
|
|
717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
718
|
-
switch (errorCode) {
|
|
719
|
-
case "AccessDeniedException":
|
|
720
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
721
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
722
|
-
case "InternalServerException":
|
|
723
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
724
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
725
|
-
case "ResourceNotFoundException":
|
|
726
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
727
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ThrottlingException":
|
|
729
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
730
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
731
|
-
case "ValidationException":
|
|
732
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
733
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
734
|
-
default:
|
|
735
|
-
const parsedBody = parsedOutput.body;
|
|
736
|
-
return throwDefaultError({
|
|
737
|
-
output,
|
|
738
|
-
parsedBody,
|
|
739
|
-
errorCode
|
|
740
|
-
});
|
|
741
|
-
}
|
|
742
|
-
}, "de_ActivateContactChannelCommandError");
|
|
743
681
|
var de_CreateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
744
682
|
if (output.statusCode >= 300) {
|
|
745
|
-
return
|
|
683
|
+
return de_CommandError(output, context);
|
|
746
684
|
}
|
|
747
685
|
const data = await parseBody(output.body, context);
|
|
748
686
|
let contents = {};
|
|
@@ -753,46 +691,9 @@ var de_CreateContactCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
753
691
|
};
|
|
754
692
|
return response;
|
|
755
693
|
}, "de_CreateContactCommand");
|
|
756
|
-
var de_CreateContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
757
|
-
const parsedOutput = {
|
|
758
|
-
...output,
|
|
759
|
-
body: await parseErrorBody(output.body, context)
|
|
760
|
-
};
|
|
761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
762
|
-
switch (errorCode) {
|
|
763
|
-
case "AccessDeniedException":
|
|
764
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
765
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
766
|
-
case "ConflictException":
|
|
767
|
-
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
768
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
769
|
-
case "DataEncryptionException":
|
|
770
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
771
|
-
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
772
|
-
case "InternalServerException":
|
|
773
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
774
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ServiceQuotaExceededException":
|
|
776
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
|
|
777
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ThrottlingException":
|
|
779
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
780
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ValidationException":
|
|
782
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
783
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
784
|
-
default:
|
|
785
|
-
const parsedBody = parsedOutput.body;
|
|
786
|
-
return throwDefaultError({
|
|
787
|
-
output,
|
|
788
|
-
parsedBody,
|
|
789
|
-
errorCode
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
}, "de_CreateContactCommandError");
|
|
793
694
|
var de_CreateContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
794
695
|
if (output.statusCode >= 300) {
|
|
795
|
-
return
|
|
696
|
+
return de_CommandError(output, context);
|
|
796
697
|
}
|
|
797
698
|
const data = await parseBody(output.body, context);
|
|
798
699
|
let contents = {};
|
|
@@ -803,43 +704,9 @@ var de_CreateContactChannelCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
803
704
|
};
|
|
804
705
|
return response;
|
|
805
706
|
}, "de_CreateContactChannelCommand");
|
|
806
|
-
var de_CreateContactChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
807
|
-
const parsedOutput = {
|
|
808
|
-
...output,
|
|
809
|
-
body: await parseErrorBody(output.body, context)
|
|
810
|
-
};
|
|
811
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
812
|
-
switch (errorCode) {
|
|
813
|
-
case "AccessDeniedException":
|
|
814
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
815
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
816
|
-
case "ConflictException":
|
|
817
|
-
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
818
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
819
|
-
case "DataEncryptionException":
|
|
820
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
821
|
-
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
822
|
-
case "InternalServerException":
|
|
823
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
824
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
825
|
-
case "ThrottlingException":
|
|
826
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
827
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ValidationException":
|
|
829
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
830
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
831
|
-
default:
|
|
832
|
-
const parsedBody = parsedOutput.body;
|
|
833
|
-
return throwDefaultError({
|
|
834
|
-
output,
|
|
835
|
-
parsedBody,
|
|
836
|
-
errorCode
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
}, "de_CreateContactChannelCommandError");
|
|
840
707
|
var de_CreateRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
841
708
|
if (output.statusCode >= 300) {
|
|
842
|
-
return
|
|
709
|
+
return de_CommandError(output, context);
|
|
843
710
|
}
|
|
844
711
|
const data = await parseBody(output.body, context);
|
|
845
712
|
let contents = {};
|
|
@@ -850,43 +717,9 @@ var de_CreateRotationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
850
717
|
};
|
|
851
718
|
return response;
|
|
852
719
|
}, "de_CreateRotationCommand");
|
|
853
|
-
var de_CreateRotationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
854
|
-
const parsedOutput = {
|
|
855
|
-
...output,
|
|
856
|
-
body: await parseErrorBody(output.body, context)
|
|
857
|
-
};
|
|
858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
|
-
switch (errorCode) {
|
|
860
|
-
case "AccessDeniedException":
|
|
861
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
862
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
863
|
-
case "InternalServerException":
|
|
864
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
865
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
866
|
-
case "ResourceNotFoundException":
|
|
867
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
868
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
869
|
-
case "ServiceQuotaExceededException":
|
|
870
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
|
|
871
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
872
|
-
case "ThrottlingException":
|
|
873
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
874
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
875
|
-
case "ValidationException":
|
|
876
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
877
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
878
|
-
default:
|
|
879
|
-
const parsedBody = parsedOutput.body;
|
|
880
|
-
return throwDefaultError({
|
|
881
|
-
output,
|
|
882
|
-
parsedBody,
|
|
883
|
-
errorCode
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
}, "de_CreateRotationCommandError");
|
|
887
720
|
var de_CreateRotationOverrideCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
888
721
|
if (output.statusCode >= 300) {
|
|
889
|
-
return
|
|
722
|
+
return de_CommandError(output, context);
|
|
890
723
|
}
|
|
891
724
|
const data = await parseBody(output.body, context);
|
|
892
725
|
let contents = {};
|
|
@@ -897,43 +730,9 @@ var de_CreateRotationOverrideCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
897
730
|
};
|
|
898
731
|
return response;
|
|
899
732
|
}, "de_CreateRotationOverrideCommand");
|
|
900
|
-
var de_CreateRotationOverrideCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
901
|
-
const parsedOutput = {
|
|
902
|
-
...output,
|
|
903
|
-
body: await parseErrorBody(output.body, context)
|
|
904
|
-
};
|
|
905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
-
switch (errorCode) {
|
|
907
|
-
case "AccessDeniedException":
|
|
908
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
909
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
910
|
-
case "InternalServerException":
|
|
911
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
912
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
913
|
-
case "ResourceNotFoundException":
|
|
914
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
915
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
916
|
-
case "ServiceQuotaExceededException":
|
|
917
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
|
|
918
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
919
|
-
case "ThrottlingException":
|
|
920
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
921
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
922
|
-
case "ValidationException":
|
|
923
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
924
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
925
|
-
default:
|
|
926
|
-
const parsedBody = parsedOutput.body;
|
|
927
|
-
return throwDefaultError({
|
|
928
|
-
output,
|
|
929
|
-
parsedBody,
|
|
930
|
-
errorCode
|
|
931
|
-
});
|
|
932
|
-
}
|
|
933
|
-
}, "de_CreateRotationOverrideCommandError");
|
|
934
733
|
var de_DeactivateContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
935
734
|
if (output.statusCode >= 300) {
|
|
936
|
-
return
|
|
735
|
+
return de_CommandError(output, context);
|
|
937
736
|
}
|
|
938
737
|
const data = await parseBody(output.body, context);
|
|
939
738
|
let contents = {};
|
|
@@ -944,40 +743,9 @@ var de_DeactivateContactChannelCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
944
743
|
};
|
|
945
744
|
return response;
|
|
946
745
|
}, "de_DeactivateContactChannelCommand");
|
|
947
|
-
var de_DeactivateContactChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
948
|
-
const parsedOutput = {
|
|
949
|
-
...output,
|
|
950
|
-
body: await parseErrorBody(output.body, context)
|
|
951
|
-
};
|
|
952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
|
-
switch (errorCode) {
|
|
954
|
-
case "AccessDeniedException":
|
|
955
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
956
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
957
|
-
case "InternalServerException":
|
|
958
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
959
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ResourceNotFoundException":
|
|
961
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
962
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
963
|
-
case "ThrottlingException":
|
|
964
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
965
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
966
|
-
case "ValidationException":
|
|
967
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
968
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
969
|
-
default:
|
|
970
|
-
const parsedBody = parsedOutput.body;
|
|
971
|
-
return throwDefaultError({
|
|
972
|
-
output,
|
|
973
|
-
parsedBody,
|
|
974
|
-
errorCode
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
}, "de_DeactivateContactChannelCommandError");
|
|
978
746
|
var de_DeleteContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
979
747
|
if (output.statusCode >= 300) {
|
|
980
|
-
return
|
|
748
|
+
return de_CommandError(output, context);
|
|
981
749
|
}
|
|
982
750
|
const data = await parseBody(output.body, context);
|
|
983
751
|
let contents = {};
|
|
@@ -988,43 +756,9 @@ var de_DeleteContactCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
988
756
|
};
|
|
989
757
|
return response;
|
|
990
758
|
}, "de_DeleteContactCommand");
|
|
991
|
-
var de_DeleteContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
992
|
-
const parsedOutput = {
|
|
993
|
-
...output,
|
|
994
|
-
body: await parseErrorBody(output.body, context)
|
|
995
|
-
};
|
|
996
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
|
-
switch (errorCode) {
|
|
998
|
-
case "AccessDeniedException":
|
|
999
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1000
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "ConflictException":
|
|
1002
|
-
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
1003
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "InternalServerException":
|
|
1005
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1006
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "ResourceNotFoundException":
|
|
1008
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1009
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ThrottlingException":
|
|
1011
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1012
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "ValidationException":
|
|
1014
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1015
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1016
|
-
default:
|
|
1017
|
-
const parsedBody = parsedOutput.body;
|
|
1018
|
-
return throwDefaultError({
|
|
1019
|
-
output,
|
|
1020
|
-
parsedBody,
|
|
1021
|
-
errorCode
|
|
1022
|
-
});
|
|
1023
|
-
}
|
|
1024
|
-
}, "de_DeleteContactCommandError");
|
|
1025
759
|
var de_DeleteContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1026
760
|
if (output.statusCode >= 300) {
|
|
1027
|
-
return
|
|
761
|
+
return de_CommandError(output, context);
|
|
1028
762
|
}
|
|
1029
763
|
const data = await parseBody(output.body, context);
|
|
1030
764
|
let contents = {};
|
|
@@ -1035,40 +769,9 @@ var de_DeleteContactChannelCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1035
769
|
};
|
|
1036
770
|
return response;
|
|
1037
771
|
}, "de_DeleteContactChannelCommand");
|
|
1038
|
-
var de_DeleteContactChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1039
|
-
const parsedOutput = {
|
|
1040
|
-
...output,
|
|
1041
|
-
body: await parseErrorBody(output.body, context)
|
|
1042
|
-
};
|
|
1043
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
|
-
switch (errorCode) {
|
|
1045
|
-
case "AccessDeniedException":
|
|
1046
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1047
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "InternalServerException":
|
|
1049
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1050
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "ResourceNotFoundException":
|
|
1052
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1053
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "ThrottlingException":
|
|
1055
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1056
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "ValidationException":
|
|
1058
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1059
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1060
|
-
default:
|
|
1061
|
-
const parsedBody = parsedOutput.body;
|
|
1062
|
-
return throwDefaultError({
|
|
1063
|
-
output,
|
|
1064
|
-
parsedBody,
|
|
1065
|
-
errorCode
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
}, "de_DeleteContactChannelCommandError");
|
|
1069
772
|
var de_DeleteRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1070
773
|
if (output.statusCode >= 300) {
|
|
1071
|
-
return
|
|
774
|
+
return de_CommandError(output, context);
|
|
1072
775
|
}
|
|
1073
776
|
const data = await parseBody(output.body, context);
|
|
1074
777
|
let contents = {};
|
|
@@ -1079,43 +782,9 @@ var de_DeleteRotationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1079
782
|
};
|
|
1080
783
|
return response;
|
|
1081
784
|
}, "de_DeleteRotationCommand");
|
|
1082
|
-
var de_DeleteRotationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1083
|
-
const parsedOutput = {
|
|
1084
|
-
...output,
|
|
1085
|
-
body: await parseErrorBody(output.body, context)
|
|
1086
|
-
};
|
|
1087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
-
switch (errorCode) {
|
|
1089
|
-
case "AccessDeniedException":
|
|
1090
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1091
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "ConflictException":
|
|
1093
|
-
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
1094
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "InternalServerException":
|
|
1096
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ResourceNotFoundException":
|
|
1099
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ThrottlingException":
|
|
1102
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ValidationException":
|
|
1105
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
|
-
default:
|
|
1108
|
-
const parsedBody = parsedOutput.body;
|
|
1109
|
-
return throwDefaultError({
|
|
1110
|
-
output,
|
|
1111
|
-
parsedBody,
|
|
1112
|
-
errorCode
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
}, "de_DeleteRotationCommandError");
|
|
1116
785
|
var de_DeleteRotationOverrideCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1117
786
|
if (output.statusCode >= 300) {
|
|
1118
|
-
return
|
|
787
|
+
return de_CommandError(output, context);
|
|
1119
788
|
}
|
|
1120
789
|
const data = await parseBody(output.body, context);
|
|
1121
790
|
let contents = {};
|
|
@@ -1126,40 +795,9 @@ var de_DeleteRotationOverrideCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1126
795
|
};
|
|
1127
796
|
return response;
|
|
1128
797
|
}, "de_DeleteRotationOverrideCommand");
|
|
1129
|
-
var de_DeleteRotationOverrideCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1130
|
-
const parsedOutput = {
|
|
1131
|
-
...output,
|
|
1132
|
-
body: await parseErrorBody(output.body, context)
|
|
1133
|
-
};
|
|
1134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
|
-
switch (errorCode) {
|
|
1136
|
-
case "AccessDeniedException":
|
|
1137
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1138
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "InternalServerException":
|
|
1140
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1141
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "ResourceNotFoundException":
|
|
1143
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1144
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ThrottlingException":
|
|
1146
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1147
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "ValidationException":
|
|
1149
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1150
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1151
|
-
default:
|
|
1152
|
-
const parsedBody = parsedOutput.body;
|
|
1153
|
-
return throwDefaultError({
|
|
1154
|
-
output,
|
|
1155
|
-
parsedBody,
|
|
1156
|
-
errorCode
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
}, "de_DeleteRotationOverrideCommandError");
|
|
1160
798
|
var de_DescribeEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1161
799
|
if (output.statusCode >= 300) {
|
|
1162
|
-
return
|
|
800
|
+
return de_CommandError(output, context);
|
|
1163
801
|
}
|
|
1164
802
|
const data = await parseBody(output.body, context);
|
|
1165
803
|
let contents = {};
|
|
@@ -1170,43 +808,9 @@ var de_DescribeEngagementCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1170
808
|
};
|
|
1171
809
|
return response;
|
|
1172
810
|
}, "de_DescribeEngagementCommand");
|
|
1173
|
-
var de_DescribeEngagementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1174
|
-
const parsedOutput = {
|
|
1175
|
-
...output,
|
|
1176
|
-
body: await parseErrorBody(output.body, context)
|
|
1177
|
-
};
|
|
1178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
-
switch (errorCode) {
|
|
1180
|
-
case "AccessDeniedException":
|
|
1181
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1182
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "DataEncryptionException":
|
|
1184
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
1185
|
-
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "InternalServerException":
|
|
1187
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1188
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1189
|
-
case "ResourceNotFoundException":
|
|
1190
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1191
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "ThrottlingException":
|
|
1193
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1194
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "ValidationException":
|
|
1196
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1197
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1198
|
-
default:
|
|
1199
|
-
const parsedBody = parsedOutput.body;
|
|
1200
|
-
return throwDefaultError({
|
|
1201
|
-
output,
|
|
1202
|
-
parsedBody,
|
|
1203
|
-
errorCode
|
|
1204
|
-
});
|
|
1205
|
-
}
|
|
1206
|
-
}, "de_DescribeEngagementCommandError");
|
|
1207
811
|
var de_DescribePageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1208
812
|
if (output.statusCode >= 300) {
|
|
1209
|
-
return
|
|
813
|
+
return de_CommandError(output, context);
|
|
1210
814
|
}
|
|
1211
815
|
const data = await parseBody(output.body, context);
|
|
1212
816
|
let contents = {};
|
|
@@ -1217,43 +821,9 @@ var de_DescribePageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1217
821
|
};
|
|
1218
822
|
return response;
|
|
1219
823
|
}, "de_DescribePageCommand");
|
|
1220
|
-
var de_DescribePageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1221
|
-
const parsedOutput = {
|
|
1222
|
-
...output,
|
|
1223
|
-
body: await parseErrorBody(output.body, context)
|
|
1224
|
-
};
|
|
1225
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
|
-
switch (errorCode) {
|
|
1227
|
-
case "AccessDeniedException":
|
|
1228
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1229
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "DataEncryptionException":
|
|
1231
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
1232
|
-
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "InternalServerException":
|
|
1234
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1235
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "ResourceNotFoundException":
|
|
1237
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1238
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "ThrottlingException":
|
|
1240
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1241
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ValidationException":
|
|
1243
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1244
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1245
|
-
default:
|
|
1246
|
-
const parsedBody = parsedOutput.body;
|
|
1247
|
-
return throwDefaultError({
|
|
1248
|
-
output,
|
|
1249
|
-
parsedBody,
|
|
1250
|
-
errorCode
|
|
1251
|
-
});
|
|
1252
|
-
}
|
|
1253
|
-
}, "de_DescribePageCommandError");
|
|
1254
824
|
var de_GetContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1255
825
|
if (output.statusCode >= 300) {
|
|
1256
|
-
return
|
|
826
|
+
return de_CommandError(output, context);
|
|
1257
827
|
}
|
|
1258
828
|
const data = await parseBody(output.body, context);
|
|
1259
829
|
let contents = {};
|
|
@@ -1264,43 +834,9 @@ var de_GetContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1264
834
|
};
|
|
1265
835
|
return response;
|
|
1266
836
|
}, "de_GetContactCommand");
|
|
1267
|
-
var de_GetContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1268
|
-
const parsedOutput = {
|
|
1269
|
-
...output,
|
|
1270
|
-
body: await parseErrorBody(output.body, context)
|
|
1271
|
-
};
|
|
1272
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
|
-
switch (errorCode) {
|
|
1274
|
-
case "AccessDeniedException":
|
|
1275
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1276
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "DataEncryptionException":
|
|
1278
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
1279
|
-
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "InternalServerException":
|
|
1281
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1282
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ResourceNotFoundException":
|
|
1284
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1285
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "ThrottlingException":
|
|
1287
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1288
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ValidationException":
|
|
1290
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1291
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1292
|
-
default:
|
|
1293
|
-
const parsedBody = parsedOutput.body;
|
|
1294
|
-
return throwDefaultError({
|
|
1295
|
-
output,
|
|
1296
|
-
parsedBody,
|
|
1297
|
-
errorCode
|
|
1298
|
-
});
|
|
1299
|
-
}
|
|
1300
|
-
}, "de_GetContactCommandError");
|
|
1301
837
|
var de_GetContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1302
838
|
if (output.statusCode >= 300) {
|
|
1303
|
-
return
|
|
839
|
+
return de_CommandError(output, context);
|
|
1304
840
|
}
|
|
1305
841
|
const data = await parseBody(output.body, context);
|
|
1306
842
|
let contents = {};
|
|
@@ -1311,43 +847,9 @@ var de_GetContactChannelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1311
847
|
};
|
|
1312
848
|
return response;
|
|
1313
849
|
}, "de_GetContactChannelCommand");
|
|
1314
|
-
var de_GetContactChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1315
|
-
const parsedOutput = {
|
|
1316
|
-
...output,
|
|
1317
|
-
body: await parseErrorBody(output.body, context)
|
|
1318
|
-
};
|
|
1319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
|
-
switch (errorCode) {
|
|
1321
|
-
case "AccessDeniedException":
|
|
1322
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1323
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "DataEncryptionException":
|
|
1325
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
1326
|
-
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "InternalServerException":
|
|
1328
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1329
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ResourceNotFoundException":
|
|
1331
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1332
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ThrottlingException":
|
|
1334
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1335
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "ValidationException":
|
|
1337
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1338
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1339
|
-
default:
|
|
1340
|
-
const parsedBody = parsedOutput.body;
|
|
1341
|
-
return throwDefaultError({
|
|
1342
|
-
output,
|
|
1343
|
-
parsedBody,
|
|
1344
|
-
errorCode
|
|
1345
|
-
});
|
|
1346
|
-
}
|
|
1347
|
-
}, "de_GetContactChannelCommandError");
|
|
1348
850
|
var de_GetContactPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1349
851
|
if (output.statusCode >= 300) {
|
|
1350
|
-
return
|
|
852
|
+
return de_CommandError(output, context);
|
|
1351
853
|
}
|
|
1352
854
|
const data = await parseBody(output.body, context);
|
|
1353
855
|
let contents = {};
|
|
@@ -1358,40 +860,9 @@ var de_GetContactPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1358
860
|
};
|
|
1359
861
|
return response;
|
|
1360
862
|
}, "de_GetContactPolicyCommand");
|
|
1361
|
-
var de_GetContactPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1362
|
-
const parsedOutput = {
|
|
1363
|
-
...output,
|
|
1364
|
-
body: await parseErrorBody(output.body, context)
|
|
1365
|
-
};
|
|
1366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
-
switch (errorCode) {
|
|
1368
|
-
case "AccessDeniedException":
|
|
1369
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1370
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "InternalServerException":
|
|
1372
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1373
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ResourceNotFoundException":
|
|
1375
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1376
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ThrottlingException":
|
|
1378
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1379
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ValidationException":
|
|
1381
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1382
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1383
|
-
default:
|
|
1384
|
-
const parsedBody = parsedOutput.body;
|
|
1385
|
-
return throwDefaultError({
|
|
1386
|
-
output,
|
|
1387
|
-
parsedBody,
|
|
1388
|
-
errorCode
|
|
1389
|
-
});
|
|
1390
|
-
}
|
|
1391
|
-
}, "de_GetContactPolicyCommandError");
|
|
1392
863
|
var de_GetRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1393
864
|
if (output.statusCode >= 300) {
|
|
1394
|
-
return
|
|
865
|
+
return de_CommandError(output, context);
|
|
1395
866
|
}
|
|
1396
867
|
const data = await parseBody(output.body, context);
|
|
1397
868
|
let contents = {};
|
|
@@ -1402,84 +873,22 @@ var de_GetRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1402
873
|
};
|
|
1403
874
|
return response;
|
|
1404
875
|
}, "de_GetRotationCommand");
|
|
1405
|
-
var
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
case "InternalServerException":
|
|
1416
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1417
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "ResourceNotFoundException":
|
|
1419
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1420
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "ThrottlingException":
|
|
1422
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1423
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "ValidationException":
|
|
1425
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1426
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1427
|
-
default:
|
|
1428
|
-
const parsedBody = parsedOutput.body;
|
|
1429
|
-
return throwDefaultError({
|
|
1430
|
-
output,
|
|
1431
|
-
parsedBody,
|
|
1432
|
-
errorCode
|
|
1433
|
-
});
|
|
1434
|
-
}
|
|
1435
|
-
}, "de_GetRotationCommandError");
|
|
1436
|
-
var de_GetRotationOverrideCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1437
|
-
if (output.statusCode >= 300) {
|
|
1438
|
-
return de_GetRotationOverrideCommandError(output, context);
|
|
1439
|
-
}
|
|
1440
|
-
const data = await parseBody(output.body, context);
|
|
1441
|
-
let contents = {};
|
|
1442
|
-
contents = de_GetRotationOverrideResult(data, context);
|
|
1443
|
-
const response = {
|
|
1444
|
-
$metadata: deserializeMetadata(output),
|
|
1445
|
-
...contents
|
|
876
|
+
var de_GetRotationOverrideCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
877
|
+
if (output.statusCode >= 300) {
|
|
878
|
+
return de_CommandError(output, context);
|
|
879
|
+
}
|
|
880
|
+
const data = await parseBody(output.body, context);
|
|
881
|
+
let contents = {};
|
|
882
|
+
contents = de_GetRotationOverrideResult(data, context);
|
|
883
|
+
const response = {
|
|
884
|
+
$metadata: deserializeMetadata(output),
|
|
885
|
+
...contents
|
|
1446
886
|
};
|
|
1447
887
|
return response;
|
|
1448
888
|
}, "de_GetRotationOverrideCommand");
|
|
1449
|
-
var de_GetRotationOverrideCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1450
|
-
const parsedOutput = {
|
|
1451
|
-
...output,
|
|
1452
|
-
body: await parseErrorBody(output.body, context)
|
|
1453
|
-
};
|
|
1454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
|
-
switch (errorCode) {
|
|
1456
|
-
case "AccessDeniedException":
|
|
1457
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1458
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "InternalServerException":
|
|
1460
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1461
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "ResourceNotFoundException":
|
|
1463
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1464
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "ThrottlingException":
|
|
1466
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1467
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "ValidationException":
|
|
1469
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1470
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1471
|
-
default:
|
|
1472
|
-
const parsedBody = parsedOutput.body;
|
|
1473
|
-
return throwDefaultError({
|
|
1474
|
-
output,
|
|
1475
|
-
parsedBody,
|
|
1476
|
-
errorCode
|
|
1477
|
-
});
|
|
1478
|
-
}
|
|
1479
|
-
}, "de_GetRotationOverrideCommandError");
|
|
1480
889
|
var de_ListContactChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1481
890
|
if (output.statusCode >= 300) {
|
|
1482
|
-
return
|
|
891
|
+
return de_CommandError(output, context);
|
|
1483
892
|
}
|
|
1484
893
|
const data = await parseBody(output.body, context);
|
|
1485
894
|
let contents = {};
|
|
@@ -1490,43 +899,9 @@ var de_ListContactChannelsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1490
899
|
};
|
|
1491
900
|
return response;
|
|
1492
901
|
}, "de_ListContactChannelsCommand");
|
|
1493
|
-
var de_ListContactChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1494
|
-
const parsedOutput = {
|
|
1495
|
-
...output,
|
|
1496
|
-
body: await parseErrorBody(output.body, context)
|
|
1497
|
-
};
|
|
1498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1499
|
-
switch (errorCode) {
|
|
1500
|
-
case "AccessDeniedException":
|
|
1501
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1502
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "DataEncryptionException":
|
|
1504
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
1505
|
-
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "InternalServerException":
|
|
1507
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1508
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "ResourceNotFoundException":
|
|
1510
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1511
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "ThrottlingException":
|
|
1513
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1514
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ValidationException":
|
|
1516
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1517
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1518
|
-
default:
|
|
1519
|
-
const parsedBody = parsedOutput.body;
|
|
1520
|
-
return throwDefaultError({
|
|
1521
|
-
output,
|
|
1522
|
-
parsedBody,
|
|
1523
|
-
errorCode
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
}, "de_ListContactChannelsCommandError");
|
|
1527
902
|
var de_ListContactsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1528
903
|
if (output.statusCode >= 300) {
|
|
1529
|
-
return
|
|
904
|
+
return de_CommandError(output, context);
|
|
1530
905
|
}
|
|
1531
906
|
const data = await parseBody(output.body, context);
|
|
1532
907
|
let contents = {};
|
|
@@ -1537,37 +912,9 @@ var de_ListContactsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1537
912
|
};
|
|
1538
913
|
return response;
|
|
1539
914
|
}, "de_ListContactsCommand");
|
|
1540
|
-
var de_ListContactsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1541
|
-
const parsedOutput = {
|
|
1542
|
-
...output,
|
|
1543
|
-
body: await parseErrorBody(output.body, context)
|
|
1544
|
-
};
|
|
1545
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1546
|
-
switch (errorCode) {
|
|
1547
|
-
case "AccessDeniedException":
|
|
1548
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1549
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "InternalServerException":
|
|
1551
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1552
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ThrottlingException":
|
|
1554
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1555
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "ValidationException":
|
|
1557
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1558
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1559
|
-
default:
|
|
1560
|
-
const parsedBody = parsedOutput.body;
|
|
1561
|
-
return throwDefaultError({
|
|
1562
|
-
output,
|
|
1563
|
-
parsedBody,
|
|
1564
|
-
errorCode
|
|
1565
|
-
});
|
|
1566
|
-
}
|
|
1567
|
-
}, "de_ListContactsCommandError");
|
|
1568
915
|
var de_ListEngagementsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1569
916
|
if (output.statusCode >= 300) {
|
|
1570
|
-
return
|
|
917
|
+
return de_CommandError(output, context);
|
|
1571
918
|
}
|
|
1572
919
|
const data = await parseBody(output.body, context);
|
|
1573
920
|
let contents = {};
|
|
@@ -1578,37 +925,9 @@ var de_ListEngagementsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1578
925
|
};
|
|
1579
926
|
return response;
|
|
1580
927
|
}, "de_ListEngagementsCommand");
|
|
1581
|
-
var de_ListEngagementsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1582
|
-
const parsedOutput = {
|
|
1583
|
-
...output,
|
|
1584
|
-
body: await parseErrorBody(output.body, context)
|
|
1585
|
-
};
|
|
1586
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
|
-
switch (errorCode) {
|
|
1588
|
-
case "AccessDeniedException":
|
|
1589
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1590
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "InternalServerException":
|
|
1592
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1593
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "ThrottlingException":
|
|
1595
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1596
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1597
|
-
case "ValidationException":
|
|
1598
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1599
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1600
|
-
default:
|
|
1601
|
-
const parsedBody = parsedOutput.body;
|
|
1602
|
-
return throwDefaultError({
|
|
1603
|
-
output,
|
|
1604
|
-
parsedBody,
|
|
1605
|
-
errorCode
|
|
1606
|
-
});
|
|
1607
|
-
}
|
|
1608
|
-
}, "de_ListEngagementsCommandError");
|
|
1609
928
|
var de_ListPageReceiptsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1610
929
|
if (output.statusCode >= 300) {
|
|
1611
|
-
return
|
|
930
|
+
return de_CommandError(output, context);
|
|
1612
931
|
}
|
|
1613
932
|
const data = await parseBody(output.body, context);
|
|
1614
933
|
let contents = {};
|
|
@@ -1619,40 +938,9 @@ var de_ListPageReceiptsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1619
938
|
};
|
|
1620
939
|
return response;
|
|
1621
940
|
}, "de_ListPageReceiptsCommand");
|
|
1622
|
-
var de_ListPageReceiptsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1623
|
-
const parsedOutput = {
|
|
1624
|
-
...output,
|
|
1625
|
-
body: await parseErrorBody(output.body, context)
|
|
1626
|
-
};
|
|
1627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
|
-
switch (errorCode) {
|
|
1629
|
-
case "AccessDeniedException":
|
|
1630
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1631
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1632
|
-
case "InternalServerException":
|
|
1633
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1634
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "ResourceNotFoundException":
|
|
1636
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1638
|
-
case "ThrottlingException":
|
|
1639
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1640
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1641
|
-
case "ValidationException":
|
|
1642
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1643
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1644
|
-
default:
|
|
1645
|
-
const parsedBody = parsedOutput.body;
|
|
1646
|
-
return throwDefaultError({
|
|
1647
|
-
output,
|
|
1648
|
-
parsedBody,
|
|
1649
|
-
errorCode
|
|
1650
|
-
});
|
|
1651
|
-
}
|
|
1652
|
-
}, "de_ListPageReceiptsCommandError");
|
|
1653
941
|
var de_ListPageResolutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1654
942
|
if (output.statusCode >= 300) {
|
|
1655
|
-
return
|
|
943
|
+
return de_CommandError(output, context);
|
|
1656
944
|
}
|
|
1657
945
|
const data = await parseBody(output.body, context);
|
|
1658
946
|
let contents = {};
|
|
@@ -1663,40 +951,9 @@ var de_ListPageResolutionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1663
951
|
};
|
|
1664
952
|
return response;
|
|
1665
953
|
}, "de_ListPageResolutionsCommand");
|
|
1666
|
-
var de_ListPageResolutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1667
|
-
const parsedOutput = {
|
|
1668
|
-
...output,
|
|
1669
|
-
body: await parseErrorBody(output.body, context)
|
|
1670
|
-
};
|
|
1671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
|
-
switch (errorCode) {
|
|
1673
|
-
case "AccessDeniedException":
|
|
1674
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1675
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "InternalServerException":
|
|
1677
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1678
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "ResourceNotFoundException":
|
|
1680
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1681
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "ThrottlingException":
|
|
1683
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1684
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "ValidationException":
|
|
1686
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1687
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1688
|
-
default:
|
|
1689
|
-
const parsedBody = parsedOutput.body;
|
|
1690
|
-
return throwDefaultError({
|
|
1691
|
-
output,
|
|
1692
|
-
parsedBody,
|
|
1693
|
-
errorCode
|
|
1694
|
-
});
|
|
1695
|
-
}
|
|
1696
|
-
}, "de_ListPageResolutionsCommandError");
|
|
1697
954
|
var de_ListPagesByContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1698
955
|
if (output.statusCode >= 300) {
|
|
1699
|
-
return
|
|
956
|
+
return de_CommandError(output, context);
|
|
1700
957
|
}
|
|
1701
958
|
const data = await parseBody(output.body, context);
|
|
1702
959
|
let contents = {};
|
|
@@ -1707,40 +964,9 @@ var de_ListPagesByContactCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1707
964
|
};
|
|
1708
965
|
return response;
|
|
1709
966
|
}, "de_ListPagesByContactCommand");
|
|
1710
|
-
var de_ListPagesByContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1711
|
-
const parsedOutput = {
|
|
1712
|
-
...output,
|
|
1713
|
-
body: await parseErrorBody(output.body, context)
|
|
1714
|
-
};
|
|
1715
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1716
|
-
switch (errorCode) {
|
|
1717
|
-
case "AccessDeniedException":
|
|
1718
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1719
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "InternalServerException":
|
|
1721
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1722
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "ResourceNotFoundException":
|
|
1724
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1725
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "ThrottlingException":
|
|
1727
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1728
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1729
|
-
case "ValidationException":
|
|
1730
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1731
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1732
|
-
default:
|
|
1733
|
-
const parsedBody = parsedOutput.body;
|
|
1734
|
-
return throwDefaultError({
|
|
1735
|
-
output,
|
|
1736
|
-
parsedBody,
|
|
1737
|
-
errorCode
|
|
1738
|
-
});
|
|
1739
|
-
}
|
|
1740
|
-
}, "de_ListPagesByContactCommandError");
|
|
1741
967
|
var de_ListPagesByEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1742
968
|
if (output.statusCode >= 300) {
|
|
1743
|
-
return
|
|
969
|
+
return de_CommandError(output, context);
|
|
1744
970
|
}
|
|
1745
971
|
const data = await parseBody(output.body, context);
|
|
1746
972
|
let contents = {};
|
|
@@ -1751,40 +977,9 @@ var de_ListPagesByEngagementCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1751
977
|
};
|
|
1752
978
|
return response;
|
|
1753
979
|
}, "de_ListPagesByEngagementCommand");
|
|
1754
|
-
var de_ListPagesByEngagementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1755
|
-
const parsedOutput = {
|
|
1756
|
-
...output,
|
|
1757
|
-
body: await parseErrorBody(output.body, context)
|
|
1758
|
-
};
|
|
1759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
|
-
switch (errorCode) {
|
|
1761
|
-
case "AccessDeniedException":
|
|
1762
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1763
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1764
|
-
case "InternalServerException":
|
|
1765
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1766
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "ResourceNotFoundException":
|
|
1768
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1769
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "ThrottlingException":
|
|
1771
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1772
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "ValidationException":
|
|
1774
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1775
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1776
|
-
default:
|
|
1777
|
-
const parsedBody = parsedOutput.body;
|
|
1778
|
-
return throwDefaultError({
|
|
1779
|
-
output,
|
|
1780
|
-
parsedBody,
|
|
1781
|
-
errorCode
|
|
1782
|
-
});
|
|
1783
|
-
}
|
|
1784
|
-
}, "de_ListPagesByEngagementCommandError");
|
|
1785
980
|
var de_ListPreviewRotationShiftsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1786
981
|
if (output.statusCode >= 300) {
|
|
1787
|
-
return
|
|
982
|
+
return de_CommandError(output, context);
|
|
1788
983
|
}
|
|
1789
984
|
const data = await parseBody(output.body, context);
|
|
1790
985
|
let contents = {};
|
|
@@ -1795,37 +990,9 @@ var de_ListPreviewRotationShiftsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1795
990
|
};
|
|
1796
991
|
return response;
|
|
1797
992
|
}, "de_ListPreviewRotationShiftsCommand");
|
|
1798
|
-
var de_ListPreviewRotationShiftsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1799
|
-
const parsedOutput = {
|
|
1800
|
-
...output,
|
|
1801
|
-
body: await parseErrorBody(output.body, context)
|
|
1802
|
-
};
|
|
1803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1804
|
-
switch (errorCode) {
|
|
1805
|
-
case "AccessDeniedException":
|
|
1806
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1807
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "InternalServerException":
|
|
1809
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1810
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "ThrottlingException":
|
|
1812
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1813
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "ValidationException":
|
|
1815
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1816
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1817
|
-
default:
|
|
1818
|
-
const parsedBody = parsedOutput.body;
|
|
1819
|
-
return throwDefaultError({
|
|
1820
|
-
output,
|
|
1821
|
-
parsedBody,
|
|
1822
|
-
errorCode
|
|
1823
|
-
});
|
|
1824
|
-
}
|
|
1825
|
-
}, "de_ListPreviewRotationShiftsCommandError");
|
|
1826
993
|
var de_ListRotationOverridesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1827
994
|
if (output.statusCode >= 300) {
|
|
1828
|
-
return
|
|
995
|
+
return de_CommandError(output, context);
|
|
1829
996
|
}
|
|
1830
997
|
const data = await parseBody(output.body, context);
|
|
1831
998
|
let contents = {};
|
|
@@ -1836,40 +1003,9 @@ var de_ListRotationOverridesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1836
1003
|
};
|
|
1837
1004
|
return response;
|
|
1838
1005
|
}, "de_ListRotationOverridesCommand");
|
|
1839
|
-
var de_ListRotationOverridesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1840
|
-
const parsedOutput = {
|
|
1841
|
-
...output,
|
|
1842
|
-
body: await parseErrorBody(output.body, context)
|
|
1843
|
-
};
|
|
1844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
-
switch (errorCode) {
|
|
1846
|
-
case "AccessDeniedException":
|
|
1847
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1848
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "InternalServerException":
|
|
1850
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1851
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ResourceNotFoundException":
|
|
1853
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1854
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "ThrottlingException":
|
|
1856
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1857
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1858
|
-
case "ValidationException":
|
|
1859
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1860
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1861
|
-
default:
|
|
1862
|
-
const parsedBody = parsedOutput.body;
|
|
1863
|
-
return throwDefaultError({
|
|
1864
|
-
output,
|
|
1865
|
-
parsedBody,
|
|
1866
|
-
errorCode
|
|
1867
|
-
});
|
|
1868
|
-
}
|
|
1869
|
-
}, "de_ListRotationOverridesCommandError");
|
|
1870
1006
|
var de_ListRotationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1871
1007
|
if (output.statusCode >= 300) {
|
|
1872
|
-
return
|
|
1008
|
+
return de_CommandError(output, context);
|
|
1873
1009
|
}
|
|
1874
1010
|
const data = await parseBody(output.body, context);
|
|
1875
1011
|
let contents = {};
|
|
@@ -1880,40 +1016,9 @@ var de_ListRotationsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1880
1016
|
};
|
|
1881
1017
|
return response;
|
|
1882
1018
|
}, "de_ListRotationsCommand");
|
|
1883
|
-
var de_ListRotationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1884
|
-
const parsedOutput = {
|
|
1885
|
-
...output,
|
|
1886
|
-
body: await parseErrorBody(output.body, context)
|
|
1887
|
-
};
|
|
1888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
|
-
switch (errorCode) {
|
|
1890
|
-
case "AccessDeniedException":
|
|
1891
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1892
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "InternalServerException":
|
|
1894
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1895
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "ResourceNotFoundException":
|
|
1897
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1898
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "ThrottlingException":
|
|
1900
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1901
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "ValidationException":
|
|
1903
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1904
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1905
|
-
default:
|
|
1906
|
-
const parsedBody = parsedOutput.body;
|
|
1907
|
-
return throwDefaultError({
|
|
1908
|
-
output,
|
|
1909
|
-
parsedBody,
|
|
1910
|
-
errorCode
|
|
1911
|
-
});
|
|
1912
|
-
}
|
|
1913
|
-
}, "de_ListRotationsCommandError");
|
|
1914
1019
|
var de_ListRotationShiftsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1915
1020
|
if (output.statusCode >= 300) {
|
|
1916
|
-
return
|
|
1021
|
+
return de_CommandError(output, context);
|
|
1917
1022
|
}
|
|
1918
1023
|
const data = await parseBody(output.body, context);
|
|
1919
1024
|
let contents = {};
|
|
@@ -1924,134 +1029,35 @@ var de_ListRotationShiftsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1924
1029
|
};
|
|
1925
1030
|
return response;
|
|
1926
1031
|
}, "de_ListRotationShiftsCommand");
|
|
1927
|
-
var de_ListRotationShiftsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1928
|
-
const parsedOutput = {
|
|
1929
|
-
...output,
|
|
1930
|
-
body: await parseErrorBody(output.body, context)
|
|
1931
|
-
};
|
|
1932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1933
|
-
switch (errorCode) {
|
|
1934
|
-
case "AccessDeniedException":
|
|
1935
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1936
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "ConflictException":
|
|
1938
|
-
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
1939
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "InternalServerException":
|
|
1941
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1942
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "ResourceNotFoundException":
|
|
1944
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1945
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "ThrottlingException":
|
|
1947
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1948
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "ValidationException":
|
|
1950
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1951
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1952
|
-
default:
|
|
1953
|
-
const parsedBody = parsedOutput.body;
|
|
1954
|
-
return throwDefaultError({
|
|
1955
|
-
output,
|
|
1956
|
-
parsedBody,
|
|
1957
|
-
errorCode
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
1960
|
-
}, "de_ListRotationShiftsCommandError");
|
|
1961
1032
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1962
1033
|
if (output.statusCode >= 300) {
|
|
1963
|
-
return
|
|
1034
|
+
return de_CommandError(output, context);
|
|
1964
1035
|
}
|
|
1965
1036
|
const data = await parseBody(output.body, context);
|
|
1966
1037
|
let contents = {};
|
|
1967
1038
|
contents = (0, import_smithy_client._json)(data);
|
|
1968
|
-
const response = {
|
|
1969
|
-
$metadata: deserializeMetadata(output),
|
|
1970
|
-
...contents
|
|
1971
|
-
};
|
|
1972
|
-
return response;
|
|
1973
|
-
}, "de_ListTagsForResourceCommand");
|
|
1974
|
-
var
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
body: await parseErrorBody(output.body, context)
|
|
1978
|
-
};
|
|
1979
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
|
-
switch (errorCode) {
|
|
1981
|
-
case "AccessDeniedException":
|
|
1982
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1983
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "InternalServerException":
|
|
1985
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1986
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "ResourceNotFoundException":
|
|
1988
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1989
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "ThrottlingException":
|
|
1991
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1992
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1993
|
-
case "ValidationException":
|
|
1994
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1995
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1996
|
-
default:
|
|
1997
|
-
const parsedBody = parsedOutput.body;
|
|
1998
|
-
return throwDefaultError({
|
|
1999
|
-
output,
|
|
2000
|
-
parsedBody,
|
|
2001
|
-
errorCode
|
|
2002
|
-
});
|
|
2003
|
-
}
|
|
2004
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2005
|
-
var de_PutContactPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2006
|
-
if (output.statusCode >= 300) {
|
|
2007
|
-
return de_PutContactPolicyCommandError(output, context);
|
|
2008
|
-
}
|
|
2009
|
-
const data = await parseBody(output.body, context);
|
|
2010
|
-
let contents = {};
|
|
2011
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2012
|
-
const response = {
|
|
2013
|
-
$metadata: deserializeMetadata(output),
|
|
2014
|
-
...contents
|
|
2015
|
-
};
|
|
2016
|
-
return response;
|
|
2017
|
-
}, "de_PutContactPolicyCommand");
|
|
2018
|
-
var de_PutContactPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2019
|
-
const parsedOutput = {
|
|
2020
|
-
...output,
|
|
2021
|
-
body: await parseErrorBody(output.body, context)
|
|
2022
|
-
};
|
|
2023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
|
-
switch (errorCode) {
|
|
2025
|
-
case "AccessDeniedException":
|
|
2026
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
2027
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "ConflictException":
|
|
2029
|
-
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
2030
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "InternalServerException":
|
|
2032
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
2033
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "ResourceNotFoundException":
|
|
2035
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
2036
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "ThrottlingException":
|
|
2038
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
2039
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "ValidationException":
|
|
2041
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
2042
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2043
|
-
default:
|
|
2044
|
-
const parsedBody = parsedOutput.body;
|
|
2045
|
-
return throwDefaultError({
|
|
2046
|
-
output,
|
|
2047
|
-
parsedBody,
|
|
2048
|
-
errorCode
|
|
2049
|
-
});
|
|
1039
|
+
const response = {
|
|
1040
|
+
$metadata: deserializeMetadata(output),
|
|
1041
|
+
...contents
|
|
1042
|
+
};
|
|
1043
|
+
return response;
|
|
1044
|
+
}, "de_ListTagsForResourceCommand");
|
|
1045
|
+
var de_PutContactPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1046
|
+
if (output.statusCode >= 300) {
|
|
1047
|
+
return de_CommandError(output, context);
|
|
2050
1048
|
}
|
|
2051
|
-
|
|
1049
|
+
const data = await parseBody(output.body, context);
|
|
1050
|
+
let contents = {};
|
|
1051
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1052
|
+
const response = {
|
|
1053
|
+
$metadata: deserializeMetadata(output),
|
|
1054
|
+
...contents
|
|
1055
|
+
};
|
|
1056
|
+
return response;
|
|
1057
|
+
}, "de_PutContactPolicyCommand");
|
|
2052
1058
|
var de_SendActivationCodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2053
1059
|
if (output.statusCode >= 300) {
|
|
2054
|
-
return
|
|
1060
|
+
return de_CommandError(output, context);
|
|
2055
1061
|
}
|
|
2056
1062
|
const data = await parseBody(output.body, context);
|
|
2057
1063
|
let contents = {};
|
|
@@ -2062,46 +1068,9 @@ var de_SendActivationCodeCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2062
1068
|
};
|
|
2063
1069
|
return response;
|
|
2064
1070
|
}, "de_SendActivationCodeCommand");
|
|
2065
|
-
var de_SendActivationCodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2066
|
-
const parsedOutput = {
|
|
2067
|
-
...output,
|
|
2068
|
-
body: await parseErrorBody(output.body, context)
|
|
2069
|
-
};
|
|
2070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
|
-
switch (errorCode) {
|
|
2072
|
-
case "AccessDeniedException":
|
|
2073
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
2074
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "DataEncryptionException":
|
|
2076
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
2077
|
-
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "InternalServerException":
|
|
2079
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
2080
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "ResourceNotFoundException":
|
|
2082
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
2083
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "ServiceQuotaExceededException":
|
|
2085
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
|
|
2086
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "ThrottlingException":
|
|
2088
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
2089
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "ValidationException":
|
|
2091
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
2092
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2093
|
-
default:
|
|
2094
|
-
const parsedBody = parsedOutput.body;
|
|
2095
|
-
return throwDefaultError({
|
|
2096
|
-
output,
|
|
2097
|
-
parsedBody,
|
|
2098
|
-
errorCode
|
|
2099
|
-
});
|
|
2100
|
-
}
|
|
2101
|
-
}, "de_SendActivationCodeCommandError");
|
|
2102
1071
|
var de_StartEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2103
1072
|
if (output.statusCode >= 300) {
|
|
2104
|
-
return
|
|
1073
|
+
return de_CommandError(output, context);
|
|
2105
1074
|
}
|
|
2106
1075
|
const data = await parseBody(output.body, context);
|
|
2107
1076
|
let contents = {};
|
|
@@ -2112,43 +1081,9 @@ var de_StartEngagementCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2112
1081
|
};
|
|
2113
1082
|
return response;
|
|
2114
1083
|
}, "de_StartEngagementCommand");
|
|
2115
|
-
var de_StartEngagementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2116
|
-
const parsedOutput = {
|
|
2117
|
-
...output,
|
|
2118
|
-
body: await parseErrorBody(output.body, context)
|
|
2119
|
-
};
|
|
2120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2121
|
-
switch (errorCode) {
|
|
2122
|
-
case "AccessDeniedException":
|
|
2123
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
2124
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "DataEncryptionException":
|
|
2126
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
2127
|
-
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "InternalServerException":
|
|
2129
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
2130
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2131
|
-
case "ResourceNotFoundException":
|
|
2132
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
2133
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2134
|
-
case "ThrottlingException":
|
|
2135
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
2136
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2137
|
-
case "ValidationException":
|
|
2138
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
2139
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2140
|
-
default:
|
|
2141
|
-
const parsedBody = parsedOutput.body;
|
|
2142
|
-
return throwDefaultError({
|
|
2143
|
-
output,
|
|
2144
|
-
parsedBody,
|
|
2145
|
-
errorCode
|
|
2146
|
-
});
|
|
2147
|
-
}
|
|
2148
|
-
}, "de_StartEngagementCommandError");
|
|
2149
1084
|
var de_StopEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2150
1085
|
if (output.statusCode >= 300) {
|
|
2151
|
-
return
|
|
1086
|
+
return de_CommandError(output, context);
|
|
2152
1087
|
}
|
|
2153
1088
|
const data = await parseBody(output.body, context);
|
|
2154
1089
|
let contents = {};
|
|
@@ -2159,40 +1094,9 @@ var de_StopEngagementCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2159
1094
|
};
|
|
2160
1095
|
return response;
|
|
2161
1096
|
}, "de_StopEngagementCommand");
|
|
2162
|
-
var de_StopEngagementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2163
|
-
const parsedOutput = {
|
|
2164
|
-
...output,
|
|
2165
|
-
body: await parseErrorBody(output.body, context)
|
|
2166
|
-
};
|
|
2167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2168
|
-
switch (errorCode) {
|
|
2169
|
-
case "AccessDeniedException":
|
|
2170
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
2171
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "InternalServerException":
|
|
2173
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
2174
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2175
|
-
case "ResourceNotFoundException":
|
|
2176
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
2177
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2178
|
-
case "ThrottlingException":
|
|
2179
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
2180
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2181
|
-
case "ValidationException":
|
|
2182
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
2183
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2184
|
-
default:
|
|
2185
|
-
const parsedBody = parsedOutput.body;
|
|
2186
|
-
return throwDefaultError({
|
|
2187
|
-
output,
|
|
2188
|
-
parsedBody,
|
|
2189
|
-
errorCode
|
|
2190
|
-
});
|
|
2191
|
-
}
|
|
2192
|
-
}, "de_StopEngagementCommandError");
|
|
2193
1097
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2194
1098
|
if (output.statusCode >= 300) {
|
|
2195
|
-
return
|
|
1099
|
+
return de_CommandError(output, context);
|
|
2196
1100
|
}
|
|
2197
1101
|
const data = await parseBody(output.body, context);
|
|
2198
1102
|
let contents = {};
|
|
@@ -2203,43 +1107,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2203
1107
|
};
|
|
2204
1108
|
return response;
|
|
2205
1109
|
}, "de_TagResourceCommand");
|
|
2206
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2207
|
-
const parsedOutput = {
|
|
2208
|
-
...output,
|
|
2209
|
-
body: await parseErrorBody(output.body, context)
|
|
2210
|
-
};
|
|
2211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
|
-
switch (errorCode) {
|
|
2213
|
-
case "AccessDeniedException":
|
|
2214
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
2215
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "InternalServerException":
|
|
2217
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
2218
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2219
|
-
case "ResourceNotFoundException":
|
|
2220
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
2221
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2222
|
-
case "ServiceQuotaExceededException":
|
|
2223
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
|
|
2224
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "ThrottlingException":
|
|
2226
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
2227
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2228
|
-
case "ValidationException":
|
|
2229
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
2230
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2231
|
-
default:
|
|
2232
|
-
const parsedBody = parsedOutput.body;
|
|
2233
|
-
return throwDefaultError({
|
|
2234
|
-
output,
|
|
2235
|
-
parsedBody,
|
|
2236
|
-
errorCode
|
|
2237
|
-
});
|
|
2238
|
-
}
|
|
2239
|
-
}, "de_TagResourceCommandError");
|
|
2240
1110
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2241
1111
|
if (output.statusCode >= 300) {
|
|
2242
|
-
return
|
|
1112
|
+
return de_CommandError(output, context);
|
|
2243
1113
|
}
|
|
2244
1114
|
const data = await parseBody(output.body, context);
|
|
2245
1115
|
let contents = {};
|
|
@@ -2250,40 +1120,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2250
1120
|
};
|
|
2251
1121
|
return response;
|
|
2252
1122
|
}, "de_UntagResourceCommand");
|
|
2253
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2254
|
-
const parsedOutput = {
|
|
2255
|
-
...output,
|
|
2256
|
-
body: await parseErrorBody(output.body, context)
|
|
2257
|
-
};
|
|
2258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2259
|
-
switch (errorCode) {
|
|
2260
|
-
case "AccessDeniedException":
|
|
2261
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
2262
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "InternalServerException":
|
|
2264
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
2265
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2266
|
-
case "ResourceNotFoundException":
|
|
2267
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
2268
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2269
|
-
case "ThrottlingException":
|
|
2270
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
2271
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2272
|
-
case "ValidationException":
|
|
2273
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
2274
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2275
|
-
default:
|
|
2276
|
-
const parsedBody = parsedOutput.body;
|
|
2277
|
-
return throwDefaultError({
|
|
2278
|
-
output,
|
|
2279
|
-
parsedBody,
|
|
2280
|
-
errorCode
|
|
2281
|
-
});
|
|
2282
|
-
}
|
|
2283
|
-
}, "de_UntagResourceCommandError");
|
|
2284
1123
|
var de_UpdateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2285
1124
|
if (output.statusCode >= 300) {
|
|
2286
|
-
return
|
|
1125
|
+
return de_CommandError(output, context);
|
|
2287
1126
|
}
|
|
2288
1127
|
const data = await parseBody(output.body, context);
|
|
2289
1128
|
let contents = {};
|
|
@@ -2294,46 +1133,9 @@ var de_UpdateContactCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2294
1133
|
};
|
|
2295
1134
|
return response;
|
|
2296
1135
|
}, "de_UpdateContactCommand");
|
|
2297
|
-
var de_UpdateContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2298
|
-
const parsedOutput = {
|
|
2299
|
-
...output,
|
|
2300
|
-
body: await parseErrorBody(output.body, context)
|
|
2301
|
-
};
|
|
2302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2303
|
-
switch (errorCode) {
|
|
2304
|
-
case "AccessDeniedException":
|
|
2305
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
2306
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2307
|
-
case "DataEncryptionException":
|
|
2308
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
2309
|
-
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
2310
|
-
case "InternalServerException":
|
|
2311
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
2312
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2313
|
-
case "ResourceNotFoundException":
|
|
2314
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
2315
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2316
|
-
case "ServiceQuotaExceededException":
|
|
2317
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
|
|
2318
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2319
|
-
case "ThrottlingException":
|
|
2320
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
2321
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2322
|
-
case "ValidationException":
|
|
2323
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
2324
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2325
|
-
default:
|
|
2326
|
-
const parsedBody = parsedOutput.body;
|
|
2327
|
-
return throwDefaultError({
|
|
2328
|
-
output,
|
|
2329
|
-
parsedBody,
|
|
2330
|
-
errorCode
|
|
2331
|
-
});
|
|
2332
|
-
}
|
|
2333
|
-
}, "de_UpdateContactCommandError");
|
|
2334
1136
|
var de_UpdateContactChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2335
1137
|
if (output.statusCode >= 300) {
|
|
2336
|
-
return
|
|
1138
|
+
return de_CommandError(output, context);
|
|
2337
1139
|
}
|
|
2338
1140
|
const data = await parseBody(output.body, context);
|
|
2339
1141
|
let contents = {};
|
|
@@ -2344,46 +1146,9 @@ var de_UpdateContactChannelCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2344
1146
|
};
|
|
2345
1147
|
return response;
|
|
2346
1148
|
}, "de_UpdateContactChannelCommand");
|
|
2347
|
-
var de_UpdateContactChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2348
|
-
const parsedOutput = {
|
|
2349
|
-
...output,
|
|
2350
|
-
body: await parseErrorBody(output.body, context)
|
|
2351
|
-
};
|
|
2352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2353
|
-
switch (errorCode) {
|
|
2354
|
-
case "AccessDeniedException":
|
|
2355
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
2356
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2357
|
-
case "ConflictException":
|
|
2358
|
-
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
2359
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2360
|
-
case "DataEncryptionException":
|
|
2361
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
2362
|
-
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
2363
|
-
case "InternalServerException":
|
|
2364
|
-
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
2365
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2366
|
-
case "ResourceNotFoundException":
|
|
2367
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
2368
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "ThrottlingException":
|
|
2370
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
2371
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2372
|
-
case "ValidationException":
|
|
2373
|
-
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
2374
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2375
|
-
default:
|
|
2376
|
-
const parsedBody = parsedOutput.body;
|
|
2377
|
-
return throwDefaultError({
|
|
2378
|
-
output,
|
|
2379
|
-
parsedBody,
|
|
2380
|
-
errorCode
|
|
2381
|
-
});
|
|
2382
|
-
}
|
|
2383
|
-
}, "de_UpdateContactChannelCommandError");
|
|
2384
1149
|
var de_UpdateRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2385
1150
|
if (output.statusCode >= 300) {
|
|
2386
|
-
return
|
|
1151
|
+
return de_CommandError(output, context);
|
|
2387
1152
|
}
|
|
2388
1153
|
const data = await parseBody(output.body, context);
|
|
2389
1154
|
let contents = {};
|
|
@@ -2394,7 +1159,7 @@ var de_UpdateRotationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2394
1159
|
};
|
|
2395
1160
|
return response;
|
|
2396
1161
|
}, "de_UpdateRotationCommand");
|
|
2397
|
-
var
|
|
1162
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2398
1163
|
const parsedOutput = {
|
|
2399
1164
|
...output,
|
|
2400
1165
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2404,9 +1169,6 @@ var de_UpdateRotationCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
2404
1169
|
case "AccessDeniedException":
|
|
2405
1170
|
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
2406
1171
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2407
|
-
case "ConflictException":
|
|
2408
|
-
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
2409
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2410
1172
|
case "InternalServerException":
|
|
2411
1173
|
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
2412
1174
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -2419,6 +1181,15 @@ var de_UpdateRotationCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
2419
1181
|
case "ValidationException":
|
|
2420
1182
|
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
2421
1183
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1184
|
+
case "ConflictException":
|
|
1185
|
+
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
1186
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1187
|
+
case "DataEncryptionException":
|
|
1188
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
1189
|
+
throw await de_DataEncryptionExceptionRes(parsedOutput, context);
|
|
1190
|
+
case "ServiceQuotaExceededException":
|
|
1191
|
+
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
|
|
1192
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2422
1193
|
default:
|
|
2423
1194
|
const parsedBody = parsedOutput.body;
|
|
2424
1195
|
return throwDefaultError({
|
|
@@ -2427,7 +1198,7 @@ var de_UpdateRotationCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
2427
1198
|
errorCode
|
|
2428
1199
|
});
|
|
2429
1200
|
}
|
|
2430
|
-
}, "
|
|
1201
|
+
}, "de_CommandError");
|
|
2431
1202
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2432
1203
|
const body = parsedOutput.body;
|
|
2433
1204
|
const deserialized = (0, import_smithy_client._json)(body);
|