@aws-sdk/client-apigatewayv2 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +120 -1883
- package/dist-es/protocols/Aws_restJson1.js +117 -1880
- package/package.json +3 -3
|
@@ -1033,7 +1033,7 @@ export const se_UpdateVpcLinkCommand = async (input, context) => {
|
|
|
1033
1033
|
};
|
|
1034
1034
|
export const de_CreateApiCommand = async (output, context) => {
|
|
1035
1035
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1036
|
-
return
|
|
1036
|
+
return de_CommandError(output, context);
|
|
1037
1037
|
}
|
|
1038
1038
|
const contents = map({
|
|
1039
1039
|
$metadata: deserializeMetadata(output),
|
|
@@ -1060,37 +1060,9 @@ export const de_CreateApiCommand = async (output, context) => {
|
|
|
1060
1060
|
Object.assign(contents, doc);
|
|
1061
1061
|
return contents;
|
|
1062
1062
|
};
|
|
1063
|
-
const de_CreateApiCommandError = async (output, context) => {
|
|
1064
|
-
const parsedOutput = {
|
|
1065
|
-
...output,
|
|
1066
|
-
body: await parseErrorBody(output.body, context),
|
|
1067
|
-
};
|
|
1068
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
|
-
switch (errorCode) {
|
|
1070
|
-
case "BadRequestException":
|
|
1071
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1072
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ConflictException":
|
|
1074
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1075
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "NotFoundException":
|
|
1077
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1078
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "TooManyRequestsException":
|
|
1080
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1081
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1082
|
-
default:
|
|
1083
|
-
const parsedBody = parsedOutput.body;
|
|
1084
|
-
return throwDefaultError({
|
|
1085
|
-
output,
|
|
1086
|
-
parsedBody,
|
|
1087
|
-
errorCode,
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
};
|
|
1091
1063
|
export const de_CreateApiMappingCommand = async (output, context) => {
|
|
1092
1064
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1093
|
-
return
|
|
1065
|
+
return de_CommandError(output, context);
|
|
1094
1066
|
}
|
|
1095
1067
|
const contents = map({
|
|
1096
1068
|
$metadata: deserializeMetadata(output),
|
|
@@ -1105,37 +1077,9 @@ export const de_CreateApiMappingCommand = async (output, context) => {
|
|
|
1105
1077
|
Object.assign(contents, doc);
|
|
1106
1078
|
return contents;
|
|
1107
1079
|
};
|
|
1108
|
-
const de_CreateApiMappingCommandError = async (output, context) => {
|
|
1109
|
-
const parsedOutput = {
|
|
1110
|
-
...output,
|
|
1111
|
-
body: await parseErrorBody(output.body, context),
|
|
1112
|
-
};
|
|
1113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
|
-
switch (errorCode) {
|
|
1115
|
-
case "BadRequestException":
|
|
1116
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1117
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ConflictException":
|
|
1119
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1120
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "NotFoundException":
|
|
1122
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1123
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "TooManyRequestsException":
|
|
1125
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1126
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1127
|
-
default:
|
|
1128
|
-
const parsedBody = parsedOutput.body;
|
|
1129
|
-
return throwDefaultError({
|
|
1130
|
-
output,
|
|
1131
|
-
parsedBody,
|
|
1132
|
-
errorCode,
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
};
|
|
1136
1080
|
export const de_CreateAuthorizerCommand = async (output, context) => {
|
|
1137
1081
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1138
|
-
return
|
|
1082
|
+
return de_CommandError(output, context);
|
|
1139
1083
|
}
|
|
1140
1084
|
const contents = map({
|
|
1141
1085
|
$metadata: deserializeMetadata(output),
|
|
@@ -1157,37 +1101,9 @@ export const de_CreateAuthorizerCommand = async (output, context) => {
|
|
|
1157
1101
|
Object.assign(contents, doc);
|
|
1158
1102
|
return contents;
|
|
1159
1103
|
};
|
|
1160
|
-
const de_CreateAuthorizerCommandError = async (output, context) => {
|
|
1161
|
-
const parsedOutput = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseErrorBody(output.body, context),
|
|
1164
|
-
};
|
|
1165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
switch (errorCode) {
|
|
1167
|
-
case "BadRequestException":
|
|
1168
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1169
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ConflictException":
|
|
1171
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1172
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "NotFoundException":
|
|
1174
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1175
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "TooManyRequestsException":
|
|
1177
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1178
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1179
|
-
default:
|
|
1180
|
-
const parsedBody = parsedOutput.body;
|
|
1181
|
-
return throwDefaultError({
|
|
1182
|
-
output,
|
|
1183
|
-
parsedBody,
|
|
1184
|
-
errorCode,
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
1104
|
export const de_CreateDeploymentCommand = async (output, context) => {
|
|
1189
1105
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1190
|
-
return
|
|
1106
|
+
return de_CommandError(output, context);
|
|
1191
1107
|
}
|
|
1192
1108
|
const contents = map({
|
|
1193
1109
|
$metadata: deserializeMetadata(output),
|
|
@@ -1204,37 +1120,9 @@ export const de_CreateDeploymentCommand = async (output, context) => {
|
|
|
1204
1120
|
Object.assign(contents, doc);
|
|
1205
1121
|
return contents;
|
|
1206
1122
|
};
|
|
1207
|
-
const de_CreateDeploymentCommandError = async (output, context) => {
|
|
1208
|
-
const parsedOutput = {
|
|
1209
|
-
...output,
|
|
1210
|
-
body: await parseErrorBody(output.body, context),
|
|
1211
|
-
};
|
|
1212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
|
-
switch (errorCode) {
|
|
1214
|
-
case "BadRequestException":
|
|
1215
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1216
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "ConflictException":
|
|
1218
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1219
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "NotFoundException":
|
|
1221
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1222
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "TooManyRequestsException":
|
|
1224
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1225
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1226
|
-
default:
|
|
1227
|
-
const parsedBody = parsedOutput.body;
|
|
1228
|
-
return throwDefaultError({
|
|
1229
|
-
output,
|
|
1230
|
-
parsedBody,
|
|
1231
|
-
errorCode,
|
|
1232
|
-
});
|
|
1233
|
-
}
|
|
1234
|
-
};
|
|
1235
1123
|
export const de_CreateDomainNameCommand = async (output, context) => {
|
|
1236
1124
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1237
|
-
return
|
|
1125
|
+
return de_CommandError(output, context);
|
|
1238
1126
|
}
|
|
1239
1127
|
const contents = map({
|
|
1240
1128
|
$metadata: deserializeMetadata(output),
|
|
@@ -1250,40 +1138,9 @@ export const de_CreateDomainNameCommand = async (output, context) => {
|
|
|
1250
1138
|
Object.assign(contents, doc);
|
|
1251
1139
|
return contents;
|
|
1252
1140
|
};
|
|
1253
|
-
const de_CreateDomainNameCommandError = async (output, context) => {
|
|
1254
|
-
const parsedOutput = {
|
|
1255
|
-
...output,
|
|
1256
|
-
body: await parseErrorBody(output.body, context),
|
|
1257
|
-
};
|
|
1258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
|
-
switch (errorCode) {
|
|
1260
|
-
case "AccessDeniedException":
|
|
1261
|
-
case "com.amazonaws.apigatewayv2#AccessDeniedException":
|
|
1262
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "BadRequestException":
|
|
1264
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1265
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "ConflictException":
|
|
1267
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1268
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "NotFoundException":
|
|
1270
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1271
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "TooManyRequestsException":
|
|
1273
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1274
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1275
|
-
default:
|
|
1276
|
-
const parsedBody = parsedOutput.body;
|
|
1277
|
-
return throwDefaultError({
|
|
1278
|
-
output,
|
|
1279
|
-
parsedBody,
|
|
1280
|
-
errorCode,
|
|
1281
|
-
});
|
|
1282
|
-
}
|
|
1283
|
-
};
|
|
1284
1141
|
export const de_CreateIntegrationCommand = async (output, context) => {
|
|
1285
1142
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1286
|
-
return
|
|
1143
|
+
return de_CommandError(output, context);
|
|
1287
1144
|
}
|
|
1288
1145
|
const contents = map({
|
|
1289
1146
|
$metadata: deserializeMetadata(output),
|
|
@@ -1314,37 +1171,9 @@ export const de_CreateIntegrationCommand = async (output, context) => {
|
|
|
1314
1171
|
Object.assign(contents, doc);
|
|
1315
1172
|
return contents;
|
|
1316
1173
|
};
|
|
1317
|
-
const de_CreateIntegrationCommandError = async (output, context) => {
|
|
1318
|
-
const parsedOutput = {
|
|
1319
|
-
...output,
|
|
1320
|
-
body: await parseErrorBody(output.body, context),
|
|
1321
|
-
};
|
|
1322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
|
-
switch (errorCode) {
|
|
1324
|
-
case "BadRequestException":
|
|
1325
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1326
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ConflictException":
|
|
1328
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1329
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "NotFoundException":
|
|
1331
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1332
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "TooManyRequestsException":
|
|
1334
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1335
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody,
|
|
1341
|
-
errorCode,
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
1174
|
export const de_CreateIntegrationResponseCommand = async (output, context) => {
|
|
1346
1175
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1347
|
-
return
|
|
1176
|
+
return de_CommandError(output, context);
|
|
1348
1177
|
}
|
|
1349
1178
|
const contents = map({
|
|
1350
1179
|
$metadata: deserializeMetadata(output),
|
|
@@ -1361,37 +1190,9 @@ export const de_CreateIntegrationResponseCommand = async (output, context) => {
|
|
|
1361
1190
|
Object.assign(contents, doc);
|
|
1362
1191
|
return contents;
|
|
1363
1192
|
};
|
|
1364
|
-
const de_CreateIntegrationResponseCommandError = async (output, context) => {
|
|
1365
|
-
const parsedOutput = {
|
|
1366
|
-
...output,
|
|
1367
|
-
body: await parseErrorBody(output.body, context),
|
|
1368
|
-
};
|
|
1369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
|
-
switch (errorCode) {
|
|
1371
|
-
case "BadRequestException":
|
|
1372
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1373
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ConflictException":
|
|
1375
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1376
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "NotFoundException":
|
|
1378
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1379
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "TooManyRequestsException":
|
|
1381
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1382
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1383
|
-
default:
|
|
1384
|
-
const parsedBody = parsedOutput.body;
|
|
1385
|
-
return throwDefaultError({
|
|
1386
|
-
output,
|
|
1387
|
-
parsedBody,
|
|
1388
|
-
errorCode,
|
|
1389
|
-
});
|
|
1390
|
-
}
|
|
1391
|
-
};
|
|
1392
1193
|
export const de_CreateModelCommand = async (output, context) => {
|
|
1393
1194
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1394
|
-
return
|
|
1195
|
+
return de_CommandError(output, context);
|
|
1395
1196
|
}
|
|
1396
1197
|
const contents = map({
|
|
1397
1198
|
$metadata: deserializeMetadata(output),
|
|
@@ -1407,37 +1208,9 @@ export const de_CreateModelCommand = async (output, context) => {
|
|
|
1407
1208
|
Object.assign(contents, doc);
|
|
1408
1209
|
return contents;
|
|
1409
1210
|
};
|
|
1410
|
-
const de_CreateModelCommandError = async (output, context) => {
|
|
1411
|
-
const parsedOutput = {
|
|
1412
|
-
...output,
|
|
1413
|
-
body: await parseErrorBody(output.body, context),
|
|
1414
|
-
};
|
|
1415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
-
switch (errorCode) {
|
|
1417
|
-
case "BadRequestException":
|
|
1418
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1419
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "ConflictException":
|
|
1421
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1422
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "NotFoundException":
|
|
1424
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1425
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "TooManyRequestsException":
|
|
1427
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1428
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1429
|
-
default:
|
|
1430
|
-
const parsedBody = parsedOutput.body;
|
|
1431
|
-
return throwDefaultError({
|
|
1432
|
-
output,
|
|
1433
|
-
parsedBody,
|
|
1434
|
-
errorCode,
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
};
|
|
1438
1211
|
export const de_CreateRouteCommand = async (output, context) => {
|
|
1439
1212
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1440
|
-
return
|
|
1213
|
+
return de_CommandError(output, context);
|
|
1441
1214
|
}
|
|
1442
1215
|
const contents = map({
|
|
1443
1216
|
$metadata: deserializeMetadata(output),
|
|
@@ -1461,37 +1234,9 @@ export const de_CreateRouteCommand = async (output, context) => {
|
|
|
1461
1234
|
Object.assign(contents, doc);
|
|
1462
1235
|
return contents;
|
|
1463
1236
|
};
|
|
1464
|
-
const de_CreateRouteCommandError = async (output, context) => {
|
|
1465
|
-
const parsedOutput = {
|
|
1466
|
-
...output,
|
|
1467
|
-
body: await parseErrorBody(output.body, context),
|
|
1468
|
-
};
|
|
1469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1470
|
-
switch (errorCode) {
|
|
1471
|
-
case "BadRequestException":
|
|
1472
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1473
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "ConflictException":
|
|
1475
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1476
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1477
|
-
case "NotFoundException":
|
|
1478
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1479
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1480
|
-
case "TooManyRequestsException":
|
|
1481
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1482
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1483
|
-
default:
|
|
1484
|
-
const parsedBody = parsedOutput.body;
|
|
1485
|
-
return throwDefaultError({
|
|
1486
|
-
output,
|
|
1487
|
-
parsedBody,
|
|
1488
|
-
errorCode,
|
|
1489
|
-
});
|
|
1490
|
-
}
|
|
1491
|
-
};
|
|
1492
1237
|
export const de_CreateRouteResponseCommand = async (output, context) => {
|
|
1493
1238
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1494
|
-
return
|
|
1239
|
+
return de_CommandError(output, context);
|
|
1495
1240
|
}
|
|
1496
1241
|
const contents = map({
|
|
1497
1242
|
$metadata: deserializeMetadata(output),
|
|
@@ -1507,37 +1252,9 @@ export const de_CreateRouteResponseCommand = async (output, context) => {
|
|
|
1507
1252
|
Object.assign(contents, doc);
|
|
1508
1253
|
return contents;
|
|
1509
1254
|
};
|
|
1510
|
-
const de_CreateRouteResponseCommandError = async (output, context) => {
|
|
1511
|
-
const parsedOutput = {
|
|
1512
|
-
...output,
|
|
1513
|
-
body: await parseErrorBody(output.body, context),
|
|
1514
|
-
};
|
|
1515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
-
switch (errorCode) {
|
|
1517
|
-
case "BadRequestException":
|
|
1518
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1519
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "ConflictException":
|
|
1521
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1522
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "NotFoundException":
|
|
1524
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1525
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "TooManyRequestsException":
|
|
1527
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1528
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1529
|
-
default:
|
|
1530
|
-
const parsedBody = parsedOutput.body;
|
|
1531
|
-
return throwDefaultError({
|
|
1532
|
-
output,
|
|
1533
|
-
parsedBody,
|
|
1534
|
-
errorCode,
|
|
1535
|
-
});
|
|
1536
|
-
}
|
|
1537
|
-
};
|
|
1538
1255
|
export const de_CreateStageCommand = async (output, context) => {
|
|
1539
1256
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1540
|
-
return
|
|
1257
|
+
return de_CommandError(output, context);
|
|
1541
1258
|
}
|
|
1542
1259
|
const contents = map({
|
|
1543
1260
|
$metadata: deserializeMetadata(output),
|
|
@@ -1562,37 +1279,9 @@ export const de_CreateStageCommand = async (output, context) => {
|
|
|
1562
1279
|
Object.assign(contents, doc);
|
|
1563
1280
|
return contents;
|
|
1564
1281
|
};
|
|
1565
|
-
const de_CreateStageCommandError = async (output, context) => {
|
|
1566
|
-
const parsedOutput = {
|
|
1567
|
-
...output,
|
|
1568
|
-
body: await parseErrorBody(output.body, context),
|
|
1569
|
-
};
|
|
1570
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1571
|
-
switch (errorCode) {
|
|
1572
|
-
case "BadRequestException":
|
|
1573
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1574
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "ConflictException":
|
|
1576
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1577
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "NotFoundException":
|
|
1579
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1580
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "TooManyRequestsException":
|
|
1582
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1583
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1584
|
-
default:
|
|
1585
|
-
const parsedBody = parsedOutput.body;
|
|
1586
|
-
return throwDefaultError({
|
|
1587
|
-
output,
|
|
1588
|
-
parsedBody,
|
|
1589
|
-
errorCode,
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
};
|
|
1593
1282
|
export const de_CreateVpcLinkCommand = async (output, context) => {
|
|
1594
1283
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1595
|
-
return
|
|
1284
|
+
return de_CommandError(output, context);
|
|
1596
1285
|
}
|
|
1597
1286
|
const contents = map({
|
|
1598
1287
|
$metadata: deserializeMetadata(output),
|
|
@@ -1612,31 +1301,9 @@ export const de_CreateVpcLinkCommand = async (output, context) => {
|
|
|
1612
1301
|
Object.assign(contents, doc);
|
|
1613
1302
|
return contents;
|
|
1614
1303
|
};
|
|
1615
|
-
const de_CreateVpcLinkCommandError = async (output, context) => {
|
|
1616
|
-
const parsedOutput = {
|
|
1617
|
-
...output,
|
|
1618
|
-
body: await parseErrorBody(output.body, context),
|
|
1619
|
-
};
|
|
1620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
|
-
switch (errorCode) {
|
|
1622
|
-
case "BadRequestException":
|
|
1623
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1624
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "TooManyRequestsException":
|
|
1626
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1627
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1628
|
-
default:
|
|
1629
|
-
const parsedBody = parsedOutput.body;
|
|
1630
|
-
return throwDefaultError({
|
|
1631
|
-
output,
|
|
1632
|
-
parsedBody,
|
|
1633
|
-
errorCode,
|
|
1634
|
-
});
|
|
1635
|
-
}
|
|
1636
|
-
};
|
|
1637
1304
|
export const de_DeleteAccessLogSettingsCommand = async (output, context) => {
|
|
1638
1305
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1639
|
-
return
|
|
1306
|
+
return de_CommandError(output, context);
|
|
1640
1307
|
}
|
|
1641
1308
|
const contents = map({
|
|
1642
1309
|
$metadata: deserializeMetadata(output),
|
|
@@ -1644,31 +1311,9 @@ export const de_DeleteAccessLogSettingsCommand = async (output, context) => {
|
|
|
1644
1311
|
await collectBody(output.body, context);
|
|
1645
1312
|
return contents;
|
|
1646
1313
|
};
|
|
1647
|
-
const de_DeleteAccessLogSettingsCommandError = async (output, context) => {
|
|
1648
|
-
const parsedOutput = {
|
|
1649
|
-
...output,
|
|
1650
|
-
body: await parseErrorBody(output.body, context),
|
|
1651
|
-
};
|
|
1652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
|
-
switch (errorCode) {
|
|
1654
|
-
case "NotFoundException":
|
|
1655
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1656
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "TooManyRequestsException":
|
|
1658
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1659
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1660
|
-
default:
|
|
1661
|
-
const parsedBody = parsedOutput.body;
|
|
1662
|
-
return throwDefaultError({
|
|
1663
|
-
output,
|
|
1664
|
-
parsedBody,
|
|
1665
|
-
errorCode,
|
|
1666
|
-
});
|
|
1667
|
-
}
|
|
1668
|
-
};
|
|
1669
1314
|
export const de_DeleteApiCommand = async (output, context) => {
|
|
1670
1315
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1671
|
-
return
|
|
1316
|
+
return de_CommandError(output, context);
|
|
1672
1317
|
}
|
|
1673
1318
|
const contents = map({
|
|
1674
1319
|
$metadata: deserializeMetadata(output),
|
|
@@ -1676,31 +1321,9 @@ export const de_DeleteApiCommand = async (output, context) => {
|
|
|
1676
1321
|
await collectBody(output.body, context);
|
|
1677
1322
|
return contents;
|
|
1678
1323
|
};
|
|
1679
|
-
const de_DeleteApiCommandError = async (output, context) => {
|
|
1680
|
-
const parsedOutput = {
|
|
1681
|
-
...output,
|
|
1682
|
-
body: await parseErrorBody(output.body, context),
|
|
1683
|
-
};
|
|
1684
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1685
|
-
switch (errorCode) {
|
|
1686
|
-
case "NotFoundException":
|
|
1687
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1688
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1689
|
-
case "TooManyRequestsException":
|
|
1690
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1691
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1692
|
-
default:
|
|
1693
|
-
const parsedBody = parsedOutput.body;
|
|
1694
|
-
return throwDefaultError({
|
|
1695
|
-
output,
|
|
1696
|
-
parsedBody,
|
|
1697
|
-
errorCode,
|
|
1698
|
-
});
|
|
1699
|
-
}
|
|
1700
|
-
};
|
|
1701
1324
|
export const de_DeleteApiMappingCommand = async (output, context) => {
|
|
1702
1325
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1703
|
-
return
|
|
1326
|
+
return de_CommandError(output, context);
|
|
1704
1327
|
}
|
|
1705
1328
|
const contents = map({
|
|
1706
1329
|
$metadata: deserializeMetadata(output),
|
|
@@ -1708,34 +1331,9 @@ export const de_DeleteApiMappingCommand = async (output, context) => {
|
|
|
1708
1331
|
await collectBody(output.body, context);
|
|
1709
1332
|
return contents;
|
|
1710
1333
|
};
|
|
1711
|
-
const de_DeleteApiMappingCommandError = async (output, context) => {
|
|
1712
|
-
const parsedOutput = {
|
|
1713
|
-
...output,
|
|
1714
|
-
body: await parseErrorBody(output.body, context),
|
|
1715
|
-
};
|
|
1716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
-
switch (errorCode) {
|
|
1718
|
-
case "BadRequestException":
|
|
1719
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1720
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "NotFoundException":
|
|
1722
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1723
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "TooManyRequestsException":
|
|
1725
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1726
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1727
|
-
default:
|
|
1728
|
-
const parsedBody = parsedOutput.body;
|
|
1729
|
-
return throwDefaultError({
|
|
1730
|
-
output,
|
|
1731
|
-
parsedBody,
|
|
1732
|
-
errorCode,
|
|
1733
|
-
});
|
|
1734
|
-
}
|
|
1735
|
-
};
|
|
1736
1334
|
export const de_DeleteAuthorizerCommand = async (output, context) => {
|
|
1737
1335
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1738
|
-
return
|
|
1336
|
+
return de_CommandError(output, context);
|
|
1739
1337
|
}
|
|
1740
1338
|
const contents = map({
|
|
1741
1339
|
$metadata: deserializeMetadata(output),
|
|
@@ -1743,31 +1341,9 @@ export const de_DeleteAuthorizerCommand = async (output, context) => {
|
|
|
1743
1341
|
await collectBody(output.body, context);
|
|
1744
1342
|
return contents;
|
|
1745
1343
|
};
|
|
1746
|
-
const de_DeleteAuthorizerCommandError = async (output, context) => {
|
|
1747
|
-
const parsedOutput = {
|
|
1748
|
-
...output,
|
|
1749
|
-
body: await parseErrorBody(output.body, context),
|
|
1750
|
-
};
|
|
1751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1752
|
-
switch (errorCode) {
|
|
1753
|
-
case "NotFoundException":
|
|
1754
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1755
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "TooManyRequestsException":
|
|
1757
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1758
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1759
|
-
default:
|
|
1760
|
-
const parsedBody = parsedOutput.body;
|
|
1761
|
-
return throwDefaultError({
|
|
1762
|
-
output,
|
|
1763
|
-
parsedBody,
|
|
1764
|
-
errorCode,
|
|
1765
|
-
});
|
|
1766
|
-
}
|
|
1767
|
-
};
|
|
1768
1344
|
export const de_DeleteCorsConfigurationCommand = async (output, context) => {
|
|
1769
1345
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1770
|
-
return
|
|
1346
|
+
return de_CommandError(output, context);
|
|
1771
1347
|
}
|
|
1772
1348
|
const contents = map({
|
|
1773
1349
|
$metadata: deserializeMetadata(output),
|
|
@@ -1775,31 +1351,9 @@ export const de_DeleteCorsConfigurationCommand = async (output, context) => {
|
|
|
1775
1351
|
await collectBody(output.body, context);
|
|
1776
1352
|
return contents;
|
|
1777
1353
|
};
|
|
1778
|
-
const de_DeleteCorsConfigurationCommandError = async (output, context) => {
|
|
1779
|
-
const parsedOutput = {
|
|
1780
|
-
...output,
|
|
1781
|
-
body: await parseErrorBody(output.body, context),
|
|
1782
|
-
};
|
|
1783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1784
|
-
switch (errorCode) {
|
|
1785
|
-
case "NotFoundException":
|
|
1786
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1787
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "TooManyRequestsException":
|
|
1789
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1790
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1791
|
-
default:
|
|
1792
|
-
const parsedBody = parsedOutput.body;
|
|
1793
|
-
return throwDefaultError({
|
|
1794
|
-
output,
|
|
1795
|
-
parsedBody,
|
|
1796
|
-
errorCode,
|
|
1797
|
-
});
|
|
1798
|
-
}
|
|
1799
|
-
};
|
|
1800
1354
|
export const de_DeleteDeploymentCommand = async (output, context) => {
|
|
1801
1355
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1802
|
-
return
|
|
1356
|
+
return de_CommandError(output, context);
|
|
1803
1357
|
}
|
|
1804
1358
|
const contents = map({
|
|
1805
1359
|
$metadata: deserializeMetadata(output),
|
|
@@ -1807,31 +1361,9 @@ export const de_DeleteDeploymentCommand = async (output, context) => {
|
|
|
1807
1361
|
await collectBody(output.body, context);
|
|
1808
1362
|
return contents;
|
|
1809
1363
|
};
|
|
1810
|
-
const de_DeleteDeploymentCommandError = async (output, context) => {
|
|
1811
|
-
const parsedOutput = {
|
|
1812
|
-
...output,
|
|
1813
|
-
body: await parseErrorBody(output.body, context),
|
|
1814
|
-
};
|
|
1815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
|
-
switch (errorCode) {
|
|
1817
|
-
case "NotFoundException":
|
|
1818
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1819
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "TooManyRequestsException":
|
|
1821
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1822
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1823
|
-
default:
|
|
1824
|
-
const parsedBody = parsedOutput.body;
|
|
1825
|
-
return throwDefaultError({
|
|
1826
|
-
output,
|
|
1827
|
-
parsedBody,
|
|
1828
|
-
errorCode,
|
|
1829
|
-
});
|
|
1830
|
-
}
|
|
1831
|
-
};
|
|
1832
1364
|
export const de_DeleteDomainNameCommand = async (output, context) => {
|
|
1833
1365
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1834
|
-
return
|
|
1366
|
+
return de_CommandError(output, context);
|
|
1835
1367
|
}
|
|
1836
1368
|
const contents = map({
|
|
1837
1369
|
$metadata: deserializeMetadata(output),
|
|
@@ -1839,31 +1371,9 @@ export const de_DeleteDomainNameCommand = async (output, context) => {
|
|
|
1839
1371
|
await collectBody(output.body, context);
|
|
1840
1372
|
return contents;
|
|
1841
1373
|
};
|
|
1842
|
-
const de_DeleteDomainNameCommandError = async (output, context) => {
|
|
1843
|
-
const parsedOutput = {
|
|
1844
|
-
...output,
|
|
1845
|
-
body: await parseErrorBody(output.body, context),
|
|
1846
|
-
};
|
|
1847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1848
|
-
switch (errorCode) {
|
|
1849
|
-
case "NotFoundException":
|
|
1850
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1851
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "TooManyRequestsException":
|
|
1853
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1854
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1855
|
-
default:
|
|
1856
|
-
const parsedBody = parsedOutput.body;
|
|
1857
|
-
return throwDefaultError({
|
|
1858
|
-
output,
|
|
1859
|
-
parsedBody,
|
|
1860
|
-
errorCode,
|
|
1861
|
-
});
|
|
1862
|
-
}
|
|
1863
|
-
};
|
|
1864
1374
|
export const de_DeleteIntegrationCommand = async (output, context) => {
|
|
1865
1375
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1866
|
-
return
|
|
1376
|
+
return de_CommandError(output, context);
|
|
1867
1377
|
}
|
|
1868
1378
|
const contents = map({
|
|
1869
1379
|
$metadata: deserializeMetadata(output),
|
|
@@ -1871,31 +1381,9 @@ export const de_DeleteIntegrationCommand = async (output, context) => {
|
|
|
1871
1381
|
await collectBody(output.body, context);
|
|
1872
1382
|
return contents;
|
|
1873
1383
|
};
|
|
1874
|
-
const de_DeleteIntegrationCommandError = async (output, context) => {
|
|
1875
|
-
const parsedOutput = {
|
|
1876
|
-
...output,
|
|
1877
|
-
body: await parseErrorBody(output.body, context),
|
|
1878
|
-
};
|
|
1879
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1880
|
-
switch (errorCode) {
|
|
1881
|
-
case "NotFoundException":
|
|
1882
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1883
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "TooManyRequestsException":
|
|
1885
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1886
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1887
|
-
default:
|
|
1888
|
-
const parsedBody = parsedOutput.body;
|
|
1889
|
-
return throwDefaultError({
|
|
1890
|
-
output,
|
|
1891
|
-
parsedBody,
|
|
1892
|
-
errorCode,
|
|
1893
|
-
});
|
|
1894
|
-
}
|
|
1895
|
-
};
|
|
1896
1384
|
export const de_DeleteIntegrationResponseCommand = async (output, context) => {
|
|
1897
1385
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1898
|
-
return
|
|
1386
|
+
return de_CommandError(output, context);
|
|
1899
1387
|
}
|
|
1900
1388
|
const contents = map({
|
|
1901
1389
|
$metadata: deserializeMetadata(output),
|
|
@@ -1903,31 +1391,9 @@ export const de_DeleteIntegrationResponseCommand = async (output, context) => {
|
|
|
1903
1391
|
await collectBody(output.body, context);
|
|
1904
1392
|
return contents;
|
|
1905
1393
|
};
|
|
1906
|
-
const de_DeleteIntegrationResponseCommandError = async (output, context) => {
|
|
1907
|
-
const parsedOutput = {
|
|
1908
|
-
...output,
|
|
1909
|
-
body: await parseErrorBody(output.body, context),
|
|
1910
|
-
};
|
|
1911
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
|
-
switch (errorCode) {
|
|
1913
|
-
case "NotFoundException":
|
|
1914
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1915
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "TooManyRequestsException":
|
|
1917
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1918
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1919
|
-
default:
|
|
1920
|
-
const parsedBody = parsedOutput.body;
|
|
1921
|
-
return throwDefaultError({
|
|
1922
|
-
output,
|
|
1923
|
-
parsedBody,
|
|
1924
|
-
errorCode,
|
|
1925
|
-
});
|
|
1926
|
-
}
|
|
1927
|
-
};
|
|
1928
1394
|
export const de_DeleteModelCommand = async (output, context) => {
|
|
1929
1395
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1930
|
-
return
|
|
1396
|
+
return de_CommandError(output, context);
|
|
1931
1397
|
}
|
|
1932
1398
|
const contents = map({
|
|
1933
1399
|
$metadata: deserializeMetadata(output),
|
|
@@ -1935,31 +1401,9 @@ export const de_DeleteModelCommand = async (output, context) => {
|
|
|
1935
1401
|
await collectBody(output.body, context);
|
|
1936
1402
|
return contents;
|
|
1937
1403
|
};
|
|
1938
|
-
const de_DeleteModelCommandError = async (output, context) => {
|
|
1939
|
-
const parsedOutput = {
|
|
1940
|
-
...output,
|
|
1941
|
-
body: await parseErrorBody(output.body, context),
|
|
1942
|
-
};
|
|
1943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
|
-
switch (errorCode) {
|
|
1945
|
-
case "NotFoundException":
|
|
1946
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1947
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "TooManyRequestsException":
|
|
1949
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1950
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1951
|
-
default:
|
|
1952
|
-
const parsedBody = parsedOutput.body;
|
|
1953
|
-
return throwDefaultError({
|
|
1954
|
-
output,
|
|
1955
|
-
parsedBody,
|
|
1956
|
-
errorCode,
|
|
1957
|
-
});
|
|
1958
|
-
}
|
|
1959
|
-
};
|
|
1960
1404
|
export const de_DeleteRouteCommand = async (output, context) => {
|
|
1961
1405
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1962
|
-
return
|
|
1406
|
+
return de_CommandError(output, context);
|
|
1963
1407
|
}
|
|
1964
1408
|
const contents = map({
|
|
1965
1409
|
$metadata: deserializeMetadata(output),
|
|
@@ -1967,31 +1411,9 @@ export const de_DeleteRouteCommand = async (output, context) => {
|
|
|
1967
1411
|
await collectBody(output.body, context);
|
|
1968
1412
|
return contents;
|
|
1969
1413
|
};
|
|
1970
|
-
const de_DeleteRouteCommandError = async (output, context) => {
|
|
1971
|
-
const parsedOutput = {
|
|
1972
|
-
...output,
|
|
1973
|
-
body: await parseErrorBody(output.body, context),
|
|
1974
|
-
};
|
|
1975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1976
|
-
switch (errorCode) {
|
|
1977
|
-
case "NotFoundException":
|
|
1978
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1979
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "TooManyRequestsException":
|
|
1981
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1982
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1983
|
-
default:
|
|
1984
|
-
const parsedBody = parsedOutput.body;
|
|
1985
|
-
return throwDefaultError({
|
|
1986
|
-
output,
|
|
1987
|
-
parsedBody,
|
|
1988
|
-
errorCode,
|
|
1989
|
-
});
|
|
1990
|
-
}
|
|
1991
|
-
};
|
|
1992
1414
|
export const de_DeleteRouteRequestParameterCommand = async (output, context) => {
|
|
1993
1415
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1994
|
-
return
|
|
1416
|
+
return de_CommandError(output, context);
|
|
1995
1417
|
}
|
|
1996
1418
|
const contents = map({
|
|
1997
1419
|
$metadata: deserializeMetadata(output),
|
|
@@ -1999,31 +1421,9 @@ export const de_DeleteRouteRequestParameterCommand = async (output, context) =>
|
|
|
1999
1421
|
await collectBody(output.body, context);
|
|
2000
1422
|
return contents;
|
|
2001
1423
|
};
|
|
2002
|
-
const de_DeleteRouteRequestParameterCommandError = async (output, context) => {
|
|
2003
|
-
const parsedOutput = {
|
|
2004
|
-
...output,
|
|
2005
|
-
body: await parseErrorBody(output.body, context),
|
|
2006
|
-
};
|
|
2007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
|
-
switch (errorCode) {
|
|
2009
|
-
case "NotFoundException":
|
|
2010
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2011
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2012
|
-
case "TooManyRequestsException":
|
|
2013
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2014
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2015
|
-
default:
|
|
2016
|
-
const parsedBody = parsedOutput.body;
|
|
2017
|
-
return throwDefaultError({
|
|
2018
|
-
output,
|
|
2019
|
-
parsedBody,
|
|
2020
|
-
errorCode,
|
|
2021
|
-
});
|
|
2022
|
-
}
|
|
2023
|
-
};
|
|
2024
1424
|
export const de_DeleteRouteResponseCommand = async (output, context) => {
|
|
2025
1425
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2026
|
-
return
|
|
1426
|
+
return de_CommandError(output, context);
|
|
2027
1427
|
}
|
|
2028
1428
|
const contents = map({
|
|
2029
1429
|
$metadata: deserializeMetadata(output),
|
|
@@ -2031,31 +1431,9 @@ export const de_DeleteRouteResponseCommand = async (output, context) => {
|
|
|
2031
1431
|
await collectBody(output.body, context);
|
|
2032
1432
|
return contents;
|
|
2033
1433
|
};
|
|
2034
|
-
const de_DeleteRouteResponseCommandError = async (output, context) => {
|
|
2035
|
-
const parsedOutput = {
|
|
2036
|
-
...output,
|
|
2037
|
-
body: await parseErrorBody(output.body, context),
|
|
2038
|
-
};
|
|
2039
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2040
|
-
switch (errorCode) {
|
|
2041
|
-
case "NotFoundException":
|
|
2042
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2043
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2044
|
-
case "TooManyRequestsException":
|
|
2045
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2046
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2047
|
-
default:
|
|
2048
|
-
const parsedBody = parsedOutput.body;
|
|
2049
|
-
return throwDefaultError({
|
|
2050
|
-
output,
|
|
2051
|
-
parsedBody,
|
|
2052
|
-
errorCode,
|
|
2053
|
-
});
|
|
2054
|
-
}
|
|
2055
|
-
};
|
|
2056
1434
|
export const de_DeleteRouteSettingsCommand = async (output, context) => {
|
|
2057
1435
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2058
|
-
return
|
|
1436
|
+
return de_CommandError(output, context);
|
|
2059
1437
|
}
|
|
2060
1438
|
const contents = map({
|
|
2061
1439
|
$metadata: deserializeMetadata(output),
|
|
@@ -2063,31 +1441,9 @@ export const de_DeleteRouteSettingsCommand = async (output, context) => {
|
|
|
2063
1441
|
await collectBody(output.body, context);
|
|
2064
1442
|
return contents;
|
|
2065
1443
|
};
|
|
2066
|
-
const de_DeleteRouteSettingsCommandError = async (output, context) => {
|
|
2067
|
-
const parsedOutput = {
|
|
2068
|
-
...output,
|
|
2069
|
-
body: await parseErrorBody(output.body, context),
|
|
2070
|
-
};
|
|
2071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
|
-
switch (errorCode) {
|
|
2073
|
-
case "NotFoundException":
|
|
2074
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2075
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "TooManyRequestsException":
|
|
2077
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2078
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2079
|
-
default:
|
|
2080
|
-
const parsedBody = parsedOutput.body;
|
|
2081
|
-
return throwDefaultError({
|
|
2082
|
-
output,
|
|
2083
|
-
parsedBody,
|
|
2084
|
-
errorCode,
|
|
2085
|
-
});
|
|
2086
|
-
}
|
|
2087
|
-
};
|
|
2088
1444
|
export const de_DeleteStageCommand = async (output, context) => {
|
|
2089
1445
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2090
|
-
return
|
|
1446
|
+
return de_CommandError(output, context);
|
|
2091
1447
|
}
|
|
2092
1448
|
const contents = map({
|
|
2093
1449
|
$metadata: deserializeMetadata(output),
|
|
@@ -2095,31 +1451,9 @@ export const de_DeleteStageCommand = async (output, context) => {
|
|
|
2095
1451
|
await collectBody(output.body, context);
|
|
2096
1452
|
return contents;
|
|
2097
1453
|
};
|
|
2098
|
-
const de_DeleteStageCommandError = async (output, context) => {
|
|
2099
|
-
const parsedOutput = {
|
|
2100
|
-
...output,
|
|
2101
|
-
body: await parseErrorBody(output.body, context),
|
|
2102
|
-
};
|
|
2103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
|
-
switch (errorCode) {
|
|
2105
|
-
case "NotFoundException":
|
|
2106
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2107
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "TooManyRequestsException":
|
|
2109
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2110
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2111
|
-
default:
|
|
2112
|
-
const parsedBody = parsedOutput.body;
|
|
2113
|
-
return throwDefaultError({
|
|
2114
|
-
output,
|
|
2115
|
-
parsedBody,
|
|
2116
|
-
errorCode,
|
|
2117
|
-
});
|
|
2118
|
-
}
|
|
2119
|
-
};
|
|
2120
1454
|
export const de_DeleteVpcLinkCommand = async (output, context) => {
|
|
2121
1455
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2122
|
-
return
|
|
1456
|
+
return de_CommandError(output, context);
|
|
2123
1457
|
}
|
|
2124
1458
|
const contents = map({
|
|
2125
1459
|
$metadata: deserializeMetadata(output),
|
|
@@ -2127,31 +1461,9 @@ export const de_DeleteVpcLinkCommand = async (output, context) => {
|
|
|
2127
1461
|
await collectBody(output.body, context);
|
|
2128
1462
|
return contents;
|
|
2129
1463
|
};
|
|
2130
|
-
const de_DeleteVpcLinkCommandError = async (output, context) => {
|
|
2131
|
-
const parsedOutput = {
|
|
2132
|
-
...output,
|
|
2133
|
-
body: await parseErrorBody(output.body, context),
|
|
2134
|
-
};
|
|
2135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
|
-
switch (errorCode) {
|
|
2137
|
-
case "NotFoundException":
|
|
2138
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2139
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "TooManyRequestsException":
|
|
2141
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2142
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2143
|
-
default:
|
|
2144
|
-
const parsedBody = parsedOutput.body;
|
|
2145
|
-
return throwDefaultError({
|
|
2146
|
-
output,
|
|
2147
|
-
parsedBody,
|
|
2148
|
-
errorCode,
|
|
2149
|
-
});
|
|
2150
|
-
}
|
|
2151
|
-
};
|
|
2152
1464
|
export const de_ExportApiCommand = async (output, context) => {
|
|
2153
1465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2154
|
-
return
|
|
1466
|
+
return de_CommandError(output, context);
|
|
2155
1467
|
}
|
|
2156
1468
|
const contents = map({
|
|
2157
1469
|
$metadata: deserializeMetadata(output),
|
|
@@ -2160,34 +1472,9 @@ export const de_ExportApiCommand = async (output, context) => {
|
|
|
2160
1472
|
contents.body = data;
|
|
2161
1473
|
return contents;
|
|
2162
1474
|
};
|
|
2163
|
-
const de_ExportApiCommandError = async (output, context) => {
|
|
2164
|
-
const parsedOutput = {
|
|
2165
|
-
...output,
|
|
2166
|
-
body: await parseErrorBody(output.body, context),
|
|
2167
|
-
};
|
|
2168
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2169
|
-
switch (errorCode) {
|
|
2170
|
-
case "BadRequestException":
|
|
2171
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2172
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2173
|
-
case "NotFoundException":
|
|
2174
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2175
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2176
|
-
case "TooManyRequestsException":
|
|
2177
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2178
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2179
|
-
default:
|
|
2180
|
-
const parsedBody = parsedOutput.body;
|
|
2181
|
-
return throwDefaultError({
|
|
2182
|
-
output,
|
|
2183
|
-
parsedBody,
|
|
2184
|
-
errorCode,
|
|
2185
|
-
});
|
|
2186
|
-
}
|
|
2187
|
-
};
|
|
2188
1475
|
export const de_GetApiCommand = async (output, context) => {
|
|
2189
1476
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2190
|
-
return
|
|
1477
|
+
return de_CommandError(output, context);
|
|
2191
1478
|
}
|
|
2192
1479
|
const contents = map({
|
|
2193
1480
|
$metadata: deserializeMetadata(output),
|
|
@@ -2214,31 +1501,9 @@ export const de_GetApiCommand = async (output, context) => {
|
|
|
2214
1501
|
Object.assign(contents, doc);
|
|
2215
1502
|
return contents;
|
|
2216
1503
|
};
|
|
2217
|
-
const de_GetApiCommandError = async (output, context) => {
|
|
2218
|
-
const parsedOutput = {
|
|
2219
|
-
...output,
|
|
2220
|
-
body: await parseErrorBody(output.body, context),
|
|
2221
|
-
};
|
|
2222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
|
-
switch (errorCode) {
|
|
2224
|
-
case "NotFoundException":
|
|
2225
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2226
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "TooManyRequestsException":
|
|
2228
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2229
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2230
|
-
default:
|
|
2231
|
-
const parsedBody = parsedOutput.body;
|
|
2232
|
-
return throwDefaultError({
|
|
2233
|
-
output,
|
|
2234
|
-
parsedBody,
|
|
2235
|
-
errorCode,
|
|
2236
|
-
});
|
|
2237
|
-
}
|
|
2238
|
-
};
|
|
2239
1504
|
export const de_GetApiMappingCommand = async (output, context) => {
|
|
2240
1505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2241
|
-
return
|
|
1506
|
+
return de_CommandError(output, context);
|
|
2242
1507
|
}
|
|
2243
1508
|
const contents = map({
|
|
2244
1509
|
$metadata: deserializeMetadata(output),
|
|
@@ -2253,34 +1518,9 @@ export const de_GetApiMappingCommand = async (output, context) => {
|
|
|
2253
1518
|
Object.assign(contents, doc);
|
|
2254
1519
|
return contents;
|
|
2255
1520
|
};
|
|
2256
|
-
const de_GetApiMappingCommandError = async (output, context) => {
|
|
2257
|
-
const parsedOutput = {
|
|
2258
|
-
...output,
|
|
2259
|
-
body: await parseErrorBody(output.body, context),
|
|
2260
|
-
};
|
|
2261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2262
|
-
switch (errorCode) {
|
|
2263
|
-
case "BadRequestException":
|
|
2264
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2265
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2266
|
-
case "NotFoundException":
|
|
2267
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2268
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2269
|
-
case "TooManyRequestsException":
|
|
2270
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2271
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2272
|
-
default:
|
|
2273
|
-
const parsedBody = parsedOutput.body;
|
|
2274
|
-
return throwDefaultError({
|
|
2275
|
-
output,
|
|
2276
|
-
parsedBody,
|
|
2277
|
-
errorCode,
|
|
2278
|
-
});
|
|
2279
|
-
}
|
|
2280
|
-
};
|
|
2281
1521
|
export const de_GetApiMappingsCommand = async (output, context) => {
|
|
2282
1522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2283
|
-
return
|
|
1523
|
+
return de_CommandError(output, context);
|
|
2284
1524
|
}
|
|
2285
1525
|
const contents = map({
|
|
2286
1526
|
$metadata: deserializeMetadata(output),
|
|
@@ -2289,38 +1529,13 @@ export const de_GetApiMappingsCommand = async (output, context) => {
|
|
|
2289
1529
|
const doc = take(data, {
|
|
2290
1530
|
Items: [, (_) => de___listOfApiMapping(_, context), `items`],
|
|
2291
1531
|
NextToken: [, __expectString, `nextToken`],
|
|
2292
|
-
});
|
|
2293
|
-
Object.assign(contents, doc);
|
|
2294
|
-
return contents;
|
|
2295
|
-
};
|
|
2296
|
-
const de_GetApiMappingsCommandError = async (output, context) => {
|
|
2297
|
-
const parsedOutput = {
|
|
2298
|
-
...output,
|
|
2299
|
-
body: await parseErrorBody(output.body, context),
|
|
2300
|
-
};
|
|
2301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
|
-
switch (errorCode) {
|
|
2303
|
-
case "BadRequestException":
|
|
2304
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2305
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2306
|
-
case "NotFoundException":
|
|
2307
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2308
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2309
|
-
case "TooManyRequestsException":
|
|
2310
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2311
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2312
|
-
default:
|
|
2313
|
-
const parsedBody = parsedOutput.body;
|
|
2314
|
-
return throwDefaultError({
|
|
2315
|
-
output,
|
|
2316
|
-
parsedBody,
|
|
2317
|
-
errorCode,
|
|
2318
|
-
});
|
|
2319
|
-
}
|
|
1532
|
+
});
|
|
1533
|
+
Object.assign(contents, doc);
|
|
1534
|
+
return contents;
|
|
2320
1535
|
};
|
|
2321
1536
|
export const de_GetApisCommand = async (output, context) => {
|
|
2322
1537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2323
|
-
return
|
|
1538
|
+
return de_CommandError(output, context);
|
|
2324
1539
|
}
|
|
2325
1540
|
const contents = map({
|
|
2326
1541
|
$metadata: deserializeMetadata(output),
|
|
@@ -2333,34 +1548,9 @@ export const de_GetApisCommand = async (output, context) => {
|
|
|
2333
1548
|
Object.assign(contents, doc);
|
|
2334
1549
|
return contents;
|
|
2335
1550
|
};
|
|
2336
|
-
const de_GetApisCommandError = async (output, context) => {
|
|
2337
|
-
const parsedOutput = {
|
|
2338
|
-
...output,
|
|
2339
|
-
body: await parseErrorBody(output.body, context),
|
|
2340
|
-
};
|
|
2341
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2342
|
-
switch (errorCode) {
|
|
2343
|
-
case "BadRequestException":
|
|
2344
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2345
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2346
|
-
case "NotFoundException":
|
|
2347
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2348
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2349
|
-
case "TooManyRequestsException":
|
|
2350
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2351
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2352
|
-
default:
|
|
2353
|
-
const parsedBody = parsedOutput.body;
|
|
2354
|
-
return throwDefaultError({
|
|
2355
|
-
output,
|
|
2356
|
-
parsedBody,
|
|
2357
|
-
errorCode,
|
|
2358
|
-
});
|
|
2359
|
-
}
|
|
2360
|
-
};
|
|
2361
1551
|
export const de_GetAuthorizerCommand = async (output, context) => {
|
|
2362
1552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2363
|
-
return
|
|
1553
|
+
return de_CommandError(output, context);
|
|
2364
1554
|
}
|
|
2365
1555
|
const contents = map({
|
|
2366
1556
|
$metadata: deserializeMetadata(output),
|
|
@@ -2382,31 +1572,9 @@ export const de_GetAuthorizerCommand = async (output, context) => {
|
|
|
2382
1572
|
Object.assign(contents, doc);
|
|
2383
1573
|
return contents;
|
|
2384
1574
|
};
|
|
2385
|
-
const de_GetAuthorizerCommandError = async (output, context) => {
|
|
2386
|
-
const parsedOutput = {
|
|
2387
|
-
...output,
|
|
2388
|
-
body: await parseErrorBody(output.body, context),
|
|
2389
|
-
};
|
|
2390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2391
|
-
switch (errorCode) {
|
|
2392
|
-
case "NotFoundException":
|
|
2393
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2394
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "TooManyRequestsException":
|
|
2396
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2397
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2398
|
-
default:
|
|
2399
|
-
const parsedBody = parsedOutput.body;
|
|
2400
|
-
return throwDefaultError({
|
|
2401
|
-
output,
|
|
2402
|
-
parsedBody,
|
|
2403
|
-
errorCode,
|
|
2404
|
-
});
|
|
2405
|
-
}
|
|
2406
|
-
};
|
|
2407
1575
|
export const de_GetAuthorizersCommand = async (output, context) => {
|
|
2408
1576
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2409
|
-
return
|
|
1577
|
+
return de_CommandError(output, context);
|
|
2410
1578
|
}
|
|
2411
1579
|
const contents = map({
|
|
2412
1580
|
$metadata: deserializeMetadata(output),
|
|
@@ -2419,34 +1587,9 @@ export const de_GetAuthorizersCommand = async (output, context) => {
|
|
|
2419
1587
|
Object.assign(contents, doc);
|
|
2420
1588
|
return contents;
|
|
2421
1589
|
};
|
|
2422
|
-
const de_GetAuthorizersCommandError = async (output, context) => {
|
|
2423
|
-
const parsedOutput = {
|
|
2424
|
-
...output,
|
|
2425
|
-
body: await parseErrorBody(output.body, context),
|
|
2426
|
-
};
|
|
2427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
|
-
switch (errorCode) {
|
|
2429
|
-
case "BadRequestException":
|
|
2430
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2431
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "NotFoundException":
|
|
2433
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2434
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2435
|
-
case "TooManyRequestsException":
|
|
2436
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2437
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2438
|
-
default:
|
|
2439
|
-
const parsedBody = parsedOutput.body;
|
|
2440
|
-
return throwDefaultError({
|
|
2441
|
-
output,
|
|
2442
|
-
parsedBody,
|
|
2443
|
-
errorCode,
|
|
2444
|
-
});
|
|
2445
|
-
}
|
|
2446
|
-
};
|
|
2447
1590
|
export const de_GetDeploymentCommand = async (output, context) => {
|
|
2448
1591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2449
|
-
return
|
|
1592
|
+
return de_CommandError(output, context);
|
|
2450
1593
|
}
|
|
2451
1594
|
const contents = map({
|
|
2452
1595
|
$metadata: deserializeMetadata(output),
|
|
@@ -2463,31 +1606,9 @@ export const de_GetDeploymentCommand = async (output, context) => {
|
|
|
2463
1606
|
Object.assign(contents, doc);
|
|
2464
1607
|
return contents;
|
|
2465
1608
|
};
|
|
2466
|
-
const de_GetDeploymentCommandError = async (output, context) => {
|
|
2467
|
-
const parsedOutput = {
|
|
2468
|
-
...output,
|
|
2469
|
-
body: await parseErrorBody(output.body, context),
|
|
2470
|
-
};
|
|
2471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2472
|
-
switch (errorCode) {
|
|
2473
|
-
case "NotFoundException":
|
|
2474
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2475
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "TooManyRequestsException":
|
|
2477
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2478
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2479
|
-
default:
|
|
2480
|
-
const parsedBody = parsedOutput.body;
|
|
2481
|
-
return throwDefaultError({
|
|
2482
|
-
output,
|
|
2483
|
-
parsedBody,
|
|
2484
|
-
errorCode,
|
|
2485
|
-
});
|
|
2486
|
-
}
|
|
2487
|
-
};
|
|
2488
1609
|
export const de_GetDeploymentsCommand = async (output, context) => {
|
|
2489
1610
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2490
|
-
return
|
|
1611
|
+
return de_CommandError(output, context);
|
|
2491
1612
|
}
|
|
2492
1613
|
const contents = map({
|
|
2493
1614
|
$metadata: deserializeMetadata(output),
|
|
@@ -2500,34 +1621,9 @@ export const de_GetDeploymentsCommand = async (output, context) => {
|
|
|
2500
1621
|
Object.assign(contents, doc);
|
|
2501
1622
|
return contents;
|
|
2502
1623
|
};
|
|
2503
|
-
const de_GetDeploymentsCommandError = async (output, context) => {
|
|
2504
|
-
const parsedOutput = {
|
|
2505
|
-
...output,
|
|
2506
|
-
body: await parseErrorBody(output.body, context),
|
|
2507
|
-
};
|
|
2508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2509
|
-
switch (errorCode) {
|
|
2510
|
-
case "BadRequestException":
|
|
2511
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2512
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "NotFoundException":
|
|
2514
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2515
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2516
|
-
case "TooManyRequestsException":
|
|
2517
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2518
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2519
|
-
default:
|
|
2520
|
-
const parsedBody = parsedOutput.body;
|
|
2521
|
-
return throwDefaultError({
|
|
2522
|
-
output,
|
|
2523
|
-
parsedBody,
|
|
2524
|
-
errorCode,
|
|
2525
|
-
});
|
|
2526
|
-
}
|
|
2527
|
-
};
|
|
2528
1624
|
export const de_GetDomainNameCommand = async (output, context) => {
|
|
2529
1625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2530
|
-
return
|
|
1626
|
+
return de_CommandError(output, context);
|
|
2531
1627
|
}
|
|
2532
1628
|
const contents = map({
|
|
2533
1629
|
$metadata: deserializeMetadata(output),
|
|
@@ -2543,31 +1639,9 @@ export const de_GetDomainNameCommand = async (output, context) => {
|
|
|
2543
1639
|
Object.assign(contents, doc);
|
|
2544
1640
|
return contents;
|
|
2545
1641
|
};
|
|
2546
|
-
const de_GetDomainNameCommandError = async (output, context) => {
|
|
2547
|
-
const parsedOutput = {
|
|
2548
|
-
...output,
|
|
2549
|
-
body: await parseErrorBody(output.body, context),
|
|
2550
|
-
};
|
|
2551
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
|
-
switch (errorCode) {
|
|
2553
|
-
case "NotFoundException":
|
|
2554
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2555
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2556
|
-
case "TooManyRequestsException":
|
|
2557
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2558
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2559
|
-
default:
|
|
2560
|
-
const parsedBody = parsedOutput.body;
|
|
2561
|
-
return throwDefaultError({
|
|
2562
|
-
output,
|
|
2563
|
-
parsedBody,
|
|
2564
|
-
errorCode,
|
|
2565
|
-
});
|
|
2566
|
-
}
|
|
2567
|
-
};
|
|
2568
1642
|
export const de_GetDomainNamesCommand = async (output, context) => {
|
|
2569
1643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2570
|
-
return
|
|
1644
|
+
return de_CommandError(output, context);
|
|
2571
1645
|
}
|
|
2572
1646
|
const contents = map({
|
|
2573
1647
|
$metadata: deserializeMetadata(output),
|
|
@@ -2580,34 +1654,9 @@ export const de_GetDomainNamesCommand = async (output, context) => {
|
|
|
2580
1654
|
Object.assign(contents, doc);
|
|
2581
1655
|
return contents;
|
|
2582
1656
|
};
|
|
2583
|
-
const de_GetDomainNamesCommandError = async (output, context) => {
|
|
2584
|
-
const parsedOutput = {
|
|
2585
|
-
...output,
|
|
2586
|
-
body: await parseErrorBody(output.body, context),
|
|
2587
|
-
};
|
|
2588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2589
|
-
switch (errorCode) {
|
|
2590
|
-
case "BadRequestException":
|
|
2591
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2592
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "NotFoundException":
|
|
2594
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2595
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "TooManyRequestsException":
|
|
2597
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2598
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2599
|
-
default:
|
|
2600
|
-
const parsedBody = parsedOutput.body;
|
|
2601
|
-
return throwDefaultError({
|
|
2602
|
-
output,
|
|
2603
|
-
parsedBody,
|
|
2604
|
-
errorCode,
|
|
2605
|
-
});
|
|
2606
|
-
}
|
|
2607
|
-
};
|
|
2608
1657
|
export const de_GetIntegrationCommand = async (output, context) => {
|
|
2609
1658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2610
|
-
return
|
|
1659
|
+
return de_CommandError(output, context);
|
|
2611
1660
|
}
|
|
2612
1661
|
const contents = map({
|
|
2613
1662
|
$metadata: deserializeMetadata(output),
|
|
@@ -2638,31 +1687,9 @@ export const de_GetIntegrationCommand = async (output, context) => {
|
|
|
2638
1687
|
Object.assign(contents, doc);
|
|
2639
1688
|
return contents;
|
|
2640
1689
|
};
|
|
2641
|
-
const de_GetIntegrationCommandError = async (output, context) => {
|
|
2642
|
-
const parsedOutput = {
|
|
2643
|
-
...output,
|
|
2644
|
-
body: await parseErrorBody(output.body, context),
|
|
2645
|
-
};
|
|
2646
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2647
|
-
switch (errorCode) {
|
|
2648
|
-
case "NotFoundException":
|
|
2649
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2650
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2651
|
-
case "TooManyRequestsException":
|
|
2652
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2653
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2654
|
-
default:
|
|
2655
|
-
const parsedBody = parsedOutput.body;
|
|
2656
|
-
return throwDefaultError({
|
|
2657
|
-
output,
|
|
2658
|
-
parsedBody,
|
|
2659
|
-
errorCode,
|
|
2660
|
-
});
|
|
2661
|
-
}
|
|
2662
|
-
};
|
|
2663
1690
|
export const de_GetIntegrationResponseCommand = async (output, context) => {
|
|
2664
1691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2665
|
-
return
|
|
1692
|
+
return de_CommandError(output, context);
|
|
2666
1693
|
}
|
|
2667
1694
|
const contents = map({
|
|
2668
1695
|
$metadata: deserializeMetadata(output),
|
|
@@ -2679,31 +1706,9 @@ export const de_GetIntegrationResponseCommand = async (output, context) => {
|
|
|
2679
1706
|
Object.assign(contents, doc);
|
|
2680
1707
|
return contents;
|
|
2681
1708
|
};
|
|
2682
|
-
const de_GetIntegrationResponseCommandError = async (output, context) => {
|
|
2683
|
-
const parsedOutput = {
|
|
2684
|
-
...output,
|
|
2685
|
-
body: await parseErrorBody(output.body, context),
|
|
2686
|
-
};
|
|
2687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2688
|
-
switch (errorCode) {
|
|
2689
|
-
case "NotFoundException":
|
|
2690
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2691
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2692
|
-
case "TooManyRequestsException":
|
|
2693
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2694
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2695
|
-
default:
|
|
2696
|
-
const parsedBody = parsedOutput.body;
|
|
2697
|
-
return throwDefaultError({
|
|
2698
|
-
output,
|
|
2699
|
-
parsedBody,
|
|
2700
|
-
errorCode,
|
|
2701
|
-
});
|
|
2702
|
-
}
|
|
2703
|
-
};
|
|
2704
1709
|
export const de_GetIntegrationResponsesCommand = async (output, context) => {
|
|
2705
1710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2706
|
-
return
|
|
1711
|
+
return de_CommandError(output, context);
|
|
2707
1712
|
}
|
|
2708
1713
|
const contents = map({
|
|
2709
1714
|
$metadata: deserializeMetadata(output),
|
|
@@ -2716,34 +1721,9 @@ export const de_GetIntegrationResponsesCommand = async (output, context) => {
|
|
|
2716
1721
|
Object.assign(contents, doc);
|
|
2717
1722
|
return contents;
|
|
2718
1723
|
};
|
|
2719
|
-
const de_GetIntegrationResponsesCommandError = async (output, context) => {
|
|
2720
|
-
const parsedOutput = {
|
|
2721
|
-
...output,
|
|
2722
|
-
body: await parseErrorBody(output.body, context),
|
|
2723
|
-
};
|
|
2724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
|
-
switch (errorCode) {
|
|
2726
|
-
case "BadRequestException":
|
|
2727
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2728
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "NotFoundException":
|
|
2730
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2731
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "TooManyRequestsException":
|
|
2733
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2734
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2735
|
-
default:
|
|
2736
|
-
const parsedBody = parsedOutput.body;
|
|
2737
|
-
return throwDefaultError({
|
|
2738
|
-
output,
|
|
2739
|
-
parsedBody,
|
|
2740
|
-
errorCode,
|
|
2741
|
-
});
|
|
2742
|
-
}
|
|
2743
|
-
};
|
|
2744
1724
|
export const de_GetIntegrationsCommand = async (output, context) => {
|
|
2745
1725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2746
|
-
return
|
|
1726
|
+
return de_CommandError(output, context);
|
|
2747
1727
|
}
|
|
2748
1728
|
const contents = map({
|
|
2749
1729
|
$metadata: deserializeMetadata(output),
|
|
@@ -2751,39 +1731,14 @@ export const de_GetIntegrationsCommand = async (output, context) => {
|
|
|
2751
1731
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2752
1732
|
const doc = take(data, {
|
|
2753
1733
|
Items: [, (_) => de___listOfIntegration(_, context), `items`],
|
|
2754
|
-
NextToken: [, __expectString, `nextToken`],
|
|
2755
|
-
});
|
|
2756
|
-
Object.assign(contents, doc);
|
|
2757
|
-
return contents;
|
|
2758
|
-
};
|
|
2759
|
-
const de_GetIntegrationsCommandError = async (output, context) => {
|
|
2760
|
-
const parsedOutput = {
|
|
2761
|
-
...output,
|
|
2762
|
-
body: await parseErrorBody(output.body, context),
|
|
2763
|
-
};
|
|
2764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
|
-
switch (errorCode) {
|
|
2766
|
-
case "BadRequestException":
|
|
2767
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2768
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2769
|
-
case "NotFoundException":
|
|
2770
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2771
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2772
|
-
case "TooManyRequestsException":
|
|
2773
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2774
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2775
|
-
default:
|
|
2776
|
-
const parsedBody = parsedOutput.body;
|
|
2777
|
-
return throwDefaultError({
|
|
2778
|
-
output,
|
|
2779
|
-
parsedBody,
|
|
2780
|
-
errorCode,
|
|
2781
|
-
});
|
|
2782
|
-
}
|
|
1734
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1735
|
+
});
|
|
1736
|
+
Object.assign(contents, doc);
|
|
1737
|
+
return contents;
|
|
2783
1738
|
};
|
|
2784
1739
|
export const de_GetModelCommand = async (output, context) => {
|
|
2785
1740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2786
|
-
return
|
|
1741
|
+
return de_CommandError(output, context);
|
|
2787
1742
|
}
|
|
2788
1743
|
const contents = map({
|
|
2789
1744
|
$metadata: deserializeMetadata(output),
|
|
@@ -2799,31 +1754,9 @@ export const de_GetModelCommand = async (output, context) => {
|
|
|
2799
1754
|
Object.assign(contents, doc);
|
|
2800
1755
|
return contents;
|
|
2801
1756
|
};
|
|
2802
|
-
const de_GetModelCommandError = async (output, context) => {
|
|
2803
|
-
const parsedOutput = {
|
|
2804
|
-
...output,
|
|
2805
|
-
body: await parseErrorBody(output.body, context),
|
|
2806
|
-
};
|
|
2807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2808
|
-
switch (errorCode) {
|
|
2809
|
-
case "NotFoundException":
|
|
2810
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2811
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2812
|
-
case "TooManyRequestsException":
|
|
2813
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2814
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2815
|
-
default:
|
|
2816
|
-
const parsedBody = parsedOutput.body;
|
|
2817
|
-
return throwDefaultError({
|
|
2818
|
-
output,
|
|
2819
|
-
parsedBody,
|
|
2820
|
-
errorCode,
|
|
2821
|
-
});
|
|
2822
|
-
}
|
|
2823
|
-
};
|
|
2824
1757
|
export const de_GetModelsCommand = async (output, context) => {
|
|
2825
1758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2826
|
-
return
|
|
1759
|
+
return de_CommandError(output, context);
|
|
2827
1760
|
}
|
|
2828
1761
|
const contents = map({
|
|
2829
1762
|
$metadata: deserializeMetadata(output),
|
|
@@ -2836,34 +1769,9 @@ export const de_GetModelsCommand = async (output, context) => {
|
|
|
2836
1769
|
Object.assign(contents, doc);
|
|
2837
1770
|
return contents;
|
|
2838
1771
|
};
|
|
2839
|
-
const de_GetModelsCommandError = async (output, context) => {
|
|
2840
|
-
const parsedOutput = {
|
|
2841
|
-
...output,
|
|
2842
|
-
body: await parseErrorBody(output.body, context),
|
|
2843
|
-
};
|
|
2844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2845
|
-
switch (errorCode) {
|
|
2846
|
-
case "BadRequestException":
|
|
2847
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2848
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "NotFoundException":
|
|
2850
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2851
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "TooManyRequestsException":
|
|
2853
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2854
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2855
|
-
default:
|
|
2856
|
-
const parsedBody = parsedOutput.body;
|
|
2857
|
-
return throwDefaultError({
|
|
2858
|
-
output,
|
|
2859
|
-
parsedBody,
|
|
2860
|
-
errorCode,
|
|
2861
|
-
});
|
|
2862
|
-
}
|
|
2863
|
-
};
|
|
2864
1772
|
export const de_GetModelTemplateCommand = async (output, context) => {
|
|
2865
1773
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2866
|
-
return
|
|
1774
|
+
return de_CommandError(output, context);
|
|
2867
1775
|
}
|
|
2868
1776
|
const contents = map({
|
|
2869
1777
|
$metadata: deserializeMetadata(output),
|
|
@@ -2875,31 +1783,9 @@ export const de_GetModelTemplateCommand = async (output, context) => {
|
|
|
2875
1783
|
Object.assign(contents, doc);
|
|
2876
1784
|
return contents;
|
|
2877
1785
|
};
|
|
2878
|
-
const de_GetModelTemplateCommandError = async (output, context) => {
|
|
2879
|
-
const parsedOutput = {
|
|
2880
|
-
...output,
|
|
2881
|
-
body: await parseErrorBody(output.body, context),
|
|
2882
|
-
};
|
|
2883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2884
|
-
switch (errorCode) {
|
|
2885
|
-
case "NotFoundException":
|
|
2886
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2887
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "TooManyRequestsException":
|
|
2889
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2890
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2891
|
-
default:
|
|
2892
|
-
const parsedBody = parsedOutput.body;
|
|
2893
|
-
return throwDefaultError({
|
|
2894
|
-
output,
|
|
2895
|
-
parsedBody,
|
|
2896
|
-
errorCode,
|
|
2897
|
-
});
|
|
2898
|
-
}
|
|
2899
|
-
};
|
|
2900
1786
|
export const de_GetRouteCommand = async (output, context) => {
|
|
2901
1787
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2902
|
-
return
|
|
1788
|
+
return de_CommandError(output, context);
|
|
2903
1789
|
}
|
|
2904
1790
|
const contents = map({
|
|
2905
1791
|
$metadata: deserializeMetadata(output),
|
|
@@ -2923,31 +1809,9 @@ export const de_GetRouteCommand = async (output, context) => {
|
|
|
2923
1809
|
Object.assign(contents, doc);
|
|
2924
1810
|
return contents;
|
|
2925
1811
|
};
|
|
2926
|
-
const de_GetRouteCommandError = async (output, context) => {
|
|
2927
|
-
const parsedOutput = {
|
|
2928
|
-
...output,
|
|
2929
|
-
body: await parseErrorBody(output.body, context),
|
|
2930
|
-
};
|
|
2931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2932
|
-
switch (errorCode) {
|
|
2933
|
-
case "NotFoundException":
|
|
2934
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2935
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2936
|
-
case "TooManyRequestsException":
|
|
2937
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2938
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2939
|
-
default:
|
|
2940
|
-
const parsedBody = parsedOutput.body;
|
|
2941
|
-
return throwDefaultError({
|
|
2942
|
-
output,
|
|
2943
|
-
parsedBody,
|
|
2944
|
-
errorCode,
|
|
2945
|
-
});
|
|
2946
|
-
}
|
|
2947
|
-
};
|
|
2948
1812
|
export const de_GetRouteResponseCommand = async (output, context) => {
|
|
2949
1813
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2950
|
-
return
|
|
1814
|
+
return de_CommandError(output, context);
|
|
2951
1815
|
}
|
|
2952
1816
|
const contents = map({
|
|
2953
1817
|
$metadata: deserializeMetadata(output),
|
|
@@ -2963,31 +1827,9 @@ export const de_GetRouteResponseCommand = async (output, context) => {
|
|
|
2963
1827
|
Object.assign(contents, doc);
|
|
2964
1828
|
return contents;
|
|
2965
1829
|
};
|
|
2966
|
-
const de_GetRouteResponseCommandError = async (output, context) => {
|
|
2967
|
-
const parsedOutput = {
|
|
2968
|
-
...output,
|
|
2969
|
-
body: await parseErrorBody(output.body, context),
|
|
2970
|
-
};
|
|
2971
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2972
|
-
switch (errorCode) {
|
|
2973
|
-
case "NotFoundException":
|
|
2974
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2975
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2976
|
-
case "TooManyRequestsException":
|
|
2977
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2978
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2979
|
-
default:
|
|
2980
|
-
const parsedBody = parsedOutput.body;
|
|
2981
|
-
return throwDefaultError({
|
|
2982
|
-
output,
|
|
2983
|
-
parsedBody,
|
|
2984
|
-
errorCode,
|
|
2985
|
-
});
|
|
2986
|
-
}
|
|
2987
|
-
};
|
|
2988
1830
|
export const de_GetRouteResponsesCommand = async (output, context) => {
|
|
2989
1831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2990
|
-
return
|
|
1832
|
+
return de_CommandError(output, context);
|
|
2991
1833
|
}
|
|
2992
1834
|
const contents = map({
|
|
2993
1835
|
$metadata: deserializeMetadata(output),
|
|
@@ -3000,34 +1842,9 @@ export const de_GetRouteResponsesCommand = async (output, context) => {
|
|
|
3000
1842
|
Object.assign(contents, doc);
|
|
3001
1843
|
return contents;
|
|
3002
1844
|
};
|
|
3003
|
-
const de_GetRouteResponsesCommandError = async (output, context) => {
|
|
3004
|
-
const parsedOutput = {
|
|
3005
|
-
...output,
|
|
3006
|
-
body: await parseErrorBody(output.body, context),
|
|
3007
|
-
};
|
|
3008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3009
|
-
switch (errorCode) {
|
|
3010
|
-
case "BadRequestException":
|
|
3011
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3012
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3013
|
-
case "NotFoundException":
|
|
3014
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3015
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3016
|
-
case "TooManyRequestsException":
|
|
3017
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3018
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3019
|
-
default:
|
|
3020
|
-
const parsedBody = parsedOutput.body;
|
|
3021
|
-
return throwDefaultError({
|
|
3022
|
-
output,
|
|
3023
|
-
parsedBody,
|
|
3024
|
-
errorCode,
|
|
3025
|
-
});
|
|
3026
|
-
}
|
|
3027
|
-
};
|
|
3028
1845
|
export const de_GetRoutesCommand = async (output, context) => {
|
|
3029
1846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3030
|
-
return
|
|
1847
|
+
return de_CommandError(output, context);
|
|
3031
1848
|
}
|
|
3032
1849
|
const contents = map({
|
|
3033
1850
|
$metadata: deserializeMetadata(output),
|
|
@@ -3040,34 +1857,9 @@ export const de_GetRoutesCommand = async (output, context) => {
|
|
|
3040
1857
|
Object.assign(contents, doc);
|
|
3041
1858
|
return contents;
|
|
3042
1859
|
};
|
|
3043
|
-
const de_GetRoutesCommandError = async (output, context) => {
|
|
3044
|
-
const parsedOutput = {
|
|
3045
|
-
...output,
|
|
3046
|
-
body: await parseErrorBody(output.body, context),
|
|
3047
|
-
};
|
|
3048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3049
|
-
switch (errorCode) {
|
|
3050
|
-
case "BadRequestException":
|
|
3051
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3052
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3053
|
-
case "NotFoundException":
|
|
3054
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3055
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3056
|
-
case "TooManyRequestsException":
|
|
3057
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3058
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3059
|
-
default:
|
|
3060
|
-
const parsedBody = parsedOutput.body;
|
|
3061
|
-
return throwDefaultError({
|
|
3062
|
-
output,
|
|
3063
|
-
parsedBody,
|
|
3064
|
-
errorCode,
|
|
3065
|
-
});
|
|
3066
|
-
}
|
|
3067
|
-
};
|
|
3068
1860
|
export const de_GetStageCommand = async (output, context) => {
|
|
3069
1861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3070
|
-
return
|
|
1862
|
+
return de_CommandError(output, context);
|
|
3071
1863
|
}
|
|
3072
1864
|
const contents = map({
|
|
3073
1865
|
$metadata: deserializeMetadata(output),
|
|
@@ -3092,113 +1884,38 @@ export const de_GetStageCommand = async (output, context) => {
|
|
|
3092
1884
|
Object.assign(contents, doc);
|
|
3093
1885
|
return contents;
|
|
3094
1886
|
};
|
|
3095
|
-
const de_GetStageCommandError = async (output, context) => {
|
|
3096
|
-
const parsedOutput = {
|
|
3097
|
-
...output,
|
|
3098
|
-
body: await parseErrorBody(output.body, context),
|
|
3099
|
-
};
|
|
3100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3101
|
-
switch (errorCode) {
|
|
3102
|
-
case "NotFoundException":
|
|
3103
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3104
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3105
|
-
case "TooManyRequestsException":
|
|
3106
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3107
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3108
|
-
default:
|
|
3109
|
-
const parsedBody = parsedOutput.body;
|
|
3110
|
-
return throwDefaultError({
|
|
3111
|
-
output,
|
|
3112
|
-
parsedBody,
|
|
3113
|
-
errorCode,
|
|
3114
|
-
});
|
|
3115
|
-
}
|
|
3116
|
-
};
|
|
3117
1887
|
export const de_GetStagesCommand = async (output, context) => {
|
|
3118
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3119
|
-
return
|
|
3120
|
-
}
|
|
3121
|
-
const contents = map({
|
|
3122
|
-
$metadata: deserializeMetadata(output),
|
|
3123
|
-
});
|
|
3124
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3125
|
-
const doc = take(data, {
|
|
3126
|
-
Items: [, (_) => de___listOfStage(_, context), `items`],
|
|
3127
|
-
NextToken: [, __expectString, `nextToken`],
|
|
3128
|
-
});
|
|
3129
|
-
Object.assign(contents, doc);
|
|
3130
|
-
return contents;
|
|
3131
|
-
};
|
|
3132
|
-
const
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
body: await parseErrorBody(output.body, context),
|
|
3136
|
-
};
|
|
3137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3138
|
-
switch (errorCode) {
|
|
3139
|
-
case "BadRequestException":
|
|
3140
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3141
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3142
|
-
case "NotFoundException":
|
|
3143
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3144
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3145
|
-
case "TooManyRequestsException":
|
|
3146
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3147
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3148
|
-
default:
|
|
3149
|
-
const parsedBody = parsedOutput.body;
|
|
3150
|
-
return throwDefaultError({
|
|
3151
|
-
output,
|
|
3152
|
-
parsedBody,
|
|
3153
|
-
errorCode,
|
|
3154
|
-
});
|
|
3155
|
-
}
|
|
3156
|
-
};
|
|
3157
|
-
export const de_GetTagsCommand = async (output, context) => {
|
|
3158
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3159
|
-
return de_GetTagsCommandError(output, context);
|
|
3160
|
-
}
|
|
3161
|
-
const contents = map({
|
|
3162
|
-
$metadata: deserializeMetadata(output),
|
|
3163
|
-
});
|
|
3164
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3165
|
-
const doc = take(data, {
|
|
3166
|
-
Tags: [, _json, `tags`],
|
|
3167
|
-
});
|
|
3168
|
-
Object.assign(contents, doc);
|
|
3169
|
-
return contents;
|
|
3170
|
-
};
|
|
3171
|
-
const de_GetTagsCommandError = async (output, context) => {
|
|
3172
|
-
const parsedOutput = {
|
|
3173
|
-
...output,
|
|
3174
|
-
body: await parseErrorBody(output.body, context),
|
|
3175
|
-
};
|
|
3176
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3177
|
-
switch (errorCode) {
|
|
3178
|
-
case "BadRequestException":
|
|
3179
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3180
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3181
|
-
case "ConflictException":
|
|
3182
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3183
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3184
|
-
case "NotFoundException":
|
|
3185
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3186
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3187
|
-
case "TooManyRequestsException":
|
|
3188
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3189
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3190
|
-
default:
|
|
3191
|
-
const parsedBody = parsedOutput.body;
|
|
3192
|
-
return throwDefaultError({
|
|
3193
|
-
output,
|
|
3194
|
-
parsedBody,
|
|
3195
|
-
errorCode,
|
|
3196
|
-
});
|
|
1888
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1889
|
+
return de_CommandError(output, context);
|
|
1890
|
+
}
|
|
1891
|
+
const contents = map({
|
|
1892
|
+
$metadata: deserializeMetadata(output),
|
|
1893
|
+
});
|
|
1894
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1895
|
+
const doc = take(data, {
|
|
1896
|
+
Items: [, (_) => de___listOfStage(_, context), `items`],
|
|
1897
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1898
|
+
});
|
|
1899
|
+
Object.assign(contents, doc);
|
|
1900
|
+
return contents;
|
|
1901
|
+
};
|
|
1902
|
+
export const de_GetTagsCommand = async (output, context) => {
|
|
1903
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1904
|
+
return de_CommandError(output, context);
|
|
3197
1905
|
}
|
|
1906
|
+
const contents = map({
|
|
1907
|
+
$metadata: deserializeMetadata(output),
|
|
1908
|
+
});
|
|
1909
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1910
|
+
const doc = take(data, {
|
|
1911
|
+
Tags: [, _json, `tags`],
|
|
1912
|
+
});
|
|
1913
|
+
Object.assign(contents, doc);
|
|
1914
|
+
return contents;
|
|
3198
1915
|
};
|
|
3199
1916
|
export const de_GetVpcLinkCommand = async (output, context) => {
|
|
3200
1917
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3201
|
-
return
|
|
1918
|
+
return de_CommandError(output, context);
|
|
3202
1919
|
}
|
|
3203
1920
|
const contents = map({
|
|
3204
1921
|
$metadata: deserializeMetadata(output),
|
|
@@ -3218,31 +1935,9 @@ export const de_GetVpcLinkCommand = async (output, context) => {
|
|
|
3218
1935
|
Object.assign(contents, doc);
|
|
3219
1936
|
return contents;
|
|
3220
1937
|
};
|
|
3221
|
-
const de_GetVpcLinkCommandError = async (output, context) => {
|
|
3222
|
-
const parsedOutput = {
|
|
3223
|
-
...output,
|
|
3224
|
-
body: await parseErrorBody(output.body, context),
|
|
3225
|
-
};
|
|
3226
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3227
|
-
switch (errorCode) {
|
|
3228
|
-
case "NotFoundException":
|
|
3229
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3230
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3231
|
-
case "TooManyRequestsException":
|
|
3232
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3233
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3234
|
-
default:
|
|
3235
|
-
const parsedBody = parsedOutput.body;
|
|
3236
|
-
return throwDefaultError({
|
|
3237
|
-
output,
|
|
3238
|
-
parsedBody,
|
|
3239
|
-
errorCode,
|
|
3240
|
-
});
|
|
3241
|
-
}
|
|
3242
|
-
};
|
|
3243
1938
|
export const de_GetVpcLinksCommand = async (output, context) => {
|
|
3244
1939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3245
|
-
return
|
|
1940
|
+
return de_CommandError(output, context);
|
|
3246
1941
|
}
|
|
3247
1942
|
const contents = map({
|
|
3248
1943
|
$metadata: deserializeMetadata(output),
|
|
@@ -3255,31 +1950,9 @@ export const de_GetVpcLinksCommand = async (output, context) => {
|
|
|
3255
1950
|
Object.assign(contents, doc);
|
|
3256
1951
|
return contents;
|
|
3257
1952
|
};
|
|
3258
|
-
const de_GetVpcLinksCommandError = async (output, context) => {
|
|
3259
|
-
const parsedOutput = {
|
|
3260
|
-
...output,
|
|
3261
|
-
body: await parseErrorBody(output.body, context),
|
|
3262
|
-
};
|
|
3263
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3264
|
-
switch (errorCode) {
|
|
3265
|
-
case "BadRequestException":
|
|
3266
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3267
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3268
|
-
case "TooManyRequestsException":
|
|
3269
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3270
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3271
|
-
default:
|
|
3272
|
-
const parsedBody = parsedOutput.body;
|
|
3273
|
-
return throwDefaultError({
|
|
3274
|
-
output,
|
|
3275
|
-
parsedBody,
|
|
3276
|
-
errorCode,
|
|
3277
|
-
});
|
|
3278
|
-
}
|
|
3279
|
-
};
|
|
3280
1953
|
export const de_ImportApiCommand = async (output, context) => {
|
|
3281
1954
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3282
|
-
return
|
|
1955
|
+
return de_CommandError(output, context);
|
|
3283
1956
|
}
|
|
3284
1957
|
const contents = map({
|
|
3285
1958
|
$metadata: deserializeMetadata(output),
|
|
@@ -3306,37 +1979,9 @@ export const de_ImportApiCommand = async (output, context) => {
|
|
|
3306
1979
|
Object.assign(contents, doc);
|
|
3307
1980
|
return contents;
|
|
3308
1981
|
};
|
|
3309
|
-
const de_ImportApiCommandError = async (output, context) => {
|
|
3310
|
-
const parsedOutput = {
|
|
3311
|
-
...output,
|
|
3312
|
-
body: await parseErrorBody(output.body, context),
|
|
3313
|
-
};
|
|
3314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3315
|
-
switch (errorCode) {
|
|
3316
|
-
case "BadRequestException":
|
|
3317
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3318
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3319
|
-
case "ConflictException":
|
|
3320
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3321
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3322
|
-
case "NotFoundException":
|
|
3323
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3324
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3325
|
-
case "TooManyRequestsException":
|
|
3326
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3327
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3328
|
-
default:
|
|
3329
|
-
const parsedBody = parsedOutput.body;
|
|
3330
|
-
return throwDefaultError({
|
|
3331
|
-
output,
|
|
3332
|
-
parsedBody,
|
|
3333
|
-
errorCode,
|
|
3334
|
-
});
|
|
3335
|
-
}
|
|
3336
|
-
};
|
|
3337
1982
|
export const de_ReimportApiCommand = async (output, context) => {
|
|
3338
1983
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3339
|
-
return
|
|
1984
|
+
return de_CommandError(output, context);
|
|
3340
1985
|
}
|
|
3341
1986
|
const contents = map({
|
|
3342
1987
|
$metadata: deserializeMetadata(output),
|
|
@@ -3363,37 +2008,9 @@ export const de_ReimportApiCommand = async (output, context) => {
|
|
|
3363
2008
|
Object.assign(contents, doc);
|
|
3364
2009
|
return contents;
|
|
3365
2010
|
};
|
|
3366
|
-
const de_ReimportApiCommandError = async (output, context) => {
|
|
3367
|
-
const parsedOutput = {
|
|
3368
|
-
...output,
|
|
3369
|
-
body: await parseErrorBody(output.body, context),
|
|
3370
|
-
};
|
|
3371
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3372
|
-
switch (errorCode) {
|
|
3373
|
-
case "BadRequestException":
|
|
3374
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3375
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3376
|
-
case "ConflictException":
|
|
3377
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3378
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3379
|
-
case "NotFoundException":
|
|
3380
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3381
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3382
|
-
case "TooManyRequestsException":
|
|
3383
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3384
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3385
|
-
default:
|
|
3386
|
-
const parsedBody = parsedOutput.body;
|
|
3387
|
-
return throwDefaultError({
|
|
3388
|
-
output,
|
|
3389
|
-
parsedBody,
|
|
3390
|
-
errorCode,
|
|
3391
|
-
});
|
|
3392
|
-
}
|
|
3393
|
-
};
|
|
3394
2011
|
export const de_ResetAuthorizersCacheCommand = async (output, context) => {
|
|
3395
2012
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3396
|
-
return
|
|
2013
|
+
return de_CommandError(output, context);
|
|
3397
2014
|
}
|
|
3398
2015
|
const contents = map({
|
|
3399
2016
|
$metadata: deserializeMetadata(output),
|
|
@@ -3401,31 +2018,9 @@ export const de_ResetAuthorizersCacheCommand = async (output, context) => {
|
|
|
3401
2018
|
await collectBody(output.body, context);
|
|
3402
2019
|
return contents;
|
|
3403
2020
|
};
|
|
3404
|
-
const de_ResetAuthorizersCacheCommandError = async (output, context) => {
|
|
3405
|
-
const parsedOutput = {
|
|
3406
|
-
...output,
|
|
3407
|
-
body: await parseErrorBody(output.body, context),
|
|
3408
|
-
};
|
|
3409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3410
|
-
switch (errorCode) {
|
|
3411
|
-
case "NotFoundException":
|
|
3412
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3413
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "TooManyRequestsException":
|
|
3415
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3416
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3417
|
-
default:
|
|
3418
|
-
const parsedBody = parsedOutput.body;
|
|
3419
|
-
return throwDefaultError({
|
|
3420
|
-
output,
|
|
3421
|
-
parsedBody,
|
|
3422
|
-
errorCode,
|
|
3423
|
-
});
|
|
3424
|
-
}
|
|
3425
|
-
};
|
|
3426
2021
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3427
2022
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3428
|
-
return
|
|
2023
|
+
return de_CommandError(output, context);
|
|
3429
2024
|
}
|
|
3430
2025
|
const contents = map({
|
|
3431
2026
|
$metadata: deserializeMetadata(output),
|
|
@@ -3433,37 +2028,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3433
2028
|
await collectBody(output.body, context);
|
|
3434
2029
|
return contents;
|
|
3435
2030
|
};
|
|
3436
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3437
|
-
const parsedOutput = {
|
|
3438
|
-
...output,
|
|
3439
|
-
body: await parseErrorBody(output.body, context),
|
|
3440
|
-
};
|
|
3441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3442
|
-
switch (errorCode) {
|
|
3443
|
-
case "BadRequestException":
|
|
3444
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3445
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3446
|
-
case "ConflictException":
|
|
3447
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3448
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3449
|
-
case "NotFoundException":
|
|
3450
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3451
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "TooManyRequestsException":
|
|
3453
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3454
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3455
|
-
default:
|
|
3456
|
-
const parsedBody = parsedOutput.body;
|
|
3457
|
-
return throwDefaultError({
|
|
3458
|
-
output,
|
|
3459
|
-
parsedBody,
|
|
3460
|
-
errorCode,
|
|
3461
|
-
});
|
|
3462
|
-
}
|
|
3463
|
-
};
|
|
3464
2031
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3465
2032
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3466
|
-
return
|
|
2033
|
+
return de_CommandError(output, context);
|
|
3467
2034
|
}
|
|
3468
2035
|
const contents = map({
|
|
3469
2036
|
$metadata: deserializeMetadata(output),
|
|
@@ -3471,37 +2038,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3471
2038
|
await collectBody(output.body, context);
|
|
3472
2039
|
return contents;
|
|
3473
2040
|
};
|
|
3474
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3475
|
-
const parsedOutput = {
|
|
3476
|
-
...output,
|
|
3477
|
-
body: await parseErrorBody(output.body, context),
|
|
3478
|
-
};
|
|
3479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3480
|
-
switch (errorCode) {
|
|
3481
|
-
case "BadRequestException":
|
|
3482
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3483
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3484
|
-
case "ConflictException":
|
|
3485
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3486
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3487
|
-
case "NotFoundException":
|
|
3488
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3489
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3490
|
-
case "TooManyRequestsException":
|
|
3491
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3492
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3493
|
-
default:
|
|
3494
|
-
const parsedBody = parsedOutput.body;
|
|
3495
|
-
return throwDefaultError({
|
|
3496
|
-
output,
|
|
3497
|
-
parsedBody,
|
|
3498
|
-
errorCode,
|
|
3499
|
-
});
|
|
3500
|
-
}
|
|
3501
|
-
};
|
|
3502
2041
|
export const de_UpdateApiCommand = async (output, context) => {
|
|
3503
2042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3504
|
-
return
|
|
2043
|
+
return de_CommandError(output, context);
|
|
3505
2044
|
}
|
|
3506
2045
|
const contents = map({
|
|
3507
2046
|
$metadata: deserializeMetadata(output),
|
|
@@ -3528,82 +2067,26 @@ export const de_UpdateApiCommand = async (output, context) => {
|
|
|
3528
2067
|
Object.assign(contents, doc);
|
|
3529
2068
|
return contents;
|
|
3530
2069
|
};
|
|
3531
|
-
const de_UpdateApiCommandError = async (output, context) => {
|
|
3532
|
-
const parsedOutput = {
|
|
3533
|
-
...output,
|
|
3534
|
-
body: await parseErrorBody(output.body, context),
|
|
3535
|
-
};
|
|
3536
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3537
|
-
switch (errorCode) {
|
|
3538
|
-
case "BadRequestException":
|
|
3539
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3540
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3541
|
-
case "ConflictException":
|
|
3542
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3543
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3544
|
-
case "NotFoundException":
|
|
3545
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3546
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3547
|
-
case "TooManyRequestsException":
|
|
3548
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3549
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3550
|
-
default:
|
|
3551
|
-
const parsedBody = parsedOutput.body;
|
|
3552
|
-
return throwDefaultError({
|
|
3553
|
-
output,
|
|
3554
|
-
parsedBody,
|
|
3555
|
-
errorCode,
|
|
3556
|
-
});
|
|
3557
|
-
}
|
|
3558
|
-
};
|
|
3559
2070
|
export const de_UpdateApiMappingCommand = async (output, context) => {
|
|
3560
2071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3561
|
-
return
|
|
2072
|
+
return de_CommandError(output, context);
|
|
3562
2073
|
}
|
|
3563
2074
|
const contents = map({
|
|
3564
2075
|
$metadata: deserializeMetadata(output),
|
|
3565
2076
|
});
|
|
3566
2077
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3567
2078
|
const doc = take(data, {
|
|
3568
|
-
ApiId: [, __expectString, `apiId`],
|
|
3569
|
-
ApiMappingId: [, __expectString, `apiMappingId`],
|
|
3570
|
-
ApiMappingKey: [, __expectString, `apiMappingKey`],
|
|
3571
|
-
Stage: [, __expectString, `stage`],
|
|
3572
|
-
});
|
|
3573
|
-
Object.assign(contents, doc);
|
|
3574
|
-
return contents;
|
|
3575
|
-
};
|
|
3576
|
-
const de_UpdateApiMappingCommandError = async (output, context) => {
|
|
3577
|
-
const parsedOutput = {
|
|
3578
|
-
...output,
|
|
3579
|
-
body: await parseErrorBody(output.body, context),
|
|
3580
|
-
};
|
|
3581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3582
|
-
switch (errorCode) {
|
|
3583
|
-
case "BadRequestException":
|
|
3584
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3585
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3586
|
-
case "ConflictException":
|
|
3587
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3588
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3589
|
-
case "NotFoundException":
|
|
3590
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3591
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3592
|
-
case "TooManyRequestsException":
|
|
3593
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3594
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3595
|
-
default:
|
|
3596
|
-
const parsedBody = parsedOutput.body;
|
|
3597
|
-
return throwDefaultError({
|
|
3598
|
-
output,
|
|
3599
|
-
parsedBody,
|
|
3600
|
-
errorCode,
|
|
3601
|
-
});
|
|
3602
|
-
}
|
|
2079
|
+
ApiId: [, __expectString, `apiId`],
|
|
2080
|
+
ApiMappingId: [, __expectString, `apiMappingId`],
|
|
2081
|
+
ApiMappingKey: [, __expectString, `apiMappingKey`],
|
|
2082
|
+
Stage: [, __expectString, `stage`],
|
|
2083
|
+
});
|
|
2084
|
+
Object.assign(contents, doc);
|
|
2085
|
+
return contents;
|
|
3603
2086
|
};
|
|
3604
2087
|
export const de_UpdateAuthorizerCommand = async (output, context) => {
|
|
3605
2088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3606
|
-
return
|
|
2089
|
+
return de_CommandError(output, context);
|
|
3607
2090
|
}
|
|
3608
2091
|
const contents = map({
|
|
3609
2092
|
$metadata: deserializeMetadata(output),
|
|
@@ -3625,37 +2108,9 @@ export const de_UpdateAuthorizerCommand = async (output, context) => {
|
|
|
3625
2108
|
Object.assign(contents, doc);
|
|
3626
2109
|
return contents;
|
|
3627
2110
|
};
|
|
3628
|
-
const de_UpdateAuthorizerCommandError = async (output, context) => {
|
|
3629
|
-
const parsedOutput = {
|
|
3630
|
-
...output,
|
|
3631
|
-
body: await parseErrorBody(output.body, context),
|
|
3632
|
-
};
|
|
3633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3634
|
-
switch (errorCode) {
|
|
3635
|
-
case "BadRequestException":
|
|
3636
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3637
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3638
|
-
case "ConflictException":
|
|
3639
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3640
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3641
|
-
case "NotFoundException":
|
|
3642
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3643
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3644
|
-
case "TooManyRequestsException":
|
|
3645
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3646
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3647
|
-
default:
|
|
3648
|
-
const parsedBody = parsedOutput.body;
|
|
3649
|
-
return throwDefaultError({
|
|
3650
|
-
output,
|
|
3651
|
-
parsedBody,
|
|
3652
|
-
errorCode,
|
|
3653
|
-
});
|
|
3654
|
-
}
|
|
3655
|
-
};
|
|
3656
2111
|
export const de_UpdateDeploymentCommand = async (output, context) => {
|
|
3657
2112
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3658
|
-
return
|
|
2113
|
+
return de_CommandError(output, context);
|
|
3659
2114
|
}
|
|
3660
2115
|
const contents = map({
|
|
3661
2116
|
$metadata: deserializeMetadata(output),
|
|
@@ -3672,37 +2127,9 @@ export const de_UpdateDeploymentCommand = async (output, context) => {
|
|
|
3672
2127
|
Object.assign(contents, doc);
|
|
3673
2128
|
return contents;
|
|
3674
2129
|
};
|
|
3675
|
-
const de_UpdateDeploymentCommandError = async (output, context) => {
|
|
3676
|
-
const parsedOutput = {
|
|
3677
|
-
...output,
|
|
3678
|
-
body: await parseErrorBody(output.body, context),
|
|
3679
|
-
};
|
|
3680
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3681
|
-
switch (errorCode) {
|
|
3682
|
-
case "BadRequestException":
|
|
3683
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3684
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3685
|
-
case "ConflictException":
|
|
3686
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3687
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3688
|
-
case "NotFoundException":
|
|
3689
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3690
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3691
|
-
case "TooManyRequestsException":
|
|
3692
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3693
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3694
|
-
default:
|
|
3695
|
-
const parsedBody = parsedOutput.body;
|
|
3696
|
-
return throwDefaultError({
|
|
3697
|
-
output,
|
|
3698
|
-
parsedBody,
|
|
3699
|
-
errorCode,
|
|
3700
|
-
});
|
|
3701
|
-
}
|
|
3702
|
-
};
|
|
3703
2130
|
export const de_UpdateDomainNameCommand = async (output, context) => {
|
|
3704
2131
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3705
|
-
return
|
|
2132
|
+
return de_CommandError(output, context);
|
|
3706
2133
|
}
|
|
3707
2134
|
const contents = map({
|
|
3708
2135
|
$metadata: deserializeMetadata(output),
|
|
@@ -3718,37 +2145,9 @@ export const de_UpdateDomainNameCommand = async (output, context) => {
|
|
|
3718
2145
|
Object.assign(contents, doc);
|
|
3719
2146
|
return contents;
|
|
3720
2147
|
};
|
|
3721
|
-
const de_UpdateDomainNameCommandError = async (output, context) => {
|
|
3722
|
-
const parsedOutput = {
|
|
3723
|
-
...output,
|
|
3724
|
-
body: await parseErrorBody(output.body, context),
|
|
3725
|
-
};
|
|
3726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3727
|
-
switch (errorCode) {
|
|
3728
|
-
case "BadRequestException":
|
|
3729
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3730
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3731
|
-
case "ConflictException":
|
|
3732
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3733
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3734
|
-
case "NotFoundException":
|
|
3735
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3736
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3737
|
-
case "TooManyRequestsException":
|
|
3738
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3739
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3740
|
-
default:
|
|
3741
|
-
const parsedBody = parsedOutput.body;
|
|
3742
|
-
return throwDefaultError({
|
|
3743
|
-
output,
|
|
3744
|
-
parsedBody,
|
|
3745
|
-
errorCode,
|
|
3746
|
-
});
|
|
3747
|
-
}
|
|
3748
|
-
};
|
|
3749
2148
|
export const de_UpdateIntegrationCommand = async (output, context) => {
|
|
3750
2149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3751
|
-
return
|
|
2150
|
+
return de_CommandError(output, context);
|
|
3752
2151
|
}
|
|
3753
2152
|
const contents = map({
|
|
3754
2153
|
$metadata: deserializeMetadata(output),
|
|
@@ -3779,37 +2178,9 @@ export const de_UpdateIntegrationCommand = async (output, context) => {
|
|
|
3779
2178
|
Object.assign(contents, doc);
|
|
3780
2179
|
return contents;
|
|
3781
2180
|
};
|
|
3782
|
-
const de_UpdateIntegrationCommandError = async (output, context) => {
|
|
3783
|
-
const parsedOutput = {
|
|
3784
|
-
...output,
|
|
3785
|
-
body: await parseErrorBody(output.body, context),
|
|
3786
|
-
};
|
|
3787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3788
|
-
switch (errorCode) {
|
|
3789
|
-
case "BadRequestException":
|
|
3790
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3791
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3792
|
-
case "ConflictException":
|
|
3793
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3794
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3795
|
-
case "NotFoundException":
|
|
3796
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3797
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3798
|
-
case "TooManyRequestsException":
|
|
3799
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3800
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3801
|
-
default:
|
|
3802
|
-
const parsedBody = parsedOutput.body;
|
|
3803
|
-
return throwDefaultError({
|
|
3804
|
-
output,
|
|
3805
|
-
parsedBody,
|
|
3806
|
-
errorCode,
|
|
3807
|
-
});
|
|
3808
|
-
}
|
|
3809
|
-
};
|
|
3810
2181
|
export const de_UpdateIntegrationResponseCommand = async (output, context) => {
|
|
3811
2182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3812
|
-
return
|
|
2183
|
+
return de_CommandError(output, context);
|
|
3813
2184
|
}
|
|
3814
2185
|
const contents = map({
|
|
3815
2186
|
$metadata: deserializeMetadata(output),
|
|
@@ -3826,37 +2197,9 @@ export const de_UpdateIntegrationResponseCommand = async (output, context) => {
|
|
|
3826
2197
|
Object.assign(contents, doc);
|
|
3827
2198
|
return contents;
|
|
3828
2199
|
};
|
|
3829
|
-
const de_UpdateIntegrationResponseCommandError = async (output, context) => {
|
|
3830
|
-
const parsedOutput = {
|
|
3831
|
-
...output,
|
|
3832
|
-
body: await parseErrorBody(output.body, context),
|
|
3833
|
-
};
|
|
3834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3835
|
-
switch (errorCode) {
|
|
3836
|
-
case "BadRequestException":
|
|
3837
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3838
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3839
|
-
case "ConflictException":
|
|
3840
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3841
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3842
|
-
case "NotFoundException":
|
|
3843
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3844
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3845
|
-
case "TooManyRequestsException":
|
|
3846
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3847
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3848
|
-
default:
|
|
3849
|
-
const parsedBody = parsedOutput.body;
|
|
3850
|
-
return throwDefaultError({
|
|
3851
|
-
output,
|
|
3852
|
-
parsedBody,
|
|
3853
|
-
errorCode,
|
|
3854
|
-
});
|
|
3855
|
-
}
|
|
3856
|
-
};
|
|
3857
2200
|
export const de_UpdateModelCommand = async (output, context) => {
|
|
3858
2201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3859
|
-
return
|
|
2202
|
+
return de_CommandError(output, context);
|
|
3860
2203
|
}
|
|
3861
2204
|
const contents = map({
|
|
3862
2205
|
$metadata: deserializeMetadata(output),
|
|
@@ -3872,37 +2215,9 @@ export const de_UpdateModelCommand = async (output, context) => {
|
|
|
3872
2215
|
Object.assign(contents, doc);
|
|
3873
2216
|
return contents;
|
|
3874
2217
|
};
|
|
3875
|
-
const de_UpdateModelCommandError = async (output, context) => {
|
|
3876
|
-
const parsedOutput = {
|
|
3877
|
-
...output,
|
|
3878
|
-
body: await parseErrorBody(output.body, context),
|
|
3879
|
-
};
|
|
3880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3881
|
-
switch (errorCode) {
|
|
3882
|
-
case "BadRequestException":
|
|
3883
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3884
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3885
|
-
case "ConflictException":
|
|
3886
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3887
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3888
|
-
case "NotFoundException":
|
|
3889
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3890
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3891
|
-
case "TooManyRequestsException":
|
|
3892
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3893
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3894
|
-
default:
|
|
3895
|
-
const parsedBody = parsedOutput.body;
|
|
3896
|
-
return throwDefaultError({
|
|
3897
|
-
output,
|
|
3898
|
-
parsedBody,
|
|
3899
|
-
errorCode,
|
|
3900
|
-
});
|
|
3901
|
-
}
|
|
3902
|
-
};
|
|
3903
2218
|
export const de_UpdateRouteCommand = async (output, context) => {
|
|
3904
2219
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3905
|
-
return
|
|
2220
|
+
return de_CommandError(output, context);
|
|
3906
2221
|
}
|
|
3907
2222
|
const contents = map({
|
|
3908
2223
|
$metadata: deserializeMetadata(output),
|
|
@@ -3926,37 +2241,9 @@ export const de_UpdateRouteCommand = async (output, context) => {
|
|
|
3926
2241
|
Object.assign(contents, doc);
|
|
3927
2242
|
return contents;
|
|
3928
2243
|
};
|
|
3929
|
-
const de_UpdateRouteCommandError = async (output, context) => {
|
|
3930
|
-
const parsedOutput = {
|
|
3931
|
-
...output,
|
|
3932
|
-
body: await parseErrorBody(output.body, context),
|
|
3933
|
-
};
|
|
3934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3935
|
-
switch (errorCode) {
|
|
3936
|
-
case "BadRequestException":
|
|
3937
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3938
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3939
|
-
case "ConflictException":
|
|
3940
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3941
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3942
|
-
case "NotFoundException":
|
|
3943
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3944
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3945
|
-
case "TooManyRequestsException":
|
|
3946
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3947
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3948
|
-
default:
|
|
3949
|
-
const parsedBody = parsedOutput.body;
|
|
3950
|
-
return throwDefaultError({
|
|
3951
|
-
output,
|
|
3952
|
-
parsedBody,
|
|
3953
|
-
errorCode,
|
|
3954
|
-
});
|
|
3955
|
-
}
|
|
3956
|
-
};
|
|
3957
2244
|
export const de_UpdateRouteResponseCommand = async (output, context) => {
|
|
3958
2245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3959
|
-
return
|
|
2246
|
+
return de_CommandError(output, context);
|
|
3960
2247
|
}
|
|
3961
2248
|
const contents = map({
|
|
3962
2249
|
$metadata: deserializeMetadata(output),
|
|
@@ -3972,37 +2259,9 @@ export const de_UpdateRouteResponseCommand = async (output, context) => {
|
|
|
3972
2259
|
Object.assign(contents, doc);
|
|
3973
2260
|
return contents;
|
|
3974
2261
|
};
|
|
3975
|
-
const de_UpdateRouteResponseCommandError = async (output, context) => {
|
|
3976
|
-
const parsedOutput = {
|
|
3977
|
-
...output,
|
|
3978
|
-
body: await parseErrorBody(output.body, context),
|
|
3979
|
-
};
|
|
3980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3981
|
-
switch (errorCode) {
|
|
3982
|
-
case "BadRequestException":
|
|
3983
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3984
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3985
|
-
case "ConflictException":
|
|
3986
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3987
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3988
|
-
case "NotFoundException":
|
|
3989
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3990
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3991
|
-
case "TooManyRequestsException":
|
|
3992
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3993
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3994
|
-
default:
|
|
3995
|
-
const parsedBody = parsedOutput.body;
|
|
3996
|
-
return throwDefaultError({
|
|
3997
|
-
output,
|
|
3998
|
-
parsedBody,
|
|
3999
|
-
errorCode,
|
|
4000
|
-
});
|
|
4001
|
-
}
|
|
4002
|
-
};
|
|
4003
2262
|
export const de_UpdateStageCommand = async (output, context) => {
|
|
4004
2263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4005
|
-
return
|
|
2264
|
+
return de_CommandError(output, context);
|
|
4006
2265
|
}
|
|
4007
2266
|
const contents = map({
|
|
4008
2267
|
$metadata: deserializeMetadata(output),
|
|
@@ -4027,37 +2286,9 @@ export const de_UpdateStageCommand = async (output, context) => {
|
|
|
4027
2286
|
Object.assign(contents, doc);
|
|
4028
2287
|
return contents;
|
|
4029
2288
|
};
|
|
4030
|
-
const de_UpdateStageCommandError = async (output, context) => {
|
|
4031
|
-
const parsedOutput = {
|
|
4032
|
-
...output,
|
|
4033
|
-
body: await parseErrorBody(output.body, context),
|
|
4034
|
-
};
|
|
4035
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4036
|
-
switch (errorCode) {
|
|
4037
|
-
case "BadRequestException":
|
|
4038
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4039
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4040
|
-
case "ConflictException":
|
|
4041
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4042
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4043
|
-
case "NotFoundException":
|
|
4044
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4045
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4046
|
-
case "TooManyRequestsException":
|
|
4047
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4048
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4049
|
-
default:
|
|
4050
|
-
const parsedBody = parsedOutput.body;
|
|
4051
|
-
return throwDefaultError({
|
|
4052
|
-
output,
|
|
4053
|
-
parsedBody,
|
|
4054
|
-
errorCode,
|
|
4055
|
-
});
|
|
4056
|
-
}
|
|
4057
|
-
};
|
|
4058
2289
|
export const de_UpdateVpcLinkCommand = async (output, context) => {
|
|
4059
2290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4060
|
-
return
|
|
2291
|
+
return de_CommandError(output, context);
|
|
4061
2292
|
}
|
|
4062
2293
|
const contents = map({
|
|
4063
2294
|
$metadata: deserializeMetadata(output),
|
|
@@ -4077,7 +2308,7 @@ export const de_UpdateVpcLinkCommand = async (output, context) => {
|
|
|
4077
2308
|
Object.assign(contents, doc);
|
|
4078
2309
|
return contents;
|
|
4079
2310
|
};
|
|
4080
|
-
const
|
|
2311
|
+
const de_CommandError = async (output, context) => {
|
|
4081
2312
|
const parsedOutput = {
|
|
4082
2313
|
...output,
|
|
4083
2314
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4087,12 +2318,18 @@ const de_UpdateVpcLinkCommandError = async (output, context) => {
|
|
|
4087
2318
|
case "BadRequestException":
|
|
4088
2319
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4089
2320
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2321
|
+
case "ConflictException":
|
|
2322
|
+
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
2323
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4090
2324
|
case "NotFoundException":
|
|
4091
2325
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4092
2326
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4093
2327
|
case "TooManyRequestsException":
|
|
4094
2328
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4095
2329
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2330
|
+
case "AccessDeniedException":
|
|
2331
|
+
case "com.amazonaws.apigatewayv2#AccessDeniedException":
|
|
2332
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4096
2333
|
default:
|
|
4097
2334
|
const parsedBody = parsedOutput.body;
|
|
4098
2335
|
return throwDefaultError({
|