@aws-sdk/client-transfer 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 +265 -466
- package/dist-es/protocols/Aws_json1_1.js +425 -467
- package/package.json +11 -6
|
@@ -556,7 +556,6 @@ const deserializeAws_json1_1CreateAccessCommandError = async (output, context) =
|
|
|
556
556
|
...output,
|
|
557
557
|
body: await parseBody(output.body, context),
|
|
558
558
|
};
|
|
559
|
-
let response;
|
|
560
559
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
561
560
|
switch (errorCode) {
|
|
562
561
|
case "InternalServiceError":
|
|
@@ -576,14 +575,12 @@ const deserializeAws_json1_1CreateAccessCommandError = async (output, context) =
|
|
|
576
575
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
577
576
|
default:
|
|
578
577
|
const parsedBody = parsedOutput.body;
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
$metadata,
|
|
578
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
579
|
+
output,
|
|
580
|
+
parsedBody,
|
|
581
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
582
|
+
errorCode,
|
|
585
583
|
});
|
|
586
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
587
584
|
}
|
|
588
585
|
};
|
|
589
586
|
const deserializeAws_json1_1CreateAgreementCommand = async (output, context) => {
|
|
@@ -605,7 +602,6 @@ const deserializeAws_json1_1CreateAgreementCommandError = async (output, context
|
|
|
605
602
|
...output,
|
|
606
603
|
body: await parseBody(output.body, context),
|
|
607
604
|
};
|
|
608
|
-
let response;
|
|
609
605
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
606
|
switch (errorCode) {
|
|
611
607
|
case "InternalServiceError":
|
|
@@ -625,14 +621,12 @@ const deserializeAws_json1_1CreateAgreementCommandError = async (output, context
|
|
|
625
621
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
626
622
|
default:
|
|
627
623
|
const parsedBody = parsedOutput.body;
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
$metadata,
|
|
624
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
625
|
+
output,
|
|
626
|
+
parsedBody,
|
|
627
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
628
|
+
errorCode,
|
|
634
629
|
});
|
|
635
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
636
630
|
}
|
|
637
631
|
};
|
|
638
632
|
const deserializeAws_json1_1CreateConnectorCommand = async (output, context) => {
|
|
@@ -654,7 +648,6 @@ const deserializeAws_json1_1CreateConnectorCommandError = async (output, context
|
|
|
654
648
|
...output,
|
|
655
649
|
body: await parseBody(output.body, context),
|
|
656
650
|
};
|
|
657
|
-
let response;
|
|
658
651
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
652
|
switch (errorCode) {
|
|
660
653
|
case "InternalServiceError":
|
|
@@ -674,14 +667,12 @@ const deserializeAws_json1_1CreateConnectorCommandError = async (output, context
|
|
|
674
667
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
675
668
|
default:
|
|
676
669
|
const parsedBody = parsedOutput.body;
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
$metadata,
|
|
670
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
671
|
+
output,
|
|
672
|
+
parsedBody,
|
|
673
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
674
|
+
errorCode,
|
|
683
675
|
});
|
|
684
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
685
676
|
}
|
|
686
677
|
};
|
|
687
678
|
const deserializeAws_json1_1CreateProfileCommand = async (output, context) => {
|
|
@@ -703,7 +694,6 @@ const deserializeAws_json1_1CreateProfileCommandError = async (output, context)
|
|
|
703
694
|
...output,
|
|
704
695
|
body: await parseBody(output.body, context),
|
|
705
696
|
};
|
|
706
|
-
let response;
|
|
707
697
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
708
698
|
switch (errorCode) {
|
|
709
699
|
case "InternalServiceError":
|
|
@@ -720,14 +710,12 @@ const deserializeAws_json1_1CreateProfileCommandError = async (output, context)
|
|
|
720
710
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
721
711
|
default:
|
|
722
712
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
$metadata,
|
|
713
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
714
|
+
output,
|
|
715
|
+
parsedBody,
|
|
716
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
717
|
+
errorCode,
|
|
729
718
|
});
|
|
730
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
731
719
|
}
|
|
732
720
|
};
|
|
733
721
|
const deserializeAws_json1_1CreateServerCommand = async (output, context) => {
|
|
@@ -749,7 +737,6 @@ const deserializeAws_json1_1CreateServerCommandError = async (output, context) =
|
|
|
749
737
|
...output,
|
|
750
738
|
body: await parseBody(output.body, context),
|
|
751
739
|
};
|
|
752
|
-
let response;
|
|
753
740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
754
741
|
switch (errorCode) {
|
|
755
742
|
case "AccessDeniedException":
|
|
@@ -775,14 +762,12 @@ const deserializeAws_json1_1CreateServerCommandError = async (output, context) =
|
|
|
775
762
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
776
763
|
default:
|
|
777
764
|
const parsedBody = parsedOutput.body;
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
$metadata,
|
|
765
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
766
|
+
output,
|
|
767
|
+
parsedBody,
|
|
768
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
769
|
+
errorCode,
|
|
784
770
|
});
|
|
785
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
786
771
|
}
|
|
787
772
|
};
|
|
788
773
|
const deserializeAws_json1_1CreateUserCommand = async (output, context) => {
|
|
@@ -804,7 +789,6 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
804
789
|
...output,
|
|
805
790
|
body: await parseBody(output.body, context),
|
|
806
791
|
};
|
|
807
|
-
let response;
|
|
808
792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
793
|
switch (errorCode) {
|
|
810
794
|
case "InternalServiceError":
|
|
@@ -824,14 +808,12 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
824
808
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
825
809
|
default:
|
|
826
810
|
const parsedBody = parsedOutput.body;
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
$metadata,
|
|
811
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
812
|
+
output,
|
|
813
|
+
parsedBody,
|
|
814
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
815
|
+
errorCode,
|
|
833
816
|
});
|
|
834
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
835
817
|
}
|
|
836
818
|
};
|
|
837
819
|
const deserializeAws_json1_1CreateWorkflowCommand = async (output, context) => {
|
|
@@ -853,7 +835,6 @@ const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context)
|
|
|
853
835
|
...output,
|
|
854
836
|
body: await parseBody(output.body, context),
|
|
855
837
|
};
|
|
856
|
-
let response;
|
|
857
838
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
858
839
|
switch (errorCode) {
|
|
859
840
|
case "AccessDeniedException":
|
|
@@ -876,14 +857,12 @@ const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context)
|
|
|
876
857
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
877
858
|
default:
|
|
878
859
|
const parsedBody = parsedOutput.body;
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
$metadata,
|
|
860
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
861
|
+
output,
|
|
862
|
+
parsedBody,
|
|
863
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
864
|
+
errorCode,
|
|
885
865
|
});
|
|
886
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
887
866
|
}
|
|
888
867
|
};
|
|
889
868
|
const deserializeAws_json1_1DeleteAccessCommand = async (output, context) => {
|
|
@@ -902,7 +881,6 @@ const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) =
|
|
|
902
881
|
...output,
|
|
903
882
|
body: await parseBody(output.body, context),
|
|
904
883
|
};
|
|
905
|
-
let response;
|
|
906
884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
907
885
|
switch (errorCode) {
|
|
908
886
|
case "InternalServiceError":
|
|
@@ -919,14 +897,12 @@ const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) =
|
|
|
919
897
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
920
898
|
default:
|
|
921
899
|
const parsedBody = parsedOutput.body;
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
$metadata,
|
|
900
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
901
|
+
output,
|
|
902
|
+
parsedBody,
|
|
903
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
904
|
+
errorCode,
|
|
928
905
|
});
|
|
929
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
930
906
|
}
|
|
931
907
|
};
|
|
932
908
|
const deserializeAws_json1_1DeleteAgreementCommand = async (output, context) => {
|
|
@@ -945,7 +921,6 @@ const deserializeAws_json1_1DeleteAgreementCommandError = async (output, context
|
|
|
945
921
|
...output,
|
|
946
922
|
body: await parseBody(output.body, context),
|
|
947
923
|
};
|
|
948
|
-
let response;
|
|
949
924
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
950
925
|
switch (errorCode) {
|
|
951
926
|
case "InternalServiceError":
|
|
@@ -962,14 +937,12 @@ const deserializeAws_json1_1DeleteAgreementCommandError = async (output, context
|
|
|
962
937
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
963
938
|
default:
|
|
964
939
|
const parsedBody = parsedOutput.body;
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
$metadata,
|
|
940
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
941
|
+
output,
|
|
942
|
+
parsedBody,
|
|
943
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
944
|
+
errorCode,
|
|
971
945
|
});
|
|
972
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
973
946
|
}
|
|
974
947
|
};
|
|
975
948
|
const deserializeAws_json1_1DeleteCertificateCommand = async (output, context) => {
|
|
@@ -988,7 +961,6 @@ const deserializeAws_json1_1DeleteCertificateCommandError = async (output, conte
|
|
|
988
961
|
...output,
|
|
989
962
|
body: await parseBody(output.body, context),
|
|
990
963
|
};
|
|
991
|
-
let response;
|
|
992
964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
965
|
switch (errorCode) {
|
|
994
966
|
case "InternalServiceError":
|
|
@@ -1005,14 +977,12 @@ const deserializeAws_json1_1DeleteCertificateCommandError = async (output, conte
|
|
|
1005
977
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1006
978
|
default:
|
|
1007
979
|
const parsedBody = parsedOutput.body;
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
$metadata,
|
|
980
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
981
|
+
output,
|
|
982
|
+
parsedBody,
|
|
983
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
984
|
+
errorCode,
|
|
1014
985
|
});
|
|
1015
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1016
986
|
}
|
|
1017
987
|
};
|
|
1018
988
|
const deserializeAws_json1_1DeleteConnectorCommand = async (output, context) => {
|
|
@@ -1031,7 +1001,6 @@ const deserializeAws_json1_1DeleteConnectorCommandError = async (output, context
|
|
|
1031
1001
|
...output,
|
|
1032
1002
|
body: await parseBody(output.body, context),
|
|
1033
1003
|
};
|
|
1034
|
-
let response;
|
|
1035
1004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
1005
|
switch (errorCode) {
|
|
1037
1006
|
case "InternalServiceError":
|
|
@@ -1048,14 +1017,12 @@ const deserializeAws_json1_1DeleteConnectorCommandError = async (output, context
|
|
|
1048
1017
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1049
1018
|
default:
|
|
1050
1019
|
const parsedBody = parsedOutput.body;
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
$metadata,
|
|
1020
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1021
|
+
output,
|
|
1022
|
+
parsedBody,
|
|
1023
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1024
|
+
errorCode,
|
|
1057
1025
|
});
|
|
1058
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1059
1026
|
}
|
|
1060
1027
|
};
|
|
1061
1028
|
const deserializeAws_json1_1DeleteProfileCommand = async (output, context) => {
|
|
@@ -1074,7 +1041,6 @@ const deserializeAws_json1_1DeleteProfileCommandError = async (output, context)
|
|
|
1074
1041
|
...output,
|
|
1075
1042
|
body: await parseBody(output.body, context),
|
|
1076
1043
|
};
|
|
1077
|
-
let response;
|
|
1078
1044
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1045
|
switch (errorCode) {
|
|
1080
1046
|
case "InternalServiceError":
|
|
@@ -1091,14 +1057,12 @@ const deserializeAws_json1_1DeleteProfileCommandError = async (output, context)
|
|
|
1091
1057
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1092
1058
|
default:
|
|
1093
1059
|
const parsedBody = parsedOutput.body;
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
$metadata,
|
|
1060
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1061
|
+
output,
|
|
1062
|
+
parsedBody,
|
|
1063
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1064
|
+
errorCode,
|
|
1100
1065
|
});
|
|
1101
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1102
1066
|
}
|
|
1103
1067
|
};
|
|
1104
1068
|
const deserializeAws_json1_1DeleteServerCommand = async (output, context) => {
|
|
@@ -1117,7 +1081,6 @@ const deserializeAws_json1_1DeleteServerCommandError = async (output, context) =
|
|
|
1117
1081
|
...output,
|
|
1118
1082
|
body: await parseBody(output.body, context),
|
|
1119
1083
|
};
|
|
1120
|
-
let response;
|
|
1121
1084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
1085
|
switch (errorCode) {
|
|
1123
1086
|
case "AccessDeniedException":
|
|
@@ -1137,14 +1100,12 @@ const deserializeAws_json1_1DeleteServerCommandError = async (output, context) =
|
|
|
1137
1100
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1138
1101
|
default:
|
|
1139
1102
|
const parsedBody = parsedOutput.body;
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
$metadata,
|
|
1103
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1104
|
+
output,
|
|
1105
|
+
parsedBody,
|
|
1106
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1107
|
+
errorCode,
|
|
1146
1108
|
});
|
|
1147
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1148
1109
|
}
|
|
1149
1110
|
};
|
|
1150
1111
|
const deserializeAws_json1_1DeleteSshPublicKeyCommand = async (output, context) => {
|
|
@@ -1163,7 +1124,6 @@ const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, cont
|
|
|
1163
1124
|
...output,
|
|
1164
1125
|
body: await parseBody(output.body, context),
|
|
1165
1126
|
};
|
|
1166
|
-
let response;
|
|
1167
1127
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
1128
|
switch (errorCode) {
|
|
1169
1129
|
case "InternalServiceError":
|
|
@@ -1183,14 +1143,12 @@ const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, cont
|
|
|
1183
1143
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1184
1144
|
default:
|
|
1185
1145
|
const parsedBody = parsedOutput.body;
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
$metadata,
|
|
1146
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1147
|
+
output,
|
|
1148
|
+
parsedBody,
|
|
1149
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1150
|
+
errorCode,
|
|
1192
1151
|
});
|
|
1193
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1194
1152
|
}
|
|
1195
1153
|
};
|
|
1196
1154
|
const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
|
|
@@ -1209,7 +1167,6 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
1209
1167
|
...output,
|
|
1210
1168
|
body: await parseBody(output.body, context),
|
|
1211
1169
|
};
|
|
1212
|
-
let response;
|
|
1213
1170
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
1171
|
switch (errorCode) {
|
|
1215
1172
|
case "InternalServiceError":
|
|
@@ -1226,14 +1183,12 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
1226
1183
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1227
1184
|
default:
|
|
1228
1185
|
const parsedBody = parsedOutput.body;
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
$metadata,
|
|
1186
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1187
|
+
output,
|
|
1188
|
+
parsedBody,
|
|
1189
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1190
|
+
errorCode,
|
|
1235
1191
|
});
|
|
1236
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1237
1192
|
}
|
|
1238
1193
|
};
|
|
1239
1194
|
const deserializeAws_json1_1DeleteWorkflowCommand = async (output, context) => {
|
|
@@ -1252,7 +1207,6 @@ const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context)
|
|
|
1252
1207
|
...output,
|
|
1253
1208
|
body: await parseBody(output.body, context),
|
|
1254
1209
|
};
|
|
1255
|
-
let response;
|
|
1256
1210
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
1211
|
switch (errorCode) {
|
|
1258
1212
|
case "AccessDeniedException":
|
|
@@ -1272,14 +1226,12 @@ const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context)
|
|
|
1272
1226
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1273
1227
|
default:
|
|
1274
1228
|
const parsedBody = parsedOutput.body;
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
$metadata,
|
|
1229
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1230
|
+
output,
|
|
1231
|
+
parsedBody,
|
|
1232
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1233
|
+
errorCode,
|
|
1281
1234
|
});
|
|
1282
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1283
1235
|
}
|
|
1284
1236
|
};
|
|
1285
1237
|
const deserializeAws_json1_1DescribeAccessCommand = async (output, context) => {
|
|
@@ -1301,7 +1253,6 @@ const deserializeAws_json1_1DescribeAccessCommandError = async (output, context)
|
|
|
1301
1253
|
...output,
|
|
1302
1254
|
body: await parseBody(output.body, context),
|
|
1303
1255
|
};
|
|
1304
|
-
let response;
|
|
1305
1256
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
1257
|
switch (errorCode) {
|
|
1307
1258
|
case "InternalServiceError":
|
|
@@ -1318,14 +1269,12 @@ const deserializeAws_json1_1DescribeAccessCommandError = async (output, context)
|
|
|
1318
1269
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1319
1270
|
default:
|
|
1320
1271
|
const parsedBody = parsedOutput.body;
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
$metadata,
|
|
1272
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1273
|
+
output,
|
|
1274
|
+
parsedBody,
|
|
1275
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1276
|
+
errorCode,
|
|
1327
1277
|
});
|
|
1328
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1329
1278
|
}
|
|
1330
1279
|
};
|
|
1331
1280
|
const deserializeAws_json1_1DescribeAgreementCommand = async (output, context) => {
|
|
@@ -1347,7 +1296,6 @@ const deserializeAws_json1_1DescribeAgreementCommandError = async (output, conte
|
|
|
1347
1296
|
...output,
|
|
1348
1297
|
body: await parseBody(output.body, context),
|
|
1349
1298
|
};
|
|
1350
|
-
let response;
|
|
1351
1299
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
1300
|
switch (errorCode) {
|
|
1353
1301
|
case "InternalServiceError":
|
|
@@ -1364,14 +1312,12 @@ const deserializeAws_json1_1DescribeAgreementCommandError = async (output, conte
|
|
|
1364
1312
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1365
1313
|
default:
|
|
1366
1314
|
const parsedBody = parsedOutput.body;
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
$metadata,
|
|
1315
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1316
|
+
output,
|
|
1317
|
+
parsedBody,
|
|
1318
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1319
|
+
errorCode,
|
|
1373
1320
|
});
|
|
1374
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1375
1321
|
}
|
|
1376
1322
|
};
|
|
1377
1323
|
const deserializeAws_json1_1DescribeCertificateCommand = async (output, context) => {
|
|
@@ -1393,7 +1339,6 @@ const deserializeAws_json1_1DescribeCertificateCommandError = async (output, con
|
|
|
1393
1339
|
...output,
|
|
1394
1340
|
body: await parseBody(output.body, context),
|
|
1395
1341
|
};
|
|
1396
|
-
let response;
|
|
1397
1342
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
1343
|
switch (errorCode) {
|
|
1399
1344
|
case "InternalServiceError":
|
|
@@ -1410,14 +1355,12 @@ const deserializeAws_json1_1DescribeCertificateCommandError = async (output, con
|
|
|
1410
1355
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1411
1356
|
default:
|
|
1412
1357
|
const parsedBody = parsedOutput.body;
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
$metadata,
|
|
1358
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1359
|
+
output,
|
|
1360
|
+
parsedBody,
|
|
1361
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1362
|
+
errorCode,
|
|
1419
1363
|
});
|
|
1420
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1421
1364
|
}
|
|
1422
1365
|
};
|
|
1423
1366
|
const deserializeAws_json1_1DescribeConnectorCommand = async (output, context) => {
|
|
@@ -1439,7 +1382,6 @@ const deserializeAws_json1_1DescribeConnectorCommandError = async (output, conte
|
|
|
1439
1382
|
...output,
|
|
1440
1383
|
body: await parseBody(output.body, context),
|
|
1441
1384
|
};
|
|
1442
|
-
let response;
|
|
1443
1385
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1444
1386
|
switch (errorCode) {
|
|
1445
1387
|
case "InternalServiceError":
|
|
@@ -1456,14 +1398,12 @@ const deserializeAws_json1_1DescribeConnectorCommandError = async (output, conte
|
|
|
1456
1398
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1457
1399
|
default:
|
|
1458
1400
|
const parsedBody = parsedOutput.body;
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
$metadata,
|
|
1401
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1402
|
+
output,
|
|
1403
|
+
parsedBody,
|
|
1404
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1405
|
+
errorCode,
|
|
1465
1406
|
});
|
|
1466
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1467
1407
|
}
|
|
1468
1408
|
};
|
|
1469
1409
|
const deserializeAws_json1_1DescribeExecutionCommand = async (output, context) => {
|
|
@@ -1485,7 +1425,6 @@ const deserializeAws_json1_1DescribeExecutionCommandError = async (output, conte
|
|
|
1485
1425
|
...output,
|
|
1486
1426
|
body: await parseBody(output.body, context),
|
|
1487
1427
|
};
|
|
1488
|
-
let response;
|
|
1489
1428
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
1429
|
switch (errorCode) {
|
|
1491
1430
|
case "InternalServiceError":
|
|
@@ -1502,14 +1441,12 @@ const deserializeAws_json1_1DescribeExecutionCommandError = async (output, conte
|
|
|
1502
1441
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1503
1442
|
default:
|
|
1504
1443
|
const parsedBody = parsedOutput.body;
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
$metadata,
|
|
1444
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1445
|
+
output,
|
|
1446
|
+
parsedBody,
|
|
1447
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1448
|
+
errorCode,
|
|
1511
1449
|
});
|
|
1512
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1513
1450
|
}
|
|
1514
1451
|
};
|
|
1515
1452
|
const deserializeAws_json1_1DescribeProfileCommand = async (output, context) => {
|
|
@@ -1531,7 +1468,6 @@ const deserializeAws_json1_1DescribeProfileCommandError = async (output, context
|
|
|
1531
1468
|
...output,
|
|
1532
1469
|
body: await parseBody(output.body, context),
|
|
1533
1470
|
};
|
|
1534
|
-
let response;
|
|
1535
1471
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
1472
|
switch (errorCode) {
|
|
1537
1473
|
case "InternalServiceError":
|
|
@@ -1548,14 +1484,12 @@ const deserializeAws_json1_1DescribeProfileCommandError = async (output, context
|
|
|
1548
1484
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1549
1485
|
default:
|
|
1550
1486
|
const parsedBody = parsedOutput.body;
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
$metadata,
|
|
1487
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1488
|
+
output,
|
|
1489
|
+
parsedBody,
|
|
1490
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1491
|
+
errorCode,
|
|
1557
1492
|
});
|
|
1558
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1559
1493
|
}
|
|
1560
1494
|
};
|
|
1561
1495
|
const deserializeAws_json1_1DescribeSecurityPolicyCommand = async (output, context) => {
|
|
@@ -1577,7 +1511,6 @@ const deserializeAws_json1_1DescribeSecurityPolicyCommandError = async (output,
|
|
|
1577
1511
|
...output,
|
|
1578
1512
|
body: await parseBody(output.body, context),
|
|
1579
1513
|
};
|
|
1580
|
-
let response;
|
|
1581
1514
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
1515
|
switch (errorCode) {
|
|
1583
1516
|
case "InternalServiceError":
|
|
@@ -1594,14 +1527,12 @@ const deserializeAws_json1_1DescribeSecurityPolicyCommandError = async (output,
|
|
|
1594
1527
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1595
1528
|
default:
|
|
1596
1529
|
const parsedBody = parsedOutput.body;
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
$metadata,
|
|
1530
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1531
|
+
output,
|
|
1532
|
+
parsedBody,
|
|
1533
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1534
|
+
errorCode,
|
|
1603
1535
|
});
|
|
1604
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1605
1536
|
}
|
|
1606
1537
|
};
|
|
1607
1538
|
const deserializeAws_json1_1DescribeServerCommand = async (output, context) => {
|
|
@@ -1623,7 +1554,6 @@ const deserializeAws_json1_1DescribeServerCommandError = async (output, context)
|
|
|
1623
1554
|
...output,
|
|
1624
1555
|
body: await parseBody(output.body, context),
|
|
1625
1556
|
};
|
|
1626
|
-
let response;
|
|
1627
1557
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
1558
|
switch (errorCode) {
|
|
1629
1559
|
case "InternalServiceError":
|
|
@@ -1640,14 +1570,12 @@ const deserializeAws_json1_1DescribeServerCommandError = async (output, context)
|
|
|
1640
1570
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1641
1571
|
default:
|
|
1642
1572
|
const parsedBody = parsedOutput.body;
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
$metadata,
|
|
1573
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1574
|
+
output,
|
|
1575
|
+
parsedBody,
|
|
1576
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1577
|
+
errorCode,
|
|
1649
1578
|
});
|
|
1650
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1651
1579
|
}
|
|
1652
1580
|
};
|
|
1653
1581
|
const deserializeAws_json1_1DescribeUserCommand = async (output, context) => {
|
|
@@ -1669,7 +1597,6 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
1669
1597
|
...output,
|
|
1670
1598
|
body: await parseBody(output.body, context),
|
|
1671
1599
|
};
|
|
1672
|
-
let response;
|
|
1673
1600
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1601
|
switch (errorCode) {
|
|
1675
1602
|
case "InternalServiceError":
|
|
@@ -1686,14 +1613,12 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
1686
1613
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1687
1614
|
default:
|
|
1688
1615
|
const parsedBody = parsedOutput.body;
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
$metadata,
|
|
1616
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1617
|
+
output,
|
|
1618
|
+
parsedBody,
|
|
1619
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1620
|
+
errorCode,
|
|
1695
1621
|
});
|
|
1696
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1697
1622
|
}
|
|
1698
1623
|
};
|
|
1699
1624
|
const deserializeAws_json1_1DescribeWorkflowCommand = async (output, context) => {
|
|
@@ -1715,7 +1640,6 @@ const deserializeAws_json1_1DescribeWorkflowCommandError = async (output, contex
|
|
|
1715
1640
|
...output,
|
|
1716
1641
|
body: await parseBody(output.body, context),
|
|
1717
1642
|
};
|
|
1718
|
-
let response;
|
|
1719
1643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
1644
|
switch (errorCode) {
|
|
1721
1645
|
case "InternalServiceError":
|
|
@@ -1732,14 +1656,12 @@ const deserializeAws_json1_1DescribeWorkflowCommandError = async (output, contex
|
|
|
1732
1656
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1733
1657
|
default:
|
|
1734
1658
|
const parsedBody = parsedOutput.body;
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
$metadata,
|
|
1659
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1660
|
+
output,
|
|
1661
|
+
parsedBody,
|
|
1662
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1663
|
+
errorCode,
|
|
1741
1664
|
});
|
|
1742
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1743
1665
|
}
|
|
1744
1666
|
};
|
|
1745
1667
|
const deserializeAws_json1_1ImportCertificateCommand = async (output, context) => {
|
|
@@ -1761,7 +1683,6 @@ const deserializeAws_json1_1ImportCertificateCommandError = async (output, conte
|
|
|
1761
1683
|
...output,
|
|
1762
1684
|
body: await parseBody(output.body, context),
|
|
1763
1685
|
};
|
|
1764
|
-
let response;
|
|
1765
1686
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
1687
|
switch (errorCode) {
|
|
1767
1688
|
case "InternalServiceError":
|
|
@@ -1778,14 +1699,12 @@ const deserializeAws_json1_1ImportCertificateCommandError = async (output, conte
|
|
|
1778
1699
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1779
1700
|
default:
|
|
1780
1701
|
const parsedBody = parsedOutput.body;
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
$metadata,
|
|
1702
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1703
|
+
output,
|
|
1704
|
+
parsedBody,
|
|
1705
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1706
|
+
errorCode,
|
|
1787
1707
|
});
|
|
1788
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1789
1708
|
}
|
|
1790
1709
|
};
|
|
1791
1710
|
const deserializeAws_json1_1ImportSshPublicKeyCommand = async (output, context) => {
|
|
@@ -1807,7 +1726,6 @@ const deserializeAws_json1_1ImportSshPublicKeyCommandError = async (output, cont
|
|
|
1807
1726
|
...output,
|
|
1808
1727
|
body: await parseBody(output.body, context),
|
|
1809
1728
|
};
|
|
1810
|
-
let response;
|
|
1811
1729
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1812
1730
|
switch (errorCode) {
|
|
1813
1731
|
case "InternalServiceError":
|
|
@@ -1830,14 +1748,12 @@ const deserializeAws_json1_1ImportSshPublicKeyCommandError = async (output, cont
|
|
|
1830
1748
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1831
1749
|
default:
|
|
1832
1750
|
const parsedBody = parsedOutput.body;
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
$metadata,
|
|
1751
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1752
|
+
output,
|
|
1753
|
+
parsedBody,
|
|
1754
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1755
|
+
errorCode,
|
|
1839
1756
|
});
|
|
1840
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1841
1757
|
}
|
|
1842
1758
|
};
|
|
1843
1759
|
const deserializeAws_json1_1ListAccessesCommand = async (output, context) => {
|
|
@@ -1859,7 +1775,6 @@ const deserializeAws_json1_1ListAccessesCommandError = async (output, context) =
|
|
|
1859
1775
|
...output,
|
|
1860
1776
|
body: await parseBody(output.body, context),
|
|
1861
1777
|
};
|
|
1862
|
-
let response;
|
|
1863
1778
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
1779
|
switch (errorCode) {
|
|
1865
1780
|
case "InternalServiceError":
|
|
@@ -1879,14 +1794,12 @@ const deserializeAws_json1_1ListAccessesCommandError = async (output, context) =
|
|
|
1879
1794
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1880
1795
|
default:
|
|
1881
1796
|
const parsedBody = parsedOutput.body;
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
$metadata,
|
|
1797
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1798
|
+
output,
|
|
1799
|
+
parsedBody,
|
|
1800
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1801
|
+
errorCode,
|
|
1888
1802
|
});
|
|
1889
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1890
1803
|
}
|
|
1891
1804
|
};
|
|
1892
1805
|
const deserializeAws_json1_1ListAgreementsCommand = async (output, context) => {
|
|
@@ -1908,7 +1821,6 @@ const deserializeAws_json1_1ListAgreementsCommandError = async (output, context)
|
|
|
1908
1821
|
...output,
|
|
1909
1822
|
body: await parseBody(output.body, context),
|
|
1910
1823
|
};
|
|
1911
|
-
let response;
|
|
1912
1824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1913
1825
|
switch (errorCode) {
|
|
1914
1826
|
case "InternalServiceError":
|
|
@@ -1928,14 +1840,12 @@ const deserializeAws_json1_1ListAgreementsCommandError = async (output, context)
|
|
|
1928
1840
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1929
1841
|
default:
|
|
1930
1842
|
const parsedBody = parsedOutput.body;
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
$metadata,
|
|
1843
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1844
|
+
output,
|
|
1845
|
+
parsedBody,
|
|
1846
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1847
|
+
errorCode,
|
|
1937
1848
|
});
|
|
1938
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1939
1849
|
}
|
|
1940
1850
|
};
|
|
1941
1851
|
const deserializeAws_json1_1ListCertificatesCommand = async (output, context) => {
|
|
@@ -1957,7 +1867,6 @@ const deserializeAws_json1_1ListCertificatesCommandError = async (output, contex
|
|
|
1957
1867
|
...output,
|
|
1958
1868
|
body: await parseBody(output.body, context),
|
|
1959
1869
|
};
|
|
1960
|
-
let response;
|
|
1961
1870
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1962
1871
|
switch (errorCode) {
|
|
1963
1872
|
case "InternalServiceError":
|
|
@@ -1977,14 +1886,12 @@ const deserializeAws_json1_1ListCertificatesCommandError = async (output, contex
|
|
|
1977
1886
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1978
1887
|
default:
|
|
1979
1888
|
const parsedBody = parsedOutput.body;
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
$metadata,
|
|
1889
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1890
|
+
output,
|
|
1891
|
+
parsedBody,
|
|
1892
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1893
|
+
errorCode,
|
|
1986
1894
|
});
|
|
1987
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1988
1895
|
}
|
|
1989
1896
|
};
|
|
1990
1897
|
const deserializeAws_json1_1ListConnectorsCommand = async (output, context) => {
|
|
@@ -2006,7 +1913,6 @@ const deserializeAws_json1_1ListConnectorsCommandError = async (output, context)
|
|
|
2006
1913
|
...output,
|
|
2007
1914
|
body: await parseBody(output.body, context),
|
|
2008
1915
|
};
|
|
2009
|
-
let response;
|
|
2010
1916
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
1917
|
switch (errorCode) {
|
|
2012
1918
|
case "InternalServiceError":
|
|
@@ -2026,14 +1932,12 @@ const deserializeAws_json1_1ListConnectorsCommandError = async (output, context)
|
|
|
2026
1932
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2027
1933
|
default:
|
|
2028
1934
|
const parsedBody = parsedOutput.body;
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
$metadata,
|
|
1935
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1936
|
+
output,
|
|
1937
|
+
parsedBody,
|
|
1938
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1939
|
+
errorCode,
|
|
2035
1940
|
});
|
|
2036
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2037
1941
|
}
|
|
2038
1942
|
};
|
|
2039
1943
|
const deserializeAws_json1_1ListExecutionsCommand = async (output, context) => {
|
|
@@ -2055,7 +1959,6 @@ const deserializeAws_json1_1ListExecutionsCommandError = async (output, context)
|
|
|
2055
1959
|
...output,
|
|
2056
1960
|
body: await parseBody(output.body, context),
|
|
2057
1961
|
};
|
|
2058
|
-
let response;
|
|
2059
1962
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
1963
|
switch (errorCode) {
|
|
2061
1964
|
case "InternalServiceError":
|
|
@@ -2075,14 +1978,12 @@ const deserializeAws_json1_1ListExecutionsCommandError = async (output, context)
|
|
|
2075
1978
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2076
1979
|
default:
|
|
2077
1980
|
const parsedBody = parsedOutput.body;
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
$metadata,
|
|
1981
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1982
|
+
output,
|
|
1983
|
+
parsedBody,
|
|
1984
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1985
|
+
errorCode,
|
|
2084
1986
|
});
|
|
2085
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2086
1987
|
}
|
|
2087
1988
|
};
|
|
2088
1989
|
const deserializeAws_json1_1ListProfilesCommand = async (output, context) => {
|
|
@@ -2104,7 +2005,6 @@ const deserializeAws_json1_1ListProfilesCommandError = async (output, context) =
|
|
|
2104
2005
|
...output,
|
|
2105
2006
|
body: await parseBody(output.body, context),
|
|
2106
2007
|
};
|
|
2107
|
-
let response;
|
|
2108
2008
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2109
2009
|
switch (errorCode) {
|
|
2110
2010
|
case "InternalServiceError":
|
|
@@ -2124,14 +2024,12 @@ const deserializeAws_json1_1ListProfilesCommandError = async (output, context) =
|
|
|
2124
2024
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2125
2025
|
default:
|
|
2126
2026
|
const parsedBody = parsedOutput.body;
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
$metadata,
|
|
2027
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2028
|
+
output,
|
|
2029
|
+
parsedBody,
|
|
2030
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2031
|
+
errorCode,
|
|
2133
2032
|
});
|
|
2134
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2135
2033
|
}
|
|
2136
2034
|
};
|
|
2137
2035
|
const deserializeAws_json1_1ListSecurityPoliciesCommand = async (output, context) => {
|
|
@@ -2153,7 +2051,6 @@ const deserializeAws_json1_1ListSecurityPoliciesCommandError = async (output, co
|
|
|
2153
2051
|
...output,
|
|
2154
2052
|
body: await parseBody(output.body, context),
|
|
2155
2053
|
};
|
|
2156
|
-
let response;
|
|
2157
2054
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2158
2055
|
switch (errorCode) {
|
|
2159
2056
|
case "InternalServiceError":
|
|
@@ -2170,14 +2067,12 @@ const deserializeAws_json1_1ListSecurityPoliciesCommandError = async (output, co
|
|
|
2170
2067
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2171
2068
|
default:
|
|
2172
2069
|
const parsedBody = parsedOutput.body;
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
$metadata,
|
|
2070
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2071
|
+
output,
|
|
2072
|
+
parsedBody,
|
|
2073
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2074
|
+
errorCode,
|
|
2179
2075
|
});
|
|
2180
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2181
2076
|
}
|
|
2182
2077
|
};
|
|
2183
2078
|
const deserializeAws_json1_1ListServersCommand = async (output, context) => {
|
|
@@ -2199,7 +2094,6 @@ const deserializeAws_json1_1ListServersCommandError = async (output, context) =>
|
|
|
2199
2094
|
...output,
|
|
2200
2095
|
body: await parseBody(output.body, context),
|
|
2201
2096
|
};
|
|
2202
|
-
let response;
|
|
2203
2097
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2204
2098
|
switch (errorCode) {
|
|
2205
2099
|
case "InternalServiceError":
|
|
@@ -2216,14 +2110,12 @@ const deserializeAws_json1_1ListServersCommandError = async (output, context) =>
|
|
|
2216
2110
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2217
2111
|
default:
|
|
2218
2112
|
const parsedBody = parsedOutput.body;
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
$metadata,
|
|
2113
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2114
|
+
output,
|
|
2115
|
+
parsedBody,
|
|
2116
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2117
|
+
errorCode,
|
|
2225
2118
|
});
|
|
2226
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2227
2119
|
}
|
|
2228
2120
|
};
|
|
2229
2121
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2245,7 +2137,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2245
2137
|
...output,
|
|
2246
2138
|
body: await parseBody(output.body, context),
|
|
2247
2139
|
};
|
|
2248
|
-
let response;
|
|
2249
2140
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2250
2141
|
switch (errorCode) {
|
|
2251
2142
|
case "InternalServiceError":
|
|
@@ -2262,14 +2153,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2262
2153
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2263
2154
|
default:
|
|
2264
2155
|
const parsedBody = parsedOutput.body;
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
$metadata,
|
|
2156
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2157
|
+
output,
|
|
2158
|
+
parsedBody,
|
|
2159
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2160
|
+
errorCode,
|
|
2271
2161
|
});
|
|
2272
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2273
2162
|
}
|
|
2274
2163
|
};
|
|
2275
2164
|
const deserializeAws_json1_1ListUsersCommand = async (output, context) => {
|
|
@@ -2291,7 +2180,6 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
2291
2180
|
...output,
|
|
2292
2181
|
body: await parseBody(output.body, context),
|
|
2293
2182
|
};
|
|
2294
|
-
let response;
|
|
2295
2183
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2296
2184
|
switch (errorCode) {
|
|
2297
2185
|
case "InternalServiceError":
|
|
@@ -2311,14 +2199,12 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
2311
2199
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2312
2200
|
default:
|
|
2313
2201
|
const parsedBody = parsedOutput.body;
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
$metadata,
|
|
2202
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2203
|
+
output,
|
|
2204
|
+
parsedBody,
|
|
2205
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2206
|
+
errorCode,
|
|
2320
2207
|
});
|
|
2321
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2322
2208
|
}
|
|
2323
2209
|
};
|
|
2324
2210
|
const deserializeAws_json1_1ListWorkflowsCommand = async (output, context) => {
|
|
@@ -2340,7 +2226,6 @@ const deserializeAws_json1_1ListWorkflowsCommandError = async (output, context)
|
|
|
2340
2226
|
...output,
|
|
2341
2227
|
body: await parseBody(output.body, context),
|
|
2342
2228
|
};
|
|
2343
|
-
let response;
|
|
2344
2229
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2345
2230
|
switch (errorCode) {
|
|
2346
2231
|
case "InternalServiceError":
|
|
@@ -2357,14 +2242,12 @@ const deserializeAws_json1_1ListWorkflowsCommandError = async (output, context)
|
|
|
2357
2242
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2358
2243
|
default:
|
|
2359
2244
|
const parsedBody = parsedOutput.body;
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
$metadata,
|
|
2245
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2246
|
+
output,
|
|
2247
|
+
parsedBody,
|
|
2248
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2249
|
+
errorCode,
|
|
2366
2250
|
});
|
|
2367
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2368
2251
|
}
|
|
2369
2252
|
};
|
|
2370
2253
|
const deserializeAws_json1_1SendWorkflowStepStateCommand = async (output, context) => {
|
|
@@ -2386,7 +2269,6 @@ const deserializeAws_json1_1SendWorkflowStepStateCommandError = async (output, c
|
|
|
2386
2269
|
...output,
|
|
2387
2270
|
body: await parseBody(output.body, context),
|
|
2388
2271
|
};
|
|
2389
|
-
let response;
|
|
2390
2272
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2391
2273
|
switch (errorCode) {
|
|
2392
2274
|
case "AccessDeniedException":
|
|
@@ -2409,14 +2291,12 @@ const deserializeAws_json1_1SendWorkflowStepStateCommandError = async (output, c
|
|
|
2409
2291
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2410
2292
|
default:
|
|
2411
2293
|
const parsedBody = parsedOutput.body;
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
$metadata,
|
|
2294
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2295
|
+
output,
|
|
2296
|
+
parsedBody,
|
|
2297
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2298
|
+
errorCode,
|
|
2418
2299
|
});
|
|
2419
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2420
2300
|
}
|
|
2421
2301
|
};
|
|
2422
2302
|
const deserializeAws_json1_1StartFileTransferCommand = async (output, context) => {
|
|
@@ -2438,7 +2318,6 @@ const deserializeAws_json1_1StartFileTransferCommandError = async (output, conte
|
|
|
2438
2318
|
...output,
|
|
2439
2319
|
body: await parseBody(output.body, context),
|
|
2440
2320
|
};
|
|
2441
|
-
let response;
|
|
2442
2321
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2443
2322
|
switch (errorCode) {
|
|
2444
2323
|
case "InternalServiceError":
|
|
@@ -2458,14 +2337,12 @@ const deserializeAws_json1_1StartFileTransferCommandError = async (output, conte
|
|
|
2458
2337
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2459
2338
|
default:
|
|
2460
2339
|
const parsedBody = parsedOutput.body;
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
$metadata,
|
|
2340
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2341
|
+
output,
|
|
2342
|
+
parsedBody,
|
|
2343
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2344
|
+
errorCode,
|
|
2467
2345
|
});
|
|
2468
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2469
2346
|
}
|
|
2470
2347
|
};
|
|
2471
2348
|
const deserializeAws_json1_1StartServerCommand = async (output, context) => {
|
|
@@ -2484,7 +2361,6 @@ const deserializeAws_json1_1StartServerCommandError = async (output, context) =>
|
|
|
2484
2361
|
...output,
|
|
2485
2362
|
body: await parseBody(output.body, context),
|
|
2486
2363
|
};
|
|
2487
|
-
let response;
|
|
2488
2364
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2489
2365
|
switch (errorCode) {
|
|
2490
2366
|
case "InternalServiceError":
|
|
@@ -2504,14 +2380,12 @@ const deserializeAws_json1_1StartServerCommandError = async (output, context) =>
|
|
|
2504
2380
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2505
2381
|
default:
|
|
2506
2382
|
const parsedBody = parsedOutput.body;
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
$metadata,
|
|
2383
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2384
|
+
output,
|
|
2385
|
+
parsedBody,
|
|
2386
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2387
|
+
errorCode,
|
|
2513
2388
|
});
|
|
2514
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2515
2389
|
}
|
|
2516
2390
|
};
|
|
2517
2391
|
const deserializeAws_json1_1StopServerCommand = async (output, context) => {
|
|
@@ -2530,7 +2404,6 @@ const deserializeAws_json1_1StopServerCommandError = async (output, context) =>
|
|
|
2530
2404
|
...output,
|
|
2531
2405
|
body: await parseBody(output.body, context),
|
|
2532
2406
|
};
|
|
2533
|
-
let response;
|
|
2534
2407
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2535
2408
|
switch (errorCode) {
|
|
2536
2409
|
case "InternalServiceError":
|
|
@@ -2550,14 +2423,12 @@ const deserializeAws_json1_1StopServerCommandError = async (output, context) =>
|
|
|
2550
2423
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2551
2424
|
default:
|
|
2552
2425
|
const parsedBody = parsedOutput.body;
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
$metadata,
|
|
2426
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2427
|
+
output,
|
|
2428
|
+
parsedBody,
|
|
2429
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2430
|
+
errorCode,
|
|
2559
2431
|
});
|
|
2560
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2561
2432
|
}
|
|
2562
2433
|
};
|
|
2563
2434
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -2576,7 +2447,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2576
2447
|
...output,
|
|
2577
2448
|
body: await parseBody(output.body, context),
|
|
2578
2449
|
};
|
|
2579
|
-
let response;
|
|
2580
2450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2581
2451
|
switch (errorCode) {
|
|
2582
2452
|
case "InternalServiceError":
|
|
@@ -2593,14 +2463,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2593
2463
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2594
2464
|
default:
|
|
2595
2465
|
const parsedBody = parsedOutput.body;
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
$metadata,
|
|
2466
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2467
|
+
output,
|
|
2468
|
+
parsedBody,
|
|
2469
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2470
|
+
errorCode,
|
|
2602
2471
|
});
|
|
2603
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2604
2472
|
}
|
|
2605
2473
|
};
|
|
2606
2474
|
const deserializeAws_json1_1TestIdentityProviderCommand = async (output, context) => {
|
|
@@ -2622,7 +2490,6 @@ const deserializeAws_json1_1TestIdentityProviderCommandError = async (output, co
|
|
|
2622
2490
|
...output,
|
|
2623
2491
|
body: await parseBody(output.body, context),
|
|
2624
2492
|
};
|
|
2625
|
-
let response;
|
|
2626
2493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2627
2494
|
switch (errorCode) {
|
|
2628
2495
|
case "InternalServiceError":
|
|
@@ -2639,14 +2506,12 @@ const deserializeAws_json1_1TestIdentityProviderCommandError = async (output, co
|
|
|
2639
2506
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2640
2507
|
default:
|
|
2641
2508
|
const parsedBody = parsedOutput.body;
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
$metadata,
|
|
2509
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2510
|
+
output,
|
|
2511
|
+
parsedBody,
|
|
2512
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2513
|
+
errorCode,
|
|
2648
2514
|
});
|
|
2649
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2650
2515
|
}
|
|
2651
2516
|
};
|
|
2652
2517
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -2665,7 +2530,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2665
2530
|
...output,
|
|
2666
2531
|
body: await parseBody(output.body, context),
|
|
2667
2532
|
};
|
|
2668
|
-
let response;
|
|
2669
2533
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2670
2534
|
switch (errorCode) {
|
|
2671
2535
|
case "InternalServiceError":
|
|
@@ -2682,14 +2546,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2682
2546
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2683
2547
|
default:
|
|
2684
2548
|
const parsedBody = parsedOutput.body;
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
$metadata,
|
|
2549
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2550
|
+
output,
|
|
2551
|
+
parsedBody,
|
|
2552
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2553
|
+
errorCode,
|
|
2691
2554
|
});
|
|
2692
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2693
2555
|
}
|
|
2694
2556
|
};
|
|
2695
2557
|
const deserializeAws_json1_1UpdateAccessCommand = async (output, context) => {
|
|
@@ -2711,7 +2573,6 @@ const deserializeAws_json1_1UpdateAccessCommandError = async (output, context) =
|
|
|
2711
2573
|
...output,
|
|
2712
2574
|
body: await parseBody(output.body, context),
|
|
2713
2575
|
};
|
|
2714
|
-
let response;
|
|
2715
2576
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2716
2577
|
switch (errorCode) {
|
|
2717
2578
|
case "InternalServiceError":
|
|
@@ -2731,14 +2592,12 @@ const deserializeAws_json1_1UpdateAccessCommandError = async (output, context) =
|
|
|
2731
2592
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2732
2593
|
default:
|
|
2733
2594
|
const parsedBody = parsedOutput.body;
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
$metadata,
|
|
2595
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2596
|
+
output,
|
|
2597
|
+
parsedBody,
|
|
2598
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2599
|
+
errorCode,
|
|
2740
2600
|
});
|
|
2741
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2742
2601
|
}
|
|
2743
2602
|
};
|
|
2744
2603
|
const deserializeAws_json1_1UpdateAgreementCommand = async (output, context) => {
|
|
@@ -2760,7 +2619,6 @@ const deserializeAws_json1_1UpdateAgreementCommandError = async (output, context
|
|
|
2760
2619
|
...output,
|
|
2761
2620
|
body: await parseBody(output.body, context),
|
|
2762
2621
|
};
|
|
2763
|
-
let response;
|
|
2764
2622
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
2623
|
switch (errorCode) {
|
|
2766
2624
|
case "InternalServiceError":
|
|
@@ -2780,14 +2638,12 @@ const deserializeAws_json1_1UpdateAgreementCommandError = async (output, context
|
|
|
2780
2638
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2781
2639
|
default:
|
|
2782
2640
|
const parsedBody = parsedOutput.body;
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
$metadata,
|
|
2641
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2642
|
+
output,
|
|
2643
|
+
parsedBody,
|
|
2644
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2645
|
+
errorCode,
|
|
2789
2646
|
});
|
|
2790
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2791
2647
|
}
|
|
2792
2648
|
};
|
|
2793
2649
|
const deserializeAws_json1_1UpdateCertificateCommand = async (output, context) => {
|
|
@@ -2809,7 +2665,6 @@ const deserializeAws_json1_1UpdateCertificateCommandError = async (output, conte
|
|
|
2809
2665
|
...output,
|
|
2810
2666
|
body: await parseBody(output.body, context),
|
|
2811
2667
|
};
|
|
2812
|
-
let response;
|
|
2813
2668
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2814
2669
|
switch (errorCode) {
|
|
2815
2670
|
case "InternalServiceError":
|
|
@@ -2826,14 +2681,12 @@ const deserializeAws_json1_1UpdateCertificateCommandError = async (output, conte
|
|
|
2826
2681
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2827
2682
|
default:
|
|
2828
2683
|
const parsedBody = parsedOutput.body;
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
$metadata,
|
|
2684
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2685
|
+
output,
|
|
2686
|
+
parsedBody,
|
|
2687
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2688
|
+
errorCode,
|
|
2835
2689
|
});
|
|
2836
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2837
2690
|
}
|
|
2838
2691
|
};
|
|
2839
2692
|
const deserializeAws_json1_1UpdateConnectorCommand = async (output, context) => {
|
|
@@ -2855,7 +2708,6 @@ const deserializeAws_json1_1UpdateConnectorCommandError = async (output, context
|
|
|
2855
2708
|
...output,
|
|
2856
2709
|
body: await parseBody(output.body, context),
|
|
2857
2710
|
};
|
|
2858
|
-
let response;
|
|
2859
2711
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2860
2712
|
switch (errorCode) {
|
|
2861
2713
|
case "InternalServiceError":
|
|
@@ -2875,14 +2727,12 @@ const deserializeAws_json1_1UpdateConnectorCommandError = async (output, context
|
|
|
2875
2727
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2876
2728
|
default:
|
|
2877
2729
|
const parsedBody = parsedOutput.body;
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
$metadata,
|
|
2730
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2731
|
+
output,
|
|
2732
|
+
parsedBody,
|
|
2733
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2734
|
+
errorCode,
|
|
2884
2735
|
});
|
|
2885
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2886
2736
|
}
|
|
2887
2737
|
};
|
|
2888
2738
|
const deserializeAws_json1_1UpdateProfileCommand = async (output, context) => {
|
|
@@ -2904,7 +2754,6 @@ const deserializeAws_json1_1UpdateProfileCommandError = async (output, context)
|
|
|
2904
2754
|
...output,
|
|
2905
2755
|
body: await parseBody(output.body, context),
|
|
2906
2756
|
};
|
|
2907
|
-
let response;
|
|
2908
2757
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2909
2758
|
switch (errorCode) {
|
|
2910
2759
|
case "InternalServiceError":
|
|
@@ -2921,14 +2770,12 @@ const deserializeAws_json1_1UpdateProfileCommandError = async (output, context)
|
|
|
2921
2770
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2922
2771
|
default:
|
|
2923
2772
|
const parsedBody = parsedOutput.body;
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
$metadata,
|
|
2773
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2774
|
+
output,
|
|
2775
|
+
parsedBody,
|
|
2776
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2777
|
+
errorCode,
|
|
2930
2778
|
});
|
|
2931
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2932
2779
|
}
|
|
2933
2780
|
};
|
|
2934
2781
|
const deserializeAws_json1_1UpdateServerCommand = async (output, context) => {
|
|
@@ -2950,7 +2797,6 @@ const deserializeAws_json1_1UpdateServerCommandError = async (output, context) =
|
|
|
2950
2797
|
...output,
|
|
2951
2798
|
body: await parseBody(output.body, context),
|
|
2952
2799
|
};
|
|
2953
|
-
let response;
|
|
2954
2800
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2955
2801
|
switch (errorCode) {
|
|
2956
2802
|
case "AccessDeniedException":
|
|
@@ -2979,14 +2825,12 @@ const deserializeAws_json1_1UpdateServerCommandError = async (output, context) =
|
|
|
2979
2825
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2980
2826
|
default:
|
|
2981
2827
|
const parsedBody = parsedOutput.body;
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
$metadata,
|
|
2828
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2829
|
+
output,
|
|
2830
|
+
parsedBody,
|
|
2831
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2832
|
+
errorCode,
|
|
2988
2833
|
});
|
|
2989
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2990
2834
|
}
|
|
2991
2835
|
};
|
|
2992
2836
|
const deserializeAws_json1_1UpdateUserCommand = async (output, context) => {
|
|
@@ -3008,7 +2852,6 @@ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) =>
|
|
|
3008
2852
|
...output,
|
|
3009
2853
|
body: await parseBody(output.body, context),
|
|
3010
2854
|
};
|
|
3011
|
-
let response;
|
|
3012
2855
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3013
2856
|
switch (errorCode) {
|
|
3014
2857
|
case "InternalServiceError":
|
|
@@ -3028,14 +2871,12 @@ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) =>
|
|
|
3028
2871
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3029
2872
|
default:
|
|
3030
2873
|
const parsedBody = parsedOutput.body;
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
$metadata,
|
|
2874
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2875
|
+
output,
|
|
2876
|
+
parsedBody,
|
|
2877
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2878
|
+
errorCode,
|
|
3037
2879
|
});
|
|
3038
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3039
2880
|
}
|
|
3040
2881
|
};
|
|
3041
2882
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3123,9 +2964,6 @@ const serializeAws_json1_1AddressAllocationIds = (input, context) => {
|
|
|
3123
2964
|
return input
|
|
3124
2965
|
.filter((e) => e != null)
|
|
3125
2966
|
.map((entry) => {
|
|
3126
|
-
if (entry === null) {
|
|
3127
|
-
return null;
|
|
3128
|
-
}
|
|
3129
2967
|
return entry;
|
|
3130
2968
|
});
|
|
3131
2969
|
};
|
|
@@ -3145,9 +2983,6 @@ const serializeAws_json1_1As2Transports = (input, context) => {
|
|
|
3145
2983
|
return input
|
|
3146
2984
|
.filter((e) => e != null)
|
|
3147
2985
|
.map((entry) => {
|
|
3148
|
-
if (entry === null) {
|
|
3149
|
-
return null;
|
|
3150
|
-
}
|
|
3151
2986
|
return entry;
|
|
3152
2987
|
});
|
|
3153
2988
|
};
|
|
@@ -3155,9 +2990,6 @@ const serializeAws_json1_1CertificateIds = (input, context) => {
|
|
|
3155
2990
|
return input
|
|
3156
2991
|
.filter((e) => e != null)
|
|
3157
2992
|
.map((entry) => {
|
|
3158
|
-
if (entry === null) {
|
|
3159
|
-
return null;
|
|
3160
|
-
}
|
|
3161
2993
|
return entry;
|
|
3162
2994
|
});
|
|
3163
2995
|
};
|
|
@@ -3414,9 +3246,6 @@ const serializeAws_json1_1FilePaths = (input, context) => {
|
|
|
3414
3246
|
return input
|
|
3415
3247
|
.filter((e) => e != null)
|
|
3416
3248
|
.map((entry) => {
|
|
3417
|
-
if (entry === null) {
|
|
3418
|
-
return null;
|
|
3419
|
-
}
|
|
3420
3249
|
return entry;
|
|
3421
3250
|
});
|
|
3422
3251
|
};
|
|
@@ -3430,9 +3259,6 @@ const serializeAws_json1_1HomeDirectoryMappings = (input, context) => {
|
|
|
3430
3259
|
return input
|
|
3431
3260
|
.filter((e) => e != null)
|
|
3432
3261
|
.map((entry) => {
|
|
3433
|
-
if (entry === null) {
|
|
3434
|
-
return null;
|
|
3435
|
-
}
|
|
3436
3262
|
return serializeAws_json1_1HomeDirectoryMapEntry(entry, context);
|
|
3437
3263
|
});
|
|
3438
3264
|
};
|
|
@@ -3549,9 +3375,6 @@ const serializeAws_json1_1OnUploadWorkflowDetails = (input, context) => {
|
|
|
3549
3375
|
return input
|
|
3550
3376
|
.filter((e) => e != null)
|
|
3551
3377
|
.map((entry) => {
|
|
3552
|
-
if (entry === null) {
|
|
3553
|
-
return null;
|
|
3554
|
-
}
|
|
3555
3378
|
return serializeAws_json1_1WorkflowDetail(entry, context);
|
|
3556
3379
|
});
|
|
3557
3380
|
};
|
|
@@ -3578,9 +3401,6 @@ const serializeAws_json1_1Protocols = (input, context) => {
|
|
|
3578
3401
|
return input
|
|
3579
3402
|
.filter((e) => e != null)
|
|
3580
3403
|
.map((entry) => {
|
|
3581
|
-
if (entry === null) {
|
|
3582
|
-
return null;
|
|
3583
|
-
}
|
|
3584
3404
|
return entry;
|
|
3585
3405
|
});
|
|
3586
3406
|
};
|
|
@@ -3600,9 +3420,6 @@ const serializeAws_json1_1S3Tags = (input, context) => {
|
|
|
3600
3420
|
return input
|
|
3601
3421
|
.filter((e) => e != null)
|
|
3602
3422
|
.map((entry) => {
|
|
3603
|
-
if (entry === null) {
|
|
3604
|
-
return null;
|
|
3605
|
-
}
|
|
3606
3423
|
return serializeAws_json1_1S3Tag(entry, context);
|
|
3607
3424
|
});
|
|
3608
3425
|
};
|
|
@@ -3610,9 +3427,6 @@ const serializeAws_json1_1SecondaryGids = (input, context) => {
|
|
|
3610
3427
|
return input
|
|
3611
3428
|
.filter((e) => e != null)
|
|
3612
3429
|
.map((entry) => {
|
|
3613
|
-
if (entry === null) {
|
|
3614
|
-
return null;
|
|
3615
|
-
}
|
|
3616
3430
|
return entry;
|
|
3617
3431
|
});
|
|
3618
3432
|
};
|
|
@@ -3620,9 +3434,6 @@ const serializeAws_json1_1SecurityGroupIds = (input, context) => {
|
|
|
3620
3434
|
return input
|
|
3621
3435
|
.filter((e) => e != null)
|
|
3622
3436
|
.map((entry) => {
|
|
3623
|
-
if (entry === null) {
|
|
3624
|
-
return null;
|
|
3625
|
-
}
|
|
3626
3437
|
return entry;
|
|
3627
3438
|
});
|
|
3628
3439
|
};
|
|
@@ -3654,9 +3465,6 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
|
|
|
3654
3465
|
return input
|
|
3655
3466
|
.filter((e) => e != null)
|
|
3656
3467
|
.map((entry) => {
|
|
3657
|
-
if (entry === null) {
|
|
3658
|
-
return null;
|
|
3659
|
-
}
|
|
3660
3468
|
return entry;
|
|
3661
3469
|
});
|
|
3662
3470
|
};
|
|
@@ -3670,9 +3478,6 @@ const serializeAws_json1_1TagKeys = (input, context) => {
|
|
|
3670
3478
|
return input
|
|
3671
3479
|
.filter((e) => e != null)
|
|
3672
3480
|
.map((entry) => {
|
|
3673
|
-
if (entry === null) {
|
|
3674
|
-
return null;
|
|
3675
|
-
}
|
|
3676
3481
|
return entry;
|
|
3677
3482
|
});
|
|
3678
3483
|
};
|
|
@@ -3686,9 +3491,6 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
3686
3491
|
return input
|
|
3687
3492
|
.filter((e) => e != null)
|
|
3688
3493
|
.map((entry) => {
|
|
3689
|
-
if (entry === null) {
|
|
3690
|
-
return null;
|
|
3691
|
-
}
|
|
3692
3494
|
return serializeAws_json1_1Tag(entry, context);
|
|
3693
3495
|
});
|
|
3694
3496
|
};
|
|
@@ -3840,9 +3642,6 @@ const serializeAws_json1_1WorkflowSteps = (input, context) => {
|
|
|
3840
3642
|
return input
|
|
3841
3643
|
.filter((e) => e != null)
|
|
3842
3644
|
.map((entry) => {
|
|
3843
|
-
if (entry === null) {
|
|
3844
|
-
return null;
|
|
3845
|
-
}
|
|
3846
3645
|
return serializeAws_json1_1WorkflowStep(entry, context);
|
|
3847
3646
|
});
|
|
3848
3647
|
};
|