@aws-sdk/client-database-migration-service 3.112.0 → 3.121.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 +320 -257
- package/dist-es/protocols/Aws_json1_1.js +320 -257
- package/package.json +7 -7
|
@@ -666,18 +666,19 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
666
666
|
body: await parseBody(output.body, context),
|
|
667
667
|
};
|
|
668
668
|
let response;
|
|
669
|
-
|
|
670
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
669
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
671
670
|
switch (errorCode) {
|
|
672
671
|
case "ResourceNotFoundFault":
|
|
673
672
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
674
673
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
675
674
|
default:
|
|
676
675
|
const parsedBody = parsedOutput.body;
|
|
676
|
+
const $metadata = deserializeMetadata(output);
|
|
677
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
677
678
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
678
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
679
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
679
680
|
$fault: "client",
|
|
680
|
-
$metadata
|
|
681
|
+
$metadata,
|
|
681
682
|
});
|
|
682
683
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
683
684
|
}
|
|
@@ -702,18 +703,19 @@ const deserializeAws_json1_1ApplyPendingMaintenanceActionCommandError = async (o
|
|
|
702
703
|
body: await parseBody(output.body, context),
|
|
703
704
|
};
|
|
704
705
|
let response;
|
|
705
|
-
|
|
706
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
706
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
707
707
|
switch (errorCode) {
|
|
708
708
|
case "ResourceNotFoundFault":
|
|
709
709
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
710
710
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
711
711
|
default:
|
|
712
712
|
const parsedBody = parsedOutput.body;
|
|
713
|
+
const $metadata = deserializeMetadata(output);
|
|
714
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
713
715
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
714
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
716
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
715
717
|
$fault: "client",
|
|
716
|
-
$metadata
|
|
718
|
+
$metadata,
|
|
717
719
|
});
|
|
718
720
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
719
721
|
}
|
|
@@ -738,8 +740,7 @@ const deserializeAws_json1_1CancelReplicationTaskAssessmentRunCommandError = asy
|
|
|
738
740
|
body: await parseBody(output.body, context),
|
|
739
741
|
};
|
|
740
742
|
let response;
|
|
741
|
-
|
|
742
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
744
|
switch (errorCode) {
|
|
744
745
|
case "AccessDeniedFault":
|
|
745
746
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -752,10 +753,12 @@ const deserializeAws_json1_1CancelReplicationTaskAssessmentRunCommandError = asy
|
|
|
752
753
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
753
754
|
default:
|
|
754
755
|
const parsedBody = parsedOutput.body;
|
|
756
|
+
const $metadata = deserializeMetadata(output);
|
|
757
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
755
758
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
756
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
759
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
757
760
|
$fault: "client",
|
|
758
|
-
$metadata
|
|
761
|
+
$metadata,
|
|
759
762
|
});
|
|
760
763
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
761
764
|
}
|
|
@@ -780,8 +783,7 @@ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context)
|
|
|
780
783
|
body: await parseBody(output.body, context),
|
|
781
784
|
};
|
|
782
785
|
let response;
|
|
783
|
-
|
|
784
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
786
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
787
|
switch (errorCode) {
|
|
786
788
|
case "AccessDeniedFault":
|
|
787
789
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -806,10 +808,12 @@ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context)
|
|
|
806
808
|
throw await deserializeAws_json1_1S3AccessDeniedFaultResponse(parsedOutput, context);
|
|
807
809
|
default:
|
|
808
810
|
const parsedBody = parsedOutput.body;
|
|
811
|
+
const $metadata = deserializeMetadata(output);
|
|
812
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
809
813
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
810
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
814
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
811
815
|
$fault: "client",
|
|
812
|
-
$metadata
|
|
816
|
+
$metadata,
|
|
813
817
|
});
|
|
814
818
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
815
819
|
}
|
|
@@ -834,8 +838,7 @@ const deserializeAws_json1_1CreateEventSubscriptionCommandError = async (output,
|
|
|
834
838
|
body: await parseBody(output.body, context),
|
|
835
839
|
};
|
|
836
840
|
let response;
|
|
837
|
-
|
|
838
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
842
|
switch (errorCode) {
|
|
840
843
|
case "KMSAccessDeniedFault":
|
|
841
844
|
case "com.amazonaws.databasemigrationservice#KMSAccessDeniedFault":
|
|
@@ -869,10 +872,12 @@ const deserializeAws_json1_1CreateEventSubscriptionCommandError = async (output,
|
|
|
869
872
|
throw await deserializeAws_json1_1SNSNoAuthorizationFaultResponse(parsedOutput, context);
|
|
870
873
|
default:
|
|
871
874
|
const parsedBody = parsedOutput.body;
|
|
875
|
+
const $metadata = deserializeMetadata(output);
|
|
876
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
872
877
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
873
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
878
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
874
879
|
$fault: "client",
|
|
875
|
-
$metadata
|
|
880
|
+
$metadata,
|
|
876
881
|
});
|
|
877
882
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
878
883
|
}
|
|
@@ -897,8 +902,7 @@ const deserializeAws_json1_1CreateFleetAdvisorCollectorCommandError = async (out
|
|
|
897
902
|
body: await parseBody(output.body, context),
|
|
898
903
|
};
|
|
899
904
|
let response;
|
|
900
|
-
|
|
901
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
906
|
switch (errorCode) {
|
|
903
907
|
case "AccessDeniedFault":
|
|
904
908
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -917,10 +921,12 @@ const deserializeAws_json1_1CreateFleetAdvisorCollectorCommandError = async (out
|
|
|
917
921
|
throw await deserializeAws_json1_1S3ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
918
922
|
default:
|
|
919
923
|
const parsedBody = parsedOutput.body;
|
|
924
|
+
const $metadata = deserializeMetadata(output);
|
|
925
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
920
926
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
921
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
927
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
922
928
|
$fault: "client",
|
|
923
|
-
$metadata
|
|
929
|
+
$metadata,
|
|
924
930
|
});
|
|
925
931
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
926
932
|
}
|
|
@@ -945,8 +951,7 @@ const deserializeAws_json1_1CreateReplicationInstanceCommandError = async (outpu
|
|
|
945
951
|
body: await parseBody(output.body, context),
|
|
946
952
|
};
|
|
947
953
|
let response;
|
|
948
|
-
|
|
949
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
950
955
|
switch (errorCode) {
|
|
951
956
|
case "AccessDeniedFault":
|
|
952
957
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -980,10 +985,12 @@ const deserializeAws_json1_1CreateReplicationInstanceCommandError = async (outpu
|
|
|
980
985
|
throw await deserializeAws_json1_1StorageQuotaExceededFaultResponse(parsedOutput, context);
|
|
981
986
|
default:
|
|
982
987
|
const parsedBody = parsedOutput.body;
|
|
988
|
+
const $metadata = deserializeMetadata(output);
|
|
989
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
983
990
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
984
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
991
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
985
992
|
$fault: "client",
|
|
986
|
-
$metadata
|
|
993
|
+
$metadata,
|
|
987
994
|
});
|
|
988
995
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
989
996
|
}
|
|
@@ -1008,8 +1015,7 @@ const deserializeAws_json1_1CreateReplicationSubnetGroupCommandError = async (ou
|
|
|
1008
1015
|
body: await parseBody(output.body, context),
|
|
1009
1016
|
};
|
|
1010
1017
|
let response;
|
|
1011
|
-
|
|
1012
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1018
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
1019
|
switch (errorCode) {
|
|
1014
1020
|
case "AccessDeniedFault":
|
|
1015
1021
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -1031,10 +1037,12 @@ const deserializeAws_json1_1CreateReplicationSubnetGroupCommandError = async (ou
|
|
|
1031
1037
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
1032
1038
|
default:
|
|
1033
1039
|
const parsedBody = parsedOutput.body;
|
|
1040
|
+
const $metadata = deserializeMetadata(output);
|
|
1041
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1034
1042
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1035
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1043
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1036
1044
|
$fault: "client",
|
|
1037
|
-
$metadata
|
|
1045
|
+
$metadata,
|
|
1038
1046
|
});
|
|
1039
1047
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1040
1048
|
}
|
|
@@ -1059,8 +1067,7 @@ const deserializeAws_json1_1CreateReplicationTaskCommandError = async (output, c
|
|
|
1059
1067
|
body: await parseBody(output.body, context),
|
|
1060
1068
|
};
|
|
1061
1069
|
let response;
|
|
1062
|
-
|
|
1063
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
1071
|
switch (errorCode) {
|
|
1065
1072
|
case "AccessDeniedFault":
|
|
1066
1073
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -1082,10 +1089,12 @@ const deserializeAws_json1_1CreateReplicationTaskCommandError = async (output, c
|
|
|
1082
1089
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
1083
1090
|
default:
|
|
1084
1091
|
const parsedBody = parsedOutput.body;
|
|
1092
|
+
const $metadata = deserializeMetadata(output);
|
|
1093
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1085
1094
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1086
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1095
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1087
1096
|
$fault: "client",
|
|
1088
|
-
$metadata
|
|
1097
|
+
$metadata,
|
|
1089
1098
|
});
|
|
1090
1099
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1091
1100
|
}
|
|
@@ -1110,8 +1119,7 @@ const deserializeAws_json1_1DeleteCertificateCommandError = async (output, conte
|
|
|
1110
1119
|
body: await parseBody(output.body, context),
|
|
1111
1120
|
};
|
|
1112
1121
|
let response;
|
|
1113
|
-
|
|
1114
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1115
1123
|
switch (errorCode) {
|
|
1116
1124
|
case "InvalidResourceStateFault":
|
|
1117
1125
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -1121,10 +1129,12 @@ const deserializeAws_json1_1DeleteCertificateCommandError = async (output, conte
|
|
|
1121
1129
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1122
1130
|
default:
|
|
1123
1131
|
const parsedBody = parsedOutput.body;
|
|
1132
|
+
const $metadata = deserializeMetadata(output);
|
|
1133
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1124
1134
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1125
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1135
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1126
1136
|
$fault: "client",
|
|
1127
|
-
$metadata
|
|
1137
|
+
$metadata,
|
|
1128
1138
|
});
|
|
1129
1139
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1130
1140
|
}
|
|
@@ -1149,8 +1159,7 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1149
1159
|
body: await parseBody(output.body, context),
|
|
1150
1160
|
};
|
|
1151
1161
|
let response;
|
|
1152
|
-
|
|
1153
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
1163
|
switch (errorCode) {
|
|
1155
1164
|
case "AccessDeniedFault":
|
|
1156
1165
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -1163,10 +1172,12 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1163
1172
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1164
1173
|
default:
|
|
1165
1174
|
const parsedBody = parsedOutput.body;
|
|
1175
|
+
const $metadata = deserializeMetadata(output);
|
|
1176
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1166
1177
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1167
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1178
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1168
1179
|
$fault: "client",
|
|
1169
|
-
$metadata
|
|
1180
|
+
$metadata,
|
|
1170
1181
|
});
|
|
1171
1182
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1172
1183
|
}
|
|
@@ -1191,8 +1202,7 @@ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context)
|
|
|
1191
1202
|
body: await parseBody(output.body, context),
|
|
1192
1203
|
};
|
|
1193
1204
|
let response;
|
|
1194
|
-
|
|
1195
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
1206
|
switch (errorCode) {
|
|
1197
1207
|
case "InvalidResourceStateFault":
|
|
1198
1208
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -1202,10 +1212,12 @@ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context)
|
|
|
1202
1212
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1203
1213
|
default:
|
|
1204
1214
|
const parsedBody = parsedOutput.body;
|
|
1215
|
+
const $metadata = deserializeMetadata(output);
|
|
1216
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1205
1217
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1206
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1218
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1207
1219
|
$fault: "client",
|
|
1208
|
-
$metadata
|
|
1220
|
+
$metadata,
|
|
1209
1221
|
});
|
|
1210
1222
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1211
1223
|
}
|
|
@@ -1230,8 +1242,7 @@ const deserializeAws_json1_1DeleteEventSubscriptionCommandError = async (output,
|
|
|
1230
1242
|
body: await parseBody(output.body, context),
|
|
1231
1243
|
};
|
|
1232
1244
|
let response;
|
|
1233
|
-
|
|
1234
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1245
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
1246
|
switch (errorCode) {
|
|
1236
1247
|
case "InvalidResourceStateFault":
|
|
1237
1248
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -1241,10 +1252,12 @@ const deserializeAws_json1_1DeleteEventSubscriptionCommandError = async (output,
|
|
|
1241
1252
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1242
1253
|
default:
|
|
1243
1254
|
const parsedBody = parsedOutput.body;
|
|
1255
|
+
const $metadata = deserializeMetadata(output);
|
|
1256
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1244
1257
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1245
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1258
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1246
1259
|
$fault: "client",
|
|
1247
|
-
$metadata
|
|
1260
|
+
$metadata,
|
|
1248
1261
|
});
|
|
1249
1262
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1250
1263
|
}
|
|
@@ -1266,8 +1279,7 @@ const deserializeAws_json1_1DeleteFleetAdvisorCollectorCommandError = async (out
|
|
|
1266
1279
|
body: await parseBody(output.body, context),
|
|
1267
1280
|
};
|
|
1268
1281
|
let response;
|
|
1269
|
-
|
|
1270
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
1283
|
switch (errorCode) {
|
|
1272
1284
|
case "CollectorNotFoundFault":
|
|
1273
1285
|
case "com.amazonaws.databasemigrationservice#CollectorNotFoundFault":
|
|
@@ -1277,10 +1289,12 @@ const deserializeAws_json1_1DeleteFleetAdvisorCollectorCommandError = async (out
|
|
|
1277
1289
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
1278
1290
|
default:
|
|
1279
1291
|
const parsedBody = parsedOutput.body;
|
|
1292
|
+
const $metadata = deserializeMetadata(output);
|
|
1293
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1280
1294
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1281
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1295
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1282
1296
|
$fault: "client",
|
|
1283
|
-
$metadata
|
|
1297
|
+
$metadata,
|
|
1284
1298
|
});
|
|
1285
1299
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1286
1300
|
}
|
|
@@ -1305,8 +1319,7 @@ const deserializeAws_json1_1DeleteFleetAdvisorDatabasesCommandError = async (out
|
|
|
1305
1319
|
body: await parseBody(output.body, context),
|
|
1306
1320
|
};
|
|
1307
1321
|
let response;
|
|
1308
|
-
|
|
1309
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1322
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
1323
|
switch (errorCode) {
|
|
1311
1324
|
case "InvalidOperationFault":
|
|
1312
1325
|
case "com.amazonaws.databasemigrationservice#InvalidOperationFault":
|
|
@@ -1316,10 +1329,12 @@ const deserializeAws_json1_1DeleteFleetAdvisorDatabasesCommandError = async (out
|
|
|
1316
1329
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1317
1330
|
default:
|
|
1318
1331
|
const parsedBody = parsedOutput.body;
|
|
1332
|
+
const $metadata = deserializeMetadata(output);
|
|
1333
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1319
1334
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1320
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1335
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1321
1336
|
$fault: "client",
|
|
1322
|
-
$metadata
|
|
1337
|
+
$metadata,
|
|
1323
1338
|
});
|
|
1324
1339
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1325
1340
|
}
|
|
@@ -1344,8 +1359,7 @@ const deserializeAws_json1_1DeleteReplicationInstanceCommandError = async (outpu
|
|
|
1344
1359
|
body: await parseBody(output.body, context),
|
|
1345
1360
|
};
|
|
1346
1361
|
let response;
|
|
1347
|
-
|
|
1348
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1362
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
1363
|
switch (errorCode) {
|
|
1350
1364
|
case "InvalidResourceStateFault":
|
|
1351
1365
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -1355,10 +1369,12 @@ const deserializeAws_json1_1DeleteReplicationInstanceCommandError = async (outpu
|
|
|
1355
1369
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1356
1370
|
default:
|
|
1357
1371
|
const parsedBody = parsedOutput.body;
|
|
1372
|
+
const $metadata = deserializeMetadata(output);
|
|
1373
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1358
1374
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1359
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1375
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1360
1376
|
$fault: "client",
|
|
1361
|
-
$metadata
|
|
1377
|
+
$metadata,
|
|
1362
1378
|
});
|
|
1363
1379
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1364
1380
|
}
|
|
@@ -1383,8 +1399,7 @@ const deserializeAws_json1_1DeleteReplicationSubnetGroupCommandError = async (ou
|
|
|
1383
1399
|
body: await parseBody(output.body, context),
|
|
1384
1400
|
};
|
|
1385
1401
|
let response;
|
|
1386
|
-
|
|
1387
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
1403
|
switch (errorCode) {
|
|
1389
1404
|
case "InvalidResourceStateFault":
|
|
1390
1405
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -1394,10 +1409,12 @@ const deserializeAws_json1_1DeleteReplicationSubnetGroupCommandError = async (ou
|
|
|
1394
1409
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1395
1410
|
default:
|
|
1396
1411
|
const parsedBody = parsedOutput.body;
|
|
1412
|
+
const $metadata = deserializeMetadata(output);
|
|
1413
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1397
1414
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1398
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1415
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1399
1416
|
$fault: "client",
|
|
1400
|
-
$metadata
|
|
1417
|
+
$metadata,
|
|
1401
1418
|
});
|
|
1402
1419
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1403
1420
|
}
|
|
@@ -1422,8 +1439,7 @@ const deserializeAws_json1_1DeleteReplicationTaskCommandError = async (output, c
|
|
|
1422
1439
|
body: await parseBody(output.body, context),
|
|
1423
1440
|
};
|
|
1424
1441
|
let response;
|
|
1425
|
-
|
|
1426
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1427
1443
|
switch (errorCode) {
|
|
1428
1444
|
case "InvalidResourceStateFault":
|
|
1429
1445
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -1433,10 +1449,12 @@ const deserializeAws_json1_1DeleteReplicationTaskCommandError = async (output, c
|
|
|
1433
1449
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1434
1450
|
default:
|
|
1435
1451
|
const parsedBody = parsedOutput.body;
|
|
1452
|
+
const $metadata = deserializeMetadata(output);
|
|
1453
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1436
1454
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1437
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1455
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1438
1456
|
$fault: "client",
|
|
1439
|
-
$metadata
|
|
1457
|
+
$metadata,
|
|
1440
1458
|
});
|
|
1441
1459
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1442
1460
|
}
|
|
@@ -1461,8 +1479,7 @@ const deserializeAws_json1_1DeleteReplicationTaskAssessmentRunCommandError = asy
|
|
|
1461
1479
|
body: await parseBody(output.body, context),
|
|
1462
1480
|
};
|
|
1463
1481
|
let response;
|
|
1464
|
-
|
|
1465
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1482
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
1483
|
switch (errorCode) {
|
|
1467
1484
|
case "AccessDeniedFault":
|
|
1468
1485
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -1475,10 +1492,12 @@ const deserializeAws_json1_1DeleteReplicationTaskAssessmentRunCommandError = asy
|
|
|
1475
1492
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1476
1493
|
default:
|
|
1477
1494
|
const parsedBody = parsedOutput.body;
|
|
1495
|
+
const $metadata = deserializeMetadata(output);
|
|
1496
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1478
1497
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1479
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1498
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1480
1499
|
$fault: "client",
|
|
1481
|
-
$metadata
|
|
1500
|
+
$metadata,
|
|
1482
1501
|
});
|
|
1483
1502
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1484
1503
|
}
|
|
@@ -1503,15 +1522,16 @@ const deserializeAws_json1_1DescribeAccountAttributesCommandError = async (outpu
|
|
|
1503
1522
|
body: await parseBody(output.body, context),
|
|
1504
1523
|
};
|
|
1505
1524
|
let response;
|
|
1506
|
-
|
|
1507
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1508
1526
|
switch (errorCode) {
|
|
1509
1527
|
default:
|
|
1510
1528
|
const parsedBody = parsedOutput.body;
|
|
1529
|
+
const $metadata = deserializeMetadata(output);
|
|
1530
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1511
1531
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1512
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1532
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1513
1533
|
$fault: "client",
|
|
1514
|
-
$metadata
|
|
1534
|
+
$metadata,
|
|
1515
1535
|
});
|
|
1516
1536
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1517
1537
|
}
|
|
@@ -1536,8 +1556,7 @@ const deserializeAws_json1_1DescribeApplicableIndividualAssessmentsCommandError
|
|
|
1536
1556
|
body: await parseBody(output.body, context),
|
|
1537
1557
|
};
|
|
1538
1558
|
let response;
|
|
1539
|
-
|
|
1540
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1559
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
1560
|
switch (errorCode) {
|
|
1542
1561
|
case "AccessDeniedFault":
|
|
1543
1562
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -1550,10 +1569,12 @@ const deserializeAws_json1_1DescribeApplicableIndividualAssessmentsCommandError
|
|
|
1550
1569
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1551
1570
|
default:
|
|
1552
1571
|
const parsedBody = parsedOutput.body;
|
|
1572
|
+
const $metadata = deserializeMetadata(output);
|
|
1573
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1553
1574
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1554
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1575
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1555
1576
|
$fault: "client",
|
|
1556
|
-
$metadata
|
|
1577
|
+
$metadata,
|
|
1557
1578
|
});
|
|
1558
1579
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1559
1580
|
}
|
|
@@ -1578,18 +1599,19 @@ const deserializeAws_json1_1DescribeCertificatesCommandError = async (output, co
|
|
|
1578
1599
|
body: await parseBody(output.body, context),
|
|
1579
1600
|
};
|
|
1580
1601
|
let response;
|
|
1581
|
-
|
|
1582
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1583
1603
|
switch (errorCode) {
|
|
1584
1604
|
case "ResourceNotFoundFault":
|
|
1585
1605
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
1586
1606
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1587
1607
|
default:
|
|
1588
1608
|
const parsedBody = parsedOutput.body;
|
|
1609
|
+
const $metadata = deserializeMetadata(output);
|
|
1610
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1589
1611
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1590
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1612
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1591
1613
|
$fault: "client",
|
|
1592
|
-
$metadata
|
|
1614
|
+
$metadata,
|
|
1593
1615
|
});
|
|
1594
1616
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1595
1617
|
}
|
|
@@ -1614,18 +1636,19 @@ const deserializeAws_json1_1DescribeConnectionsCommandError = async (output, con
|
|
|
1614
1636
|
body: await parseBody(output.body, context),
|
|
1615
1637
|
};
|
|
1616
1638
|
let response;
|
|
1617
|
-
|
|
1618
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1639
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1619
1640
|
switch (errorCode) {
|
|
1620
1641
|
case "ResourceNotFoundFault":
|
|
1621
1642
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
1622
1643
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1623
1644
|
default:
|
|
1624
1645
|
const parsedBody = parsedOutput.body;
|
|
1646
|
+
const $metadata = deserializeMetadata(output);
|
|
1647
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1625
1648
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1626
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1649
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1627
1650
|
$fault: "client",
|
|
1628
|
-
$metadata
|
|
1651
|
+
$metadata,
|
|
1629
1652
|
});
|
|
1630
1653
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1631
1654
|
}
|
|
@@ -1650,18 +1673,19 @@ const deserializeAws_json1_1DescribeEndpointsCommandError = async (output, conte
|
|
|
1650
1673
|
body: await parseBody(output.body, context),
|
|
1651
1674
|
};
|
|
1652
1675
|
let response;
|
|
1653
|
-
|
|
1654
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1676
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
1677
|
switch (errorCode) {
|
|
1656
1678
|
case "ResourceNotFoundFault":
|
|
1657
1679
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
1658
1680
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1659
1681
|
default:
|
|
1660
1682
|
const parsedBody = parsedOutput.body;
|
|
1683
|
+
const $metadata = deserializeMetadata(output);
|
|
1684
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1661
1685
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1662
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1686
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1663
1687
|
$fault: "client",
|
|
1664
|
-
$metadata
|
|
1688
|
+
$metadata,
|
|
1665
1689
|
});
|
|
1666
1690
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1667
1691
|
}
|
|
@@ -1686,15 +1710,16 @@ const deserializeAws_json1_1DescribeEndpointSettingsCommandError = async (output
|
|
|
1686
1710
|
body: await parseBody(output.body, context),
|
|
1687
1711
|
};
|
|
1688
1712
|
let response;
|
|
1689
|
-
|
|
1690
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1691
1714
|
switch (errorCode) {
|
|
1692
1715
|
default:
|
|
1693
1716
|
const parsedBody = parsedOutput.body;
|
|
1717
|
+
const $metadata = deserializeMetadata(output);
|
|
1718
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1694
1719
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1695
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1720
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1696
1721
|
$fault: "client",
|
|
1697
|
-
$metadata
|
|
1722
|
+
$metadata,
|
|
1698
1723
|
});
|
|
1699
1724
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1700
1725
|
}
|
|
@@ -1719,15 +1744,16 @@ const deserializeAws_json1_1DescribeEndpointTypesCommandError = async (output, c
|
|
|
1719
1744
|
body: await parseBody(output.body, context),
|
|
1720
1745
|
};
|
|
1721
1746
|
let response;
|
|
1722
|
-
|
|
1723
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
1748
|
switch (errorCode) {
|
|
1725
1749
|
default:
|
|
1726
1750
|
const parsedBody = parsedOutput.body;
|
|
1751
|
+
const $metadata = deserializeMetadata(output);
|
|
1752
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1727
1753
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1728
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1754
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1729
1755
|
$fault: "client",
|
|
1730
|
-
$metadata
|
|
1756
|
+
$metadata,
|
|
1731
1757
|
});
|
|
1732
1758
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1733
1759
|
}
|
|
@@ -1752,15 +1778,16 @@ const deserializeAws_json1_1DescribeEventCategoriesCommandError = async (output,
|
|
|
1752
1778
|
body: await parseBody(output.body, context),
|
|
1753
1779
|
};
|
|
1754
1780
|
let response;
|
|
1755
|
-
|
|
1756
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1757
1782
|
switch (errorCode) {
|
|
1758
1783
|
default:
|
|
1759
1784
|
const parsedBody = parsedOutput.body;
|
|
1785
|
+
const $metadata = deserializeMetadata(output);
|
|
1786
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1760
1787
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1761
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1788
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1762
1789
|
$fault: "client",
|
|
1763
|
-
$metadata
|
|
1790
|
+
$metadata,
|
|
1764
1791
|
});
|
|
1765
1792
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1766
1793
|
}
|
|
@@ -1785,15 +1812,16 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
1785
1812
|
body: await parseBody(output.body, context),
|
|
1786
1813
|
};
|
|
1787
1814
|
let response;
|
|
1788
|
-
|
|
1789
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1815
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
1816
|
switch (errorCode) {
|
|
1791
1817
|
default:
|
|
1792
1818
|
const parsedBody = parsedOutput.body;
|
|
1819
|
+
const $metadata = deserializeMetadata(output);
|
|
1820
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1793
1821
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1794
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1822
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1795
1823
|
$fault: "client",
|
|
1796
|
-
$metadata
|
|
1824
|
+
$metadata,
|
|
1797
1825
|
});
|
|
1798
1826
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1799
1827
|
}
|
|
@@ -1818,18 +1846,19 @@ const deserializeAws_json1_1DescribeEventSubscriptionsCommandError = async (outp
|
|
|
1818
1846
|
body: await parseBody(output.body, context),
|
|
1819
1847
|
};
|
|
1820
1848
|
let response;
|
|
1821
|
-
|
|
1822
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1849
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1823
1850
|
switch (errorCode) {
|
|
1824
1851
|
case "ResourceNotFoundFault":
|
|
1825
1852
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
1826
1853
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
1827
1854
|
default:
|
|
1828
1855
|
const parsedBody = parsedOutput.body;
|
|
1856
|
+
const $metadata = deserializeMetadata(output);
|
|
1857
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1829
1858
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1830
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1859
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1831
1860
|
$fault: "client",
|
|
1832
|
-
$metadata
|
|
1861
|
+
$metadata,
|
|
1833
1862
|
});
|
|
1834
1863
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1835
1864
|
}
|
|
@@ -1854,18 +1883,19 @@ const deserializeAws_json1_1DescribeFleetAdvisorCollectorsCommandError = async (
|
|
|
1854
1883
|
body: await parseBody(output.body, context),
|
|
1855
1884
|
};
|
|
1856
1885
|
let response;
|
|
1857
|
-
|
|
1858
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1886
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
1887
|
switch (errorCode) {
|
|
1860
1888
|
case "InvalidResourceStateFault":
|
|
1861
1889
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
1862
1890
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
1863
1891
|
default:
|
|
1864
1892
|
const parsedBody = parsedOutput.body;
|
|
1893
|
+
const $metadata = deserializeMetadata(output);
|
|
1894
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1865
1895
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1866
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1896
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1867
1897
|
$fault: "client",
|
|
1868
|
-
$metadata
|
|
1898
|
+
$metadata,
|
|
1869
1899
|
});
|
|
1870
1900
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1871
1901
|
}
|
|
@@ -1890,18 +1920,19 @@ const deserializeAws_json1_1DescribeFleetAdvisorDatabasesCommandError = async (o
|
|
|
1890
1920
|
body: await parseBody(output.body, context),
|
|
1891
1921
|
};
|
|
1892
1922
|
let response;
|
|
1893
|
-
|
|
1894
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1923
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
1924
|
switch (errorCode) {
|
|
1896
1925
|
case "InvalidResourceStateFault":
|
|
1897
1926
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
1898
1927
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
1899
1928
|
default:
|
|
1900
1929
|
const parsedBody = parsedOutput.body;
|
|
1930
|
+
const $metadata = deserializeMetadata(output);
|
|
1931
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1901
1932
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1902
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1933
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1903
1934
|
$fault: "client",
|
|
1904
|
-
$metadata
|
|
1935
|
+
$metadata,
|
|
1905
1936
|
});
|
|
1906
1937
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1907
1938
|
}
|
|
@@ -1926,18 +1957,19 @@ const deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommandError = async
|
|
|
1926
1957
|
body: await parseBody(output.body, context),
|
|
1927
1958
|
};
|
|
1928
1959
|
let response;
|
|
1929
|
-
|
|
1930
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1931
1961
|
switch (errorCode) {
|
|
1932
1962
|
case "InvalidResourceStateFault":
|
|
1933
1963
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
1934
1964
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
1935
1965
|
default:
|
|
1936
1966
|
const parsedBody = parsedOutput.body;
|
|
1967
|
+
const $metadata = deserializeMetadata(output);
|
|
1968
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1937
1969
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1938
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1970
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1939
1971
|
$fault: "client",
|
|
1940
|
-
$metadata
|
|
1972
|
+
$metadata,
|
|
1941
1973
|
});
|
|
1942
1974
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1943
1975
|
}
|
|
@@ -1962,18 +1994,19 @@ const deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommandError
|
|
|
1962
1994
|
body: await parseBody(output.body, context),
|
|
1963
1995
|
};
|
|
1964
1996
|
let response;
|
|
1965
|
-
|
|
1966
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1967
1998
|
switch (errorCode) {
|
|
1968
1999
|
case "InvalidResourceStateFault":
|
|
1969
2000
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
1970
2001
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
1971
2002
|
default:
|
|
1972
2003
|
const parsedBody = parsedOutput.body;
|
|
2004
|
+
const $metadata = deserializeMetadata(output);
|
|
2005
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1973
2006
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
1974
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2007
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1975
2008
|
$fault: "client",
|
|
1976
|
-
$metadata
|
|
2009
|
+
$metadata,
|
|
1977
2010
|
});
|
|
1978
2011
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1979
2012
|
}
|
|
@@ -1998,18 +2031,19 @@ const deserializeAws_json1_1DescribeFleetAdvisorSchemasCommandError = async (out
|
|
|
1998
2031
|
body: await parseBody(output.body, context),
|
|
1999
2032
|
};
|
|
2000
2033
|
let response;
|
|
2001
|
-
|
|
2002
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2034
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2003
2035
|
switch (errorCode) {
|
|
2004
2036
|
case "InvalidResourceStateFault":
|
|
2005
2037
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
2006
2038
|
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
2007
2039
|
default:
|
|
2008
2040
|
const parsedBody = parsedOutput.body;
|
|
2041
|
+
const $metadata = deserializeMetadata(output);
|
|
2042
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2009
2043
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2010
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2044
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2011
2045
|
$fault: "client",
|
|
2012
|
-
$metadata
|
|
2046
|
+
$metadata,
|
|
2013
2047
|
});
|
|
2014
2048
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2015
2049
|
}
|
|
@@ -2034,15 +2068,16 @@ const deserializeAws_json1_1DescribeOrderableReplicationInstancesCommandError =
|
|
|
2034
2068
|
body: await parseBody(output.body, context),
|
|
2035
2069
|
};
|
|
2036
2070
|
let response;
|
|
2037
|
-
|
|
2038
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2039
2072
|
switch (errorCode) {
|
|
2040
2073
|
default:
|
|
2041
2074
|
const parsedBody = parsedOutput.body;
|
|
2075
|
+
const $metadata = deserializeMetadata(output);
|
|
2076
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2042
2077
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2043
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2078
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2044
2079
|
$fault: "client",
|
|
2045
|
-
$metadata
|
|
2080
|
+
$metadata,
|
|
2046
2081
|
});
|
|
2047
2082
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2048
2083
|
}
|
|
@@ -2067,18 +2102,19 @@ const deserializeAws_json1_1DescribePendingMaintenanceActionsCommandError = asyn
|
|
|
2067
2102
|
body: await parseBody(output.body, context),
|
|
2068
2103
|
};
|
|
2069
2104
|
let response;
|
|
2070
|
-
|
|
2071
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2105
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
2106
|
switch (errorCode) {
|
|
2073
2107
|
case "ResourceNotFoundFault":
|
|
2074
2108
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
2075
2109
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2076
2110
|
default:
|
|
2077
2111
|
const parsedBody = parsedOutput.body;
|
|
2112
|
+
const $metadata = deserializeMetadata(output);
|
|
2113
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2078
2114
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2079
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2115
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2080
2116
|
$fault: "client",
|
|
2081
|
-
$metadata
|
|
2117
|
+
$metadata,
|
|
2082
2118
|
});
|
|
2083
2119
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2084
2120
|
}
|
|
@@ -2103,8 +2139,7 @@ const deserializeAws_json1_1DescribeRefreshSchemasStatusCommandError = async (ou
|
|
|
2103
2139
|
body: await parseBody(output.body, context),
|
|
2104
2140
|
};
|
|
2105
2141
|
let response;
|
|
2106
|
-
|
|
2107
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2142
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2108
2143
|
switch (errorCode) {
|
|
2109
2144
|
case "InvalidResourceStateFault":
|
|
2110
2145
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -2114,10 +2149,12 @@ const deserializeAws_json1_1DescribeRefreshSchemasStatusCommandError = async (ou
|
|
|
2114
2149
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2115
2150
|
default:
|
|
2116
2151
|
const parsedBody = parsedOutput.body;
|
|
2152
|
+
const $metadata = deserializeMetadata(output);
|
|
2153
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2117
2154
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2118
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2155
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2119
2156
|
$fault: "client",
|
|
2120
|
-
$metadata
|
|
2157
|
+
$metadata,
|
|
2121
2158
|
});
|
|
2122
2159
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2123
2160
|
}
|
|
@@ -2142,18 +2179,19 @@ const deserializeAws_json1_1DescribeReplicationInstancesCommandError = async (ou
|
|
|
2142
2179
|
body: await parseBody(output.body, context),
|
|
2143
2180
|
};
|
|
2144
2181
|
let response;
|
|
2145
|
-
|
|
2146
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2182
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2147
2183
|
switch (errorCode) {
|
|
2148
2184
|
case "ResourceNotFoundFault":
|
|
2149
2185
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
2150
2186
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2151
2187
|
default:
|
|
2152
2188
|
const parsedBody = parsedOutput.body;
|
|
2189
|
+
const $metadata = deserializeMetadata(output);
|
|
2190
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2153
2191
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2154
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2192
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2155
2193
|
$fault: "client",
|
|
2156
|
-
$metadata
|
|
2194
|
+
$metadata,
|
|
2157
2195
|
});
|
|
2158
2196
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2159
2197
|
}
|
|
@@ -2178,8 +2216,7 @@ const deserializeAws_json1_1DescribeReplicationInstanceTaskLogsCommandError = as
|
|
|
2178
2216
|
body: await parseBody(output.body, context),
|
|
2179
2217
|
};
|
|
2180
2218
|
let response;
|
|
2181
|
-
|
|
2182
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2219
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
2220
|
switch (errorCode) {
|
|
2184
2221
|
case "InvalidResourceStateFault":
|
|
2185
2222
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -2189,10 +2226,12 @@ const deserializeAws_json1_1DescribeReplicationInstanceTaskLogsCommandError = as
|
|
|
2189
2226
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2190
2227
|
default:
|
|
2191
2228
|
const parsedBody = parsedOutput.body;
|
|
2229
|
+
const $metadata = deserializeMetadata(output);
|
|
2230
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2192
2231
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2193
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2232
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2194
2233
|
$fault: "client",
|
|
2195
|
-
$metadata
|
|
2234
|
+
$metadata,
|
|
2196
2235
|
});
|
|
2197
2236
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2198
2237
|
}
|
|
@@ -2217,18 +2256,19 @@ const deserializeAws_json1_1DescribeReplicationSubnetGroupsCommandError = async
|
|
|
2217
2256
|
body: await parseBody(output.body, context),
|
|
2218
2257
|
};
|
|
2219
2258
|
let response;
|
|
2220
|
-
|
|
2221
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2259
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2222
2260
|
switch (errorCode) {
|
|
2223
2261
|
case "ResourceNotFoundFault":
|
|
2224
2262
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
2225
2263
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2226
2264
|
default:
|
|
2227
2265
|
const parsedBody = parsedOutput.body;
|
|
2266
|
+
const $metadata = deserializeMetadata(output);
|
|
2267
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2228
2268
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2229
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2269
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2230
2270
|
$fault: "client",
|
|
2231
|
-
$metadata
|
|
2271
|
+
$metadata,
|
|
2232
2272
|
});
|
|
2233
2273
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2234
2274
|
}
|
|
@@ -2253,18 +2293,19 @@ const deserializeAws_json1_1DescribeReplicationTaskAssessmentResultsCommandError
|
|
|
2253
2293
|
body: await parseBody(output.body, context),
|
|
2254
2294
|
};
|
|
2255
2295
|
let response;
|
|
2256
|
-
|
|
2257
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2296
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2258
2297
|
switch (errorCode) {
|
|
2259
2298
|
case "ResourceNotFoundFault":
|
|
2260
2299
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
2261
2300
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2262
2301
|
default:
|
|
2263
2302
|
const parsedBody = parsedOutput.body;
|
|
2303
|
+
const $metadata = deserializeMetadata(output);
|
|
2304
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2264
2305
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2265
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2306
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2266
2307
|
$fault: "client",
|
|
2267
|
-
$metadata
|
|
2308
|
+
$metadata,
|
|
2268
2309
|
});
|
|
2269
2310
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2270
2311
|
}
|
|
@@ -2289,18 +2330,19 @@ const deserializeAws_json1_1DescribeReplicationTaskAssessmentRunsCommandError =
|
|
|
2289
2330
|
body: await parseBody(output.body, context),
|
|
2290
2331
|
};
|
|
2291
2332
|
let response;
|
|
2292
|
-
|
|
2293
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2333
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2294
2334
|
switch (errorCode) {
|
|
2295
2335
|
case "ResourceNotFoundFault":
|
|
2296
2336
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
2297
2337
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2298
2338
|
default:
|
|
2299
2339
|
const parsedBody = parsedOutput.body;
|
|
2340
|
+
const $metadata = deserializeMetadata(output);
|
|
2341
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2300
2342
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2301
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2343
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2302
2344
|
$fault: "client",
|
|
2303
|
-
$metadata
|
|
2345
|
+
$metadata,
|
|
2304
2346
|
});
|
|
2305
2347
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2306
2348
|
}
|
|
@@ -2325,18 +2367,19 @@ const deserializeAws_json1_1DescribeReplicationTaskIndividualAssessmentsCommandE
|
|
|
2325
2367
|
body: await parseBody(output.body, context),
|
|
2326
2368
|
};
|
|
2327
2369
|
let response;
|
|
2328
|
-
|
|
2329
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2330
2371
|
switch (errorCode) {
|
|
2331
2372
|
case "ResourceNotFoundFault":
|
|
2332
2373
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
2333
2374
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2334
2375
|
default:
|
|
2335
2376
|
const parsedBody = parsedOutput.body;
|
|
2377
|
+
const $metadata = deserializeMetadata(output);
|
|
2378
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2336
2379
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2337
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2380
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2338
2381
|
$fault: "client",
|
|
2339
|
-
$metadata
|
|
2382
|
+
$metadata,
|
|
2340
2383
|
});
|
|
2341
2384
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2342
2385
|
}
|
|
@@ -2361,18 +2404,19 @@ const deserializeAws_json1_1DescribeReplicationTasksCommandError = async (output
|
|
|
2361
2404
|
body: await parseBody(output.body, context),
|
|
2362
2405
|
};
|
|
2363
2406
|
let response;
|
|
2364
|
-
|
|
2365
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2366
2408
|
switch (errorCode) {
|
|
2367
2409
|
case "ResourceNotFoundFault":
|
|
2368
2410
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
2369
2411
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2370
2412
|
default:
|
|
2371
2413
|
const parsedBody = parsedOutput.body;
|
|
2414
|
+
const $metadata = deserializeMetadata(output);
|
|
2415
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2372
2416
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2373
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2417
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2374
2418
|
$fault: "client",
|
|
2375
|
-
$metadata
|
|
2419
|
+
$metadata,
|
|
2376
2420
|
});
|
|
2377
2421
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2378
2422
|
}
|
|
@@ -2397,8 +2441,7 @@ const deserializeAws_json1_1DescribeSchemasCommandError = async (output, context
|
|
|
2397
2441
|
body: await parseBody(output.body, context),
|
|
2398
2442
|
};
|
|
2399
2443
|
let response;
|
|
2400
|
-
|
|
2401
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2444
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2402
2445
|
switch (errorCode) {
|
|
2403
2446
|
case "InvalidResourceStateFault":
|
|
2404
2447
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -2408,10 +2451,12 @@ const deserializeAws_json1_1DescribeSchemasCommandError = async (output, context
|
|
|
2408
2451
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2409
2452
|
default:
|
|
2410
2453
|
const parsedBody = parsedOutput.body;
|
|
2454
|
+
const $metadata = deserializeMetadata(output);
|
|
2455
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2411
2456
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2412
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2457
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2413
2458
|
$fault: "client",
|
|
2414
|
-
$metadata
|
|
2459
|
+
$metadata,
|
|
2415
2460
|
});
|
|
2416
2461
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2417
2462
|
}
|
|
@@ -2436,8 +2481,7 @@ const deserializeAws_json1_1DescribeTableStatisticsCommandError = async (output,
|
|
|
2436
2481
|
body: await parseBody(output.body, context),
|
|
2437
2482
|
};
|
|
2438
2483
|
let response;
|
|
2439
|
-
|
|
2440
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2484
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2441
2485
|
switch (errorCode) {
|
|
2442
2486
|
case "InvalidResourceStateFault":
|
|
2443
2487
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -2447,10 +2491,12 @@ const deserializeAws_json1_1DescribeTableStatisticsCommandError = async (output,
|
|
|
2447
2491
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2448
2492
|
default:
|
|
2449
2493
|
const parsedBody = parsedOutput.body;
|
|
2494
|
+
const $metadata = deserializeMetadata(output);
|
|
2495
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2450
2496
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2497
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2452
2498
|
$fault: "client",
|
|
2453
|
-
$metadata
|
|
2499
|
+
$metadata,
|
|
2454
2500
|
});
|
|
2455
2501
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2456
2502
|
}
|
|
@@ -2475,8 +2521,7 @@ const deserializeAws_json1_1ImportCertificateCommandError = async (output, conte
|
|
|
2475
2521
|
body: await parseBody(output.body, context),
|
|
2476
2522
|
};
|
|
2477
2523
|
let response;
|
|
2478
|
-
|
|
2479
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2480
2525
|
switch (errorCode) {
|
|
2481
2526
|
case "InvalidCertificateFault":
|
|
2482
2527
|
case "com.amazonaws.databasemigrationservice#InvalidCertificateFault":
|
|
@@ -2489,10 +2534,12 @@ const deserializeAws_json1_1ImportCertificateCommandError = async (output, conte
|
|
|
2489
2534
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
2490
2535
|
default:
|
|
2491
2536
|
const parsedBody = parsedOutput.body;
|
|
2537
|
+
const $metadata = deserializeMetadata(output);
|
|
2538
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2492
2539
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2540
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2494
2541
|
$fault: "client",
|
|
2495
|
-
$metadata
|
|
2542
|
+
$metadata,
|
|
2496
2543
|
});
|
|
2497
2544
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2498
2545
|
}
|
|
@@ -2517,18 +2564,19 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2517
2564
|
body: await parseBody(output.body, context),
|
|
2518
2565
|
};
|
|
2519
2566
|
let response;
|
|
2520
|
-
|
|
2521
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2567
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2522
2568
|
switch (errorCode) {
|
|
2523
2569
|
case "ResourceNotFoundFault":
|
|
2524
2570
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
2525
2571
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2526
2572
|
default:
|
|
2527
2573
|
const parsedBody = parsedOutput.body;
|
|
2574
|
+
const $metadata = deserializeMetadata(output);
|
|
2575
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2528
2576
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2529
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2577
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2530
2578
|
$fault: "client",
|
|
2531
|
-
$metadata
|
|
2579
|
+
$metadata,
|
|
2532
2580
|
});
|
|
2533
2581
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2534
2582
|
}
|
|
@@ -2553,8 +2601,7 @@ const deserializeAws_json1_1ModifyEndpointCommandError = async (output, context)
|
|
|
2553
2601
|
body: await parseBody(output.body, context),
|
|
2554
2602
|
};
|
|
2555
2603
|
let response;
|
|
2556
|
-
|
|
2557
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2604
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2558
2605
|
switch (errorCode) {
|
|
2559
2606
|
case "AccessDeniedFault":
|
|
2560
2607
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -2573,10 +2620,12 @@ const deserializeAws_json1_1ModifyEndpointCommandError = async (output, context)
|
|
|
2573
2620
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2574
2621
|
default:
|
|
2575
2622
|
const parsedBody = parsedOutput.body;
|
|
2623
|
+
const $metadata = deserializeMetadata(output);
|
|
2624
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2576
2625
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2577
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2626
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2578
2627
|
$fault: "client",
|
|
2579
|
-
$metadata
|
|
2628
|
+
$metadata,
|
|
2580
2629
|
});
|
|
2581
2630
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2582
2631
|
}
|
|
@@ -2601,8 +2650,7 @@ const deserializeAws_json1_1ModifyEventSubscriptionCommandError = async (output,
|
|
|
2601
2650
|
body: await parseBody(output.body, context),
|
|
2602
2651
|
};
|
|
2603
2652
|
let response;
|
|
2604
|
-
|
|
2605
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2653
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2606
2654
|
switch (errorCode) {
|
|
2607
2655
|
case "KMSAccessDeniedFault":
|
|
2608
2656
|
case "com.amazonaws.databasemigrationservice#KMSAccessDeniedFault":
|
|
@@ -2633,10 +2681,12 @@ const deserializeAws_json1_1ModifyEventSubscriptionCommandError = async (output,
|
|
|
2633
2681
|
throw await deserializeAws_json1_1SNSNoAuthorizationFaultResponse(parsedOutput, context);
|
|
2634
2682
|
default:
|
|
2635
2683
|
const parsedBody = parsedOutput.body;
|
|
2684
|
+
const $metadata = deserializeMetadata(output);
|
|
2685
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2636
2686
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2687
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2638
2688
|
$fault: "client",
|
|
2639
|
-
$metadata
|
|
2689
|
+
$metadata,
|
|
2640
2690
|
});
|
|
2641
2691
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2642
2692
|
}
|
|
@@ -2661,8 +2711,7 @@ const deserializeAws_json1_1ModifyReplicationInstanceCommandError = async (outpu
|
|
|
2661
2711
|
body: await parseBody(output.body, context),
|
|
2662
2712
|
};
|
|
2663
2713
|
let response;
|
|
2664
|
-
|
|
2665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2714
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
2715
|
switch (errorCode) {
|
|
2667
2716
|
case "AccessDeniedFault":
|
|
2668
2717
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -2687,10 +2736,12 @@ const deserializeAws_json1_1ModifyReplicationInstanceCommandError = async (outpu
|
|
|
2687
2736
|
throw await deserializeAws_json1_1UpgradeDependencyFailureFaultResponse(parsedOutput, context);
|
|
2688
2737
|
default:
|
|
2689
2738
|
const parsedBody = parsedOutput.body;
|
|
2739
|
+
const $metadata = deserializeMetadata(output);
|
|
2740
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2690
2741
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2691
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2742
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2692
2743
|
$fault: "client",
|
|
2693
|
-
$metadata
|
|
2744
|
+
$metadata,
|
|
2694
2745
|
});
|
|
2695
2746
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2696
2747
|
}
|
|
@@ -2715,8 +2766,7 @@ const deserializeAws_json1_1ModifyReplicationSubnetGroupCommandError = async (ou
|
|
|
2715
2766
|
body: await parseBody(output.body, context),
|
|
2716
2767
|
};
|
|
2717
2768
|
let response;
|
|
2718
|
-
|
|
2719
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2720
2770
|
switch (errorCode) {
|
|
2721
2771
|
case "AccessDeniedFault":
|
|
2722
2772
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -2738,10 +2788,12 @@ const deserializeAws_json1_1ModifyReplicationSubnetGroupCommandError = async (ou
|
|
|
2738
2788
|
throw await deserializeAws_json1_1SubnetAlreadyInUseResponse(parsedOutput, context);
|
|
2739
2789
|
default:
|
|
2740
2790
|
const parsedBody = parsedOutput.body;
|
|
2791
|
+
const $metadata = deserializeMetadata(output);
|
|
2792
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2741
2793
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2742
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2794
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2743
2795
|
$fault: "client",
|
|
2744
|
-
$metadata
|
|
2796
|
+
$metadata,
|
|
2745
2797
|
});
|
|
2746
2798
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2747
2799
|
}
|
|
@@ -2766,8 +2818,7 @@ const deserializeAws_json1_1ModifyReplicationTaskCommandError = async (output, c
|
|
|
2766
2818
|
body: await parseBody(output.body, context),
|
|
2767
2819
|
};
|
|
2768
2820
|
let response;
|
|
2769
|
-
|
|
2770
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2821
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2771
2822
|
switch (errorCode) {
|
|
2772
2823
|
case "InvalidResourceStateFault":
|
|
2773
2824
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -2783,10 +2834,12 @@ const deserializeAws_json1_1ModifyReplicationTaskCommandError = async (output, c
|
|
|
2783
2834
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2784
2835
|
default:
|
|
2785
2836
|
const parsedBody = parsedOutput.body;
|
|
2837
|
+
const $metadata = deserializeMetadata(output);
|
|
2838
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2786
2839
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2787
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2840
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2788
2841
|
$fault: "client",
|
|
2789
|
-
$metadata
|
|
2842
|
+
$metadata,
|
|
2790
2843
|
});
|
|
2791
2844
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2792
2845
|
}
|
|
@@ -2811,8 +2864,7 @@ const deserializeAws_json1_1MoveReplicationTaskCommandError = async (output, con
|
|
|
2811
2864
|
body: await parseBody(output.body, context),
|
|
2812
2865
|
};
|
|
2813
2866
|
let response;
|
|
2814
|
-
|
|
2815
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2867
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2816
2868
|
switch (errorCode) {
|
|
2817
2869
|
case "AccessDeniedFault":
|
|
2818
2870
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -2831,10 +2883,12 @@ const deserializeAws_json1_1MoveReplicationTaskCommandError = async (output, con
|
|
|
2831
2883
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
2832
2884
|
default:
|
|
2833
2885
|
const parsedBody = parsedOutput.body;
|
|
2886
|
+
const $metadata = deserializeMetadata(output);
|
|
2887
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2834
2888
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2835
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2889
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2836
2890
|
$fault: "client",
|
|
2837
|
-
$metadata
|
|
2891
|
+
$metadata,
|
|
2838
2892
|
});
|
|
2839
2893
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2840
2894
|
}
|
|
@@ -2859,8 +2913,7 @@ const deserializeAws_json1_1RebootReplicationInstanceCommandError = async (outpu
|
|
|
2859
2913
|
body: await parseBody(output.body, context),
|
|
2860
2914
|
};
|
|
2861
2915
|
let response;
|
|
2862
|
-
|
|
2863
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2916
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2864
2917
|
switch (errorCode) {
|
|
2865
2918
|
case "InvalidResourceStateFault":
|
|
2866
2919
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -2870,10 +2923,12 @@ const deserializeAws_json1_1RebootReplicationInstanceCommandError = async (outpu
|
|
|
2870
2923
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2871
2924
|
default:
|
|
2872
2925
|
const parsedBody = parsedOutput.body;
|
|
2926
|
+
const $metadata = deserializeMetadata(output);
|
|
2927
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2873
2928
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2874
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2929
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2875
2930
|
$fault: "client",
|
|
2876
|
-
$metadata
|
|
2931
|
+
$metadata,
|
|
2877
2932
|
});
|
|
2878
2933
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2879
2934
|
}
|
|
@@ -2898,8 +2953,7 @@ const deserializeAws_json1_1RefreshSchemasCommandError = async (output, context)
|
|
|
2898
2953
|
body: await parseBody(output.body, context),
|
|
2899
2954
|
};
|
|
2900
2955
|
let response;
|
|
2901
|
-
|
|
2902
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2956
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2903
2957
|
switch (errorCode) {
|
|
2904
2958
|
case "InvalidResourceStateFault":
|
|
2905
2959
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -2915,10 +2969,12 @@ const deserializeAws_json1_1RefreshSchemasCommandError = async (output, context)
|
|
|
2915
2969
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
2916
2970
|
default:
|
|
2917
2971
|
const parsedBody = parsedOutput.body;
|
|
2972
|
+
const $metadata = deserializeMetadata(output);
|
|
2973
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2918
2974
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2919
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2975
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2920
2976
|
$fault: "client",
|
|
2921
|
-
$metadata
|
|
2977
|
+
$metadata,
|
|
2922
2978
|
});
|
|
2923
2979
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2924
2980
|
}
|
|
@@ -2943,8 +2999,7 @@ const deserializeAws_json1_1ReloadTablesCommandError = async (output, context) =
|
|
|
2943
2999
|
body: await parseBody(output.body, context),
|
|
2944
3000
|
};
|
|
2945
3001
|
let response;
|
|
2946
|
-
|
|
2947
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3002
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2948
3003
|
switch (errorCode) {
|
|
2949
3004
|
case "InvalidResourceStateFault":
|
|
2950
3005
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -2954,10 +3009,12 @@ const deserializeAws_json1_1ReloadTablesCommandError = async (output, context) =
|
|
|
2954
3009
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2955
3010
|
default:
|
|
2956
3011
|
const parsedBody = parsedOutput.body;
|
|
3012
|
+
const $metadata = deserializeMetadata(output);
|
|
3013
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2957
3014
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2958
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3015
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2959
3016
|
$fault: "client",
|
|
2960
|
-
$metadata
|
|
3017
|
+
$metadata,
|
|
2961
3018
|
});
|
|
2962
3019
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2963
3020
|
}
|
|
@@ -2982,18 +3039,19 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
2982
3039
|
body: await parseBody(output.body, context),
|
|
2983
3040
|
};
|
|
2984
3041
|
let response;
|
|
2985
|
-
|
|
2986
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3042
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2987
3043
|
switch (errorCode) {
|
|
2988
3044
|
case "ResourceNotFoundFault":
|
|
2989
3045
|
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
2990
3046
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
2991
3047
|
default:
|
|
2992
3048
|
const parsedBody = parsedOutput.body;
|
|
3049
|
+
const $metadata = deserializeMetadata(output);
|
|
3050
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2993
3051
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
2994
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3052
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2995
3053
|
$fault: "client",
|
|
2996
|
-
$metadata
|
|
3054
|
+
$metadata,
|
|
2997
3055
|
});
|
|
2998
3056
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2999
3057
|
}
|
|
@@ -3018,8 +3076,7 @@ const deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommandError = async (outp
|
|
|
3018
3076
|
body: await parseBody(output.body, context),
|
|
3019
3077
|
};
|
|
3020
3078
|
let response;
|
|
3021
|
-
|
|
3022
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3079
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3023
3080
|
switch (errorCode) {
|
|
3024
3081
|
case "InvalidResourceStateFault":
|
|
3025
3082
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -3029,10 +3086,12 @@ const deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommandError = async (outp
|
|
|
3029
3086
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3030
3087
|
default:
|
|
3031
3088
|
const parsedBody = parsedOutput.body;
|
|
3089
|
+
const $metadata = deserializeMetadata(output);
|
|
3090
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3032
3091
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
3033
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3092
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3034
3093
|
$fault: "client",
|
|
3035
|
-
$metadata
|
|
3094
|
+
$metadata,
|
|
3036
3095
|
});
|
|
3037
3096
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3038
3097
|
}
|
|
@@ -3057,8 +3116,7 @@ const deserializeAws_json1_1StartReplicationTaskCommandError = async (output, co
|
|
|
3057
3116
|
body: await parseBody(output.body, context),
|
|
3058
3117
|
};
|
|
3059
3118
|
let response;
|
|
3060
|
-
|
|
3061
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3119
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3062
3120
|
switch (errorCode) {
|
|
3063
3121
|
case "AccessDeniedFault":
|
|
3064
3122
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -3071,10 +3129,12 @@ const deserializeAws_json1_1StartReplicationTaskCommandError = async (output, co
|
|
|
3071
3129
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3072
3130
|
default:
|
|
3073
3131
|
const parsedBody = parsedOutput.body;
|
|
3132
|
+
const $metadata = deserializeMetadata(output);
|
|
3133
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3074
3134
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
3075
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3135
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3076
3136
|
$fault: "client",
|
|
3077
|
-
$metadata
|
|
3137
|
+
$metadata,
|
|
3078
3138
|
});
|
|
3079
3139
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3080
3140
|
}
|
|
@@ -3099,8 +3159,7 @@ const deserializeAws_json1_1StartReplicationTaskAssessmentCommandError = async (
|
|
|
3099
3159
|
body: await parseBody(output.body, context),
|
|
3100
3160
|
};
|
|
3101
3161
|
let response;
|
|
3102
|
-
|
|
3103
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3162
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3104
3163
|
switch (errorCode) {
|
|
3105
3164
|
case "InvalidResourceStateFault":
|
|
3106
3165
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -3110,10 +3169,12 @@ const deserializeAws_json1_1StartReplicationTaskAssessmentCommandError = async (
|
|
|
3110
3169
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3111
3170
|
default:
|
|
3112
3171
|
const parsedBody = parsedOutput.body;
|
|
3172
|
+
const $metadata = deserializeMetadata(output);
|
|
3173
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3113
3174
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
3114
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3175
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3115
3176
|
$fault: "client",
|
|
3116
|
-
$metadata
|
|
3177
|
+
$metadata,
|
|
3117
3178
|
});
|
|
3118
3179
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3119
3180
|
}
|
|
@@ -3138,8 +3199,7 @@ const deserializeAws_json1_1StartReplicationTaskAssessmentRunCommandError = asyn
|
|
|
3138
3199
|
body: await parseBody(output.body, context),
|
|
3139
3200
|
};
|
|
3140
3201
|
let response;
|
|
3141
|
-
|
|
3142
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3202
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3143
3203
|
switch (errorCode) {
|
|
3144
3204
|
case "AccessDeniedFault":
|
|
3145
3205
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -3179,10 +3239,12 @@ const deserializeAws_json1_1StartReplicationTaskAssessmentRunCommandError = asyn
|
|
|
3179
3239
|
throw await deserializeAws_json1_1S3ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3180
3240
|
default:
|
|
3181
3241
|
const parsedBody = parsedOutput.body;
|
|
3242
|
+
const $metadata = deserializeMetadata(output);
|
|
3243
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3182
3244
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
3183
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3245
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3184
3246
|
$fault: "client",
|
|
3185
|
-
$metadata
|
|
3247
|
+
$metadata,
|
|
3186
3248
|
});
|
|
3187
3249
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3188
3250
|
}
|
|
@@ -3207,8 +3269,7 @@ const deserializeAws_json1_1StopReplicationTaskCommandError = async (output, con
|
|
|
3207
3269
|
body: await parseBody(output.body, context),
|
|
3208
3270
|
};
|
|
3209
3271
|
let response;
|
|
3210
|
-
|
|
3211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3212
3273
|
switch (errorCode) {
|
|
3213
3274
|
case "InvalidResourceStateFault":
|
|
3214
3275
|
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
@@ -3218,10 +3279,12 @@ const deserializeAws_json1_1StopReplicationTaskCommandError = async (output, con
|
|
|
3218
3279
|
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3219
3280
|
default:
|
|
3220
3281
|
const parsedBody = parsedOutput.body;
|
|
3282
|
+
const $metadata = deserializeMetadata(output);
|
|
3283
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3221
3284
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
3222
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3285
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3223
3286
|
$fault: "client",
|
|
3224
|
-
$metadata
|
|
3287
|
+
$metadata,
|
|
3225
3288
|
});
|
|
3226
3289
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3227
3290
|
}
|
|
@@ -3246,8 +3309,7 @@ const deserializeAws_json1_1TestConnectionCommandError = async (output, context)
|
|
|
3246
3309
|
body: await parseBody(output.body, context),
|
|
3247
3310
|
};
|
|
3248
3311
|
let response;
|
|
3249
|
-
|
|
3250
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3312
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3251
3313
|
switch (errorCode) {
|
|
3252
3314
|
case "AccessDeniedFault":
|
|
3253
3315
|
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
@@ -3266,10 +3328,12 @@ const deserializeAws_json1_1TestConnectionCommandError = async (output, context)
|
|
|
3266
3328
|
throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context);
|
|
3267
3329
|
default:
|
|
3268
3330
|
const parsedBody = parsedOutput.body;
|
|
3331
|
+
const $metadata = deserializeMetadata(output);
|
|
3332
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3269
3333
|
response = new DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException({
|
|
3270
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3334
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3271
3335
|
$fault: "client",
|
|
3272
|
-
$metadata
|
|
3336
|
+
$metadata,
|
|
3273
3337
|
});
|
|
3274
3338
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3275
3339
|
}
|
|
@@ -6938,5 +7002,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6938
7002
|
if (data["__type"] !== undefined) {
|
|
6939
7003
|
return sanitizeErrorCode(data["__type"]);
|
|
6940
7004
|
}
|
|
6941
|
-
return "";
|
|
6942
7005
|
};
|