@aws-sdk/client-migration-hub-refactor-spaces 3.52.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/MigrationHubRefactorSpacesServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +126 -2
- package/dist-cjs/protocols/Aws_restJson1.js +284 -1072
- package/dist-es/index.js +1 -0
- package/dist-es/models/MigrationHubRefactorSpacesServiceException.js +12 -0
- package/dist-es/models/models_0.js +117 -1
- package/dist-es/protocols/Aws_restJson1.js +581 -1173
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MigrationHubRefactorSpacesServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -25
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MigrationHubRefactorSpacesServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -25
- package/package.json +25 -25
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_re
|
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
|
+
const MigrationHubRefactorSpacesServiceException_1 = require("../models/MigrationHubRefactorSpacesServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_restJson1CreateApplicationCommand = async (input, context) => {
|
|
8
10
|
var _a;
|
|
9
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -897,75 +899,34 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
897
899
|
switch (errorCode) {
|
|
898
900
|
case "AccessDeniedException":
|
|
899
901
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
900
|
-
|
|
901
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
902
|
-
name: errorCode,
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
};
|
|
905
|
-
break;
|
|
902
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
906
903
|
case "ConflictException":
|
|
907
904
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
908
|
-
|
|
909
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
910
|
-
name: errorCode,
|
|
911
|
-
$metadata: deserializeMetadata(output),
|
|
912
|
-
};
|
|
913
|
-
break;
|
|
905
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
914
906
|
case "InternalServerException":
|
|
915
907
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
916
|
-
|
|
917
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
918
|
-
name: errorCode,
|
|
919
|
-
$metadata: deserializeMetadata(output),
|
|
920
|
-
};
|
|
921
|
-
break;
|
|
908
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
922
909
|
case "ResourceNotFoundException":
|
|
923
910
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
924
|
-
|
|
925
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
926
|
-
name: errorCode,
|
|
927
|
-
$metadata: deserializeMetadata(output),
|
|
928
|
-
};
|
|
929
|
-
break;
|
|
911
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
930
912
|
case "ServiceQuotaExceededException":
|
|
931
913
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
932
|
-
|
|
933
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
934
|
-
name: errorCode,
|
|
935
|
-
$metadata: deserializeMetadata(output),
|
|
936
|
-
};
|
|
937
|
-
break;
|
|
914
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
938
915
|
case "ThrottlingException":
|
|
939
916
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
940
|
-
|
|
941
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
942
|
-
name: errorCode,
|
|
943
|
-
$metadata: deserializeMetadata(output),
|
|
944
|
-
};
|
|
945
|
-
break;
|
|
917
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
946
918
|
case "ValidationException":
|
|
947
919
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
948
|
-
|
|
949
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
950
|
-
name: errorCode,
|
|
951
|
-
$metadata: deserializeMetadata(output),
|
|
952
|
-
};
|
|
953
|
-
break;
|
|
920
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
954
921
|
default:
|
|
955
922
|
const parsedBody = parsedOutput.body;
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
...parsedBody,
|
|
959
|
-
name: `${errorCode}`,
|
|
960
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
923
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
924
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
961
925
|
$fault: "client",
|
|
962
926
|
$metadata: deserializeMetadata(output),
|
|
963
|
-
};
|
|
927
|
+
});
|
|
928
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
964
929
|
}
|
|
965
|
-
const message = response.message || response.Message || errorCode;
|
|
966
|
-
response.message = message;
|
|
967
|
-
delete response.Message;
|
|
968
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
969
930
|
};
|
|
970
931
|
const deserializeAws_restJson1CreateEnvironmentCommand = async (output, context) => {
|
|
971
932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1029,75 +990,34 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1029
990
|
switch (errorCode) {
|
|
1030
991
|
case "AccessDeniedException":
|
|
1031
992
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1032
|
-
|
|
1033
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1034
|
-
name: errorCode,
|
|
1035
|
-
$metadata: deserializeMetadata(output),
|
|
1036
|
-
};
|
|
1037
|
-
break;
|
|
993
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1038
994
|
case "ConflictException":
|
|
1039
995
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1040
|
-
|
|
1041
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1042
|
-
name: errorCode,
|
|
1043
|
-
$metadata: deserializeMetadata(output),
|
|
1044
|
-
};
|
|
1045
|
-
break;
|
|
996
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1046
997
|
case "InternalServerException":
|
|
1047
998
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1048
|
-
|
|
1049
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1050
|
-
name: errorCode,
|
|
1051
|
-
$metadata: deserializeMetadata(output),
|
|
1052
|
-
};
|
|
1053
|
-
break;
|
|
999
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1054
1000
|
case "ResourceNotFoundException":
|
|
1055
1001
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1056
|
-
|
|
1057
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1058
|
-
name: errorCode,
|
|
1059
|
-
$metadata: deserializeMetadata(output),
|
|
1060
|
-
};
|
|
1061
|
-
break;
|
|
1002
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1062
1003
|
case "ServiceQuotaExceededException":
|
|
1063
1004
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1064
|
-
|
|
1065
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1066
|
-
name: errorCode,
|
|
1067
|
-
$metadata: deserializeMetadata(output),
|
|
1068
|
-
};
|
|
1069
|
-
break;
|
|
1005
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1070
1006
|
case "ThrottlingException":
|
|
1071
1007
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1072
|
-
|
|
1073
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1074
|
-
name: errorCode,
|
|
1075
|
-
$metadata: deserializeMetadata(output),
|
|
1076
|
-
};
|
|
1077
|
-
break;
|
|
1008
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1078
1009
|
case "ValidationException":
|
|
1079
1010
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1080
|
-
|
|
1081
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1082
|
-
name: errorCode,
|
|
1083
|
-
$metadata: deserializeMetadata(output),
|
|
1084
|
-
};
|
|
1085
|
-
break;
|
|
1011
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1086
1012
|
default:
|
|
1087
1013
|
const parsedBody = parsedOutput.body;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
...parsedBody,
|
|
1091
|
-
name: `${errorCode}`,
|
|
1092
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1014
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1015
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1093
1016
|
$fault: "client",
|
|
1094
1017
|
$metadata: deserializeMetadata(output),
|
|
1095
|
-
};
|
|
1018
|
+
});
|
|
1019
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1096
1020
|
}
|
|
1097
|
-
const message = response.message || response.Message || errorCode;
|
|
1098
|
-
response.message = message;
|
|
1099
|
-
delete response.Message;
|
|
1100
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1101
1021
|
};
|
|
1102
1022
|
const deserializeAws_restJson1CreateRouteCommand = async (output, context) => {
|
|
1103
1023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1169,75 +1089,34 @@ const deserializeAws_restJson1CreateRouteCommandError = async (output, context)
|
|
|
1169
1089
|
switch (errorCode) {
|
|
1170
1090
|
case "AccessDeniedException":
|
|
1171
1091
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1172
|
-
|
|
1173
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1174
|
-
name: errorCode,
|
|
1175
|
-
$metadata: deserializeMetadata(output),
|
|
1176
|
-
};
|
|
1177
|
-
break;
|
|
1092
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1178
1093
|
case "ConflictException":
|
|
1179
1094
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1180
|
-
|
|
1181
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1182
|
-
name: errorCode,
|
|
1183
|
-
$metadata: deserializeMetadata(output),
|
|
1184
|
-
};
|
|
1185
|
-
break;
|
|
1095
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1186
1096
|
case "InternalServerException":
|
|
1187
1097
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1188
|
-
|
|
1189
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1190
|
-
name: errorCode,
|
|
1191
|
-
$metadata: deserializeMetadata(output),
|
|
1192
|
-
};
|
|
1193
|
-
break;
|
|
1098
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1194
1099
|
case "ResourceNotFoundException":
|
|
1195
1100
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1196
|
-
|
|
1197
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1198
|
-
name: errorCode,
|
|
1199
|
-
$metadata: deserializeMetadata(output),
|
|
1200
|
-
};
|
|
1201
|
-
break;
|
|
1101
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1202
1102
|
case "ServiceQuotaExceededException":
|
|
1203
1103
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1204
|
-
|
|
1205
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1206
|
-
name: errorCode,
|
|
1207
|
-
$metadata: deserializeMetadata(output),
|
|
1208
|
-
};
|
|
1209
|
-
break;
|
|
1104
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1210
1105
|
case "ThrottlingException":
|
|
1211
1106
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1212
|
-
|
|
1213
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1214
|
-
name: errorCode,
|
|
1215
|
-
$metadata: deserializeMetadata(output),
|
|
1216
|
-
};
|
|
1217
|
-
break;
|
|
1107
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1218
1108
|
case "ValidationException":
|
|
1219
1109
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1220
|
-
|
|
1221
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1222
|
-
name: errorCode,
|
|
1223
|
-
$metadata: deserializeMetadata(output),
|
|
1224
|
-
};
|
|
1225
|
-
break;
|
|
1110
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1226
1111
|
default:
|
|
1227
1112
|
const parsedBody = parsedOutput.body;
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
...parsedBody,
|
|
1231
|
-
name: `${errorCode}`,
|
|
1232
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1113
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1114
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1233
1115
|
$fault: "client",
|
|
1234
1116
|
$metadata: deserializeMetadata(output),
|
|
1235
|
-
};
|
|
1117
|
+
});
|
|
1118
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1236
1119
|
}
|
|
1237
|
-
const message = response.message || response.Message || errorCode;
|
|
1238
|
-
response.message = message;
|
|
1239
|
-
delete response.Message;
|
|
1240
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1241
1120
|
};
|
|
1242
1121
|
const deserializeAws_restJson1CreateServiceCommand = async (output, context) => {
|
|
1243
1122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1325,75 +1204,34 @@ const deserializeAws_restJson1CreateServiceCommandError = async (output, context
|
|
|
1325
1204
|
switch (errorCode) {
|
|
1326
1205
|
case "AccessDeniedException":
|
|
1327
1206
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1328
|
-
|
|
1329
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1330
|
-
name: errorCode,
|
|
1331
|
-
$metadata: deserializeMetadata(output),
|
|
1332
|
-
};
|
|
1333
|
-
break;
|
|
1207
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1334
1208
|
case "ConflictException":
|
|
1335
1209
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1336
|
-
|
|
1337
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1338
|
-
name: errorCode,
|
|
1339
|
-
$metadata: deserializeMetadata(output),
|
|
1340
|
-
};
|
|
1341
|
-
break;
|
|
1210
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1342
1211
|
case "InternalServerException":
|
|
1343
1212
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1344
|
-
|
|
1345
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1346
|
-
name: errorCode,
|
|
1347
|
-
$metadata: deserializeMetadata(output),
|
|
1348
|
-
};
|
|
1349
|
-
break;
|
|
1213
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1350
1214
|
case "ResourceNotFoundException":
|
|
1351
1215
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1352
|
-
|
|
1353
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1354
|
-
name: errorCode,
|
|
1355
|
-
$metadata: deserializeMetadata(output),
|
|
1356
|
-
};
|
|
1357
|
-
break;
|
|
1216
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1358
1217
|
case "ServiceQuotaExceededException":
|
|
1359
1218
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1360
|
-
|
|
1361
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1362
|
-
name: errorCode,
|
|
1363
|
-
$metadata: deserializeMetadata(output),
|
|
1364
|
-
};
|
|
1365
|
-
break;
|
|
1219
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1366
1220
|
case "ThrottlingException":
|
|
1367
1221
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1368
|
-
|
|
1369
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1370
|
-
name: errorCode,
|
|
1371
|
-
$metadata: deserializeMetadata(output),
|
|
1372
|
-
};
|
|
1373
|
-
break;
|
|
1222
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1374
1223
|
case "ValidationException":
|
|
1375
1224
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1376
|
-
|
|
1377
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1378
|
-
name: errorCode,
|
|
1379
|
-
$metadata: deserializeMetadata(output),
|
|
1380
|
-
};
|
|
1381
|
-
break;
|
|
1225
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1382
1226
|
default:
|
|
1383
1227
|
const parsedBody = parsedOutput.body;
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
...parsedBody,
|
|
1387
|
-
name: `${errorCode}`,
|
|
1388
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1228
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1229
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1389
1230
|
$fault: "client",
|
|
1390
1231
|
$metadata: deserializeMetadata(output),
|
|
1391
|
-
};
|
|
1232
|
+
});
|
|
1233
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1392
1234
|
}
|
|
1393
|
-
const message = response.message || response.Message || errorCode;
|
|
1394
|
-
response.message = message;
|
|
1395
|
-
delete response.Message;
|
|
1396
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1397
1235
|
};
|
|
1398
1236
|
const deserializeAws_restJson1DeleteApplicationCommand = async (output, context) => {
|
|
1399
1237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1441,67 +1279,31 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1441
1279
|
switch (errorCode) {
|
|
1442
1280
|
case "AccessDeniedException":
|
|
1443
1281
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1444
|
-
|
|
1445
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1446
|
-
name: errorCode,
|
|
1447
|
-
$metadata: deserializeMetadata(output),
|
|
1448
|
-
};
|
|
1449
|
-
break;
|
|
1282
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1450
1283
|
case "ConflictException":
|
|
1451
1284
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1452
|
-
|
|
1453
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1454
|
-
name: errorCode,
|
|
1455
|
-
$metadata: deserializeMetadata(output),
|
|
1456
|
-
};
|
|
1457
|
-
break;
|
|
1285
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1458
1286
|
case "InternalServerException":
|
|
1459
1287
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1460
|
-
|
|
1461
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1462
|
-
name: errorCode,
|
|
1463
|
-
$metadata: deserializeMetadata(output),
|
|
1464
|
-
};
|
|
1465
|
-
break;
|
|
1288
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1466
1289
|
case "ResourceNotFoundException":
|
|
1467
1290
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1468
|
-
|
|
1469
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1470
|
-
name: errorCode,
|
|
1471
|
-
$metadata: deserializeMetadata(output),
|
|
1472
|
-
};
|
|
1473
|
-
break;
|
|
1291
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1474
1292
|
case "ThrottlingException":
|
|
1475
1293
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1476
|
-
|
|
1477
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1478
|
-
name: errorCode,
|
|
1479
|
-
$metadata: deserializeMetadata(output),
|
|
1480
|
-
};
|
|
1481
|
-
break;
|
|
1294
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1482
1295
|
case "ValidationException":
|
|
1483
1296
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1484
|
-
|
|
1485
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1486
|
-
name: errorCode,
|
|
1487
|
-
$metadata: deserializeMetadata(output),
|
|
1488
|
-
};
|
|
1489
|
-
break;
|
|
1297
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1490
1298
|
default:
|
|
1491
1299
|
const parsedBody = parsedOutput.body;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
...parsedBody,
|
|
1495
|
-
name: `${errorCode}`,
|
|
1496
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1300
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1301
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1497
1302
|
$fault: "client",
|
|
1498
1303
|
$metadata: deserializeMetadata(output),
|
|
1499
|
-
};
|
|
1304
|
+
});
|
|
1305
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1500
1306
|
}
|
|
1501
|
-
const message = response.message || response.Message || errorCode;
|
|
1502
|
-
response.message = message;
|
|
1503
|
-
delete response.Message;
|
|
1504
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1505
1307
|
};
|
|
1506
1308
|
const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, context) => {
|
|
1507
1309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1545,67 +1347,31 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1545
1347
|
switch (errorCode) {
|
|
1546
1348
|
case "AccessDeniedException":
|
|
1547
1349
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1548
|
-
|
|
1549
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1550
|
-
name: errorCode,
|
|
1551
|
-
$metadata: deserializeMetadata(output),
|
|
1552
|
-
};
|
|
1553
|
-
break;
|
|
1350
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1554
1351
|
case "ConflictException":
|
|
1555
1352
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1556
|
-
|
|
1557
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1558
|
-
name: errorCode,
|
|
1559
|
-
$metadata: deserializeMetadata(output),
|
|
1560
|
-
};
|
|
1561
|
-
break;
|
|
1353
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1562
1354
|
case "InternalServerException":
|
|
1563
1355
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1564
|
-
|
|
1565
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1566
|
-
name: errorCode,
|
|
1567
|
-
$metadata: deserializeMetadata(output),
|
|
1568
|
-
};
|
|
1569
|
-
break;
|
|
1356
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1570
1357
|
case "ResourceNotFoundException":
|
|
1571
1358
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1572
|
-
|
|
1573
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1574
|
-
name: errorCode,
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
};
|
|
1577
|
-
break;
|
|
1359
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1578
1360
|
case "ThrottlingException":
|
|
1579
1361
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1580
|
-
|
|
1581
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1582
|
-
name: errorCode,
|
|
1583
|
-
$metadata: deserializeMetadata(output),
|
|
1584
|
-
};
|
|
1585
|
-
break;
|
|
1362
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1586
1363
|
case "ValidationException":
|
|
1587
1364
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1588
|
-
|
|
1589
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1590
|
-
name: errorCode,
|
|
1591
|
-
$metadata: deserializeMetadata(output),
|
|
1592
|
-
};
|
|
1593
|
-
break;
|
|
1365
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1594
1366
|
default:
|
|
1595
1367
|
const parsedBody = parsedOutput.body;
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
...parsedBody,
|
|
1599
|
-
name: `${errorCode}`,
|
|
1600
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1368
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1369
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1601
1370
|
$fault: "client",
|
|
1602
1371
|
$metadata: deserializeMetadata(output),
|
|
1603
|
-
};
|
|
1372
|
+
});
|
|
1373
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1604
1374
|
}
|
|
1605
|
-
const message = response.message || response.Message || errorCode;
|
|
1606
|
-
response.message = message;
|
|
1607
|
-
delete response.Message;
|
|
1608
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1609
1375
|
};
|
|
1610
1376
|
const deserializeAws_restJson1DeleteResourcePolicyCommand = async (output, context) => {
|
|
1611
1377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1629,59 +1395,28 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1629
1395
|
switch (errorCode) {
|
|
1630
1396
|
case "AccessDeniedException":
|
|
1631
1397
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1632
|
-
|
|
1633
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1634
|
-
name: errorCode,
|
|
1635
|
-
$metadata: deserializeMetadata(output),
|
|
1636
|
-
};
|
|
1637
|
-
break;
|
|
1398
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1638
1399
|
case "InternalServerException":
|
|
1639
1400
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1640
|
-
|
|
1641
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1642
|
-
name: errorCode,
|
|
1643
|
-
$metadata: deserializeMetadata(output),
|
|
1644
|
-
};
|
|
1645
|
-
break;
|
|
1401
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1646
1402
|
case "ResourceNotFoundException":
|
|
1647
1403
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1648
|
-
|
|
1649
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1650
|
-
name: errorCode,
|
|
1651
|
-
$metadata: deserializeMetadata(output),
|
|
1652
|
-
};
|
|
1653
|
-
break;
|
|
1404
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1654
1405
|
case "ThrottlingException":
|
|
1655
1406
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1656
|
-
|
|
1657
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1658
|
-
name: errorCode,
|
|
1659
|
-
$metadata: deserializeMetadata(output),
|
|
1660
|
-
};
|
|
1661
|
-
break;
|
|
1407
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1662
1408
|
case "ValidationException":
|
|
1663
1409
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1664
|
-
|
|
1665
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1666
|
-
name: errorCode,
|
|
1667
|
-
$metadata: deserializeMetadata(output),
|
|
1668
|
-
};
|
|
1669
|
-
break;
|
|
1410
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1670
1411
|
default:
|
|
1671
1412
|
const parsedBody = parsedOutput.body;
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
...parsedBody,
|
|
1675
|
-
name: `${errorCode}`,
|
|
1676
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1413
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1414
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1677
1415
|
$fault: "client",
|
|
1678
1416
|
$metadata: deserializeMetadata(output),
|
|
1679
|
-
};
|
|
1417
|
+
});
|
|
1418
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1680
1419
|
}
|
|
1681
|
-
const message = response.message || response.Message || errorCode;
|
|
1682
|
-
response.message = message;
|
|
1683
|
-
delete response.Message;
|
|
1684
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1685
1420
|
};
|
|
1686
1421
|
const deserializeAws_restJson1DeleteRouteCommand = async (output, context) => {
|
|
1687
1422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1729,67 +1464,31 @@ const deserializeAws_restJson1DeleteRouteCommandError = async (output, context)
|
|
|
1729
1464
|
switch (errorCode) {
|
|
1730
1465
|
case "AccessDeniedException":
|
|
1731
1466
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1732
|
-
|
|
1733
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1734
|
-
name: errorCode,
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
};
|
|
1737
|
-
break;
|
|
1467
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1738
1468
|
case "ConflictException":
|
|
1739
1469
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1740
|
-
|
|
1741
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1742
|
-
name: errorCode,
|
|
1743
|
-
$metadata: deserializeMetadata(output),
|
|
1744
|
-
};
|
|
1745
|
-
break;
|
|
1470
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1746
1471
|
case "InternalServerException":
|
|
1747
1472
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1748
|
-
|
|
1749
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1750
|
-
name: errorCode,
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
};
|
|
1753
|
-
break;
|
|
1473
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1754
1474
|
case "ResourceNotFoundException":
|
|
1755
1475
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1756
|
-
|
|
1757
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1758
|
-
name: errorCode,
|
|
1759
|
-
$metadata: deserializeMetadata(output),
|
|
1760
|
-
};
|
|
1761
|
-
break;
|
|
1476
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1762
1477
|
case "ThrottlingException":
|
|
1763
1478
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1764
|
-
|
|
1765
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1766
|
-
name: errorCode,
|
|
1767
|
-
$metadata: deserializeMetadata(output),
|
|
1768
|
-
};
|
|
1769
|
-
break;
|
|
1479
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1770
1480
|
case "ValidationException":
|
|
1771
1481
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1772
|
-
|
|
1773
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1774
|
-
name: errorCode,
|
|
1775
|
-
$metadata: deserializeMetadata(output),
|
|
1776
|
-
};
|
|
1777
|
-
break;
|
|
1482
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1778
1483
|
default:
|
|
1779
1484
|
const parsedBody = parsedOutput.body;
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
...parsedBody,
|
|
1783
|
-
name: `${errorCode}`,
|
|
1784
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1485
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1486
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1785
1487
|
$fault: "client",
|
|
1786
1488
|
$metadata: deserializeMetadata(output),
|
|
1787
|
-
};
|
|
1489
|
+
});
|
|
1490
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1788
1491
|
}
|
|
1789
|
-
const message = response.message || response.Message || errorCode;
|
|
1790
|
-
response.message = message;
|
|
1791
|
-
delete response.Message;
|
|
1792
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1793
1492
|
};
|
|
1794
1493
|
const deserializeAws_restJson1DeleteServiceCommand = async (output, context) => {
|
|
1795
1494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1841,67 +1540,31 @@ const deserializeAws_restJson1DeleteServiceCommandError = async (output, context
|
|
|
1841
1540
|
switch (errorCode) {
|
|
1842
1541
|
case "AccessDeniedException":
|
|
1843
1542
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1844
|
-
|
|
1845
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1846
|
-
name: errorCode,
|
|
1847
|
-
$metadata: deserializeMetadata(output),
|
|
1848
|
-
};
|
|
1849
|
-
break;
|
|
1543
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1850
1544
|
case "ConflictException":
|
|
1851
1545
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1852
|
-
|
|
1853
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1854
|
-
name: errorCode,
|
|
1855
|
-
$metadata: deserializeMetadata(output),
|
|
1856
|
-
};
|
|
1857
|
-
break;
|
|
1546
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1858
1547
|
case "InternalServerException":
|
|
1859
1548
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1860
|
-
|
|
1861
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1862
|
-
name: errorCode,
|
|
1863
|
-
$metadata: deserializeMetadata(output),
|
|
1864
|
-
};
|
|
1865
|
-
break;
|
|
1549
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1866
1550
|
case "ResourceNotFoundException":
|
|
1867
1551
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1868
|
-
|
|
1869
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1870
|
-
name: errorCode,
|
|
1871
|
-
$metadata: deserializeMetadata(output),
|
|
1872
|
-
};
|
|
1873
|
-
break;
|
|
1552
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1874
1553
|
case "ThrottlingException":
|
|
1875
1554
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1876
|
-
|
|
1877
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1878
|
-
name: errorCode,
|
|
1879
|
-
$metadata: deserializeMetadata(output),
|
|
1880
|
-
};
|
|
1881
|
-
break;
|
|
1555
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1882
1556
|
case "ValidationException":
|
|
1883
1557
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1884
|
-
|
|
1885
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1886
|
-
name: errorCode,
|
|
1887
|
-
$metadata: deserializeMetadata(output),
|
|
1888
|
-
};
|
|
1889
|
-
break;
|
|
1558
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1890
1559
|
default:
|
|
1891
1560
|
const parsedBody = parsedOutput.body;
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
...parsedBody,
|
|
1895
|
-
name: `${errorCode}`,
|
|
1896
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1561
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1562
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1897
1563
|
$fault: "client",
|
|
1898
1564
|
$metadata: deserializeMetadata(output),
|
|
1899
|
-
};
|
|
1565
|
+
});
|
|
1566
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1900
1567
|
}
|
|
1901
|
-
const message = response.message || response.Message || errorCode;
|
|
1902
|
-
response.message = message;
|
|
1903
|
-
delete response.Message;
|
|
1904
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1905
1568
|
};
|
|
1906
1569
|
const deserializeAws_restJson1GetApplicationCommand = async (output, context) => {
|
|
1907
1570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1981,59 +1644,28 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1981
1644
|
switch (errorCode) {
|
|
1982
1645
|
case "AccessDeniedException":
|
|
1983
1646
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1984
|
-
|
|
1985
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1986
|
-
name: errorCode,
|
|
1987
|
-
$metadata: deserializeMetadata(output),
|
|
1988
|
-
};
|
|
1989
|
-
break;
|
|
1647
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1990
1648
|
case "InternalServerException":
|
|
1991
1649
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1992
|
-
|
|
1993
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1994
|
-
name: errorCode,
|
|
1995
|
-
$metadata: deserializeMetadata(output),
|
|
1996
|
-
};
|
|
1997
|
-
break;
|
|
1650
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1998
1651
|
case "ResourceNotFoundException":
|
|
1999
1652
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2000
|
-
|
|
2001
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2002
|
-
name: errorCode,
|
|
2003
|
-
$metadata: deserializeMetadata(output),
|
|
2004
|
-
};
|
|
2005
|
-
break;
|
|
1653
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2006
1654
|
case "ThrottlingException":
|
|
2007
1655
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2008
|
-
|
|
2009
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2010
|
-
name: errorCode,
|
|
2011
|
-
$metadata: deserializeMetadata(output),
|
|
2012
|
-
};
|
|
2013
|
-
break;
|
|
1656
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2014
1657
|
case "ValidationException":
|
|
2015
1658
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2016
|
-
|
|
2017
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2018
|
-
name: errorCode,
|
|
2019
|
-
$metadata: deserializeMetadata(output),
|
|
2020
|
-
};
|
|
2021
|
-
break;
|
|
1659
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2022
1660
|
default:
|
|
2023
1661
|
const parsedBody = parsedOutput.body;
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
...parsedBody,
|
|
2027
|
-
name: `${errorCode}`,
|
|
2028
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1662
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1663
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2029
1664
|
$fault: "client",
|
|
2030
1665
|
$metadata: deserializeMetadata(output),
|
|
2031
|
-
};
|
|
1666
|
+
});
|
|
1667
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2032
1668
|
}
|
|
2033
|
-
const message = response.message || response.Message || errorCode;
|
|
2034
|
-
response.message = message;
|
|
2035
|
-
delete response.Message;
|
|
2036
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2037
1669
|
};
|
|
2038
1670
|
const deserializeAws_restJson1GetEnvironmentCommand = async (output, context) => {
|
|
2039
1671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2105,59 +1737,28 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
2105
1737
|
switch (errorCode) {
|
|
2106
1738
|
case "AccessDeniedException":
|
|
2107
1739
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
2108
|
-
|
|
2109
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2110
|
-
name: errorCode,
|
|
2111
|
-
$metadata: deserializeMetadata(output),
|
|
2112
|
-
};
|
|
2113
|
-
break;
|
|
1740
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2114
1741
|
case "InternalServerException":
|
|
2115
1742
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2116
|
-
|
|
2117
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2118
|
-
name: errorCode,
|
|
2119
|
-
$metadata: deserializeMetadata(output),
|
|
2120
|
-
};
|
|
2121
|
-
break;
|
|
1743
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2122
1744
|
case "ResourceNotFoundException":
|
|
2123
1745
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2124
|
-
|
|
2125
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2126
|
-
name: errorCode,
|
|
2127
|
-
$metadata: deserializeMetadata(output),
|
|
2128
|
-
};
|
|
2129
|
-
break;
|
|
1746
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2130
1747
|
case "ThrottlingException":
|
|
2131
1748
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2132
|
-
|
|
2133
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2134
|
-
name: errorCode,
|
|
2135
|
-
$metadata: deserializeMetadata(output),
|
|
2136
|
-
};
|
|
2137
|
-
break;
|
|
1749
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2138
1750
|
case "ValidationException":
|
|
2139
1751
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2140
|
-
|
|
2141
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2142
|
-
name: errorCode,
|
|
2143
|
-
$metadata: deserializeMetadata(output),
|
|
2144
|
-
};
|
|
2145
|
-
break;
|
|
1752
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2146
1753
|
default:
|
|
2147
1754
|
const parsedBody = parsedOutput.body;
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
...parsedBody,
|
|
2151
|
-
name: `${errorCode}`,
|
|
2152
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1755
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1756
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2153
1757
|
$fault: "client",
|
|
2154
1758
|
$metadata: deserializeMetadata(output),
|
|
2155
|
-
};
|
|
1759
|
+
});
|
|
1760
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2156
1761
|
}
|
|
2157
|
-
const message = response.message || response.Message || errorCode;
|
|
2158
|
-
response.message = message;
|
|
2159
|
-
delete response.Message;
|
|
2160
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2161
1762
|
};
|
|
2162
1763
|
const deserializeAws_restJson1GetResourcePolicyCommand = async (output, context) => {
|
|
2163
1764
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2185,59 +1786,28 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
|
|
|
2185
1786
|
switch (errorCode) {
|
|
2186
1787
|
case "AccessDeniedException":
|
|
2187
1788
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
2188
|
-
|
|
2189
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2190
|
-
name: errorCode,
|
|
2191
|
-
$metadata: deserializeMetadata(output),
|
|
2192
|
-
};
|
|
2193
|
-
break;
|
|
1789
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2194
1790
|
case "InternalServerException":
|
|
2195
1791
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2196
|
-
|
|
2197
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2198
|
-
name: errorCode,
|
|
2199
|
-
$metadata: deserializeMetadata(output),
|
|
2200
|
-
};
|
|
2201
|
-
break;
|
|
1792
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2202
1793
|
case "ResourceNotFoundException":
|
|
2203
1794
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2204
|
-
|
|
2205
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2206
|
-
name: errorCode,
|
|
2207
|
-
$metadata: deserializeMetadata(output),
|
|
2208
|
-
};
|
|
2209
|
-
break;
|
|
1795
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2210
1796
|
case "ThrottlingException":
|
|
2211
1797
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2212
|
-
|
|
2213
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2214
|
-
name: errorCode,
|
|
2215
|
-
$metadata: deserializeMetadata(output),
|
|
2216
|
-
};
|
|
2217
|
-
break;
|
|
1798
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2218
1799
|
case "ValidationException":
|
|
2219
1800
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2220
|
-
|
|
2221
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2222
|
-
name: errorCode,
|
|
2223
|
-
$metadata: deserializeMetadata(output),
|
|
2224
|
-
};
|
|
2225
|
-
break;
|
|
1801
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2226
1802
|
default:
|
|
2227
1803
|
const parsedBody = parsedOutput.body;
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
...parsedBody,
|
|
2231
|
-
name: `${errorCode}`,
|
|
2232
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1804
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1805
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2233
1806
|
$fault: "client",
|
|
2234
1807
|
$metadata: deserializeMetadata(output),
|
|
2235
|
-
};
|
|
1808
|
+
});
|
|
1809
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2236
1810
|
}
|
|
2237
|
-
const message = response.message || response.Message || errorCode;
|
|
2238
|
-
response.message = message;
|
|
2239
|
-
delete response.Message;
|
|
2240
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2241
1811
|
};
|
|
2242
1812
|
const deserializeAws_restJson1GetRouteCommand = async (output, context) => {
|
|
2243
1813
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2329,59 +1899,28 @@ const deserializeAws_restJson1GetRouteCommandError = async (output, context) =>
|
|
|
2329
1899
|
switch (errorCode) {
|
|
2330
1900
|
case "AccessDeniedException":
|
|
2331
1901
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
2332
|
-
|
|
2333
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2334
|
-
name: errorCode,
|
|
2335
|
-
$metadata: deserializeMetadata(output),
|
|
2336
|
-
};
|
|
2337
|
-
break;
|
|
1902
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2338
1903
|
case "InternalServerException":
|
|
2339
1904
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2340
|
-
|
|
2341
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2342
|
-
name: errorCode,
|
|
2343
|
-
$metadata: deserializeMetadata(output),
|
|
2344
|
-
};
|
|
2345
|
-
break;
|
|
1905
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2346
1906
|
case "ResourceNotFoundException":
|
|
2347
1907
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2348
|
-
|
|
2349
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2350
|
-
name: errorCode,
|
|
2351
|
-
$metadata: deserializeMetadata(output),
|
|
2352
|
-
};
|
|
2353
|
-
break;
|
|
1908
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2354
1909
|
case "ThrottlingException":
|
|
2355
1910
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2356
|
-
|
|
2357
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2358
|
-
name: errorCode,
|
|
2359
|
-
$metadata: deserializeMetadata(output),
|
|
2360
|
-
};
|
|
2361
|
-
break;
|
|
1911
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2362
1912
|
case "ValidationException":
|
|
2363
1913
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2364
|
-
|
|
2365
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2366
|
-
name: errorCode,
|
|
2367
|
-
$metadata: deserializeMetadata(output),
|
|
2368
|
-
};
|
|
2369
|
-
break;
|
|
1914
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2370
1915
|
default:
|
|
2371
1916
|
const parsedBody = parsedOutput.body;
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
...parsedBody,
|
|
2375
|
-
name: `${errorCode}`,
|
|
2376
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1917
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1918
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2377
1919
|
$fault: "client",
|
|
2378
1920
|
$metadata: deserializeMetadata(output),
|
|
2379
|
-
};
|
|
1921
|
+
});
|
|
1922
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2380
1923
|
}
|
|
2381
|
-
const message = response.message || response.Message || errorCode;
|
|
2382
|
-
response.message = message;
|
|
2383
|
-
delete response.Message;
|
|
2384
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2385
1924
|
};
|
|
2386
1925
|
const deserializeAws_restJson1GetServiceCommand = async (output, context) => {
|
|
2387
1926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2473,59 +2012,28 @@ const deserializeAws_restJson1GetServiceCommandError = async (output, context) =
|
|
|
2473
2012
|
switch (errorCode) {
|
|
2474
2013
|
case "AccessDeniedException":
|
|
2475
2014
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
2476
|
-
|
|
2477
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2478
|
-
name: errorCode,
|
|
2479
|
-
$metadata: deserializeMetadata(output),
|
|
2480
|
-
};
|
|
2481
|
-
break;
|
|
2015
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2482
2016
|
case "InternalServerException":
|
|
2483
2017
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2484
|
-
|
|
2485
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2486
|
-
name: errorCode,
|
|
2487
|
-
$metadata: deserializeMetadata(output),
|
|
2488
|
-
};
|
|
2489
|
-
break;
|
|
2018
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2490
2019
|
case "ResourceNotFoundException":
|
|
2491
2020
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2492
|
-
|
|
2493
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2494
|
-
name: errorCode,
|
|
2495
|
-
$metadata: deserializeMetadata(output),
|
|
2496
|
-
};
|
|
2497
|
-
break;
|
|
2021
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2498
2022
|
case "ThrottlingException":
|
|
2499
2023
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2500
|
-
|
|
2501
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2502
|
-
name: errorCode,
|
|
2503
|
-
$metadata: deserializeMetadata(output),
|
|
2504
|
-
};
|
|
2505
|
-
break;
|
|
2024
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2506
2025
|
case "ValidationException":
|
|
2507
2026
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2508
|
-
|
|
2509
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2510
|
-
name: errorCode,
|
|
2511
|
-
$metadata: deserializeMetadata(output),
|
|
2512
|
-
};
|
|
2513
|
-
break;
|
|
2027
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2514
2028
|
default:
|
|
2515
2029
|
const parsedBody = parsedOutput.body;
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
...parsedBody,
|
|
2519
|
-
name: `${errorCode}`,
|
|
2520
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2030
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2031
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2521
2032
|
$fault: "client",
|
|
2522
2033
|
$metadata: deserializeMetadata(output),
|
|
2523
|
-
};
|
|
2034
|
+
});
|
|
2035
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2524
2036
|
}
|
|
2525
|
-
const message = response.message || response.Message || errorCode;
|
|
2526
|
-
response.message = message;
|
|
2527
|
-
delete response.Message;
|
|
2528
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2529
2037
|
};
|
|
2530
2038
|
const deserializeAws_restJson1ListApplicationsCommand = async (output, context) => {
|
|
2531
2039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2557,75 +2065,34 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2557
2065
|
switch (errorCode) {
|
|
2558
2066
|
case "AccessDeniedException":
|
|
2559
2067
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
2560
|
-
|
|
2561
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2562
|
-
name: errorCode,
|
|
2563
|
-
$metadata: deserializeMetadata(output),
|
|
2564
|
-
};
|
|
2565
|
-
break;
|
|
2068
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2566
2069
|
case "ConflictException":
|
|
2567
2070
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
2568
|
-
|
|
2569
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2570
|
-
name: errorCode,
|
|
2571
|
-
$metadata: deserializeMetadata(output),
|
|
2572
|
-
};
|
|
2573
|
-
break;
|
|
2071
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2574
2072
|
case "InternalServerException":
|
|
2575
2073
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2576
|
-
|
|
2577
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2578
|
-
name: errorCode,
|
|
2579
|
-
$metadata: deserializeMetadata(output),
|
|
2580
|
-
};
|
|
2581
|
-
break;
|
|
2074
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2582
2075
|
case "ResourceNotFoundException":
|
|
2583
2076
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2584
|
-
|
|
2585
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2586
|
-
name: errorCode,
|
|
2587
|
-
$metadata: deserializeMetadata(output),
|
|
2588
|
-
};
|
|
2589
|
-
break;
|
|
2077
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2590
2078
|
case "ServiceQuotaExceededException":
|
|
2591
2079
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
2592
|
-
|
|
2593
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2594
|
-
name: errorCode,
|
|
2595
|
-
$metadata: deserializeMetadata(output),
|
|
2596
|
-
};
|
|
2597
|
-
break;
|
|
2080
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2598
2081
|
case "ThrottlingException":
|
|
2599
2082
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2600
|
-
|
|
2601
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2602
|
-
name: errorCode,
|
|
2603
|
-
$metadata: deserializeMetadata(output),
|
|
2604
|
-
};
|
|
2605
|
-
break;
|
|
2083
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2606
2084
|
case "ValidationException":
|
|
2607
2085
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2608
|
-
|
|
2609
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2610
|
-
name: errorCode,
|
|
2611
|
-
$metadata: deserializeMetadata(output),
|
|
2612
|
-
};
|
|
2613
|
-
break;
|
|
2086
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2614
2087
|
default:
|
|
2615
2088
|
const parsedBody = parsedOutput.body;
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
...parsedBody,
|
|
2619
|
-
name: `${errorCode}`,
|
|
2620
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2089
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2090
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2621
2091
|
$fault: "client",
|
|
2622
2092
|
$metadata: deserializeMetadata(output),
|
|
2623
|
-
};
|
|
2093
|
+
});
|
|
2094
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2624
2095
|
}
|
|
2625
|
-
const message = response.message || response.Message || errorCode;
|
|
2626
|
-
response.message = message;
|
|
2627
|
-
delete response.Message;
|
|
2628
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2629
2096
|
};
|
|
2630
2097
|
const deserializeAws_restJson1ListEnvironmentsCommand = async (output, context) => {
|
|
2631
2098
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2657,59 +2124,28 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2657
2124
|
switch (errorCode) {
|
|
2658
2125
|
case "AccessDeniedException":
|
|
2659
2126
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
2660
|
-
|
|
2661
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2662
|
-
name: errorCode,
|
|
2663
|
-
$metadata: deserializeMetadata(output),
|
|
2664
|
-
};
|
|
2665
|
-
break;
|
|
2127
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2666
2128
|
case "InternalServerException":
|
|
2667
2129
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2668
|
-
|
|
2669
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2670
|
-
name: errorCode,
|
|
2671
|
-
$metadata: deserializeMetadata(output),
|
|
2672
|
-
};
|
|
2673
|
-
break;
|
|
2130
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2674
2131
|
case "ResourceNotFoundException":
|
|
2675
2132
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2676
|
-
|
|
2677
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2678
|
-
name: errorCode,
|
|
2679
|
-
$metadata: deserializeMetadata(output),
|
|
2680
|
-
};
|
|
2681
|
-
break;
|
|
2133
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2682
2134
|
case "ThrottlingException":
|
|
2683
2135
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2684
|
-
|
|
2685
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2686
|
-
name: errorCode,
|
|
2687
|
-
$metadata: deserializeMetadata(output),
|
|
2688
|
-
};
|
|
2689
|
-
break;
|
|
2136
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2690
2137
|
case "ValidationException":
|
|
2691
2138
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2692
|
-
|
|
2693
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2694
|
-
name: errorCode,
|
|
2695
|
-
$metadata: deserializeMetadata(output),
|
|
2696
|
-
};
|
|
2697
|
-
break;
|
|
2139
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2698
2140
|
default:
|
|
2699
2141
|
const parsedBody = parsedOutput.body;
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
...parsedBody,
|
|
2703
|
-
name: `${errorCode}`,
|
|
2704
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2142
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2143
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2705
2144
|
$fault: "client",
|
|
2706
2145
|
$metadata: deserializeMetadata(output),
|
|
2707
|
-
};
|
|
2146
|
+
});
|
|
2147
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2708
2148
|
}
|
|
2709
|
-
const message = response.message || response.Message || errorCode;
|
|
2710
|
-
response.message = message;
|
|
2711
|
-
delete response.Message;
|
|
2712
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2713
2149
|
};
|
|
2714
2150
|
const deserializeAws_restJson1ListEnvironmentVpcsCommand = async (output, context) => {
|
|
2715
2151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2741,59 +2177,28 @@ const deserializeAws_restJson1ListEnvironmentVpcsCommandError = async (output, c
|
|
|
2741
2177
|
switch (errorCode) {
|
|
2742
2178
|
case "AccessDeniedException":
|
|
2743
2179
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
2744
|
-
|
|
2745
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2746
|
-
name: errorCode,
|
|
2747
|
-
$metadata: deserializeMetadata(output),
|
|
2748
|
-
};
|
|
2749
|
-
break;
|
|
2180
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2750
2181
|
case "InternalServerException":
|
|
2751
2182
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2752
|
-
|
|
2753
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2754
|
-
name: errorCode,
|
|
2755
|
-
$metadata: deserializeMetadata(output),
|
|
2756
|
-
};
|
|
2757
|
-
break;
|
|
2183
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2758
2184
|
case "ResourceNotFoundException":
|
|
2759
2185
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2760
|
-
|
|
2761
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2762
|
-
name: errorCode,
|
|
2763
|
-
$metadata: deserializeMetadata(output),
|
|
2764
|
-
};
|
|
2765
|
-
break;
|
|
2186
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2766
2187
|
case "ThrottlingException":
|
|
2767
2188
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2768
|
-
|
|
2769
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2770
|
-
name: errorCode,
|
|
2771
|
-
$metadata: deserializeMetadata(output),
|
|
2772
|
-
};
|
|
2773
|
-
break;
|
|
2189
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2774
2190
|
case "ValidationException":
|
|
2775
2191
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2776
|
-
|
|
2777
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2778
|
-
name: errorCode,
|
|
2779
|
-
$metadata: deserializeMetadata(output),
|
|
2780
|
-
};
|
|
2781
|
-
break;
|
|
2192
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2782
2193
|
default:
|
|
2783
2194
|
const parsedBody = parsedOutput.body;
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
...parsedBody,
|
|
2787
|
-
name: `${errorCode}`,
|
|
2788
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2195
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2196
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2789
2197
|
$fault: "client",
|
|
2790
2198
|
$metadata: deserializeMetadata(output),
|
|
2791
|
-
};
|
|
2199
|
+
});
|
|
2200
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2792
2201
|
}
|
|
2793
|
-
const message = response.message || response.Message || errorCode;
|
|
2794
|
-
response.message = message;
|
|
2795
|
-
delete response.Message;
|
|
2796
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2797
2202
|
};
|
|
2798
2203
|
const deserializeAws_restJson1ListRoutesCommand = async (output, context) => {
|
|
2799
2204
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2825,75 +2230,34 @@ const deserializeAws_restJson1ListRoutesCommandError = async (output, context) =
|
|
|
2825
2230
|
switch (errorCode) {
|
|
2826
2231
|
case "AccessDeniedException":
|
|
2827
2232
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
2828
|
-
|
|
2829
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2830
|
-
name: errorCode,
|
|
2831
|
-
$metadata: deserializeMetadata(output),
|
|
2832
|
-
};
|
|
2833
|
-
break;
|
|
2233
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2834
2234
|
case "ConflictException":
|
|
2835
2235
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
2836
|
-
|
|
2837
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2838
|
-
name: errorCode,
|
|
2839
|
-
$metadata: deserializeMetadata(output),
|
|
2840
|
-
};
|
|
2841
|
-
break;
|
|
2236
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2842
2237
|
case "InternalServerException":
|
|
2843
2238
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2844
|
-
|
|
2845
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2846
|
-
name: errorCode,
|
|
2847
|
-
$metadata: deserializeMetadata(output),
|
|
2848
|
-
};
|
|
2849
|
-
break;
|
|
2239
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2850
2240
|
case "ResourceNotFoundException":
|
|
2851
2241
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2852
|
-
|
|
2853
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2854
|
-
name: errorCode,
|
|
2855
|
-
$metadata: deserializeMetadata(output),
|
|
2856
|
-
};
|
|
2857
|
-
break;
|
|
2242
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2858
2243
|
case "ServiceQuotaExceededException":
|
|
2859
2244
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
2860
|
-
|
|
2861
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2862
|
-
name: errorCode,
|
|
2863
|
-
$metadata: deserializeMetadata(output),
|
|
2864
|
-
};
|
|
2865
|
-
break;
|
|
2245
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2866
2246
|
case "ThrottlingException":
|
|
2867
2247
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2868
|
-
|
|
2869
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2870
|
-
name: errorCode,
|
|
2871
|
-
$metadata: deserializeMetadata(output),
|
|
2872
|
-
};
|
|
2873
|
-
break;
|
|
2248
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2874
2249
|
case "ValidationException":
|
|
2875
2250
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2876
|
-
|
|
2877
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2878
|
-
name: errorCode,
|
|
2879
|
-
$metadata: deserializeMetadata(output),
|
|
2880
|
-
};
|
|
2881
|
-
break;
|
|
2251
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2882
2252
|
default:
|
|
2883
2253
|
const parsedBody = parsedOutput.body;
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
...parsedBody,
|
|
2887
|
-
name: `${errorCode}`,
|
|
2888
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2254
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2255
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2889
2256
|
$fault: "client",
|
|
2890
2257
|
$metadata: deserializeMetadata(output),
|
|
2891
|
-
};
|
|
2258
|
+
});
|
|
2259
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2892
2260
|
}
|
|
2893
|
-
const message = response.message || response.Message || errorCode;
|
|
2894
|
-
response.message = message;
|
|
2895
|
-
delete response.Message;
|
|
2896
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2897
2261
|
};
|
|
2898
2262
|
const deserializeAws_restJson1ListServicesCommand = async (output, context) => {
|
|
2899
2263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2925,75 +2289,34 @@ const deserializeAws_restJson1ListServicesCommandError = async (output, context)
|
|
|
2925
2289
|
switch (errorCode) {
|
|
2926
2290
|
case "AccessDeniedException":
|
|
2927
2291
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
2928
|
-
|
|
2929
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2930
|
-
name: errorCode,
|
|
2931
|
-
$metadata: deserializeMetadata(output),
|
|
2932
|
-
};
|
|
2933
|
-
break;
|
|
2292
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2934
2293
|
case "ConflictException":
|
|
2935
2294
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
2936
|
-
|
|
2937
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2938
|
-
name: errorCode,
|
|
2939
|
-
$metadata: deserializeMetadata(output),
|
|
2940
|
-
};
|
|
2941
|
-
break;
|
|
2295
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2942
2296
|
case "InternalServerException":
|
|
2943
2297
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2944
|
-
|
|
2945
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2946
|
-
name: errorCode,
|
|
2947
|
-
$metadata: deserializeMetadata(output),
|
|
2948
|
-
};
|
|
2949
|
-
break;
|
|
2298
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2950
2299
|
case "ResourceNotFoundException":
|
|
2951
2300
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2952
|
-
|
|
2953
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2954
|
-
name: errorCode,
|
|
2955
|
-
$metadata: deserializeMetadata(output),
|
|
2956
|
-
};
|
|
2957
|
-
break;
|
|
2301
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2958
2302
|
case "ServiceQuotaExceededException":
|
|
2959
2303
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
2960
|
-
|
|
2961
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2962
|
-
name: errorCode,
|
|
2963
|
-
$metadata: deserializeMetadata(output),
|
|
2964
|
-
};
|
|
2965
|
-
break;
|
|
2304
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2966
2305
|
case "ThrottlingException":
|
|
2967
2306
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2968
|
-
|
|
2969
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2970
|
-
name: errorCode,
|
|
2971
|
-
$metadata: deserializeMetadata(output),
|
|
2972
|
-
};
|
|
2973
|
-
break;
|
|
2307
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2974
2308
|
case "ValidationException":
|
|
2975
2309
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2976
|
-
|
|
2977
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2978
|
-
name: errorCode,
|
|
2979
|
-
$metadata: deserializeMetadata(output),
|
|
2980
|
-
};
|
|
2981
|
-
break;
|
|
2310
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2982
2311
|
default:
|
|
2983
2312
|
const parsedBody = parsedOutput.body;
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
...parsedBody,
|
|
2987
|
-
name: `${errorCode}`,
|
|
2988
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2313
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2314
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2989
2315
|
$fault: "client",
|
|
2990
2316
|
$metadata: deserializeMetadata(output),
|
|
2991
|
-
};
|
|
2317
|
+
});
|
|
2318
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2992
2319
|
}
|
|
2993
|
-
const message = response.message || response.Message || errorCode;
|
|
2994
|
-
response.message = message;
|
|
2995
|
-
delete response.Message;
|
|
2996
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2997
2320
|
};
|
|
2998
2321
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2999
2322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3021,43 +2344,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3021
2344
|
switch (errorCode) {
|
|
3022
2345
|
case "InternalServerException":
|
|
3023
2346
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
3024
|
-
|
|
3025
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3026
|
-
name: errorCode,
|
|
3027
|
-
$metadata: deserializeMetadata(output),
|
|
3028
|
-
};
|
|
3029
|
-
break;
|
|
2347
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3030
2348
|
case "ResourceNotFoundException":
|
|
3031
2349
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
3032
|
-
|
|
3033
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3034
|
-
name: errorCode,
|
|
3035
|
-
$metadata: deserializeMetadata(output),
|
|
3036
|
-
};
|
|
3037
|
-
break;
|
|
2350
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3038
2351
|
case "ValidationException":
|
|
3039
2352
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
3040
|
-
|
|
3041
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3042
|
-
name: errorCode,
|
|
3043
|
-
$metadata: deserializeMetadata(output),
|
|
3044
|
-
};
|
|
3045
|
-
break;
|
|
2353
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3046
2354
|
default:
|
|
3047
2355
|
const parsedBody = parsedOutput.body;
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
...parsedBody,
|
|
3051
|
-
name: `${errorCode}`,
|
|
3052
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2356
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2357
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3053
2358
|
$fault: "client",
|
|
3054
2359
|
$metadata: deserializeMetadata(output),
|
|
3055
|
-
};
|
|
2360
|
+
});
|
|
2361
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3056
2362
|
}
|
|
3057
|
-
const message = response.message || response.Message || errorCode;
|
|
3058
|
-
response.message = message;
|
|
3059
|
-
delete response.Message;
|
|
3060
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3061
2363
|
};
|
|
3062
2364
|
const deserializeAws_restJson1PutResourcePolicyCommand = async (output, context) => {
|
|
3063
2365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3081,67 +2383,31 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
3081
2383
|
switch (errorCode) {
|
|
3082
2384
|
case "AccessDeniedException":
|
|
3083
2385
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
3084
|
-
|
|
3085
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3086
|
-
name: errorCode,
|
|
3087
|
-
$metadata: deserializeMetadata(output),
|
|
3088
|
-
};
|
|
3089
|
-
break;
|
|
2386
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3090
2387
|
case "InternalServerException":
|
|
3091
2388
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
3092
|
-
|
|
3093
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3094
|
-
name: errorCode,
|
|
3095
|
-
$metadata: deserializeMetadata(output),
|
|
3096
|
-
};
|
|
3097
|
-
break;
|
|
2389
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3098
2390
|
case "InvalidResourcePolicyException":
|
|
3099
2391
|
case "com.amazonaws.migrationhubrefactorspaces#InvalidResourcePolicyException":
|
|
3100
|
-
|
|
3101
|
-
...(await deserializeAws_restJson1InvalidResourcePolicyExceptionResponse(parsedOutput, context)),
|
|
3102
|
-
name: errorCode,
|
|
3103
|
-
$metadata: deserializeMetadata(output),
|
|
3104
|
-
};
|
|
3105
|
-
break;
|
|
2392
|
+
throw await deserializeAws_restJson1InvalidResourcePolicyExceptionResponse(parsedOutput, context);
|
|
3106
2393
|
case "ResourceNotFoundException":
|
|
3107
2394
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
3108
|
-
|
|
3109
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3110
|
-
name: errorCode,
|
|
3111
|
-
$metadata: deserializeMetadata(output),
|
|
3112
|
-
};
|
|
3113
|
-
break;
|
|
2395
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3114
2396
|
case "ThrottlingException":
|
|
3115
2397
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
3116
|
-
|
|
3117
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3118
|
-
name: errorCode,
|
|
3119
|
-
$metadata: deserializeMetadata(output),
|
|
3120
|
-
};
|
|
3121
|
-
break;
|
|
2398
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3122
2399
|
case "ValidationException":
|
|
3123
2400
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
3124
|
-
|
|
3125
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3126
|
-
name: errorCode,
|
|
3127
|
-
$metadata: deserializeMetadata(output),
|
|
3128
|
-
};
|
|
3129
|
-
break;
|
|
2401
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3130
2402
|
default:
|
|
3131
2403
|
const parsedBody = parsedOutput.body;
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
...parsedBody,
|
|
3135
|
-
name: `${errorCode}`,
|
|
3136
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2404
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2405
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3137
2406
|
$fault: "client",
|
|
3138
2407
|
$metadata: deserializeMetadata(output),
|
|
3139
|
-
};
|
|
2408
|
+
});
|
|
2409
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3140
2410
|
}
|
|
3141
|
-
const message = response.message || response.Message || errorCode;
|
|
3142
|
-
response.message = message;
|
|
3143
|
-
delete response.Message;
|
|
3144
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3145
2411
|
};
|
|
3146
2412
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
3147
2413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3165,43 +2431,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3165
2431
|
switch (errorCode) {
|
|
3166
2432
|
case "InternalServerException":
|
|
3167
2433
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
3168
|
-
|
|
3169
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3170
|
-
name: errorCode,
|
|
3171
|
-
$metadata: deserializeMetadata(output),
|
|
3172
|
-
};
|
|
3173
|
-
break;
|
|
2434
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3174
2435
|
case "ResourceNotFoundException":
|
|
3175
2436
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
3176
|
-
|
|
3177
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3178
|
-
name: errorCode,
|
|
3179
|
-
$metadata: deserializeMetadata(output),
|
|
3180
|
-
};
|
|
3181
|
-
break;
|
|
2437
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3182
2438
|
case "ValidationException":
|
|
3183
2439
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
3184
|
-
|
|
3185
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3186
|
-
name: errorCode,
|
|
3187
|
-
$metadata: deserializeMetadata(output),
|
|
3188
|
-
};
|
|
3189
|
-
break;
|
|
2440
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3190
2441
|
default:
|
|
3191
2442
|
const parsedBody = parsedOutput.body;
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
...parsedBody,
|
|
3195
|
-
name: `${errorCode}`,
|
|
3196
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2443
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2444
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3197
2445
|
$fault: "client",
|
|
3198
2446
|
$metadata: deserializeMetadata(output),
|
|
3199
|
-
};
|
|
2447
|
+
});
|
|
2448
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3200
2449
|
}
|
|
3201
|
-
const message = response.message || response.Message || errorCode;
|
|
3202
|
-
response.message = message;
|
|
3203
|
-
delete response.Message;
|
|
3204
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3205
2450
|
};
|
|
3206
2451
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
3207
2452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3225,66 +2470,37 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3225
2470
|
switch (errorCode) {
|
|
3226
2471
|
case "InternalServerException":
|
|
3227
2472
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
3228
|
-
|
|
3229
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3230
|
-
name: errorCode,
|
|
3231
|
-
$metadata: deserializeMetadata(output),
|
|
3232
|
-
};
|
|
3233
|
-
break;
|
|
2473
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3234
2474
|
case "ResourceNotFoundException":
|
|
3235
2475
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
3236
|
-
|
|
3237
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3238
|
-
name: errorCode,
|
|
3239
|
-
$metadata: deserializeMetadata(output),
|
|
3240
|
-
};
|
|
3241
|
-
break;
|
|
2476
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3242
2477
|
case "ValidationException":
|
|
3243
2478
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
3244
|
-
|
|
3245
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3246
|
-
name: errorCode,
|
|
3247
|
-
$metadata: deserializeMetadata(output),
|
|
3248
|
-
};
|
|
3249
|
-
break;
|
|
2479
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3250
2480
|
default:
|
|
3251
2481
|
const parsedBody = parsedOutput.body;
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
...parsedBody,
|
|
3255
|
-
name: `${errorCode}`,
|
|
3256
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2482
|
+
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2483
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3257
2484
|
$fault: "client",
|
|
3258
2485
|
$metadata: deserializeMetadata(output),
|
|
3259
|
-
};
|
|
2486
|
+
});
|
|
2487
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3260
2488
|
}
|
|
3261
|
-
const message = response.message || response.Message || errorCode;
|
|
3262
|
-
response.message = message;
|
|
3263
|
-
delete response.Message;
|
|
3264
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3265
2489
|
};
|
|
3266
2490
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
3267
|
-
const contents = {
|
|
3268
|
-
name: "AccessDeniedException",
|
|
3269
|
-
$fault: "client",
|
|
3270
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3271
|
-
Message: undefined,
|
|
3272
|
-
};
|
|
2491
|
+
const contents = {};
|
|
3273
2492
|
const data = parsedOutput.body;
|
|
3274
2493
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3275
2494
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3276
2495
|
}
|
|
3277
|
-
|
|
2496
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
2497
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2498
|
+
...contents,
|
|
2499
|
+
});
|
|
2500
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3278
2501
|
};
|
|
3279
2502
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3280
|
-
const contents = {
|
|
3281
|
-
name: "ConflictException",
|
|
3282
|
-
$fault: "client",
|
|
3283
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3284
|
-
Message: undefined,
|
|
3285
|
-
ResourceId: undefined,
|
|
3286
|
-
ResourceType: undefined,
|
|
3287
|
-
};
|
|
2503
|
+
const contents = {};
|
|
3288
2504
|
const data = parsedOutput.body;
|
|
3289
2505
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3290
2506
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
@@ -3295,43 +2511,38 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3295
2511
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
3296
2512
|
contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
|
|
3297
2513
|
}
|
|
3298
|
-
|
|
2514
|
+
const exception = new models_0_1.ConflictException({
|
|
2515
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2516
|
+
...contents,
|
|
2517
|
+
});
|
|
2518
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3299
2519
|
};
|
|
3300
2520
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
3301
|
-
const contents = {
|
|
3302
|
-
name: "InternalServerException",
|
|
3303
|
-
$fault: "server",
|
|
3304
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3305
|
-
Message: undefined,
|
|
3306
|
-
};
|
|
2521
|
+
const contents = {};
|
|
3307
2522
|
const data = parsedOutput.body;
|
|
3308
2523
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3309
2524
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3310
2525
|
}
|
|
3311
|
-
|
|
2526
|
+
const exception = new models_0_1.InternalServerException({
|
|
2527
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2528
|
+
...contents,
|
|
2529
|
+
});
|
|
2530
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3312
2531
|
};
|
|
3313
2532
|
const deserializeAws_restJson1InvalidResourcePolicyExceptionResponse = async (parsedOutput, context) => {
|
|
3314
|
-
const contents = {
|
|
3315
|
-
name: "InvalidResourcePolicyException",
|
|
3316
|
-
$fault: "client",
|
|
3317
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3318
|
-
Message: undefined,
|
|
3319
|
-
};
|
|
2533
|
+
const contents = {};
|
|
3320
2534
|
const data = parsedOutput.body;
|
|
3321
2535
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3322
2536
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3323
2537
|
}
|
|
3324
|
-
|
|
2538
|
+
const exception = new models_0_1.InvalidResourcePolicyException({
|
|
2539
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2540
|
+
...contents,
|
|
2541
|
+
});
|
|
2542
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3325
2543
|
};
|
|
3326
2544
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3327
|
-
const contents = {
|
|
3328
|
-
name: "ResourceNotFoundException",
|
|
3329
|
-
$fault: "client",
|
|
3330
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3331
|
-
Message: undefined,
|
|
3332
|
-
ResourceId: undefined,
|
|
3333
|
-
ResourceType: undefined,
|
|
3334
|
-
};
|
|
2545
|
+
const contents = {};
|
|
3335
2546
|
const data = parsedOutput.body;
|
|
3336
2547
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3337
2548
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
@@ -3342,19 +2553,14 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3342
2553
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
3343
2554
|
contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
|
|
3344
2555
|
}
|
|
3345
|
-
|
|
2556
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2557
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2558
|
+
...contents,
|
|
2559
|
+
});
|
|
2560
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3346
2561
|
};
|
|
3347
2562
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3348
|
-
const contents = {
|
|
3349
|
-
name: "ServiceQuotaExceededException",
|
|
3350
|
-
$fault: "client",
|
|
3351
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3352
|
-
Message: undefined,
|
|
3353
|
-
QuotaCode: undefined,
|
|
3354
|
-
ResourceId: undefined,
|
|
3355
|
-
ResourceType: undefined,
|
|
3356
|
-
ServiceCode: undefined,
|
|
3357
|
-
};
|
|
2563
|
+
const contents = {};
|
|
3358
2564
|
const data = parsedOutput.body;
|
|
3359
2565
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3360
2566
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
@@ -3371,18 +2577,14 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3371
2577
|
if (data.ServiceCode !== undefined && data.ServiceCode !== null) {
|
|
3372
2578
|
contents.ServiceCode = smithy_client_1.expectString(data.ServiceCode);
|
|
3373
2579
|
}
|
|
3374
|
-
|
|
2580
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2581
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2582
|
+
...contents,
|
|
2583
|
+
});
|
|
2584
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3375
2585
|
};
|
|
3376
2586
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
3377
|
-
const contents = {
|
|
3378
|
-
name: "ThrottlingException",
|
|
3379
|
-
$fault: "client",
|
|
3380
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3381
|
-
Message: undefined,
|
|
3382
|
-
QuotaCode: undefined,
|
|
3383
|
-
RetryAfterSeconds: undefined,
|
|
3384
|
-
ServiceCode: undefined,
|
|
3385
|
-
};
|
|
2587
|
+
const contents = {};
|
|
3386
2588
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3387
2589
|
contents.RetryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3388
2590
|
}
|
|
@@ -3396,20 +2598,23 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3396
2598
|
if (data.ServiceCode !== undefined && data.ServiceCode !== null) {
|
|
3397
2599
|
contents.ServiceCode = smithy_client_1.expectString(data.ServiceCode);
|
|
3398
2600
|
}
|
|
3399
|
-
|
|
2601
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2602
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2603
|
+
...contents,
|
|
2604
|
+
});
|
|
2605
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3400
2606
|
};
|
|
3401
2607
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
3402
|
-
const contents = {
|
|
3403
|
-
name: "ValidationException",
|
|
3404
|
-
$fault: "client",
|
|
3405
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3406
|
-
Message: undefined,
|
|
3407
|
-
};
|
|
2608
|
+
const contents = {};
|
|
3408
2609
|
const data = parsedOutput.body;
|
|
3409
2610
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3410
2611
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3411
2612
|
}
|
|
3412
|
-
|
|
2613
|
+
const exception = new models_0_1.ValidationException({
|
|
2614
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2615
|
+
...contents,
|
|
2616
|
+
});
|
|
2617
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3413
2618
|
};
|
|
3414
2619
|
const serializeAws_restJson1ApiGatewayProxyInput = (input, context) => {
|
|
3415
2620
|
return {
|
|
@@ -3500,7 +2705,7 @@ const deserializeAws_restJson1ApiGatewayProxySummary = (output, context) => {
|
|
|
3500
2705
|
};
|
|
3501
2706
|
};
|
|
3502
2707
|
const deserializeAws_restJson1ApplicationSummaries = (output, context) => {
|
|
3503
|
-
|
|
2708
|
+
const retVal = (output || [])
|
|
3504
2709
|
.filter((e) => e != null)
|
|
3505
2710
|
.map((entry) => {
|
|
3506
2711
|
if (entry === null) {
|
|
@@ -3508,6 +2713,7 @@ const deserializeAws_restJson1ApplicationSummaries = (output, context) => {
|
|
|
3508
2713
|
}
|
|
3509
2714
|
return deserializeAws_restJson1ApplicationSummary(entry, context);
|
|
3510
2715
|
});
|
|
2716
|
+
return retVal;
|
|
3511
2717
|
};
|
|
3512
2718
|
const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
3513
2719
|
return {
|
|
@@ -3538,7 +2744,7 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
3538
2744
|
};
|
|
3539
2745
|
};
|
|
3540
2746
|
const deserializeAws_restJson1CidrBlocks = (output, context) => {
|
|
3541
|
-
|
|
2747
|
+
const retVal = (output || [])
|
|
3542
2748
|
.filter((e) => e != null)
|
|
3543
2749
|
.map((entry) => {
|
|
3544
2750
|
if (entry === null) {
|
|
@@ -3546,9 +2752,10 @@ const deserializeAws_restJson1CidrBlocks = (output, context) => {
|
|
|
3546
2752
|
}
|
|
3547
2753
|
return smithy_client_1.expectString(entry);
|
|
3548
2754
|
});
|
|
2755
|
+
return retVal;
|
|
3549
2756
|
};
|
|
3550
2757
|
const deserializeAws_restJson1EnvironmentSummaries = (output, context) => {
|
|
3551
|
-
|
|
2758
|
+
const retVal = (output || [])
|
|
3552
2759
|
.filter((e) => e != null)
|
|
3553
2760
|
.map((entry) => {
|
|
3554
2761
|
if (entry === null) {
|
|
@@ -3556,6 +2763,7 @@ const deserializeAws_restJson1EnvironmentSummaries = (output, context) => {
|
|
|
3556
2763
|
}
|
|
3557
2764
|
return deserializeAws_restJson1EnvironmentSummary(entry, context);
|
|
3558
2765
|
});
|
|
2766
|
+
return retVal;
|
|
3559
2767
|
};
|
|
3560
2768
|
const deserializeAws_restJson1EnvironmentSummary = (output, context) => {
|
|
3561
2769
|
return {
|
|
@@ -3599,7 +2807,7 @@ const deserializeAws_restJson1EnvironmentVpc = (output, context) => {
|
|
|
3599
2807
|
};
|
|
3600
2808
|
};
|
|
3601
2809
|
const deserializeAws_restJson1EnvironmentVpcs = (output, context) => {
|
|
3602
|
-
|
|
2810
|
+
const retVal = (output || [])
|
|
3603
2811
|
.filter((e) => e != null)
|
|
3604
2812
|
.map((entry) => {
|
|
3605
2813
|
if (entry === null) {
|
|
@@ -3607,6 +2815,7 @@ const deserializeAws_restJson1EnvironmentVpcs = (output, context) => {
|
|
|
3607
2815
|
}
|
|
3608
2816
|
return deserializeAws_restJson1EnvironmentVpc(entry, context);
|
|
3609
2817
|
});
|
|
2818
|
+
return retVal;
|
|
3610
2819
|
};
|
|
3611
2820
|
const deserializeAws_restJson1ErrorResponse = (output, context) => {
|
|
3612
2821
|
return {
|
|
@@ -3621,7 +2830,7 @@ const deserializeAws_restJson1ErrorResponse = (output, context) => {
|
|
|
3621
2830
|
};
|
|
3622
2831
|
};
|
|
3623
2832
|
const deserializeAws_restJson1HttpMethods = (output, context) => {
|
|
3624
|
-
|
|
2833
|
+
const retVal = (output || [])
|
|
3625
2834
|
.filter((e) => e != null)
|
|
3626
2835
|
.map((entry) => {
|
|
3627
2836
|
if (entry === null) {
|
|
@@ -3629,6 +2838,7 @@ const deserializeAws_restJson1HttpMethods = (output, context) => {
|
|
|
3629
2838
|
}
|
|
3630
2839
|
return smithy_client_1.expectString(entry);
|
|
3631
2840
|
});
|
|
2841
|
+
return retVal;
|
|
3632
2842
|
};
|
|
3633
2843
|
const deserializeAws_restJson1LambdaEndpointConfig = (output, context) => {
|
|
3634
2844
|
return {
|
|
@@ -3657,7 +2867,7 @@ const deserializeAws_restJson1PathResourceToId = (output, context) => {
|
|
|
3657
2867
|
}, {});
|
|
3658
2868
|
};
|
|
3659
2869
|
const deserializeAws_restJson1RouteSummaries = (output, context) => {
|
|
3660
|
-
|
|
2870
|
+
const retVal = (output || [])
|
|
3661
2871
|
.filter((e) => e != null)
|
|
3662
2872
|
.map((entry) => {
|
|
3663
2873
|
if (entry === null) {
|
|
@@ -3665,6 +2875,7 @@ const deserializeAws_restJson1RouteSummaries = (output, context) => {
|
|
|
3665
2875
|
}
|
|
3666
2876
|
return deserializeAws_restJson1RouteSummary(entry, context);
|
|
3667
2877
|
});
|
|
2878
|
+
return retVal;
|
|
3668
2879
|
};
|
|
3669
2880
|
const deserializeAws_restJson1RouteSummary = (output, context) => {
|
|
3670
2881
|
return {
|
|
@@ -3700,7 +2911,7 @@ const deserializeAws_restJson1RouteSummary = (output, context) => {
|
|
|
3700
2911
|
};
|
|
3701
2912
|
};
|
|
3702
2913
|
const deserializeAws_restJson1ServiceSummaries = (output, context) => {
|
|
3703
|
-
|
|
2914
|
+
const retVal = (output || [])
|
|
3704
2915
|
.filter((e) => e != null)
|
|
3705
2916
|
.map((entry) => {
|
|
3706
2917
|
if (entry === null) {
|
|
@@ -3708,6 +2919,7 @@ const deserializeAws_restJson1ServiceSummaries = (output, context) => {
|
|
|
3708
2919
|
}
|
|
3709
2920
|
return deserializeAws_restJson1ServiceSummary(entry, context);
|
|
3710
2921
|
});
|
|
2922
|
+
return retVal;
|
|
3711
2923
|
};
|
|
3712
2924
|
const deserializeAws_restJson1ServiceSummary = (output, context) => {
|
|
3713
2925
|
return {
|