@aws-sdk/client-lambda 3.503.1 → 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 +178 -2178
- package/dist-es/protocols/Aws_restJson1.js +189 -2189
- package/package.json +3 -3
|
@@ -987,7 +987,7 @@ export const se_UpdateFunctionUrlConfigCommand = async (input, context) => {
|
|
|
987
987
|
};
|
|
988
988
|
export const de_AddLayerVersionPermissionCommand = async (output, context) => {
|
|
989
989
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
990
|
-
return
|
|
990
|
+
return de_CommandError(output, context);
|
|
991
991
|
}
|
|
992
992
|
const contents = map({
|
|
993
993
|
$metadata: deserializeMetadata(output),
|
|
@@ -1000,46 +1000,9 @@ export const de_AddLayerVersionPermissionCommand = async (output, context) => {
|
|
|
1000
1000
|
Object.assign(contents, doc);
|
|
1001
1001
|
return contents;
|
|
1002
1002
|
};
|
|
1003
|
-
const de_AddLayerVersionPermissionCommandError = async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context),
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "InvalidParameterValueException":
|
|
1011
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1012
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "PolicyLengthExceededException":
|
|
1014
|
-
case "com.amazonaws.lambda#PolicyLengthExceededException":
|
|
1015
|
-
throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "PreconditionFailedException":
|
|
1017
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
1018
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ResourceConflictException":
|
|
1020
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1021
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ResourceNotFoundException":
|
|
1023
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1024
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ServiceException":
|
|
1026
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1027
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "TooManyRequestsException":
|
|
1029
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1030
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1031
|
-
default:
|
|
1032
|
-
const parsedBody = parsedOutput.body;
|
|
1033
|
-
return throwDefaultError({
|
|
1034
|
-
output,
|
|
1035
|
-
parsedBody,
|
|
1036
|
-
errorCode,
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
};
|
|
1040
1003
|
export const de_AddPermissionCommand = async (output, context) => {
|
|
1041
1004
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1042
|
-
return
|
|
1005
|
+
return de_CommandError(output, context);
|
|
1043
1006
|
}
|
|
1044
1007
|
const contents = map({
|
|
1045
1008
|
$metadata: deserializeMetadata(output),
|
|
@@ -1051,46 +1014,9 @@ export const de_AddPermissionCommand = async (output, context) => {
|
|
|
1051
1014
|
Object.assign(contents, doc);
|
|
1052
1015
|
return contents;
|
|
1053
1016
|
};
|
|
1054
|
-
const de_AddPermissionCommandError = async (output, context) => {
|
|
1055
|
-
const parsedOutput = {
|
|
1056
|
-
...output,
|
|
1057
|
-
body: await parseErrorBody(output.body, context),
|
|
1058
|
-
};
|
|
1059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
|
-
switch (errorCode) {
|
|
1061
|
-
case "InvalidParameterValueException":
|
|
1062
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1063
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "PolicyLengthExceededException":
|
|
1065
|
-
case "com.amazonaws.lambda#PolicyLengthExceededException":
|
|
1066
|
-
throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "PreconditionFailedException":
|
|
1068
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
1069
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ResourceConflictException":
|
|
1071
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1072
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ResourceNotFoundException":
|
|
1074
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1075
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ServiceException":
|
|
1077
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1078
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "TooManyRequestsException":
|
|
1080
|
-
case "com.amazonaws.lambda#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
1017
|
export const de_CreateAliasCommand = async (output, context) => {
|
|
1092
1018
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1093
|
-
return
|
|
1019
|
+
return de_CommandError(output, context);
|
|
1094
1020
|
}
|
|
1095
1021
|
const contents = map({
|
|
1096
1022
|
$metadata: deserializeMetadata(output),
|
|
@@ -1107,40 +1033,9 @@ export const de_CreateAliasCommand = async (output, context) => {
|
|
|
1107
1033
|
Object.assign(contents, doc);
|
|
1108
1034
|
return contents;
|
|
1109
1035
|
};
|
|
1110
|
-
const de_CreateAliasCommandError = async (output, context) => {
|
|
1111
|
-
const parsedOutput = {
|
|
1112
|
-
...output,
|
|
1113
|
-
body: await parseErrorBody(output.body, context),
|
|
1114
|
-
};
|
|
1115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1116
|
-
switch (errorCode) {
|
|
1117
|
-
case "InvalidParameterValueException":
|
|
1118
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1119
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ResourceConflictException":
|
|
1121
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1122
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "ResourceNotFoundException":
|
|
1124
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1125
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "ServiceException":
|
|
1127
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1128
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "TooManyRequestsException":
|
|
1130
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1131
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1132
|
-
default:
|
|
1133
|
-
const parsedBody = parsedOutput.body;
|
|
1134
|
-
return throwDefaultError({
|
|
1135
|
-
output,
|
|
1136
|
-
parsedBody,
|
|
1137
|
-
errorCode,
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
};
|
|
1141
1036
|
export const de_CreateCodeSigningConfigCommand = async (output, context) => {
|
|
1142
1037
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1143
|
-
return
|
|
1038
|
+
return de_CommandError(output, context);
|
|
1144
1039
|
}
|
|
1145
1040
|
const contents = map({
|
|
1146
1041
|
$metadata: deserializeMetadata(output),
|
|
@@ -1152,31 +1047,9 @@ export const de_CreateCodeSigningConfigCommand = async (output, context) => {
|
|
|
1152
1047
|
Object.assign(contents, doc);
|
|
1153
1048
|
return contents;
|
|
1154
1049
|
};
|
|
1155
|
-
const de_CreateCodeSigningConfigCommandError = async (output, context) => {
|
|
1156
|
-
const parsedOutput = {
|
|
1157
|
-
...output,
|
|
1158
|
-
body: await parseErrorBody(output.body, context),
|
|
1159
|
-
};
|
|
1160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
-
switch (errorCode) {
|
|
1162
|
-
case "InvalidParameterValueException":
|
|
1163
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1164
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ServiceException":
|
|
1166
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1167
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1168
|
-
default:
|
|
1169
|
-
const parsedBody = parsedOutput.body;
|
|
1170
|
-
return throwDefaultError({
|
|
1171
|
-
output,
|
|
1172
|
-
parsedBody,
|
|
1173
|
-
errorCode,
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1176
|
-
};
|
|
1177
1050
|
export const de_CreateEventSourceMappingCommand = async (output, context) => {
|
|
1178
1051
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1179
|
-
return
|
|
1052
|
+
return de_CommandError(output, context);
|
|
1180
1053
|
}
|
|
1181
1054
|
const contents = map({
|
|
1182
1055
|
$metadata: deserializeMetadata(output),
|
|
@@ -1214,40 +1087,9 @@ export const de_CreateEventSourceMappingCommand = async (output, context) => {
|
|
|
1214
1087
|
Object.assign(contents, doc);
|
|
1215
1088
|
return contents;
|
|
1216
1089
|
};
|
|
1217
|
-
const de_CreateEventSourceMappingCommandError = async (output, context) => {
|
|
1218
|
-
const parsedOutput = {
|
|
1219
|
-
...output,
|
|
1220
|
-
body: await parseErrorBody(output.body, context),
|
|
1221
|
-
};
|
|
1222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1223
|
-
switch (errorCode) {
|
|
1224
|
-
case "InvalidParameterValueException":
|
|
1225
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1226
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "ResourceConflictException":
|
|
1228
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1229
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "ResourceNotFoundException":
|
|
1231
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1232
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "ServiceException":
|
|
1234
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1235
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "TooManyRequestsException":
|
|
1237
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1238
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1239
|
-
default:
|
|
1240
|
-
const parsedBody = parsedOutput.body;
|
|
1241
|
-
return throwDefaultError({
|
|
1242
|
-
output,
|
|
1243
|
-
parsedBody,
|
|
1244
|
-
errorCode,
|
|
1245
|
-
});
|
|
1246
|
-
}
|
|
1247
|
-
};
|
|
1248
1090
|
export const de_CreateFunctionCommand = async (output, context) => {
|
|
1249
1091
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1250
|
-
return
|
|
1092
|
+
return de_CommandError(output, context);
|
|
1251
1093
|
}
|
|
1252
1094
|
const contents = map({
|
|
1253
1095
|
$metadata: deserializeMetadata(output),
|
|
@@ -1294,52 +1136,9 @@ export const de_CreateFunctionCommand = async (output, context) => {
|
|
|
1294
1136
|
Object.assign(contents, doc);
|
|
1295
1137
|
return contents;
|
|
1296
1138
|
};
|
|
1297
|
-
const de_CreateFunctionCommandError = async (output, context) => {
|
|
1298
|
-
const parsedOutput = {
|
|
1299
|
-
...output,
|
|
1300
|
-
body: await parseErrorBody(output.body, context),
|
|
1301
|
-
};
|
|
1302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1303
|
-
switch (errorCode) {
|
|
1304
|
-
case "CodeSigningConfigNotFoundException":
|
|
1305
|
-
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
1306
|
-
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "CodeStorageExceededException":
|
|
1308
|
-
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
1309
|
-
throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "CodeVerificationFailedException":
|
|
1311
|
-
case "com.amazonaws.lambda#CodeVerificationFailedException":
|
|
1312
|
-
throw await de_CodeVerificationFailedExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "InvalidCodeSignatureException":
|
|
1314
|
-
case "com.amazonaws.lambda#InvalidCodeSignatureException":
|
|
1315
|
-
throw await de_InvalidCodeSignatureExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "InvalidParameterValueException":
|
|
1317
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1318
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "ResourceConflictException":
|
|
1320
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1321
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "ResourceNotFoundException":
|
|
1323
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1324
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ServiceException":
|
|
1326
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1327
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "TooManyRequestsException":
|
|
1329
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1330
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1331
|
-
default:
|
|
1332
|
-
const parsedBody = parsedOutput.body;
|
|
1333
|
-
return throwDefaultError({
|
|
1334
|
-
output,
|
|
1335
|
-
parsedBody,
|
|
1336
|
-
errorCode,
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
};
|
|
1340
1139
|
export const de_CreateFunctionUrlConfigCommand = async (output, context) => {
|
|
1341
1140
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1342
|
-
return
|
|
1141
|
+
return de_CommandError(output, context);
|
|
1343
1142
|
}
|
|
1344
1143
|
const contents = map({
|
|
1345
1144
|
$metadata: deserializeMetadata(output),
|
|
@@ -1356,40 +1155,9 @@ export const de_CreateFunctionUrlConfigCommand = async (output, context) => {
|
|
|
1356
1155
|
Object.assign(contents, doc);
|
|
1357
1156
|
return contents;
|
|
1358
1157
|
};
|
|
1359
|
-
const de_CreateFunctionUrlConfigCommandError = async (output, context) => {
|
|
1360
|
-
const parsedOutput = {
|
|
1361
|
-
...output,
|
|
1362
|
-
body: await parseErrorBody(output.body, context),
|
|
1363
|
-
};
|
|
1364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
-
switch (errorCode) {
|
|
1366
|
-
case "InvalidParameterValueException":
|
|
1367
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1368
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "ResourceConflictException":
|
|
1370
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1371
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "ResourceNotFoundException":
|
|
1373
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1374
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "ServiceException":
|
|
1376
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1377
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "TooManyRequestsException":
|
|
1379
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1380
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1381
|
-
default:
|
|
1382
|
-
const parsedBody = parsedOutput.body;
|
|
1383
|
-
return throwDefaultError({
|
|
1384
|
-
output,
|
|
1385
|
-
parsedBody,
|
|
1386
|
-
errorCode,
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
};
|
|
1390
1158
|
export const de_DeleteAliasCommand = async (output, context) => {
|
|
1391
1159
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1392
|
-
return
|
|
1160
|
+
return de_CommandError(output, context);
|
|
1393
1161
|
}
|
|
1394
1162
|
const contents = map({
|
|
1395
1163
|
$metadata: deserializeMetadata(output),
|
|
@@ -1397,37 +1165,9 @@ export const de_DeleteAliasCommand = async (output, context) => {
|
|
|
1397
1165
|
await collectBody(output.body, context);
|
|
1398
1166
|
return contents;
|
|
1399
1167
|
};
|
|
1400
|
-
const de_DeleteAliasCommandError = async (output, context) => {
|
|
1401
|
-
const parsedOutput = {
|
|
1402
|
-
...output,
|
|
1403
|
-
body: await parseErrorBody(output.body, context),
|
|
1404
|
-
};
|
|
1405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
|
-
switch (errorCode) {
|
|
1407
|
-
case "InvalidParameterValueException":
|
|
1408
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1409
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "ResourceConflictException":
|
|
1411
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1412
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "ServiceException":
|
|
1414
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1415
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "TooManyRequestsException":
|
|
1417
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1418
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1419
|
-
default:
|
|
1420
|
-
const parsedBody = parsedOutput.body;
|
|
1421
|
-
return throwDefaultError({
|
|
1422
|
-
output,
|
|
1423
|
-
parsedBody,
|
|
1424
|
-
errorCode,
|
|
1425
|
-
});
|
|
1426
|
-
}
|
|
1427
|
-
};
|
|
1428
1168
|
export const de_DeleteCodeSigningConfigCommand = async (output, context) => {
|
|
1429
1169
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1430
|
-
return
|
|
1170
|
+
return de_CommandError(output, context);
|
|
1431
1171
|
}
|
|
1432
1172
|
const contents = map({
|
|
1433
1173
|
$metadata: deserializeMetadata(output),
|
|
@@ -1435,37 +1175,9 @@ export const de_DeleteCodeSigningConfigCommand = async (output, context) => {
|
|
|
1435
1175
|
await collectBody(output.body, context);
|
|
1436
1176
|
return contents;
|
|
1437
1177
|
};
|
|
1438
|
-
const de_DeleteCodeSigningConfigCommandError = async (output, context) => {
|
|
1439
|
-
const parsedOutput = {
|
|
1440
|
-
...output,
|
|
1441
|
-
body: await parseErrorBody(output.body, context),
|
|
1442
|
-
};
|
|
1443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1444
|
-
switch (errorCode) {
|
|
1445
|
-
case "InvalidParameterValueException":
|
|
1446
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1447
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "ResourceConflictException":
|
|
1449
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1450
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "ResourceNotFoundException":
|
|
1452
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1453
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "ServiceException":
|
|
1455
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1456
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1457
|
-
default:
|
|
1458
|
-
const parsedBody = parsedOutput.body;
|
|
1459
|
-
return throwDefaultError({
|
|
1460
|
-
output,
|
|
1461
|
-
parsedBody,
|
|
1462
|
-
errorCode,
|
|
1463
|
-
});
|
|
1464
|
-
}
|
|
1465
|
-
};
|
|
1466
1178
|
export const de_DeleteEventSourceMappingCommand = async (output, context) => {
|
|
1467
1179
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1468
|
-
return
|
|
1180
|
+
return de_CommandError(output, context);
|
|
1469
1181
|
}
|
|
1470
1182
|
const contents = map({
|
|
1471
1183
|
$metadata: deserializeMetadata(output),
|
|
@@ -1503,43 +1215,9 @@ export const de_DeleteEventSourceMappingCommand = async (output, context) => {
|
|
|
1503
1215
|
Object.assign(contents, doc);
|
|
1504
1216
|
return contents;
|
|
1505
1217
|
};
|
|
1506
|
-
const de_DeleteEventSourceMappingCommandError = async (output, context) => {
|
|
1507
|
-
const parsedOutput = {
|
|
1508
|
-
...output,
|
|
1509
|
-
body: await parseErrorBody(output.body, context),
|
|
1510
|
-
};
|
|
1511
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
|
-
switch (errorCode) {
|
|
1513
|
-
case "InvalidParameterValueException":
|
|
1514
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1515
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "ResourceConflictException":
|
|
1517
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1518
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "ResourceInUseException":
|
|
1520
|
-
case "com.amazonaws.lambda#ResourceInUseException":
|
|
1521
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "ResourceNotFoundException":
|
|
1523
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1524
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ServiceException":
|
|
1526
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1527
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "TooManyRequestsException":
|
|
1529
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1530
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1531
|
-
default:
|
|
1532
|
-
const parsedBody = parsedOutput.body;
|
|
1533
|
-
return throwDefaultError({
|
|
1534
|
-
output,
|
|
1535
|
-
parsedBody,
|
|
1536
|
-
errorCode,
|
|
1537
|
-
});
|
|
1538
|
-
}
|
|
1539
|
-
};
|
|
1540
1218
|
export const de_DeleteFunctionCommand = async (output, context) => {
|
|
1541
1219
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1542
|
-
return
|
|
1220
|
+
return de_CommandError(output, context);
|
|
1543
1221
|
}
|
|
1544
1222
|
const contents = map({
|
|
1545
1223
|
$metadata: deserializeMetadata(output),
|
|
@@ -1547,40 +1225,9 @@ export const de_DeleteFunctionCommand = async (output, context) => {
|
|
|
1547
1225
|
await collectBody(output.body, context);
|
|
1548
1226
|
return contents;
|
|
1549
1227
|
};
|
|
1550
|
-
const de_DeleteFunctionCommandError = async (output, context) => {
|
|
1551
|
-
const parsedOutput = {
|
|
1552
|
-
...output,
|
|
1553
|
-
body: await parseErrorBody(output.body, context),
|
|
1554
|
-
};
|
|
1555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
|
-
switch (errorCode) {
|
|
1557
|
-
case "InvalidParameterValueException":
|
|
1558
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1559
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ResourceConflictException":
|
|
1561
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1562
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "ResourceNotFoundException":
|
|
1564
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1565
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "ServiceException":
|
|
1567
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1568
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "TooManyRequestsException":
|
|
1570
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1571
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1572
|
-
default:
|
|
1573
|
-
const parsedBody = parsedOutput.body;
|
|
1574
|
-
return throwDefaultError({
|
|
1575
|
-
output,
|
|
1576
|
-
parsedBody,
|
|
1577
|
-
errorCode,
|
|
1578
|
-
});
|
|
1579
|
-
}
|
|
1580
|
-
};
|
|
1581
1228
|
export const de_DeleteFunctionCodeSigningConfigCommand = async (output, context) => {
|
|
1582
1229
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1583
|
-
return
|
|
1230
|
+
return de_CommandError(output, context);
|
|
1584
1231
|
}
|
|
1585
1232
|
const contents = map({
|
|
1586
1233
|
$metadata: deserializeMetadata(output),
|
|
@@ -1588,43 +1235,9 @@ export const de_DeleteFunctionCodeSigningConfigCommand = async (output, context)
|
|
|
1588
1235
|
await collectBody(output.body, context);
|
|
1589
1236
|
return contents;
|
|
1590
1237
|
};
|
|
1591
|
-
const de_DeleteFunctionCodeSigningConfigCommandError = async (output, context) => {
|
|
1592
|
-
const parsedOutput = {
|
|
1593
|
-
...output,
|
|
1594
|
-
body: await parseErrorBody(output.body, context),
|
|
1595
|
-
};
|
|
1596
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
|
-
switch (errorCode) {
|
|
1598
|
-
case "CodeSigningConfigNotFoundException":
|
|
1599
|
-
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
1600
|
-
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "InvalidParameterValueException":
|
|
1602
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1603
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "ResourceConflictException":
|
|
1605
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1606
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ResourceNotFoundException":
|
|
1608
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1609
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "ServiceException":
|
|
1611
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1612
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "TooManyRequestsException":
|
|
1614
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1615
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1616
|
-
default:
|
|
1617
|
-
const parsedBody = parsedOutput.body;
|
|
1618
|
-
return throwDefaultError({
|
|
1619
|
-
output,
|
|
1620
|
-
parsedBody,
|
|
1621
|
-
errorCode,
|
|
1622
|
-
});
|
|
1623
|
-
}
|
|
1624
|
-
};
|
|
1625
1238
|
export const de_DeleteFunctionConcurrencyCommand = async (output, context) => {
|
|
1626
1239
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1627
|
-
return
|
|
1240
|
+
return de_CommandError(output, context);
|
|
1628
1241
|
}
|
|
1629
1242
|
const contents = map({
|
|
1630
1243
|
$metadata: deserializeMetadata(output),
|
|
@@ -1632,40 +1245,9 @@ export const de_DeleteFunctionConcurrencyCommand = async (output, context) => {
|
|
|
1632
1245
|
await collectBody(output.body, context);
|
|
1633
1246
|
return contents;
|
|
1634
1247
|
};
|
|
1635
|
-
const de_DeleteFunctionConcurrencyCommandError = async (output, context) => {
|
|
1636
|
-
const parsedOutput = {
|
|
1637
|
-
...output,
|
|
1638
|
-
body: await parseErrorBody(output.body, context),
|
|
1639
|
-
};
|
|
1640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
|
-
switch (errorCode) {
|
|
1642
|
-
case "InvalidParameterValueException":
|
|
1643
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1644
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ResourceConflictException":
|
|
1646
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1647
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "ResourceNotFoundException":
|
|
1649
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1650
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "ServiceException":
|
|
1652
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1653
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "TooManyRequestsException":
|
|
1655
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1656
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1657
|
-
default:
|
|
1658
|
-
const parsedBody = parsedOutput.body;
|
|
1659
|
-
return throwDefaultError({
|
|
1660
|
-
output,
|
|
1661
|
-
parsedBody,
|
|
1662
|
-
errorCode,
|
|
1663
|
-
});
|
|
1664
|
-
}
|
|
1665
|
-
};
|
|
1666
1248
|
export const de_DeleteFunctionEventInvokeConfigCommand = async (output, context) => {
|
|
1667
1249
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1668
|
-
return
|
|
1250
|
+
return de_CommandError(output, context);
|
|
1669
1251
|
}
|
|
1670
1252
|
const contents = map({
|
|
1671
1253
|
$metadata: deserializeMetadata(output),
|
|
@@ -1673,40 +1255,9 @@ export const de_DeleteFunctionEventInvokeConfigCommand = async (output, context)
|
|
|
1673
1255
|
await collectBody(output.body, context);
|
|
1674
1256
|
return contents;
|
|
1675
1257
|
};
|
|
1676
|
-
const de_DeleteFunctionEventInvokeConfigCommandError = async (output, context) => {
|
|
1677
|
-
const parsedOutput = {
|
|
1678
|
-
...output,
|
|
1679
|
-
body: await parseErrorBody(output.body, context),
|
|
1680
|
-
};
|
|
1681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1682
|
-
switch (errorCode) {
|
|
1683
|
-
case "InvalidParameterValueException":
|
|
1684
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1685
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1686
|
-
case "ResourceConflictException":
|
|
1687
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1688
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1689
|
-
case "ResourceNotFoundException":
|
|
1690
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1691
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "ServiceException":
|
|
1693
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1694
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "TooManyRequestsException":
|
|
1696
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1697
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1698
|
-
default:
|
|
1699
|
-
const parsedBody = parsedOutput.body;
|
|
1700
|
-
return throwDefaultError({
|
|
1701
|
-
output,
|
|
1702
|
-
parsedBody,
|
|
1703
|
-
errorCode,
|
|
1704
|
-
});
|
|
1705
|
-
}
|
|
1706
|
-
};
|
|
1707
1258
|
export const de_DeleteFunctionUrlConfigCommand = async (output, context) => {
|
|
1708
1259
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1709
|
-
return
|
|
1260
|
+
return de_CommandError(output, context);
|
|
1710
1261
|
}
|
|
1711
1262
|
const contents = map({
|
|
1712
1263
|
$metadata: deserializeMetadata(output),
|
|
@@ -1714,37 +1265,9 @@ export const de_DeleteFunctionUrlConfigCommand = async (output, context) => {
|
|
|
1714
1265
|
await collectBody(output.body, context);
|
|
1715
1266
|
return contents;
|
|
1716
1267
|
};
|
|
1717
|
-
const de_DeleteFunctionUrlConfigCommandError = async (output, context) => {
|
|
1718
|
-
const parsedOutput = {
|
|
1719
|
-
...output,
|
|
1720
|
-
body: await parseErrorBody(output.body, context),
|
|
1721
|
-
};
|
|
1722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
-
switch (errorCode) {
|
|
1724
|
-
case "ResourceConflictException":
|
|
1725
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1726
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "ResourceNotFoundException":
|
|
1728
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1729
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ServiceException":
|
|
1731
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1732
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "TooManyRequestsException":
|
|
1734
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1735
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1736
|
-
default:
|
|
1737
|
-
const parsedBody = parsedOutput.body;
|
|
1738
|
-
return throwDefaultError({
|
|
1739
|
-
output,
|
|
1740
|
-
parsedBody,
|
|
1741
|
-
errorCode,
|
|
1742
|
-
});
|
|
1743
|
-
}
|
|
1744
|
-
};
|
|
1745
1268
|
export const de_DeleteLayerVersionCommand = async (output, context) => {
|
|
1746
1269
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1747
|
-
return
|
|
1270
|
+
return de_CommandError(output, context);
|
|
1748
1271
|
}
|
|
1749
1272
|
const contents = map({
|
|
1750
1273
|
$metadata: deserializeMetadata(output),
|
|
@@ -1752,31 +1275,9 @@ export const de_DeleteLayerVersionCommand = async (output, context) => {
|
|
|
1752
1275
|
await collectBody(output.body, context);
|
|
1753
1276
|
return contents;
|
|
1754
1277
|
};
|
|
1755
|
-
const de_DeleteLayerVersionCommandError = async (output, context) => {
|
|
1756
|
-
const parsedOutput = {
|
|
1757
|
-
...output,
|
|
1758
|
-
body: await parseErrorBody(output.body, context),
|
|
1759
|
-
};
|
|
1760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1761
|
-
switch (errorCode) {
|
|
1762
|
-
case "ServiceException":
|
|
1763
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1764
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "TooManyRequestsException":
|
|
1766
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1767
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1768
|
-
default:
|
|
1769
|
-
const parsedBody = parsedOutput.body;
|
|
1770
|
-
return throwDefaultError({
|
|
1771
|
-
output,
|
|
1772
|
-
parsedBody,
|
|
1773
|
-
errorCode,
|
|
1774
|
-
});
|
|
1775
|
-
}
|
|
1776
|
-
};
|
|
1777
1278
|
export const de_DeleteProvisionedConcurrencyConfigCommand = async (output, context) => {
|
|
1778
1279
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1779
|
-
return
|
|
1280
|
+
return de_CommandError(output, context);
|
|
1780
1281
|
}
|
|
1781
1282
|
const contents = map({
|
|
1782
1283
|
$metadata: deserializeMetadata(output),
|
|
@@ -1784,40 +1285,9 @@ export const de_DeleteProvisionedConcurrencyConfigCommand = async (output, conte
|
|
|
1784
1285
|
await collectBody(output.body, context);
|
|
1785
1286
|
return contents;
|
|
1786
1287
|
};
|
|
1787
|
-
const de_DeleteProvisionedConcurrencyConfigCommandError = async (output, context) => {
|
|
1788
|
-
const parsedOutput = {
|
|
1789
|
-
...output,
|
|
1790
|
-
body: await parseErrorBody(output.body, context),
|
|
1791
|
-
};
|
|
1792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
|
-
switch (errorCode) {
|
|
1794
|
-
case "InvalidParameterValueException":
|
|
1795
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1796
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "ResourceConflictException":
|
|
1798
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
1799
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "ResourceNotFoundException":
|
|
1801
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1802
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1803
|
-
case "ServiceException":
|
|
1804
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1805
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1806
|
-
case "TooManyRequestsException":
|
|
1807
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1808
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1809
|
-
default:
|
|
1810
|
-
const parsedBody = parsedOutput.body;
|
|
1811
|
-
return throwDefaultError({
|
|
1812
|
-
output,
|
|
1813
|
-
parsedBody,
|
|
1814
|
-
errorCode,
|
|
1815
|
-
});
|
|
1816
|
-
}
|
|
1817
|
-
};
|
|
1818
1288
|
export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
1819
1289
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1820
|
-
return
|
|
1290
|
+
return de_CommandError(output, context);
|
|
1821
1291
|
}
|
|
1822
1292
|
const contents = map({
|
|
1823
1293
|
$metadata: deserializeMetadata(output),
|
|
@@ -1830,31 +1300,9 @@ export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
|
1830
1300
|
Object.assign(contents, doc);
|
|
1831
1301
|
return contents;
|
|
1832
1302
|
};
|
|
1833
|
-
const de_GetAccountSettingsCommandError = async (output, context) => {
|
|
1834
|
-
const parsedOutput = {
|
|
1835
|
-
...output,
|
|
1836
|
-
body: await parseErrorBody(output.body, context),
|
|
1837
|
-
};
|
|
1838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
|
-
switch (errorCode) {
|
|
1840
|
-
case "ServiceException":
|
|
1841
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1842
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "TooManyRequestsException":
|
|
1844
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1845
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1846
|
-
default:
|
|
1847
|
-
const parsedBody = parsedOutput.body;
|
|
1848
|
-
return throwDefaultError({
|
|
1849
|
-
output,
|
|
1850
|
-
parsedBody,
|
|
1851
|
-
errorCode,
|
|
1852
|
-
});
|
|
1853
|
-
}
|
|
1854
|
-
};
|
|
1855
1303
|
export const de_GetAliasCommand = async (output, context) => {
|
|
1856
1304
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1857
|
-
return
|
|
1305
|
+
return de_CommandError(output, context);
|
|
1858
1306
|
}
|
|
1859
1307
|
const contents = map({
|
|
1860
1308
|
$metadata: deserializeMetadata(output),
|
|
@@ -1871,37 +1319,9 @@ export const de_GetAliasCommand = async (output, context) => {
|
|
|
1871
1319
|
Object.assign(contents, doc);
|
|
1872
1320
|
return contents;
|
|
1873
1321
|
};
|
|
1874
|
-
const de_GetAliasCommandError = 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 "InvalidParameterValueException":
|
|
1882
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1883
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "ResourceNotFoundException":
|
|
1885
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1886
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "ServiceException":
|
|
1888
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1889
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "TooManyRequestsException":
|
|
1891
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1892
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1893
|
-
default:
|
|
1894
|
-
const parsedBody = parsedOutput.body;
|
|
1895
|
-
return throwDefaultError({
|
|
1896
|
-
output,
|
|
1897
|
-
parsedBody,
|
|
1898
|
-
errorCode,
|
|
1899
|
-
});
|
|
1900
|
-
}
|
|
1901
|
-
};
|
|
1902
1322
|
export const de_GetCodeSigningConfigCommand = async (output, context) => {
|
|
1903
1323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1904
|
-
return
|
|
1324
|
+
return de_CommandError(output, context);
|
|
1905
1325
|
}
|
|
1906
1326
|
const contents = map({
|
|
1907
1327
|
$metadata: deserializeMetadata(output),
|
|
@@ -1913,34 +1333,9 @@ export const de_GetCodeSigningConfigCommand = async (output, context) => {
|
|
|
1913
1333
|
Object.assign(contents, doc);
|
|
1914
1334
|
return contents;
|
|
1915
1335
|
};
|
|
1916
|
-
const de_GetCodeSigningConfigCommandError = async (output, context) => {
|
|
1917
|
-
const parsedOutput = {
|
|
1918
|
-
...output,
|
|
1919
|
-
body: await parseErrorBody(output.body, context),
|
|
1920
|
-
};
|
|
1921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1922
|
-
switch (errorCode) {
|
|
1923
|
-
case "InvalidParameterValueException":
|
|
1924
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1925
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "ResourceNotFoundException":
|
|
1927
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1928
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "ServiceException":
|
|
1930
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1931
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1932
|
-
default:
|
|
1933
|
-
const parsedBody = parsedOutput.body;
|
|
1934
|
-
return throwDefaultError({
|
|
1935
|
-
output,
|
|
1936
|
-
parsedBody,
|
|
1937
|
-
errorCode,
|
|
1938
|
-
});
|
|
1939
|
-
}
|
|
1940
|
-
};
|
|
1941
1336
|
export const de_GetEventSourceMappingCommand = async (output, context) => {
|
|
1942
1337
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1943
|
-
return
|
|
1338
|
+
return de_CommandError(output, context);
|
|
1944
1339
|
}
|
|
1945
1340
|
const contents = map({
|
|
1946
1341
|
$metadata: deserializeMetadata(output),
|
|
@@ -1978,37 +1373,9 @@ export const de_GetEventSourceMappingCommand = async (output, context) => {
|
|
|
1978
1373
|
Object.assign(contents, doc);
|
|
1979
1374
|
return contents;
|
|
1980
1375
|
};
|
|
1981
|
-
const de_GetEventSourceMappingCommandError = async (output, context) => {
|
|
1982
|
-
const parsedOutput = {
|
|
1983
|
-
...output,
|
|
1984
|
-
body: await parseErrorBody(output.body, context),
|
|
1985
|
-
};
|
|
1986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1987
|
-
switch (errorCode) {
|
|
1988
|
-
case "InvalidParameterValueException":
|
|
1989
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
1990
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1991
|
-
case "ResourceNotFoundException":
|
|
1992
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
1993
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1994
|
-
case "ServiceException":
|
|
1995
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
1996
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "TooManyRequestsException":
|
|
1998
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
1999
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2000
|
-
default:
|
|
2001
|
-
const parsedBody = parsedOutput.body;
|
|
2002
|
-
return throwDefaultError({
|
|
2003
|
-
output,
|
|
2004
|
-
parsedBody,
|
|
2005
|
-
errorCode,
|
|
2006
|
-
});
|
|
2007
|
-
}
|
|
2008
|
-
};
|
|
2009
1376
|
export const de_GetFunctionCommand = async (output, context) => {
|
|
2010
1377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2011
|
-
return
|
|
1378
|
+
return de_CommandError(output, context);
|
|
2012
1379
|
}
|
|
2013
1380
|
const contents = map({
|
|
2014
1381
|
$metadata: deserializeMetadata(output),
|
|
@@ -2023,37 +1390,9 @@ export const de_GetFunctionCommand = async (output, context) => {
|
|
|
2023
1390
|
Object.assign(contents, doc);
|
|
2024
1391
|
return contents;
|
|
2025
1392
|
};
|
|
2026
|
-
const de_GetFunctionCommandError = async (output, context) => {
|
|
2027
|
-
const parsedOutput = {
|
|
2028
|
-
...output,
|
|
2029
|
-
body: await parseErrorBody(output.body, context),
|
|
2030
|
-
};
|
|
2031
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2032
|
-
switch (errorCode) {
|
|
2033
|
-
case "InvalidParameterValueException":
|
|
2034
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2035
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2036
|
-
case "ResourceNotFoundException":
|
|
2037
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2038
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2039
|
-
case "ServiceException":
|
|
2040
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2041
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "TooManyRequestsException":
|
|
2043
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2044
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2045
|
-
default:
|
|
2046
|
-
const parsedBody = parsedOutput.body;
|
|
2047
|
-
return throwDefaultError({
|
|
2048
|
-
output,
|
|
2049
|
-
parsedBody,
|
|
2050
|
-
errorCode,
|
|
2051
|
-
});
|
|
2052
|
-
}
|
|
2053
|
-
};
|
|
2054
1393
|
export const de_GetFunctionCodeSigningConfigCommand = async (output, context) => {
|
|
2055
1394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2056
|
-
return
|
|
1395
|
+
return de_CommandError(output, context);
|
|
2057
1396
|
}
|
|
2058
1397
|
const contents = map({
|
|
2059
1398
|
$metadata: deserializeMetadata(output),
|
|
@@ -2066,37 +1405,9 @@ export const de_GetFunctionCodeSigningConfigCommand = async (output, context) =>
|
|
|
2066
1405
|
Object.assign(contents, doc);
|
|
2067
1406
|
return contents;
|
|
2068
1407
|
};
|
|
2069
|
-
const de_GetFunctionCodeSigningConfigCommandError = async (output, context) => {
|
|
2070
|
-
const parsedOutput = {
|
|
2071
|
-
...output,
|
|
2072
|
-
body: await parseErrorBody(output.body, context),
|
|
2073
|
-
};
|
|
2074
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2075
|
-
switch (errorCode) {
|
|
2076
|
-
case "InvalidParameterValueException":
|
|
2077
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2078
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2079
|
-
case "ResourceNotFoundException":
|
|
2080
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2081
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2082
|
-
case "ServiceException":
|
|
2083
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2084
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2085
|
-
case "TooManyRequestsException":
|
|
2086
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2087
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2088
|
-
default:
|
|
2089
|
-
const parsedBody = parsedOutput.body;
|
|
2090
|
-
return throwDefaultError({
|
|
2091
|
-
output,
|
|
2092
|
-
parsedBody,
|
|
2093
|
-
errorCode,
|
|
2094
|
-
});
|
|
2095
|
-
}
|
|
2096
|
-
};
|
|
2097
1408
|
export const de_GetFunctionConcurrencyCommand = async (output, context) => {
|
|
2098
1409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2099
|
-
return
|
|
1410
|
+
return de_CommandError(output, context);
|
|
2100
1411
|
}
|
|
2101
1412
|
const contents = map({
|
|
2102
1413
|
$metadata: deserializeMetadata(output),
|
|
@@ -2108,37 +1419,9 @@ export const de_GetFunctionConcurrencyCommand = async (output, context) => {
|
|
|
2108
1419
|
Object.assign(contents, doc);
|
|
2109
1420
|
return contents;
|
|
2110
1421
|
};
|
|
2111
|
-
const de_GetFunctionConcurrencyCommandError = async (output, context) => {
|
|
2112
|
-
const parsedOutput = {
|
|
2113
|
-
...output,
|
|
2114
|
-
body: await parseErrorBody(output.body, context),
|
|
2115
|
-
};
|
|
2116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
|
-
switch (errorCode) {
|
|
2118
|
-
case "InvalidParameterValueException":
|
|
2119
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2120
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "ResourceNotFoundException":
|
|
2122
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2123
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "ServiceException":
|
|
2125
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2126
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2127
|
-
case "TooManyRequestsException":
|
|
2128
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2129
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2130
|
-
default:
|
|
2131
|
-
const parsedBody = parsedOutput.body;
|
|
2132
|
-
return throwDefaultError({
|
|
2133
|
-
output,
|
|
2134
|
-
parsedBody,
|
|
2135
|
-
errorCode,
|
|
2136
|
-
});
|
|
2137
|
-
}
|
|
2138
|
-
};
|
|
2139
1422
|
export const de_GetFunctionConfigurationCommand = async (output, context) => {
|
|
2140
1423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2141
|
-
return
|
|
1424
|
+
return de_CommandError(output, context);
|
|
2142
1425
|
}
|
|
2143
1426
|
const contents = map({
|
|
2144
1427
|
$metadata: deserializeMetadata(output),
|
|
@@ -2185,37 +1468,9 @@ export const de_GetFunctionConfigurationCommand = async (output, context) => {
|
|
|
2185
1468
|
Object.assign(contents, doc);
|
|
2186
1469
|
return contents;
|
|
2187
1470
|
};
|
|
2188
|
-
const de_GetFunctionConfigurationCommandError = async (output, context) => {
|
|
2189
|
-
const parsedOutput = {
|
|
2190
|
-
...output,
|
|
2191
|
-
body: await parseErrorBody(output.body, context),
|
|
2192
|
-
};
|
|
2193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
-
switch (errorCode) {
|
|
2195
|
-
case "InvalidParameterValueException":
|
|
2196
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2197
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2198
|
-
case "ResourceNotFoundException":
|
|
2199
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2200
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2201
|
-
case "ServiceException":
|
|
2202
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2203
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "TooManyRequestsException":
|
|
2205
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2206
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2207
|
-
default:
|
|
2208
|
-
const parsedBody = parsedOutput.body;
|
|
2209
|
-
return throwDefaultError({
|
|
2210
|
-
output,
|
|
2211
|
-
parsedBody,
|
|
2212
|
-
errorCode,
|
|
2213
|
-
});
|
|
2214
|
-
}
|
|
2215
|
-
};
|
|
2216
1471
|
export const de_GetFunctionEventInvokeConfigCommand = async (output, context) => {
|
|
2217
1472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2218
|
-
return
|
|
1473
|
+
return de_CommandError(output, context);
|
|
2219
1474
|
}
|
|
2220
1475
|
const contents = map({
|
|
2221
1476
|
$metadata: deserializeMetadata(output),
|
|
@@ -2231,37 +1486,9 @@ export const de_GetFunctionEventInvokeConfigCommand = async (output, context) =>
|
|
|
2231
1486
|
Object.assign(contents, doc);
|
|
2232
1487
|
return contents;
|
|
2233
1488
|
};
|
|
2234
|
-
const de_GetFunctionEventInvokeConfigCommandError = async (output, context) => {
|
|
2235
|
-
const parsedOutput = {
|
|
2236
|
-
...output,
|
|
2237
|
-
body: await parseErrorBody(output.body, context),
|
|
2238
|
-
};
|
|
2239
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2240
|
-
switch (errorCode) {
|
|
2241
|
-
case "InvalidParameterValueException":
|
|
2242
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2243
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "ResourceNotFoundException":
|
|
2245
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2246
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ServiceException":
|
|
2248
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2249
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "TooManyRequestsException":
|
|
2251
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2252
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2253
|
-
default:
|
|
2254
|
-
const parsedBody = parsedOutput.body;
|
|
2255
|
-
return throwDefaultError({
|
|
2256
|
-
output,
|
|
2257
|
-
parsedBody,
|
|
2258
|
-
errorCode,
|
|
2259
|
-
});
|
|
2260
|
-
}
|
|
2261
|
-
};
|
|
2262
1489
|
export const de_GetFunctionUrlConfigCommand = async (output, context) => {
|
|
2263
1490
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2264
|
-
return
|
|
1491
|
+
return de_CommandError(output, context);
|
|
2265
1492
|
}
|
|
2266
1493
|
const contents = map({
|
|
2267
1494
|
$metadata: deserializeMetadata(output),
|
|
@@ -2279,37 +1506,9 @@ export const de_GetFunctionUrlConfigCommand = async (output, context) => {
|
|
|
2279
1506
|
Object.assign(contents, doc);
|
|
2280
1507
|
return contents;
|
|
2281
1508
|
};
|
|
2282
|
-
const de_GetFunctionUrlConfigCommandError = async (output, context) => {
|
|
2283
|
-
const parsedOutput = {
|
|
2284
|
-
...output,
|
|
2285
|
-
body: await parseErrorBody(output.body, context),
|
|
2286
|
-
};
|
|
2287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2288
|
-
switch (errorCode) {
|
|
2289
|
-
case "InvalidParameterValueException":
|
|
2290
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2291
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "ResourceNotFoundException":
|
|
2293
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2294
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "ServiceException":
|
|
2296
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2297
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "TooManyRequestsException":
|
|
2299
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2300
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2301
|
-
default:
|
|
2302
|
-
const parsedBody = parsedOutput.body;
|
|
2303
|
-
return throwDefaultError({
|
|
2304
|
-
output,
|
|
2305
|
-
parsedBody,
|
|
2306
|
-
errorCode,
|
|
2307
|
-
});
|
|
2308
|
-
}
|
|
2309
|
-
};
|
|
2310
1509
|
export const de_GetLayerVersionCommand = async (output, context) => {
|
|
2311
1510
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2312
|
-
return
|
|
1511
|
+
return de_CommandError(output, context);
|
|
2313
1512
|
}
|
|
2314
1513
|
const contents = map({
|
|
2315
1514
|
$metadata: deserializeMetadata(output),
|
|
@@ -2329,37 +1528,9 @@ export const de_GetLayerVersionCommand = async (output, context) => {
|
|
|
2329
1528
|
Object.assign(contents, doc);
|
|
2330
1529
|
return contents;
|
|
2331
1530
|
};
|
|
2332
|
-
const de_GetLayerVersionCommandError = async (output, context) => {
|
|
2333
|
-
const parsedOutput = {
|
|
2334
|
-
...output,
|
|
2335
|
-
body: await parseErrorBody(output.body, context),
|
|
2336
|
-
};
|
|
2337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2338
|
-
switch (errorCode) {
|
|
2339
|
-
case "InvalidParameterValueException":
|
|
2340
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2341
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "ResourceNotFoundException":
|
|
2343
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2344
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2345
|
-
case "ServiceException":
|
|
2346
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2347
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2348
|
-
case "TooManyRequestsException":
|
|
2349
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2350
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2351
|
-
default:
|
|
2352
|
-
const parsedBody = parsedOutput.body;
|
|
2353
|
-
return throwDefaultError({
|
|
2354
|
-
output,
|
|
2355
|
-
parsedBody,
|
|
2356
|
-
errorCode,
|
|
2357
|
-
});
|
|
2358
|
-
}
|
|
2359
|
-
};
|
|
2360
1531
|
export const de_GetLayerVersionByArnCommand = async (output, context) => {
|
|
2361
1532
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2362
|
-
return
|
|
1533
|
+
return de_CommandError(output, context);
|
|
2363
1534
|
}
|
|
2364
1535
|
const contents = map({
|
|
2365
1536
|
$metadata: deserializeMetadata(output),
|
|
@@ -2379,37 +1550,9 @@ export const de_GetLayerVersionByArnCommand = async (output, context) => {
|
|
|
2379
1550
|
Object.assign(contents, doc);
|
|
2380
1551
|
return contents;
|
|
2381
1552
|
};
|
|
2382
|
-
const de_GetLayerVersionByArnCommandError = async (output, context) => {
|
|
2383
|
-
const parsedOutput = {
|
|
2384
|
-
...output,
|
|
2385
|
-
body: await parseErrorBody(output.body, context),
|
|
2386
|
-
};
|
|
2387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2388
|
-
switch (errorCode) {
|
|
2389
|
-
case "InvalidParameterValueException":
|
|
2390
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2391
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "ResourceNotFoundException":
|
|
2393
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2394
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "ServiceException":
|
|
2396
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2397
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2398
|
-
case "TooManyRequestsException":
|
|
2399
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2400
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2401
|
-
default:
|
|
2402
|
-
const parsedBody = parsedOutput.body;
|
|
2403
|
-
return throwDefaultError({
|
|
2404
|
-
output,
|
|
2405
|
-
parsedBody,
|
|
2406
|
-
errorCode,
|
|
2407
|
-
});
|
|
2408
|
-
}
|
|
2409
|
-
};
|
|
2410
1553
|
export const de_GetLayerVersionPolicyCommand = async (output, context) => {
|
|
2411
1554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2412
|
-
return
|
|
1555
|
+
return de_CommandError(output, context);
|
|
2413
1556
|
}
|
|
2414
1557
|
const contents = map({
|
|
2415
1558
|
$metadata: deserializeMetadata(output),
|
|
@@ -2422,37 +1565,9 @@ export const de_GetLayerVersionPolicyCommand = async (output, context) => {
|
|
|
2422
1565
|
Object.assign(contents, doc);
|
|
2423
1566
|
return contents;
|
|
2424
1567
|
};
|
|
2425
|
-
const de_GetLayerVersionPolicyCommandError = async (output, context) => {
|
|
2426
|
-
const parsedOutput = {
|
|
2427
|
-
...output,
|
|
2428
|
-
body: await parseErrorBody(output.body, context),
|
|
2429
|
-
};
|
|
2430
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2431
|
-
switch (errorCode) {
|
|
2432
|
-
case "InvalidParameterValueException":
|
|
2433
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2434
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2435
|
-
case "ResourceNotFoundException":
|
|
2436
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2437
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2438
|
-
case "ServiceException":
|
|
2439
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2440
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2441
|
-
case "TooManyRequestsException":
|
|
2442
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2443
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2444
|
-
default:
|
|
2445
|
-
const parsedBody = parsedOutput.body;
|
|
2446
|
-
return throwDefaultError({
|
|
2447
|
-
output,
|
|
2448
|
-
parsedBody,
|
|
2449
|
-
errorCode,
|
|
2450
|
-
});
|
|
2451
|
-
}
|
|
2452
|
-
};
|
|
2453
1568
|
export const de_GetPolicyCommand = async (output, context) => {
|
|
2454
1569
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2455
|
-
return
|
|
1570
|
+
return de_CommandError(output, context);
|
|
2456
1571
|
}
|
|
2457
1572
|
const contents = map({
|
|
2458
1573
|
$metadata: deserializeMetadata(output),
|
|
@@ -2465,37 +1580,9 @@ export const de_GetPolicyCommand = async (output, context) => {
|
|
|
2465
1580
|
Object.assign(contents, doc);
|
|
2466
1581
|
return contents;
|
|
2467
1582
|
};
|
|
2468
|
-
const de_GetPolicyCommandError = async (output, context) => {
|
|
2469
|
-
const parsedOutput = {
|
|
2470
|
-
...output,
|
|
2471
|
-
body: await parseErrorBody(output.body, context),
|
|
2472
|
-
};
|
|
2473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2474
|
-
switch (errorCode) {
|
|
2475
|
-
case "InvalidParameterValueException":
|
|
2476
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2477
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2478
|
-
case "ResourceNotFoundException":
|
|
2479
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2481
|
-
case "ServiceException":
|
|
2482
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2483
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2484
|
-
case "TooManyRequestsException":
|
|
2485
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2486
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2487
|
-
default:
|
|
2488
|
-
const parsedBody = parsedOutput.body;
|
|
2489
|
-
return throwDefaultError({
|
|
2490
|
-
output,
|
|
2491
|
-
parsedBody,
|
|
2492
|
-
errorCode,
|
|
2493
|
-
});
|
|
2494
|
-
}
|
|
2495
|
-
};
|
|
2496
1583
|
export const de_GetProvisionedConcurrencyConfigCommand = async (output, context) => {
|
|
2497
1584
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2498
|
-
return
|
|
1585
|
+
return de_CommandError(output, context);
|
|
2499
1586
|
}
|
|
2500
1587
|
const contents = map({
|
|
2501
1588
|
$metadata: deserializeMetadata(output),
|
|
@@ -2512,40 +1599,9 @@ export const de_GetProvisionedConcurrencyConfigCommand = async (output, context)
|
|
|
2512
1599
|
Object.assign(contents, doc);
|
|
2513
1600
|
return contents;
|
|
2514
1601
|
};
|
|
2515
|
-
const de_GetProvisionedConcurrencyConfigCommandError = async (output, context) => {
|
|
2516
|
-
const parsedOutput = {
|
|
2517
|
-
...output,
|
|
2518
|
-
body: await parseErrorBody(output.body, context),
|
|
2519
|
-
};
|
|
2520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2521
|
-
switch (errorCode) {
|
|
2522
|
-
case "InvalidParameterValueException":
|
|
2523
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2524
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2525
|
-
case "ProvisionedConcurrencyConfigNotFoundException":
|
|
2526
|
-
case "com.amazonaws.lambda#ProvisionedConcurrencyConfigNotFoundException":
|
|
2527
|
-
throw await de_ProvisionedConcurrencyConfigNotFoundExceptionRes(parsedOutput, context);
|
|
2528
|
-
case "ResourceNotFoundException":
|
|
2529
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2530
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "ServiceException":
|
|
2532
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2533
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "TooManyRequestsException":
|
|
2535
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2536
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2537
|
-
default:
|
|
2538
|
-
const parsedBody = parsedOutput.body;
|
|
2539
|
-
return throwDefaultError({
|
|
2540
|
-
output,
|
|
2541
|
-
parsedBody,
|
|
2542
|
-
errorCode,
|
|
2543
|
-
});
|
|
2544
|
-
}
|
|
2545
|
-
};
|
|
2546
1602
|
export const de_GetRuntimeManagementConfigCommand = async (output, context) => {
|
|
2547
1603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2548
|
-
return
|
|
1604
|
+
return de_CommandError(output, context);
|
|
2549
1605
|
}
|
|
2550
1606
|
const contents = map({
|
|
2551
1607
|
$metadata: deserializeMetadata(output),
|
|
@@ -2559,37 +1615,9 @@ export const de_GetRuntimeManagementConfigCommand = async (output, context) => {
|
|
|
2559
1615
|
Object.assign(contents, doc);
|
|
2560
1616
|
return contents;
|
|
2561
1617
|
};
|
|
2562
|
-
const de_GetRuntimeManagementConfigCommandError = async (output, context) => {
|
|
2563
|
-
const parsedOutput = {
|
|
2564
|
-
...output,
|
|
2565
|
-
body: await parseErrorBody(output.body, context),
|
|
2566
|
-
};
|
|
2567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2568
|
-
switch (errorCode) {
|
|
2569
|
-
case "InvalidParameterValueException":
|
|
2570
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2571
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2572
|
-
case "ResourceNotFoundException":
|
|
2573
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2574
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2575
|
-
case "ServiceException":
|
|
2576
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2577
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "TooManyRequestsException":
|
|
2579
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2580
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2581
|
-
default:
|
|
2582
|
-
const parsedBody = parsedOutput.body;
|
|
2583
|
-
return throwDefaultError({
|
|
2584
|
-
output,
|
|
2585
|
-
parsedBody,
|
|
2586
|
-
errorCode,
|
|
2587
|
-
});
|
|
2588
|
-
}
|
|
2589
|
-
};
|
|
2590
1618
|
export const de_InvokeCommand = async (output, context) => {
|
|
2591
1619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2592
|
-
return
|
|
1620
|
+
return de_CommandError(output, context);
|
|
2593
1621
|
}
|
|
2594
1622
|
const contents = map({
|
|
2595
1623
|
$metadata: deserializeMetadata(output),
|
|
@@ -2604,115 +1632,9 @@ export const de_InvokeCommand = async (output, context) => {
|
|
|
2604
1632
|
});
|
|
2605
1633
|
return contents;
|
|
2606
1634
|
};
|
|
2607
|
-
const de_InvokeCommandError = async (output, context) => {
|
|
2608
|
-
const parsedOutput = {
|
|
2609
|
-
...output,
|
|
2610
|
-
body: await parseErrorBody(output.body, context),
|
|
2611
|
-
};
|
|
2612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2613
|
-
switch (errorCode) {
|
|
2614
|
-
case "EC2AccessDeniedException":
|
|
2615
|
-
case "com.amazonaws.lambda#EC2AccessDeniedException":
|
|
2616
|
-
throw await de_EC2AccessDeniedExceptionRes(parsedOutput, context);
|
|
2617
|
-
case "EC2ThrottledException":
|
|
2618
|
-
case "com.amazonaws.lambda#EC2ThrottledException":
|
|
2619
|
-
throw await de_EC2ThrottledExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "EC2UnexpectedException":
|
|
2621
|
-
case "com.amazonaws.lambda#EC2UnexpectedException":
|
|
2622
|
-
throw await de_EC2UnexpectedExceptionRes(parsedOutput, context);
|
|
2623
|
-
case "EFSIOException":
|
|
2624
|
-
case "com.amazonaws.lambda#EFSIOException":
|
|
2625
|
-
throw await de_EFSIOExceptionRes(parsedOutput, context);
|
|
2626
|
-
case "EFSMountConnectivityException":
|
|
2627
|
-
case "com.amazonaws.lambda#EFSMountConnectivityException":
|
|
2628
|
-
throw await de_EFSMountConnectivityExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "EFSMountFailureException":
|
|
2630
|
-
case "com.amazonaws.lambda#EFSMountFailureException":
|
|
2631
|
-
throw await de_EFSMountFailureExceptionRes(parsedOutput, context);
|
|
2632
|
-
case "EFSMountTimeoutException":
|
|
2633
|
-
case "com.amazonaws.lambda#EFSMountTimeoutException":
|
|
2634
|
-
throw await de_EFSMountTimeoutExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "ENILimitReachedException":
|
|
2636
|
-
case "com.amazonaws.lambda#ENILimitReachedException":
|
|
2637
|
-
throw await de_ENILimitReachedExceptionRes(parsedOutput, context);
|
|
2638
|
-
case "InvalidParameterValueException":
|
|
2639
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2640
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2641
|
-
case "InvalidRequestContentException":
|
|
2642
|
-
case "com.amazonaws.lambda#InvalidRequestContentException":
|
|
2643
|
-
throw await de_InvalidRequestContentExceptionRes(parsedOutput, context);
|
|
2644
|
-
case "InvalidRuntimeException":
|
|
2645
|
-
case "com.amazonaws.lambda#InvalidRuntimeException":
|
|
2646
|
-
throw await de_InvalidRuntimeExceptionRes(parsedOutput, context);
|
|
2647
|
-
case "InvalidSecurityGroupIDException":
|
|
2648
|
-
case "com.amazonaws.lambda#InvalidSecurityGroupIDException":
|
|
2649
|
-
throw await de_InvalidSecurityGroupIDExceptionRes(parsedOutput, context);
|
|
2650
|
-
case "InvalidSubnetIDException":
|
|
2651
|
-
case "com.amazonaws.lambda#InvalidSubnetIDException":
|
|
2652
|
-
throw await de_InvalidSubnetIDExceptionRes(parsedOutput, context);
|
|
2653
|
-
case "InvalidZipFileException":
|
|
2654
|
-
case "com.amazonaws.lambda#InvalidZipFileException":
|
|
2655
|
-
throw await de_InvalidZipFileExceptionRes(parsedOutput, context);
|
|
2656
|
-
case "KMSAccessDeniedException":
|
|
2657
|
-
case "com.amazonaws.lambda#KMSAccessDeniedException":
|
|
2658
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
2659
|
-
case "KMSDisabledException":
|
|
2660
|
-
case "com.amazonaws.lambda#KMSDisabledException":
|
|
2661
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
2662
|
-
case "KMSInvalidStateException":
|
|
2663
|
-
case "com.amazonaws.lambda#KMSInvalidStateException":
|
|
2664
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2665
|
-
case "KMSNotFoundException":
|
|
2666
|
-
case "com.amazonaws.lambda#KMSNotFoundException":
|
|
2667
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
2668
|
-
case "RecursiveInvocationException":
|
|
2669
|
-
case "com.amazonaws.lambda#RecursiveInvocationException":
|
|
2670
|
-
throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "RequestTooLargeException":
|
|
2672
|
-
case "com.amazonaws.lambda#RequestTooLargeException":
|
|
2673
|
-
throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "ResourceConflictException":
|
|
2675
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2676
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ResourceNotFoundException":
|
|
2678
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2679
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2680
|
-
case "ResourceNotReadyException":
|
|
2681
|
-
case "com.amazonaws.lambda#ResourceNotReadyException":
|
|
2682
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "ServiceException":
|
|
2684
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2685
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2686
|
-
case "SnapStartException":
|
|
2687
|
-
case "com.amazonaws.lambda#SnapStartException":
|
|
2688
|
-
throw await de_SnapStartExceptionRes(parsedOutput, context);
|
|
2689
|
-
case "SnapStartNotReadyException":
|
|
2690
|
-
case "com.amazonaws.lambda#SnapStartNotReadyException":
|
|
2691
|
-
throw await de_SnapStartNotReadyExceptionRes(parsedOutput, context);
|
|
2692
|
-
case "SnapStartTimeoutException":
|
|
2693
|
-
case "com.amazonaws.lambda#SnapStartTimeoutException":
|
|
2694
|
-
throw await de_SnapStartTimeoutExceptionRes(parsedOutput, context);
|
|
2695
|
-
case "SubnetIPAddressLimitReachedException":
|
|
2696
|
-
case "com.amazonaws.lambda#SubnetIPAddressLimitReachedException":
|
|
2697
|
-
throw await de_SubnetIPAddressLimitReachedExceptionRes(parsedOutput, context);
|
|
2698
|
-
case "TooManyRequestsException":
|
|
2699
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2700
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2701
|
-
case "UnsupportedMediaTypeException":
|
|
2702
|
-
case "com.amazonaws.lambda#UnsupportedMediaTypeException":
|
|
2703
|
-
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
|
|
2704
|
-
default:
|
|
2705
|
-
const parsedBody = parsedOutput.body;
|
|
2706
|
-
return throwDefaultError({
|
|
2707
|
-
output,
|
|
2708
|
-
parsedBody,
|
|
2709
|
-
errorCode,
|
|
2710
|
-
});
|
|
2711
|
-
}
|
|
2712
|
-
};
|
|
2713
1635
|
export const de_InvokeAsyncCommand = async (output, context) => {
|
|
2714
1636
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2715
|
-
return
|
|
1637
|
+
return de_CommandError(output, context);
|
|
2716
1638
|
}
|
|
2717
1639
|
const contents = map({
|
|
2718
1640
|
$metadata: deserializeMetadata(output),
|
|
@@ -2723,40 +1645,9 @@ export const de_InvokeAsyncCommand = async (output, context) => {
|
|
|
2723
1645
|
await collectBody(output.body, context);
|
|
2724
1646
|
return contents;
|
|
2725
1647
|
};
|
|
2726
|
-
const de_InvokeAsyncCommandError = async (output, context) => {
|
|
2727
|
-
const parsedOutput = {
|
|
2728
|
-
...output,
|
|
2729
|
-
body: await parseErrorBody(output.body, context),
|
|
2730
|
-
};
|
|
2731
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2732
|
-
switch (errorCode) {
|
|
2733
|
-
case "InvalidRequestContentException":
|
|
2734
|
-
case "com.amazonaws.lambda#InvalidRequestContentException":
|
|
2735
|
-
throw await de_InvalidRequestContentExceptionRes(parsedOutput, context);
|
|
2736
|
-
case "InvalidRuntimeException":
|
|
2737
|
-
case "com.amazonaws.lambda#InvalidRuntimeException":
|
|
2738
|
-
throw await de_InvalidRuntimeExceptionRes(parsedOutput, context);
|
|
2739
|
-
case "ResourceConflictException":
|
|
2740
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2741
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2742
|
-
case "ResourceNotFoundException":
|
|
2743
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2744
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2745
|
-
case "ServiceException":
|
|
2746
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2747
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2748
|
-
default:
|
|
2749
|
-
const parsedBody = parsedOutput.body;
|
|
2750
|
-
return throwDefaultError({
|
|
2751
|
-
output,
|
|
2752
|
-
parsedBody,
|
|
2753
|
-
errorCode,
|
|
2754
|
-
});
|
|
2755
|
-
}
|
|
2756
|
-
};
|
|
2757
1648
|
export const de_InvokeWithResponseStreamCommand = async (output, context) => {
|
|
2758
1649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2759
|
-
return
|
|
1650
|
+
return de_CommandError(output, context);
|
|
2760
1651
|
}
|
|
2761
1652
|
const contents = map({
|
|
2762
1653
|
$metadata: deserializeMetadata(output),
|
|
@@ -2770,115 +1661,9 @@ export const de_InvokeWithResponseStreamCommand = async (output, context) => {
|
|
|
2770
1661
|
});
|
|
2771
1662
|
return contents;
|
|
2772
1663
|
};
|
|
2773
|
-
const de_InvokeWithResponseStreamCommandError = async (output, context) => {
|
|
2774
|
-
const parsedOutput = {
|
|
2775
|
-
...output,
|
|
2776
|
-
body: await parseErrorBody(output.body, context),
|
|
2777
|
-
};
|
|
2778
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2779
|
-
switch (errorCode) {
|
|
2780
|
-
case "EC2AccessDeniedException":
|
|
2781
|
-
case "com.amazonaws.lambda#EC2AccessDeniedException":
|
|
2782
|
-
throw await de_EC2AccessDeniedExceptionRes(parsedOutput, context);
|
|
2783
|
-
case "EC2ThrottledException":
|
|
2784
|
-
case "com.amazonaws.lambda#EC2ThrottledException":
|
|
2785
|
-
throw await de_EC2ThrottledExceptionRes(parsedOutput, context);
|
|
2786
|
-
case "EC2UnexpectedException":
|
|
2787
|
-
case "com.amazonaws.lambda#EC2UnexpectedException":
|
|
2788
|
-
throw await de_EC2UnexpectedExceptionRes(parsedOutput, context);
|
|
2789
|
-
case "EFSIOException":
|
|
2790
|
-
case "com.amazonaws.lambda#EFSIOException":
|
|
2791
|
-
throw await de_EFSIOExceptionRes(parsedOutput, context);
|
|
2792
|
-
case "EFSMountConnectivityException":
|
|
2793
|
-
case "com.amazonaws.lambda#EFSMountConnectivityException":
|
|
2794
|
-
throw await de_EFSMountConnectivityExceptionRes(parsedOutput, context);
|
|
2795
|
-
case "EFSMountFailureException":
|
|
2796
|
-
case "com.amazonaws.lambda#EFSMountFailureException":
|
|
2797
|
-
throw await de_EFSMountFailureExceptionRes(parsedOutput, context);
|
|
2798
|
-
case "EFSMountTimeoutException":
|
|
2799
|
-
case "com.amazonaws.lambda#EFSMountTimeoutException":
|
|
2800
|
-
throw await de_EFSMountTimeoutExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "ENILimitReachedException":
|
|
2802
|
-
case "com.amazonaws.lambda#ENILimitReachedException":
|
|
2803
|
-
throw await de_ENILimitReachedExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "InvalidParameterValueException":
|
|
2805
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2806
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "InvalidRequestContentException":
|
|
2808
|
-
case "com.amazonaws.lambda#InvalidRequestContentException":
|
|
2809
|
-
throw await de_InvalidRequestContentExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "InvalidRuntimeException":
|
|
2811
|
-
case "com.amazonaws.lambda#InvalidRuntimeException":
|
|
2812
|
-
throw await de_InvalidRuntimeExceptionRes(parsedOutput, context);
|
|
2813
|
-
case "InvalidSecurityGroupIDException":
|
|
2814
|
-
case "com.amazonaws.lambda#InvalidSecurityGroupIDException":
|
|
2815
|
-
throw await de_InvalidSecurityGroupIDExceptionRes(parsedOutput, context);
|
|
2816
|
-
case "InvalidSubnetIDException":
|
|
2817
|
-
case "com.amazonaws.lambda#InvalidSubnetIDException":
|
|
2818
|
-
throw await de_InvalidSubnetIDExceptionRes(parsedOutput, context);
|
|
2819
|
-
case "InvalidZipFileException":
|
|
2820
|
-
case "com.amazonaws.lambda#InvalidZipFileException":
|
|
2821
|
-
throw await de_InvalidZipFileExceptionRes(parsedOutput, context);
|
|
2822
|
-
case "KMSAccessDeniedException":
|
|
2823
|
-
case "com.amazonaws.lambda#KMSAccessDeniedException":
|
|
2824
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
2825
|
-
case "KMSDisabledException":
|
|
2826
|
-
case "com.amazonaws.lambda#KMSDisabledException":
|
|
2827
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "KMSInvalidStateException":
|
|
2829
|
-
case "com.amazonaws.lambda#KMSInvalidStateException":
|
|
2830
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "KMSNotFoundException":
|
|
2832
|
-
case "com.amazonaws.lambda#KMSNotFoundException":
|
|
2833
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "RecursiveInvocationException":
|
|
2835
|
-
case "com.amazonaws.lambda#RecursiveInvocationException":
|
|
2836
|
-
throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "RequestTooLargeException":
|
|
2838
|
-
case "com.amazonaws.lambda#RequestTooLargeException":
|
|
2839
|
-
throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "ResourceConflictException":
|
|
2841
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2842
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "ResourceNotFoundException":
|
|
2844
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2845
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "ResourceNotReadyException":
|
|
2847
|
-
case "com.amazonaws.lambda#ResourceNotReadyException":
|
|
2848
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "ServiceException":
|
|
2850
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2851
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "SnapStartException":
|
|
2853
|
-
case "com.amazonaws.lambda#SnapStartException":
|
|
2854
|
-
throw await de_SnapStartExceptionRes(parsedOutput, context);
|
|
2855
|
-
case "SnapStartNotReadyException":
|
|
2856
|
-
case "com.amazonaws.lambda#SnapStartNotReadyException":
|
|
2857
|
-
throw await de_SnapStartNotReadyExceptionRes(parsedOutput, context);
|
|
2858
|
-
case "SnapStartTimeoutException":
|
|
2859
|
-
case "com.amazonaws.lambda#SnapStartTimeoutException":
|
|
2860
|
-
throw await de_SnapStartTimeoutExceptionRes(parsedOutput, context);
|
|
2861
|
-
case "SubnetIPAddressLimitReachedException":
|
|
2862
|
-
case "com.amazonaws.lambda#SubnetIPAddressLimitReachedException":
|
|
2863
|
-
throw await de_SubnetIPAddressLimitReachedExceptionRes(parsedOutput, context);
|
|
2864
|
-
case "TooManyRequestsException":
|
|
2865
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2866
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2867
|
-
case "UnsupportedMediaTypeException":
|
|
2868
|
-
case "com.amazonaws.lambda#UnsupportedMediaTypeException":
|
|
2869
|
-
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
|
|
2870
|
-
default:
|
|
2871
|
-
const parsedBody = parsedOutput.body;
|
|
2872
|
-
return throwDefaultError({
|
|
2873
|
-
output,
|
|
2874
|
-
parsedBody,
|
|
2875
|
-
errorCode,
|
|
2876
|
-
});
|
|
2877
|
-
}
|
|
2878
|
-
};
|
|
2879
1664
|
export const de_ListAliasesCommand = async (output, context) => {
|
|
2880
1665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2881
|
-
return
|
|
1666
|
+
return de_CommandError(output, context);
|
|
2882
1667
|
}
|
|
2883
1668
|
const contents = map({
|
|
2884
1669
|
$metadata: deserializeMetadata(output),
|
|
@@ -2891,37 +1676,9 @@ export const de_ListAliasesCommand = async (output, context) => {
|
|
|
2891
1676
|
Object.assign(contents, doc);
|
|
2892
1677
|
return contents;
|
|
2893
1678
|
};
|
|
2894
|
-
const de_ListAliasesCommandError = async (output, context) => {
|
|
2895
|
-
const parsedOutput = {
|
|
2896
|
-
...output,
|
|
2897
|
-
body: await parseErrorBody(output.body, context),
|
|
2898
|
-
};
|
|
2899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2900
|
-
switch (errorCode) {
|
|
2901
|
-
case "InvalidParameterValueException":
|
|
2902
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2903
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2904
|
-
case "ResourceNotFoundException":
|
|
2905
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2906
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2907
|
-
case "ServiceException":
|
|
2908
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2909
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2910
|
-
case "TooManyRequestsException":
|
|
2911
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2912
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2913
|
-
default:
|
|
2914
|
-
const parsedBody = parsedOutput.body;
|
|
2915
|
-
return throwDefaultError({
|
|
2916
|
-
output,
|
|
2917
|
-
parsedBody,
|
|
2918
|
-
errorCode,
|
|
2919
|
-
});
|
|
2920
|
-
}
|
|
2921
|
-
};
|
|
2922
1679
|
export const de_ListCodeSigningConfigsCommand = async (output, context) => {
|
|
2923
1680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2924
|
-
return
|
|
1681
|
+
return de_CommandError(output, context);
|
|
2925
1682
|
}
|
|
2926
1683
|
const contents = map({
|
|
2927
1684
|
$metadata: deserializeMetadata(output),
|
|
@@ -2934,31 +1691,9 @@ export const de_ListCodeSigningConfigsCommand = async (output, context) => {
|
|
|
2934
1691
|
Object.assign(contents, doc);
|
|
2935
1692
|
return contents;
|
|
2936
1693
|
};
|
|
2937
|
-
const de_ListCodeSigningConfigsCommandError = async (output, context) => {
|
|
2938
|
-
const parsedOutput = {
|
|
2939
|
-
...output,
|
|
2940
|
-
body: await parseErrorBody(output.body, context),
|
|
2941
|
-
};
|
|
2942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2943
|
-
switch (errorCode) {
|
|
2944
|
-
case "InvalidParameterValueException":
|
|
2945
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2946
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2947
|
-
case "ServiceException":
|
|
2948
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2949
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2950
|
-
default:
|
|
2951
|
-
const parsedBody = parsedOutput.body;
|
|
2952
|
-
return throwDefaultError({
|
|
2953
|
-
output,
|
|
2954
|
-
parsedBody,
|
|
2955
|
-
errorCode,
|
|
2956
|
-
});
|
|
2957
|
-
}
|
|
2958
|
-
};
|
|
2959
1694
|
export const de_ListEventSourceMappingsCommand = async (output, context) => {
|
|
2960
1695
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2961
|
-
return
|
|
1696
|
+
return de_CommandError(output, context);
|
|
2962
1697
|
}
|
|
2963
1698
|
const contents = map({
|
|
2964
1699
|
$metadata: deserializeMetadata(output),
|
|
@@ -2971,37 +1706,9 @@ export const de_ListEventSourceMappingsCommand = async (output, context) => {
|
|
|
2971
1706
|
Object.assign(contents, doc);
|
|
2972
1707
|
return contents;
|
|
2973
1708
|
};
|
|
2974
|
-
const de_ListEventSourceMappingsCommandError = async (output, context) => {
|
|
2975
|
-
const parsedOutput = {
|
|
2976
|
-
...output,
|
|
2977
|
-
body: await parseErrorBody(output.body, context),
|
|
2978
|
-
};
|
|
2979
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2980
|
-
switch (errorCode) {
|
|
2981
|
-
case "InvalidParameterValueException":
|
|
2982
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2983
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "ResourceNotFoundException":
|
|
2985
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2986
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "ServiceException":
|
|
2988
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2989
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2990
|
-
case "TooManyRequestsException":
|
|
2991
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2992
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2993
|
-
default:
|
|
2994
|
-
const parsedBody = parsedOutput.body;
|
|
2995
|
-
return throwDefaultError({
|
|
2996
|
-
output,
|
|
2997
|
-
parsedBody,
|
|
2998
|
-
errorCode,
|
|
2999
|
-
});
|
|
3000
|
-
}
|
|
3001
|
-
};
|
|
3002
1709
|
export const de_ListFunctionEventInvokeConfigsCommand = async (output, context) => {
|
|
3003
1710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3004
|
-
return
|
|
1711
|
+
return de_CommandError(output, context);
|
|
3005
1712
|
}
|
|
3006
1713
|
const contents = map({
|
|
3007
1714
|
$metadata: deserializeMetadata(output),
|
|
@@ -3014,37 +1721,9 @@ export const de_ListFunctionEventInvokeConfigsCommand = async (output, context)
|
|
|
3014
1721
|
Object.assign(contents, doc);
|
|
3015
1722
|
return contents;
|
|
3016
1723
|
};
|
|
3017
|
-
const de_ListFunctionEventInvokeConfigsCommandError = async (output, context) => {
|
|
3018
|
-
const parsedOutput = {
|
|
3019
|
-
...output,
|
|
3020
|
-
body: await parseErrorBody(output.body, context),
|
|
3021
|
-
};
|
|
3022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3023
|
-
switch (errorCode) {
|
|
3024
|
-
case "InvalidParameterValueException":
|
|
3025
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3026
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3027
|
-
case "ResourceNotFoundException":
|
|
3028
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3029
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3030
|
-
case "ServiceException":
|
|
3031
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3032
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3033
|
-
case "TooManyRequestsException":
|
|
3034
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3035
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3036
|
-
default:
|
|
3037
|
-
const parsedBody = parsedOutput.body;
|
|
3038
|
-
return throwDefaultError({
|
|
3039
|
-
output,
|
|
3040
|
-
parsedBody,
|
|
3041
|
-
errorCode,
|
|
3042
|
-
});
|
|
3043
|
-
}
|
|
3044
|
-
};
|
|
3045
1724
|
export const de_ListFunctionsCommand = async (output, context) => {
|
|
3046
1725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3047
|
-
return
|
|
1726
|
+
return de_CommandError(output, context);
|
|
3048
1727
|
}
|
|
3049
1728
|
const contents = map({
|
|
3050
1729
|
$metadata: deserializeMetadata(output),
|
|
@@ -3057,34 +1736,9 @@ export const de_ListFunctionsCommand = async (output, context) => {
|
|
|
3057
1736
|
Object.assign(contents, doc);
|
|
3058
1737
|
return contents;
|
|
3059
1738
|
};
|
|
3060
|
-
const de_ListFunctionsCommandError = async (output, context) => {
|
|
3061
|
-
const parsedOutput = {
|
|
3062
|
-
...output,
|
|
3063
|
-
body: await parseErrorBody(output.body, context),
|
|
3064
|
-
};
|
|
3065
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3066
|
-
switch (errorCode) {
|
|
3067
|
-
case "InvalidParameterValueException":
|
|
3068
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3069
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3070
|
-
case "ServiceException":
|
|
3071
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3072
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3073
|
-
case "TooManyRequestsException":
|
|
3074
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3075
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3076
|
-
default:
|
|
3077
|
-
const parsedBody = parsedOutput.body;
|
|
3078
|
-
return throwDefaultError({
|
|
3079
|
-
output,
|
|
3080
|
-
parsedBody,
|
|
3081
|
-
errorCode,
|
|
3082
|
-
});
|
|
3083
|
-
}
|
|
3084
|
-
};
|
|
3085
1739
|
export const de_ListFunctionsByCodeSigningConfigCommand = async (output, context) => {
|
|
3086
1740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3087
|
-
return
|
|
1741
|
+
return de_CommandError(output, context);
|
|
3088
1742
|
}
|
|
3089
1743
|
const contents = map({
|
|
3090
1744
|
$metadata: deserializeMetadata(output),
|
|
@@ -3097,34 +1751,9 @@ export const de_ListFunctionsByCodeSigningConfigCommand = async (output, context
|
|
|
3097
1751
|
Object.assign(contents, doc);
|
|
3098
1752
|
return contents;
|
|
3099
1753
|
};
|
|
3100
|
-
const de_ListFunctionsByCodeSigningConfigCommandError = async (output, context) => {
|
|
3101
|
-
const parsedOutput = {
|
|
3102
|
-
...output,
|
|
3103
|
-
body: await parseErrorBody(output.body, context),
|
|
3104
|
-
};
|
|
3105
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3106
|
-
switch (errorCode) {
|
|
3107
|
-
case "InvalidParameterValueException":
|
|
3108
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3109
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3110
|
-
case "ResourceNotFoundException":
|
|
3111
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3112
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3113
|
-
case "ServiceException":
|
|
3114
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3115
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3116
|
-
default:
|
|
3117
|
-
const parsedBody = parsedOutput.body;
|
|
3118
|
-
return throwDefaultError({
|
|
3119
|
-
output,
|
|
3120
|
-
parsedBody,
|
|
3121
|
-
errorCode,
|
|
3122
|
-
});
|
|
3123
|
-
}
|
|
3124
|
-
};
|
|
3125
1754
|
export const de_ListFunctionUrlConfigsCommand = async (output, context) => {
|
|
3126
1755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3127
|
-
return
|
|
1756
|
+
return de_CommandError(output, context);
|
|
3128
1757
|
}
|
|
3129
1758
|
const contents = map({
|
|
3130
1759
|
$metadata: deserializeMetadata(output),
|
|
@@ -3137,37 +1766,9 @@ export const de_ListFunctionUrlConfigsCommand = async (output, context) => {
|
|
|
3137
1766
|
Object.assign(contents, doc);
|
|
3138
1767
|
return contents;
|
|
3139
1768
|
};
|
|
3140
|
-
const de_ListFunctionUrlConfigsCommandError = async (output, context) => {
|
|
3141
|
-
const parsedOutput = {
|
|
3142
|
-
...output,
|
|
3143
|
-
body: await parseErrorBody(output.body, context),
|
|
3144
|
-
};
|
|
3145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3146
|
-
switch (errorCode) {
|
|
3147
|
-
case "InvalidParameterValueException":
|
|
3148
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3149
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3150
|
-
case "ResourceNotFoundException":
|
|
3151
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "ServiceException":
|
|
3154
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3155
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3156
|
-
case "TooManyRequestsException":
|
|
3157
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3158
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3159
|
-
default:
|
|
3160
|
-
const parsedBody = parsedOutput.body;
|
|
3161
|
-
return throwDefaultError({
|
|
3162
|
-
output,
|
|
3163
|
-
parsedBody,
|
|
3164
|
-
errorCode,
|
|
3165
|
-
});
|
|
3166
|
-
}
|
|
3167
|
-
};
|
|
3168
1769
|
export const de_ListLayersCommand = async (output, context) => {
|
|
3169
1770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3170
|
-
return
|
|
1771
|
+
return de_CommandError(output, context);
|
|
3171
1772
|
}
|
|
3172
1773
|
const contents = map({
|
|
3173
1774
|
$metadata: deserializeMetadata(output),
|
|
@@ -3180,34 +1781,9 @@ export const de_ListLayersCommand = async (output, context) => {
|
|
|
3180
1781
|
Object.assign(contents, doc);
|
|
3181
1782
|
return contents;
|
|
3182
1783
|
};
|
|
3183
|
-
const de_ListLayersCommandError = async (output, context) => {
|
|
3184
|
-
const parsedOutput = {
|
|
3185
|
-
...output,
|
|
3186
|
-
body: await parseErrorBody(output.body, context),
|
|
3187
|
-
};
|
|
3188
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3189
|
-
switch (errorCode) {
|
|
3190
|
-
case "InvalidParameterValueException":
|
|
3191
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3192
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3193
|
-
case "ServiceException":
|
|
3194
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3195
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3196
|
-
case "TooManyRequestsException":
|
|
3197
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3198
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3199
|
-
default:
|
|
3200
|
-
const parsedBody = parsedOutput.body;
|
|
3201
|
-
return throwDefaultError({
|
|
3202
|
-
output,
|
|
3203
|
-
parsedBody,
|
|
3204
|
-
errorCode,
|
|
3205
|
-
});
|
|
3206
|
-
}
|
|
3207
|
-
};
|
|
3208
1784
|
export const de_ListLayerVersionsCommand = async (output, context) => {
|
|
3209
1785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3210
|
-
return
|
|
1786
|
+
return de_CommandError(output, context);
|
|
3211
1787
|
}
|
|
3212
1788
|
const contents = map({
|
|
3213
1789
|
$metadata: deserializeMetadata(output),
|
|
@@ -3215,42 +1791,14 @@ export const de_ListLayerVersionsCommand = async (output, context) => {
|
|
|
3215
1791
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3216
1792
|
const doc = take(data, {
|
|
3217
1793
|
LayerVersions: _json,
|
|
3218
|
-
NextMarker: __expectString,
|
|
3219
|
-
});
|
|
3220
|
-
Object.assign(contents, doc);
|
|
3221
|
-
return contents;
|
|
3222
|
-
};
|
|
3223
|
-
const de_ListLayerVersionsCommandError = async (output, context) => {
|
|
3224
|
-
const parsedOutput = {
|
|
3225
|
-
...output,
|
|
3226
|
-
body: await parseErrorBody(output.body, context),
|
|
3227
|
-
};
|
|
3228
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3229
|
-
switch (errorCode) {
|
|
3230
|
-
case "InvalidParameterValueException":
|
|
3231
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3232
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3233
|
-
case "ResourceNotFoundException":
|
|
3234
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3235
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3236
|
-
case "ServiceException":
|
|
3237
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3238
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3239
|
-
case "TooManyRequestsException":
|
|
3240
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3241
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3242
|
-
default:
|
|
3243
|
-
const parsedBody = parsedOutput.body;
|
|
3244
|
-
return throwDefaultError({
|
|
3245
|
-
output,
|
|
3246
|
-
parsedBody,
|
|
3247
|
-
errorCode,
|
|
3248
|
-
});
|
|
3249
|
-
}
|
|
1794
|
+
NextMarker: __expectString,
|
|
1795
|
+
});
|
|
1796
|
+
Object.assign(contents, doc);
|
|
1797
|
+
return contents;
|
|
3250
1798
|
};
|
|
3251
1799
|
export const de_ListProvisionedConcurrencyConfigsCommand = async (output, context) => {
|
|
3252
1800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3253
|
-
return
|
|
1801
|
+
return de_CommandError(output, context);
|
|
3254
1802
|
}
|
|
3255
1803
|
const contents = map({
|
|
3256
1804
|
$metadata: deserializeMetadata(output),
|
|
@@ -3263,37 +1811,9 @@ export const de_ListProvisionedConcurrencyConfigsCommand = async (output, contex
|
|
|
3263
1811
|
Object.assign(contents, doc);
|
|
3264
1812
|
return contents;
|
|
3265
1813
|
};
|
|
3266
|
-
const de_ListProvisionedConcurrencyConfigsCommandError = async (output, context) => {
|
|
3267
|
-
const parsedOutput = {
|
|
3268
|
-
...output,
|
|
3269
|
-
body: await parseErrorBody(output.body, context),
|
|
3270
|
-
};
|
|
3271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3272
|
-
switch (errorCode) {
|
|
3273
|
-
case "InvalidParameterValueException":
|
|
3274
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3275
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3276
|
-
case "ResourceNotFoundException":
|
|
3277
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3278
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3279
|
-
case "ServiceException":
|
|
3280
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3281
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3282
|
-
case "TooManyRequestsException":
|
|
3283
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3284
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3285
|
-
default:
|
|
3286
|
-
const parsedBody = parsedOutput.body;
|
|
3287
|
-
return throwDefaultError({
|
|
3288
|
-
output,
|
|
3289
|
-
parsedBody,
|
|
3290
|
-
errorCode,
|
|
3291
|
-
});
|
|
3292
|
-
}
|
|
3293
|
-
};
|
|
3294
1814
|
export const de_ListTagsCommand = async (output, context) => {
|
|
3295
1815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3296
|
-
return
|
|
1816
|
+
return de_CommandError(output, context);
|
|
3297
1817
|
}
|
|
3298
1818
|
const contents = map({
|
|
3299
1819
|
$metadata: deserializeMetadata(output),
|
|
@@ -3305,37 +1825,9 @@ export const de_ListTagsCommand = async (output, context) => {
|
|
|
3305
1825
|
Object.assign(contents, doc);
|
|
3306
1826
|
return contents;
|
|
3307
1827
|
};
|
|
3308
|
-
const de_ListTagsCommandError = async (output, context) => {
|
|
3309
|
-
const parsedOutput = {
|
|
3310
|
-
...output,
|
|
3311
|
-
body: await parseErrorBody(output.body, context),
|
|
3312
|
-
};
|
|
3313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3314
|
-
switch (errorCode) {
|
|
3315
|
-
case "InvalidParameterValueException":
|
|
3316
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3317
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3318
|
-
case "ResourceNotFoundException":
|
|
3319
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3320
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3321
|
-
case "ServiceException":
|
|
3322
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3323
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3324
|
-
case "TooManyRequestsException":
|
|
3325
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3326
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3327
|
-
default:
|
|
3328
|
-
const parsedBody = parsedOutput.body;
|
|
3329
|
-
return throwDefaultError({
|
|
3330
|
-
output,
|
|
3331
|
-
parsedBody,
|
|
3332
|
-
errorCode,
|
|
3333
|
-
});
|
|
3334
|
-
}
|
|
3335
|
-
};
|
|
3336
1828
|
export const de_ListVersionsByFunctionCommand = async (output, context) => {
|
|
3337
1829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3338
|
-
return
|
|
1830
|
+
return de_CommandError(output, context);
|
|
3339
1831
|
}
|
|
3340
1832
|
const contents = map({
|
|
3341
1833
|
$metadata: deserializeMetadata(output),
|
|
@@ -3348,37 +1840,9 @@ export const de_ListVersionsByFunctionCommand = async (output, context) => {
|
|
|
3348
1840
|
Object.assign(contents, doc);
|
|
3349
1841
|
return contents;
|
|
3350
1842
|
};
|
|
3351
|
-
const de_ListVersionsByFunctionCommandError = async (output, context) => {
|
|
3352
|
-
const parsedOutput = {
|
|
3353
|
-
...output,
|
|
3354
|
-
body: await parseErrorBody(output.body, context),
|
|
3355
|
-
};
|
|
3356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3357
|
-
switch (errorCode) {
|
|
3358
|
-
case "InvalidParameterValueException":
|
|
3359
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3360
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3361
|
-
case "ResourceNotFoundException":
|
|
3362
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3363
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "ServiceException":
|
|
3365
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3366
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3367
|
-
case "TooManyRequestsException":
|
|
3368
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3369
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3370
|
-
default:
|
|
3371
|
-
const parsedBody = parsedOutput.body;
|
|
3372
|
-
return throwDefaultError({
|
|
3373
|
-
output,
|
|
3374
|
-
parsedBody,
|
|
3375
|
-
errorCode,
|
|
3376
|
-
});
|
|
3377
|
-
}
|
|
3378
|
-
};
|
|
3379
1843
|
export const de_PublishLayerVersionCommand = async (output, context) => {
|
|
3380
1844
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3381
|
-
return
|
|
1845
|
+
return de_CommandError(output, context);
|
|
3382
1846
|
}
|
|
3383
1847
|
const contents = map({
|
|
3384
1848
|
$metadata: deserializeMetadata(output),
|
|
@@ -3398,40 +1862,9 @@ export const de_PublishLayerVersionCommand = async (output, context) => {
|
|
|
3398
1862
|
Object.assign(contents, doc);
|
|
3399
1863
|
return contents;
|
|
3400
1864
|
};
|
|
3401
|
-
const de_PublishLayerVersionCommandError = async (output, context) => {
|
|
3402
|
-
const parsedOutput = {
|
|
3403
|
-
...output,
|
|
3404
|
-
body: await parseErrorBody(output.body, context),
|
|
3405
|
-
};
|
|
3406
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3407
|
-
switch (errorCode) {
|
|
3408
|
-
case "CodeStorageExceededException":
|
|
3409
|
-
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
3410
|
-
throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "InvalidParameterValueException":
|
|
3412
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3413
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "ResourceNotFoundException":
|
|
3415
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3416
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3417
|
-
case "ServiceException":
|
|
3418
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3419
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3420
|
-
case "TooManyRequestsException":
|
|
3421
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3422
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3423
|
-
default:
|
|
3424
|
-
const parsedBody = parsedOutput.body;
|
|
3425
|
-
return throwDefaultError({
|
|
3426
|
-
output,
|
|
3427
|
-
parsedBody,
|
|
3428
|
-
errorCode,
|
|
3429
|
-
});
|
|
3430
|
-
}
|
|
3431
|
-
};
|
|
3432
1865
|
export const de_PublishVersionCommand = async (output, context) => {
|
|
3433
1866
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3434
|
-
return
|
|
1867
|
+
return de_CommandError(output, context);
|
|
3435
1868
|
}
|
|
3436
1869
|
const contents = map({
|
|
3437
1870
|
$metadata: deserializeMetadata(output),
|
|
@@ -3478,46 +1911,9 @@ export const de_PublishVersionCommand = async (output, context) => {
|
|
|
3478
1911
|
Object.assign(contents, doc);
|
|
3479
1912
|
return contents;
|
|
3480
1913
|
};
|
|
3481
|
-
const de_PublishVersionCommandError = async (output, context) => {
|
|
3482
|
-
const parsedOutput = {
|
|
3483
|
-
...output,
|
|
3484
|
-
body: await parseErrorBody(output.body, context),
|
|
3485
|
-
};
|
|
3486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3487
|
-
switch (errorCode) {
|
|
3488
|
-
case "CodeStorageExceededException":
|
|
3489
|
-
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
3490
|
-
throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
|
|
3491
|
-
case "InvalidParameterValueException":
|
|
3492
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3493
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3494
|
-
case "PreconditionFailedException":
|
|
3495
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
3496
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
3497
|
-
case "ResourceConflictException":
|
|
3498
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3499
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3500
|
-
case "ResourceNotFoundException":
|
|
3501
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3502
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3503
|
-
case "ServiceException":
|
|
3504
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3505
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3506
|
-
case "TooManyRequestsException":
|
|
3507
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3508
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3509
|
-
default:
|
|
3510
|
-
const parsedBody = parsedOutput.body;
|
|
3511
|
-
return throwDefaultError({
|
|
3512
|
-
output,
|
|
3513
|
-
parsedBody,
|
|
3514
|
-
errorCode,
|
|
3515
|
-
});
|
|
3516
|
-
}
|
|
3517
|
-
};
|
|
3518
1914
|
export const de_PutFunctionCodeSigningConfigCommand = async (output, context) => {
|
|
3519
1915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3520
|
-
return
|
|
1916
|
+
return de_CommandError(output, context);
|
|
3521
1917
|
}
|
|
3522
1918
|
const contents = map({
|
|
3523
1919
|
$metadata: deserializeMetadata(output),
|
|
@@ -3530,43 +1926,9 @@ export const de_PutFunctionCodeSigningConfigCommand = async (output, context) =>
|
|
|
3530
1926
|
Object.assign(contents, doc);
|
|
3531
1927
|
return contents;
|
|
3532
1928
|
};
|
|
3533
|
-
const de_PutFunctionCodeSigningConfigCommandError = async (output, context) => {
|
|
3534
|
-
const parsedOutput = {
|
|
3535
|
-
...output,
|
|
3536
|
-
body: await parseErrorBody(output.body, context),
|
|
3537
|
-
};
|
|
3538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3539
|
-
switch (errorCode) {
|
|
3540
|
-
case "CodeSigningConfigNotFoundException":
|
|
3541
|
-
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
3542
|
-
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
3543
|
-
case "InvalidParameterValueException":
|
|
3544
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3545
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3546
|
-
case "ResourceConflictException":
|
|
3547
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3548
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "ResourceNotFoundException":
|
|
3550
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3552
|
-
case "ServiceException":
|
|
3553
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3554
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3555
|
-
case "TooManyRequestsException":
|
|
3556
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3557
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3558
|
-
default:
|
|
3559
|
-
const parsedBody = parsedOutput.body;
|
|
3560
|
-
return throwDefaultError({
|
|
3561
|
-
output,
|
|
3562
|
-
parsedBody,
|
|
3563
|
-
errorCode,
|
|
3564
|
-
});
|
|
3565
|
-
}
|
|
3566
|
-
};
|
|
3567
1929
|
export const de_PutFunctionConcurrencyCommand = async (output, context) => {
|
|
3568
1930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3569
|
-
return
|
|
1931
|
+
return de_CommandError(output, context);
|
|
3570
1932
|
}
|
|
3571
1933
|
const contents = map({
|
|
3572
1934
|
$metadata: deserializeMetadata(output),
|
|
@@ -3578,89 +1940,27 @@ export const de_PutFunctionConcurrencyCommand = async (output, context) => {
|
|
|
3578
1940
|
Object.assign(contents, doc);
|
|
3579
1941
|
return contents;
|
|
3580
1942
|
};
|
|
3581
|
-
const de_PutFunctionConcurrencyCommandError = async (output, context) => {
|
|
3582
|
-
const parsedOutput = {
|
|
3583
|
-
...output,
|
|
3584
|
-
body: await parseErrorBody(output.body, context),
|
|
3585
|
-
};
|
|
3586
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3587
|
-
switch (errorCode) {
|
|
3588
|
-
case "InvalidParameterValueException":
|
|
3589
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3590
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3591
|
-
case "ResourceConflictException":
|
|
3592
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3593
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3594
|
-
case "ResourceNotFoundException":
|
|
3595
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3596
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3597
|
-
case "ServiceException":
|
|
3598
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3599
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3600
|
-
case "TooManyRequestsException":
|
|
3601
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3602
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3603
|
-
default:
|
|
3604
|
-
const parsedBody = parsedOutput.body;
|
|
3605
|
-
return throwDefaultError({
|
|
3606
|
-
output,
|
|
3607
|
-
parsedBody,
|
|
3608
|
-
errorCode,
|
|
3609
|
-
});
|
|
3610
|
-
}
|
|
3611
|
-
};
|
|
3612
1943
|
export const de_PutFunctionEventInvokeConfigCommand = async (output, context) => {
|
|
3613
1944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3614
|
-
return
|
|
1945
|
+
return de_CommandError(output, context);
|
|
3615
1946
|
}
|
|
3616
1947
|
const contents = map({
|
|
3617
|
-
$metadata: deserializeMetadata(output),
|
|
3618
|
-
});
|
|
3619
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3620
|
-
const doc = take(data, {
|
|
3621
|
-
DestinationConfig: _json,
|
|
3622
|
-
FunctionArn: __expectString,
|
|
3623
|
-
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3624
|
-
MaximumEventAgeInSeconds: __expectInt32,
|
|
3625
|
-
MaximumRetryAttempts: __expectInt32,
|
|
3626
|
-
});
|
|
3627
|
-
Object.assign(contents, doc);
|
|
3628
|
-
return contents;
|
|
3629
|
-
};
|
|
3630
|
-
const de_PutFunctionEventInvokeConfigCommandError = async (output, context) => {
|
|
3631
|
-
const parsedOutput = {
|
|
3632
|
-
...output,
|
|
3633
|
-
body: await parseErrorBody(output.body, context),
|
|
3634
|
-
};
|
|
3635
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3636
|
-
switch (errorCode) {
|
|
3637
|
-
case "InvalidParameterValueException":
|
|
3638
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3639
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3640
|
-
case "ResourceConflictException":
|
|
3641
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3642
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3643
|
-
case "ResourceNotFoundException":
|
|
3644
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3645
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3646
|
-
case "ServiceException":
|
|
3647
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3648
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3649
|
-
case "TooManyRequestsException":
|
|
3650
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3651
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3652
|
-
default:
|
|
3653
|
-
const parsedBody = parsedOutput.body;
|
|
3654
|
-
return throwDefaultError({
|
|
3655
|
-
output,
|
|
3656
|
-
parsedBody,
|
|
3657
|
-
errorCode,
|
|
3658
|
-
});
|
|
3659
|
-
}
|
|
1948
|
+
$metadata: deserializeMetadata(output),
|
|
1949
|
+
});
|
|
1950
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1951
|
+
const doc = take(data, {
|
|
1952
|
+
DestinationConfig: _json,
|
|
1953
|
+
FunctionArn: __expectString,
|
|
1954
|
+
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1955
|
+
MaximumEventAgeInSeconds: __expectInt32,
|
|
1956
|
+
MaximumRetryAttempts: __expectInt32,
|
|
1957
|
+
});
|
|
1958
|
+
Object.assign(contents, doc);
|
|
1959
|
+
return contents;
|
|
3660
1960
|
};
|
|
3661
1961
|
export const de_PutProvisionedConcurrencyConfigCommand = async (output, context) => {
|
|
3662
1962
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3663
|
-
return
|
|
1963
|
+
return de_CommandError(output, context);
|
|
3664
1964
|
}
|
|
3665
1965
|
const contents = map({
|
|
3666
1966
|
$metadata: deserializeMetadata(output),
|
|
@@ -3677,40 +1977,9 @@ export const de_PutProvisionedConcurrencyConfigCommand = async (output, context)
|
|
|
3677
1977
|
Object.assign(contents, doc);
|
|
3678
1978
|
return contents;
|
|
3679
1979
|
};
|
|
3680
|
-
const de_PutProvisionedConcurrencyConfigCommandError = async (output, context) => {
|
|
3681
|
-
const parsedOutput = {
|
|
3682
|
-
...output,
|
|
3683
|
-
body: await parseErrorBody(output.body, context),
|
|
3684
|
-
};
|
|
3685
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3686
|
-
switch (errorCode) {
|
|
3687
|
-
case "InvalidParameterValueException":
|
|
3688
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3689
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3690
|
-
case "ResourceConflictException":
|
|
3691
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3692
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3693
|
-
case "ResourceNotFoundException":
|
|
3694
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3695
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3696
|
-
case "ServiceException":
|
|
3697
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3698
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3699
|
-
case "TooManyRequestsException":
|
|
3700
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3701
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3702
|
-
default:
|
|
3703
|
-
const parsedBody = parsedOutput.body;
|
|
3704
|
-
return throwDefaultError({
|
|
3705
|
-
output,
|
|
3706
|
-
parsedBody,
|
|
3707
|
-
errorCode,
|
|
3708
|
-
});
|
|
3709
|
-
}
|
|
3710
|
-
};
|
|
3711
1980
|
export const de_PutRuntimeManagementConfigCommand = async (output, context) => {
|
|
3712
1981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3713
|
-
return
|
|
1982
|
+
return de_CommandError(output, context);
|
|
3714
1983
|
}
|
|
3715
1984
|
const contents = map({
|
|
3716
1985
|
$metadata: deserializeMetadata(output),
|
|
@@ -3724,40 +1993,9 @@ export const de_PutRuntimeManagementConfigCommand = async (output, context) => {
|
|
|
3724
1993
|
Object.assign(contents, doc);
|
|
3725
1994
|
return contents;
|
|
3726
1995
|
};
|
|
3727
|
-
const de_PutRuntimeManagementConfigCommandError = async (output, context) => {
|
|
3728
|
-
const parsedOutput = {
|
|
3729
|
-
...output,
|
|
3730
|
-
body: await parseErrorBody(output.body, context),
|
|
3731
|
-
};
|
|
3732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3733
|
-
switch (errorCode) {
|
|
3734
|
-
case "InvalidParameterValueException":
|
|
3735
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3736
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3737
|
-
case "ResourceConflictException":
|
|
3738
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3739
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3740
|
-
case "ResourceNotFoundException":
|
|
3741
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3742
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3743
|
-
case "ServiceException":
|
|
3744
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3745
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3746
|
-
case "TooManyRequestsException":
|
|
3747
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3748
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3749
|
-
default:
|
|
3750
|
-
const parsedBody = parsedOutput.body;
|
|
3751
|
-
return throwDefaultError({
|
|
3752
|
-
output,
|
|
3753
|
-
parsedBody,
|
|
3754
|
-
errorCode,
|
|
3755
|
-
});
|
|
3756
|
-
}
|
|
3757
|
-
};
|
|
3758
1996
|
export const de_RemoveLayerVersionPermissionCommand = async (output, context) => {
|
|
3759
1997
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3760
|
-
return
|
|
1998
|
+
return de_CommandError(output, context);
|
|
3761
1999
|
}
|
|
3762
2000
|
const contents = map({
|
|
3763
2001
|
$metadata: deserializeMetadata(output),
|
|
@@ -3765,40 +2003,9 @@ export const de_RemoveLayerVersionPermissionCommand = async (output, context) =>
|
|
|
3765
2003
|
await collectBody(output.body, context);
|
|
3766
2004
|
return contents;
|
|
3767
2005
|
};
|
|
3768
|
-
const de_RemoveLayerVersionPermissionCommandError = async (output, context) => {
|
|
3769
|
-
const parsedOutput = {
|
|
3770
|
-
...output,
|
|
3771
|
-
body: await parseErrorBody(output.body, context),
|
|
3772
|
-
};
|
|
3773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3774
|
-
switch (errorCode) {
|
|
3775
|
-
case "InvalidParameterValueException":
|
|
3776
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3777
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3778
|
-
case "PreconditionFailedException":
|
|
3779
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
3780
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
3781
|
-
case "ResourceNotFoundException":
|
|
3782
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3783
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3784
|
-
case "ServiceException":
|
|
3785
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3786
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3787
|
-
case "TooManyRequestsException":
|
|
3788
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3789
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3790
|
-
default:
|
|
3791
|
-
const parsedBody = parsedOutput.body;
|
|
3792
|
-
return throwDefaultError({
|
|
3793
|
-
output,
|
|
3794
|
-
parsedBody,
|
|
3795
|
-
errorCode,
|
|
3796
|
-
});
|
|
3797
|
-
}
|
|
3798
|
-
};
|
|
3799
2006
|
export const de_RemovePermissionCommand = async (output, context) => {
|
|
3800
2007
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3801
|
-
return
|
|
2008
|
+
return de_CommandError(output, context);
|
|
3802
2009
|
}
|
|
3803
2010
|
const contents = map({
|
|
3804
2011
|
$metadata: deserializeMetadata(output),
|
|
@@ -3806,40 +2013,9 @@ export const de_RemovePermissionCommand = async (output, context) => {
|
|
|
3806
2013
|
await collectBody(output.body, context);
|
|
3807
2014
|
return contents;
|
|
3808
2015
|
};
|
|
3809
|
-
const de_RemovePermissionCommandError = async (output, context) => {
|
|
3810
|
-
const parsedOutput = {
|
|
3811
|
-
...output,
|
|
3812
|
-
body: await parseErrorBody(output.body, context),
|
|
3813
|
-
};
|
|
3814
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3815
|
-
switch (errorCode) {
|
|
3816
|
-
case "InvalidParameterValueException":
|
|
3817
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3818
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3819
|
-
case "PreconditionFailedException":
|
|
3820
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
3821
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
3822
|
-
case "ResourceNotFoundException":
|
|
3823
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3824
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3825
|
-
case "ServiceException":
|
|
3826
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3827
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3828
|
-
case "TooManyRequestsException":
|
|
3829
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3830
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3831
|
-
default:
|
|
3832
|
-
const parsedBody = parsedOutput.body;
|
|
3833
|
-
return throwDefaultError({
|
|
3834
|
-
output,
|
|
3835
|
-
parsedBody,
|
|
3836
|
-
errorCode,
|
|
3837
|
-
});
|
|
3838
|
-
}
|
|
3839
|
-
};
|
|
3840
2016
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3841
2017
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3842
|
-
return
|
|
2018
|
+
return de_CommandError(output, context);
|
|
3843
2019
|
}
|
|
3844
2020
|
const contents = map({
|
|
3845
2021
|
$metadata: deserializeMetadata(output),
|
|
@@ -3847,40 +2023,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3847
2023
|
await collectBody(output.body, context);
|
|
3848
2024
|
return contents;
|
|
3849
2025
|
};
|
|
3850
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3851
|
-
const parsedOutput = {
|
|
3852
|
-
...output,
|
|
3853
|
-
body: await parseErrorBody(output.body, context),
|
|
3854
|
-
};
|
|
3855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3856
|
-
switch (errorCode) {
|
|
3857
|
-
case "InvalidParameterValueException":
|
|
3858
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3859
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3860
|
-
case "ResourceConflictException":
|
|
3861
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3862
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3863
|
-
case "ResourceNotFoundException":
|
|
3864
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3865
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3866
|
-
case "ServiceException":
|
|
3867
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3868
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3869
|
-
case "TooManyRequestsException":
|
|
3870
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3871
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3872
|
-
default:
|
|
3873
|
-
const parsedBody = parsedOutput.body;
|
|
3874
|
-
return throwDefaultError({
|
|
3875
|
-
output,
|
|
3876
|
-
parsedBody,
|
|
3877
|
-
errorCode,
|
|
3878
|
-
});
|
|
3879
|
-
}
|
|
3880
|
-
};
|
|
3881
2026
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3882
2027
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3883
|
-
return
|
|
2028
|
+
return de_CommandError(output, context);
|
|
3884
2029
|
}
|
|
3885
2030
|
const contents = map({
|
|
3886
2031
|
$metadata: deserializeMetadata(output),
|
|
@@ -3888,40 +2033,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3888
2033
|
await collectBody(output.body, context);
|
|
3889
2034
|
return contents;
|
|
3890
2035
|
};
|
|
3891
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3892
|
-
const parsedOutput = {
|
|
3893
|
-
...output,
|
|
3894
|
-
body: await parseErrorBody(output.body, context),
|
|
3895
|
-
};
|
|
3896
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3897
|
-
switch (errorCode) {
|
|
3898
|
-
case "InvalidParameterValueException":
|
|
3899
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3900
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3901
|
-
case "ResourceConflictException":
|
|
3902
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3903
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3904
|
-
case "ResourceNotFoundException":
|
|
3905
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3906
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3907
|
-
case "ServiceException":
|
|
3908
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3909
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3910
|
-
case "TooManyRequestsException":
|
|
3911
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3912
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3913
|
-
default:
|
|
3914
|
-
const parsedBody = parsedOutput.body;
|
|
3915
|
-
return throwDefaultError({
|
|
3916
|
-
output,
|
|
3917
|
-
parsedBody,
|
|
3918
|
-
errorCode,
|
|
3919
|
-
});
|
|
3920
|
-
}
|
|
3921
|
-
};
|
|
3922
2036
|
export const de_UpdateAliasCommand = async (output, context) => {
|
|
3923
2037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3924
|
-
return
|
|
2038
|
+
return de_CommandError(output, context);
|
|
3925
2039
|
}
|
|
3926
2040
|
const contents = map({
|
|
3927
2041
|
$metadata: deserializeMetadata(output),
|
|
@@ -3938,82 +2052,23 @@ export const de_UpdateAliasCommand = async (output, context) => {
|
|
|
3938
2052
|
Object.assign(contents, doc);
|
|
3939
2053
|
return contents;
|
|
3940
2054
|
};
|
|
3941
|
-
const de_UpdateAliasCommandError = async (output, context) => {
|
|
3942
|
-
const parsedOutput = {
|
|
3943
|
-
...output,
|
|
3944
|
-
body: await parseErrorBody(output.body, context),
|
|
3945
|
-
};
|
|
3946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3947
|
-
switch (errorCode) {
|
|
3948
|
-
case "InvalidParameterValueException":
|
|
3949
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3950
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3951
|
-
case "PreconditionFailedException":
|
|
3952
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
3953
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
3954
|
-
case "ResourceConflictException":
|
|
3955
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3956
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3957
|
-
case "ResourceNotFoundException":
|
|
3958
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3959
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3960
|
-
case "ServiceException":
|
|
3961
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3962
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3963
|
-
case "TooManyRequestsException":
|
|
3964
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3965
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3966
|
-
default:
|
|
3967
|
-
const parsedBody = parsedOutput.body;
|
|
3968
|
-
return throwDefaultError({
|
|
3969
|
-
output,
|
|
3970
|
-
parsedBody,
|
|
3971
|
-
errorCode,
|
|
3972
|
-
});
|
|
3973
|
-
}
|
|
3974
|
-
};
|
|
3975
2055
|
export const de_UpdateCodeSigningConfigCommand = async (output, context) => {
|
|
3976
2056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3977
|
-
return
|
|
2057
|
+
return de_CommandError(output, context);
|
|
3978
2058
|
}
|
|
3979
2059
|
const contents = map({
|
|
3980
2060
|
$metadata: deserializeMetadata(output),
|
|
3981
|
-
});
|
|
3982
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3983
|
-
const doc = take(data, {
|
|
3984
|
-
CodeSigningConfig: _json,
|
|
3985
|
-
});
|
|
3986
|
-
Object.assign(contents, doc);
|
|
3987
|
-
return contents;
|
|
3988
|
-
};
|
|
3989
|
-
const de_UpdateCodeSigningConfigCommandError = async (output, context) => {
|
|
3990
|
-
const parsedOutput = {
|
|
3991
|
-
...output,
|
|
3992
|
-
body: await parseErrorBody(output.body, context),
|
|
3993
|
-
};
|
|
3994
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3995
|
-
switch (errorCode) {
|
|
3996
|
-
case "InvalidParameterValueException":
|
|
3997
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3998
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3999
|
-
case "ResourceNotFoundException":
|
|
4000
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4001
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4002
|
-
case "ServiceException":
|
|
4003
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4004
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4005
|
-
default:
|
|
4006
|
-
const parsedBody = parsedOutput.body;
|
|
4007
|
-
return throwDefaultError({
|
|
4008
|
-
output,
|
|
4009
|
-
parsedBody,
|
|
4010
|
-
errorCode,
|
|
4011
|
-
});
|
|
4012
|
-
}
|
|
2061
|
+
});
|
|
2062
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2063
|
+
const doc = take(data, {
|
|
2064
|
+
CodeSigningConfig: _json,
|
|
2065
|
+
});
|
|
2066
|
+
Object.assign(contents, doc);
|
|
2067
|
+
return contents;
|
|
4013
2068
|
};
|
|
4014
2069
|
export const de_UpdateEventSourceMappingCommand = async (output, context) => {
|
|
4015
2070
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
4016
|
-
return
|
|
2071
|
+
return de_CommandError(output, context);
|
|
4017
2072
|
}
|
|
4018
2073
|
const contents = map({
|
|
4019
2074
|
$metadata: deserializeMetadata(output),
|
|
@@ -4051,43 +2106,9 @@ export const de_UpdateEventSourceMappingCommand = async (output, context) => {
|
|
|
4051
2106
|
Object.assign(contents, doc);
|
|
4052
2107
|
return contents;
|
|
4053
2108
|
};
|
|
4054
|
-
const de_UpdateEventSourceMappingCommandError = async (output, context) => {
|
|
4055
|
-
const parsedOutput = {
|
|
4056
|
-
...output,
|
|
4057
|
-
body: await parseErrorBody(output.body, context),
|
|
4058
|
-
};
|
|
4059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4060
|
-
switch (errorCode) {
|
|
4061
|
-
case "InvalidParameterValueException":
|
|
4062
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4063
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4064
|
-
case "ResourceConflictException":
|
|
4065
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4066
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4067
|
-
case "ResourceInUseException":
|
|
4068
|
-
case "com.amazonaws.lambda#ResourceInUseException":
|
|
4069
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4070
|
-
case "ResourceNotFoundException":
|
|
4071
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4072
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4073
|
-
case "ServiceException":
|
|
4074
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4075
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4076
|
-
case "TooManyRequestsException":
|
|
4077
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4078
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4079
|
-
default:
|
|
4080
|
-
const parsedBody = parsedOutput.body;
|
|
4081
|
-
return throwDefaultError({
|
|
4082
|
-
output,
|
|
4083
|
-
parsedBody,
|
|
4084
|
-
errorCode,
|
|
4085
|
-
});
|
|
4086
|
-
}
|
|
4087
|
-
};
|
|
4088
2109
|
export const de_UpdateFunctionCodeCommand = async (output, context) => {
|
|
4089
2110
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4090
|
-
return
|
|
2111
|
+
return de_CommandError(output, context);
|
|
4091
2112
|
}
|
|
4092
2113
|
const contents = map({
|
|
4093
2114
|
$metadata: deserializeMetadata(output),
|
|
@@ -4134,55 +2155,9 @@ export const de_UpdateFunctionCodeCommand = async (output, context) => {
|
|
|
4134
2155
|
Object.assign(contents, doc);
|
|
4135
2156
|
return contents;
|
|
4136
2157
|
};
|
|
4137
|
-
const de_UpdateFunctionCodeCommandError = async (output, context) => {
|
|
4138
|
-
const parsedOutput = {
|
|
4139
|
-
...output,
|
|
4140
|
-
body: await parseErrorBody(output.body, context),
|
|
4141
|
-
};
|
|
4142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4143
|
-
switch (errorCode) {
|
|
4144
|
-
case "CodeSigningConfigNotFoundException":
|
|
4145
|
-
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
4146
|
-
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
4147
|
-
case "CodeStorageExceededException":
|
|
4148
|
-
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
4149
|
-
throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
|
|
4150
|
-
case "CodeVerificationFailedException":
|
|
4151
|
-
case "com.amazonaws.lambda#CodeVerificationFailedException":
|
|
4152
|
-
throw await de_CodeVerificationFailedExceptionRes(parsedOutput, context);
|
|
4153
|
-
case "InvalidCodeSignatureException":
|
|
4154
|
-
case "com.amazonaws.lambda#InvalidCodeSignatureException":
|
|
4155
|
-
throw await de_InvalidCodeSignatureExceptionRes(parsedOutput, context);
|
|
4156
|
-
case "InvalidParameterValueException":
|
|
4157
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4158
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4159
|
-
case "PreconditionFailedException":
|
|
4160
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
4161
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4162
|
-
case "ResourceConflictException":
|
|
4163
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4164
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4165
|
-
case "ResourceNotFoundException":
|
|
4166
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4167
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4168
|
-
case "ServiceException":
|
|
4169
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4170
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4171
|
-
case "TooManyRequestsException":
|
|
4172
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4173
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4174
|
-
default:
|
|
4175
|
-
const parsedBody = parsedOutput.body;
|
|
4176
|
-
return throwDefaultError({
|
|
4177
|
-
output,
|
|
4178
|
-
parsedBody,
|
|
4179
|
-
errorCode,
|
|
4180
|
-
});
|
|
4181
|
-
}
|
|
4182
|
-
};
|
|
4183
2158
|
export const de_UpdateFunctionConfigurationCommand = async (output, context) => {
|
|
4184
2159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4185
|
-
return
|
|
2160
|
+
return de_CommandError(output, context);
|
|
4186
2161
|
}
|
|
4187
2162
|
const contents = map({
|
|
4188
2163
|
$metadata: deserializeMetadata(output),
|
|
@@ -4229,52 +2204,9 @@ export const de_UpdateFunctionConfigurationCommand = async (output, context) =>
|
|
|
4229
2204
|
Object.assign(contents, doc);
|
|
4230
2205
|
return contents;
|
|
4231
2206
|
};
|
|
4232
|
-
const de_UpdateFunctionConfigurationCommandError = async (output, context) => {
|
|
4233
|
-
const parsedOutput = {
|
|
4234
|
-
...output,
|
|
4235
|
-
body: await parseErrorBody(output.body, context),
|
|
4236
|
-
};
|
|
4237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4238
|
-
switch (errorCode) {
|
|
4239
|
-
case "CodeSigningConfigNotFoundException":
|
|
4240
|
-
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
4241
|
-
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
4242
|
-
case "CodeVerificationFailedException":
|
|
4243
|
-
case "com.amazonaws.lambda#CodeVerificationFailedException":
|
|
4244
|
-
throw await de_CodeVerificationFailedExceptionRes(parsedOutput, context);
|
|
4245
|
-
case "InvalidCodeSignatureException":
|
|
4246
|
-
case "com.amazonaws.lambda#InvalidCodeSignatureException":
|
|
4247
|
-
throw await de_InvalidCodeSignatureExceptionRes(parsedOutput, context);
|
|
4248
|
-
case "InvalidParameterValueException":
|
|
4249
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4250
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4251
|
-
case "PreconditionFailedException":
|
|
4252
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
4253
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4254
|
-
case "ResourceConflictException":
|
|
4255
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4256
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4257
|
-
case "ResourceNotFoundException":
|
|
4258
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4259
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4260
|
-
case "ServiceException":
|
|
4261
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4262
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4263
|
-
case "TooManyRequestsException":
|
|
4264
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4265
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4266
|
-
default:
|
|
4267
|
-
const parsedBody = parsedOutput.body;
|
|
4268
|
-
return throwDefaultError({
|
|
4269
|
-
output,
|
|
4270
|
-
parsedBody,
|
|
4271
|
-
errorCode,
|
|
4272
|
-
});
|
|
4273
|
-
}
|
|
4274
|
-
};
|
|
4275
2207
|
export const de_UpdateFunctionEventInvokeConfigCommand = async (output, context) => {
|
|
4276
2208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4277
|
-
return
|
|
2209
|
+
return de_CommandError(output, context);
|
|
4278
2210
|
}
|
|
4279
2211
|
const contents = map({
|
|
4280
2212
|
$metadata: deserializeMetadata(output),
|
|
@@ -4290,40 +2222,9 @@ export const de_UpdateFunctionEventInvokeConfigCommand = async (output, context)
|
|
|
4290
2222
|
Object.assign(contents, doc);
|
|
4291
2223
|
return contents;
|
|
4292
2224
|
};
|
|
4293
|
-
const de_UpdateFunctionEventInvokeConfigCommandError = async (output, context) => {
|
|
4294
|
-
const parsedOutput = {
|
|
4295
|
-
...output,
|
|
4296
|
-
body: await parseErrorBody(output.body, context),
|
|
4297
|
-
};
|
|
4298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4299
|
-
switch (errorCode) {
|
|
4300
|
-
case "InvalidParameterValueException":
|
|
4301
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4302
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4303
|
-
case "ResourceConflictException":
|
|
4304
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4305
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4306
|
-
case "ResourceNotFoundException":
|
|
4307
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4309
|
-
case "ServiceException":
|
|
4310
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4311
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4312
|
-
case "TooManyRequestsException":
|
|
4313
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4314
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4315
|
-
default:
|
|
4316
|
-
const parsedBody = parsedOutput.body;
|
|
4317
|
-
return throwDefaultError({
|
|
4318
|
-
output,
|
|
4319
|
-
parsedBody,
|
|
4320
|
-
errorCode,
|
|
4321
|
-
});
|
|
4322
|
-
}
|
|
4323
|
-
};
|
|
4324
2225
|
export const de_UpdateFunctionUrlConfigCommand = async (output, context) => {
|
|
4325
2226
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4326
|
-
return
|
|
2227
|
+
return de_CommandError(output, context);
|
|
4327
2228
|
}
|
|
4328
2229
|
const contents = map({
|
|
4329
2230
|
$metadata: deserializeMetadata(output),
|
|
@@ -4341,7 +2242,7 @@ export const de_UpdateFunctionUrlConfigCommand = async (output, context) => {
|
|
|
4341
2242
|
Object.assign(contents, doc);
|
|
4342
2243
|
return contents;
|
|
4343
2244
|
};
|
|
4344
|
-
const
|
|
2245
|
+
const de_CommandError = async (output, context) => {
|
|
4345
2246
|
const parsedOutput = {
|
|
4346
2247
|
...output,
|
|
4347
2248
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4351,6 +2252,12 @@ const de_UpdateFunctionUrlConfigCommandError = async (output, context) => {
|
|
|
4351
2252
|
case "InvalidParameterValueException":
|
|
4352
2253
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4353
2254
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2255
|
+
case "PolicyLengthExceededException":
|
|
2256
|
+
case "com.amazonaws.lambda#PolicyLengthExceededException":
|
|
2257
|
+
throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
|
|
2258
|
+
case "PreconditionFailedException":
|
|
2259
|
+
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
2260
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4354
2261
|
case "ResourceConflictException":
|
|
4355
2262
|
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4356
2263
|
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
@@ -4363,6 +2270,99 @@ const de_UpdateFunctionUrlConfigCommandError = async (output, context) => {
|
|
|
4363
2270
|
case "TooManyRequestsException":
|
|
4364
2271
|
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4365
2272
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2273
|
+
case "CodeSigningConfigNotFoundException":
|
|
2274
|
+
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
2275
|
+
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
2276
|
+
case "CodeStorageExceededException":
|
|
2277
|
+
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
2278
|
+
throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
|
|
2279
|
+
case "CodeVerificationFailedException":
|
|
2280
|
+
case "com.amazonaws.lambda#CodeVerificationFailedException":
|
|
2281
|
+
throw await de_CodeVerificationFailedExceptionRes(parsedOutput, context);
|
|
2282
|
+
case "InvalidCodeSignatureException":
|
|
2283
|
+
case "com.amazonaws.lambda#InvalidCodeSignatureException":
|
|
2284
|
+
throw await de_InvalidCodeSignatureExceptionRes(parsedOutput, context);
|
|
2285
|
+
case "ResourceInUseException":
|
|
2286
|
+
case "com.amazonaws.lambda#ResourceInUseException":
|
|
2287
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2288
|
+
case "ProvisionedConcurrencyConfigNotFoundException":
|
|
2289
|
+
case "com.amazonaws.lambda#ProvisionedConcurrencyConfigNotFoundException":
|
|
2290
|
+
throw await de_ProvisionedConcurrencyConfigNotFoundExceptionRes(parsedOutput, context);
|
|
2291
|
+
case "EC2AccessDeniedException":
|
|
2292
|
+
case "com.amazonaws.lambda#EC2AccessDeniedException":
|
|
2293
|
+
throw await de_EC2AccessDeniedExceptionRes(parsedOutput, context);
|
|
2294
|
+
case "EC2ThrottledException":
|
|
2295
|
+
case "com.amazonaws.lambda#EC2ThrottledException":
|
|
2296
|
+
throw await de_EC2ThrottledExceptionRes(parsedOutput, context);
|
|
2297
|
+
case "EC2UnexpectedException":
|
|
2298
|
+
case "com.amazonaws.lambda#EC2UnexpectedException":
|
|
2299
|
+
throw await de_EC2UnexpectedExceptionRes(parsedOutput, context);
|
|
2300
|
+
case "EFSIOException":
|
|
2301
|
+
case "com.amazonaws.lambda#EFSIOException":
|
|
2302
|
+
throw await de_EFSIOExceptionRes(parsedOutput, context);
|
|
2303
|
+
case "EFSMountConnectivityException":
|
|
2304
|
+
case "com.amazonaws.lambda#EFSMountConnectivityException":
|
|
2305
|
+
throw await de_EFSMountConnectivityExceptionRes(parsedOutput, context);
|
|
2306
|
+
case "EFSMountFailureException":
|
|
2307
|
+
case "com.amazonaws.lambda#EFSMountFailureException":
|
|
2308
|
+
throw await de_EFSMountFailureExceptionRes(parsedOutput, context);
|
|
2309
|
+
case "EFSMountTimeoutException":
|
|
2310
|
+
case "com.amazonaws.lambda#EFSMountTimeoutException":
|
|
2311
|
+
throw await de_EFSMountTimeoutExceptionRes(parsedOutput, context);
|
|
2312
|
+
case "ENILimitReachedException":
|
|
2313
|
+
case "com.amazonaws.lambda#ENILimitReachedException":
|
|
2314
|
+
throw await de_ENILimitReachedExceptionRes(parsedOutput, context);
|
|
2315
|
+
case "InvalidRequestContentException":
|
|
2316
|
+
case "com.amazonaws.lambda#InvalidRequestContentException":
|
|
2317
|
+
throw await de_InvalidRequestContentExceptionRes(parsedOutput, context);
|
|
2318
|
+
case "InvalidRuntimeException":
|
|
2319
|
+
case "com.amazonaws.lambda#InvalidRuntimeException":
|
|
2320
|
+
throw await de_InvalidRuntimeExceptionRes(parsedOutput, context);
|
|
2321
|
+
case "InvalidSecurityGroupIDException":
|
|
2322
|
+
case "com.amazonaws.lambda#InvalidSecurityGroupIDException":
|
|
2323
|
+
throw await de_InvalidSecurityGroupIDExceptionRes(parsedOutput, context);
|
|
2324
|
+
case "InvalidSubnetIDException":
|
|
2325
|
+
case "com.amazonaws.lambda#InvalidSubnetIDException":
|
|
2326
|
+
throw await de_InvalidSubnetIDExceptionRes(parsedOutput, context);
|
|
2327
|
+
case "InvalidZipFileException":
|
|
2328
|
+
case "com.amazonaws.lambda#InvalidZipFileException":
|
|
2329
|
+
throw await de_InvalidZipFileExceptionRes(parsedOutput, context);
|
|
2330
|
+
case "KMSAccessDeniedException":
|
|
2331
|
+
case "com.amazonaws.lambda#KMSAccessDeniedException":
|
|
2332
|
+
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
2333
|
+
case "KMSDisabledException":
|
|
2334
|
+
case "com.amazonaws.lambda#KMSDisabledException":
|
|
2335
|
+
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
2336
|
+
case "KMSInvalidStateException":
|
|
2337
|
+
case "com.amazonaws.lambda#KMSInvalidStateException":
|
|
2338
|
+
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2339
|
+
case "KMSNotFoundException":
|
|
2340
|
+
case "com.amazonaws.lambda#KMSNotFoundException":
|
|
2341
|
+
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
2342
|
+
case "RecursiveInvocationException":
|
|
2343
|
+
case "com.amazonaws.lambda#RecursiveInvocationException":
|
|
2344
|
+
throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
|
|
2345
|
+
case "RequestTooLargeException":
|
|
2346
|
+
case "com.amazonaws.lambda#RequestTooLargeException":
|
|
2347
|
+
throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
|
|
2348
|
+
case "ResourceNotReadyException":
|
|
2349
|
+
case "com.amazonaws.lambda#ResourceNotReadyException":
|
|
2350
|
+
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
2351
|
+
case "SnapStartException":
|
|
2352
|
+
case "com.amazonaws.lambda#SnapStartException":
|
|
2353
|
+
throw await de_SnapStartExceptionRes(parsedOutput, context);
|
|
2354
|
+
case "SnapStartNotReadyException":
|
|
2355
|
+
case "com.amazonaws.lambda#SnapStartNotReadyException":
|
|
2356
|
+
throw await de_SnapStartNotReadyExceptionRes(parsedOutput, context);
|
|
2357
|
+
case "SnapStartTimeoutException":
|
|
2358
|
+
case "com.amazonaws.lambda#SnapStartTimeoutException":
|
|
2359
|
+
throw await de_SnapStartTimeoutExceptionRes(parsedOutput, context);
|
|
2360
|
+
case "SubnetIPAddressLimitReachedException":
|
|
2361
|
+
case "com.amazonaws.lambda#SubnetIPAddressLimitReachedException":
|
|
2362
|
+
throw await de_SubnetIPAddressLimitReachedExceptionRes(parsedOutput, context);
|
|
2363
|
+
case "UnsupportedMediaTypeException":
|
|
2364
|
+
case "com.amazonaws.lambda#UnsupportedMediaTypeException":
|
|
2365
|
+
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
|
|
4366
2366
|
default:
|
|
4367
2367
|
const parsedBody = parsedOutput.body;
|
|
4368
2368
|
return throwDefaultError({
|