@aws-sdk/client-imagebuilder 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +124 -2827
- package/dist-es/protocols/Aws_restJson1.js +117 -2820
- package/package.json +3 -3
|
@@ -1117,7 +1117,7 @@ export const se_UpdateLifecyclePolicyCommand = async (input, context) => {
|
|
|
1117
1117
|
};
|
|
1118
1118
|
export const de_CancelImageCreationCommand = async (output, context) => {
|
|
1119
1119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1120
|
-
return
|
|
1120
|
+
return de_CommandError(output, context);
|
|
1121
1121
|
}
|
|
1122
1122
|
const contents = map({
|
|
1123
1123
|
$metadata: deserializeMetadata(output),
|
|
@@ -1131,49 +1131,9 @@ export const de_CancelImageCreationCommand = async (output, context) => {
|
|
|
1131
1131
|
Object.assign(contents, doc);
|
|
1132
1132
|
return contents;
|
|
1133
1133
|
};
|
|
1134
|
-
const de_CancelImageCreationCommandError = async (output, context) => {
|
|
1135
|
-
const parsedOutput = {
|
|
1136
|
-
...output,
|
|
1137
|
-
body: await parseErrorBody(output.body, context),
|
|
1138
|
-
};
|
|
1139
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
|
-
switch (errorCode) {
|
|
1141
|
-
case "CallRateLimitExceededException":
|
|
1142
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1143
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "ClientException":
|
|
1145
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1146
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "ForbiddenException":
|
|
1148
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1149
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "IdempotentParameterMismatchException":
|
|
1151
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1152
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "InvalidRequestException":
|
|
1154
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1155
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "ResourceInUseException":
|
|
1157
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1158
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ServiceException":
|
|
1160
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1161
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "ServiceUnavailableException":
|
|
1163
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1164
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1165
|
-
default:
|
|
1166
|
-
const parsedBody = parsedOutput.body;
|
|
1167
|
-
return throwDefaultError({
|
|
1168
|
-
output,
|
|
1169
|
-
parsedBody,
|
|
1170
|
-
errorCode,
|
|
1171
|
-
});
|
|
1172
|
-
}
|
|
1173
|
-
};
|
|
1174
1134
|
export const de_CancelLifecycleExecutionCommand = async (output, context) => {
|
|
1175
1135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1176
|
-
return
|
|
1136
|
+
return de_CommandError(output, context);
|
|
1177
1137
|
}
|
|
1178
1138
|
const contents = map({
|
|
1179
1139
|
$metadata: deserializeMetadata(output),
|
|
@@ -1185,49 +1145,9 @@ export const de_CancelLifecycleExecutionCommand = async (output, context) => {
|
|
|
1185
1145
|
Object.assign(contents, doc);
|
|
1186
1146
|
return contents;
|
|
1187
1147
|
};
|
|
1188
|
-
const de_CancelLifecycleExecutionCommandError = async (output, context) => {
|
|
1189
|
-
const parsedOutput = {
|
|
1190
|
-
...output,
|
|
1191
|
-
body: await parseErrorBody(output.body, context),
|
|
1192
|
-
};
|
|
1193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
|
-
switch (errorCode) {
|
|
1195
|
-
case "CallRateLimitExceededException":
|
|
1196
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1197
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ClientException":
|
|
1199
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1200
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "ForbiddenException":
|
|
1202
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1203
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "IdempotentParameterMismatchException":
|
|
1205
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1206
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "InvalidRequestException":
|
|
1208
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1209
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "ResourceInUseException":
|
|
1211
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1212
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "ServiceException":
|
|
1214
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1215
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "ServiceUnavailableException":
|
|
1217
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1218
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1219
|
-
default:
|
|
1220
|
-
const parsedBody = parsedOutput.body;
|
|
1221
|
-
return throwDefaultError({
|
|
1222
|
-
output,
|
|
1223
|
-
parsedBody,
|
|
1224
|
-
errorCode,
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
1148
|
export const de_CreateComponentCommand = async (output, context) => {
|
|
1229
1149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1230
|
-
return
|
|
1150
|
+
return de_CommandError(output, context);
|
|
1231
1151
|
}
|
|
1232
1152
|
const contents = map({
|
|
1233
1153
|
$metadata: deserializeMetadata(output),
|
|
@@ -1241,58 +1161,9 @@ export const de_CreateComponentCommand = async (output, context) => {
|
|
|
1241
1161
|
Object.assign(contents, doc);
|
|
1242
1162
|
return contents;
|
|
1243
1163
|
};
|
|
1244
|
-
const de_CreateComponentCommandError = async (output, context) => {
|
|
1245
|
-
const parsedOutput = {
|
|
1246
|
-
...output,
|
|
1247
|
-
body: await parseErrorBody(output.body, context),
|
|
1248
|
-
};
|
|
1249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1250
|
-
switch (errorCode) {
|
|
1251
|
-
case "CallRateLimitExceededException":
|
|
1252
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1253
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "ClientException":
|
|
1255
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1256
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "ForbiddenException":
|
|
1258
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1259
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "IdempotentParameterMismatchException":
|
|
1261
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1262
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "InvalidParameterCombinationException":
|
|
1264
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
1265
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "InvalidRequestException":
|
|
1267
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1268
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "InvalidVersionNumberException":
|
|
1270
|
-
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
1271
|
-
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "ResourceInUseException":
|
|
1273
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1274
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "ServiceException":
|
|
1276
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1277
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "ServiceQuotaExceededException":
|
|
1279
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
1280
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ServiceUnavailableException":
|
|
1282
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1283
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1284
|
-
default:
|
|
1285
|
-
const parsedBody = parsedOutput.body;
|
|
1286
|
-
return throwDefaultError({
|
|
1287
|
-
output,
|
|
1288
|
-
parsedBody,
|
|
1289
|
-
errorCode,
|
|
1290
|
-
});
|
|
1291
|
-
}
|
|
1292
|
-
};
|
|
1293
1164
|
export const de_CreateContainerRecipeCommand = async (output, context) => {
|
|
1294
1165
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1295
|
-
return
|
|
1166
|
+
return de_CommandError(output, context);
|
|
1296
1167
|
}
|
|
1297
1168
|
const contents = map({
|
|
1298
1169
|
$metadata: deserializeMetadata(output),
|
|
@@ -1306,58 +1177,9 @@ export const de_CreateContainerRecipeCommand = async (output, context) => {
|
|
|
1306
1177
|
Object.assign(contents, doc);
|
|
1307
1178
|
return contents;
|
|
1308
1179
|
};
|
|
1309
|
-
const de_CreateContainerRecipeCommandError = async (output, context) => {
|
|
1310
|
-
const parsedOutput = {
|
|
1311
|
-
...output,
|
|
1312
|
-
body: await parseErrorBody(output.body, context),
|
|
1313
|
-
};
|
|
1314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1315
|
-
switch (errorCode) {
|
|
1316
|
-
case "CallRateLimitExceededException":
|
|
1317
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1318
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "ClientException":
|
|
1320
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1321
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "ForbiddenException":
|
|
1323
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1324
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "IdempotentParameterMismatchException":
|
|
1326
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1327
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "InvalidRequestException":
|
|
1329
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1330
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "InvalidVersionNumberException":
|
|
1332
|
-
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
1333
|
-
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "ResourceAlreadyExistsException":
|
|
1335
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
1336
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "ResourceInUseException":
|
|
1338
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1339
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "ServiceException":
|
|
1341
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1342
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "ServiceQuotaExceededException":
|
|
1344
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
1345
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ServiceUnavailableException":
|
|
1347
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1348
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1349
|
-
default:
|
|
1350
|
-
const parsedBody = parsedOutput.body;
|
|
1351
|
-
return throwDefaultError({
|
|
1352
|
-
output,
|
|
1353
|
-
parsedBody,
|
|
1354
|
-
errorCode,
|
|
1355
|
-
});
|
|
1356
|
-
}
|
|
1357
|
-
};
|
|
1358
1180
|
export const de_CreateDistributionConfigurationCommand = async (output, context) => {
|
|
1359
1181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1360
|
-
return
|
|
1182
|
+
return de_CommandError(output, context);
|
|
1361
1183
|
}
|
|
1362
1184
|
const contents = map({
|
|
1363
1185
|
$metadata: deserializeMetadata(output),
|
|
@@ -1371,58 +1193,9 @@ export const de_CreateDistributionConfigurationCommand = async (output, context)
|
|
|
1371
1193
|
Object.assign(contents, doc);
|
|
1372
1194
|
return contents;
|
|
1373
1195
|
};
|
|
1374
|
-
const de_CreateDistributionConfigurationCommandError = async (output, context) => {
|
|
1375
|
-
const parsedOutput = {
|
|
1376
|
-
...output,
|
|
1377
|
-
body: await parseErrorBody(output.body, context),
|
|
1378
|
-
};
|
|
1379
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
|
-
switch (errorCode) {
|
|
1381
|
-
case "CallRateLimitExceededException":
|
|
1382
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1383
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ClientException":
|
|
1385
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1386
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ForbiddenException":
|
|
1388
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1389
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "IdempotentParameterMismatchException":
|
|
1391
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1392
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "InvalidParameterCombinationException":
|
|
1394
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
1395
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "InvalidRequestException":
|
|
1397
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1398
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "ResourceAlreadyExistsException":
|
|
1400
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
1401
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "ResourceInUseException":
|
|
1403
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1404
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "ServiceException":
|
|
1406
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1407
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "ServiceQuotaExceededException":
|
|
1409
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
1410
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "ServiceUnavailableException":
|
|
1412
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1413
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1414
|
-
default:
|
|
1415
|
-
const parsedBody = parsedOutput.body;
|
|
1416
|
-
return throwDefaultError({
|
|
1417
|
-
output,
|
|
1418
|
-
parsedBody,
|
|
1419
|
-
errorCode,
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
};
|
|
1423
1196
|
export const de_CreateImageCommand = async (output, context) => {
|
|
1424
1197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1425
|
-
return
|
|
1198
|
+
return de_CommandError(output, context);
|
|
1426
1199
|
}
|
|
1427
1200
|
const contents = map({
|
|
1428
1201
|
$metadata: deserializeMetadata(output),
|
|
@@ -1436,52 +1209,9 @@ export const de_CreateImageCommand = async (output, context) => {
|
|
|
1436
1209
|
Object.assign(contents, doc);
|
|
1437
1210
|
return contents;
|
|
1438
1211
|
};
|
|
1439
|
-
const de_CreateImageCommandError = async (output, context) => {
|
|
1440
|
-
const parsedOutput = {
|
|
1441
|
-
...output,
|
|
1442
|
-
body: await parseErrorBody(output.body, context),
|
|
1443
|
-
};
|
|
1444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
-
switch (errorCode) {
|
|
1446
|
-
case "CallRateLimitExceededException":
|
|
1447
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1448
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ClientException":
|
|
1450
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1451
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ForbiddenException":
|
|
1453
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1454
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "IdempotentParameterMismatchException":
|
|
1456
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1457
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "InvalidRequestException":
|
|
1459
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1460
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "ResourceInUseException":
|
|
1462
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1463
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "ServiceException":
|
|
1465
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1466
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "ServiceQuotaExceededException":
|
|
1468
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
1469
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ServiceUnavailableException":
|
|
1471
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1472
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1473
|
-
default:
|
|
1474
|
-
const parsedBody = parsedOutput.body;
|
|
1475
|
-
return throwDefaultError({
|
|
1476
|
-
output,
|
|
1477
|
-
parsedBody,
|
|
1478
|
-
errorCode,
|
|
1479
|
-
});
|
|
1480
|
-
}
|
|
1481
|
-
};
|
|
1482
1212
|
export const de_CreateImagePipelineCommand = async (output, context) => {
|
|
1483
1213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1484
|
-
return
|
|
1214
|
+
return de_CommandError(output, context);
|
|
1485
1215
|
}
|
|
1486
1216
|
const contents = map({
|
|
1487
1217
|
$metadata: deserializeMetadata(output),
|
|
@@ -1495,55 +1225,9 @@ export const de_CreateImagePipelineCommand = async (output, context) => {
|
|
|
1495
1225
|
Object.assign(contents, doc);
|
|
1496
1226
|
return contents;
|
|
1497
1227
|
};
|
|
1498
|
-
const de_CreateImagePipelineCommandError = async (output, context) => {
|
|
1499
|
-
const parsedOutput = {
|
|
1500
|
-
...output,
|
|
1501
|
-
body: await parseErrorBody(output.body, context),
|
|
1502
|
-
};
|
|
1503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
|
-
switch (errorCode) {
|
|
1505
|
-
case "CallRateLimitExceededException":
|
|
1506
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1507
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "ClientException":
|
|
1509
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1510
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "ForbiddenException":
|
|
1512
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1513
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1514
|
-
case "IdempotentParameterMismatchException":
|
|
1515
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1516
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1517
|
-
case "InvalidRequestException":
|
|
1518
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1519
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "ResourceAlreadyExistsException":
|
|
1521
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
1522
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "ResourceInUseException":
|
|
1524
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1525
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "ServiceException":
|
|
1527
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1528
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ServiceQuotaExceededException":
|
|
1530
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
1531
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ServiceUnavailableException":
|
|
1533
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1534
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1535
|
-
default:
|
|
1536
|
-
const parsedBody = parsedOutput.body;
|
|
1537
|
-
return throwDefaultError({
|
|
1538
|
-
output,
|
|
1539
|
-
parsedBody,
|
|
1540
|
-
errorCode,
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
};
|
|
1544
1228
|
export const de_CreateImageRecipeCommand = async (output, context) => {
|
|
1545
1229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1546
|
-
return
|
|
1230
|
+
return de_CommandError(output, context);
|
|
1547
1231
|
}
|
|
1548
1232
|
const contents = map({
|
|
1549
1233
|
$metadata: deserializeMetadata(output),
|
|
@@ -1557,58 +1241,9 @@ export const de_CreateImageRecipeCommand = async (output, context) => {
|
|
|
1557
1241
|
Object.assign(contents, doc);
|
|
1558
1242
|
return contents;
|
|
1559
1243
|
};
|
|
1560
|
-
const de_CreateImageRecipeCommandError = async (output, context) => {
|
|
1561
|
-
const parsedOutput = {
|
|
1562
|
-
...output,
|
|
1563
|
-
body: await parseErrorBody(output.body, context),
|
|
1564
|
-
};
|
|
1565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
|
-
switch (errorCode) {
|
|
1567
|
-
case "CallRateLimitExceededException":
|
|
1568
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1569
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "ClientException":
|
|
1571
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1572
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1573
|
-
case "ForbiddenException":
|
|
1574
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1575
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "IdempotentParameterMismatchException":
|
|
1577
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1578
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "InvalidRequestException":
|
|
1580
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1581
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "InvalidVersionNumberException":
|
|
1583
|
-
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
1584
|
-
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ResourceAlreadyExistsException":
|
|
1586
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
1587
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "ResourceInUseException":
|
|
1589
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1590
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "ServiceException":
|
|
1592
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1593
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "ServiceQuotaExceededException":
|
|
1595
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
1596
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1597
|
-
case "ServiceUnavailableException":
|
|
1598
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1599
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1600
|
-
default:
|
|
1601
|
-
const parsedBody = parsedOutput.body;
|
|
1602
|
-
return throwDefaultError({
|
|
1603
|
-
output,
|
|
1604
|
-
parsedBody,
|
|
1605
|
-
errorCode,
|
|
1606
|
-
});
|
|
1607
|
-
}
|
|
1608
|
-
};
|
|
1609
1244
|
export const de_CreateInfrastructureConfigurationCommand = async (output, context) => {
|
|
1610
1245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1611
|
-
return
|
|
1246
|
+
return de_CommandError(output, context);
|
|
1612
1247
|
}
|
|
1613
1248
|
const contents = map({
|
|
1614
1249
|
$metadata: deserializeMetadata(output),
|
|
@@ -1622,55 +1257,9 @@ export const de_CreateInfrastructureConfigurationCommand = async (output, contex
|
|
|
1622
1257
|
Object.assign(contents, doc);
|
|
1623
1258
|
return contents;
|
|
1624
1259
|
};
|
|
1625
|
-
const de_CreateInfrastructureConfigurationCommandError = async (output, context) => {
|
|
1626
|
-
const parsedOutput = {
|
|
1627
|
-
...output,
|
|
1628
|
-
body: await parseErrorBody(output.body, context),
|
|
1629
|
-
};
|
|
1630
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
|
-
switch (errorCode) {
|
|
1632
|
-
case "CallRateLimitExceededException":
|
|
1633
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1634
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "ClientException":
|
|
1636
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1637
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1638
|
-
case "ForbiddenException":
|
|
1639
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1640
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1641
|
-
case "IdempotentParameterMismatchException":
|
|
1642
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1643
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "InvalidRequestException":
|
|
1645
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1646
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "ResourceAlreadyExistsException":
|
|
1648
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
1649
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "ResourceInUseException":
|
|
1651
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1652
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "ServiceException":
|
|
1654
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1655
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "ServiceQuotaExceededException":
|
|
1657
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
1658
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ServiceUnavailableException":
|
|
1660
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1661
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1662
|
-
default:
|
|
1663
|
-
const parsedBody = parsedOutput.body;
|
|
1664
|
-
return throwDefaultError({
|
|
1665
|
-
output,
|
|
1666
|
-
parsedBody,
|
|
1667
|
-
errorCode,
|
|
1668
|
-
});
|
|
1669
|
-
}
|
|
1670
|
-
};
|
|
1671
1260
|
export const de_CreateLifecyclePolicyCommand = async (output, context) => {
|
|
1672
1261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1673
|
-
return
|
|
1262
|
+
return de_CommandError(output, context);
|
|
1674
1263
|
}
|
|
1675
1264
|
const contents = map({
|
|
1676
1265
|
$metadata: deserializeMetadata(output),
|
|
@@ -1683,55 +1272,9 @@ export const de_CreateLifecyclePolicyCommand = async (output, context) => {
|
|
|
1683
1272
|
Object.assign(contents, doc);
|
|
1684
1273
|
return contents;
|
|
1685
1274
|
};
|
|
1686
|
-
const de_CreateLifecyclePolicyCommandError = async (output, context) => {
|
|
1687
|
-
const parsedOutput = {
|
|
1688
|
-
...output,
|
|
1689
|
-
body: await parseErrorBody(output.body, context),
|
|
1690
|
-
};
|
|
1691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
|
-
switch (errorCode) {
|
|
1693
|
-
case "CallRateLimitExceededException":
|
|
1694
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1695
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1696
|
-
case "ClientException":
|
|
1697
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1698
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "ForbiddenException":
|
|
1700
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1701
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "IdempotentParameterMismatchException":
|
|
1703
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1704
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "InvalidRequestException":
|
|
1706
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1707
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "ResourceAlreadyExistsException":
|
|
1709
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
1710
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "ResourceInUseException":
|
|
1712
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1713
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "ServiceException":
|
|
1715
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1716
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "ServiceQuotaExceededException":
|
|
1718
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
1719
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "ServiceUnavailableException":
|
|
1721
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1722
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1723
|
-
default:
|
|
1724
|
-
const parsedBody = parsedOutput.body;
|
|
1725
|
-
return throwDefaultError({
|
|
1726
|
-
output,
|
|
1727
|
-
parsedBody,
|
|
1728
|
-
errorCode,
|
|
1729
|
-
});
|
|
1730
|
-
}
|
|
1731
|
-
};
|
|
1732
1275
|
export const de_CreateWorkflowCommand = async (output, context) => {
|
|
1733
1276
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1734
|
-
return
|
|
1277
|
+
return de_CommandError(output, context);
|
|
1735
1278
|
}
|
|
1736
1279
|
const contents = map({
|
|
1737
1280
|
$metadata: deserializeMetadata(output),
|
|
@@ -1744,58 +1287,9 @@ export const de_CreateWorkflowCommand = async (output, context) => {
|
|
|
1744
1287
|
Object.assign(contents, doc);
|
|
1745
1288
|
return contents;
|
|
1746
1289
|
};
|
|
1747
|
-
const de_CreateWorkflowCommandError = async (output, context) => {
|
|
1748
|
-
const parsedOutput = {
|
|
1749
|
-
...output,
|
|
1750
|
-
body: await parseErrorBody(output.body, context),
|
|
1751
|
-
};
|
|
1752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1753
|
-
switch (errorCode) {
|
|
1754
|
-
case "CallRateLimitExceededException":
|
|
1755
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1756
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "ClientException":
|
|
1758
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1759
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1760
|
-
case "ForbiddenException":
|
|
1761
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1762
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1763
|
-
case "IdempotentParameterMismatchException":
|
|
1764
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1765
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1766
|
-
case "InvalidParameterCombinationException":
|
|
1767
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
1768
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1769
|
-
case "InvalidRequestException":
|
|
1770
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1771
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1772
|
-
case "InvalidVersionNumberException":
|
|
1773
|
-
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
1774
|
-
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
1775
|
-
case "ResourceInUseException":
|
|
1776
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1777
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "ServiceException":
|
|
1779
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1780
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "ServiceQuotaExceededException":
|
|
1782
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
1783
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "ServiceUnavailableException":
|
|
1785
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1786
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1787
|
-
default:
|
|
1788
|
-
const parsedBody = parsedOutput.body;
|
|
1789
|
-
return throwDefaultError({
|
|
1790
|
-
output,
|
|
1791
|
-
parsedBody,
|
|
1792
|
-
errorCode,
|
|
1793
|
-
});
|
|
1794
|
-
}
|
|
1795
|
-
};
|
|
1796
1290
|
export const de_DeleteComponentCommand = async (output, context) => {
|
|
1797
1291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1798
|
-
return
|
|
1292
|
+
return de_CommandError(output, context);
|
|
1799
1293
|
}
|
|
1800
1294
|
const contents = map({
|
|
1801
1295
|
$metadata: deserializeMetadata(output),
|
|
@@ -1808,46 +1302,9 @@ export const de_DeleteComponentCommand = async (output, context) => {
|
|
|
1808
1302
|
Object.assign(contents, doc);
|
|
1809
1303
|
return contents;
|
|
1810
1304
|
};
|
|
1811
|
-
const de_DeleteComponentCommandError = async (output, context) => {
|
|
1812
|
-
const parsedOutput = {
|
|
1813
|
-
...output,
|
|
1814
|
-
body: await parseErrorBody(output.body, context),
|
|
1815
|
-
};
|
|
1816
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1817
|
-
switch (errorCode) {
|
|
1818
|
-
case "CallRateLimitExceededException":
|
|
1819
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1820
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1821
|
-
case "ClientException":
|
|
1822
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1823
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "ForbiddenException":
|
|
1825
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1826
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "InvalidRequestException":
|
|
1828
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1829
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1830
|
-
case "ResourceDependencyException":
|
|
1831
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
1832
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "ServiceException":
|
|
1834
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1835
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "ServiceUnavailableException":
|
|
1837
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1838
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1839
|
-
default:
|
|
1840
|
-
const parsedBody = parsedOutput.body;
|
|
1841
|
-
return throwDefaultError({
|
|
1842
|
-
output,
|
|
1843
|
-
parsedBody,
|
|
1844
|
-
errorCode,
|
|
1845
|
-
});
|
|
1846
|
-
}
|
|
1847
|
-
};
|
|
1848
1305
|
export const de_DeleteContainerRecipeCommand = async (output, context) => {
|
|
1849
1306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1850
|
-
return
|
|
1307
|
+
return de_CommandError(output, context);
|
|
1851
1308
|
}
|
|
1852
1309
|
const contents = map({
|
|
1853
1310
|
$metadata: deserializeMetadata(output),
|
|
@@ -1860,46 +1317,9 @@ export const de_DeleteContainerRecipeCommand = async (output, context) => {
|
|
|
1860
1317
|
Object.assign(contents, doc);
|
|
1861
1318
|
return contents;
|
|
1862
1319
|
};
|
|
1863
|
-
const de_DeleteContainerRecipeCommandError = async (output, context) => {
|
|
1864
|
-
const parsedOutput = {
|
|
1865
|
-
...output,
|
|
1866
|
-
body: await parseErrorBody(output.body, context),
|
|
1867
|
-
};
|
|
1868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
-
switch (errorCode) {
|
|
1870
|
-
case "CallRateLimitExceededException":
|
|
1871
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1872
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "ClientException":
|
|
1874
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1875
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "ForbiddenException":
|
|
1877
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1878
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "InvalidRequestException":
|
|
1880
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1881
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "ResourceDependencyException":
|
|
1883
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
1884
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "ServiceException":
|
|
1886
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1887
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "ServiceUnavailableException":
|
|
1889
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1890
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1891
|
-
default:
|
|
1892
|
-
const parsedBody = parsedOutput.body;
|
|
1893
|
-
return throwDefaultError({
|
|
1894
|
-
output,
|
|
1895
|
-
parsedBody,
|
|
1896
|
-
errorCode,
|
|
1897
|
-
});
|
|
1898
|
-
}
|
|
1899
|
-
};
|
|
1900
1320
|
export const de_DeleteDistributionConfigurationCommand = async (output, context) => {
|
|
1901
1321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1902
|
-
return
|
|
1322
|
+
return de_CommandError(output, context);
|
|
1903
1323
|
}
|
|
1904
1324
|
const contents = map({
|
|
1905
1325
|
$metadata: deserializeMetadata(output),
|
|
@@ -1912,46 +1332,9 @@ export const de_DeleteDistributionConfigurationCommand = async (output, context)
|
|
|
1912
1332
|
Object.assign(contents, doc);
|
|
1913
1333
|
return contents;
|
|
1914
1334
|
};
|
|
1915
|
-
const de_DeleteDistributionConfigurationCommandError = async (output, context) => {
|
|
1916
|
-
const parsedOutput = {
|
|
1917
|
-
...output,
|
|
1918
|
-
body: await parseErrorBody(output.body, context),
|
|
1919
|
-
};
|
|
1920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1921
|
-
switch (errorCode) {
|
|
1922
|
-
case "CallRateLimitExceededException":
|
|
1923
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1924
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "ClientException":
|
|
1926
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1927
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "ForbiddenException":
|
|
1929
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1930
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "InvalidRequestException":
|
|
1932
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1933
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "ResourceDependencyException":
|
|
1935
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
1936
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "ServiceException":
|
|
1938
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1939
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "ServiceUnavailableException":
|
|
1941
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1942
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1943
|
-
default:
|
|
1944
|
-
const parsedBody = parsedOutput.body;
|
|
1945
|
-
return throwDefaultError({
|
|
1946
|
-
output,
|
|
1947
|
-
parsedBody,
|
|
1948
|
-
errorCode,
|
|
1949
|
-
});
|
|
1950
|
-
}
|
|
1951
|
-
};
|
|
1952
1335
|
export const de_DeleteImageCommand = async (output, context) => {
|
|
1953
1336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1954
|
-
return
|
|
1337
|
+
return de_CommandError(output, context);
|
|
1955
1338
|
}
|
|
1956
1339
|
const contents = map({
|
|
1957
1340
|
$metadata: deserializeMetadata(output),
|
|
@@ -1964,46 +1347,9 @@ export const de_DeleteImageCommand = async (output, context) => {
|
|
|
1964
1347
|
Object.assign(contents, doc);
|
|
1965
1348
|
return contents;
|
|
1966
1349
|
};
|
|
1967
|
-
const de_DeleteImageCommandError = async (output, context) => {
|
|
1968
|
-
const parsedOutput = {
|
|
1969
|
-
...output,
|
|
1970
|
-
body: await parseErrorBody(output.body, context),
|
|
1971
|
-
};
|
|
1972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
-
switch (errorCode) {
|
|
1974
|
-
case "CallRateLimitExceededException":
|
|
1975
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1976
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "ClientException":
|
|
1978
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1979
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ForbiddenException":
|
|
1981
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1982
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1983
|
-
case "InvalidRequestException":
|
|
1984
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1985
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "ResourceDependencyException":
|
|
1987
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
1988
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "ServiceException":
|
|
1990
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
1991
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ServiceUnavailableException":
|
|
1993
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
1994
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1995
|
-
default:
|
|
1996
|
-
const parsedBody = parsedOutput.body;
|
|
1997
|
-
return throwDefaultError({
|
|
1998
|
-
output,
|
|
1999
|
-
parsedBody,
|
|
2000
|
-
errorCode,
|
|
2001
|
-
});
|
|
2002
|
-
}
|
|
2003
|
-
};
|
|
2004
1350
|
export const de_DeleteImagePipelineCommand = async (output, context) => {
|
|
2005
1351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2006
|
-
return
|
|
1352
|
+
return de_CommandError(output, context);
|
|
2007
1353
|
}
|
|
2008
1354
|
const contents = map({
|
|
2009
1355
|
$metadata: deserializeMetadata(output),
|
|
@@ -2016,46 +1362,9 @@ export const de_DeleteImagePipelineCommand = async (output, context) => {
|
|
|
2016
1362
|
Object.assign(contents, doc);
|
|
2017
1363
|
return contents;
|
|
2018
1364
|
};
|
|
2019
|
-
const de_DeleteImagePipelineCommandError = async (output, context) => {
|
|
2020
|
-
const parsedOutput = {
|
|
2021
|
-
...output,
|
|
2022
|
-
body: await parseErrorBody(output.body, context),
|
|
2023
|
-
};
|
|
2024
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
|
-
switch (errorCode) {
|
|
2026
|
-
case "CallRateLimitExceededException":
|
|
2027
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2028
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2029
|
-
case "ClientException":
|
|
2030
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2031
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2032
|
-
case "ForbiddenException":
|
|
2033
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2034
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "InvalidRequestException":
|
|
2036
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2037
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "ResourceDependencyException":
|
|
2039
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2040
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2041
|
-
case "ServiceException":
|
|
2042
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2043
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2044
|
-
case "ServiceUnavailableException":
|
|
2045
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2046
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2047
|
-
default:
|
|
2048
|
-
const parsedBody = parsedOutput.body;
|
|
2049
|
-
return throwDefaultError({
|
|
2050
|
-
output,
|
|
2051
|
-
parsedBody,
|
|
2052
|
-
errorCode,
|
|
2053
|
-
});
|
|
2054
|
-
}
|
|
2055
|
-
};
|
|
2056
1365
|
export const de_DeleteImageRecipeCommand = async (output, context) => {
|
|
2057
1366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2058
|
-
return
|
|
1367
|
+
return de_CommandError(output, context);
|
|
2059
1368
|
}
|
|
2060
1369
|
const contents = map({
|
|
2061
1370
|
$metadata: deserializeMetadata(output),
|
|
@@ -2068,46 +1377,9 @@ export const de_DeleteImageRecipeCommand = async (output, context) => {
|
|
|
2068
1377
|
Object.assign(contents, doc);
|
|
2069
1378
|
return contents;
|
|
2070
1379
|
};
|
|
2071
|
-
const de_DeleteImageRecipeCommandError = async (output, context) => {
|
|
2072
|
-
const parsedOutput = {
|
|
2073
|
-
...output,
|
|
2074
|
-
body: await parseErrorBody(output.body, context),
|
|
2075
|
-
};
|
|
2076
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
|
-
switch (errorCode) {
|
|
2078
|
-
case "CallRateLimitExceededException":
|
|
2079
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2080
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "ClientException":
|
|
2082
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2083
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "ForbiddenException":
|
|
2085
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2086
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "InvalidRequestException":
|
|
2088
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2089
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "ResourceDependencyException":
|
|
2091
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2092
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "ServiceException":
|
|
2094
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2095
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "ServiceUnavailableException":
|
|
2097
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2098
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2099
|
-
default:
|
|
2100
|
-
const parsedBody = parsedOutput.body;
|
|
2101
|
-
return throwDefaultError({
|
|
2102
|
-
output,
|
|
2103
|
-
parsedBody,
|
|
2104
|
-
errorCode,
|
|
2105
|
-
});
|
|
2106
|
-
}
|
|
2107
|
-
};
|
|
2108
1380
|
export const de_DeleteInfrastructureConfigurationCommand = async (output, context) => {
|
|
2109
1381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2110
|
-
return
|
|
1382
|
+
return de_CommandError(output, context);
|
|
2111
1383
|
}
|
|
2112
1384
|
const contents = map({
|
|
2113
1385
|
$metadata: deserializeMetadata(output),
|
|
@@ -2120,46 +1392,9 @@ export const de_DeleteInfrastructureConfigurationCommand = async (output, contex
|
|
|
2120
1392
|
Object.assign(contents, doc);
|
|
2121
1393
|
return contents;
|
|
2122
1394
|
};
|
|
2123
|
-
const de_DeleteInfrastructureConfigurationCommandError = async (output, context) => {
|
|
2124
|
-
const parsedOutput = {
|
|
2125
|
-
...output,
|
|
2126
|
-
body: await parseErrorBody(output.body, context),
|
|
2127
|
-
};
|
|
2128
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2129
|
-
switch (errorCode) {
|
|
2130
|
-
case "CallRateLimitExceededException":
|
|
2131
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2132
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2133
|
-
case "ClientException":
|
|
2134
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2135
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2136
|
-
case "ForbiddenException":
|
|
2137
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2138
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "InvalidRequestException":
|
|
2140
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2141
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "ResourceDependencyException":
|
|
2143
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2144
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "ServiceException":
|
|
2146
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2147
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "ServiceUnavailableException":
|
|
2149
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2150
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2151
|
-
default:
|
|
2152
|
-
const parsedBody = parsedOutput.body;
|
|
2153
|
-
return throwDefaultError({
|
|
2154
|
-
output,
|
|
2155
|
-
parsedBody,
|
|
2156
|
-
errorCode,
|
|
2157
|
-
});
|
|
2158
|
-
}
|
|
2159
|
-
};
|
|
2160
1395
|
export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
2161
1396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2162
|
-
return
|
|
1397
|
+
return de_CommandError(output, context);
|
|
2163
1398
|
}
|
|
2164
1399
|
const contents = map({
|
|
2165
1400
|
$metadata: deserializeMetadata(output),
|
|
@@ -2171,46 +1406,9 @@ export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
|
2171
1406
|
Object.assign(contents, doc);
|
|
2172
1407
|
return contents;
|
|
2173
1408
|
};
|
|
2174
|
-
const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
|
|
2175
|
-
const parsedOutput = {
|
|
2176
|
-
...output,
|
|
2177
|
-
body: await parseErrorBody(output.body, context),
|
|
2178
|
-
};
|
|
2179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
|
-
switch (errorCode) {
|
|
2181
|
-
case "CallRateLimitExceededException":
|
|
2182
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2183
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2184
|
-
case "ClientException":
|
|
2185
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2186
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2187
|
-
case "ForbiddenException":
|
|
2188
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2189
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2190
|
-
case "InvalidRequestException":
|
|
2191
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2192
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2193
|
-
case "ResourceDependencyException":
|
|
2194
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2195
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2196
|
-
case "ServiceException":
|
|
2197
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2198
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2199
|
-
case "ServiceUnavailableException":
|
|
2200
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2201
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2202
|
-
default:
|
|
2203
|
-
const parsedBody = parsedOutput.body;
|
|
2204
|
-
return throwDefaultError({
|
|
2205
|
-
output,
|
|
2206
|
-
parsedBody,
|
|
2207
|
-
errorCode,
|
|
2208
|
-
});
|
|
2209
|
-
}
|
|
2210
|
-
};
|
|
2211
1409
|
export const de_DeleteWorkflowCommand = async (output, context) => {
|
|
2212
1410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2213
|
-
return
|
|
1411
|
+
return de_CommandError(output, context);
|
|
2214
1412
|
}
|
|
2215
1413
|
const contents = map({
|
|
2216
1414
|
$metadata: deserializeMetadata(output),
|
|
@@ -2222,46 +1420,9 @@ export const de_DeleteWorkflowCommand = async (output, context) => {
|
|
|
2222
1420
|
Object.assign(contents, doc);
|
|
2223
1421
|
return contents;
|
|
2224
1422
|
};
|
|
2225
|
-
const de_DeleteWorkflowCommandError = async (output, context) => {
|
|
2226
|
-
const parsedOutput = {
|
|
2227
|
-
...output,
|
|
2228
|
-
body: await parseErrorBody(output.body, context),
|
|
2229
|
-
};
|
|
2230
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2231
|
-
switch (errorCode) {
|
|
2232
|
-
case "CallRateLimitExceededException":
|
|
2233
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2234
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "ClientException":
|
|
2236
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2237
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "ForbiddenException":
|
|
2239
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2240
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "InvalidRequestException":
|
|
2242
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2243
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "ResourceDependencyException":
|
|
2245
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2246
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ServiceException":
|
|
2248
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2249
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "ServiceUnavailableException":
|
|
2251
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2252
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2253
|
-
default:
|
|
2254
|
-
const parsedBody = parsedOutput.body;
|
|
2255
|
-
return throwDefaultError({
|
|
2256
|
-
output,
|
|
2257
|
-
parsedBody,
|
|
2258
|
-
errorCode,
|
|
2259
|
-
});
|
|
2260
|
-
}
|
|
2261
|
-
};
|
|
2262
1423
|
export const de_GetComponentCommand = async (output, context) => {
|
|
2263
1424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2264
|
-
return
|
|
1425
|
+
return de_CommandError(output, context);
|
|
2265
1426
|
}
|
|
2266
1427
|
const contents = map({
|
|
2267
1428
|
$metadata: deserializeMetadata(output),
|
|
@@ -2274,43 +1435,9 @@ export const de_GetComponentCommand = async (output, context) => {
|
|
|
2274
1435
|
Object.assign(contents, doc);
|
|
2275
1436
|
return contents;
|
|
2276
1437
|
};
|
|
2277
|
-
const de_GetComponentCommandError = async (output, context) => {
|
|
2278
|
-
const parsedOutput = {
|
|
2279
|
-
...output,
|
|
2280
|
-
body: await parseErrorBody(output.body, context),
|
|
2281
|
-
};
|
|
2282
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2283
|
-
switch (errorCode) {
|
|
2284
|
-
case "CallRateLimitExceededException":
|
|
2285
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2286
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "ClientException":
|
|
2288
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2289
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "ForbiddenException":
|
|
2291
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2292
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2293
|
-
case "InvalidRequestException":
|
|
2294
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2295
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2296
|
-
case "ServiceException":
|
|
2297
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2298
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2299
|
-
case "ServiceUnavailableException":
|
|
2300
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2301
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2302
|
-
default:
|
|
2303
|
-
const parsedBody = parsedOutput.body;
|
|
2304
|
-
return throwDefaultError({
|
|
2305
|
-
output,
|
|
2306
|
-
parsedBody,
|
|
2307
|
-
errorCode,
|
|
2308
|
-
});
|
|
2309
|
-
}
|
|
2310
|
-
};
|
|
2311
1438
|
export const de_GetComponentPolicyCommand = async (output, context) => {
|
|
2312
1439
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2313
|
-
return
|
|
1440
|
+
return de_CommandError(output, context);
|
|
2314
1441
|
}
|
|
2315
1442
|
const contents = map({
|
|
2316
1443
|
$metadata: deserializeMetadata(output),
|
|
@@ -2323,43 +1450,9 @@ export const de_GetComponentPolicyCommand = async (output, context) => {
|
|
|
2323
1450
|
Object.assign(contents, doc);
|
|
2324
1451
|
return contents;
|
|
2325
1452
|
};
|
|
2326
|
-
const de_GetComponentPolicyCommandError = async (output, context) => {
|
|
2327
|
-
const parsedOutput = {
|
|
2328
|
-
...output,
|
|
2329
|
-
body: await parseErrorBody(output.body, context),
|
|
2330
|
-
};
|
|
2331
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
|
-
switch (errorCode) {
|
|
2333
|
-
case "CallRateLimitExceededException":
|
|
2334
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2335
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "ForbiddenException":
|
|
2337
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2338
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "InvalidRequestException":
|
|
2340
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2341
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "ResourceNotFoundException":
|
|
2343
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
2344
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2345
|
-
case "ServiceException":
|
|
2346
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2347
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2348
|
-
case "ServiceUnavailableException":
|
|
2349
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2350
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2351
|
-
default:
|
|
2352
|
-
const parsedBody = parsedOutput.body;
|
|
2353
|
-
return throwDefaultError({
|
|
2354
|
-
output,
|
|
2355
|
-
parsedBody,
|
|
2356
|
-
errorCode,
|
|
2357
|
-
});
|
|
2358
|
-
}
|
|
2359
|
-
};
|
|
2360
1453
|
export const de_GetContainerRecipeCommand = async (output, context) => {
|
|
2361
1454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2362
|
-
return
|
|
1455
|
+
return de_CommandError(output, context);
|
|
2363
1456
|
}
|
|
2364
1457
|
const contents = map({
|
|
2365
1458
|
$metadata: deserializeMetadata(output),
|
|
@@ -2372,43 +1465,9 @@ export const de_GetContainerRecipeCommand = async (output, context) => {
|
|
|
2372
1465
|
Object.assign(contents, doc);
|
|
2373
1466
|
return contents;
|
|
2374
1467
|
};
|
|
2375
|
-
const de_GetContainerRecipeCommandError = async (output, context) => {
|
|
2376
|
-
const parsedOutput = {
|
|
2377
|
-
...output,
|
|
2378
|
-
body: await parseErrorBody(output.body, context),
|
|
2379
|
-
};
|
|
2380
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2381
|
-
switch (errorCode) {
|
|
2382
|
-
case "CallRateLimitExceededException":
|
|
2383
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2384
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "ClientException":
|
|
2386
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2387
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "ForbiddenException":
|
|
2389
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2390
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "InvalidRequestException":
|
|
2392
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2393
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "ServiceException":
|
|
2395
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2396
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "ServiceUnavailableException":
|
|
2398
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2399
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2400
|
-
default:
|
|
2401
|
-
const parsedBody = parsedOutput.body;
|
|
2402
|
-
return throwDefaultError({
|
|
2403
|
-
output,
|
|
2404
|
-
parsedBody,
|
|
2405
|
-
errorCode,
|
|
2406
|
-
});
|
|
2407
|
-
}
|
|
2408
|
-
};
|
|
2409
1468
|
export const de_GetContainerRecipePolicyCommand = async (output, context) => {
|
|
2410
1469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2411
|
-
return
|
|
1470
|
+
return de_CommandError(output, context);
|
|
2412
1471
|
}
|
|
2413
1472
|
const contents = map({
|
|
2414
1473
|
$metadata: deserializeMetadata(output),
|
|
@@ -2421,43 +1480,9 @@ export const de_GetContainerRecipePolicyCommand = async (output, context) => {
|
|
|
2421
1480
|
Object.assign(contents, doc);
|
|
2422
1481
|
return contents;
|
|
2423
1482
|
};
|
|
2424
|
-
const de_GetContainerRecipePolicyCommandError = async (output, context) => {
|
|
2425
|
-
const parsedOutput = {
|
|
2426
|
-
...output,
|
|
2427
|
-
body: await parseErrorBody(output.body, context),
|
|
2428
|
-
};
|
|
2429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2430
|
-
switch (errorCode) {
|
|
2431
|
-
case "CallRateLimitExceededException":
|
|
2432
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2433
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2434
|
-
case "ForbiddenException":
|
|
2435
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2436
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2437
|
-
case "InvalidRequestException":
|
|
2438
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2439
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2440
|
-
case "ResourceNotFoundException":
|
|
2441
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
2442
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2443
|
-
case "ServiceException":
|
|
2444
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2445
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2446
|
-
case "ServiceUnavailableException":
|
|
2447
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2448
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2449
|
-
default:
|
|
2450
|
-
const parsedBody = parsedOutput.body;
|
|
2451
|
-
return throwDefaultError({
|
|
2452
|
-
output,
|
|
2453
|
-
parsedBody,
|
|
2454
|
-
errorCode,
|
|
2455
|
-
});
|
|
2456
|
-
}
|
|
2457
|
-
};
|
|
2458
1483
|
export const de_GetDistributionConfigurationCommand = async (output, context) => {
|
|
2459
1484
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2460
|
-
return
|
|
1485
|
+
return de_CommandError(output, context);
|
|
2461
1486
|
}
|
|
2462
1487
|
const contents = map({
|
|
2463
1488
|
$metadata: deserializeMetadata(output),
|
|
@@ -2470,43 +1495,9 @@ export const de_GetDistributionConfigurationCommand = async (output, context) =>
|
|
|
2470
1495
|
Object.assign(contents, doc);
|
|
2471
1496
|
return contents;
|
|
2472
1497
|
};
|
|
2473
|
-
const de_GetDistributionConfigurationCommandError = async (output, context) => {
|
|
2474
|
-
const parsedOutput = {
|
|
2475
|
-
...output,
|
|
2476
|
-
body: await parseErrorBody(output.body, context),
|
|
2477
|
-
};
|
|
2478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2479
|
-
switch (errorCode) {
|
|
2480
|
-
case "CallRateLimitExceededException":
|
|
2481
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2482
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "ClientException":
|
|
2484
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2485
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "ForbiddenException":
|
|
2487
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2488
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "InvalidRequestException":
|
|
2490
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2491
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "ServiceException":
|
|
2493
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2494
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "ServiceUnavailableException":
|
|
2496
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2497
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2498
|
-
default:
|
|
2499
|
-
const parsedBody = parsedOutput.body;
|
|
2500
|
-
return throwDefaultError({
|
|
2501
|
-
output,
|
|
2502
|
-
parsedBody,
|
|
2503
|
-
errorCode,
|
|
2504
|
-
});
|
|
2505
|
-
}
|
|
2506
|
-
};
|
|
2507
1498
|
export const de_GetImageCommand = async (output, context) => {
|
|
2508
1499
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2509
|
-
return
|
|
1500
|
+
return de_CommandError(output, context);
|
|
2510
1501
|
}
|
|
2511
1502
|
const contents = map({
|
|
2512
1503
|
$metadata: deserializeMetadata(output),
|
|
@@ -2519,43 +1510,9 @@ export const de_GetImageCommand = async (output, context) => {
|
|
|
2519
1510
|
Object.assign(contents, doc);
|
|
2520
1511
|
return contents;
|
|
2521
1512
|
};
|
|
2522
|
-
const de_GetImageCommandError = async (output, context) => {
|
|
2523
|
-
const parsedOutput = {
|
|
2524
|
-
...output,
|
|
2525
|
-
body: await parseErrorBody(output.body, context),
|
|
2526
|
-
};
|
|
2527
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2528
|
-
switch (errorCode) {
|
|
2529
|
-
case "CallRateLimitExceededException":
|
|
2530
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2531
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2532
|
-
case "ClientException":
|
|
2533
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2534
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2535
|
-
case "ForbiddenException":
|
|
2536
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2537
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2538
|
-
case "InvalidRequestException":
|
|
2539
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2540
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2541
|
-
case "ServiceException":
|
|
2542
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2543
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2544
|
-
case "ServiceUnavailableException":
|
|
2545
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2546
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2547
|
-
default:
|
|
2548
|
-
const parsedBody = parsedOutput.body;
|
|
2549
|
-
return throwDefaultError({
|
|
2550
|
-
output,
|
|
2551
|
-
parsedBody,
|
|
2552
|
-
errorCode,
|
|
2553
|
-
});
|
|
2554
|
-
}
|
|
2555
|
-
};
|
|
2556
1513
|
export const de_GetImagePipelineCommand = async (output, context) => {
|
|
2557
1514
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2558
|
-
return
|
|
1515
|
+
return de_CommandError(output, context);
|
|
2559
1516
|
}
|
|
2560
1517
|
const contents = map({
|
|
2561
1518
|
$metadata: deserializeMetadata(output),
|
|
@@ -2568,43 +1525,9 @@ export const de_GetImagePipelineCommand = async (output, context) => {
|
|
|
2568
1525
|
Object.assign(contents, doc);
|
|
2569
1526
|
return contents;
|
|
2570
1527
|
};
|
|
2571
|
-
const de_GetImagePipelineCommandError = async (output, context) => {
|
|
2572
|
-
const parsedOutput = {
|
|
2573
|
-
...output,
|
|
2574
|
-
body: await parseErrorBody(output.body, context),
|
|
2575
|
-
};
|
|
2576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
|
-
switch (errorCode) {
|
|
2578
|
-
case "CallRateLimitExceededException":
|
|
2579
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2580
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2581
|
-
case "ClientException":
|
|
2582
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2583
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "ForbiddenException":
|
|
2585
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2586
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "InvalidRequestException":
|
|
2588
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2589
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "ServiceException":
|
|
2591
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2592
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "ServiceUnavailableException":
|
|
2594
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2595
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2596
|
-
default:
|
|
2597
|
-
const parsedBody = parsedOutput.body;
|
|
2598
|
-
return throwDefaultError({
|
|
2599
|
-
output,
|
|
2600
|
-
parsedBody,
|
|
2601
|
-
errorCode,
|
|
2602
|
-
});
|
|
2603
|
-
}
|
|
2604
|
-
};
|
|
2605
1528
|
export const de_GetImagePolicyCommand = async (output, context) => {
|
|
2606
1529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2607
|
-
return
|
|
1530
|
+
return de_CommandError(output, context);
|
|
2608
1531
|
}
|
|
2609
1532
|
const contents = map({
|
|
2610
1533
|
$metadata: deserializeMetadata(output),
|
|
@@ -2617,43 +1540,9 @@ export const de_GetImagePolicyCommand = async (output, context) => {
|
|
|
2617
1540
|
Object.assign(contents, doc);
|
|
2618
1541
|
return contents;
|
|
2619
1542
|
};
|
|
2620
|
-
const de_GetImagePolicyCommandError = async (output, context) => {
|
|
2621
|
-
const parsedOutput = {
|
|
2622
|
-
...output,
|
|
2623
|
-
body: await parseErrorBody(output.body, context),
|
|
2624
|
-
};
|
|
2625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2626
|
-
switch (errorCode) {
|
|
2627
|
-
case "CallRateLimitExceededException":
|
|
2628
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2629
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "ForbiddenException":
|
|
2631
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2632
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2633
|
-
case "InvalidRequestException":
|
|
2634
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2635
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2636
|
-
case "ResourceNotFoundException":
|
|
2637
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
2638
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2639
|
-
case "ServiceException":
|
|
2640
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2641
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2642
|
-
case "ServiceUnavailableException":
|
|
2643
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2644
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2645
|
-
default:
|
|
2646
|
-
const parsedBody = parsedOutput.body;
|
|
2647
|
-
return throwDefaultError({
|
|
2648
|
-
output,
|
|
2649
|
-
parsedBody,
|
|
2650
|
-
errorCode,
|
|
2651
|
-
});
|
|
2652
|
-
}
|
|
2653
|
-
};
|
|
2654
1543
|
export const de_GetImageRecipeCommand = async (output, context) => {
|
|
2655
1544
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2656
|
-
return
|
|
1545
|
+
return de_CommandError(output, context);
|
|
2657
1546
|
}
|
|
2658
1547
|
const contents = map({
|
|
2659
1548
|
$metadata: deserializeMetadata(output),
|
|
@@ -2666,43 +1555,9 @@ export const de_GetImageRecipeCommand = async (output, context) => {
|
|
|
2666
1555
|
Object.assign(contents, doc);
|
|
2667
1556
|
return contents;
|
|
2668
1557
|
};
|
|
2669
|
-
const de_GetImageRecipeCommandError = async (output, context) => {
|
|
2670
|
-
const parsedOutput = {
|
|
2671
|
-
...output,
|
|
2672
|
-
body: await parseErrorBody(output.body, context),
|
|
2673
|
-
};
|
|
2674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2675
|
-
switch (errorCode) {
|
|
2676
|
-
case "CallRateLimitExceededException":
|
|
2677
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2678
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2679
|
-
case "ClientException":
|
|
2680
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2681
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2682
|
-
case "ForbiddenException":
|
|
2683
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2684
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2685
|
-
case "InvalidRequestException":
|
|
2686
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2687
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2688
|
-
case "ServiceException":
|
|
2689
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2690
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "ServiceUnavailableException":
|
|
2692
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2693
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2694
|
-
default:
|
|
2695
|
-
const parsedBody = parsedOutput.body;
|
|
2696
|
-
return throwDefaultError({
|
|
2697
|
-
output,
|
|
2698
|
-
parsedBody,
|
|
2699
|
-
errorCode,
|
|
2700
|
-
});
|
|
2701
|
-
}
|
|
2702
|
-
};
|
|
2703
1558
|
export const de_GetImageRecipePolicyCommand = async (output, context) => {
|
|
2704
1559
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2705
|
-
return
|
|
1560
|
+
return de_CommandError(output, context);
|
|
2706
1561
|
}
|
|
2707
1562
|
const contents = map({
|
|
2708
1563
|
$metadata: deserializeMetadata(output),
|
|
@@ -2715,43 +1570,9 @@ export const de_GetImageRecipePolicyCommand = async (output, context) => {
|
|
|
2715
1570
|
Object.assign(contents, doc);
|
|
2716
1571
|
return contents;
|
|
2717
1572
|
};
|
|
2718
|
-
const de_GetImageRecipePolicyCommandError = async (output, context) => {
|
|
2719
|
-
const parsedOutput = {
|
|
2720
|
-
...output,
|
|
2721
|
-
body: await parseErrorBody(output.body, context),
|
|
2722
|
-
};
|
|
2723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2724
|
-
switch (errorCode) {
|
|
2725
|
-
case "CallRateLimitExceededException":
|
|
2726
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2727
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "ForbiddenException":
|
|
2729
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2730
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2731
|
-
case "InvalidRequestException":
|
|
2732
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2733
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2734
|
-
case "ResourceNotFoundException":
|
|
2735
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
2736
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2737
|
-
case "ServiceException":
|
|
2738
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2739
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2740
|
-
case "ServiceUnavailableException":
|
|
2741
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2742
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2743
|
-
default:
|
|
2744
|
-
const parsedBody = parsedOutput.body;
|
|
2745
|
-
return throwDefaultError({
|
|
2746
|
-
output,
|
|
2747
|
-
parsedBody,
|
|
2748
|
-
errorCode,
|
|
2749
|
-
});
|
|
2750
|
-
}
|
|
2751
|
-
};
|
|
2752
1573
|
export const de_GetInfrastructureConfigurationCommand = async (output, context) => {
|
|
2753
1574
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2754
|
-
return
|
|
1575
|
+
return de_CommandError(output, context);
|
|
2755
1576
|
}
|
|
2756
1577
|
const contents = map({
|
|
2757
1578
|
$metadata: deserializeMetadata(output),
|
|
@@ -2764,43 +1585,9 @@ export const de_GetInfrastructureConfigurationCommand = async (output, context)
|
|
|
2764
1585
|
Object.assign(contents, doc);
|
|
2765
1586
|
return contents;
|
|
2766
1587
|
};
|
|
2767
|
-
const de_GetInfrastructureConfigurationCommandError = async (output, context) => {
|
|
2768
|
-
const parsedOutput = {
|
|
2769
|
-
...output,
|
|
2770
|
-
body: await parseErrorBody(output.body, context),
|
|
2771
|
-
};
|
|
2772
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2773
|
-
switch (errorCode) {
|
|
2774
|
-
case "CallRateLimitExceededException":
|
|
2775
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2776
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2777
|
-
case "ClientException":
|
|
2778
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2779
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2780
|
-
case "ForbiddenException":
|
|
2781
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2782
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2783
|
-
case "InvalidRequestException":
|
|
2784
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2785
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2786
|
-
case "ServiceException":
|
|
2787
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2788
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2789
|
-
case "ServiceUnavailableException":
|
|
2790
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2791
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2792
|
-
default:
|
|
2793
|
-
const parsedBody = parsedOutput.body;
|
|
2794
|
-
return throwDefaultError({
|
|
2795
|
-
output,
|
|
2796
|
-
parsedBody,
|
|
2797
|
-
errorCode,
|
|
2798
|
-
});
|
|
2799
|
-
}
|
|
2800
|
-
};
|
|
2801
1588
|
export const de_GetLifecycleExecutionCommand = async (output, context) => {
|
|
2802
1589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2803
|
-
return
|
|
1590
|
+
return de_CommandError(output, context);
|
|
2804
1591
|
}
|
|
2805
1592
|
const contents = map({
|
|
2806
1593
|
$metadata: deserializeMetadata(output),
|
|
@@ -2812,43 +1599,9 @@ export const de_GetLifecycleExecutionCommand = async (output, context) => {
|
|
|
2812
1599
|
Object.assign(contents, doc);
|
|
2813
1600
|
return contents;
|
|
2814
1601
|
};
|
|
2815
|
-
const de_GetLifecycleExecutionCommandError = async (output, context) => {
|
|
2816
|
-
const parsedOutput = {
|
|
2817
|
-
...output,
|
|
2818
|
-
body: await parseErrorBody(output.body, context),
|
|
2819
|
-
};
|
|
2820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2821
|
-
switch (errorCode) {
|
|
2822
|
-
case "CallRateLimitExceededException":
|
|
2823
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2824
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2825
|
-
case "ClientException":
|
|
2826
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2827
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "ForbiddenException":
|
|
2829
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2830
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "InvalidRequestException":
|
|
2832
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2833
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "ServiceException":
|
|
2835
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2836
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "ServiceUnavailableException":
|
|
2838
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2839
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2840
|
-
default:
|
|
2841
|
-
const parsedBody = parsedOutput.body;
|
|
2842
|
-
return throwDefaultError({
|
|
2843
|
-
output,
|
|
2844
|
-
parsedBody,
|
|
2845
|
-
errorCode,
|
|
2846
|
-
});
|
|
2847
|
-
}
|
|
2848
|
-
};
|
|
2849
1602
|
export const de_GetLifecyclePolicyCommand = async (output, context) => {
|
|
2850
1603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2851
|
-
return
|
|
1604
|
+
return de_CommandError(output, context);
|
|
2852
1605
|
}
|
|
2853
1606
|
const contents = map({
|
|
2854
1607
|
$metadata: deserializeMetadata(output),
|
|
@@ -2860,43 +1613,9 @@ export const de_GetLifecyclePolicyCommand = async (output, context) => {
|
|
|
2860
1613
|
Object.assign(contents, doc);
|
|
2861
1614
|
return contents;
|
|
2862
1615
|
};
|
|
2863
|
-
const de_GetLifecyclePolicyCommandError = async (output, context) => {
|
|
2864
|
-
const parsedOutput = {
|
|
2865
|
-
...output,
|
|
2866
|
-
body: await parseErrorBody(output.body, context),
|
|
2867
|
-
};
|
|
2868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2869
|
-
switch (errorCode) {
|
|
2870
|
-
case "CallRateLimitExceededException":
|
|
2871
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2872
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2873
|
-
case "ClientException":
|
|
2874
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2875
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2876
|
-
case "ForbiddenException":
|
|
2877
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2878
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2879
|
-
case "InvalidRequestException":
|
|
2880
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2881
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2882
|
-
case "ServiceException":
|
|
2883
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2884
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2885
|
-
case "ServiceUnavailableException":
|
|
2886
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2887
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2888
|
-
default:
|
|
2889
|
-
const parsedBody = parsedOutput.body;
|
|
2890
|
-
return throwDefaultError({
|
|
2891
|
-
output,
|
|
2892
|
-
parsedBody,
|
|
2893
|
-
errorCode,
|
|
2894
|
-
});
|
|
2895
|
-
}
|
|
2896
|
-
};
|
|
2897
1616
|
export const de_GetWorkflowCommand = async (output, context) => {
|
|
2898
1617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2899
|
-
return
|
|
1618
|
+
return de_CommandError(output, context);
|
|
2900
1619
|
}
|
|
2901
1620
|
const contents = map({
|
|
2902
1621
|
$metadata: deserializeMetadata(output),
|
|
@@ -2908,43 +1627,9 @@ export const de_GetWorkflowCommand = async (output, context) => {
|
|
|
2908
1627
|
Object.assign(contents, doc);
|
|
2909
1628
|
return contents;
|
|
2910
1629
|
};
|
|
2911
|
-
const de_GetWorkflowCommandError = async (output, context) => {
|
|
2912
|
-
const parsedOutput = {
|
|
2913
|
-
...output,
|
|
2914
|
-
body: await parseErrorBody(output.body, context),
|
|
2915
|
-
};
|
|
2916
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2917
|
-
switch (errorCode) {
|
|
2918
|
-
case "CallRateLimitExceededException":
|
|
2919
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2920
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2921
|
-
case "ClientException":
|
|
2922
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2923
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2924
|
-
case "ForbiddenException":
|
|
2925
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2926
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2927
|
-
case "InvalidRequestException":
|
|
2928
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2929
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2930
|
-
case "ServiceException":
|
|
2931
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2932
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2933
|
-
case "ServiceUnavailableException":
|
|
2934
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2935
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2936
|
-
default:
|
|
2937
|
-
const parsedBody = parsedOutput.body;
|
|
2938
|
-
return throwDefaultError({
|
|
2939
|
-
output,
|
|
2940
|
-
parsedBody,
|
|
2941
|
-
errorCode,
|
|
2942
|
-
});
|
|
2943
|
-
}
|
|
2944
|
-
};
|
|
2945
1630
|
export const de_GetWorkflowExecutionCommand = async (output, context) => {
|
|
2946
1631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2947
|
-
return
|
|
1632
|
+
return de_CommandError(output, context);
|
|
2948
1633
|
}
|
|
2949
1634
|
const contents = map({
|
|
2950
1635
|
$metadata: deserializeMetadata(output),
|
|
@@ -2969,43 +1654,9 @@ export const de_GetWorkflowExecutionCommand = async (output, context) => {
|
|
|
2969
1654
|
Object.assign(contents, doc);
|
|
2970
1655
|
return contents;
|
|
2971
1656
|
};
|
|
2972
|
-
const de_GetWorkflowExecutionCommandError = async (output, context) => {
|
|
2973
|
-
const parsedOutput = {
|
|
2974
|
-
...output,
|
|
2975
|
-
body: await parseErrorBody(output.body, context),
|
|
2976
|
-
};
|
|
2977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2978
|
-
switch (errorCode) {
|
|
2979
|
-
case "CallRateLimitExceededException":
|
|
2980
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2981
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "ClientException":
|
|
2983
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2984
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "ForbiddenException":
|
|
2986
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2987
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "InvalidRequestException":
|
|
2989
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2990
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2991
|
-
case "ServiceException":
|
|
2992
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2993
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2994
|
-
case "ServiceUnavailableException":
|
|
2995
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2996
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2997
|
-
default:
|
|
2998
|
-
const parsedBody = parsedOutput.body;
|
|
2999
|
-
return throwDefaultError({
|
|
3000
|
-
output,
|
|
3001
|
-
parsedBody,
|
|
3002
|
-
errorCode,
|
|
3003
|
-
});
|
|
3004
|
-
}
|
|
3005
|
-
};
|
|
3006
1657
|
export const de_GetWorkflowStepExecutionCommand = async (output, context) => {
|
|
3007
1658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3008
|
-
return
|
|
1659
|
+
return de_CommandError(output, context);
|
|
3009
1660
|
}
|
|
3010
1661
|
const contents = map({
|
|
3011
1662
|
$metadata: deserializeMetadata(output),
|
|
@@ -3033,43 +1684,9 @@ export const de_GetWorkflowStepExecutionCommand = async (output, context) => {
|
|
|
3033
1684
|
Object.assign(contents, doc);
|
|
3034
1685
|
return contents;
|
|
3035
1686
|
};
|
|
3036
|
-
const de_GetWorkflowStepExecutionCommandError = async (output, context) => {
|
|
3037
|
-
const parsedOutput = {
|
|
3038
|
-
...output,
|
|
3039
|
-
body: await parseErrorBody(output.body, context),
|
|
3040
|
-
};
|
|
3041
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3042
|
-
switch (errorCode) {
|
|
3043
|
-
case "CallRateLimitExceededException":
|
|
3044
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3045
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3046
|
-
case "ClientException":
|
|
3047
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3048
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3049
|
-
case "ForbiddenException":
|
|
3050
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3051
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3052
|
-
case "InvalidRequestException":
|
|
3053
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3054
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3055
|
-
case "ServiceException":
|
|
3056
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3057
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3058
|
-
case "ServiceUnavailableException":
|
|
3059
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3060
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3061
|
-
default:
|
|
3062
|
-
const parsedBody = parsedOutput.body;
|
|
3063
|
-
return throwDefaultError({
|
|
3064
|
-
output,
|
|
3065
|
-
parsedBody,
|
|
3066
|
-
errorCode,
|
|
3067
|
-
});
|
|
3068
|
-
}
|
|
3069
|
-
};
|
|
3070
1687
|
export const de_ImportComponentCommand = async (output, context) => {
|
|
3071
1688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3072
|
-
return
|
|
1689
|
+
return de_CommandError(output, context);
|
|
3073
1690
|
}
|
|
3074
1691
|
const contents = map({
|
|
3075
1692
|
$metadata: deserializeMetadata(output),
|
|
@@ -3083,55 +1700,9 @@ export const de_ImportComponentCommand = async (output, context) => {
|
|
|
3083
1700
|
Object.assign(contents, doc);
|
|
3084
1701
|
return contents;
|
|
3085
1702
|
};
|
|
3086
|
-
const de_ImportComponentCommandError = async (output, context) => {
|
|
3087
|
-
const parsedOutput = {
|
|
3088
|
-
...output,
|
|
3089
|
-
body: await parseErrorBody(output.body, context),
|
|
3090
|
-
};
|
|
3091
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3092
|
-
switch (errorCode) {
|
|
3093
|
-
case "CallRateLimitExceededException":
|
|
3094
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3095
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3096
|
-
case "ClientException":
|
|
3097
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3098
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3099
|
-
case "ForbiddenException":
|
|
3100
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3101
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3102
|
-
case "IdempotentParameterMismatchException":
|
|
3103
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
3104
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
3105
|
-
case "InvalidParameterCombinationException":
|
|
3106
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
3107
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3108
|
-
case "InvalidRequestException":
|
|
3109
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3110
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3111
|
-
case "InvalidVersionNumberException":
|
|
3112
|
-
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
3113
|
-
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
3114
|
-
case "ResourceInUseException":
|
|
3115
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
3116
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3117
|
-
case "ServiceException":
|
|
3118
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3119
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3120
|
-
case "ServiceUnavailableException":
|
|
3121
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3122
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3123
|
-
default:
|
|
3124
|
-
const parsedBody = parsedOutput.body;
|
|
3125
|
-
return throwDefaultError({
|
|
3126
|
-
output,
|
|
3127
|
-
parsedBody,
|
|
3128
|
-
errorCode,
|
|
3129
|
-
});
|
|
3130
|
-
}
|
|
3131
|
-
};
|
|
3132
1703
|
export const de_ImportVmImageCommand = async (output, context) => {
|
|
3133
1704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3134
|
-
return
|
|
1705
|
+
return de_CommandError(output, context);
|
|
3135
1706
|
}
|
|
3136
1707
|
const contents = map({
|
|
3137
1708
|
$metadata: deserializeMetadata(output),
|
|
@@ -3145,34 +1716,9 @@ export const de_ImportVmImageCommand = async (output, context) => {
|
|
|
3145
1716
|
Object.assign(contents, doc);
|
|
3146
1717
|
return contents;
|
|
3147
1718
|
};
|
|
3148
|
-
const de_ImportVmImageCommandError = async (output, context) => {
|
|
3149
|
-
const parsedOutput = {
|
|
3150
|
-
...output,
|
|
3151
|
-
body: await parseErrorBody(output.body, context),
|
|
3152
|
-
};
|
|
3153
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3154
|
-
switch (errorCode) {
|
|
3155
|
-
case "ClientException":
|
|
3156
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3157
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3158
|
-
case "ServiceException":
|
|
3159
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3160
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3161
|
-
case "ServiceUnavailableException":
|
|
3162
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3163
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3164
|
-
default:
|
|
3165
|
-
const parsedBody = parsedOutput.body;
|
|
3166
|
-
return throwDefaultError({
|
|
3167
|
-
output,
|
|
3168
|
-
parsedBody,
|
|
3169
|
-
errorCode,
|
|
3170
|
-
});
|
|
3171
|
-
}
|
|
3172
|
-
};
|
|
3173
1719
|
export const de_ListComponentBuildVersionsCommand = async (output, context) => {
|
|
3174
1720
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3175
|
-
return
|
|
1721
|
+
return de_CommandError(output, context);
|
|
3176
1722
|
}
|
|
3177
1723
|
const contents = map({
|
|
3178
1724
|
$metadata: deserializeMetadata(output),
|
|
@@ -3186,46 +1732,9 @@ export const de_ListComponentBuildVersionsCommand = async (output, context) => {
|
|
|
3186
1732
|
Object.assign(contents, doc);
|
|
3187
1733
|
return contents;
|
|
3188
1734
|
};
|
|
3189
|
-
const de_ListComponentBuildVersionsCommandError = async (output, context) => {
|
|
3190
|
-
const parsedOutput = {
|
|
3191
|
-
...output,
|
|
3192
|
-
body: await parseErrorBody(output.body, context),
|
|
3193
|
-
};
|
|
3194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3195
|
-
switch (errorCode) {
|
|
3196
|
-
case "CallRateLimitExceededException":
|
|
3197
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3198
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3199
|
-
case "ClientException":
|
|
3200
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3201
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3202
|
-
case "ForbiddenException":
|
|
3203
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3204
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3205
|
-
case "InvalidPaginationTokenException":
|
|
3206
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3207
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3208
|
-
case "InvalidRequestException":
|
|
3209
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3210
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3211
|
-
case "ServiceException":
|
|
3212
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3213
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3214
|
-
case "ServiceUnavailableException":
|
|
3215
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3216
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3217
|
-
default:
|
|
3218
|
-
const parsedBody = parsedOutput.body;
|
|
3219
|
-
return throwDefaultError({
|
|
3220
|
-
output,
|
|
3221
|
-
parsedBody,
|
|
3222
|
-
errorCode,
|
|
3223
|
-
});
|
|
3224
|
-
}
|
|
3225
|
-
};
|
|
3226
1735
|
export const de_ListComponentsCommand = async (output, context) => {
|
|
3227
1736
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3228
|
-
return
|
|
1737
|
+
return de_CommandError(output, context);
|
|
3229
1738
|
}
|
|
3230
1739
|
const contents = map({
|
|
3231
1740
|
$metadata: deserializeMetadata(output),
|
|
@@ -3239,46 +1748,9 @@ export const de_ListComponentsCommand = async (output, context) => {
|
|
|
3239
1748
|
Object.assign(contents, doc);
|
|
3240
1749
|
return contents;
|
|
3241
1750
|
};
|
|
3242
|
-
const de_ListComponentsCommandError = async (output, context) => {
|
|
3243
|
-
const parsedOutput = {
|
|
3244
|
-
...output,
|
|
3245
|
-
body: await parseErrorBody(output.body, context),
|
|
3246
|
-
};
|
|
3247
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3248
|
-
switch (errorCode) {
|
|
3249
|
-
case "CallRateLimitExceededException":
|
|
3250
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3251
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3252
|
-
case "ClientException":
|
|
3253
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3254
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3255
|
-
case "ForbiddenException":
|
|
3256
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3257
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3258
|
-
case "InvalidPaginationTokenException":
|
|
3259
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3260
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3261
|
-
case "InvalidRequestException":
|
|
3262
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3263
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3264
|
-
case "ServiceException":
|
|
3265
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3266
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3267
|
-
case "ServiceUnavailableException":
|
|
3268
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3269
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3270
|
-
default:
|
|
3271
|
-
const parsedBody = parsedOutput.body;
|
|
3272
|
-
return throwDefaultError({
|
|
3273
|
-
output,
|
|
3274
|
-
parsedBody,
|
|
3275
|
-
errorCode,
|
|
3276
|
-
});
|
|
3277
|
-
}
|
|
3278
|
-
};
|
|
3279
1751
|
export const de_ListContainerRecipesCommand = async (output, context) => {
|
|
3280
1752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3281
|
-
return
|
|
1753
|
+
return de_CommandError(output, context);
|
|
3282
1754
|
}
|
|
3283
1755
|
const contents = map({
|
|
3284
1756
|
$metadata: deserializeMetadata(output),
|
|
@@ -3292,46 +1764,9 @@ export const de_ListContainerRecipesCommand = async (output, context) => {
|
|
|
3292
1764
|
Object.assign(contents, doc);
|
|
3293
1765
|
return contents;
|
|
3294
1766
|
};
|
|
3295
|
-
const de_ListContainerRecipesCommandError = async (output, context) => {
|
|
3296
|
-
const parsedOutput = {
|
|
3297
|
-
...output,
|
|
3298
|
-
body: await parseErrorBody(output.body, context),
|
|
3299
|
-
};
|
|
3300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3301
|
-
switch (errorCode) {
|
|
3302
|
-
case "CallRateLimitExceededException":
|
|
3303
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3304
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3305
|
-
case "ClientException":
|
|
3306
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3307
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3308
|
-
case "ForbiddenException":
|
|
3309
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3310
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3311
|
-
case "InvalidPaginationTokenException":
|
|
3312
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3313
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3314
|
-
case "InvalidRequestException":
|
|
3315
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3316
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3317
|
-
case "ServiceException":
|
|
3318
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3319
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3320
|
-
case "ServiceUnavailableException":
|
|
3321
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3322
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3323
|
-
default:
|
|
3324
|
-
const parsedBody = parsedOutput.body;
|
|
3325
|
-
return throwDefaultError({
|
|
3326
|
-
output,
|
|
3327
|
-
parsedBody,
|
|
3328
|
-
errorCode,
|
|
3329
|
-
});
|
|
3330
|
-
}
|
|
3331
|
-
};
|
|
3332
1767
|
export const de_ListDistributionConfigurationsCommand = async (output, context) => {
|
|
3333
1768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3334
|
-
return
|
|
1769
|
+
return de_CommandError(output, context);
|
|
3335
1770
|
}
|
|
3336
1771
|
const contents = map({
|
|
3337
1772
|
$metadata: deserializeMetadata(output),
|
|
@@ -3345,46 +1780,9 @@ export const de_ListDistributionConfigurationsCommand = async (output, context)
|
|
|
3345
1780
|
Object.assign(contents, doc);
|
|
3346
1781
|
return contents;
|
|
3347
1782
|
};
|
|
3348
|
-
const de_ListDistributionConfigurationsCommandError = async (output, context) => {
|
|
3349
|
-
const parsedOutput = {
|
|
3350
|
-
...output,
|
|
3351
|
-
body: await parseErrorBody(output.body, context),
|
|
3352
|
-
};
|
|
3353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3354
|
-
switch (errorCode) {
|
|
3355
|
-
case "CallRateLimitExceededException":
|
|
3356
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3357
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3358
|
-
case "ClientException":
|
|
3359
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3360
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3361
|
-
case "ForbiddenException":
|
|
3362
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3363
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "InvalidPaginationTokenException":
|
|
3365
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3366
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3367
|
-
case "InvalidRequestException":
|
|
3368
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3369
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3370
|
-
case "ServiceException":
|
|
3371
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3372
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3373
|
-
case "ServiceUnavailableException":
|
|
3374
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3375
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3376
|
-
default:
|
|
3377
|
-
const parsedBody = parsedOutput.body;
|
|
3378
|
-
return throwDefaultError({
|
|
3379
|
-
output,
|
|
3380
|
-
parsedBody,
|
|
3381
|
-
errorCode,
|
|
3382
|
-
});
|
|
3383
|
-
}
|
|
3384
|
-
};
|
|
3385
1783
|
export const de_ListImageBuildVersionsCommand = async (output, context) => {
|
|
3386
1784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3387
|
-
return
|
|
1785
|
+
return de_CommandError(output, context);
|
|
3388
1786
|
}
|
|
3389
1787
|
const contents = map({
|
|
3390
1788
|
$metadata: deserializeMetadata(output),
|
|
@@ -3398,46 +1796,9 @@ export const de_ListImageBuildVersionsCommand = async (output, context) => {
|
|
|
3398
1796
|
Object.assign(contents, doc);
|
|
3399
1797
|
return contents;
|
|
3400
1798
|
};
|
|
3401
|
-
const de_ListImageBuildVersionsCommandError = 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 "CallRateLimitExceededException":
|
|
3409
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3410
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "ClientException":
|
|
3412
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3413
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "ForbiddenException":
|
|
3415
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3416
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3417
|
-
case "InvalidPaginationTokenException":
|
|
3418
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3419
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3420
|
-
case "InvalidRequestException":
|
|
3421
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3422
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3423
|
-
case "ServiceException":
|
|
3424
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3425
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3426
|
-
case "ServiceUnavailableException":
|
|
3427
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3428
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3429
|
-
default:
|
|
3430
|
-
const parsedBody = parsedOutput.body;
|
|
3431
|
-
return throwDefaultError({
|
|
3432
|
-
output,
|
|
3433
|
-
parsedBody,
|
|
3434
|
-
errorCode,
|
|
3435
|
-
});
|
|
3436
|
-
}
|
|
3437
|
-
};
|
|
3438
1799
|
export const de_ListImagePackagesCommand = async (output, context) => {
|
|
3439
1800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3440
|
-
return
|
|
1801
|
+
return de_CommandError(output, context);
|
|
3441
1802
|
}
|
|
3442
1803
|
const contents = map({
|
|
3443
1804
|
$metadata: deserializeMetadata(output),
|
|
@@ -3451,49 +1812,9 @@ export const de_ListImagePackagesCommand = async (output, context) => {
|
|
|
3451
1812
|
Object.assign(contents, doc);
|
|
3452
1813
|
return contents;
|
|
3453
1814
|
};
|
|
3454
|
-
const de_ListImagePackagesCommandError = async (output, context) => {
|
|
3455
|
-
const parsedOutput = {
|
|
3456
|
-
...output,
|
|
3457
|
-
body: await parseErrorBody(output.body, context),
|
|
3458
|
-
};
|
|
3459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3460
|
-
switch (errorCode) {
|
|
3461
|
-
case "CallRateLimitExceededException":
|
|
3462
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3463
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3464
|
-
case "ClientException":
|
|
3465
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3466
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3467
|
-
case "ForbiddenException":
|
|
3468
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3469
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3470
|
-
case "InvalidPaginationTokenException":
|
|
3471
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3472
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3473
|
-
case "InvalidRequestException":
|
|
3474
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3475
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3476
|
-
case "ResourceNotFoundException":
|
|
3477
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
3478
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3479
|
-
case "ServiceException":
|
|
3480
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3481
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3482
|
-
case "ServiceUnavailableException":
|
|
3483
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3484
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3485
|
-
default:
|
|
3486
|
-
const parsedBody = parsedOutput.body;
|
|
3487
|
-
return throwDefaultError({
|
|
3488
|
-
output,
|
|
3489
|
-
parsedBody,
|
|
3490
|
-
errorCode,
|
|
3491
|
-
});
|
|
3492
|
-
}
|
|
3493
|
-
};
|
|
3494
1815
|
export const de_ListImagePipelineImagesCommand = async (output, context) => {
|
|
3495
1816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3496
|
-
return
|
|
1817
|
+
return de_CommandError(output, context);
|
|
3497
1818
|
}
|
|
3498
1819
|
const contents = map({
|
|
3499
1820
|
$metadata: deserializeMetadata(output),
|
|
@@ -3507,49 +1828,9 @@ export const de_ListImagePipelineImagesCommand = async (output, context) => {
|
|
|
3507
1828
|
Object.assign(contents, doc);
|
|
3508
1829
|
return contents;
|
|
3509
1830
|
};
|
|
3510
|
-
const de_ListImagePipelineImagesCommandError = async (output, context) => {
|
|
3511
|
-
const parsedOutput = {
|
|
3512
|
-
...output,
|
|
3513
|
-
body: await parseErrorBody(output.body, context),
|
|
3514
|
-
};
|
|
3515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3516
|
-
switch (errorCode) {
|
|
3517
|
-
case "CallRateLimitExceededException":
|
|
3518
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3519
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3520
|
-
case "ClientException":
|
|
3521
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3522
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3523
|
-
case "ForbiddenException":
|
|
3524
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3525
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3526
|
-
case "InvalidPaginationTokenException":
|
|
3527
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3528
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3529
|
-
case "InvalidRequestException":
|
|
3530
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3531
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3532
|
-
case "ResourceNotFoundException":
|
|
3533
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
3534
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3535
|
-
case "ServiceException":
|
|
3536
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3537
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3538
|
-
case "ServiceUnavailableException":
|
|
3539
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3540
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3541
|
-
default:
|
|
3542
|
-
const parsedBody = parsedOutput.body;
|
|
3543
|
-
return throwDefaultError({
|
|
3544
|
-
output,
|
|
3545
|
-
parsedBody,
|
|
3546
|
-
errorCode,
|
|
3547
|
-
});
|
|
3548
|
-
}
|
|
3549
|
-
};
|
|
3550
1831
|
export const de_ListImagePipelinesCommand = async (output, context) => {
|
|
3551
1832
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3552
|
-
return
|
|
1833
|
+
return de_CommandError(output, context);
|
|
3553
1834
|
}
|
|
3554
1835
|
const contents = map({
|
|
3555
1836
|
$metadata: deserializeMetadata(output),
|
|
@@ -3563,46 +1844,9 @@ export const de_ListImagePipelinesCommand = async (output, context) => {
|
|
|
3563
1844
|
Object.assign(contents, doc);
|
|
3564
1845
|
return contents;
|
|
3565
1846
|
};
|
|
3566
|
-
const de_ListImagePipelinesCommandError = async (output, context) => {
|
|
3567
|
-
const parsedOutput = {
|
|
3568
|
-
...output,
|
|
3569
|
-
body: await parseErrorBody(output.body, context),
|
|
3570
|
-
};
|
|
3571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3572
|
-
switch (errorCode) {
|
|
3573
|
-
case "CallRateLimitExceededException":
|
|
3574
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3575
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3576
|
-
case "ClientException":
|
|
3577
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3578
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3579
|
-
case "ForbiddenException":
|
|
3580
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3581
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3582
|
-
case "InvalidPaginationTokenException":
|
|
3583
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3584
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3585
|
-
case "InvalidRequestException":
|
|
3586
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3587
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3588
|
-
case "ServiceException":
|
|
3589
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3590
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3591
|
-
case "ServiceUnavailableException":
|
|
3592
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3593
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3594
|
-
default:
|
|
3595
|
-
const parsedBody = parsedOutput.body;
|
|
3596
|
-
return throwDefaultError({
|
|
3597
|
-
output,
|
|
3598
|
-
parsedBody,
|
|
3599
|
-
errorCode,
|
|
3600
|
-
});
|
|
3601
|
-
}
|
|
3602
|
-
};
|
|
3603
1847
|
export const de_ListImageRecipesCommand = async (output, context) => {
|
|
3604
1848
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3605
|
-
return
|
|
1849
|
+
return de_CommandError(output, context);
|
|
3606
1850
|
}
|
|
3607
1851
|
const contents = map({
|
|
3608
1852
|
$metadata: deserializeMetadata(output),
|
|
@@ -3616,46 +1860,9 @@ export const de_ListImageRecipesCommand = async (output, context) => {
|
|
|
3616
1860
|
Object.assign(contents, doc);
|
|
3617
1861
|
return contents;
|
|
3618
1862
|
};
|
|
3619
|
-
const de_ListImageRecipesCommandError = async (output, context) => {
|
|
3620
|
-
const parsedOutput = {
|
|
3621
|
-
...output,
|
|
3622
|
-
body: await parseErrorBody(output.body, context),
|
|
3623
|
-
};
|
|
3624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3625
|
-
switch (errorCode) {
|
|
3626
|
-
case "CallRateLimitExceededException":
|
|
3627
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3628
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3629
|
-
case "ClientException":
|
|
3630
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3631
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3632
|
-
case "ForbiddenException":
|
|
3633
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3634
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3635
|
-
case "InvalidPaginationTokenException":
|
|
3636
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3637
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3638
|
-
case "InvalidRequestException":
|
|
3639
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3640
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3641
|
-
case "ServiceException":
|
|
3642
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3643
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3644
|
-
case "ServiceUnavailableException":
|
|
3645
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3646
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3647
|
-
default:
|
|
3648
|
-
const parsedBody = parsedOutput.body;
|
|
3649
|
-
return throwDefaultError({
|
|
3650
|
-
output,
|
|
3651
|
-
parsedBody,
|
|
3652
|
-
errorCode,
|
|
3653
|
-
});
|
|
3654
|
-
}
|
|
3655
|
-
};
|
|
3656
1863
|
export const de_ListImagesCommand = async (output, context) => {
|
|
3657
1864
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3658
|
-
return
|
|
1865
|
+
return de_CommandError(output, context);
|
|
3659
1866
|
}
|
|
3660
1867
|
const contents = map({
|
|
3661
1868
|
$metadata: deserializeMetadata(output),
|
|
@@ -3669,46 +1876,9 @@ export const de_ListImagesCommand = async (output, context) => {
|
|
|
3669
1876
|
Object.assign(contents, doc);
|
|
3670
1877
|
return contents;
|
|
3671
1878
|
};
|
|
3672
|
-
const de_ListImagesCommandError = async (output, context) => {
|
|
3673
|
-
const parsedOutput = {
|
|
3674
|
-
...output,
|
|
3675
|
-
body: await parseErrorBody(output.body, context),
|
|
3676
|
-
};
|
|
3677
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3678
|
-
switch (errorCode) {
|
|
3679
|
-
case "CallRateLimitExceededException":
|
|
3680
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3681
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3682
|
-
case "ClientException":
|
|
3683
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3684
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3685
|
-
case "ForbiddenException":
|
|
3686
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3687
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3688
|
-
case "InvalidPaginationTokenException":
|
|
3689
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3690
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3691
|
-
case "InvalidRequestException":
|
|
3692
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3693
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3694
|
-
case "ServiceException":
|
|
3695
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3696
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3697
|
-
case "ServiceUnavailableException":
|
|
3698
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3699
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3700
|
-
default:
|
|
3701
|
-
const parsedBody = parsedOutput.body;
|
|
3702
|
-
return throwDefaultError({
|
|
3703
|
-
output,
|
|
3704
|
-
parsedBody,
|
|
3705
|
-
errorCode,
|
|
3706
|
-
});
|
|
3707
|
-
}
|
|
3708
|
-
};
|
|
3709
1879
|
export const de_ListImageScanFindingAggregationsCommand = async (output, context) => {
|
|
3710
1880
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3711
|
-
return
|
|
1881
|
+
return de_CommandError(output, context);
|
|
3712
1882
|
}
|
|
3713
1883
|
const contents = map({
|
|
3714
1884
|
$metadata: deserializeMetadata(output),
|
|
@@ -3723,46 +1893,9 @@ export const de_ListImageScanFindingAggregationsCommand = async (output, context
|
|
|
3723
1893
|
Object.assign(contents, doc);
|
|
3724
1894
|
return contents;
|
|
3725
1895
|
};
|
|
3726
|
-
const de_ListImageScanFindingAggregationsCommandError = async (output, context) => {
|
|
3727
|
-
const parsedOutput = {
|
|
3728
|
-
...output,
|
|
3729
|
-
body: await parseErrorBody(output.body, context),
|
|
3730
|
-
};
|
|
3731
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3732
|
-
switch (errorCode) {
|
|
3733
|
-
case "CallRateLimitExceededException":
|
|
3734
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3735
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3736
|
-
case "ClientException":
|
|
3737
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3738
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3739
|
-
case "ForbiddenException":
|
|
3740
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3741
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3742
|
-
case "InvalidPaginationTokenException":
|
|
3743
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3744
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3745
|
-
case "InvalidRequestException":
|
|
3746
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3747
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3748
|
-
case "ServiceException":
|
|
3749
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3750
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3751
|
-
case "ServiceUnavailableException":
|
|
3752
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3753
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3754
|
-
default:
|
|
3755
|
-
const parsedBody = parsedOutput.body;
|
|
3756
|
-
return throwDefaultError({
|
|
3757
|
-
output,
|
|
3758
|
-
parsedBody,
|
|
3759
|
-
errorCode,
|
|
3760
|
-
});
|
|
3761
|
-
}
|
|
3762
|
-
};
|
|
3763
1896
|
export const de_ListImageScanFindingsCommand = async (output, context) => {
|
|
3764
1897
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3765
|
-
return
|
|
1898
|
+
return de_CommandError(output, context);
|
|
3766
1899
|
}
|
|
3767
1900
|
const contents = map({
|
|
3768
1901
|
$metadata: deserializeMetadata(output),
|
|
@@ -3776,46 +1909,9 @@ export const de_ListImageScanFindingsCommand = async (output, context) => {
|
|
|
3776
1909
|
Object.assign(contents, doc);
|
|
3777
1910
|
return contents;
|
|
3778
1911
|
};
|
|
3779
|
-
const de_ListImageScanFindingsCommandError = async (output, context) => {
|
|
3780
|
-
const parsedOutput = {
|
|
3781
|
-
...output,
|
|
3782
|
-
body: await parseErrorBody(output.body, context),
|
|
3783
|
-
};
|
|
3784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3785
|
-
switch (errorCode) {
|
|
3786
|
-
case "CallRateLimitExceededException":
|
|
3787
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3788
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3789
|
-
case "ClientException":
|
|
3790
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3791
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3792
|
-
case "ForbiddenException":
|
|
3793
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3794
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3795
|
-
case "InvalidPaginationTokenException":
|
|
3796
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3797
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3798
|
-
case "InvalidRequestException":
|
|
3799
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3800
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3801
|
-
case "ServiceException":
|
|
3802
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3803
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3804
|
-
case "ServiceUnavailableException":
|
|
3805
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3806
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3807
|
-
default:
|
|
3808
|
-
const parsedBody = parsedOutput.body;
|
|
3809
|
-
return throwDefaultError({
|
|
3810
|
-
output,
|
|
3811
|
-
parsedBody,
|
|
3812
|
-
errorCode,
|
|
3813
|
-
});
|
|
3814
|
-
}
|
|
3815
|
-
};
|
|
3816
1912
|
export const de_ListInfrastructureConfigurationsCommand = async (output, context) => {
|
|
3817
1913
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3818
|
-
return
|
|
1914
|
+
return de_CommandError(output, context);
|
|
3819
1915
|
}
|
|
3820
1916
|
const contents = map({
|
|
3821
1917
|
$metadata: deserializeMetadata(output),
|
|
@@ -3829,46 +1925,9 @@ export const de_ListInfrastructureConfigurationsCommand = async (output, context
|
|
|
3829
1925
|
Object.assign(contents, doc);
|
|
3830
1926
|
return contents;
|
|
3831
1927
|
};
|
|
3832
|
-
const de_ListInfrastructureConfigurationsCommandError = async (output, context) => {
|
|
3833
|
-
const parsedOutput = {
|
|
3834
|
-
...output,
|
|
3835
|
-
body: await parseErrorBody(output.body, context),
|
|
3836
|
-
};
|
|
3837
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3838
|
-
switch (errorCode) {
|
|
3839
|
-
case "CallRateLimitExceededException":
|
|
3840
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3841
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3842
|
-
case "ClientException":
|
|
3843
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3844
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3845
|
-
case "ForbiddenException":
|
|
3846
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3847
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3848
|
-
case "InvalidPaginationTokenException":
|
|
3849
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3850
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3851
|
-
case "InvalidRequestException":
|
|
3852
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3853
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3854
|
-
case "ServiceException":
|
|
3855
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3856
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3857
|
-
case "ServiceUnavailableException":
|
|
3858
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3859
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3860
|
-
default:
|
|
3861
|
-
const parsedBody = parsedOutput.body;
|
|
3862
|
-
return throwDefaultError({
|
|
3863
|
-
output,
|
|
3864
|
-
parsedBody,
|
|
3865
|
-
errorCode,
|
|
3866
|
-
});
|
|
3867
|
-
}
|
|
3868
|
-
};
|
|
3869
1928
|
export const de_ListLifecycleExecutionResourcesCommand = async (output, context) => {
|
|
3870
1929
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3871
|
-
return
|
|
1930
|
+
return de_CommandError(output, context);
|
|
3872
1931
|
}
|
|
3873
1932
|
const contents = map({
|
|
3874
1933
|
$metadata: deserializeMetadata(output),
|
|
@@ -3883,46 +1942,9 @@ export const de_ListLifecycleExecutionResourcesCommand = async (output, context)
|
|
|
3883
1942
|
Object.assign(contents, doc);
|
|
3884
1943
|
return contents;
|
|
3885
1944
|
};
|
|
3886
|
-
const de_ListLifecycleExecutionResourcesCommandError = async (output, context) => {
|
|
3887
|
-
const parsedOutput = {
|
|
3888
|
-
...output,
|
|
3889
|
-
body: await parseErrorBody(output.body, context),
|
|
3890
|
-
};
|
|
3891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3892
|
-
switch (errorCode) {
|
|
3893
|
-
case "CallRateLimitExceededException":
|
|
3894
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3895
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3896
|
-
case "ClientException":
|
|
3897
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3898
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3899
|
-
case "ForbiddenException":
|
|
3900
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3901
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3902
|
-
case "InvalidPaginationTokenException":
|
|
3903
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3904
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3905
|
-
case "InvalidRequestException":
|
|
3906
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3907
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3908
|
-
case "ServiceException":
|
|
3909
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3910
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3911
|
-
case "ServiceUnavailableException":
|
|
3912
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3913
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3914
|
-
default:
|
|
3915
|
-
const parsedBody = parsedOutput.body;
|
|
3916
|
-
return throwDefaultError({
|
|
3917
|
-
output,
|
|
3918
|
-
parsedBody,
|
|
3919
|
-
errorCode,
|
|
3920
|
-
});
|
|
3921
|
-
}
|
|
3922
|
-
};
|
|
3923
1945
|
export const de_ListLifecycleExecutionsCommand = async (output, context) => {
|
|
3924
1946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3925
|
-
return
|
|
1947
|
+
return de_CommandError(output, context);
|
|
3926
1948
|
}
|
|
3927
1949
|
const contents = map({
|
|
3928
1950
|
$metadata: deserializeMetadata(output),
|
|
@@ -3935,46 +1957,9 @@ export const de_ListLifecycleExecutionsCommand = async (output, context) => {
|
|
|
3935
1957
|
Object.assign(contents, doc);
|
|
3936
1958
|
return contents;
|
|
3937
1959
|
};
|
|
3938
|
-
const de_ListLifecycleExecutionsCommandError = async (output, context) => {
|
|
3939
|
-
const parsedOutput = {
|
|
3940
|
-
...output,
|
|
3941
|
-
body: await parseErrorBody(output.body, context),
|
|
3942
|
-
};
|
|
3943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3944
|
-
switch (errorCode) {
|
|
3945
|
-
case "CallRateLimitExceededException":
|
|
3946
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3947
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3948
|
-
case "ClientException":
|
|
3949
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3950
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3951
|
-
case "ForbiddenException":
|
|
3952
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3953
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3954
|
-
case "InvalidPaginationTokenException":
|
|
3955
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3956
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3957
|
-
case "InvalidRequestException":
|
|
3958
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3959
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3960
|
-
case "ServiceException":
|
|
3961
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3962
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3963
|
-
case "ServiceUnavailableException":
|
|
3964
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3965
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3966
|
-
default:
|
|
3967
|
-
const parsedBody = parsedOutput.body;
|
|
3968
|
-
return throwDefaultError({
|
|
3969
|
-
output,
|
|
3970
|
-
parsedBody,
|
|
3971
|
-
errorCode,
|
|
3972
|
-
});
|
|
3973
|
-
}
|
|
3974
|
-
};
|
|
3975
1960
|
export const de_ListLifecyclePoliciesCommand = async (output, context) => {
|
|
3976
1961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3977
|
-
return
|
|
1962
|
+
return de_CommandError(output, context);
|
|
3978
1963
|
}
|
|
3979
1964
|
const contents = map({
|
|
3980
1965
|
$metadata: deserializeMetadata(output),
|
|
@@ -3987,46 +1972,9 @@ export const de_ListLifecyclePoliciesCommand = async (output, context) => {
|
|
|
3987
1972
|
Object.assign(contents, doc);
|
|
3988
1973
|
return contents;
|
|
3989
1974
|
};
|
|
3990
|
-
const de_ListLifecyclePoliciesCommandError = async (output, context) => {
|
|
3991
|
-
const parsedOutput = {
|
|
3992
|
-
...output,
|
|
3993
|
-
body: await parseErrorBody(output.body, context),
|
|
3994
|
-
};
|
|
3995
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3996
|
-
switch (errorCode) {
|
|
3997
|
-
case "CallRateLimitExceededException":
|
|
3998
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3999
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4000
|
-
case "ClientException":
|
|
4001
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4002
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4003
|
-
case "ForbiddenException":
|
|
4004
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4005
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4006
|
-
case "InvalidPaginationTokenException":
|
|
4007
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4008
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4009
|
-
case "InvalidRequestException":
|
|
4010
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4011
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4012
|
-
case "ServiceException":
|
|
4013
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4014
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4015
|
-
case "ServiceUnavailableException":
|
|
4016
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4017
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4018
|
-
default:
|
|
4019
|
-
const parsedBody = parsedOutput.body;
|
|
4020
|
-
return throwDefaultError({
|
|
4021
|
-
output,
|
|
4022
|
-
parsedBody,
|
|
4023
|
-
errorCode,
|
|
4024
|
-
});
|
|
4025
|
-
}
|
|
4026
|
-
};
|
|
4027
1975
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
4028
1976
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4029
|
-
return
|
|
1977
|
+
return de_CommandError(output, context);
|
|
4030
1978
|
}
|
|
4031
1979
|
const contents = map({
|
|
4032
1980
|
$metadata: deserializeMetadata(output),
|
|
@@ -4038,34 +1986,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
4038
1986
|
Object.assign(contents, doc);
|
|
4039
1987
|
return contents;
|
|
4040
1988
|
};
|
|
4041
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
4042
|
-
const parsedOutput = {
|
|
4043
|
-
...output,
|
|
4044
|
-
body: await parseErrorBody(output.body, context),
|
|
4045
|
-
};
|
|
4046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4047
|
-
switch (errorCode) {
|
|
4048
|
-
case "InvalidParameterException":
|
|
4049
|
-
case "com.amazonaws.imagebuilder#InvalidParameterException":
|
|
4050
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4051
|
-
case "ResourceNotFoundException":
|
|
4052
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4053
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4054
|
-
case "ServiceException":
|
|
4055
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4056
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4057
|
-
default:
|
|
4058
|
-
const parsedBody = parsedOutput.body;
|
|
4059
|
-
return throwDefaultError({
|
|
4060
|
-
output,
|
|
4061
|
-
parsedBody,
|
|
4062
|
-
errorCode,
|
|
4063
|
-
});
|
|
4064
|
-
}
|
|
4065
|
-
};
|
|
4066
1989
|
export const de_ListWaitingWorkflowStepsCommand = async (output, context) => {
|
|
4067
1990
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4068
|
-
return
|
|
1991
|
+
return de_CommandError(output, context);
|
|
4069
1992
|
}
|
|
4070
1993
|
const contents = map({
|
|
4071
1994
|
$metadata: deserializeMetadata(output),
|
|
@@ -4078,46 +2001,9 @@ export const de_ListWaitingWorkflowStepsCommand = async (output, context) => {
|
|
|
4078
2001
|
Object.assign(contents, doc);
|
|
4079
2002
|
return contents;
|
|
4080
2003
|
};
|
|
4081
|
-
const de_ListWaitingWorkflowStepsCommandError = async (output, context) => {
|
|
4082
|
-
const parsedOutput = {
|
|
4083
|
-
...output,
|
|
4084
|
-
body: await parseErrorBody(output.body, context),
|
|
4085
|
-
};
|
|
4086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4087
|
-
switch (errorCode) {
|
|
4088
|
-
case "CallRateLimitExceededException":
|
|
4089
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4090
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4091
|
-
case "ClientException":
|
|
4092
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4093
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4094
|
-
case "ForbiddenException":
|
|
4095
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4096
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4097
|
-
case "InvalidPaginationTokenException":
|
|
4098
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4099
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4100
|
-
case "InvalidRequestException":
|
|
4101
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4102
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4103
|
-
case "ServiceException":
|
|
4104
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4105
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4106
|
-
case "ServiceUnavailableException":
|
|
4107
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4108
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4109
|
-
default:
|
|
4110
|
-
const parsedBody = parsedOutput.body;
|
|
4111
|
-
return throwDefaultError({
|
|
4112
|
-
output,
|
|
4113
|
-
parsedBody,
|
|
4114
|
-
errorCode,
|
|
4115
|
-
});
|
|
4116
|
-
}
|
|
4117
|
-
};
|
|
4118
2004
|
export const de_ListWorkflowBuildVersionsCommand = async (output, context) => {
|
|
4119
2005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4120
|
-
return
|
|
2006
|
+
return de_CommandError(output, context);
|
|
4121
2007
|
}
|
|
4122
2008
|
const contents = map({
|
|
4123
2009
|
$metadata: deserializeMetadata(output),
|
|
@@ -4130,46 +2016,9 @@ export const de_ListWorkflowBuildVersionsCommand = async (output, context) => {
|
|
|
4130
2016
|
Object.assign(contents, doc);
|
|
4131
2017
|
return contents;
|
|
4132
2018
|
};
|
|
4133
|
-
const de_ListWorkflowBuildVersionsCommandError = async (output, context) => {
|
|
4134
|
-
const parsedOutput = {
|
|
4135
|
-
...output,
|
|
4136
|
-
body: await parseErrorBody(output.body, context),
|
|
4137
|
-
};
|
|
4138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4139
|
-
switch (errorCode) {
|
|
4140
|
-
case "CallRateLimitExceededException":
|
|
4141
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4142
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4143
|
-
case "ClientException":
|
|
4144
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4145
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4146
|
-
case "ForbiddenException":
|
|
4147
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4148
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4149
|
-
case "InvalidPaginationTokenException":
|
|
4150
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4151
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4152
|
-
case "InvalidRequestException":
|
|
4153
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4154
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4155
|
-
case "ServiceException":
|
|
4156
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4157
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4158
|
-
case "ServiceUnavailableException":
|
|
4159
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4160
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4161
|
-
default:
|
|
4162
|
-
const parsedBody = parsedOutput.body;
|
|
4163
|
-
return throwDefaultError({
|
|
4164
|
-
output,
|
|
4165
|
-
parsedBody,
|
|
4166
|
-
errorCode,
|
|
4167
|
-
});
|
|
4168
|
-
}
|
|
4169
|
-
};
|
|
4170
2019
|
export const de_ListWorkflowExecutionsCommand = async (output, context) => {
|
|
4171
2020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4172
|
-
return
|
|
2021
|
+
return de_CommandError(output, context);
|
|
4173
2022
|
}
|
|
4174
2023
|
const contents = map({
|
|
4175
2024
|
$metadata: deserializeMetadata(output),
|
|
@@ -4185,46 +2034,9 @@ export const de_ListWorkflowExecutionsCommand = async (output, context) => {
|
|
|
4185
2034
|
Object.assign(contents, doc);
|
|
4186
2035
|
return contents;
|
|
4187
2036
|
};
|
|
4188
|
-
const de_ListWorkflowExecutionsCommandError = async (output, context) => {
|
|
4189
|
-
const parsedOutput = {
|
|
4190
|
-
...output,
|
|
4191
|
-
body: await parseErrorBody(output.body, context),
|
|
4192
|
-
};
|
|
4193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4194
|
-
switch (errorCode) {
|
|
4195
|
-
case "CallRateLimitExceededException":
|
|
4196
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4197
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4198
|
-
case "ClientException":
|
|
4199
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4200
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4201
|
-
case "ForbiddenException":
|
|
4202
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4203
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4204
|
-
case "InvalidPaginationTokenException":
|
|
4205
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4206
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4207
|
-
case "InvalidRequestException":
|
|
4208
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4209
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4210
|
-
case "ServiceException":
|
|
4211
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4212
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4213
|
-
case "ServiceUnavailableException":
|
|
4214
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4215
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4216
|
-
default:
|
|
4217
|
-
const parsedBody = parsedOutput.body;
|
|
4218
|
-
return throwDefaultError({
|
|
4219
|
-
output,
|
|
4220
|
-
parsedBody,
|
|
4221
|
-
errorCode,
|
|
4222
|
-
});
|
|
4223
|
-
}
|
|
4224
|
-
};
|
|
4225
2037
|
export const de_ListWorkflowsCommand = async (output, context) => {
|
|
4226
2038
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4227
|
-
return
|
|
2039
|
+
return de_CommandError(output, context);
|
|
4228
2040
|
}
|
|
4229
2041
|
const contents = map({
|
|
4230
2042
|
$metadata: deserializeMetadata(output),
|
|
@@ -4237,46 +2049,9 @@ export const de_ListWorkflowsCommand = async (output, context) => {
|
|
|
4237
2049
|
Object.assign(contents, doc);
|
|
4238
2050
|
return contents;
|
|
4239
2051
|
};
|
|
4240
|
-
const de_ListWorkflowsCommandError = async (output, context) => {
|
|
4241
|
-
const parsedOutput = {
|
|
4242
|
-
...output,
|
|
4243
|
-
body: await parseErrorBody(output.body, context),
|
|
4244
|
-
};
|
|
4245
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4246
|
-
switch (errorCode) {
|
|
4247
|
-
case "CallRateLimitExceededException":
|
|
4248
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4249
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4250
|
-
case "ClientException":
|
|
4251
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4252
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4253
|
-
case "ForbiddenException":
|
|
4254
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4255
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4256
|
-
case "InvalidPaginationTokenException":
|
|
4257
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4258
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4259
|
-
case "InvalidRequestException":
|
|
4260
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4261
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4262
|
-
case "ServiceException":
|
|
4263
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4264
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4265
|
-
case "ServiceUnavailableException":
|
|
4266
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4267
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4268
|
-
default:
|
|
4269
|
-
const parsedBody = parsedOutput.body;
|
|
4270
|
-
return throwDefaultError({
|
|
4271
|
-
output,
|
|
4272
|
-
parsedBody,
|
|
4273
|
-
errorCode,
|
|
4274
|
-
});
|
|
4275
|
-
}
|
|
4276
|
-
};
|
|
4277
2052
|
export const de_ListWorkflowStepExecutionsCommand = async (output, context) => {
|
|
4278
2053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4279
|
-
return
|
|
2054
|
+
return de_CommandError(output, context);
|
|
4280
2055
|
}
|
|
4281
2056
|
const contents = map({
|
|
4282
2057
|
$metadata: deserializeMetadata(output),
|
|
@@ -4294,46 +2069,9 @@ export const de_ListWorkflowStepExecutionsCommand = async (output, context) => {
|
|
|
4294
2069
|
Object.assign(contents, doc);
|
|
4295
2070
|
return contents;
|
|
4296
2071
|
};
|
|
4297
|
-
const de_ListWorkflowStepExecutionsCommandError = async (output, context) => {
|
|
4298
|
-
const parsedOutput = {
|
|
4299
|
-
...output,
|
|
4300
|
-
body: await parseErrorBody(output.body, context),
|
|
4301
|
-
};
|
|
4302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4303
|
-
switch (errorCode) {
|
|
4304
|
-
case "CallRateLimitExceededException":
|
|
4305
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4306
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4307
|
-
case "ClientException":
|
|
4308
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4309
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4310
|
-
case "ForbiddenException":
|
|
4311
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4312
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4313
|
-
case "InvalidPaginationTokenException":
|
|
4314
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4315
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4316
|
-
case "InvalidRequestException":
|
|
4317
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4318
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4319
|
-
case "ServiceException":
|
|
4320
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4321
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4322
|
-
case "ServiceUnavailableException":
|
|
4323
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4324
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4325
|
-
default:
|
|
4326
|
-
const parsedBody = parsedOutput.body;
|
|
4327
|
-
return throwDefaultError({
|
|
4328
|
-
output,
|
|
4329
|
-
parsedBody,
|
|
4330
|
-
errorCode,
|
|
4331
|
-
});
|
|
4332
|
-
}
|
|
4333
|
-
};
|
|
4334
2072
|
export const de_PutComponentPolicyCommand = async (output, context) => {
|
|
4335
2073
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4336
|
-
return
|
|
2074
|
+
return de_CommandError(output, context);
|
|
4337
2075
|
}
|
|
4338
2076
|
const contents = map({
|
|
4339
2077
|
$metadata: deserializeMetadata(output),
|
|
@@ -4346,49 +2084,9 @@ export const de_PutComponentPolicyCommand = async (output, context) => {
|
|
|
4346
2084
|
Object.assign(contents, doc);
|
|
4347
2085
|
return contents;
|
|
4348
2086
|
};
|
|
4349
|
-
const de_PutComponentPolicyCommandError = async (output, context) => {
|
|
4350
|
-
const parsedOutput = {
|
|
4351
|
-
...output,
|
|
4352
|
-
body: await parseErrorBody(output.body, context),
|
|
4353
|
-
};
|
|
4354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4355
|
-
switch (errorCode) {
|
|
4356
|
-
case "CallRateLimitExceededException":
|
|
4357
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4358
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4359
|
-
case "ClientException":
|
|
4360
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4361
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4362
|
-
case "ForbiddenException":
|
|
4363
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4364
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4365
|
-
case "InvalidParameterValueException":
|
|
4366
|
-
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
4367
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4368
|
-
case "InvalidRequestException":
|
|
4369
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4370
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4371
|
-
case "ResourceNotFoundException":
|
|
4372
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4373
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4374
|
-
case "ServiceException":
|
|
4375
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4376
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4377
|
-
case "ServiceUnavailableException":
|
|
4378
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4379
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4380
|
-
default:
|
|
4381
|
-
const parsedBody = parsedOutput.body;
|
|
4382
|
-
return throwDefaultError({
|
|
4383
|
-
output,
|
|
4384
|
-
parsedBody,
|
|
4385
|
-
errorCode,
|
|
4386
|
-
});
|
|
4387
|
-
}
|
|
4388
|
-
};
|
|
4389
2087
|
export const de_PutContainerRecipePolicyCommand = async (output, context) => {
|
|
4390
2088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4391
|
-
return
|
|
2089
|
+
return de_CommandError(output, context);
|
|
4392
2090
|
}
|
|
4393
2091
|
const contents = map({
|
|
4394
2092
|
$metadata: deserializeMetadata(output),
|
|
@@ -4401,49 +2099,9 @@ export const de_PutContainerRecipePolicyCommand = async (output, context) => {
|
|
|
4401
2099
|
Object.assign(contents, doc);
|
|
4402
2100
|
return contents;
|
|
4403
2101
|
};
|
|
4404
|
-
const de_PutContainerRecipePolicyCommandError = async (output, context) => {
|
|
4405
|
-
const parsedOutput = {
|
|
4406
|
-
...output,
|
|
4407
|
-
body: await parseErrorBody(output.body, context),
|
|
4408
|
-
};
|
|
4409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4410
|
-
switch (errorCode) {
|
|
4411
|
-
case "CallRateLimitExceededException":
|
|
4412
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4413
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4414
|
-
case "ClientException":
|
|
4415
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4416
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4417
|
-
case "ForbiddenException":
|
|
4418
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4419
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4420
|
-
case "InvalidParameterValueException":
|
|
4421
|
-
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
4422
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4423
|
-
case "InvalidRequestException":
|
|
4424
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4425
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4426
|
-
case "ResourceNotFoundException":
|
|
4427
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4428
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4429
|
-
case "ServiceException":
|
|
4430
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4431
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4432
|
-
case "ServiceUnavailableException":
|
|
4433
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4434
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4435
|
-
default:
|
|
4436
|
-
const parsedBody = parsedOutput.body;
|
|
4437
|
-
return throwDefaultError({
|
|
4438
|
-
output,
|
|
4439
|
-
parsedBody,
|
|
4440
|
-
errorCode,
|
|
4441
|
-
});
|
|
4442
|
-
}
|
|
4443
|
-
};
|
|
4444
2102
|
export const de_PutImagePolicyCommand = async (output, context) => {
|
|
4445
2103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4446
|
-
return
|
|
2104
|
+
return de_CommandError(output, context);
|
|
4447
2105
|
}
|
|
4448
2106
|
const contents = map({
|
|
4449
2107
|
$metadata: deserializeMetadata(output),
|
|
@@ -4456,49 +2114,9 @@ export const de_PutImagePolicyCommand = async (output, context) => {
|
|
|
4456
2114
|
Object.assign(contents, doc);
|
|
4457
2115
|
return contents;
|
|
4458
2116
|
};
|
|
4459
|
-
const de_PutImagePolicyCommandError = async (output, context) => {
|
|
4460
|
-
const parsedOutput = {
|
|
4461
|
-
...output,
|
|
4462
|
-
body: await parseErrorBody(output.body, context),
|
|
4463
|
-
};
|
|
4464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4465
|
-
switch (errorCode) {
|
|
4466
|
-
case "CallRateLimitExceededException":
|
|
4467
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4468
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4469
|
-
case "ClientException":
|
|
4470
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4471
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4472
|
-
case "ForbiddenException":
|
|
4473
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4474
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4475
|
-
case "InvalidParameterValueException":
|
|
4476
|
-
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
4477
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4478
|
-
case "InvalidRequestException":
|
|
4479
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4480
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4481
|
-
case "ResourceNotFoundException":
|
|
4482
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4483
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4484
|
-
case "ServiceException":
|
|
4485
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4486
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4487
|
-
case "ServiceUnavailableException":
|
|
4488
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4489
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4490
|
-
default:
|
|
4491
|
-
const parsedBody = parsedOutput.body;
|
|
4492
|
-
return throwDefaultError({
|
|
4493
|
-
output,
|
|
4494
|
-
parsedBody,
|
|
4495
|
-
errorCode,
|
|
4496
|
-
});
|
|
4497
|
-
}
|
|
4498
|
-
};
|
|
4499
2117
|
export const de_PutImageRecipePolicyCommand = async (output, context) => {
|
|
4500
2118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4501
|
-
return
|
|
2119
|
+
return de_CommandError(output, context);
|
|
4502
2120
|
}
|
|
4503
2121
|
const contents = map({
|
|
4504
2122
|
$metadata: deserializeMetadata(output),
|
|
@@ -4511,49 +2129,9 @@ export const de_PutImageRecipePolicyCommand = async (output, context) => {
|
|
|
4511
2129
|
Object.assign(contents, doc);
|
|
4512
2130
|
return contents;
|
|
4513
2131
|
};
|
|
4514
|
-
const de_PutImageRecipePolicyCommandError = async (output, context) => {
|
|
4515
|
-
const parsedOutput = {
|
|
4516
|
-
...output,
|
|
4517
|
-
body: await parseErrorBody(output.body, context),
|
|
4518
|
-
};
|
|
4519
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4520
|
-
switch (errorCode) {
|
|
4521
|
-
case "CallRateLimitExceededException":
|
|
4522
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4523
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4524
|
-
case "ClientException":
|
|
4525
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4526
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4527
|
-
case "ForbiddenException":
|
|
4528
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4529
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4530
|
-
case "InvalidParameterValueException":
|
|
4531
|
-
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
4532
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4533
|
-
case "InvalidRequestException":
|
|
4534
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4535
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4536
|
-
case "ResourceNotFoundException":
|
|
4537
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4538
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4539
|
-
case "ServiceException":
|
|
4540
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4541
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4542
|
-
case "ServiceUnavailableException":
|
|
4543
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4544
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4545
|
-
default:
|
|
4546
|
-
const parsedBody = parsedOutput.body;
|
|
4547
|
-
return throwDefaultError({
|
|
4548
|
-
output,
|
|
4549
|
-
parsedBody,
|
|
4550
|
-
errorCode,
|
|
4551
|
-
});
|
|
4552
|
-
}
|
|
4553
|
-
};
|
|
4554
2132
|
export const de_SendWorkflowStepActionCommand = async (output, context) => {
|
|
4555
2133
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4556
|
-
return
|
|
2134
|
+
return de_CommandError(output, context);
|
|
4557
2135
|
}
|
|
4558
2136
|
const contents = map({
|
|
4559
2137
|
$metadata: deserializeMetadata(output),
|
|
@@ -4564,117 +2142,28 @@ export const de_SendWorkflowStepActionCommand = async (output, context) => {
|
|
|
4564
2142
|
imageBuildVersionArn: __expectString,
|
|
4565
2143
|
stepExecutionId: __expectString,
|
|
4566
2144
|
});
|
|
4567
|
-
Object.assign(contents, doc);
|
|
4568
|
-
return contents;
|
|
4569
|
-
};
|
|
4570
|
-
const
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
body: await parseErrorBody(output.body, context),
|
|
4574
|
-
};
|
|
4575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4576
|
-
switch (errorCode) {
|
|
4577
|
-
case "CallRateLimitExceededException":
|
|
4578
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4579
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4580
|
-
case "ClientException":
|
|
4581
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4582
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4583
|
-
case "ForbiddenException":
|
|
4584
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4585
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4586
|
-
case "IdempotentParameterMismatchException":
|
|
4587
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
4588
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
4589
|
-
case "InvalidParameterValueException":
|
|
4590
|
-
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
4591
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4592
|
-
case "InvalidRequestException":
|
|
4593
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4594
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4595
|
-
case "ResourceInUseException":
|
|
4596
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
4597
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4598
|
-
case "ResourceNotFoundException":
|
|
4599
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4600
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4601
|
-
case "ServiceException":
|
|
4602
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4603
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4604
|
-
case "ServiceUnavailableException":
|
|
4605
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4606
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4607
|
-
default:
|
|
4608
|
-
const parsedBody = parsedOutput.body;
|
|
4609
|
-
return throwDefaultError({
|
|
4610
|
-
output,
|
|
4611
|
-
parsedBody,
|
|
4612
|
-
errorCode,
|
|
4613
|
-
});
|
|
4614
|
-
}
|
|
4615
|
-
};
|
|
4616
|
-
export const de_StartImagePipelineExecutionCommand = async (output, context) => {
|
|
4617
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4618
|
-
return de_StartImagePipelineExecutionCommandError(output, context);
|
|
4619
|
-
}
|
|
4620
|
-
const contents = map({
|
|
4621
|
-
$metadata: deserializeMetadata(output),
|
|
4622
|
-
});
|
|
4623
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4624
|
-
const doc = take(data, {
|
|
4625
|
-
clientToken: __expectString,
|
|
4626
|
-
imageBuildVersionArn: __expectString,
|
|
4627
|
-
requestId: __expectString,
|
|
4628
|
-
});
|
|
4629
|
-
Object.assign(contents, doc);
|
|
4630
|
-
return contents;
|
|
4631
|
-
};
|
|
4632
|
-
const de_StartImagePipelineExecutionCommandError = async (output, context) => {
|
|
4633
|
-
const parsedOutput = {
|
|
4634
|
-
...output,
|
|
4635
|
-
body: await parseErrorBody(output.body, context),
|
|
4636
|
-
};
|
|
4637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4638
|
-
switch (errorCode) {
|
|
4639
|
-
case "CallRateLimitExceededException":
|
|
4640
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4641
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4642
|
-
case "ClientException":
|
|
4643
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4644
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4645
|
-
case "ForbiddenException":
|
|
4646
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4647
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4648
|
-
case "IdempotentParameterMismatchException":
|
|
4649
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
4650
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
4651
|
-
case "InvalidRequestException":
|
|
4652
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4653
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4654
|
-
case "ResourceInUseException":
|
|
4655
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
4656
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4657
|
-
case "ResourceNotFoundException":
|
|
4658
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4659
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4660
|
-
case "ServiceException":
|
|
4661
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4662
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4663
|
-
case "ServiceUnavailableException":
|
|
4664
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4665
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4666
|
-
default:
|
|
4667
|
-
const parsedBody = parsedOutput.body;
|
|
4668
|
-
return throwDefaultError({
|
|
4669
|
-
output,
|
|
4670
|
-
parsedBody,
|
|
4671
|
-
errorCode,
|
|
4672
|
-
});
|
|
2145
|
+
Object.assign(contents, doc);
|
|
2146
|
+
return contents;
|
|
2147
|
+
};
|
|
2148
|
+
export const de_StartImagePipelineExecutionCommand = async (output, context) => {
|
|
2149
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2150
|
+
return de_CommandError(output, context);
|
|
4673
2151
|
}
|
|
2152
|
+
const contents = map({
|
|
2153
|
+
$metadata: deserializeMetadata(output),
|
|
2154
|
+
});
|
|
2155
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2156
|
+
const doc = take(data, {
|
|
2157
|
+
clientToken: __expectString,
|
|
2158
|
+
imageBuildVersionArn: __expectString,
|
|
2159
|
+
requestId: __expectString,
|
|
2160
|
+
});
|
|
2161
|
+
Object.assign(contents, doc);
|
|
2162
|
+
return contents;
|
|
4674
2163
|
};
|
|
4675
2164
|
export const de_StartResourceStateUpdateCommand = async (output, context) => {
|
|
4676
2165
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4677
|
-
return
|
|
2166
|
+
return de_CommandError(output, context);
|
|
4678
2167
|
}
|
|
4679
2168
|
const contents = map({
|
|
4680
2169
|
$metadata: deserializeMetadata(output),
|
|
@@ -4687,52 +2176,9 @@ export const de_StartResourceStateUpdateCommand = async (output, context) => {
|
|
|
4687
2176
|
Object.assign(contents, doc);
|
|
4688
2177
|
return contents;
|
|
4689
2178
|
};
|
|
4690
|
-
const de_StartResourceStateUpdateCommandError = async (output, context) => {
|
|
4691
|
-
const parsedOutput = {
|
|
4692
|
-
...output,
|
|
4693
|
-
body: await parseErrorBody(output.body, context),
|
|
4694
|
-
};
|
|
4695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4696
|
-
switch (errorCode) {
|
|
4697
|
-
case "CallRateLimitExceededException":
|
|
4698
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4699
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4700
|
-
case "ClientException":
|
|
4701
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4702
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4703
|
-
case "ForbiddenException":
|
|
4704
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4705
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4706
|
-
case "IdempotentParameterMismatchException":
|
|
4707
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
4708
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
4709
|
-
case "InvalidRequestException":
|
|
4710
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4711
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4712
|
-
case "ResourceInUseException":
|
|
4713
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
4714
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4715
|
-
case "ResourceNotFoundException":
|
|
4716
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4717
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4718
|
-
case "ServiceException":
|
|
4719
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4720
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4721
|
-
case "ServiceUnavailableException":
|
|
4722
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4723
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4724
|
-
default:
|
|
4725
|
-
const parsedBody = parsedOutput.body;
|
|
4726
|
-
return throwDefaultError({
|
|
4727
|
-
output,
|
|
4728
|
-
parsedBody,
|
|
4729
|
-
errorCode,
|
|
4730
|
-
});
|
|
4731
|
-
}
|
|
4732
|
-
};
|
|
4733
2179
|
export const de_TagResourceCommand = async (output, context) => {
|
|
4734
2180
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4735
|
-
return
|
|
2181
|
+
return de_CommandError(output, context);
|
|
4736
2182
|
}
|
|
4737
2183
|
const contents = map({
|
|
4738
2184
|
$metadata: deserializeMetadata(output),
|
|
@@ -4740,34 +2186,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
4740
2186
|
await collectBody(output.body, context);
|
|
4741
2187
|
return contents;
|
|
4742
2188
|
};
|
|
4743
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
4744
|
-
const parsedOutput = {
|
|
4745
|
-
...output,
|
|
4746
|
-
body: await parseErrorBody(output.body, context),
|
|
4747
|
-
};
|
|
4748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4749
|
-
switch (errorCode) {
|
|
4750
|
-
case "InvalidParameterException":
|
|
4751
|
-
case "com.amazonaws.imagebuilder#InvalidParameterException":
|
|
4752
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4753
|
-
case "ResourceNotFoundException":
|
|
4754
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4755
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4756
|
-
case "ServiceException":
|
|
4757
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4758
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4759
|
-
default:
|
|
4760
|
-
const parsedBody = parsedOutput.body;
|
|
4761
|
-
return throwDefaultError({
|
|
4762
|
-
output,
|
|
4763
|
-
parsedBody,
|
|
4764
|
-
errorCode,
|
|
4765
|
-
});
|
|
4766
|
-
}
|
|
4767
|
-
};
|
|
4768
2189
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
4769
2190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4770
|
-
return
|
|
2191
|
+
return de_CommandError(output, context);
|
|
4771
2192
|
}
|
|
4772
2193
|
const contents = map({
|
|
4773
2194
|
$metadata: deserializeMetadata(output),
|
|
@@ -4775,34 +2196,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
4775
2196
|
await collectBody(output.body, context);
|
|
4776
2197
|
return contents;
|
|
4777
2198
|
};
|
|
4778
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
4779
|
-
const parsedOutput = {
|
|
4780
|
-
...output,
|
|
4781
|
-
body: await parseErrorBody(output.body, context),
|
|
4782
|
-
};
|
|
4783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4784
|
-
switch (errorCode) {
|
|
4785
|
-
case "InvalidParameterException":
|
|
4786
|
-
case "com.amazonaws.imagebuilder#InvalidParameterException":
|
|
4787
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4788
|
-
case "ResourceNotFoundException":
|
|
4789
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4790
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4791
|
-
case "ServiceException":
|
|
4792
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4793
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4794
|
-
default:
|
|
4795
|
-
const parsedBody = parsedOutput.body;
|
|
4796
|
-
return throwDefaultError({
|
|
4797
|
-
output,
|
|
4798
|
-
parsedBody,
|
|
4799
|
-
errorCode,
|
|
4800
|
-
});
|
|
4801
|
-
}
|
|
4802
|
-
};
|
|
4803
2199
|
export const de_UpdateDistributionConfigurationCommand = async (output, context) => {
|
|
4804
2200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4805
|
-
return
|
|
2201
|
+
return de_CommandError(output, context);
|
|
4806
2202
|
}
|
|
4807
2203
|
const contents = map({
|
|
4808
2204
|
$metadata: deserializeMetadata(output),
|
|
@@ -4816,52 +2212,9 @@ export const de_UpdateDistributionConfigurationCommand = async (output, context)
|
|
|
4816
2212
|
Object.assign(contents, doc);
|
|
4817
2213
|
return contents;
|
|
4818
2214
|
};
|
|
4819
|
-
const de_UpdateDistributionConfigurationCommandError = async (output, context) => {
|
|
4820
|
-
const parsedOutput = {
|
|
4821
|
-
...output,
|
|
4822
|
-
body: await parseErrorBody(output.body, context),
|
|
4823
|
-
};
|
|
4824
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4825
|
-
switch (errorCode) {
|
|
4826
|
-
case "CallRateLimitExceededException":
|
|
4827
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4828
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4829
|
-
case "ClientException":
|
|
4830
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4831
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4832
|
-
case "ForbiddenException":
|
|
4833
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4834
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4835
|
-
case "IdempotentParameterMismatchException":
|
|
4836
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
4837
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
4838
|
-
case "InvalidParameterCombinationException":
|
|
4839
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
4840
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4841
|
-
case "InvalidRequestException":
|
|
4842
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4843
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4844
|
-
case "ResourceInUseException":
|
|
4845
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
4846
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4847
|
-
case "ServiceException":
|
|
4848
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4849
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4850
|
-
case "ServiceUnavailableException":
|
|
4851
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4852
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4853
|
-
default:
|
|
4854
|
-
const parsedBody = parsedOutput.body;
|
|
4855
|
-
return throwDefaultError({
|
|
4856
|
-
output,
|
|
4857
|
-
parsedBody,
|
|
4858
|
-
errorCode,
|
|
4859
|
-
});
|
|
4860
|
-
}
|
|
4861
|
-
};
|
|
4862
2215
|
export const de_UpdateImagePipelineCommand = async (output, context) => {
|
|
4863
2216
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4864
|
-
return
|
|
2217
|
+
return de_CommandError(output, context);
|
|
4865
2218
|
}
|
|
4866
2219
|
const contents = map({
|
|
4867
2220
|
$metadata: deserializeMetadata(output),
|
|
@@ -4875,49 +2228,9 @@ export const de_UpdateImagePipelineCommand = async (output, context) => {
|
|
|
4875
2228
|
Object.assign(contents, doc);
|
|
4876
2229
|
return contents;
|
|
4877
2230
|
};
|
|
4878
|
-
const de_UpdateImagePipelineCommandError = async (output, context) => {
|
|
4879
|
-
const parsedOutput = {
|
|
4880
|
-
...output,
|
|
4881
|
-
body: await parseErrorBody(output.body, context),
|
|
4882
|
-
};
|
|
4883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4884
|
-
switch (errorCode) {
|
|
4885
|
-
case "CallRateLimitExceededException":
|
|
4886
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4887
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4888
|
-
case "ClientException":
|
|
4889
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4890
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4891
|
-
case "ForbiddenException":
|
|
4892
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4893
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4894
|
-
case "IdempotentParameterMismatchException":
|
|
4895
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
4896
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
4897
|
-
case "InvalidRequestException":
|
|
4898
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4899
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4900
|
-
case "ResourceInUseException":
|
|
4901
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
4902
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4903
|
-
case "ServiceException":
|
|
4904
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4905
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4906
|
-
case "ServiceUnavailableException":
|
|
4907
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4908
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4909
|
-
default:
|
|
4910
|
-
const parsedBody = parsedOutput.body;
|
|
4911
|
-
return throwDefaultError({
|
|
4912
|
-
output,
|
|
4913
|
-
parsedBody,
|
|
4914
|
-
errorCode,
|
|
4915
|
-
});
|
|
4916
|
-
}
|
|
4917
|
-
};
|
|
4918
2231
|
export const de_UpdateInfrastructureConfigurationCommand = async (output, context) => {
|
|
4919
2232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4920
|
-
return
|
|
2233
|
+
return de_CommandError(output, context);
|
|
4921
2234
|
}
|
|
4922
2235
|
const contents = map({
|
|
4923
2236
|
$metadata: deserializeMetadata(output),
|
|
@@ -4931,49 +2244,9 @@ export const de_UpdateInfrastructureConfigurationCommand = async (output, contex
|
|
|
4931
2244
|
Object.assign(contents, doc);
|
|
4932
2245
|
return contents;
|
|
4933
2246
|
};
|
|
4934
|
-
const de_UpdateInfrastructureConfigurationCommandError = async (output, context) => {
|
|
4935
|
-
const parsedOutput = {
|
|
4936
|
-
...output,
|
|
4937
|
-
body: await parseErrorBody(output.body, context),
|
|
4938
|
-
};
|
|
4939
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4940
|
-
switch (errorCode) {
|
|
4941
|
-
case "CallRateLimitExceededException":
|
|
4942
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4943
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4944
|
-
case "ClientException":
|
|
4945
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4946
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4947
|
-
case "ForbiddenException":
|
|
4948
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4949
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4950
|
-
case "IdempotentParameterMismatchException":
|
|
4951
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
4952
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
4953
|
-
case "InvalidRequestException":
|
|
4954
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4955
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4956
|
-
case "ResourceInUseException":
|
|
4957
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
4958
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4959
|
-
case "ServiceException":
|
|
4960
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4961
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4962
|
-
case "ServiceUnavailableException":
|
|
4963
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4964
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4965
|
-
default:
|
|
4966
|
-
const parsedBody = parsedOutput.body;
|
|
4967
|
-
return throwDefaultError({
|
|
4968
|
-
output,
|
|
4969
|
-
parsedBody,
|
|
4970
|
-
errorCode,
|
|
4971
|
-
});
|
|
4972
|
-
}
|
|
4973
|
-
};
|
|
4974
2247
|
export const de_UpdateLifecyclePolicyCommand = async (output, context) => {
|
|
4975
2248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4976
|
-
return
|
|
2249
|
+
return de_CommandError(output, context);
|
|
4977
2250
|
}
|
|
4978
2251
|
const contents = map({
|
|
4979
2252
|
$metadata: deserializeMetadata(output),
|
|
@@ -4985,7 +2258,7 @@ export const de_UpdateLifecyclePolicyCommand = async (output, context) => {
|
|
|
4985
2258
|
Object.assign(contents, doc);
|
|
4986
2259
|
return contents;
|
|
4987
2260
|
};
|
|
4988
|
-
const
|
|
2261
|
+
const de_CommandError = async (output, context) => {
|
|
4989
2262
|
const parsedOutput = {
|
|
4990
2263
|
...output,
|
|
4991
2264
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5004,9 +2277,6 @@ const de_UpdateLifecyclePolicyCommandError = async (output, context) => {
|
|
|
5004
2277
|
case "IdempotentParameterMismatchException":
|
|
5005
2278
|
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
5006
2279
|
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
5007
|
-
case "InvalidParameterCombinationException":
|
|
5008
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
5009
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5010
2280
|
case "InvalidRequestException":
|
|
5011
2281
|
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5012
2282
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
@@ -5019,6 +2289,33 @@ const de_UpdateLifecyclePolicyCommandError = async (output, context) => {
|
|
|
5019
2289
|
case "ServiceUnavailableException":
|
|
5020
2290
|
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5021
2291
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2292
|
+
case "InvalidParameterCombinationException":
|
|
2293
|
+
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
2294
|
+
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2295
|
+
case "InvalidVersionNumberException":
|
|
2296
|
+
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
2297
|
+
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
2298
|
+
case "ServiceQuotaExceededException":
|
|
2299
|
+
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
2300
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2301
|
+
case "ResourceAlreadyExistsException":
|
|
2302
|
+
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
2303
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2304
|
+
case "ResourceDependencyException":
|
|
2305
|
+
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2306
|
+
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2307
|
+
case "ResourceNotFoundException":
|
|
2308
|
+
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
2309
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2310
|
+
case "InvalidPaginationTokenException":
|
|
2311
|
+
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
2312
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2313
|
+
case "InvalidParameterException":
|
|
2314
|
+
case "com.amazonaws.imagebuilder#InvalidParameterException":
|
|
2315
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2316
|
+
case "InvalidParameterValueException":
|
|
2317
|
+
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
2318
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5022
2319
|
default:
|
|
5023
2320
|
const parsedBody = parsedOutput.body;
|
|
5024
2321
|
return throwDefaultError({
|