@aws-sdk/client-ecr 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +47 -41
- package/dist-es/ECR.js +166 -173
- package/dist-es/ECRClient.js +22 -28
- package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +21 -28
- package/dist-es/commands/BatchDeleteImageCommand.js +21 -28
- package/dist-es/commands/BatchGetImageCommand.js +21 -28
- package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +21 -28
- package/dist-es/commands/CompleteLayerUploadCommand.js +21 -28
- package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +21 -28
- package/dist-es/commands/CreateRepositoryCommand.js +21 -28
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +21 -28
- package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +21 -28
- package/dist-es/commands/DeleteRegistryPolicyCommand.js +21 -28
- package/dist-es/commands/DeleteRepositoryCommand.js +21 -28
- package/dist-es/commands/DeleteRepositoryPolicyCommand.js +21 -28
- package/dist-es/commands/DescribeImageReplicationStatusCommand.js +21 -28
- package/dist-es/commands/DescribeImageScanFindingsCommand.js +21 -28
- package/dist-es/commands/DescribeImagesCommand.js +21 -28
- package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +21 -28
- package/dist-es/commands/DescribeRegistryCommand.js +21 -28
- package/dist-es/commands/DescribeRepositoriesCommand.js +21 -28
- package/dist-es/commands/GetAuthorizationTokenCommand.js +21 -28
- package/dist-es/commands/GetDownloadUrlForLayerCommand.js +21 -28
- package/dist-es/commands/GetLifecyclePolicyCommand.js +21 -28
- package/dist-es/commands/GetLifecyclePolicyPreviewCommand.js +21 -28
- package/dist-es/commands/GetRegistryPolicyCommand.js +21 -28
- package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +21 -28
- package/dist-es/commands/GetRepositoryPolicyCommand.js +21 -28
- package/dist-es/commands/InitiateLayerUploadCommand.js +21 -28
- package/dist-es/commands/ListImagesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutImageCommand.js +21 -28
- package/dist-es/commands/PutImageScanningConfigurationCommand.js +21 -28
- package/dist-es/commands/PutImageTagMutabilityCommand.js +21 -28
- package/dist-es/commands/PutLifecyclePolicyCommand.js +21 -28
- package/dist-es/commands/PutRegistryPolicyCommand.js +21 -28
- package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +21 -28
- package/dist-es/commands/PutReplicationConfigurationCommand.js +21 -28
- package/dist-es/commands/SetRepositoryPolicyCommand.js +21 -28
- package/dist-es/commands/StartImageScanCommand.js +21 -28
- package/dist-es/commands/StartLifecyclePolicyPreviewCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UploadLayerPartCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ECRServiceException.js +5 -10
- package/dist-es/models/models_0.js +782 -529
- package/dist-es/pagination/DescribeImageScanFindingsPaginator.js +25 -68
- package/dist-es/pagination/DescribeImagesPaginator.js +25 -68
- package/dist-es/pagination/DescribePullThroughCacheRulesPaginator.js +25 -68
- package/dist-es/pagination/DescribeRepositoriesPaginator.js +25 -68
- package/dist-es/pagination/GetLifecyclePolicyPreviewPaginator.js +25 -68
- package/dist-es/pagination/ListImagesPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +3083 -3862
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForImageScanComplete.js +36 -56
- package/dist-es/waiters/waitForLifecyclePolicyPreviewComplete.js +36 -56
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-ecr
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-ecr
|
|
@@ -433,7 +433,7 @@ exports.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = deserializeAw
|
|
|
433
433
|
const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (output, context) => {
|
|
434
434
|
const parsedOutput = {
|
|
435
435
|
...output,
|
|
436
|
-
body: await
|
|
436
|
+
body: await parseErrorBody(output.body, context),
|
|
437
437
|
};
|
|
438
438
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
439
439
|
switch (errorCode) {
|
|
@@ -473,7 +473,7 @@ exports.deserializeAws_json1_1BatchDeleteImageCommand = deserializeAws_json1_1Ba
|
|
|
473
473
|
const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, context) => {
|
|
474
474
|
const parsedOutput = {
|
|
475
475
|
...output,
|
|
476
|
-
body: await
|
|
476
|
+
body: await parseErrorBody(output.body, context),
|
|
477
477
|
};
|
|
478
478
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
479
479
|
switch (errorCode) {
|
|
@@ -513,7 +513,7 @@ exports.deserializeAws_json1_1BatchGetImageCommand = deserializeAws_json1_1Batch
|
|
|
513
513
|
const deserializeAws_json1_1BatchGetImageCommandError = async (output, context) => {
|
|
514
514
|
const parsedOutput = {
|
|
515
515
|
...output,
|
|
516
|
-
body: await
|
|
516
|
+
body: await parseErrorBody(output.body, context),
|
|
517
517
|
};
|
|
518
518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
519
519
|
switch (errorCode) {
|
|
@@ -553,7 +553,7 @@ exports.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = d
|
|
|
553
553
|
const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError = async (output, context) => {
|
|
554
554
|
const parsedOutput = {
|
|
555
555
|
...output,
|
|
556
|
-
body: await
|
|
556
|
+
body: await parseErrorBody(output.body, context),
|
|
557
557
|
};
|
|
558
558
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
559
559
|
switch (errorCode) {
|
|
@@ -596,7 +596,7 @@ exports.deserializeAws_json1_1CompleteLayerUploadCommand = deserializeAws_json1_
|
|
|
596
596
|
const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, context) => {
|
|
597
597
|
const parsedOutput = {
|
|
598
598
|
...output,
|
|
599
|
-
body: await
|
|
599
|
+
body: await parseErrorBody(output.body, context),
|
|
600
600
|
};
|
|
601
601
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
602
|
switch (errorCode) {
|
|
@@ -654,7 +654,7 @@ exports.deserializeAws_json1_1CreatePullThroughCacheRuleCommand = deserializeAws
|
|
|
654
654
|
const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = async (output, context) => {
|
|
655
655
|
const parsedOutput = {
|
|
656
656
|
...output,
|
|
657
|
-
body: await
|
|
657
|
+
body: await parseErrorBody(output.body, context),
|
|
658
658
|
};
|
|
659
659
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
660
660
|
switch (errorCode) {
|
|
@@ -703,7 +703,7 @@ exports.deserializeAws_json1_1CreateRepositoryCommand = deserializeAws_json1_1Cr
|
|
|
703
703
|
const deserializeAws_json1_1CreateRepositoryCommandError = async (output, context) => {
|
|
704
704
|
const parsedOutput = {
|
|
705
705
|
...output,
|
|
706
|
-
body: await
|
|
706
|
+
body: await parseErrorBody(output.body, context),
|
|
707
707
|
};
|
|
708
708
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
709
|
switch (errorCode) {
|
|
@@ -755,7 +755,7 @@ exports.deserializeAws_json1_1DeleteLifecyclePolicyCommand = deserializeAws_json
|
|
|
755
755
|
const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, context) => {
|
|
756
756
|
const parsedOutput = {
|
|
757
757
|
...output,
|
|
758
|
-
body: await
|
|
758
|
+
body: await parseErrorBody(output.body, context),
|
|
759
759
|
};
|
|
760
760
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
761
|
switch (errorCode) {
|
|
@@ -798,7 +798,7 @@ exports.deserializeAws_json1_1DeletePullThroughCacheRuleCommand = deserializeAws
|
|
|
798
798
|
const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = async (output, context) => {
|
|
799
799
|
const parsedOutput = {
|
|
800
800
|
...output,
|
|
801
|
-
body: await
|
|
801
|
+
body: await parseErrorBody(output.body, context),
|
|
802
802
|
};
|
|
803
803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
804
|
switch (errorCode) {
|
|
@@ -841,7 +841,7 @@ exports.deserializeAws_json1_1DeleteRegistryPolicyCommand = deserializeAws_json1
|
|
|
841
841
|
const deserializeAws_json1_1DeleteRegistryPolicyCommandError = async (output, context) => {
|
|
842
842
|
const parsedOutput = {
|
|
843
843
|
...output,
|
|
844
|
-
body: await
|
|
844
|
+
body: await parseErrorBody(output.body, context),
|
|
845
845
|
};
|
|
846
846
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
847
|
switch (errorCode) {
|
|
@@ -884,7 +884,7 @@ exports.deserializeAws_json1_1DeleteRepositoryCommand = deserializeAws_json1_1De
|
|
|
884
884
|
const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, context) => {
|
|
885
885
|
const parsedOutput = {
|
|
886
886
|
...output,
|
|
887
|
-
body: await
|
|
887
|
+
body: await parseErrorBody(output.body, context),
|
|
888
888
|
};
|
|
889
889
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
890
|
switch (errorCode) {
|
|
@@ -930,7 +930,7 @@ exports.deserializeAws_json1_1DeleteRepositoryPolicyCommand = deserializeAws_jso
|
|
|
930
930
|
const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output, context) => {
|
|
931
931
|
const parsedOutput = {
|
|
932
932
|
...output,
|
|
933
|
-
body: await
|
|
933
|
+
body: await parseErrorBody(output.body, context),
|
|
934
934
|
};
|
|
935
935
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
936
936
|
switch (errorCode) {
|
|
@@ -973,7 +973,7 @@ exports.deserializeAws_json1_1DescribeImageReplicationStatusCommand = deserializ
|
|
|
973
973
|
const deserializeAws_json1_1DescribeImageReplicationStatusCommandError = async (output, context) => {
|
|
974
974
|
const parsedOutput = {
|
|
975
975
|
...output,
|
|
976
|
-
body: await
|
|
976
|
+
body: await parseErrorBody(output.body, context),
|
|
977
977
|
};
|
|
978
978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
979
|
switch (errorCode) {
|
|
@@ -1019,7 +1019,7 @@ exports.deserializeAws_json1_1DescribeImagesCommand = deserializeAws_json1_1Desc
|
|
|
1019
1019
|
const deserializeAws_json1_1DescribeImagesCommandError = async (output, context) => {
|
|
1020
1020
|
const parsedOutput = {
|
|
1021
1021
|
...output,
|
|
1022
|
-
body: await
|
|
1022
|
+
body: await parseErrorBody(output.body, context),
|
|
1023
1023
|
};
|
|
1024
1024
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
1025
|
switch (errorCode) {
|
|
@@ -1062,7 +1062,7 @@ exports.deserializeAws_json1_1DescribeImageScanFindingsCommand = deserializeAws_
|
|
|
1062
1062
|
const deserializeAws_json1_1DescribeImageScanFindingsCommandError = async (output, context) => {
|
|
1063
1063
|
const parsedOutput = {
|
|
1064
1064
|
...output,
|
|
1065
|
-
body: await
|
|
1065
|
+
body: await parseErrorBody(output.body, context),
|
|
1066
1066
|
};
|
|
1067
1067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
1068
|
switch (errorCode) {
|
|
@@ -1111,7 +1111,7 @@ exports.deserializeAws_json1_1DescribePullThroughCacheRulesCommand = deserialize
|
|
|
1111
1111
|
const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = async (output, context) => {
|
|
1112
1112
|
const parsedOutput = {
|
|
1113
1113
|
...output,
|
|
1114
|
-
body: await
|
|
1114
|
+
body: await parseErrorBody(output.body, context),
|
|
1115
1115
|
};
|
|
1116
1116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
1117
|
switch (errorCode) {
|
|
@@ -1154,7 +1154,7 @@ exports.deserializeAws_json1_1DescribeRegistryCommand = deserializeAws_json1_1De
|
|
|
1154
1154
|
const deserializeAws_json1_1DescribeRegistryCommandError = async (output, context) => {
|
|
1155
1155
|
const parsedOutput = {
|
|
1156
1156
|
...output,
|
|
1157
|
-
body: await
|
|
1157
|
+
body: await parseErrorBody(output.body, context),
|
|
1158
1158
|
};
|
|
1159
1159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1160
1160
|
switch (errorCode) {
|
|
@@ -1194,7 +1194,7 @@ exports.deserializeAws_json1_1DescribeRepositoriesCommand = deserializeAws_json1
|
|
|
1194
1194
|
const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, context) => {
|
|
1195
1195
|
const parsedOutput = {
|
|
1196
1196
|
...output,
|
|
1197
|
-
body: await
|
|
1197
|
+
body: await parseErrorBody(output.body, context),
|
|
1198
1198
|
};
|
|
1199
1199
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
1200
|
switch (errorCode) {
|
|
@@ -1234,7 +1234,7 @@ exports.deserializeAws_json1_1GetAuthorizationTokenCommand = deserializeAws_json
|
|
|
1234
1234
|
const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, context) => {
|
|
1235
1235
|
const parsedOutput = {
|
|
1236
1236
|
...output,
|
|
1237
|
-
body: await
|
|
1237
|
+
body: await parseErrorBody(output.body, context),
|
|
1238
1238
|
};
|
|
1239
1239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1240
|
switch (errorCode) {
|
|
@@ -1271,7 +1271,7 @@ exports.deserializeAws_json1_1GetDownloadUrlForLayerCommand = deserializeAws_jso
|
|
|
1271
1271
|
const deserializeAws_json1_1GetDownloadUrlForLayerCommandError = async (output, context) => {
|
|
1272
1272
|
const parsedOutput = {
|
|
1273
1273
|
...output,
|
|
1274
|
-
body: await
|
|
1274
|
+
body: await parseErrorBody(output.body, context),
|
|
1275
1275
|
};
|
|
1276
1276
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
1277
|
switch (errorCode) {
|
|
@@ -1317,7 +1317,7 @@ exports.deserializeAws_json1_1GetLifecyclePolicyCommand = deserializeAws_json1_1
|
|
|
1317
1317
|
const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, context) => {
|
|
1318
1318
|
const parsedOutput = {
|
|
1319
1319
|
...output,
|
|
1320
|
-
body: await
|
|
1320
|
+
body: await parseErrorBody(output.body, context),
|
|
1321
1321
|
};
|
|
1322
1322
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
1323
|
switch (errorCode) {
|
|
@@ -1360,7 +1360,7 @@ exports.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = deserializeAws_
|
|
|
1360
1360
|
const deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = async (output, context) => {
|
|
1361
1361
|
const parsedOutput = {
|
|
1362
1362
|
...output,
|
|
1363
|
-
body: await
|
|
1363
|
+
body: await parseErrorBody(output.body, context),
|
|
1364
1364
|
};
|
|
1365
1365
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
1366
|
switch (errorCode) {
|
|
@@ -1403,7 +1403,7 @@ exports.deserializeAws_json1_1GetRegistryPolicyCommand = deserializeAws_json1_1G
|
|
|
1403
1403
|
const deserializeAws_json1_1GetRegistryPolicyCommandError = async (output, context) => {
|
|
1404
1404
|
const parsedOutput = {
|
|
1405
1405
|
...output,
|
|
1406
|
-
body: await
|
|
1406
|
+
body: await parseErrorBody(output.body, context),
|
|
1407
1407
|
};
|
|
1408
1408
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1409
|
switch (errorCode) {
|
|
@@ -1446,7 +1446,7 @@ exports.deserializeAws_json1_1GetRegistryScanningConfigurationCommand = deserial
|
|
|
1446
1446
|
const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = async (output, context) => {
|
|
1447
1447
|
const parsedOutput = {
|
|
1448
1448
|
...output,
|
|
1449
|
-
body: await
|
|
1449
|
+
body: await parseErrorBody(output.body, context),
|
|
1450
1450
|
};
|
|
1451
1451
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
1452
|
switch (errorCode) {
|
|
@@ -1486,7 +1486,7 @@ exports.deserializeAws_json1_1GetRepositoryPolicyCommand = deserializeAws_json1_
|
|
|
1486
1486
|
const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, context) => {
|
|
1487
1487
|
const parsedOutput = {
|
|
1488
1488
|
...output,
|
|
1489
|
-
body: await
|
|
1489
|
+
body: await parseErrorBody(output.body, context),
|
|
1490
1490
|
};
|
|
1491
1491
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
1492
|
switch (errorCode) {
|
|
@@ -1529,7 +1529,7 @@ exports.deserializeAws_json1_1InitiateLayerUploadCommand = deserializeAws_json1_
|
|
|
1529
1529
|
const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, context) => {
|
|
1530
1530
|
const parsedOutput = {
|
|
1531
1531
|
...output,
|
|
1532
|
-
body: await
|
|
1532
|
+
body: await parseErrorBody(output.body, context),
|
|
1533
1533
|
};
|
|
1534
1534
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1535
1535
|
switch (errorCode) {
|
|
@@ -1572,7 +1572,7 @@ exports.deserializeAws_json1_1ListImagesCommand = deserializeAws_json1_1ListImag
|
|
|
1572
1572
|
const deserializeAws_json1_1ListImagesCommandError = async (output, context) => {
|
|
1573
1573
|
const parsedOutput = {
|
|
1574
1574
|
...output,
|
|
1575
|
-
body: await
|
|
1575
|
+
body: await parseErrorBody(output.body, context),
|
|
1576
1576
|
};
|
|
1577
1577
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
1578
|
switch (errorCode) {
|
|
@@ -1612,7 +1612,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1612
1612
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1613
1613
|
const parsedOutput = {
|
|
1614
1614
|
...output,
|
|
1615
|
-
body: await
|
|
1615
|
+
body: await parseErrorBody(output.body, context),
|
|
1616
1616
|
};
|
|
1617
1617
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
1618
|
switch (errorCode) {
|
|
@@ -1652,7 +1652,7 @@ exports.deserializeAws_json1_1PutImageCommand = deserializeAws_json1_1PutImageCo
|
|
|
1652
1652
|
const deserializeAws_json1_1PutImageCommandError = async (output, context) => {
|
|
1653
1653
|
const parsedOutput = {
|
|
1654
1654
|
...output,
|
|
1655
|
-
body: await
|
|
1655
|
+
body: await parseErrorBody(output.body, context),
|
|
1656
1656
|
};
|
|
1657
1657
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
1658
|
switch (errorCode) {
|
|
@@ -1713,7 +1713,7 @@ exports.deserializeAws_json1_1PutImageScanningConfigurationCommand = deserialize
|
|
|
1713
1713
|
const deserializeAws_json1_1PutImageScanningConfigurationCommandError = async (output, context) => {
|
|
1714
1714
|
const parsedOutput = {
|
|
1715
1715
|
...output,
|
|
1716
|
-
body: await
|
|
1716
|
+
body: await parseErrorBody(output.body, context),
|
|
1717
1717
|
};
|
|
1718
1718
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1719
1719
|
switch (errorCode) {
|
|
@@ -1756,7 +1756,7 @@ exports.deserializeAws_json1_1PutImageTagMutabilityCommand = deserializeAws_json
|
|
|
1756
1756
|
const deserializeAws_json1_1PutImageTagMutabilityCommandError = async (output, context) => {
|
|
1757
1757
|
const parsedOutput = {
|
|
1758
1758
|
...output,
|
|
1759
|
-
body: await
|
|
1759
|
+
body: await parseErrorBody(output.body, context),
|
|
1760
1760
|
};
|
|
1761
1761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
1762
|
switch (errorCode) {
|
|
@@ -1796,7 +1796,7 @@ exports.deserializeAws_json1_1PutLifecyclePolicyCommand = deserializeAws_json1_1
|
|
|
1796
1796
|
const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, context) => {
|
|
1797
1797
|
const parsedOutput = {
|
|
1798
1798
|
...output,
|
|
1799
|
-
body: await
|
|
1799
|
+
body: await parseErrorBody(output.body, context),
|
|
1800
1800
|
};
|
|
1801
1801
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
1802
|
switch (errorCode) {
|
|
@@ -1836,7 +1836,7 @@ exports.deserializeAws_json1_1PutRegistryPolicyCommand = deserializeAws_json1_1P
|
|
|
1836
1836
|
const deserializeAws_json1_1PutRegistryPolicyCommandError = async (output, context) => {
|
|
1837
1837
|
const parsedOutput = {
|
|
1838
1838
|
...output,
|
|
1839
|
-
body: await
|
|
1839
|
+
body: await parseErrorBody(output.body, context),
|
|
1840
1840
|
};
|
|
1841
1841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
1842
|
switch (errorCode) {
|
|
@@ -1876,7 +1876,7 @@ exports.deserializeAws_json1_1PutRegistryScanningConfigurationCommand = deserial
|
|
|
1876
1876
|
const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = async (output, context) => {
|
|
1877
1877
|
const parsedOutput = {
|
|
1878
1878
|
...output,
|
|
1879
|
-
body: await
|
|
1879
|
+
body: await parseErrorBody(output.body, context),
|
|
1880
1880
|
};
|
|
1881
1881
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1882
1882
|
switch (errorCode) {
|
|
@@ -1916,7 +1916,7 @@ exports.deserializeAws_json1_1PutReplicationConfigurationCommand = deserializeAw
|
|
|
1916
1916
|
const deserializeAws_json1_1PutReplicationConfigurationCommandError = async (output, context) => {
|
|
1917
1917
|
const parsedOutput = {
|
|
1918
1918
|
...output,
|
|
1919
|
-
body: await
|
|
1919
|
+
body: await parseErrorBody(output.body, context),
|
|
1920
1920
|
};
|
|
1921
1921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1922
1922
|
switch (errorCode) {
|
|
@@ -1956,7 +1956,7 @@ exports.deserializeAws_json1_1SetRepositoryPolicyCommand = deserializeAws_json1_
|
|
|
1956
1956
|
const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, context) => {
|
|
1957
1957
|
const parsedOutput = {
|
|
1958
1958
|
...output,
|
|
1959
|
-
body: await
|
|
1959
|
+
body: await parseErrorBody(output.body, context),
|
|
1960
1960
|
};
|
|
1961
1961
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1962
1962
|
switch (errorCode) {
|
|
@@ -1996,7 +1996,7 @@ exports.deserializeAws_json1_1StartImageScanCommand = deserializeAws_json1_1Star
|
|
|
1996
1996
|
const deserializeAws_json1_1StartImageScanCommandError = async (output, context) => {
|
|
1997
1997
|
const parsedOutput = {
|
|
1998
1998
|
...output,
|
|
1999
|
-
body: await
|
|
1999
|
+
body: await parseErrorBody(output.body, context),
|
|
2000
2000
|
};
|
|
2001
2001
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2002
2002
|
switch (errorCode) {
|
|
@@ -2048,7 +2048,7 @@ exports.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = deserializeAw
|
|
|
2048
2048
|
const deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = async (output, context) => {
|
|
2049
2049
|
const parsedOutput = {
|
|
2050
2050
|
...output,
|
|
2051
|
-
body: await
|
|
2051
|
+
body: await parseErrorBody(output.body, context),
|
|
2052
2052
|
};
|
|
2053
2053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2054
2054
|
switch (errorCode) {
|
|
@@ -2094,7 +2094,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
2094
2094
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2095
2095
|
const parsedOutput = {
|
|
2096
2096
|
...output,
|
|
2097
|
-
body: await
|
|
2097
|
+
body: await parseErrorBody(output.body, context),
|
|
2098
2098
|
};
|
|
2099
2099
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2100
2100
|
switch (errorCode) {
|
|
@@ -2140,7 +2140,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
2140
2140
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2141
2141
|
const parsedOutput = {
|
|
2142
2142
|
...output,
|
|
2143
|
-
body: await
|
|
2143
|
+
body: await parseErrorBody(output.body, context),
|
|
2144
2144
|
};
|
|
2145
2145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2146
2146
|
switch (errorCode) {
|
|
@@ -2186,7 +2186,7 @@ exports.deserializeAws_json1_1UploadLayerPartCommand = deserializeAws_json1_1Upl
|
|
|
2186
2186
|
const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context) => {
|
|
2187
2187
|
const parsedOutput = {
|
|
2188
2188
|
...output,
|
|
2189
|
-
body: await
|
|
2189
|
+
body: await parseErrorBody(output.body, context),
|
|
2190
2190
|
};
|
|
2191
2191
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
2192
|
switch (errorCode) {
|
|
@@ -4239,6 +4239,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4239
4239
|
}
|
|
4240
4240
|
return {};
|
|
4241
4241
|
});
|
|
4242
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4243
|
+
var _a;
|
|
4244
|
+
const value = await parseBody(errorBody, context);
|
|
4245
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4246
|
+
return value;
|
|
4247
|
+
};
|
|
4242
4248
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4243
4249
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4244
4250
|
const sanitizeErrorCode = (rawValue) => {
|