@aws-sdk/client-database-migration-service 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +337 -592
- package/dist-es/protocols/Aws_json1_1.js +521 -593
- package/package.json +6 -6
|
@@ -675,7 +675,6 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
675
675
|
...output,
|
|
676
676
|
body: await parseBody(output.body, context),
|
|
677
677
|
};
|
|
678
|
-
let response;
|
|
679
678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
679
|
switch (errorCode) {
|
|
681
680
|
case "ResourceNotFoundFault":
|
|
@@ -683,14 +682,12 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
683
682
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
684
683
|
default:
|
|
685
684
|
const parsedBody = parsedOutput.body;
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
$metadata,
|
|
685
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
686
|
+
output,
|
|
687
|
+
parsedBody,
|
|
688
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
689
|
+
errorCode,
|
|
692
690
|
});
|
|
693
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
694
691
|
}
|
|
695
692
|
};
|
|
696
693
|
const deserializeAws_json1_1ApplyPendingMaintenanceActionCommand = async (output, context) => {
|
|
@@ -712,7 +709,6 @@ const deserializeAws_json1_1ApplyPendingMaintenanceActionCommandError = async (o
|
|
|
712
709
|
...output,
|
|
713
710
|
body: await parseBody(output.body, context),
|
|
714
711
|
};
|
|
715
|
-
let response;
|
|
716
712
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
717
713
|
switch (errorCode) {
|
|
718
714
|
case "ResourceNotFoundFault":
|
|
@@ -720,14 +716,12 @@ const deserializeAws_json1_1ApplyPendingMaintenanceActionCommandError = async (o
|
|
|
720
716
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
721
717
|
default:
|
|
722
718
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
$metadata,
|
|
719
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
720
|
+
output,
|
|
721
|
+
parsedBody,
|
|
722
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
723
|
+
errorCode,
|
|
729
724
|
});
|
|
730
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
731
725
|
}
|
|
732
726
|
};
|
|
733
727
|
const deserializeAws_json1_1CancelReplicationTaskAssessmentRunCommand = async (output, context) => {
|
|
@@ -749,7 +743,6 @@ const deserializeAws_json1_1CancelReplicationTaskAssessmentRunCommandError = asy
|
|
|
749
743
|
...output,
|
|
750
744
|
body: await parseBody(output.body, context),
|
|
751
745
|
};
|
|
752
|
-
let response;
|
|
753
746
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
754
747
|
switch (errorCode) {
|
|
755
748
|
case "AccessDeniedFault":
|
|
@@ -763,14 +756,12 @@ const deserializeAws_json1_1CancelReplicationTaskAssessmentRunCommandError = asy
|
|
|
763
756
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
764
757
|
default:
|
|
765
758
|
const parsedBody = parsedOutput.body;
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
$metadata,
|
|
759
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
760
|
+
output,
|
|
761
|
+
parsedBody,
|
|
762
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
763
|
+
errorCode,
|
|
772
764
|
});
|
|
773
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
774
765
|
}
|
|
775
766
|
};
|
|
776
767
|
const deserializeAws_json1_1CreateEndpointCommand = async (output, context) => {
|
|
@@ -792,7 +783,6 @@ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context)
|
|
|
792
783
|
...output,
|
|
793
784
|
body: await parseBody(output.body, context),
|
|
794
785
|
};
|
|
795
|
-
let response;
|
|
796
786
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
797
787
|
switch (errorCode) {
|
|
798
788
|
case "AccessDeniedFault":
|
|
@@ -818,14 +808,12 @@ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context)
|
|
|
818
808
|
throw await deserializeAws_json1_1S3AccessDeniedFaultResponse(parsedOutput, context);
|
|
819
809
|
default:
|
|
820
810
|
const parsedBody = parsedOutput.body;
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
$metadata,
|
|
811
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
812
|
+
output,
|
|
813
|
+
parsedBody,
|
|
814
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
815
|
+
errorCode,
|
|
827
816
|
});
|
|
828
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
829
817
|
}
|
|
830
818
|
};
|
|
831
819
|
const deserializeAws_json1_1CreateEventSubscriptionCommand = async (output, context) => {
|
|
@@ -847,7 +835,6 @@ const deserializeAws_json1_1CreateEventSubscriptionCommandError = async (output,
|
|
|
847
835
|
...output,
|
|
848
836
|
body: await parseBody(output.body, context),
|
|
849
837
|
};
|
|
850
|
-
let response;
|
|
851
838
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
839
|
switch (errorCode) {
|
|
853
840
|
case "KMSAccessDeniedFault":
|
|
@@ -882,14 +869,12 @@ const deserializeAws_json1_1CreateEventSubscriptionCommandError = async (output,
|
|
|
882
869
|
throw await deserializeAws_json1_1SNSNoAuthorizationFaultResponse(parsedOutput, context);
|
|
883
870
|
default:
|
|
884
871
|
const parsedBody = parsedOutput.body;
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
$metadata,
|
|
872
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
873
|
+
output,
|
|
874
|
+
parsedBody,
|
|
875
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
876
|
+
errorCode,
|
|
891
877
|
});
|
|
892
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
893
878
|
}
|
|
894
879
|
};
|
|
895
880
|
const deserializeAws_json1_1CreateFleetAdvisorCollectorCommand = async (output, context) => {
|
|
@@ -911,7 +896,6 @@ const deserializeAws_json1_1CreateFleetAdvisorCollectorCommandError = async (out
|
|
|
911
896
|
...output,
|
|
912
897
|
body: await parseBody(output.body, context),
|
|
913
898
|
};
|
|
914
|
-
let response;
|
|
915
899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
900
|
switch (errorCode) {
|
|
917
901
|
case "AccessDeniedFault":
|
|
@@ -931,14 +915,12 @@ const deserializeAws_json1_1CreateFleetAdvisorCollectorCommandError = async (out
|
|
|
931
915
|
throw await deserializeAws_json1_1S3ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
932
916
|
default:
|
|
933
917
|
const parsedBody = parsedOutput.body;
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
$metadata,
|
|
918
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
919
|
+
output,
|
|
920
|
+
parsedBody,
|
|
921
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
922
|
+
errorCode,
|
|
940
923
|
});
|
|
941
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
942
924
|
}
|
|
943
925
|
};
|
|
944
926
|
const deserializeAws_json1_1CreateReplicationInstanceCommand = async (output, context) => {
|
|
@@ -960,7 +942,6 @@ const deserializeAws_json1_1CreateReplicationInstanceCommandError = async (outpu
|
|
|
960
942
|
...output,
|
|
961
943
|
body: await parseBody(output.body, context),
|
|
962
944
|
};
|
|
963
|
-
let response;
|
|
964
945
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
946
|
switch (errorCode) {
|
|
966
947
|
case "AccessDeniedFault":
|
|
@@ -995,14 +976,12 @@ const deserializeAws_json1_1CreateReplicationInstanceCommandError = async (outpu
|
|
|
995
976
|
throw await deserializeAws_json1_1StorageQuotaExceededFaultResponse(parsedOutput, context);
|
|
996
977
|
default:
|
|
997
978
|
const parsedBody = parsedOutput.body;
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
$metadata,
|
|
979
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
980
|
+
output,
|
|
981
|
+
parsedBody,
|
|
982
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
983
|
+
errorCode,
|
|
1004
984
|
});
|
|
1005
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1006
985
|
}
|
|
1007
986
|
};
|
|
1008
987
|
const deserializeAws_json1_1CreateReplicationSubnetGroupCommand = async (output, context) => {
|
|
@@ -1024,7 +1003,6 @@ const deserializeAws_json1_1CreateReplicationSubnetGroupCommandError = async (ou
|
|
|
1024
1003
|
...output,
|
|
1025
1004
|
body: await parseBody(output.body, context),
|
|
1026
1005
|
};
|
|
1027
|
-
let response;
|
|
1028
1006
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
1007
|
switch (errorCode) {
|
|
1030
1008
|
case "AccessDeniedFault":
|
|
@@ -1047,14 +1025,12 @@ const deserializeAws_json1_1CreateReplicationSubnetGroupCommandError = async (ou
|
|
|
1047
1025
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
1048
1026
|
default:
|
|
1049
1027
|
const parsedBody = parsedOutput.body;
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
$metadata,
|
|
1028
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1029
|
+
output,
|
|
1030
|
+
parsedBody,
|
|
1031
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1032
|
+
errorCode,
|
|
1056
1033
|
});
|
|
1057
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1058
1034
|
}
|
|
1059
1035
|
};
|
|
1060
1036
|
const deserializeAws_json1_1CreateReplicationTaskCommand = async (output, context) => {
|
|
@@ -1076,7 +1052,6 @@ const deserializeAws_json1_1CreateReplicationTaskCommandError = async (output, c
|
|
|
1076
1052
|
...output,
|
|
1077
1053
|
body: await parseBody(output.body, context),
|
|
1078
1054
|
};
|
|
1079
|
-
let response;
|
|
1080
1055
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
1056
|
switch (errorCode) {
|
|
1082
1057
|
case "AccessDeniedFault":
|
|
@@ -1099,14 +1074,12 @@ const deserializeAws_json1_1CreateReplicationTaskCommandError = async (output, c
|
|
|
1099
1074
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
1100
1075
|
default:
|
|
1101
1076
|
const parsedBody = parsedOutput.body;
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
$metadata,
|
|
1077
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1078
|
+
output,
|
|
1079
|
+
parsedBody,
|
|
1080
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1081
|
+
errorCode,
|
|
1108
1082
|
});
|
|
1109
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1110
1083
|
}
|
|
1111
1084
|
};
|
|
1112
1085
|
const deserializeAws_json1_1DeleteCertificateCommand = async (output, context) => {
|
|
@@ -1128,7 +1101,6 @@ const deserializeAws_json1_1DeleteCertificateCommandError = async (output, conte
|
|
|
1128
1101
|
...output,
|
|
1129
1102
|
body: await parseBody(output.body, context),
|
|
1130
1103
|
};
|
|
1131
|
-
let response;
|
|
1132
1104
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
1105
|
switch (errorCode) {
|
|
1134
1106
|
case "InvalidResourceStateFault":
|
|
@@ -1139,14 +1111,12 @@ const deserializeAws_json1_1DeleteCertificateCommandError = async (output, conte
|
|
|
1139
1111
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1140
1112
|
default:
|
|
1141
1113
|
const parsedBody = parsedOutput.body;
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
$metadata,
|
|
1114
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1115
|
+
output,
|
|
1116
|
+
parsedBody,
|
|
1117
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1118
|
+
errorCode,
|
|
1148
1119
|
});
|
|
1149
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1150
1120
|
}
|
|
1151
1121
|
};
|
|
1152
1122
|
const deserializeAws_json1_1DeleteConnectionCommand = async (output, context) => {
|
|
@@ -1168,7 +1138,6 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1168
1138
|
...output,
|
|
1169
1139
|
body: await parseBody(output.body, context),
|
|
1170
1140
|
};
|
|
1171
|
-
let response;
|
|
1172
1141
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1173
1142
|
switch (errorCode) {
|
|
1174
1143
|
case "AccessDeniedFault":
|
|
@@ -1182,14 +1151,12 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1182
1151
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1183
1152
|
default:
|
|
1184
1153
|
const parsedBody = parsedOutput.body;
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
$metadata,
|
|
1154
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1155
|
+
output,
|
|
1156
|
+
parsedBody,
|
|
1157
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1158
|
+
errorCode,
|
|
1191
1159
|
});
|
|
1192
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1193
1160
|
}
|
|
1194
1161
|
};
|
|
1195
1162
|
const deserializeAws_json1_1DeleteEndpointCommand = async (output, context) => {
|
|
@@ -1211,7 +1178,6 @@ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context)
|
|
|
1211
1178
|
...output,
|
|
1212
1179
|
body: await parseBody(output.body, context),
|
|
1213
1180
|
};
|
|
1214
|
-
let response;
|
|
1215
1181
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
1182
|
switch (errorCode) {
|
|
1217
1183
|
case "InvalidResourceStateFault":
|
|
@@ -1222,14 +1188,12 @@ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context)
|
|
|
1222
1188
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1223
1189
|
default:
|
|
1224
1190
|
const parsedBody = parsedOutput.body;
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
$metadata,
|
|
1191
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1192
|
+
output,
|
|
1193
|
+
parsedBody,
|
|
1194
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1195
|
+
errorCode,
|
|
1231
1196
|
});
|
|
1232
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1233
1197
|
}
|
|
1234
1198
|
};
|
|
1235
1199
|
const deserializeAws_json1_1DeleteEventSubscriptionCommand = async (output, context) => {
|
|
@@ -1251,7 +1215,6 @@ const deserializeAws_json1_1DeleteEventSubscriptionCommandError = async (output,
|
|
|
1251
1215
|
...output,
|
|
1252
1216
|
body: await parseBody(output.body, context),
|
|
1253
1217
|
};
|
|
1254
|
-
let response;
|
|
1255
1218
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
1219
|
switch (errorCode) {
|
|
1257
1220
|
case "InvalidResourceStateFault":
|
|
@@ -1262,14 +1225,12 @@ const deserializeAws_json1_1DeleteEventSubscriptionCommandError = async (output,
|
|
|
1262
1225
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1263
1226
|
default:
|
|
1264
1227
|
const parsedBody = parsedOutput.body;
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
$metadata,
|
|
1228
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1229
|
+
output,
|
|
1230
|
+
parsedBody,
|
|
1231
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1232
|
+
errorCode,
|
|
1271
1233
|
});
|
|
1272
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1273
1234
|
}
|
|
1274
1235
|
};
|
|
1275
1236
|
const deserializeAws_json1_1DeleteFleetAdvisorCollectorCommand = async (output, context) => {
|
|
@@ -1288,7 +1249,6 @@ const deserializeAws_json1_1DeleteFleetAdvisorCollectorCommandError = async (out
|
|
|
1288
1249
|
...output,
|
|
1289
1250
|
body: await parseBody(output.body, context),
|
|
1290
1251
|
};
|
|
1291
|
-
let response;
|
|
1292
1252
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
1253
|
switch (errorCode) {
|
|
1294
1254
|
case "CollectorNotFoundFault":
|
|
@@ -1299,14 +1259,12 @@ const deserializeAws_json1_1DeleteFleetAdvisorCollectorCommandError = async (out
|
|
|
1299
1259
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
1300
1260
|
default:
|
|
1301
1261
|
const parsedBody = parsedOutput.body;
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
$metadata,
|
|
1262
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1263
|
+
output,
|
|
1264
|
+
parsedBody,
|
|
1265
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1266
|
+
errorCode,
|
|
1308
1267
|
});
|
|
1309
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1310
1268
|
}
|
|
1311
1269
|
};
|
|
1312
1270
|
const deserializeAws_json1_1DeleteFleetAdvisorDatabasesCommand = async (output, context) => {
|
|
@@ -1328,7 +1286,6 @@ const deserializeAws_json1_1DeleteFleetAdvisorDatabasesCommandError = async (out
|
|
|
1328
1286
|
...output,
|
|
1329
1287
|
body: await parseBody(output.body, context),
|
|
1330
1288
|
};
|
|
1331
|
-
let response;
|
|
1332
1289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
1290
|
switch (errorCode) {
|
|
1334
1291
|
case "InvalidOperationFault":
|
|
@@ -1339,14 +1296,12 @@ const deserializeAws_json1_1DeleteFleetAdvisorDatabasesCommandError = async (out
|
|
|
1339
1296
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1340
1297
|
default:
|
|
1341
1298
|
const parsedBody = parsedOutput.body;
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
$metadata,
|
|
1299
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1300
|
+
output,
|
|
1301
|
+
parsedBody,
|
|
1302
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1303
|
+
errorCode,
|
|
1348
1304
|
});
|
|
1349
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1350
1305
|
}
|
|
1351
1306
|
};
|
|
1352
1307
|
const deserializeAws_json1_1DeleteReplicationInstanceCommand = async (output, context) => {
|
|
@@ -1368,7 +1323,6 @@ const deserializeAws_json1_1DeleteReplicationInstanceCommandError = async (outpu
|
|
|
1368
1323
|
...output,
|
|
1369
1324
|
body: await parseBody(output.body, context),
|
|
1370
1325
|
};
|
|
1371
|
-
let response;
|
|
1372
1326
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
1327
|
switch (errorCode) {
|
|
1374
1328
|
case "InvalidResourceStateFault":
|
|
@@ -1379,14 +1333,12 @@ const deserializeAws_json1_1DeleteReplicationInstanceCommandError = async (outpu
|
|
|
1379
1333
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1380
1334
|
default:
|
|
1381
1335
|
const parsedBody = parsedOutput.body;
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
$metadata,
|
|
1336
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1337
|
+
output,
|
|
1338
|
+
parsedBody,
|
|
1339
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1340
|
+
errorCode,
|
|
1388
1341
|
});
|
|
1389
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1390
1342
|
}
|
|
1391
1343
|
};
|
|
1392
1344
|
const deserializeAws_json1_1DeleteReplicationSubnetGroupCommand = async (output, context) => {
|
|
@@ -1408,7 +1360,6 @@ const deserializeAws_json1_1DeleteReplicationSubnetGroupCommandError = async (ou
|
|
|
1408
1360
|
...output,
|
|
1409
1361
|
body: await parseBody(output.body, context),
|
|
1410
1362
|
};
|
|
1411
|
-
let response;
|
|
1412
1363
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
1364
|
switch (errorCode) {
|
|
1414
1365
|
case "InvalidResourceStateFault":
|
|
@@ -1419,14 +1370,12 @@ const deserializeAws_json1_1DeleteReplicationSubnetGroupCommandError = async (ou
|
|
|
1419
1370
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1420
1371
|
default:
|
|
1421
1372
|
const parsedBody = parsedOutput.body;
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
$metadata,
|
|
1373
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1374
|
+
output,
|
|
1375
|
+
parsedBody,
|
|
1376
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1377
|
+
errorCode,
|
|
1428
1378
|
});
|
|
1429
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1430
1379
|
}
|
|
1431
1380
|
};
|
|
1432
1381
|
const deserializeAws_json1_1DeleteReplicationTaskCommand = async (output, context) => {
|
|
@@ -1448,7 +1397,6 @@ const deserializeAws_json1_1DeleteReplicationTaskCommandError = async (output, c
|
|
|
1448
1397
|
...output,
|
|
1449
1398
|
body: await parseBody(output.body, context),
|
|
1450
1399
|
};
|
|
1451
|
-
let response;
|
|
1452
1400
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1453
1401
|
switch (errorCode) {
|
|
1454
1402
|
case "InvalidResourceStateFault":
|
|
@@ -1459,14 +1407,12 @@ const deserializeAws_json1_1DeleteReplicationTaskCommandError = async (output, c
|
|
|
1459
1407
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1460
1408
|
default:
|
|
1461
1409
|
const parsedBody = parsedOutput.body;
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
$metadata,
|
|
1410
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1411
|
+
output,
|
|
1412
|
+
parsedBody,
|
|
1413
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1414
|
+
errorCode,
|
|
1468
1415
|
});
|
|
1469
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1470
1416
|
}
|
|
1471
1417
|
};
|
|
1472
1418
|
const deserializeAws_json1_1DeleteReplicationTaskAssessmentRunCommand = async (output, context) => {
|
|
@@ -1488,7 +1434,6 @@ const deserializeAws_json1_1DeleteReplicationTaskAssessmentRunCommandError = asy
|
|
|
1488
1434
|
...output,
|
|
1489
1435
|
body: await parseBody(output.body, context),
|
|
1490
1436
|
};
|
|
1491
|
-
let response;
|
|
1492
1437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
1438
|
switch (errorCode) {
|
|
1494
1439
|
case "AccessDeniedFault":
|
|
@@ -1502,14 +1447,12 @@ const deserializeAws_json1_1DeleteReplicationTaskAssessmentRunCommandError = asy
|
|
|
1502
1447
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1503
1448
|
default:
|
|
1504
1449
|
const parsedBody = parsedOutput.body;
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
$metadata,
|
|
1450
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1451
|
+
output,
|
|
1452
|
+
parsedBody,
|
|
1453
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1454
|
+
errorCode,
|
|
1511
1455
|
});
|
|
1512
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1513
1456
|
}
|
|
1514
1457
|
};
|
|
1515
1458
|
const deserializeAws_json1_1DescribeAccountAttributesCommand = async (output, context) => {
|
|
@@ -1531,20 +1474,14 @@ const deserializeAws_json1_1DescribeAccountAttributesCommandError = async (outpu
|
|
|
1531
1474
|
...output,
|
|
1532
1475
|
body: await parseBody(output.body, context),
|
|
1533
1476
|
};
|
|
1534
|
-
let response;
|
|
1535
1477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
$fault: "client",
|
|
1544
|
-
$metadata,
|
|
1545
|
-
});
|
|
1546
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1547
|
-
}
|
|
1478
|
+
const parsedBody = parsedOutput.body;
|
|
1479
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1480
|
+
output,
|
|
1481
|
+
parsedBody,
|
|
1482
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1483
|
+
errorCode,
|
|
1484
|
+
});
|
|
1548
1485
|
};
|
|
1549
1486
|
const deserializeAws_json1_1DescribeApplicableIndividualAssessmentsCommand = async (output, context) => {
|
|
1550
1487
|
if (output.statusCode >= 300) {
|
|
@@ -1565,7 +1502,6 @@ const deserializeAws_json1_1DescribeApplicableIndividualAssessmentsCommandError
|
|
|
1565
1502
|
...output,
|
|
1566
1503
|
body: await parseBody(output.body, context),
|
|
1567
1504
|
};
|
|
1568
|
-
let response;
|
|
1569
1505
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1570
1506
|
switch (errorCode) {
|
|
1571
1507
|
case "AccessDeniedFault":
|
|
@@ -1579,14 +1515,12 @@ const deserializeAws_json1_1DescribeApplicableIndividualAssessmentsCommandError
|
|
|
1579
1515
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1580
1516
|
default:
|
|
1581
1517
|
const parsedBody = parsedOutput.body;
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
$metadata,
|
|
1518
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1519
|
+
output,
|
|
1520
|
+
parsedBody,
|
|
1521
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1522
|
+
errorCode,
|
|
1588
1523
|
});
|
|
1589
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1590
1524
|
}
|
|
1591
1525
|
};
|
|
1592
1526
|
const deserializeAws_json1_1DescribeCertificatesCommand = async (output, context) => {
|
|
@@ -1608,7 +1542,6 @@ const deserializeAws_json1_1DescribeCertificatesCommandError = async (output, co
|
|
|
1608
1542
|
...output,
|
|
1609
1543
|
body: await parseBody(output.body, context),
|
|
1610
1544
|
};
|
|
1611
|
-
let response;
|
|
1612
1545
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
1546
|
switch (errorCode) {
|
|
1614
1547
|
case "ResourceNotFoundFault":
|
|
@@ -1616,14 +1549,12 @@ const deserializeAws_json1_1DescribeCertificatesCommandError = async (output, co
|
|
|
1616
1549
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1617
1550
|
default:
|
|
1618
1551
|
const parsedBody = parsedOutput.body;
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
$metadata,
|
|
1552
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1553
|
+
output,
|
|
1554
|
+
parsedBody,
|
|
1555
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1556
|
+
errorCode,
|
|
1625
1557
|
});
|
|
1626
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1627
1558
|
}
|
|
1628
1559
|
};
|
|
1629
1560
|
const deserializeAws_json1_1DescribeConnectionsCommand = async (output, context) => {
|
|
@@ -1645,7 +1576,6 @@ const deserializeAws_json1_1DescribeConnectionsCommandError = async (output, con
|
|
|
1645
1576
|
...output,
|
|
1646
1577
|
body: await parseBody(output.body, context),
|
|
1647
1578
|
};
|
|
1648
|
-
let response;
|
|
1649
1579
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1650
1580
|
switch (errorCode) {
|
|
1651
1581
|
case "ResourceNotFoundFault":
|
|
@@ -1653,14 +1583,12 @@ const deserializeAws_json1_1DescribeConnectionsCommandError = async (output, con
|
|
|
1653
1583
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1654
1584
|
default:
|
|
1655
1585
|
const parsedBody = parsedOutput.body;
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
$metadata,
|
|
1586
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1587
|
+
output,
|
|
1588
|
+
parsedBody,
|
|
1589
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1590
|
+
errorCode,
|
|
1662
1591
|
});
|
|
1663
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1664
1592
|
}
|
|
1665
1593
|
};
|
|
1666
1594
|
const deserializeAws_json1_1DescribeEndpointsCommand = async (output, context) => {
|
|
@@ -1682,7 +1610,6 @@ const deserializeAws_json1_1DescribeEndpointsCommandError = async (output, conte
|
|
|
1682
1610
|
...output,
|
|
1683
1611
|
body: await parseBody(output.body, context),
|
|
1684
1612
|
};
|
|
1685
|
-
let response;
|
|
1686
1613
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1687
1614
|
switch (errorCode) {
|
|
1688
1615
|
case "ResourceNotFoundFault":
|
|
@@ -1690,14 +1617,12 @@ const deserializeAws_json1_1DescribeEndpointsCommandError = async (output, conte
|
|
|
1690
1617
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1691
1618
|
default:
|
|
1692
1619
|
const parsedBody = parsedOutput.body;
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
$metadata,
|
|
1620
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1621
|
+
output,
|
|
1622
|
+
parsedBody,
|
|
1623
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1624
|
+
errorCode,
|
|
1699
1625
|
});
|
|
1700
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1701
1626
|
}
|
|
1702
1627
|
};
|
|
1703
1628
|
const deserializeAws_json1_1DescribeEndpointSettingsCommand = async (output, context) => {
|
|
@@ -1719,20 +1644,14 @@ const deserializeAws_json1_1DescribeEndpointSettingsCommandError = async (output
|
|
|
1719
1644
|
...output,
|
|
1720
1645
|
body: await parseBody(output.body, context),
|
|
1721
1646
|
};
|
|
1722
|
-
let response;
|
|
1723
1647
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
$fault: "client",
|
|
1732
|
-
$metadata,
|
|
1733
|
-
});
|
|
1734
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1735
|
-
}
|
|
1648
|
+
const parsedBody = parsedOutput.body;
|
|
1649
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1650
|
+
output,
|
|
1651
|
+
parsedBody,
|
|
1652
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1653
|
+
errorCode,
|
|
1654
|
+
});
|
|
1736
1655
|
};
|
|
1737
1656
|
const deserializeAws_json1_1DescribeEndpointTypesCommand = async (output, context) => {
|
|
1738
1657
|
if (output.statusCode >= 300) {
|
|
@@ -1753,20 +1672,14 @@ const deserializeAws_json1_1DescribeEndpointTypesCommandError = async (output, c
|
|
|
1753
1672
|
...output,
|
|
1754
1673
|
body: await parseBody(output.body, context),
|
|
1755
1674
|
};
|
|
1756
|
-
let response;
|
|
1757
1675
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
$fault: "client",
|
|
1766
|
-
$metadata,
|
|
1767
|
-
});
|
|
1768
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1769
|
-
}
|
|
1676
|
+
const parsedBody = parsedOutput.body;
|
|
1677
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1678
|
+
output,
|
|
1679
|
+
parsedBody,
|
|
1680
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1681
|
+
errorCode,
|
|
1682
|
+
});
|
|
1770
1683
|
};
|
|
1771
1684
|
const deserializeAws_json1_1DescribeEventCategoriesCommand = async (output, context) => {
|
|
1772
1685
|
if (output.statusCode >= 300) {
|
|
@@ -1787,20 +1700,14 @@ const deserializeAws_json1_1DescribeEventCategoriesCommandError = async (output,
|
|
|
1787
1700
|
...output,
|
|
1788
1701
|
body: await parseBody(output.body, context),
|
|
1789
1702
|
};
|
|
1790
|
-
let response;
|
|
1791
1703
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
$fault: "client",
|
|
1800
|
-
$metadata,
|
|
1801
|
-
});
|
|
1802
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1803
|
-
}
|
|
1704
|
+
const parsedBody = parsedOutput.body;
|
|
1705
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1706
|
+
output,
|
|
1707
|
+
parsedBody,
|
|
1708
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1709
|
+
errorCode,
|
|
1710
|
+
});
|
|
1804
1711
|
};
|
|
1805
1712
|
const deserializeAws_json1_1DescribeEventsCommand = async (output, context) => {
|
|
1806
1713
|
if (output.statusCode >= 300) {
|
|
@@ -1821,20 +1728,14 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
1821
1728
|
...output,
|
|
1822
1729
|
body: await parseBody(output.body, context),
|
|
1823
1730
|
};
|
|
1824
|
-
let response;
|
|
1825
1731
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
$fault: "client",
|
|
1834
|
-
$metadata,
|
|
1835
|
-
});
|
|
1836
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1837
|
-
}
|
|
1732
|
+
const parsedBody = parsedOutput.body;
|
|
1733
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1734
|
+
output,
|
|
1735
|
+
parsedBody,
|
|
1736
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1737
|
+
errorCode,
|
|
1738
|
+
});
|
|
1838
1739
|
};
|
|
1839
1740
|
const deserializeAws_json1_1DescribeEventSubscriptionsCommand = async (output, context) => {
|
|
1840
1741
|
if (output.statusCode >= 300) {
|
|
@@ -1855,7 +1756,6 @@ const deserializeAws_json1_1DescribeEventSubscriptionsCommandError = async (outp
|
|
|
1855
1756
|
...output,
|
|
1856
1757
|
body: await parseBody(output.body, context),
|
|
1857
1758
|
};
|
|
1858
|
-
let response;
|
|
1859
1759
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1860
1760
|
switch (errorCode) {
|
|
1861
1761
|
case "ResourceNotFoundFault":
|
|
@@ -1863,14 +1763,12 @@ const deserializeAws_json1_1DescribeEventSubscriptionsCommandError = async (outp
|
|
|
1863
1763
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1864
1764
|
default:
|
|
1865
1765
|
const parsedBody = parsedOutput.body;
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
$metadata,
|
|
1766
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1767
|
+
output,
|
|
1768
|
+
parsedBody,
|
|
1769
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1770
|
+
errorCode,
|
|
1872
1771
|
});
|
|
1873
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1874
1772
|
}
|
|
1875
1773
|
};
|
|
1876
1774
|
const deserializeAws_json1_1DescribeFleetAdvisorCollectorsCommand = async (output, context) => {
|
|
@@ -1892,7 +1790,6 @@ const deserializeAws_json1_1DescribeFleetAdvisorCollectorsCommandError = async (
|
|
|
1892
1790
|
...output,
|
|
1893
1791
|
body: await parseBody(output.body, context),
|
|
1894
1792
|
};
|
|
1895
|
-
let response;
|
|
1896
1793
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1897
1794
|
switch (errorCode) {
|
|
1898
1795
|
case "InvalidResourceStateFault":
|
|
@@ -1900,14 +1797,12 @@ const deserializeAws_json1_1DescribeFleetAdvisorCollectorsCommandError = async (
|
|
|
1900
1797
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
1901
1798
|
default:
|
|
1902
1799
|
const parsedBody = parsedOutput.body;
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
$metadata,
|
|
1800
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1801
|
+
output,
|
|
1802
|
+
parsedBody,
|
|
1803
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1804
|
+
errorCode,
|
|
1909
1805
|
});
|
|
1910
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1911
1806
|
}
|
|
1912
1807
|
};
|
|
1913
1808
|
const deserializeAws_json1_1DescribeFleetAdvisorDatabasesCommand = async (output, context) => {
|
|
@@ -1929,7 +1824,6 @@ const deserializeAws_json1_1DescribeFleetAdvisorDatabasesCommandError = async (o
|
|
|
1929
1824
|
...output,
|
|
1930
1825
|
body: await parseBody(output.body, context),
|
|
1931
1826
|
};
|
|
1932
|
-
let response;
|
|
1933
1827
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1934
1828
|
switch (errorCode) {
|
|
1935
1829
|
case "InvalidResourceStateFault":
|
|
@@ -1937,14 +1831,12 @@ const deserializeAws_json1_1DescribeFleetAdvisorDatabasesCommandError = async (o
|
|
|
1937
1831
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
1938
1832
|
default:
|
|
1939
1833
|
const parsedBody = parsedOutput.body;
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
$metadata,
|
|
1834
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1835
|
+
output,
|
|
1836
|
+
parsedBody,
|
|
1837
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1838
|
+
errorCode,
|
|
1946
1839
|
});
|
|
1947
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1948
1840
|
}
|
|
1949
1841
|
};
|
|
1950
1842
|
const deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommand = async (output, context) => {
|
|
@@ -1966,7 +1858,6 @@ const deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommandError = async
|
|
|
1966
1858
|
...output,
|
|
1967
1859
|
body: await parseBody(output.body, context),
|
|
1968
1860
|
};
|
|
1969
|
-
let response;
|
|
1970
1861
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1971
1862
|
switch (errorCode) {
|
|
1972
1863
|
case "InvalidResourceStateFault":
|
|
@@ -1974,14 +1865,12 @@ const deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommandError = async
|
|
|
1974
1865
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
1975
1866
|
default:
|
|
1976
1867
|
const parsedBody = parsedOutput.body;
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
$metadata,
|
|
1868
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1869
|
+
output,
|
|
1870
|
+
parsedBody,
|
|
1871
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1872
|
+
errorCode,
|
|
1983
1873
|
});
|
|
1984
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1985
1874
|
}
|
|
1986
1875
|
};
|
|
1987
1876
|
const deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommand = async (output, context) => {
|
|
@@ -2003,7 +1892,6 @@ const deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommandError
|
|
|
2003
1892
|
...output,
|
|
2004
1893
|
body: await parseBody(output.body, context),
|
|
2005
1894
|
};
|
|
2006
|
-
let response;
|
|
2007
1895
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
1896
|
switch (errorCode) {
|
|
2009
1897
|
case "InvalidResourceStateFault":
|
|
@@ -2011,14 +1899,12 @@ const deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommandError
|
|
|
2011
1899
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
2012
1900
|
default:
|
|
2013
1901
|
const parsedBody = parsedOutput.body;
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
$metadata,
|
|
1902
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1903
|
+
output,
|
|
1904
|
+
parsedBody,
|
|
1905
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1906
|
+
errorCode,
|
|
2020
1907
|
});
|
|
2021
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2022
1908
|
}
|
|
2023
1909
|
};
|
|
2024
1910
|
const deserializeAws_json1_1DescribeFleetAdvisorSchemasCommand = async (output, context) => {
|
|
@@ -2040,7 +1926,6 @@ const deserializeAws_json1_1DescribeFleetAdvisorSchemasCommandError = async (out
|
|
|
2040
1926
|
...output,
|
|
2041
1927
|
body: await parseBody(output.body, context),
|
|
2042
1928
|
};
|
|
2043
|
-
let response;
|
|
2044
1929
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2045
1930
|
switch (errorCode) {
|
|
2046
1931
|
case "InvalidResourceStateFault":
|
|
@@ -2048,14 +1933,12 @@ const deserializeAws_json1_1DescribeFleetAdvisorSchemasCommandError = async (out
|
|
|
2048
1933
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
2049
1934
|
default:
|
|
2050
1935
|
const parsedBody = parsedOutput.body;
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
$metadata,
|
|
1936
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1937
|
+
output,
|
|
1938
|
+
parsedBody,
|
|
1939
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1940
|
+
errorCode,
|
|
2057
1941
|
});
|
|
2058
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2059
1942
|
}
|
|
2060
1943
|
};
|
|
2061
1944
|
const deserializeAws_json1_1DescribeOrderableReplicationInstancesCommand = async (output, context) => {
|
|
@@ -2077,20 +1960,14 @@ const deserializeAws_json1_1DescribeOrderableReplicationInstancesCommandError =
|
|
|
2077
1960
|
...output,
|
|
2078
1961
|
body: await parseBody(output.body, context),
|
|
2079
1962
|
};
|
|
2080
|
-
let response;
|
|
2081
1963
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
$fault: "client",
|
|
2090
|
-
$metadata,
|
|
2091
|
-
});
|
|
2092
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2093
|
-
}
|
|
1964
|
+
const parsedBody = parsedOutput.body;
|
|
1965
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1966
|
+
output,
|
|
1967
|
+
parsedBody,
|
|
1968
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
1969
|
+
errorCode,
|
|
1970
|
+
});
|
|
2094
1971
|
};
|
|
2095
1972
|
const deserializeAws_json1_1DescribePendingMaintenanceActionsCommand = async (output, context) => {
|
|
2096
1973
|
if (output.statusCode >= 300) {
|
|
@@ -2111,7 +1988,6 @@ const deserializeAws_json1_1DescribePendingMaintenanceActionsCommandError = asyn
|
|
|
2111
1988
|
...output,
|
|
2112
1989
|
body: await parseBody(output.body, context),
|
|
2113
1990
|
};
|
|
2114
|
-
let response;
|
|
2115
1991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
1992
|
switch (errorCode) {
|
|
2117
1993
|
case "ResourceNotFoundFault":
|
|
@@ -2119,14 +1995,12 @@ const deserializeAws_json1_1DescribePendingMaintenanceActionsCommandError = asyn
|
|
|
2119
1995
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2120
1996
|
default:
|
|
2121
1997
|
const parsedBody = parsedOutput.body;
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
$metadata,
|
|
1998
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1999
|
+
output,
|
|
2000
|
+
parsedBody,
|
|
2001
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2002
|
+
errorCode,
|
|
2128
2003
|
});
|
|
2129
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2130
2004
|
}
|
|
2131
2005
|
};
|
|
2132
2006
|
const deserializeAws_json1_1DescribeRefreshSchemasStatusCommand = async (output, context) => {
|
|
@@ -2148,7 +2022,6 @@ const deserializeAws_json1_1DescribeRefreshSchemasStatusCommandError = async (ou
|
|
|
2148
2022
|
...output,
|
|
2149
2023
|
body: await parseBody(output.body, context),
|
|
2150
2024
|
};
|
|
2151
|
-
let response;
|
|
2152
2025
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2153
2026
|
switch (errorCode) {
|
|
2154
2027
|
case "InvalidResourceStateFault":
|
|
@@ -2159,14 +2032,12 @@ const deserializeAws_json1_1DescribeRefreshSchemasStatusCommandError = async (ou
|
|
|
2159
2032
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2160
2033
|
default:
|
|
2161
2034
|
const parsedBody = parsedOutput.body;
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
$metadata,
|
|
2035
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2036
|
+
output,
|
|
2037
|
+
parsedBody,
|
|
2038
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2039
|
+
errorCode,
|
|
2168
2040
|
});
|
|
2169
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2170
2041
|
}
|
|
2171
2042
|
};
|
|
2172
2043
|
const deserializeAws_json1_1DescribeReplicationInstancesCommand = async (output, context) => {
|
|
@@ -2188,7 +2059,6 @@ const deserializeAws_json1_1DescribeReplicationInstancesCommandError = async (ou
|
|
|
2188
2059
|
...output,
|
|
2189
2060
|
body: await parseBody(output.body, context),
|
|
2190
2061
|
};
|
|
2191
|
-
let response;
|
|
2192
2062
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2193
2063
|
switch (errorCode) {
|
|
2194
2064
|
case "ResourceNotFoundFault":
|
|
@@ -2196,14 +2066,12 @@ const deserializeAws_json1_1DescribeReplicationInstancesCommandError = async (ou
|
|
|
2196
2066
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2197
2067
|
default:
|
|
2198
2068
|
const parsedBody = parsedOutput.body;
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
$metadata,
|
|
2069
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2070
|
+
output,
|
|
2071
|
+
parsedBody,
|
|
2072
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2073
|
+
errorCode,
|
|
2205
2074
|
});
|
|
2206
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2207
2075
|
}
|
|
2208
2076
|
};
|
|
2209
2077
|
const deserializeAws_json1_1DescribeReplicationInstanceTaskLogsCommand = async (output, context) => {
|
|
@@ -2225,7 +2093,6 @@ const deserializeAws_json1_1DescribeReplicationInstanceTaskLogsCommandError = as
|
|
|
2225
2093
|
...output,
|
|
2226
2094
|
body: await parseBody(output.body, context),
|
|
2227
2095
|
};
|
|
2228
|
-
let response;
|
|
2229
2096
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2230
2097
|
switch (errorCode) {
|
|
2231
2098
|
case "InvalidResourceStateFault":
|
|
@@ -2236,14 +2103,12 @@ const deserializeAws_json1_1DescribeReplicationInstanceTaskLogsCommandError = as
|
|
|
2236
2103
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2237
2104
|
default:
|
|
2238
2105
|
const parsedBody = parsedOutput.body;
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
$metadata,
|
|
2106
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2107
|
+
output,
|
|
2108
|
+
parsedBody,
|
|
2109
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2110
|
+
errorCode,
|
|
2245
2111
|
});
|
|
2246
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2247
2112
|
}
|
|
2248
2113
|
};
|
|
2249
2114
|
const deserializeAws_json1_1DescribeReplicationSubnetGroupsCommand = async (output, context) => {
|
|
@@ -2265,7 +2130,6 @@ const deserializeAws_json1_1DescribeReplicationSubnetGroupsCommandError = async
|
|
|
2265
2130
|
...output,
|
|
2266
2131
|
body: await parseBody(output.body, context),
|
|
2267
2132
|
};
|
|
2268
|
-
let response;
|
|
2269
2133
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2270
2134
|
switch (errorCode) {
|
|
2271
2135
|
case "ResourceNotFoundFault":
|
|
@@ -2273,14 +2137,12 @@ const deserializeAws_json1_1DescribeReplicationSubnetGroupsCommandError = async
|
|
|
2273
2137
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2274
2138
|
default:
|
|
2275
2139
|
const parsedBody = parsedOutput.body;
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
$metadata,
|
|
2140
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2141
|
+
output,
|
|
2142
|
+
parsedBody,
|
|
2143
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2144
|
+
errorCode,
|
|
2282
2145
|
});
|
|
2283
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2284
2146
|
}
|
|
2285
2147
|
};
|
|
2286
2148
|
const deserializeAws_json1_1DescribeReplicationTaskAssessmentResultsCommand = async (output, context) => {
|
|
@@ -2302,7 +2164,6 @@ const deserializeAws_json1_1DescribeReplicationTaskAssessmentResultsCommandError
|
|
|
2302
2164
|
...output,
|
|
2303
2165
|
body: await parseBody(output.body, context),
|
|
2304
2166
|
};
|
|
2305
|
-
let response;
|
|
2306
2167
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2307
2168
|
switch (errorCode) {
|
|
2308
2169
|
case "ResourceNotFoundFault":
|
|
@@ -2310,14 +2171,12 @@ const deserializeAws_json1_1DescribeReplicationTaskAssessmentResultsCommandError
|
|
|
2310
2171
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2311
2172
|
default:
|
|
2312
2173
|
const parsedBody = parsedOutput.body;
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
$metadata,
|
|
2174
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2175
|
+
output,
|
|
2176
|
+
parsedBody,
|
|
2177
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2178
|
+
errorCode,
|
|
2319
2179
|
});
|
|
2320
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2321
2180
|
}
|
|
2322
2181
|
};
|
|
2323
2182
|
const deserializeAws_json1_1DescribeReplicationTaskAssessmentRunsCommand = async (output, context) => {
|
|
@@ -2339,7 +2198,6 @@ const deserializeAws_json1_1DescribeReplicationTaskAssessmentRunsCommandError =
|
|
|
2339
2198
|
...output,
|
|
2340
2199
|
body: await parseBody(output.body, context),
|
|
2341
2200
|
};
|
|
2342
|
-
let response;
|
|
2343
2201
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
2202
|
switch (errorCode) {
|
|
2345
2203
|
case "ResourceNotFoundFault":
|
|
@@ -2347,14 +2205,12 @@ const deserializeAws_json1_1DescribeReplicationTaskAssessmentRunsCommandError =
|
|
|
2347
2205
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2348
2206
|
default:
|
|
2349
2207
|
const parsedBody = parsedOutput.body;
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
$metadata,
|
|
2208
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2209
|
+
output,
|
|
2210
|
+
parsedBody,
|
|
2211
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2212
|
+
errorCode,
|
|
2356
2213
|
});
|
|
2357
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2358
2214
|
}
|
|
2359
2215
|
};
|
|
2360
2216
|
const deserializeAws_json1_1DescribeReplicationTaskIndividualAssessmentsCommand = async (output, context) => {
|
|
@@ -2376,7 +2232,6 @@ const deserializeAws_json1_1DescribeReplicationTaskIndividualAssessmentsCommandE
|
|
|
2376
2232
|
...output,
|
|
2377
2233
|
body: await parseBody(output.body, context),
|
|
2378
2234
|
};
|
|
2379
|
-
let response;
|
|
2380
2235
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2381
2236
|
switch (errorCode) {
|
|
2382
2237
|
case "ResourceNotFoundFault":
|
|
@@ -2384,14 +2239,12 @@ const deserializeAws_json1_1DescribeReplicationTaskIndividualAssessmentsCommandE
|
|
|
2384
2239
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2385
2240
|
default:
|
|
2386
2241
|
const parsedBody = parsedOutput.body;
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
$metadata,
|
|
2242
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2243
|
+
output,
|
|
2244
|
+
parsedBody,
|
|
2245
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2246
|
+
errorCode,
|
|
2393
2247
|
});
|
|
2394
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2395
2248
|
}
|
|
2396
2249
|
};
|
|
2397
2250
|
const deserializeAws_json1_1DescribeReplicationTasksCommand = async (output, context) => {
|
|
@@ -2413,7 +2266,6 @@ const deserializeAws_json1_1DescribeReplicationTasksCommandError = async (output
|
|
|
2413
2266
|
...output,
|
|
2414
2267
|
body: await parseBody(output.body, context),
|
|
2415
2268
|
};
|
|
2416
|
-
let response;
|
|
2417
2269
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2418
2270
|
switch (errorCode) {
|
|
2419
2271
|
case "ResourceNotFoundFault":
|
|
@@ -2421,14 +2273,12 @@ const deserializeAws_json1_1DescribeReplicationTasksCommandError = async (output
|
|
|
2421
2273
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2422
2274
|
default:
|
|
2423
2275
|
const parsedBody = parsedOutput.body;
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
$metadata,
|
|
2276
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2277
|
+
output,
|
|
2278
|
+
parsedBody,
|
|
2279
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2280
|
+
errorCode,
|
|
2430
2281
|
});
|
|
2431
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2432
2282
|
}
|
|
2433
2283
|
};
|
|
2434
2284
|
const deserializeAws_json1_1DescribeSchemasCommand = async (output, context) => {
|
|
@@ -2450,7 +2300,6 @@ const deserializeAws_json1_1DescribeSchemasCommandError = async (output, context
|
|
|
2450
2300
|
...output,
|
|
2451
2301
|
body: await parseBody(output.body, context),
|
|
2452
2302
|
};
|
|
2453
|
-
let response;
|
|
2454
2303
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2455
2304
|
switch (errorCode) {
|
|
2456
2305
|
case "InvalidResourceStateFault":
|
|
@@ -2461,14 +2310,12 @@ const deserializeAws_json1_1DescribeSchemasCommandError = async (output, context
|
|
|
2461
2310
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2462
2311
|
default:
|
|
2463
2312
|
const parsedBody = parsedOutput.body;
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
$metadata,
|
|
2313
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2314
|
+
output,
|
|
2315
|
+
parsedBody,
|
|
2316
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2317
|
+
errorCode,
|
|
2470
2318
|
});
|
|
2471
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2472
2319
|
}
|
|
2473
2320
|
};
|
|
2474
2321
|
const deserializeAws_json1_1DescribeTableStatisticsCommand = async (output, context) => {
|
|
@@ -2490,7 +2337,6 @@ const deserializeAws_json1_1DescribeTableStatisticsCommandError = async (output,
|
|
|
2490
2337
|
...output,
|
|
2491
2338
|
body: await parseBody(output.body, context),
|
|
2492
2339
|
};
|
|
2493
|
-
let response;
|
|
2494
2340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2495
2341
|
switch (errorCode) {
|
|
2496
2342
|
case "InvalidResourceStateFault":
|
|
@@ -2501,14 +2347,12 @@ const deserializeAws_json1_1DescribeTableStatisticsCommandError = async (output,
|
|
|
2501
2347
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2502
2348
|
default:
|
|
2503
2349
|
const parsedBody = parsedOutput.body;
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
$metadata,
|
|
2350
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2351
|
+
output,
|
|
2352
|
+
parsedBody,
|
|
2353
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2354
|
+
errorCode,
|
|
2510
2355
|
});
|
|
2511
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2512
2356
|
}
|
|
2513
2357
|
};
|
|
2514
2358
|
const deserializeAws_json1_1ImportCertificateCommand = async (output, context) => {
|
|
@@ -2530,7 +2374,6 @@ const deserializeAws_json1_1ImportCertificateCommandError = async (output, conte
|
|
|
2530
2374
|
...output,
|
|
2531
2375
|
body: await parseBody(output.body, context),
|
|
2532
2376
|
};
|
|
2533
|
-
let response;
|
|
2534
2377
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2535
2378
|
switch (errorCode) {
|
|
2536
2379
|
case "InvalidCertificateFault":
|
|
@@ -2544,14 +2387,12 @@ const deserializeAws_json1_1ImportCertificateCommandError = async (output, conte
|
|
|
2544
2387
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
2545
2388
|
default:
|
|
2546
2389
|
const parsedBody = parsedOutput.body;
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
$metadata,
|
|
2390
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2391
|
+
output,
|
|
2392
|
+
parsedBody,
|
|
2393
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2394
|
+
errorCode,
|
|
2553
2395
|
});
|
|
2554
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2555
2396
|
}
|
|
2556
2397
|
};
|
|
2557
2398
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2573,7 +2414,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2573
2414
|
...output,
|
|
2574
2415
|
body: await parseBody(output.body, context),
|
|
2575
2416
|
};
|
|
2576
|
-
let response;
|
|
2577
2417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2578
2418
|
switch (errorCode) {
|
|
2579
2419
|
case "ResourceNotFoundFault":
|
|
@@ -2581,14 +2421,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2581
2421
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2582
2422
|
default:
|
|
2583
2423
|
const parsedBody = parsedOutput.body;
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
$metadata,
|
|
2424
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2425
|
+
output,
|
|
2426
|
+
parsedBody,
|
|
2427
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2428
|
+
errorCode,
|
|
2590
2429
|
});
|
|
2591
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2592
2430
|
}
|
|
2593
2431
|
};
|
|
2594
2432
|
const deserializeAws_json1_1ModifyEndpointCommand = async (output, context) => {
|
|
@@ -2610,7 +2448,6 @@ const deserializeAws_json1_1ModifyEndpointCommandError = async (output, context)
|
|
|
2610
2448
|
...output,
|
|
2611
2449
|
body: await parseBody(output.body, context),
|
|
2612
2450
|
};
|
|
2613
|
-
let response;
|
|
2614
2451
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2615
2452
|
switch (errorCode) {
|
|
2616
2453
|
case "AccessDeniedFault":
|
|
@@ -2630,14 +2467,12 @@ const deserializeAws_json1_1ModifyEndpointCommandError = async (output, context)
|
|
|
2630
2467
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2631
2468
|
default:
|
|
2632
2469
|
const parsedBody = parsedOutput.body;
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
$metadata,
|
|
2470
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2471
|
+
output,
|
|
2472
|
+
parsedBody,
|
|
2473
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2474
|
+
errorCode,
|
|
2639
2475
|
});
|
|
2640
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2641
2476
|
}
|
|
2642
2477
|
};
|
|
2643
2478
|
const deserializeAws_json1_1ModifyEventSubscriptionCommand = async (output, context) => {
|
|
@@ -2659,7 +2494,6 @@ const deserializeAws_json1_1ModifyEventSubscriptionCommandError = async (output,
|
|
|
2659
2494
|
...output,
|
|
2660
2495
|
body: await parseBody(output.body, context),
|
|
2661
2496
|
};
|
|
2662
|
-
let response;
|
|
2663
2497
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2664
2498
|
switch (errorCode) {
|
|
2665
2499
|
case "KMSAccessDeniedFault":
|
|
@@ -2691,14 +2525,12 @@ const deserializeAws_json1_1ModifyEventSubscriptionCommandError = async (output,
|
|
|
2691
2525
|
throw await deserializeAws_json1_1SNSNoAuthorizationFaultResponse(parsedOutput, context);
|
|
2692
2526
|
default:
|
|
2693
2527
|
const parsedBody = parsedOutput.body;
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
$metadata,
|
|
2528
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2529
|
+
output,
|
|
2530
|
+
parsedBody,
|
|
2531
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2532
|
+
errorCode,
|
|
2700
2533
|
});
|
|
2701
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2702
2534
|
}
|
|
2703
2535
|
};
|
|
2704
2536
|
const deserializeAws_json1_1ModifyReplicationInstanceCommand = async (output, context) => {
|
|
@@ -2720,7 +2552,6 @@ const deserializeAws_json1_1ModifyReplicationInstanceCommandError = async (outpu
|
|
|
2720
2552
|
...output,
|
|
2721
2553
|
body: await parseBody(output.body, context),
|
|
2722
2554
|
};
|
|
2723
|
-
let response;
|
|
2724
2555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
2556
|
switch (errorCode) {
|
|
2726
2557
|
case "AccessDeniedFault":
|
|
@@ -2746,14 +2577,12 @@ const deserializeAws_json1_1ModifyReplicationInstanceCommandError = async (outpu
|
|
|
2746
2577
|
throw await deserializeAws_json1_1UpgradeDependencyFailureFaultResponse(parsedOutput, context);
|
|
2747
2578
|
default:
|
|
2748
2579
|
const parsedBody = parsedOutput.body;
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
$metadata,
|
|
2580
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2581
|
+
output,
|
|
2582
|
+
parsedBody,
|
|
2583
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2584
|
+
errorCode,
|
|
2755
2585
|
});
|
|
2756
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2757
2586
|
}
|
|
2758
2587
|
};
|
|
2759
2588
|
const deserializeAws_json1_1ModifyReplicationSubnetGroupCommand = async (output, context) => {
|
|
@@ -2775,7 +2604,6 @@ const deserializeAws_json1_1ModifyReplicationSubnetGroupCommandError = async (ou
|
|
|
2775
2604
|
...output,
|
|
2776
2605
|
body: await parseBody(output.body, context),
|
|
2777
2606
|
};
|
|
2778
|
-
let response;
|
|
2779
2607
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2780
2608
|
switch (errorCode) {
|
|
2781
2609
|
case "AccessDeniedFault":
|
|
@@ -2798,14 +2626,12 @@ const deserializeAws_json1_1ModifyReplicationSubnetGroupCommandError = async (ou
|
|
|
2798
2626
|
throw await deserializeAws_json1_1SubnetAlreadyInUseResponse(parsedOutput, context);
|
|
2799
2627
|
default:
|
|
2800
2628
|
const parsedBody = parsedOutput.body;
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
$metadata,
|
|
2629
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2630
|
+
output,
|
|
2631
|
+
parsedBody,
|
|
2632
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2633
|
+
errorCode,
|
|
2807
2634
|
});
|
|
2808
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2809
2635
|
}
|
|
2810
2636
|
};
|
|
2811
2637
|
const deserializeAws_json1_1ModifyReplicationTaskCommand = async (output, context) => {
|
|
@@ -2827,7 +2653,6 @@ const deserializeAws_json1_1ModifyReplicationTaskCommandError = async (output, c
|
|
|
2827
2653
|
...output,
|
|
2828
2654
|
body: await parseBody(output.body, context),
|
|
2829
2655
|
};
|
|
2830
|
-
let response;
|
|
2831
2656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2832
2657
|
switch (errorCode) {
|
|
2833
2658
|
case "InvalidResourceStateFault":
|
|
@@ -2844,14 +2669,12 @@ const deserializeAws_json1_1ModifyReplicationTaskCommandError = async (output, c
|
|
|
2844
2669
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2845
2670
|
default:
|
|
2846
2671
|
const parsedBody = parsedOutput.body;
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
$metadata,
|
|
2672
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2673
|
+
output,
|
|
2674
|
+
parsedBody,
|
|
2675
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2676
|
+
errorCode,
|
|
2853
2677
|
});
|
|
2854
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2855
2678
|
}
|
|
2856
2679
|
};
|
|
2857
2680
|
const deserializeAws_json1_1MoveReplicationTaskCommand = async (output, context) => {
|
|
@@ -2873,7 +2696,6 @@ const deserializeAws_json1_1MoveReplicationTaskCommandError = async (output, con
|
|
|
2873
2696
|
...output,
|
|
2874
2697
|
body: await parseBody(output.body, context),
|
|
2875
2698
|
};
|
|
2876
|
-
let response;
|
|
2877
2699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2878
2700
|
switch (errorCode) {
|
|
2879
2701
|
case "AccessDeniedFault":
|
|
@@ -2893,14 +2715,12 @@ const deserializeAws_json1_1MoveReplicationTaskCommandError = async (output, con
|
|
|
2893
2715
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
2894
2716
|
default:
|
|
2895
2717
|
const parsedBody = parsedOutput.body;
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
$metadata,
|
|
2718
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2719
|
+
output,
|
|
2720
|
+
parsedBody,
|
|
2721
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2722
|
+
errorCode,
|
|
2902
2723
|
});
|
|
2903
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2904
2724
|
}
|
|
2905
2725
|
};
|
|
2906
2726
|
const deserializeAws_json1_1RebootReplicationInstanceCommand = async (output, context) => {
|
|
@@ -2922,7 +2742,6 @@ const deserializeAws_json1_1RebootReplicationInstanceCommandError = async (outpu
|
|
|
2922
2742
|
...output,
|
|
2923
2743
|
body: await parseBody(output.body, context),
|
|
2924
2744
|
};
|
|
2925
|
-
let response;
|
|
2926
2745
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2927
2746
|
switch (errorCode) {
|
|
2928
2747
|
case "InvalidResourceStateFault":
|
|
@@ -2933,14 +2752,12 @@ const deserializeAws_json1_1RebootReplicationInstanceCommandError = async (outpu
|
|
|
2933
2752
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2934
2753
|
default:
|
|
2935
2754
|
const parsedBody = parsedOutput.body;
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
$metadata,
|
|
2755
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2756
|
+
output,
|
|
2757
|
+
parsedBody,
|
|
2758
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2759
|
+
errorCode,
|
|
2942
2760
|
});
|
|
2943
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2944
2761
|
}
|
|
2945
2762
|
};
|
|
2946
2763
|
const deserializeAws_json1_1RefreshSchemasCommand = async (output, context) => {
|
|
@@ -2962,7 +2779,6 @@ const deserializeAws_json1_1RefreshSchemasCommandError = async (output, context)
|
|
|
2962
2779
|
...output,
|
|
2963
2780
|
body: await parseBody(output.body, context),
|
|
2964
2781
|
};
|
|
2965
|
-
let response;
|
|
2966
2782
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2967
2783
|
switch (errorCode) {
|
|
2968
2784
|
case "InvalidResourceStateFault":
|
|
@@ -2979,14 +2795,12 @@ const deserializeAws_json1_1RefreshSchemasCommandError = async (output, context)
|
|
|
2979
2795
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
2980
2796
|
default:
|
|
2981
2797
|
const parsedBody = parsedOutput.body;
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
$metadata,
|
|
2798
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2799
|
+
output,
|
|
2800
|
+
parsedBody,
|
|
2801
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2802
|
+
errorCode,
|
|
2988
2803
|
});
|
|
2989
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2990
2804
|
}
|
|
2991
2805
|
};
|
|
2992
2806
|
const deserializeAws_json1_1ReloadTablesCommand = async (output, context) => {
|
|
@@ -3008,7 +2822,6 @@ const deserializeAws_json1_1ReloadTablesCommandError = async (output, context) =
|
|
|
3008
2822
|
...output,
|
|
3009
2823
|
body: await parseBody(output.body, context),
|
|
3010
2824
|
};
|
|
3011
|
-
let response;
|
|
3012
2825
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3013
2826
|
switch (errorCode) {
|
|
3014
2827
|
case "InvalidResourceStateFault":
|
|
@@ -3019,14 +2832,12 @@ const deserializeAws_json1_1ReloadTablesCommandError = async (output, context) =
|
|
|
3019
2832
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3020
2833
|
default:
|
|
3021
2834
|
const parsedBody = parsedOutput.body;
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
$metadata,
|
|
2835
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2836
|
+
output,
|
|
2837
|
+
parsedBody,
|
|
2838
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2839
|
+
errorCode,
|
|
3028
2840
|
});
|
|
3029
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3030
2841
|
}
|
|
3031
2842
|
};
|
|
3032
2843
|
const deserializeAws_json1_1RemoveTagsFromResourceCommand = async (output, context) => {
|
|
@@ -3048,7 +2859,6 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
3048
2859
|
...output,
|
|
3049
2860
|
body: await parseBody(output.body, context),
|
|
3050
2861
|
};
|
|
3051
|
-
let response;
|
|
3052
2862
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
2863
|
switch (errorCode) {
|
|
3054
2864
|
case "ResourceNotFoundFault":
|
|
@@ -3056,14 +2866,12 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
3056
2866
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3057
2867
|
default:
|
|
3058
2868
|
const parsedBody = parsedOutput.body;
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
$metadata,
|
|
2869
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2870
|
+
output,
|
|
2871
|
+
parsedBody,
|
|
2872
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2873
|
+
errorCode,
|
|
3065
2874
|
});
|
|
3066
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3067
2875
|
}
|
|
3068
2876
|
};
|
|
3069
2877
|
const deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand = async (output, context) => {
|
|
@@ -3085,7 +2893,6 @@ const deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommandError = async (outp
|
|
|
3085
2893
|
...output,
|
|
3086
2894
|
body: await parseBody(output.body, context),
|
|
3087
2895
|
};
|
|
3088
|
-
let response;
|
|
3089
2896
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3090
2897
|
switch (errorCode) {
|
|
3091
2898
|
case "InvalidResourceStateFault":
|
|
@@ -3096,14 +2903,12 @@ const deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommandError = async (outp
|
|
|
3096
2903
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3097
2904
|
default:
|
|
3098
2905
|
const parsedBody = parsedOutput.body;
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
$metadata,
|
|
2906
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2907
|
+
output,
|
|
2908
|
+
parsedBody,
|
|
2909
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2910
|
+
errorCode,
|
|
3105
2911
|
});
|
|
3106
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3107
2912
|
}
|
|
3108
2913
|
};
|
|
3109
2914
|
const deserializeAws_json1_1StartReplicationTaskCommand = async (output, context) => {
|
|
@@ -3125,7 +2930,6 @@ const deserializeAws_json1_1StartReplicationTaskCommandError = async (output, co
|
|
|
3125
2930
|
...output,
|
|
3126
2931
|
body: await parseBody(output.body, context),
|
|
3127
2932
|
};
|
|
3128
|
-
let response;
|
|
3129
2933
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3130
2934
|
switch (errorCode) {
|
|
3131
2935
|
case "AccessDeniedFault":
|
|
@@ -3139,14 +2943,12 @@ const deserializeAws_json1_1StartReplicationTaskCommandError = async (output, co
|
|
|
3139
2943
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3140
2944
|
default:
|
|
3141
2945
|
const parsedBody = parsedOutput.body;
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
$metadata,
|
|
2946
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2947
|
+
output,
|
|
2948
|
+
parsedBody,
|
|
2949
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2950
|
+
errorCode,
|
|
3148
2951
|
});
|
|
3149
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3150
2952
|
}
|
|
3151
2953
|
};
|
|
3152
2954
|
const deserializeAws_json1_1StartReplicationTaskAssessmentCommand = async (output, context) => {
|
|
@@ -3168,7 +2970,6 @@ const deserializeAws_json1_1StartReplicationTaskAssessmentCommandError = async (
|
|
|
3168
2970
|
...output,
|
|
3169
2971
|
body: await parseBody(output.body, context),
|
|
3170
2972
|
};
|
|
3171
|
-
let response;
|
|
3172
2973
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3173
2974
|
switch (errorCode) {
|
|
3174
2975
|
case "InvalidResourceStateFault":
|
|
@@ -3179,14 +2980,12 @@ const deserializeAws_json1_1StartReplicationTaskAssessmentCommandError = async (
|
|
|
3179
2980
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3180
2981
|
default:
|
|
3181
2982
|
const parsedBody = parsedOutput.body;
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
$metadata,
|
|
2983
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2984
|
+
output,
|
|
2985
|
+
parsedBody,
|
|
2986
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2987
|
+
errorCode,
|
|
3188
2988
|
});
|
|
3189
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3190
2989
|
}
|
|
3191
2990
|
};
|
|
3192
2991
|
const deserializeAws_json1_1StartReplicationTaskAssessmentRunCommand = async (output, context) => {
|
|
@@ -3208,7 +3007,6 @@ const deserializeAws_json1_1StartReplicationTaskAssessmentRunCommandError = asyn
|
|
|
3208
3007
|
...output,
|
|
3209
3008
|
body: await parseBody(output.body, context),
|
|
3210
3009
|
};
|
|
3211
|
-
let response;
|
|
3212
3010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3213
3011
|
switch (errorCode) {
|
|
3214
3012
|
case "AccessDeniedFault":
|
|
@@ -3249,14 +3047,12 @@ const deserializeAws_json1_1StartReplicationTaskAssessmentRunCommandError = asyn
|
|
|
3249
3047
|
throw await deserializeAws_json1_1S3ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3250
3048
|
default:
|
|
3251
3049
|
const parsedBody = parsedOutput.body;
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
$metadata,
|
|
3050
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3051
|
+
output,
|
|
3052
|
+
parsedBody,
|
|
3053
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
3054
|
+
errorCode,
|
|
3258
3055
|
});
|
|
3259
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3260
3056
|
}
|
|
3261
3057
|
};
|
|
3262
3058
|
const deserializeAws_json1_1StopReplicationTaskCommand = async (output, context) => {
|
|
@@ -3278,7 +3074,6 @@ const deserializeAws_json1_1StopReplicationTaskCommandError = async (output, con
|
|
|
3278
3074
|
...output,
|
|
3279
3075
|
body: await parseBody(output.body, context),
|
|
3280
3076
|
};
|
|
3281
|
-
let response;
|
|
3282
3077
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3283
3078
|
switch (errorCode) {
|
|
3284
3079
|
case "InvalidResourceStateFault":
|
|
@@ -3289,14 +3084,12 @@ const deserializeAws_json1_1StopReplicationTaskCommandError = async (output, con
|
|
|
3289
3084
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3290
3085
|
default:
|
|
3291
3086
|
const parsedBody = parsedOutput.body;
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
$metadata,
|
|
3087
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3088
|
+
output,
|
|
3089
|
+
parsedBody,
|
|
3090
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
3091
|
+
errorCode,
|
|
3298
3092
|
});
|
|
3299
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3300
3093
|
}
|
|
3301
3094
|
};
|
|
3302
3095
|
const deserializeAws_json1_1TestConnectionCommand = async (output, context) => {
|
|
@@ -3318,7 +3111,6 @@ const deserializeAws_json1_1TestConnectionCommandError = async (output, context)
|
|
|
3318
3111
|
...output,
|
|
3319
3112
|
body: await parseBody(output.body, context),
|
|
3320
3113
|
};
|
|
3321
|
-
let response;
|
|
3322
3114
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3323
3115
|
switch (errorCode) {
|
|
3324
3116
|
case "AccessDeniedFault":
|
|
@@ -3338,14 +3130,12 @@ const deserializeAws_json1_1TestConnectionCommandError = async (output, context)
|
|
|
3338
3130
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
3339
3131
|
default:
|
|
3340
3132
|
const parsedBody = parsedOutput.body;
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
$metadata,
|
|
3133
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3134
|
+
output,
|
|
3135
|
+
parsedBody,
|
|
3136
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
3137
|
+
errorCode,
|
|
3347
3138
|
});
|
|
3348
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3349
3139
|
}
|
|
3350
3140
|
};
|
|
3351
3141
|
const deserializeAws_json1_1UpdateSubscriptionsToEventBridgeCommand = async (output, context) => {
|
|
@@ -3367,7 +3157,6 @@ const deserializeAws_json1_1UpdateSubscriptionsToEventBridgeCommandError = async
|
|
|
3367
3157
|
...output,
|
|
3368
3158
|
body: await parseBody(output.body, context),
|
|
3369
3159
|
};
|
|
3370
|
-
let response;
|
|
3371
3160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3372
3161
|
switch (errorCode) {
|
|
3373
3162
|
case "AccessDeniedFault":
|
|
@@ -3378,14 +3167,12 @@ const deserializeAws_json1_1UpdateSubscriptionsToEventBridgeCommandError = async
|
|
|
3378
3167
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
3379
3168
|
default:
|
|
3380
3169
|
const parsedBody = parsedOutput.body;
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
$metadata,
|
|
3170
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3171
|
+
output,
|
|
3172
|
+
parsedBody,
|
|
3173
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
3174
|
+
errorCode,
|
|
3387
3175
|
});
|
|
3388
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3389
3176
|
}
|
|
3390
3177
|
};
|
|
3391
3178
|
const deserializeAws_json1_1AccessDeniedFaultResponse = async (parsedOutput, context) => {
|
|
@@ -3630,9 +3417,6 @@ const serializeAws_json1_1ArnList = (input, context) => {
|
|
|
3630
3417
|
return input
|
|
3631
3418
|
.filter((e) => e != null)
|
|
3632
3419
|
.map((entry) => {
|
|
3633
|
-
if (entry === null) {
|
|
3634
|
-
return null;
|
|
3635
|
-
}
|
|
3636
3420
|
return entry;
|
|
3637
3421
|
});
|
|
3638
3422
|
};
|
|
@@ -4082,9 +3866,6 @@ const serializeAws_json1_1EventCategoriesList = (input, context) => {
|
|
|
4082
3866
|
return input
|
|
4083
3867
|
.filter((e) => e != null)
|
|
4084
3868
|
.map((entry) => {
|
|
4085
|
-
if (entry === null) {
|
|
4086
|
-
return null;
|
|
4087
|
-
}
|
|
4088
3869
|
return entry;
|
|
4089
3870
|
});
|
|
4090
3871
|
};
|
|
@@ -4092,9 +3873,6 @@ const serializeAws_json1_1ExcludeTestList = (input, context) => {
|
|
|
4092
3873
|
return input
|
|
4093
3874
|
.filter((e) => e != null)
|
|
4094
3875
|
.map((entry) => {
|
|
4095
|
-
if (entry === null) {
|
|
4096
|
-
return null;
|
|
4097
|
-
}
|
|
4098
3876
|
return entry;
|
|
4099
3877
|
});
|
|
4100
3878
|
};
|
|
@@ -4108,9 +3886,6 @@ const serializeAws_json1_1FilterList = (input, context) => {
|
|
|
4108
3886
|
return input
|
|
4109
3887
|
.filter((e) => e != null)
|
|
4110
3888
|
.map((entry) => {
|
|
4111
|
-
if (entry === null) {
|
|
4112
|
-
return null;
|
|
4113
|
-
}
|
|
4114
3889
|
return serializeAws_json1_1Filter(entry, context);
|
|
4115
3890
|
});
|
|
4116
3891
|
};
|
|
@@ -4118,9 +3893,6 @@ const serializeAws_json1_1FilterValueList = (input, context) => {
|
|
|
4118
3893
|
return input
|
|
4119
3894
|
.filter((e) => e != null)
|
|
4120
3895
|
.map((entry) => {
|
|
4121
|
-
if (entry === null) {
|
|
4122
|
-
return null;
|
|
4123
|
-
}
|
|
4124
3896
|
return entry;
|
|
4125
3897
|
});
|
|
4126
3898
|
};
|
|
@@ -4174,9 +3946,6 @@ const serializeAws_json1_1IncludeTestList = (input, context) => {
|
|
|
4174
3946
|
return input
|
|
4175
3947
|
.filter((e) => e != null)
|
|
4176
3948
|
.map((entry) => {
|
|
4177
|
-
if (entry === null) {
|
|
4178
|
-
return null;
|
|
4179
|
-
}
|
|
4180
3949
|
return entry;
|
|
4181
3950
|
});
|
|
4182
3951
|
};
|
|
@@ -4184,9 +3953,6 @@ const serializeAws_json1_1IntegerList = (input, context) => {
|
|
|
4184
3953
|
return input
|
|
4185
3954
|
.filter((e) => e != null)
|
|
4186
3955
|
.map((entry) => {
|
|
4187
|
-
if (entry === null) {
|
|
4188
|
-
return null;
|
|
4189
|
-
}
|
|
4190
3956
|
return entry;
|
|
4191
3957
|
});
|
|
4192
3958
|
};
|
|
@@ -4220,9 +3986,6 @@ const serializeAws_json1_1KeyList = (input, context) => {
|
|
|
4220
3986
|
return input
|
|
4221
3987
|
.filter((e) => e != null)
|
|
4222
3988
|
.map((entry) => {
|
|
4223
|
-
if (entry === null) {
|
|
4224
|
-
return null;
|
|
4225
|
-
}
|
|
4226
3989
|
return entry;
|
|
4227
3990
|
});
|
|
4228
3991
|
};
|
|
@@ -4676,9 +4439,6 @@ const serializeAws_json1_1SourceIdsList = (input, context) => {
|
|
|
4676
4439
|
return input
|
|
4677
4440
|
.filter((e) => e != null)
|
|
4678
4441
|
.map((entry) => {
|
|
4679
|
-
if (entry === null) {
|
|
4680
|
-
return null;
|
|
4681
|
-
}
|
|
4682
4442
|
return entry;
|
|
4683
4443
|
});
|
|
4684
4444
|
};
|
|
@@ -4718,9 +4478,6 @@ const serializeAws_json1_1StringList = (input, context) => {
|
|
|
4718
4478
|
return input
|
|
4719
4479
|
.filter((e) => e != null)
|
|
4720
4480
|
.map((entry) => {
|
|
4721
|
-
if (entry === null) {
|
|
4722
|
-
return null;
|
|
4723
|
-
}
|
|
4724
4481
|
return entry;
|
|
4725
4482
|
});
|
|
4726
4483
|
};
|
|
@@ -4728,9 +4485,6 @@ const serializeAws_json1_1SubnetIdentifierList = (input, context) => {
|
|
|
4728
4485
|
return input
|
|
4729
4486
|
.filter((e) => e != null)
|
|
4730
4487
|
.map((entry) => {
|
|
4731
|
-
if (entry === null) {
|
|
4732
|
-
return null;
|
|
4733
|
-
}
|
|
4734
4488
|
return entry;
|
|
4735
4489
|
});
|
|
4736
4490
|
};
|
|
@@ -4751,9 +4505,6 @@ const serializeAws_json1_1TableListToReload = (input, context) => {
|
|
|
4751
4505
|
return input
|
|
4752
4506
|
.filter((e) => e != null)
|
|
4753
4507
|
.map((entry) => {
|
|
4754
|
-
if (entry === null) {
|
|
4755
|
-
return null;
|
|
4756
|
-
}
|
|
4757
4508
|
return serializeAws_json1_1TableToReload(entry, context);
|
|
4758
4509
|
});
|
|
4759
4510
|
};
|
|
@@ -4774,9 +4525,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
4774
4525
|
return input
|
|
4775
4526
|
.filter((e) => e != null)
|
|
4776
4527
|
.map((entry) => {
|
|
4777
|
-
if (entry === null) {
|
|
4778
|
-
return null;
|
|
4779
|
-
}
|
|
4780
4528
|
return serializeAws_json1_1Tag(entry, context);
|
|
4781
4529
|
});
|
|
4782
4530
|
};
|
|
@@ -4795,9 +4543,6 @@ const serializeAws_json1_1VpcSecurityGroupIdList = (input, context) => {
|
|
|
4795
4543
|
return input
|
|
4796
4544
|
.filter((e) => e != null)
|
|
4797
4545
|
.map((entry) => {
|
|
4798
|
-
if (entry === null) {
|
|
4799
|
-
return null;
|
|
4800
|
-
}
|
|
4801
4546
|
return entry;
|
|
4802
4547
|
});
|
|
4803
4548
|
};
|