@aws-sdk/client-ecr 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +168 -1326
- package/dist-es/protocols/Aws_json1_1.js +168 -1326
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1253,7 +1253,7 @@ var se_ValidatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (input
|
|
|
1253
1253
|
}, "se_ValidatePullThroughCacheRuleCommand");
|
|
1254
1254
|
var de_BatchCheckLayerAvailabilityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1255
1255
|
if (output.statusCode >= 300) {
|
|
1256
|
-
return
|
|
1256
|
+
return de_CommandError(output, context);
|
|
1257
1257
|
}
|
|
1258
1258
|
const data = await parseBody(output.body, context);
|
|
1259
1259
|
let contents = {};
|
|
@@ -1264,34 +1264,9 @@ var de_BatchCheckLayerAvailabilityCommand = /* @__PURE__ */ __name(async (output
|
|
|
1264
1264
|
};
|
|
1265
1265
|
return response;
|
|
1266
1266
|
}, "de_BatchCheckLayerAvailabilityCommand");
|
|
1267
|
-
var de_BatchCheckLayerAvailabilityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1268
|
-
const parsedOutput = {
|
|
1269
|
-
...output,
|
|
1270
|
-
body: await parseErrorBody(output.body, context)
|
|
1271
|
-
};
|
|
1272
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
|
-
switch (errorCode) {
|
|
1274
|
-
case "InvalidParameterException":
|
|
1275
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1276
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "RepositoryNotFoundException":
|
|
1278
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1279
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ServerException":
|
|
1281
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1282
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1283
|
-
default:
|
|
1284
|
-
const parsedBody = parsedOutput.body;
|
|
1285
|
-
return throwDefaultError({
|
|
1286
|
-
output,
|
|
1287
|
-
parsedBody,
|
|
1288
|
-
errorCode
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
}, "de_BatchCheckLayerAvailabilityCommandError");
|
|
1292
1267
|
var de_BatchDeleteImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1293
1268
|
if (output.statusCode >= 300) {
|
|
1294
|
-
return
|
|
1269
|
+
return de_CommandError(output, context);
|
|
1295
1270
|
}
|
|
1296
1271
|
const data = await parseBody(output.body, context);
|
|
1297
1272
|
let contents = {};
|
|
@@ -1302,34 +1277,9 @@ var de_BatchDeleteImageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1302
1277
|
};
|
|
1303
1278
|
return response;
|
|
1304
1279
|
}, "de_BatchDeleteImageCommand");
|
|
1305
|
-
var de_BatchDeleteImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1306
|
-
const parsedOutput = {
|
|
1307
|
-
...output,
|
|
1308
|
-
body: await parseErrorBody(output.body, context)
|
|
1309
|
-
};
|
|
1310
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1311
|
-
switch (errorCode) {
|
|
1312
|
-
case "InvalidParameterException":
|
|
1313
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1314
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "RepositoryNotFoundException":
|
|
1316
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1317
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "ServerException":
|
|
1319
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1320
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1321
|
-
default:
|
|
1322
|
-
const parsedBody = parsedOutput.body;
|
|
1323
|
-
return throwDefaultError({
|
|
1324
|
-
output,
|
|
1325
|
-
parsedBody,
|
|
1326
|
-
errorCode
|
|
1327
|
-
});
|
|
1328
|
-
}
|
|
1329
|
-
}, "de_BatchDeleteImageCommandError");
|
|
1330
1280
|
var de_BatchGetImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1331
1281
|
if (output.statusCode >= 300) {
|
|
1332
|
-
return
|
|
1282
|
+
return de_CommandError(output, context);
|
|
1333
1283
|
}
|
|
1334
1284
|
const data = await parseBody(output.body, context);
|
|
1335
1285
|
let contents = {};
|
|
@@ -1340,40 +1290,9 @@ var de_BatchGetImageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1340
1290
|
};
|
|
1341
1291
|
return response;
|
|
1342
1292
|
}, "de_BatchGetImageCommand");
|
|
1343
|
-
var de_BatchGetImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1344
|
-
const parsedOutput = {
|
|
1345
|
-
...output,
|
|
1346
|
-
body: await parseErrorBody(output.body, context)
|
|
1347
|
-
};
|
|
1348
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
|
-
switch (errorCode) {
|
|
1350
|
-
case "InvalidParameterException":
|
|
1351
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1352
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1353
|
-
case "LimitExceededException":
|
|
1354
|
-
case "com.amazonaws.ecr#LimitExceededException":
|
|
1355
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1356
|
-
case "RepositoryNotFoundException":
|
|
1357
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1358
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "ServerException":
|
|
1360
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1361
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "UnableToGetUpstreamImageException":
|
|
1363
|
-
case "com.amazonaws.ecr#UnableToGetUpstreamImageException":
|
|
1364
|
-
throw await de_UnableToGetUpstreamImageExceptionRes(parsedOutput, context);
|
|
1365
|
-
default:
|
|
1366
|
-
const parsedBody = parsedOutput.body;
|
|
1367
|
-
return throwDefaultError({
|
|
1368
|
-
output,
|
|
1369
|
-
parsedBody,
|
|
1370
|
-
errorCode
|
|
1371
|
-
});
|
|
1372
|
-
}
|
|
1373
|
-
}, "de_BatchGetImageCommandError");
|
|
1374
1293
|
var de_BatchGetRepositoryScanningConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1375
1294
|
if (output.statusCode >= 300) {
|
|
1376
|
-
return
|
|
1295
|
+
return de_CommandError(output, context);
|
|
1377
1296
|
}
|
|
1378
1297
|
const data = await parseBody(output.body, context);
|
|
1379
1298
|
let contents = {};
|
|
@@ -1384,37 +1303,9 @@ var de_BatchGetRepositoryScanningConfigurationCommand = /* @__PURE__ */ __name(a
|
|
|
1384
1303
|
};
|
|
1385
1304
|
return response;
|
|
1386
1305
|
}, "de_BatchGetRepositoryScanningConfigurationCommand");
|
|
1387
|
-
var de_BatchGetRepositoryScanningConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1388
|
-
const parsedOutput = {
|
|
1389
|
-
...output,
|
|
1390
|
-
body: await parseErrorBody(output.body, context)
|
|
1391
|
-
};
|
|
1392
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1393
|
-
switch (errorCode) {
|
|
1394
|
-
case "InvalidParameterException":
|
|
1395
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1396
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1397
|
-
case "RepositoryNotFoundException":
|
|
1398
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1399
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "ServerException":
|
|
1401
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1402
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "ValidationException":
|
|
1404
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
1405
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1406
|
-
default:
|
|
1407
|
-
const parsedBody = parsedOutput.body;
|
|
1408
|
-
return throwDefaultError({
|
|
1409
|
-
output,
|
|
1410
|
-
parsedBody,
|
|
1411
|
-
errorCode
|
|
1412
|
-
});
|
|
1413
|
-
}
|
|
1414
|
-
}, "de_BatchGetRepositoryScanningConfigurationCommandError");
|
|
1415
1306
|
var de_CompleteLayerUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1416
1307
|
if (output.statusCode >= 300) {
|
|
1417
|
-
return
|
|
1308
|
+
return de_CommandError(output, context);
|
|
1418
1309
|
}
|
|
1419
1310
|
const data = await parseBody(output.body, context);
|
|
1420
1311
|
let contents = {};
|
|
@@ -1425,52 +1316,9 @@ var de_CompleteLayerUploadCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1425
1316
|
};
|
|
1426
1317
|
return response;
|
|
1427
1318
|
}, "de_CompleteLayerUploadCommand");
|
|
1428
|
-
var de_CompleteLayerUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
|
-
const parsedOutput = {
|
|
1430
|
-
...output,
|
|
1431
|
-
body: await parseErrorBody(output.body, context)
|
|
1432
|
-
};
|
|
1433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
-
switch (errorCode) {
|
|
1435
|
-
case "EmptyUploadException":
|
|
1436
|
-
case "com.amazonaws.ecr#EmptyUploadException":
|
|
1437
|
-
throw await de_EmptyUploadExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "InvalidLayerException":
|
|
1439
|
-
case "com.amazonaws.ecr#InvalidLayerException":
|
|
1440
|
-
throw await de_InvalidLayerExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "InvalidParameterException":
|
|
1442
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1443
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "KmsException":
|
|
1445
|
-
case "com.amazonaws.ecr#KmsException":
|
|
1446
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "LayerAlreadyExistsException":
|
|
1448
|
-
case "com.amazonaws.ecr#LayerAlreadyExistsException":
|
|
1449
|
-
throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "LayerPartTooSmallException":
|
|
1451
|
-
case "com.amazonaws.ecr#LayerPartTooSmallException":
|
|
1452
|
-
throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "RepositoryNotFoundException":
|
|
1454
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1455
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "ServerException":
|
|
1457
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1458
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "UploadNotFoundException":
|
|
1460
|
-
case "com.amazonaws.ecr#UploadNotFoundException":
|
|
1461
|
-
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
1462
|
-
default:
|
|
1463
|
-
const parsedBody = parsedOutput.body;
|
|
1464
|
-
return throwDefaultError({
|
|
1465
|
-
output,
|
|
1466
|
-
parsedBody,
|
|
1467
|
-
errorCode
|
|
1468
|
-
});
|
|
1469
|
-
}
|
|
1470
|
-
}, "de_CompleteLayerUploadCommandError");
|
|
1471
1319
|
var de_CreatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1472
1320
|
if (output.statusCode >= 300) {
|
|
1473
|
-
return
|
|
1321
|
+
return de_CommandError(output, context);
|
|
1474
1322
|
}
|
|
1475
1323
|
const data = await parseBody(output.body, context);
|
|
1476
1324
|
let contents = {};
|
|
@@ -1481,52 +1329,9 @@ var de_CreatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1481
1329
|
};
|
|
1482
1330
|
return response;
|
|
1483
1331
|
}, "de_CreatePullThroughCacheRuleCommand");
|
|
1484
|
-
var de_CreatePullThroughCacheRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1485
|
-
const parsedOutput = {
|
|
1486
|
-
...output,
|
|
1487
|
-
body: await parseErrorBody(output.body, context)
|
|
1488
|
-
};
|
|
1489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
|
-
switch (errorCode) {
|
|
1491
|
-
case "InvalidParameterException":
|
|
1492
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1493
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "LimitExceededException":
|
|
1495
|
-
case "com.amazonaws.ecr#LimitExceededException":
|
|
1496
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "PullThroughCacheRuleAlreadyExistsException":
|
|
1498
|
-
case "com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":
|
|
1499
|
-
throw await de_PullThroughCacheRuleAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "SecretNotFoundException":
|
|
1501
|
-
case "com.amazonaws.ecr#SecretNotFoundException":
|
|
1502
|
-
throw await de_SecretNotFoundExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "ServerException":
|
|
1504
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1505
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "UnableToAccessSecretException":
|
|
1507
|
-
case "com.amazonaws.ecr#UnableToAccessSecretException":
|
|
1508
|
-
throw await de_UnableToAccessSecretExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "UnableToDecryptSecretValueException":
|
|
1510
|
-
case "com.amazonaws.ecr#UnableToDecryptSecretValueException":
|
|
1511
|
-
throw await de_UnableToDecryptSecretValueExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "UnsupportedUpstreamRegistryException":
|
|
1513
|
-
case "com.amazonaws.ecr#UnsupportedUpstreamRegistryException":
|
|
1514
|
-
throw await de_UnsupportedUpstreamRegistryExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ValidationException":
|
|
1516
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
1517
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1518
|
-
default:
|
|
1519
|
-
const parsedBody = parsedOutput.body;
|
|
1520
|
-
return throwDefaultError({
|
|
1521
|
-
output,
|
|
1522
|
-
parsedBody,
|
|
1523
|
-
errorCode
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
}, "de_CreatePullThroughCacheRuleCommandError");
|
|
1527
1332
|
var de_CreateRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1528
1333
|
if (output.statusCode >= 300) {
|
|
1529
|
-
return
|
|
1334
|
+
return de_CommandError(output, context);
|
|
1530
1335
|
}
|
|
1531
1336
|
const data = await parseBody(output.body, context);
|
|
1532
1337
|
let contents = {};
|
|
@@ -1537,46 +1342,9 @@ var de_CreateRepositoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1537
1342
|
};
|
|
1538
1343
|
return response;
|
|
1539
1344
|
}, "de_CreateRepositoryCommand");
|
|
1540
|
-
var de_CreateRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1541
|
-
const parsedOutput = {
|
|
1542
|
-
...output,
|
|
1543
|
-
body: await parseErrorBody(output.body, context)
|
|
1544
|
-
};
|
|
1545
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1546
|
-
switch (errorCode) {
|
|
1547
|
-
case "InvalidParameterException":
|
|
1548
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1549
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "InvalidTagParameterException":
|
|
1551
|
-
case "com.amazonaws.ecr#InvalidTagParameterException":
|
|
1552
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "KmsException":
|
|
1554
|
-
case "com.amazonaws.ecr#KmsException":
|
|
1555
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "LimitExceededException":
|
|
1557
|
-
case "com.amazonaws.ecr#LimitExceededException":
|
|
1558
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "RepositoryAlreadyExistsException":
|
|
1560
|
-
case "com.amazonaws.ecr#RepositoryAlreadyExistsException":
|
|
1561
|
-
throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1562
|
-
case "ServerException":
|
|
1563
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1564
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "TooManyTagsException":
|
|
1566
|
-
case "com.amazonaws.ecr#TooManyTagsException":
|
|
1567
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1568
|
-
default:
|
|
1569
|
-
const parsedBody = parsedOutput.body;
|
|
1570
|
-
return throwDefaultError({
|
|
1571
|
-
output,
|
|
1572
|
-
parsedBody,
|
|
1573
|
-
errorCode
|
|
1574
|
-
});
|
|
1575
|
-
}
|
|
1576
|
-
}, "de_CreateRepositoryCommandError");
|
|
1577
1345
|
var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1578
1346
|
if (output.statusCode >= 300) {
|
|
1579
|
-
return
|
|
1347
|
+
return de_CommandError(output, context);
|
|
1580
1348
|
}
|
|
1581
1349
|
const data = await parseBody(output.body, context);
|
|
1582
1350
|
let contents = {};
|
|
@@ -1587,40 +1355,9 @@ var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1587
1355
|
};
|
|
1588
1356
|
return response;
|
|
1589
1357
|
}, "de_DeleteLifecyclePolicyCommand");
|
|
1590
|
-
var de_DeleteLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1591
|
-
const parsedOutput = {
|
|
1592
|
-
...output,
|
|
1593
|
-
body: await parseErrorBody(output.body, context)
|
|
1594
|
-
};
|
|
1595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
-
switch (errorCode) {
|
|
1597
|
-
case "InvalidParameterException":
|
|
1598
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1599
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "LifecyclePolicyNotFoundException":
|
|
1601
|
-
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
|
|
1602
|
-
throw await de_LifecyclePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "RepositoryNotFoundException":
|
|
1604
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1605
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "ServerException":
|
|
1607
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1608
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1609
|
-
case "ValidationException":
|
|
1610
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
1611
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1612
|
-
default:
|
|
1613
|
-
const parsedBody = parsedOutput.body;
|
|
1614
|
-
return throwDefaultError({
|
|
1615
|
-
output,
|
|
1616
|
-
parsedBody,
|
|
1617
|
-
errorCode
|
|
1618
|
-
});
|
|
1619
|
-
}
|
|
1620
|
-
}, "de_DeleteLifecyclePolicyCommandError");
|
|
1621
1358
|
var de_DeletePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1622
1359
|
if (output.statusCode >= 300) {
|
|
1623
|
-
return
|
|
1360
|
+
return de_CommandError(output, context);
|
|
1624
1361
|
}
|
|
1625
1362
|
const data = await parseBody(output.body, context);
|
|
1626
1363
|
let contents = {};
|
|
@@ -1631,37 +1368,9 @@ var de_DeletePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1631
1368
|
};
|
|
1632
1369
|
return response;
|
|
1633
1370
|
}, "de_DeletePullThroughCacheRuleCommand");
|
|
1634
|
-
var de_DeletePullThroughCacheRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1635
|
-
const parsedOutput = {
|
|
1636
|
-
...output,
|
|
1637
|
-
body: await parseErrorBody(output.body, context)
|
|
1638
|
-
};
|
|
1639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
|
-
switch (errorCode) {
|
|
1641
|
-
case "InvalidParameterException":
|
|
1642
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1643
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "PullThroughCacheRuleNotFoundException":
|
|
1645
|
-
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
|
|
1646
|
-
throw await de_PullThroughCacheRuleNotFoundExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "ServerException":
|
|
1648
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1649
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "ValidationException":
|
|
1651
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
1652
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1653
|
-
default:
|
|
1654
|
-
const parsedBody = parsedOutput.body;
|
|
1655
|
-
return throwDefaultError({
|
|
1656
|
-
output,
|
|
1657
|
-
parsedBody,
|
|
1658
|
-
errorCode
|
|
1659
|
-
});
|
|
1660
|
-
}
|
|
1661
|
-
}, "de_DeletePullThroughCacheRuleCommandError");
|
|
1662
1371
|
var de_DeleteRegistryPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1663
1372
|
if (output.statusCode >= 300) {
|
|
1664
|
-
return
|
|
1373
|
+
return de_CommandError(output, context);
|
|
1665
1374
|
}
|
|
1666
1375
|
const data = await parseBody(output.body, context);
|
|
1667
1376
|
let contents = {};
|
|
@@ -1672,37 +1381,9 @@ var de_DeleteRegistryPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1672
1381
|
};
|
|
1673
1382
|
return response;
|
|
1674
1383
|
}, "de_DeleteRegistryPolicyCommand");
|
|
1675
|
-
var de_DeleteRegistryPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1676
|
-
const parsedOutput = {
|
|
1677
|
-
...output,
|
|
1678
|
-
body: await parseErrorBody(output.body, context)
|
|
1679
|
-
};
|
|
1680
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1681
|
-
switch (errorCode) {
|
|
1682
|
-
case "InvalidParameterException":
|
|
1683
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1684
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "RegistryPolicyNotFoundException":
|
|
1686
|
-
case "com.amazonaws.ecr#RegistryPolicyNotFoundException":
|
|
1687
|
-
throw await de_RegistryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1688
|
-
case "ServerException":
|
|
1689
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1690
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1691
|
-
case "ValidationException":
|
|
1692
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
1693
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1694
|
-
default:
|
|
1695
|
-
const parsedBody = parsedOutput.body;
|
|
1696
|
-
return throwDefaultError({
|
|
1697
|
-
output,
|
|
1698
|
-
parsedBody,
|
|
1699
|
-
errorCode
|
|
1700
|
-
});
|
|
1701
|
-
}
|
|
1702
|
-
}, "de_DeleteRegistryPolicyCommandError");
|
|
1703
1384
|
var de_DeleteRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1704
1385
|
if (output.statusCode >= 300) {
|
|
1705
|
-
return
|
|
1386
|
+
return de_CommandError(output, context);
|
|
1706
1387
|
}
|
|
1707
1388
|
const data = await parseBody(output.body, context);
|
|
1708
1389
|
let contents = {};
|
|
@@ -1713,40 +1394,9 @@ var de_DeleteRepositoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1713
1394
|
};
|
|
1714
1395
|
return response;
|
|
1715
1396
|
}, "de_DeleteRepositoryCommand");
|
|
1716
|
-
var de_DeleteRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1717
|
-
const parsedOutput = {
|
|
1718
|
-
...output,
|
|
1719
|
-
body: await parseErrorBody(output.body, context)
|
|
1720
|
-
};
|
|
1721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
|
-
switch (errorCode) {
|
|
1723
|
-
case "InvalidParameterException":
|
|
1724
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1725
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "KmsException":
|
|
1727
|
-
case "com.amazonaws.ecr#KmsException":
|
|
1728
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
1729
|
-
case "RepositoryNotEmptyException":
|
|
1730
|
-
case "com.amazonaws.ecr#RepositoryNotEmptyException":
|
|
1731
|
-
throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
|
|
1732
|
-
case "RepositoryNotFoundException":
|
|
1733
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1734
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1735
|
-
case "ServerException":
|
|
1736
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1737
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1738
|
-
default:
|
|
1739
|
-
const parsedBody = parsedOutput.body;
|
|
1740
|
-
return throwDefaultError({
|
|
1741
|
-
output,
|
|
1742
|
-
parsedBody,
|
|
1743
|
-
errorCode
|
|
1744
|
-
});
|
|
1745
|
-
}
|
|
1746
|
-
}, "de_DeleteRepositoryCommandError");
|
|
1747
1397
|
var de_DeleteRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1748
1398
|
if (output.statusCode >= 300) {
|
|
1749
|
-
return
|
|
1399
|
+
return de_CommandError(output, context);
|
|
1750
1400
|
}
|
|
1751
1401
|
const data = await parseBody(output.body, context);
|
|
1752
1402
|
let contents = {};
|
|
@@ -1757,37 +1407,9 @@ var de_DeleteRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1757
1407
|
};
|
|
1758
1408
|
return response;
|
|
1759
1409
|
}, "de_DeleteRepositoryPolicyCommand");
|
|
1760
|
-
var de_DeleteRepositoryPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1761
|
-
const parsedOutput = {
|
|
1762
|
-
...output,
|
|
1763
|
-
body: await parseErrorBody(output.body, context)
|
|
1764
|
-
};
|
|
1765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
-
switch (errorCode) {
|
|
1767
|
-
case "InvalidParameterException":
|
|
1768
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1769
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "RepositoryNotFoundException":
|
|
1771
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1772
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "RepositoryPolicyNotFoundException":
|
|
1774
|
-
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException":
|
|
1775
|
-
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "ServerException":
|
|
1777
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1778
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1779
|
-
default:
|
|
1780
|
-
const parsedBody = parsedOutput.body;
|
|
1781
|
-
return throwDefaultError({
|
|
1782
|
-
output,
|
|
1783
|
-
parsedBody,
|
|
1784
|
-
errorCode
|
|
1785
|
-
});
|
|
1786
|
-
}
|
|
1787
|
-
}, "de_DeleteRepositoryPolicyCommandError");
|
|
1788
1410
|
var de_DescribeImageReplicationStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1789
1411
|
if (output.statusCode >= 300) {
|
|
1790
|
-
return
|
|
1412
|
+
return de_CommandError(output, context);
|
|
1791
1413
|
}
|
|
1792
1414
|
const data = await parseBody(output.body, context);
|
|
1793
1415
|
let contents = {};
|
|
@@ -1798,40 +1420,9 @@ var de_DescribeImageReplicationStatusCommand = /* @__PURE__ */ __name(async (out
|
|
|
1798
1420
|
};
|
|
1799
1421
|
return response;
|
|
1800
1422
|
}, "de_DescribeImageReplicationStatusCommand");
|
|
1801
|
-
var de_DescribeImageReplicationStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1802
|
-
const parsedOutput = {
|
|
1803
|
-
...output,
|
|
1804
|
-
body: await parseErrorBody(output.body, context)
|
|
1805
|
-
};
|
|
1806
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1807
|
-
switch (errorCode) {
|
|
1808
|
-
case "ImageNotFoundException":
|
|
1809
|
-
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
1810
|
-
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "InvalidParameterException":
|
|
1812
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1813
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "RepositoryNotFoundException":
|
|
1815
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1816
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "ServerException":
|
|
1818
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1819
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "ValidationException":
|
|
1821
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
1822
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1823
|
-
default:
|
|
1824
|
-
const parsedBody = parsedOutput.body;
|
|
1825
|
-
return throwDefaultError({
|
|
1826
|
-
output,
|
|
1827
|
-
parsedBody,
|
|
1828
|
-
errorCode
|
|
1829
|
-
});
|
|
1830
|
-
}
|
|
1831
|
-
}, "de_DescribeImageReplicationStatusCommandError");
|
|
1832
1423
|
var de_DescribeImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1833
1424
|
if (output.statusCode >= 300) {
|
|
1834
|
-
return
|
|
1425
|
+
return de_CommandError(output, context);
|
|
1835
1426
|
}
|
|
1836
1427
|
const data = await parseBody(output.body, context);
|
|
1837
1428
|
let contents = {};
|
|
@@ -1842,37 +1433,9 @@ var de_DescribeImagesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1842
1433
|
};
|
|
1843
1434
|
return response;
|
|
1844
1435
|
}, "de_DescribeImagesCommand");
|
|
1845
|
-
var de_DescribeImagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1846
|
-
const parsedOutput = {
|
|
1847
|
-
...output,
|
|
1848
|
-
body: await parseErrorBody(output.body, context)
|
|
1849
|
-
};
|
|
1850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1851
|
-
switch (errorCode) {
|
|
1852
|
-
case "ImageNotFoundException":
|
|
1853
|
-
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
1854
|
-
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "InvalidParameterException":
|
|
1856
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1857
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1858
|
-
case "RepositoryNotFoundException":
|
|
1859
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1860
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1861
|
-
case "ServerException":
|
|
1862
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1863
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1864
|
-
default:
|
|
1865
|
-
const parsedBody = parsedOutput.body;
|
|
1866
|
-
return throwDefaultError({
|
|
1867
|
-
output,
|
|
1868
|
-
parsedBody,
|
|
1869
|
-
errorCode
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
|
-
}, "de_DescribeImagesCommandError");
|
|
1873
1436
|
var de_DescribeImageScanFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1874
1437
|
if (output.statusCode >= 300) {
|
|
1875
|
-
return
|
|
1438
|
+
return de_CommandError(output, context);
|
|
1876
1439
|
}
|
|
1877
1440
|
const data = await parseBody(output.body, context);
|
|
1878
1441
|
let contents = {};
|
|
@@ -1883,43 +1446,9 @@ var de_DescribeImageScanFindingsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1883
1446
|
};
|
|
1884
1447
|
return response;
|
|
1885
1448
|
}, "de_DescribeImageScanFindingsCommand");
|
|
1886
|
-
var de_DescribeImageScanFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1887
|
-
const parsedOutput = {
|
|
1888
|
-
...output,
|
|
1889
|
-
body: await parseErrorBody(output.body, context)
|
|
1890
|
-
};
|
|
1891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
|
-
switch (errorCode) {
|
|
1893
|
-
case "ImageNotFoundException":
|
|
1894
|
-
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
1895
|
-
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "InvalidParameterException":
|
|
1897
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1898
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "RepositoryNotFoundException":
|
|
1900
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1901
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "ScanNotFoundException":
|
|
1903
|
-
case "com.amazonaws.ecr#ScanNotFoundException":
|
|
1904
|
-
throw await de_ScanNotFoundExceptionRes(parsedOutput, context);
|
|
1905
|
-
case "ServerException":
|
|
1906
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1907
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "ValidationException":
|
|
1909
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
1910
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1911
|
-
default:
|
|
1912
|
-
const parsedBody = parsedOutput.body;
|
|
1913
|
-
return throwDefaultError({
|
|
1914
|
-
output,
|
|
1915
|
-
parsedBody,
|
|
1916
|
-
errorCode
|
|
1917
|
-
});
|
|
1918
|
-
}
|
|
1919
|
-
}, "de_DescribeImageScanFindingsCommandError");
|
|
1920
1449
|
var de_DescribePullThroughCacheRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1921
1450
|
if (output.statusCode >= 300) {
|
|
1922
|
-
return
|
|
1451
|
+
return de_CommandError(output, context);
|
|
1923
1452
|
}
|
|
1924
1453
|
const data = await parseBody(output.body, context);
|
|
1925
1454
|
let contents = {};
|
|
@@ -1930,37 +1459,9 @@ var de_DescribePullThroughCacheRulesCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1930
1459
|
};
|
|
1931
1460
|
return response;
|
|
1932
1461
|
}, "de_DescribePullThroughCacheRulesCommand");
|
|
1933
|
-
var de_DescribePullThroughCacheRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1934
|
-
const parsedOutput = {
|
|
1935
|
-
...output,
|
|
1936
|
-
body: await parseErrorBody(output.body, context)
|
|
1937
|
-
};
|
|
1938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1939
|
-
switch (errorCode) {
|
|
1940
|
-
case "InvalidParameterException":
|
|
1941
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1942
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "PullThroughCacheRuleNotFoundException":
|
|
1944
|
-
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
|
|
1945
|
-
throw await de_PullThroughCacheRuleNotFoundExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "ServerException":
|
|
1947
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1948
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "ValidationException":
|
|
1950
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
1951
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1952
|
-
default:
|
|
1953
|
-
const parsedBody = parsedOutput.body;
|
|
1954
|
-
return throwDefaultError({
|
|
1955
|
-
output,
|
|
1956
|
-
parsedBody,
|
|
1957
|
-
errorCode
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
1960
|
-
}, "de_DescribePullThroughCacheRulesCommandError");
|
|
1961
1462
|
var de_DescribeRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1962
1463
|
if (output.statusCode >= 300) {
|
|
1963
|
-
return
|
|
1464
|
+
return de_CommandError(output, context);
|
|
1964
1465
|
}
|
|
1965
1466
|
const data = await parseBody(output.body, context);
|
|
1966
1467
|
let contents = {};
|
|
@@ -1971,34 +1472,9 @@ var de_DescribeRegistryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1971
1472
|
};
|
|
1972
1473
|
return response;
|
|
1973
1474
|
}, "de_DescribeRegistryCommand");
|
|
1974
|
-
var de_DescribeRegistryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1975
|
-
const parsedOutput = {
|
|
1976
|
-
...output,
|
|
1977
|
-
body: await parseErrorBody(output.body, context)
|
|
1978
|
-
};
|
|
1979
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
|
-
switch (errorCode) {
|
|
1981
|
-
case "InvalidParameterException":
|
|
1982
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1983
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "ServerException":
|
|
1985
|
-
case "com.amazonaws.ecr#ServerException":
|
|
1986
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "ValidationException":
|
|
1988
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
1989
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1990
|
-
default:
|
|
1991
|
-
const parsedBody = parsedOutput.body;
|
|
1992
|
-
return throwDefaultError({
|
|
1993
|
-
output,
|
|
1994
|
-
parsedBody,
|
|
1995
|
-
errorCode
|
|
1996
|
-
});
|
|
1997
|
-
}
|
|
1998
|
-
}, "de_DescribeRegistryCommandError");
|
|
1999
1475
|
var de_DescribeRepositoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2000
1476
|
if (output.statusCode >= 300) {
|
|
2001
|
-
return
|
|
1477
|
+
return de_CommandError(output, context);
|
|
2002
1478
|
}
|
|
2003
1479
|
const data = await parseBody(output.body, context);
|
|
2004
1480
|
let contents = {};
|
|
@@ -2009,69 +1485,22 @@ var de_DescribeRepositoriesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2009
1485
|
};
|
|
2010
1486
|
return response;
|
|
2011
1487
|
}, "de_DescribeRepositoriesCommand");
|
|
2012
|
-
var
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
case "RepositoryNotFoundException":
|
|
2023
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2024
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "ServerException":
|
|
2026
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2027
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2028
|
-
default:
|
|
2029
|
-
const parsedBody = parsedOutput.body;
|
|
2030
|
-
return throwDefaultError({
|
|
2031
|
-
output,
|
|
2032
|
-
parsedBody,
|
|
2033
|
-
errorCode
|
|
2034
|
-
});
|
|
2035
|
-
}
|
|
2036
|
-
}, "de_DescribeRepositoriesCommandError");
|
|
2037
|
-
var de_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2038
|
-
if (output.statusCode >= 300) {
|
|
2039
|
-
return de_GetAuthorizationTokenCommandError(output, context);
|
|
2040
|
-
}
|
|
2041
|
-
const data = await parseBody(output.body, context);
|
|
2042
|
-
let contents = {};
|
|
2043
|
-
contents = de_GetAuthorizationTokenResponse(data, context);
|
|
2044
|
-
const response = {
|
|
2045
|
-
$metadata: deserializeMetadata(output),
|
|
2046
|
-
...contents
|
|
1488
|
+
var de_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1489
|
+
if (output.statusCode >= 300) {
|
|
1490
|
+
return de_CommandError(output, context);
|
|
1491
|
+
}
|
|
1492
|
+
const data = await parseBody(output.body, context);
|
|
1493
|
+
let contents = {};
|
|
1494
|
+
contents = de_GetAuthorizationTokenResponse(data, context);
|
|
1495
|
+
const response = {
|
|
1496
|
+
$metadata: deserializeMetadata(output),
|
|
1497
|
+
...contents
|
|
2047
1498
|
};
|
|
2048
1499
|
return response;
|
|
2049
1500
|
}, "de_GetAuthorizationTokenCommand");
|
|
2050
|
-
var de_GetAuthorizationTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2051
|
-
const parsedOutput = {
|
|
2052
|
-
...output,
|
|
2053
|
-
body: await parseErrorBody(output.body, context)
|
|
2054
|
-
};
|
|
2055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
|
-
switch (errorCode) {
|
|
2057
|
-
case "InvalidParameterException":
|
|
2058
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2059
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "ServerException":
|
|
2061
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2062
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2063
|
-
default:
|
|
2064
|
-
const parsedBody = parsedOutput.body;
|
|
2065
|
-
return throwDefaultError({
|
|
2066
|
-
output,
|
|
2067
|
-
parsedBody,
|
|
2068
|
-
errorCode
|
|
2069
|
-
});
|
|
2070
|
-
}
|
|
2071
|
-
}, "de_GetAuthorizationTokenCommandError");
|
|
2072
1501
|
var de_GetDownloadUrlForLayerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2073
1502
|
if (output.statusCode >= 300) {
|
|
2074
|
-
return
|
|
1503
|
+
return de_CommandError(output, context);
|
|
2075
1504
|
}
|
|
2076
1505
|
const data = await parseBody(output.body, context);
|
|
2077
1506
|
let contents = {};
|
|
@@ -2082,43 +1511,9 @@ var de_GetDownloadUrlForLayerCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2082
1511
|
};
|
|
2083
1512
|
return response;
|
|
2084
1513
|
}, "de_GetDownloadUrlForLayerCommand");
|
|
2085
|
-
var de_GetDownloadUrlForLayerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2086
|
-
const parsedOutput = {
|
|
2087
|
-
...output,
|
|
2088
|
-
body: await parseErrorBody(output.body, context)
|
|
2089
|
-
};
|
|
2090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
|
-
switch (errorCode) {
|
|
2092
|
-
case "InvalidParameterException":
|
|
2093
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2094
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2095
|
-
case "LayerInaccessibleException":
|
|
2096
|
-
case "com.amazonaws.ecr#LayerInaccessibleException":
|
|
2097
|
-
throw await de_LayerInaccessibleExceptionRes(parsedOutput, context);
|
|
2098
|
-
case "LayersNotFoundException":
|
|
2099
|
-
case "com.amazonaws.ecr#LayersNotFoundException":
|
|
2100
|
-
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "RepositoryNotFoundException":
|
|
2102
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2103
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ServerException":
|
|
2105
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2106
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "UnableToGetUpstreamLayerException":
|
|
2108
|
-
case "com.amazonaws.ecr#UnableToGetUpstreamLayerException":
|
|
2109
|
-
throw await de_UnableToGetUpstreamLayerExceptionRes(parsedOutput, context);
|
|
2110
|
-
default:
|
|
2111
|
-
const parsedBody = parsedOutput.body;
|
|
2112
|
-
return throwDefaultError({
|
|
2113
|
-
output,
|
|
2114
|
-
parsedBody,
|
|
2115
|
-
errorCode
|
|
2116
|
-
});
|
|
2117
|
-
}
|
|
2118
|
-
}, "de_GetDownloadUrlForLayerCommandError");
|
|
2119
1514
|
var de_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2120
1515
|
if (output.statusCode >= 300) {
|
|
2121
|
-
return
|
|
1516
|
+
return de_CommandError(output, context);
|
|
2122
1517
|
}
|
|
2123
1518
|
const data = await parseBody(output.body, context);
|
|
2124
1519
|
let contents = {};
|
|
@@ -2129,40 +1524,9 @@ var de_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2129
1524
|
};
|
|
2130
1525
|
return response;
|
|
2131
1526
|
}, "de_GetLifecyclePolicyCommand");
|
|
2132
|
-
var de_GetLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2133
|
-
const parsedOutput = {
|
|
2134
|
-
...output,
|
|
2135
|
-
body: await parseErrorBody(output.body, context)
|
|
2136
|
-
};
|
|
2137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2138
|
-
switch (errorCode) {
|
|
2139
|
-
case "InvalidParameterException":
|
|
2140
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2141
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "LifecyclePolicyNotFoundException":
|
|
2143
|
-
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
|
|
2144
|
-
throw await de_LifecyclePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "RepositoryNotFoundException":
|
|
2146
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2147
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "ServerException":
|
|
2149
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2150
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "ValidationException":
|
|
2152
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
2153
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2154
|
-
default:
|
|
2155
|
-
const parsedBody = parsedOutput.body;
|
|
2156
|
-
return throwDefaultError({
|
|
2157
|
-
output,
|
|
2158
|
-
parsedBody,
|
|
2159
|
-
errorCode
|
|
2160
|
-
});
|
|
2161
|
-
}
|
|
2162
|
-
}, "de_GetLifecyclePolicyCommandError");
|
|
2163
1527
|
var de_GetLifecyclePolicyPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2164
1528
|
if (output.statusCode >= 300) {
|
|
2165
|
-
return
|
|
1529
|
+
return de_CommandError(output, context);
|
|
2166
1530
|
}
|
|
2167
1531
|
const data = await parseBody(output.body, context);
|
|
2168
1532
|
let contents = {};
|
|
@@ -2173,40 +1537,9 @@ var de_GetLifecyclePolicyPreviewCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2173
1537
|
};
|
|
2174
1538
|
return response;
|
|
2175
1539
|
}, "de_GetLifecyclePolicyPreviewCommand");
|
|
2176
|
-
var de_GetLifecyclePolicyPreviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2177
|
-
const parsedOutput = {
|
|
2178
|
-
...output,
|
|
2179
|
-
body: await parseErrorBody(output.body, context)
|
|
2180
|
-
};
|
|
2181
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2182
|
-
switch (errorCode) {
|
|
2183
|
-
case "InvalidParameterException":
|
|
2184
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2185
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2186
|
-
case "LifecyclePolicyPreviewNotFoundException":
|
|
2187
|
-
case "com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":
|
|
2188
|
-
throw await de_LifecyclePolicyPreviewNotFoundExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "RepositoryNotFoundException":
|
|
2190
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2191
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "ServerException":
|
|
2193
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2194
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "ValidationException":
|
|
2196
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
2197
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2198
|
-
default:
|
|
2199
|
-
const parsedBody = parsedOutput.body;
|
|
2200
|
-
return throwDefaultError({
|
|
2201
|
-
output,
|
|
2202
|
-
parsedBody,
|
|
2203
|
-
errorCode
|
|
2204
|
-
});
|
|
2205
|
-
}
|
|
2206
|
-
}, "de_GetLifecyclePolicyPreviewCommandError");
|
|
2207
1540
|
var de_GetRegistryPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2208
1541
|
if (output.statusCode >= 300) {
|
|
2209
|
-
return
|
|
1542
|
+
return de_CommandError(output, context);
|
|
2210
1543
|
}
|
|
2211
1544
|
const data = await parseBody(output.body, context);
|
|
2212
1545
|
let contents = {};
|
|
@@ -2217,37 +1550,9 @@ var de_GetRegistryPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2217
1550
|
};
|
|
2218
1551
|
return response;
|
|
2219
1552
|
}, "de_GetRegistryPolicyCommand");
|
|
2220
|
-
var de_GetRegistryPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2221
|
-
const parsedOutput = {
|
|
2222
|
-
...output,
|
|
2223
|
-
body: await parseErrorBody(output.body, context)
|
|
2224
|
-
};
|
|
2225
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2226
|
-
switch (errorCode) {
|
|
2227
|
-
case "InvalidParameterException":
|
|
2228
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2229
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2230
|
-
case "RegistryPolicyNotFoundException":
|
|
2231
|
-
case "com.amazonaws.ecr#RegistryPolicyNotFoundException":
|
|
2232
|
-
throw await de_RegistryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2233
|
-
case "ServerException":
|
|
2234
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2235
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2236
|
-
case "ValidationException":
|
|
2237
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
2238
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2239
|
-
default:
|
|
2240
|
-
const parsedBody = parsedOutput.body;
|
|
2241
|
-
return throwDefaultError({
|
|
2242
|
-
output,
|
|
2243
|
-
parsedBody,
|
|
2244
|
-
errorCode
|
|
2245
|
-
});
|
|
2246
|
-
}
|
|
2247
|
-
}, "de_GetRegistryPolicyCommandError");
|
|
2248
1553
|
var de_GetRegistryScanningConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2249
1554
|
if (output.statusCode >= 300) {
|
|
2250
|
-
return
|
|
1555
|
+
return de_CommandError(output, context);
|
|
2251
1556
|
}
|
|
2252
1557
|
const data = await parseBody(output.body, context);
|
|
2253
1558
|
let contents = {};
|
|
@@ -2258,34 +1563,9 @@ var de_GetRegistryScanningConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
2258
1563
|
};
|
|
2259
1564
|
return response;
|
|
2260
1565
|
}, "de_GetRegistryScanningConfigurationCommand");
|
|
2261
|
-
var de_GetRegistryScanningConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2262
|
-
const parsedOutput = {
|
|
2263
|
-
...output,
|
|
2264
|
-
body: await parseErrorBody(output.body, context)
|
|
2265
|
-
};
|
|
2266
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2267
|
-
switch (errorCode) {
|
|
2268
|
-
case "InvalidParameterException":
|
|
2269
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2270
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "ServerException":
|
|
2272
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2273
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2274
|
-
case "ValidationException":
|
|
2275
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
2276
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2277
|
-
default:
|
|
2278
|
-
const parsedBody = parsedOutput.body;
|
|
2279
|
-
return throwDefaultError({
|
|
2280
|
-
output,
|
|
2281
|
-
parsedBody,
|
|
2282
|
-
errorCode
|
|
2283
|
-
});
|
|
2284
|
-
}
|
|
2285
|
-
}, "de_GetRegistryScanningConfigurationCommandError");
|
|
2286
1566
|
var de_GetRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2287
1567
|
if (output.statusCode >= 300) {
|
|
2288
|
-
return
|
|
1568
|
+
return de_CommandError(output, context);
|
|
2289
1569
|
}
|
|
2290
1570
|
const data = await parseBody(output.body, context);
|
|
2291
1571
|
let contents = {};
|
|
@@ -2296,37 +1576,9 @@ var de_GetRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2296
1576
|
};
|
|
2297
1577
|
return response;
|
|
2298
1578
|
}, "de_GetRepositoryPolicyCommand");
|
|
2299
|
-
var de_GetRepositoryPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2300
|
-
const parsedOutput = {
|
|
2301
|
-
...output,
|
|
2302
|
-
body: await parseErrorBody(output.body, context)
|
|
2303
|
-
};
|
|
2304
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2305
|
-
switch (errorCode) {
|
|
2306
|
-
case "InvalidParameterException":
|
|
2307
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2308
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2309
|
-
case "RepositoryNotFoundException":
|
|
2310
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2311
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2312
|
-
case "RepositoryPolicyNotFoundException":
|
|
2313
|
-
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException":
|
|
2314
|
-
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "ServerException":
|
|
2316
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2317
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2318
|
-
default:
|
|
2319
|
-
const parsedBody = parsedOutput.body;
|
|
2320
|
-
return throwDefaultError({
|
|
2321
|
-
output,
|
|
2322
|
-
parsedBody,
|
|
2323
|
-
errorCode
|
|
2324
|
-
});
|
|
2325
|
-
}
|
|
2326
|
-
}, "de_GetRepositoryPolicyCommandError");
|
|
2327
1579
|
var de_InitiateLayerUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2328
1580
|
if (output.statusCode >= 300) {
|
|
2329
|
-
return
|
|
1581
|
+
return de_CommandError(output, context);
|
|
2330
1582
|
}
|
|
2331
1583
|
const data = await parseBody(output.body, context);
|
|
2332
1584
|
let contents = {};
|
|
@@ -2337,37 +1589,9 @@ var de_InitiateLayerUploadCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2337
1589
|
};
|
|
2338
1590
|
return response;
|
|
2339
1591
|
}, "de_InitiateLayerUploadCommand");
|
|
2340
|
-
var de_InitiateLayerUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2341
|
-
const parsedOutput = {
|
|
2342
|
-
...output,
|
|
2343
|
-
body: await parseErrorBody(output.body, context)
|
|
2344
|
-
};
|
|
2345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
|
-
switch (errorCode) {
|
|
2347
|
-
case "InvalidParameterException":
|
|
2348
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2349
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "KmsException":
|
|
2351
|
-
case "com.amazonaws.ecr#KmsException":
|
|
2352
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "RepositoryNotFoundException":
|
|
2354
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2355
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "ServerException":
|
|
2357
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2358
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2359
|
-
default:
|
|
2360
|
-
const parsedBody = parsedOutput.body;
|
|
2361
|
-
return throwDefaultError({
|
|
2362
|
-
output,
|
|
2363
|
-
parsedBody,
|
|
2364
|
-
errorCode
|
|
2365
|
-
});
|
|
2366
|
-
}
|
|
2367
|
-
}, "de_InitiateLayerUploadCommandError");
|
|
2368
1592
|
var de_ListImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2369
1593
|
if (output.statusCode >= 300) {
|
|
2370
|
-
return
|
|
1594
|
+
return de_CommandError(output, context);
|
|
2371
1595
|
}
|
|
2372
1596
|
const data = await parseBody(output.body, context);
|
|
2373
1597
|
let contents = {};
|
|
@@ -2378,34 +1602,9 @@ var de_ListImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2378
1602
|
};
|
|
2379
1603
|
return response;
|
|
2380
1604
|
}, "de_ListImagesCommand");
|
|
2381
|
-
var de_ListImagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2382
|
-
const parsedOutput = {
|
|
2383
|
-
...output,
|
|
2384
|
-
body: await parseErrorBody(output.body, context)
|
|
2385
|
-
};
|
|
2386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2387
|
-
switch (errorCode) {
|
|
2388
|
-
case "InvalidParameterException":
|
|
2389
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2390
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "RepositoryNotFoundException":
|
|
2392
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2393
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "ServerException":
|
|
2395
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2396
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2397
|
-
default:
|
|
2398
|
-
const parsedBody = parsedOutput.body;
|
|
2399
|
-
return throwDefaultError({
|
|
2400
|
-
output,
|
|
2401
|
-
parsedBody,
|
|
2402
|
-
errorCode
|
|
2403
|
-
});
|
|
2404
|
-
}
|
|
2405
|
-
}, "de_ListImagesCommandError");
|
|
2406
1605
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2407
1606
|
if (output.statusCode >= 300) {
|
|
2408
|
-
return
|
|
1607
|
+
return de_CommandError(output, context);
|
|
2409
1608
|
}
|
|
2410
1609
|
const data = await parseBody(output.body, context);
|
|
2411
1610
|
let contents = {};
|
|
@@ -2416,34 +1615,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2416
1615
|
};
|
|
2417
1616
|
return response;
|
|
2418
1617
|
}, "de_ListTagsForResourceCommand");
|
|
2419
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2420
|
-
const parsedOutput = {
|
|
2421
|
-
...output,
|
|
2422
|
-
body: await parseErrorBody(output.body, context)
|
|
2423
|
-
};
|
|
2424
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2425
|
-
switch (errorCode) {
|
|
2426
|
-
case "InvalidParameterException":
|
|
2427
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2428
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "RepositoryNotFoundException":
|
|
2430
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2431
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "ServerException":
|
|
2433
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2434
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2435
|
-
default:
|
|
2436
|
-
const parsedBody = parsedOutput.body;
|
|
2437
|
-
return throwDefaultError({
|
|
2438
|
-
output,
|
|
2439
|
-
parsedBody,
|
|
2440
|
-
errorCode
|
|
2441
|
-
});
|
|
2442
|
-
}
|
|
2443
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2444
1618
|
var de_PutImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2445
1619
|
if (output.statusCode >= 300) {
|
|
2446
|
-
return
|
|
1620
|
+
return de_CommandError(output, context);
|
|
2447
1621
|
}
|
|
2448
1622
|
const data = await parseBody(output.body, context);
|
|
2449
1623
|
let contents = {};
|
|
@@ -2454,55 +1628,9 @@ var de_PutImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2454
1628
|
};
|
|
2455
1629
|
return response;
|
|
2456
1630
|
}, "de_PutImageCommand");
|
|
2457
|
-
var de_PutImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2458
|
-
const parsedOutput = {
|
|
2459
|
-
...output,
|
|
2460
|
-
body: await parseErrorBody(output.body, context)
|
|
2461
|
-
};
|
|
2462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
|
-
switch (errorCode) {
|
|
2464
|
-
case "ImageAlreadyExistsException":
|
|
2465
|
-
case "com.amazonaws.ecr#ImageAlreadyExistsException":
|
|
2466
|
-
throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "ImageDigestDoesNotMatchException":
|
|
2468
|
-
case "com.amazonaws.ecr#ImageDigestDoesNotMatchException":
|
|
2469
|
-
throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "ImageTagAlreadyExistsException":
|
|
2471
|
-
case "com.amazonaws.ecr#ImageTagAlreadyExistsException":
|
|
2472
|
-
throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2473
|
-
case "InvalidParameterException":
|
|
2474
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2475
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "KmsException":
|
|
2477
|
-
case "com.amazonaws.ecr#KmsException":
|
|
2478
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
2479
|
-
case "LayersNotFoundException":
|
|
2480
|
-
case "com.amazonaws.ecr#LayersNotFoundException":
|
|
2481
|
-
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
2482
|
-
case "LimitExceededException":
|
|
2483
|
-
case "com.amazonaws.ecr#LimitExceededException":
|
|
2484
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2485
|
-
case "ReferencedImagesNotFoundException":
|
|
2486
|
-
case "com.amazonaws.ecr#ReferencedImagesNotFoundException":
|
|
2487
|
-
throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
|
|
2488
|
-
case "RepositoryNotFoundException":
|
|
2489
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2490
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2491
|
-
case "ServerException":
|
|
2492
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2493
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2494
|
-
default:
|
|
2495
|
-
const parsedBody = parsedOutput.body;
|
|
2496
|
-
return throwDefaultError({
|
|
2497
|
-
output,
|
|
2498
|
-
parsedBody,
|
|
2499
|
-
errorCode
|
|
2500
|
-
});
|
|
2501
|
-
}
|
|
2502
|
-
}, "de_PutImageCommandError");
|
|
2503
1631
|
var de_PutImageScanningConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2504
1632
|
if (output.statusCode >= 300) {
|
|
2505
|
-
return
|
|
1633
|
+
return de_CommandError(output, context);
|
|
2506
1634
|
}
|
|
2507
1635
|
const data = await parseBody(output.body, context);
|
|
2508
1636
|
let contents = {};
|
|
@@ -2513,37 +1641,9 @@ var de_PutImageScanningConfigurationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2513
1641
|
};
|
|
2514
1642
|
return response;
|
|
2515
1643
|
}, "de_PutImageScanningConfigurationCommand");
|
|
2516
|
-
var de_PutImageScanningConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2517
|
-
const parsedOutput = {
|
|
2518
|
-
...output,
|
|
2519
|
-
body: await parseErrorBody(output.body, context)
|
|
2520
|
-
};
|
|
2521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2522
|
-
switch (errorCode) {
|
|
2523
|
-
case "InvalidParameterException":
|
|
2524
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2525
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "RepositoryNotFoundException":
|
|
2527
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2528
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2529
|
-
case "ServerException":
|
|
2530
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2531
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2532
|
-
case "ValidationException":
|
|
2533
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
2534
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2535
|
-
default:
|
|
2536
|
-
const parsedBody = parsedOutput.body;
|
|
2537
|
-
return throwDefaultError({
|
|
2538
|
-
output,
|
|
2539
|
-
parsedBody,
|
|
2540
|
-
errorCode
|
|
2541
|
-
});
|
|
2542
|
-
}
|
|
2543
|
-
}, "de_PutImageScanningConfigurationCommandError");
|
|
2544
1644
|
var de_PutImageTagMutabilityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2545
1645
|
if (output.statusCode >= 300) {
|
|
2546
|
-
return
|
|
1646
|
+
return de_CommandError(output, context);
|
|
2547
1647
|
}
|
|
2548
1648
|
const data = await parseBody(output.body, context);
|
|
2549
1649
|
let contents = {};
|
|
@@ -2554,34 +1654,9 @@ var de_PutImageTagMutabilityCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2554
1654
|
};
|
|
2555
1655
|
return response;
|
|
2556
1656
|
}, "de_PutImageTagMutabilityCommand");
|
|
2557
|
-
var de_PutImageTagMutabilityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2558
|
-
const parsedOutput = {
|
|
2559
|
-
...output,
|
|
2560
|
-
body: await parseErrorBody(output.body, context)
|
|
2561
|
-
};
|
|
2562
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2563
|
-
switch (errorCode) {
|
|
2564
|
-
case "InvalidParameterException":
|
|
2565
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2566
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2567
|
-
case "RepositoryNotFoundException":
|
|
2568
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2569
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2570
|
-
case "ServerException":
|
|
2571
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2572
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2573
|
-
default:
|
|
2574
|
-
const parsedBody = parsedOutput.body;
|
|
2575
|
-
return throwDefaultError({
|
|
2576
|
-
output,
|
|
2577
|
-
parsedBody,
|
|
2578
|
-
errorCode
|
|
2579
|
-
});
|
|
2580
|
-
}
|
|
2581
|
-
}, "de_PutImageTagMutabilityCommandError");
|
|
2582
1657
|
var de_PutLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2583
1658
|
if (output.statusCode >= 300) {
|
|
2584
|
-
return
|
|
1659
|
+
return de_CommandError(output, context);
|
|
2585
1660
|
}
|
|
2586
1661
|
const data = await parseBody(output.body, context);
|
|
2587
1662
|
let contents = {};
|
|
@@ -2592,37 +1667,9 @@ var de_PutLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2592
1667
|
};
|
|
2593
1668
|
return response;
|
|
2594
1669
|
}, "de_PutLifecyclePolicyCommand");
|
|
2595
|
-
var de_PutLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2596
|
-
const parsedOutput = {
|
|
2597
|
-
...output,
|
|
2598
|
-
body: await parseErrorBody(output.body, context)
|
|
2599
|
-
};
|
|
2600
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2601
|
-
switch (errorCode) {
|
|
2602
|
-
case "InvalidParameterException":
|
|
2603
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2604
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2605
|
-
case "RepositoryNotFoundException":
|
|
2606
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2607
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2608
|
-
case "ServerException":
|
|
2609
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2610
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "ValidationException":
|
|
2612
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
2613
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2614
|
-
default:
|
|
2615
|
-
const parsedBody = parsedOutput.body;
|
|
2616
|
-
return throwDefaultError({
|
|
2617
|
-
output,
|
|
2618
|
-
parsedBody,
|
|
2619
|
-
errorCode
|
|
2620
|
-
});
|
|
2621
|
-
}
|
|
2622
|
-
}, "de_PutLifecyclePolicyCommandError");
|
|
2623
1670
|
var de_PutRegistryPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2624
1671
|
if (output.statusCode >= 300) {
|
|
2625
|
-
return
|
|
1672
|
+
return de_CommandError(output, context);
|
|
2626
1673
|
}
|
|
2627
1674
|
const data = await parseBody(output.body, context);
|
|
2628
1675
|
let contents = {};
|
|
@@ -2633,34 +1680,9 @@ var de_PutRegistryPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2633
1680
|
};
|
|
2634
1681
|
return response;
|
|
2635
1682
|
}, "de_PutRegistryPolicyCommand");
|
|
2636
|
-
var de_PutRegistryPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2637
|
-
const parsedOutput = {
|
|
2638
|
-
...output,
|
|
2639
|
-
body: await parseErrorBody(output.body, context)
|
|
2640
|
-
};
|
|
2641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2642
|
-
switch (errorCode) {
|
|
2643
|
-
case "InvalidParameterException":
|
|
2644
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2645
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2646
|
-
case "ServerException":
|
|
2647
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2648
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2649
|
-
case "ValidationException":
|
|
2650
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
2651
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2652
|
-
default:
|
|
2653
|
-
const parsedBody = parsedOutput.body;
|
|
2654
|
-
return throwDefaultError({
|
|
2655
|
-
output,
|
|
2656
|
-
parsedBody,
|
|
2657
|
-
errorCode
|
|
2658
|
-
});
|
|
2659
|
-
}
|
|
2660
|
-
}, "de_PutRegistryPolicyCommandError");
|
|
2661
1683
|
var de_PutRegistryScanningConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2662
1684
|
if (output.statusCode >= 300) {
|
|
2663
|
-
return
|
|
1685
|
+
return de_CommandError(output, context);
|
|
2664
1686
|
}
|
|
2665
1687
|
const data = await parseBody(output.body, context);
|
|
2666
1688
|
let contents = {};
|
|
@@ -2671,34 +1693,9 @@ var de_PutRegistryScanningConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
2671
1693
|
};
|
|
2672
1694
|
return response;
|
|
2673
1695
|
}, "de_PutRegistryScanningConfigurationCommand");
|
|
2674
|
-
var de_PutRegistryScanningConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2675
|
-
const parsedOutput = {
|
|
2676
|
-
...output,
|
|
2677
|
-
body: await parseErrorBody(output.body, context)
|
|
2678
|
-
};
|
|
2679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2680
|
-
switch (errorCode) {
|
|
2681
|
-
case "InvalidParameterException":
|
|
2682
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2683
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2684
|
-
case "ServerException":
|
|
2685
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2686
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2687
|
-
case "ValidationException":
|
|
2688
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
2689
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2690
|
-
default:
|
|
2691
|
-
const parsedBody = parsedOutput.body;
|
|
2692
|
-
return throwDefaultError({
|
|
2693
|
-
output,
|
|
2694
|
-
parsedBody,
|
|
2695
|
-
errorCode
|
|
2696
|
-
});
|
|
2697
|
-
}
|
|
2698
|
-
}, "de_PutRegistryScanningConfigurationCommandError");
|
|
2699
1696
|
var de_PutReplicationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2700
1697
|
if (output.statusCode >= 300) {
|
|
2701
|
-
return
|
|
1698
|
+
return de_CommandError(output, context);
|
|
2702
1699
|
}
|
|
2703
1700
|
const data = await parseBody(output.body, context);
|
|
2704
1701
|
let contents = {};
|
|
@@ -2709,34 +1706,9 @@ var de_PutReplicationConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
2709
1706
|
};
|
|
2710
1707
|
return response;
|
|
2711
1708
|
}, "de_PutReplicationConfigurationCommand");
|
|
2712
|
-
var de_PutReplicationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2713
|
-
const parsedOutput = {
|
|
2714
|
-
...output,
|
|
2715
|
-
body: await parseErrorBody(output.body, context)
|
|
2716
|
-
};
|
|
2717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2718
|
-
switch (errorCode) {
|
|
2719
|
-
case "InvalidParameterException":
|
|
2720
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2721
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2722
|
-
case "ServerException":
|
|
2723
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2724
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "ValidationException":
|
|
2726
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
2727
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2728
|
-
default:
|
|
2729
|
-
const parsedBody = parsedOutput.body;
|
|
2730
|
-
return throwDefaultError({
|
|
2731
|
-
output,
|
|
2732
|
-
parsedBody,
|
|
2733
|
-
errorCode
|
|
2734
|
-
});
|
|
2735
|
-
}
|
|
2736
|
-
}, "de_PutReplicationConfigurationCommandError");
|
|
2737
1709
|
var de_SetRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2738
1710
|
if (output.statusCode >= 300) {
|
|
2739
|
-
return
|
|
1711
|
+
return de_CommandError(output, context);
|
|
2740
1712
|
}
|
|
2741
1713
|
const data = await parseBody(output.body, context);
|
|
2742
1714
|
let contents = {};
|
|
@@ -2747,34 +1719,9 @@ var de_SetRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2747
1719
|
};
|
|
2748
1720
|
return response;
|
|
2749
1721
|
}, "de_SetRepositoryPolicyCommand");
|
|
2750
|
-
var de_SetRepositoryPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2751
|
-
const parsedOutput = {
|
|
2752
|
-
...output,
|
|
2753
|
-
body: await parseErrorBody(output.body, context)
|
|
2754
|
-
};
|
|
2755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2756
|
-
switch (errorCode) {
|
|
2757
|
-
case "InvalidParameterException":
|
|
2758
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2759
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2760
|
-
case "RepositoryNotFoundException":
|
|
2761
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2762
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2763
|
-
case "ServerException":
|
|
2764
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2765
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2766
|
-
default:
|
|
2767
|
-
const parsedBody = parsedOutput.body;
|
|
2768
|
-
return throwDefaultError({
|
|
2769
|
-
output,
|
|
2770
|
-
parsedBody,
|
|
2771
|
-
errorCode
|
|
2772
|
-
});
|
|
2773
|
-
}
|
|
2774
|
-
}, "de_SetRepositoryPolicyCommandError");
|
|
2775
1722
|
var de_StartImageScanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2776
1723
|
if (output.statusCode >= 300) {
|
|
2777
|
-
return
|
|
1724
|
+
return de_CommandError(output, context);
|
|
2778
1725
|
}
|
|
2779
1726
|
const data = await parseBody(output.body, context);
|
|
2780
1727
|
let contents = {};
|
|
@@ -2785,93 +1732,22 @@ var de_StartImageScanCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2785
1732
|
};
|
|
2786
1733
|
return response;
|
|
2787
1734
|
}, "de_StartImageScanCommand");
|
|
2788
|
-
var
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
case "InvalidParameterException":
|
|
2799
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2800
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "LimitExceededException":
|
|
2802
|
-
case "com.amazonaws.ecr#LimitExceededException":
|
|
2803
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "RepositoryNotFoundException":
|
|
2805
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2806
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "ServerException":
|
|
2808
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2809
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "UnsupportedImageTypeException":
|
|
2811
|
-
case "com.amazonaws.ecr#UnsupportedImageTypeException":
|
|
2812
|
-
throw await de_UnsupportedImageTypeExceptionRes(parsedOutput, context);
|
|
2813
|
-
case "ValidationException":
|
|
2814
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
2815
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2816
|
-
default:
|
|
2817
|
-
const parsedBody = parsedOutput.body;
|
|
2818
|
-
return throwDefaultError({
|
|
2819
|
-
output,
|
|
2820
|
-
parsedBody,
|
|
2821
|
-
errorCode
|
|
2822
|
-
});
|
|
2823
|
-
}
|
|
2824
|
-
}, "de_StartImageScanCommandError");
|
|
2825
|
-
var de_StartLifecyclePolicyPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2826
|
-
if (output.statusCode >= 300) {
|
|
2827
|
-
return de_StartLifecyclePolicyPreviewCommandError(output, context);
|
|
2828
|
-
}
|
|
2829
|
-
const data = await parseBody(output.body, context);
|
|
2830
|
-
let contents = {};
|
|
2831
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2832
|
-
const response = {
|
|
2833
|
-
$metadata: deserializeMetadata(output),
|
|
2834
|
-
...contents
|
|
1735
|
+
var de_StartLifecyclePolicyPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1736
|
+
if (output.statusCode >= 300) {
|
|
1737
|
+
return de_CommandError(output, context);
|
|
1738
|
+
}
|
|
1739
|
+
const data = await parseBody(output.body, context);
|
|
1740
|
+
let contents = {};
|
|
1741
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1742
|
+
const response = {
|
|
1743
|
+
$metadata: deserializeMetadata(output),
|
|
1744
|
+
...contents
|
|
2835
1745
|
};
|
|
2836
1746
|
return response;
|
|
2837
1747
|
}, "de_StartLifecyclePolicyPreviewCommand");
|
|
2838
|
-
var de_StartLifecyclePolicyPreviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2839
|
-
const parsedOutput = {
|
|
2840
|
-
...output,
|
|
2841
|
-
body: await parseErrorBody(output.body, context)
|
|
2842
|
-
};
|
|
2843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
|
-
switch (errorCode) {
|
|
2845
|
-
case "InvalidParameterException":
|
|
2846
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2847
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "LifecyclePolicyNotFoundException":
|
|
2849
|
-
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
|
|
2850
|
-
throw await de_LifecyclePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "LifecyclePolicyPreviewInProgressException":
|
|
2852
|
-
case "com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":
|
|
2853
|
-
throw await de_LifecyclePolicyPreviewInProgressExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "RepositoryNotFoundException":
|
|
2855
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2856
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2857
|
-
case "ServerException":
|
|
2858
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2859
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2860
|
-
case "ValidationException":
|
|
2861
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
2862
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2863
|
-
default:
|
|
2864
|
-
const parsedBody = parsedOutput.body;
|
|
2865
|
-
return throwDefaultError({
|
|
2866
|
-
output,
|
|
2867
|
-
parsedBody,
|
|
2868
|
-
errorCode
|
|
2869
|
-
});
|
|
2870
|
-
}
|
|
2871
|
-
}, "de_StartLifecyclePolicyPreviewCommandError");
|
|
2872
1748
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2873
1749
|
if (output.statusCode >= 300) {
|
|
2874
|
-
return
|
|
1750
|
+
return de_CommandError(output, context);
|
|
2875
1751
|
}
|
|
2876
1752
|
const data = await parseBody(output.body, context);
|
|
2877
1753
|
let contents = {};
|
|
@@ -2882,40 +1758,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2882
1758
|
};
|
|
2883
1759
|
return response;
|
|
2884
1760
|
}, "de_TagResourceCommand");
|
|
2885
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2886
|
-
const parsedOutput = {
|
|
2887
|
-
...output,
|
|
2888
|
-
body: await parseErrorBody(output.body, context)
|
|
2889
|
-
};
|
|
2890
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2891
|
-
switch (errorCode) {
|
|
2892
|
-
case "InvalidParameterException":
|
|
2893
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2894
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2895
|
-
case "InvalidTagParameterException":
|
|
2896
|
-
case "com.amazonaws.ecr#InvalidTagParameterException":
|
|
2897
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
2898
|
-
case "RepositoryNotFoundException":
|
|
2899
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2900
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2901
|
-
case "ServerException":
|
|
2902
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2903
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2904
|
-
case "TooManyTagsException":
|
|
2905
|
-
case "com.amazonaws.ecr#TooManyTagsException":
|
|
2906
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2907
|
-
default:
|
|
2908
|
-
const parsedBody = parsedOutput.body;
|
|
2909
|
-
return throwDefaultError({
|
|
2910
|
-
output,
|
|
2911
|
-
parsedBody,
|
|
2912
|
-
errorCode
|
|
2913
|
-
});
|
|
2914
|
-
}
|
|
2915
|
-
}, "de_TagResourceCommandError");
|
|
2916
1761
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2917
1762
|
if (output.statusCode >= 300) {
|
|
2918
|
-
return
|
|
1763
|
+
return de_CommandError(output, context);
|
|
2919
1764
|
}
|
|
2920
1765
|
const data = await parseBody(output.body, context);
|
|
2921
1766
|
let contents = {};
|
|
@@ -2926,40 +1771,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2926
1771
|
};
|
|
2927
1772
|
return response;
|
|
2928
1773
|
}, "de_UntagResourceCommand");
|
|
2929
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2930
|
-
const parsedOutput = {
|
|
2931
|
-
...output,
|
|
2932
|
-
body: await parseErrorBody(output.body, context)
|
|
2933
|
-
};
|
|
2934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
|
-
switch (errorCode) {
|
|
2936
|
-
case "InvalidParameterException":
|
|
2937
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2938
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2939
|
-
case "InvalidTagParameterException":
|
|
2940
|
-
case "com.amazonaws.ecr#InvalidTagParameterException":
|
|
2941
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
2942
|
-
case "RepositoryNotFoundException":
|
|
2943
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2944
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2945
|
-
case "ServerException":
|
|
2946
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2947
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2948
|
-
case "TooManyTagsException":
|
|
2949
|
-
case "com.amazonaws.ecr#TooManyTagsException":
|
|
2950
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2951
|
-
default:
|
|
2952
|
-
const parsedBody = parsedOutput.body;
|
|
2953
|
-
return throwDefaultError({
|
|
2954
|
-
output,
|
|
2955
|
-
parsedBody,
|
|
2956
|
-
errorCode
|
|
2957
|
-
});
|
|
2958
|
-
}
|
|
2959
|
-
}, "de_UntagResourceCommandError");
|
|
2960
1774
|
var de_UpdatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2961
1775
|
if (output.statusCode >= 300) {
|
|
2962
|
-
return
|
|
1776
|
+
return de_CommandError(output, context);
|
|
2963
1777
|
}
|
|
2964
1778
|
const data = await parseBody(output.body, context);
|
|
2965
1779
|
let contents = {};
|
|
@@ -2970,46 +1784,9 @@ var de_UpdatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2970
1784
|
};
|
|
2971
1785
|
return response;
|
|
2972
1786
|
}, "de_UpdatePullThroughCacheRuleCommand");
|
|
2973
|
-
var de_UpdatePullThroughCacheRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2974
|
-
const parsedOutput = {
|
|
2975
|
-
...output,
|
|
2976
|
-
body: await parseErrorBody(output.body, context)
|
|
2977
|
-
};
|
|
2978
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2979
|
-
switch (errorCode) {
|
|
2980
|
-
case "InvalidParameterException":
|
|
2981
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2982
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2983
|
-
case "PullThroughCacheRuleNotFoundException":
|
|
2984
|
-
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
|
|
2985
|
-
throw await de_PullThroughCacheRuleNotFoundExceptionRes(parsedOutput, context);
|
|
2986
|
-
case "SecretNotFoundException":
|
|
2987
|
-
case "com.amazonaws.ecr#SecretNotFoundException":
|
|
2988
|
-
throw await de_SecretNotFoundExceptionRes(parsedOutput, context);
|
|
2989
|
-
case "ServerException":
|
|
2990
|
-
case "com.amazonaws.ecr#ServerException":
|
|
2991
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2992
|
-
case "UnableToAccessSecretException":
|
|
2993
|
-
case "com.amazonaws.ecr#UnableToAccessSecretException":
|
|
2994
|
-
throw await de_UnableToAccessSecretExceptionRes(parsedOutput, context);
|
|
2995
|
-
case "UnableToDecryptSecretValueException":
|
|
2996
|
-
case "com.amazonaws.ecr#UnableToDecryptSecretValueException":
|
|
2997
|
-
throw await de_UnableToDecryptSecretValueExceptionRes(parsedOutput, context);
|
|
2998
|
-
case "ValidationException":
|
|
2999
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
3000
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3001
|
-
default:
|
|
3002
|
-
const parsedBody = parsedOutput.body;
|
|
3003
|
-
return throwDefaultError({
|
|
3004
|
-
output,
|
|
3005
|
-
parsedBody,
|
|
3006
|
-
errorCode
|
|
3007
|
-
});
|
|
3008
|
-
}
|
|
3009
|
-
}, "de_UpdatePullThroughCacheRuleCommandError");
|
|
3010
1787
|
var de_UploadLayerPartCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3011
1788
|
if (output.statusCode >= 300) {
|
|
3012
|
-
return
|
|
1789
|
+
return de_CommandError(output, context);
|
|
3013
1790
|
}
|
|
3014
1791
|
const data = await parseBody(output.body, context);
|
|
3015
1792
|
let contents = {};
|
|
@@ -3020,46 +1797,9 @@ var de_UploadLayerPartCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3020
1797
|
};
|
|
3021
1798
|
return response;
|
|
3022
1799
|
}, "de_UploadLayerPartCommand");
|
|
3023
|
-
var de_UploadLayerPartCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3024
|
-
const parsedOutput = {
|
|
3025
|
-
...output,
|
|
3026
|
-
body: await parseErrorBody(output.body, context)
|
|
3027
|
-
};
|
|
3028
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3029
|
-
switch (errorCode) {
|
|
3030
|
-
case "InvalidLayerPartException":
|
|
3031
|
-
case "com.amazonaws.ecr#InvalidLayerPartException":
|
|
3032
|
-
throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
|
|
3033
|
-
case "InvalidParameterException":
|
|
3034
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
3035
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3036
|
-
case "KmsException":
|
|
3037
|
-
case "com.amazonaws.ecr#KmsException":
|
|
3038
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
3039
|
-
case "LimitExceededException":
|
|
3040
|
-
case "com.amazonaws.ecr#LimitExceededException":
|
|
3041
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3042
|
-
case "RepositoryNotFoundException":
|
|
3043
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
3044
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
3045
|
-
case "ServerException":
|
|
3046
|
-
case "com.amazonaws.ecr#ServerException":
|
|
3047
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3048
|
-
case "UploadNotFoundException":
|
|
3049
|
-
case "com.amazonaws.ecr#UploadNotFoundException":
|
|
3050
|
-
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
3051
|
-
default:
|
|
3052
|
-
const parsedBody = parsedOutput.body;
|
|
3053
|
-
return throwDefaultError({
|
|
3054
|
-
output,
|
|
3055
|
-
parsedBody,
|
|
3056
|
-
errorCode
|
|
3057
|
-
});
|
|
3058
|
-
}
|
|
3059
|
-
}, "de_UploadLayerPartCommandError");
|
|
3060
1800
|
var de_ValidatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3061
1801
|
if (output.statusCode >= 300) {
|
|
3062
|
-
return
|
|
1802
|
+
return de_CommandError(output, context);
|
|
3063
1803
|
}
|
|
3064
1804
|
const data = await parseBody(output.body, context);
|
|
3065
1805
|
let contents = {};
|
|
@@ -3070,7 +1810,7 @@ var de_ValidatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3070
1810
|
};
|
|
3071
1811
|
return response;
|
|
3072
1812
|
}, "de_ValidatePullThroughCacheRuleCommand");
|
|
3073
|
-
var
|
|
1813
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3074
1814
|
const parsedOutput = {
|
|
3075
1815
|
...output,
|
|
3076
1816
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3080,15 +1820,117 @@ var de_ValidatePullThroughCacheRuleCommandError = /* @__PURE__ */ __name(async (
|
|
|
3080
1820
|
case "InvalidParameterException":
|
|
3081
1821
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
3082
1822
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3083
|
-
case "
|
|
3084
|
-
case "com.amazonaws.ecr#
|
|
3085
|
-
throw await
|
|
1823
|
+
case "RepositoryNotFoundException":
|
|
1824
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1825
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
3086
1826
|
case "ServerException":
|
|
3087
1827
|
case "com.amazonaws.ecr#ServerException":
|
|
3088
1828
|
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1829
|
+
case "LimitExceededException":
|
|
1830
|
+
case "com.amazonaws.ecr#LimitExceededException":
|
|
1831
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1832
|
+
case "UnableToGetUpstreamImageException":
|
|
1833
|
+
case "com.amazonaws.ecr#UnableToGetUpstreamImageException":
|
|
1834
|
+
throw await de_UnableToGetUpstreamImageExceptionRes(parsedOutput, context);
|
|
3089
1835
|
case "ValidationException":
|
|
3090
1836
|
case "com.amazonaws.ecr#ValidationException":
|
|
3091
1837
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1838
|
+
case "EmptyUploadException":
|
|
1839
|
+
case "com.amazonaws.ecr#EmptyUploadException":
|
|
1840
|
+
throw await de_EmptyUploadExceptionRes(parsedOutput, context);
|
|
1841
|
+
case "InvalidLayerException":
|
|
1842
|
+
case "com.amazonaws.ecr#InvalidLayerException":
|
|
1843
|
+
throw await de_InvalidLayerExceptionRes(parsedOutput, context);
|
|
1844
|
+
case "KmsException":
|
|
1845
|
+
case "com.amazonaws.ecr#KmsException":
|
|
1846
|
+
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
1847
|
+
case "LayerAlreadyExistsException":
|
|
1848
|
+
case "com.amazonaws.ecr#LayerAlreadyExistsException":
|
|
1849
|
+
throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1850
|
+
case "LayerPartTooSmallException":
|
|
1851
|
+
case "com.amazonaws.ecr#LayerPartTooSmallException":
|
|
1852
|
+
throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
|
|
1853
|
+
case "UploadNotFoundException":
|
|
1854
|
+
case "com.amazonaws.ecr#UploadNotFoundException":
|
|
1855
|
+
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
1856
|
+
case "PullThroughCacheRuleAlreadyExistsException":
|
|
1857
|
+
case "com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":
|
|
1858
|
+
throw await de_PullThroughCacheRuleAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1859
|
+
case "SecretNotFoundException":
|
|
1860
|
+
case "com.amazonaws.ecr#SecretNotFoundException":
|
|
1861
|
+
throw await de_SecretNotFoundExceptionRes(parsedOutput, context);
|
|
1862
|
+
case "UnableToAccessSecretException":
|
|
1863
|
+
case "com.amazonaws.ecr#UnableToAccessSecretException":
|
|
1864
|
+
throw await de_UnableToAccessSecretExceptionRes(parsedOutput, context);
|
|
1865
|
+
case "UnableToDecryptSecretValueException":
|
|
1866
|
+
case "com.amazonaws.ecr#UnableToDecryptSecretValueException":
|
|
1867
|
+
throw await de_UnableToDecryptSecretValueExceptionRes(parsedOutput, context);
|
|
1868
|
+
case "UnsupportedUpstreamRegistryException":
|
|
1869
|
+
case "com.amazonaws.ecr#UnsupportedUpstreamRegistryException":
|
|
1870
|
+
throw await de_UnsupportedUpstreamRegistryExceptionRes(parsedOutput, context);
|
|
1871
|
+
case "InvalidTagParameterException":
|
|
1872
|
+
case "com.amazonaws.ecr#InvalidTagParameterException":
|
|
1873
|
+
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
1874
|
+
case "RepositoryAlreadyExistsException":
|
|
1875
|
+
case "com.amazonaws.ecr#RepositoryAlreadyExistsException":
|
|
1876
|
+
throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1877
|
+
case "TooManyTagsException":
|
|
1878
|
+
case "com.amazonaws.ecr#TooManyTagsException":
|
|
1879
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1880
|
+
case "LifecyclePolicyNotFoundException":
|
|
1881
|
+
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
|
|
1882
|
+
throw await de_LifecyclePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1883
|
+
case "PullThroughCacheRuleNotFoundException":
|
|
1884
|
+
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
|
|
1885
|
+
throw await de_PullThroughCacheRuleNotFoundExceptionRes(parsedOutput, context);
|
|
1886
|
+
case "RegistryPolicyNotFoundException":
|
|
1887
|
+
case "com.amazonaws.ecr#RegistryPolicyNotFoundException":
|
|
1888
|
+
throw await de_RegistryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1889
|
+
case "RepositoryNotEmptyException":
|
|
1890
|
+
case "com.amazonaws.ecr#RepositoryNotEmptyException":
|
|
1891
|
+
throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
|
|
1892
|
+
case "RepositoryPolicyNotFoundException":
|
|
1893
|
+
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException":
|
|
1894
|
+
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1895
|
+
case "ImageNotFoundException":
|
|
1896
|
+
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
1897
|
+
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
1898
|
+
case "ScanNotFoundException":
|
|
1899
|
+
case "com.amazonaws.ecr#ScanNotFoundException":
|
|
1900
|
+
throw await de_ScanNotFoundExceptionRes(parsedOutput, context);
|
|
1901
|
+
case "LayerInaccessibleException":
|
|
1902
|
+
case "com.amazonaws.ecr#LayerInaccessibleException":
|
|
1903
|
+
throw await de_LayerInaccessibleExceptionRes(parsedOutput, context);
|
|
1904
|
+
case "LayersNotFoundException":
|
|
1905
|
+
case "com.amazonaws.ecr#LayersNotFoundException":
|
|
1906
|
+
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
1907
|
+
case "UnableToGetUpstreamLayerException":
|
|
1908
|
+
case "com.amazonaws.ecr#UnableToGetUpstreamLayerException":
|
|
1909
|
+
throw await de_UnableToGetUpstreamLayerExceptionRes(parsedOutput, context);
|
|
1910
|
+
case "LifecyclePolicyPreviewNotFoundException":
|
|
1911
|
+
case "com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":
|
|
1912
|
+
throw await de_LifecyclePolicyPreviewNotFoundExceptionRes(parsedOutput, context);
|
|
1913
|
+
case "ImageAlreadyExistsException":
|
|
1914
|
+
case "com.amazonaws.ecr#ImageAlreadyExistsException":
|
|
1915
|
+
throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1916
|
+
case "ImageDigestDoesNotMatchException":
|
|
1917
|
+
case "com.amazonaws.ecr#ImageDigestDoesNotMatchException":
|
|
1918
|
+
throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
|
|
1919
|
+
case "ImageTagAlreadyExistsException":
|
|
1920
|
+
case "com.amazonaws.ecr#ImageTagAlreadyExistsException":
|
|
1921
|
+
throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1922
|
+
case "ReferencedImagesNotFoundException":
|
|
1923
|
+
case "com.amazonaws.ecr#ReferencedImagesNotFoundException":
|
|
1924
|
+
throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
|
|
1925
|
+
case "UnsupportedImageTypeException":
|
|
1926
|
+
case "com.amazonaws.ecr#UnsupportedImageTypeException":
|
|
1927
|
+
throw await de_UnsupportedImageTypeExceptionRes(parsedOutput, context);
|
|
1928
|
+
case "LifecyclePolicyPreviewInProgressException":
|
|
1929
|
+
case "com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":
|
|
1930
|
+
throw await de_LifecyclePolicyPreviewInProgressExceptionRes(parsedOutput, context);
|
|
1931
|
+
case "InvalidLayerPartException":
|
|
1932
|
+
case "com.amazonaws.ecr#InvalidLayerPartException":
|
|
1933
|
+
throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
|
|
3092
1934
|
default:
|
|
3093
1935
|
const parsedBody = parsedOutput.body;
|
|
3094
1936
|
return throwDefaultError({
|
|
@@ -3097,7 +1939,7 @@ var de_ValidatePullThroughCacheRuleCommandError = /* @__PURE__ */ __name(async (
|
|
|
3097
1939
|
errorCode
|
|
3098
1940
|
});
|
|
3099
1941
|
}
|
|
3100
|
-
}, "
|
|
1942
|
+
}, "de_CommandError");
|
|
3101
1943
|
var de_EmptyUploadExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3102
1944
|
const body = parsedOutput.body;
|
|
3103
1945
|
const deserialized = (0, import_smithy_client._json)(body);
|