@aws-sdk/client-codeartifact 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_restJson1.js +42 -36
- package/dist-es/Codeartifact.js +146 -153
- package/dist-es/CodeartifactClient.js +22 -28
- package/dist-es/commands/AssociateExternalConnectionCommand.js +21 -28
- package/dist-es/commands/CopyPackageVersionsCommand.js +21 -28
- package/dist-es/commands/CreateDomainCommand.js +21 -28
- package/dist-es/commands/CreateRepositoryCommand.js +21 -28
- package/dist-es/commands/DeleteDomainCommand.js +21 -28
- package/dist-es/commands/DeleteDomainPermissionsPolicyCommand.js +21 -28
- package/dist-es/commands/DeletePackageVersionsCommand.js +21 -28
- package/dist-es/commands/DeleteRepositoryCommand.js +21 -28
- package/dist-es/commands/DeleteRepositoryPermissionsPolicyCommand.js +21 -28
- package/dist-es/commands/DescribeDomainCommand.js +21 -28
- package/dist-es/commands/DescribePackageCommand.js +21 -28
- package/dist-es/commands/DescribePackageVersionCommand.js +21 -28
- package/dist-es/commands/DescribeRepositoryCommand.js +21 -28
- package/dist-es/commands/DisassociateExternalConnectionCommand.js +21 -28
- package/dist-es/commands/DisposePackageVersionsCommand.js +21 -28
- package/dist-es/commands/GetAuthorizationTokenCommand.js +21 -28
- package/dist-es/commands/GetDomainPermissionsPolicyCommand.js +21 -28
- package/dist-es/commands/GetPackageVersionAssetCommand.js +21 -28
- package/dist-es/commands/GetPackageVersionReadmeCommand.js +21 -28
- package/dist-es/commands/GetRepositoryEndpointCommand.js +21 -28
- package/dist-es/commands/GetRepositoryPermissionsPolicyCommand.js +21 -28
- package/dist-es/commands/ListDomainsCommand.js +21 -28
- package/dist-es/commands/ListPackageVersionAssetsCommand.js +21 -28
- package/dist-es/commands/ListPackageVersionDependenciesCommand.js +21 -28
- package/dist-es/commands/ListPackageVersionsCommand.js +21 -28
- package/dist-es/commands/ListPackagesCommand.js +21 -28
- package/dist-es/commands/ListRepositoriesCommand.js +21 -28
- package/dist-es/commands/ListRepositoriesInDomainCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutDomainPermissionsPolicyCommand.js +21 -28
- package/dist-es/commands/PutPackageOriginConfigurationCommand.js +21 -28
- package/dist-es/commands/PutRepositoryPermissionsPolicyCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdatePackageVersionsStatusCommand.js +21 -28
- package/dist-es/commands/UpdateRepositoryCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CodeartifactServiceException.js +5 -10
- package/dist-es/models/models_0.js +367 -180
- package/dist-es/pagination/ListDomainsPaginator.js +25 -68
- package/dist-es/pagination/ListPackageVersionAssetsPaginator.js +25 -68
- package/dist-es/pagination/ListPackageVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListPackagesPaginator.js +25 -68
- package/dist-es/pagination/ListRepositoriesInDomainPaginator.js +25 -68
- package/dist-es/pagination/ListRepositoriesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2834 -3981
- 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/package.json +33 -33
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-codeartifact
|
|
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-codeartifact
|
|
@@ -953,7 +953,7 @@ exports.deserializeAws_restJson1AssociateExternalConnectionCommand = deserialize
|
|
|
953
953
|
const deserializeAws_restJson1AssociateExternalConnectionCommandError = async (output, context) => {
|
|
954
954
|
const parsedOutput = {
|
|
955
955
|
...output,
|
|
956
|
-
body: await
|
|
956
|
+
body: await parseErrorBody(output.body, context),
|
|
957
957
|
};
|
|
958
958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
959
|
switch (errorCode) {
|
|
@@ -1008,7 +1008,7 @@ exports.deserializeAws_restJson1CopyPackageVersionsCommand = deserializeAws_rest
|
|
|
1008
1008
|
const deserializeAws_restJson1CopyPackageVersionsCommandError = async (output, context) => {
|
|
1009
1009
|
const parsedOutput = {
|
|
1010
1010
|
...output,
|
|
1011
|
-
body: await
|
|
1011
|
+
body: await parseErrorBody(output.body, context),
|
|
1012
1012
|
};
|
|
1013
1013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
1014
|
switch (errorCode) {
|
|
@@ -1060,7 +1060,7 @@ exports.deserializeAws_restJson1CreateDomainCommand = deserializeAws_restJson1Cr
|
|
|
1060
1060
|
const deserializeAws_restJson1CreateDomainCommandError = async (output, context) => {
|
|
1061
1061
|
const parsedOutput = {
|
|
1062
1062
|
...output,
|
|
1063
|
-
body: await
|
|
1063
|
+
body: await parseErrorBody(output.body, context),
|
|
1064
1064
|
};
|
|
1065
1065
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
1066
|
switch (errorCode) {
|
|
@@ -1112,7 +1112,7 @@ exports.deserializeAws_restJson1CreateRepositoryCommand = deserializeAws_restJso
|
|
|
1112
1112
|
const deserializeAws_restJson1CreateRepositoryCommandError = async (output, context) => {
|
|
1113
1113
|
const parsedOutput = {
|
|
1114
1114
|
...output,
|
|
1115
|
-
body: await
|
|
1115
|
+
body: await parseErrorBody(output.body, context),
|
|
1116
1116
|
};
|
|
1117
1117
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
1118
|
switch (errorCode) {
|
|
@@ -1164,7 +1164,7 @@ exports.deserializeAws_restJson1DeleteDomainCommand = deserializeAws_restJson1De
|
|
|
1164
1164
|
const deserializeAws_restJson1DeleteDomainCommandError = async (output, context) => {
|
|
1165
1165
|
const parsedOutput = {
|
|
1166
1166
|
...output,
|
|
1167
|
-
body: await
|
|
1167
|
+
body: await parseErrorBody(output.body, context),
|
|
1168
1168
|
};
|
|
1169
1169
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
1170
|
switch (errorCode) {
|
|
@@ -1210,7 +1210,7 @@ exports.deserializeAws_restJson1DeleteDomainPermissionsPolicyCommand = deseriali
|
|
|
1210
1210
|
const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
1211
1211
|
const parsedOutput = {
|
|
1212
1212
|
...output,
|
|
1213
|
-
body: await
|
|
1213
|
+
body: await parseErrorBody(output.body, context),
|
|
1214
1214
|
};
|
|
1215
1215
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
1216
|
switch (errorCode) {
|
|
@@ -1262,7 +1262,7 @@ exports.deserializeAws_restJson1DeletePackageVersionsCommand = deserializeAws_re
|
|
|
1262
1262
|
const deserializeAws_restJson1DeletePackageVersionsCommandError = async (output, context) => {
|
|
1263
1263
|
const parsedOutput = {
|
|
1264
1264
|
...output,
|
|
1265
|
-
body: await
|
|
1265
|
+
body: await parseErrorBody(output.body, context),
|
|
1266
1266
|
};
|
|
1267
1267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
1268
|
switch (errorCode) {
|
|
@@ -1311,7 +1311,7 @@ exports.deserializeAws_restJson1DeleteRepositoryCommand = deserializeAws_restJso
|
|
|
1311
1311
|
const deserializeAws_restJson1DeleteRepositoryCommandError = async (output, context) => {
|
|
1312
1312
|
const parsedOutput = {
|
|
1313
1313
|
...output,
|
|
1314
|
-
body: await
|
|
1314
|
+
body: await parseErrorBody(output.body, context),
|
|
1315
1315
|
};
|
|
1316
1316
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1317
1317
|
switch (errorCode) {
|
|
@@ -1360,7 +1360,7 @@ exports.deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand = deser
|
|
|
1360
1360
|
const deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = 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) {
|
|
@@ -1409,7 +1409,7 @@ exports.deserializeAws_restJson1DescribeDomainCommand = deserializeAws_restJson1
|
|
|
1409
1409
|
const deserializeAws_restJson1DescribeDomainCommandError = async (output, context) => {
|
|
1410
1410
|
const parsedOutput = {
|
|
1411
1411
|
...output,
|
|
1412
|
-
body: await
|
|
1412
|
+
body: await parseErrorBody(output.body, context),
|
|
1413
1413
|
};
|
|
1414
1414
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
1415
|
switch (errorCode) {
|
|
@@ -1455,7 +1455,7 @@ exports.deserializeAws_restJson1DescribePackageCommand = deserializeAws_restJson
|
|
|
1455
1455
|
const deserializeAws_restJson1DescribePackageCommandError = async (output, context) => {
|
|
1456
1456
|
const parsedOutput = {
|
|
1457
1457
|
...output,
|
|
1458
|
-
body: await
|
|
1458
|
+
body: await parseErrorBody(output.body, context),
|
|
1459
1459
|
};
|
|
1460
1460
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1461
1461
|
switch (errorCode) {
|
|
@@ -1501,7 +1501,7 @@ exports.deserializeAws_restJson1DescribePackageVersionCommand = deserializeAws_r
|
|
|
1501
1501
|
const deserializeAws_restJson1DescribePackageVersionCommandError = async (output, context) => {
|
|
1502
1502
|
const parsedOutput = {
|
|
1503
1503
|
...output,
|
|
1504
|
-
body: await
|
|
1504
|
+
body: await parseErrorBody(output.body, context),
|
|
1505
1505
|
};
|
|
1506
1506
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
1507
|
switch (errorCode) {
|
|
@@ -1550,7 +1550,7 @@ exports.deserializeAws_restJson1DescribeRepositoryCommand = deserializeAws_restJ
|
|
|
1550
1550
|
const deserializeAws_restJson1DescribeRepositoryCommandError = async (output, context) => {
|
|
1551
1551
|
const parsedOutput = {
|
|
1552
1552
|
...output,
|
|
1553
|
-
body: await
|
|
1553
|
+
body: await parseErrorBody(output.body, context),
|
|
1554
1554
|
};
|
|
1555
1555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
1556
|
switch (errorCode) {
|
|
@@ -1596,7 +1596,7 @@ exports.deserializeAws_restJson1DisassociateExternalConnectionCommand = deserial
|
|
|
1596
1596
|
const deserializeAws_restJson1DisassociateExternalConnectionCommandError = async (output, context) => {
|
|
1597
1597
|
const parsedOutput = {
|
|
1598
1598
|
...output,
|
|
1599
|
-
body: await
|
|
1599
|
+
body: await parseErrorBody(output.body, context),
|
|
1600
1600
|
};
|
|
1601
1601
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
1602
|
switch (errorCode) {
|
|
@@ -1651,7 +1651,7 @@ exports.deserializeAws_restJson1DisposePackageVersionsCommand = deserializeAws_r
|
|
|
1651
1651
|
const deserializeAws_restJson1DisposePackageVersionsCommandError = async (output, context) => {
|
|
1652
1652
|
const parsedOutput = {
|
|
1653
1653
|
...output,
|
|
1654
|
-
body: await
|
|
1654
|
+
body: await parseErrorBody(output.body, context),
|
|
1655
1655
|
};
|
|
1656
1656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
1657
|
switch (errorCode) {
|
|
@@ -1703,7 +1703,7 @@ exports.deserializeAws_restJson1GetAuthorizationTokenCommand = deserializeAws_re
|
|
|
1703
1703
|
const deserializeAws_restJson1GetAuthorizationTokenCommandError = async (output, context) => {
|
|
1704
1704
|
const parsedOutput = {
|
|
1705
1705
|
...output,
|
|
1706
|
-
body: await
|
|
1706
|
+
body: await parseErrorBody(output.body, context),
|
|
1707
1707
|
};
|
|
1708
1708
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
1709
|
switch (errorCode) {
|
|
@@ -1749,7 +1749,7 @@ exports.deserializeAws_restJson1GetDomainPermissionsPolicyCommand = deserializeA
|
|
|
1749
1749
|
const deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
1750
1750
|
const parsedOutput = {
|
|
1751
1751
|
...output,
|
|
1752
|
-
body: await
|
|
1752
|
+
body: await parseErrorBody(output.body, context),
|
|
1753
1753
|
};
|
|
1754
1754
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1755
1755
|
switch (errorCode) {
|
|
@@ -1796,7 +1796,7 @@ exports.deserializeAws_restJson1GetPackageVersionAssetCommand = deserializeAws_r
|
|
|
1796
1796
|
const deserializeAws_restJson1GetPackageVersionAssetCommandError = 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) {
|
|
@@ -1860,7 +1860,7 @@ exports.deserializeAws_restJson1GetPackageVersionReadmeCommand = deserializeAws_
|
|
|
1860
1860
|
const deserializeAws_restJson1GetPackageVersionReadmeCommandError = async (output, context) => {
|
|
1861
1861
|
const parsedOutput = {
|
|
1862
1862
|
...output,
|
|
1863
|
-
body: await
|
|
1863
|
+
body: await parseErrorBody(output.body, context),
|
|
1864
1864
|
};
|
|
1865
1865
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
1866
|
switch (errorCode) {
|
|
@@ -1906,7 +1906,7 @@ exports.deserializeAws_restJson1GetRepositoryEndpointCommand = deserializeAws_re
|
|
|
1906
1906
|
const deserializeAws_restJson1GetRepositoryEndpointCommandError = async (output, context) => {
|
|
1907
1907
|
const parsedOutput = {
|
|
1908
1908
|
...output,
|
|
1909
|
-
body: await
|
|
1909
|
+
body: await parseErrorBody(output.body, context),
|
|
1910
1910
|
};
|
|
1911
1911
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
1912
|
switch (errorCode) {
|
|
@@ -1952,7 +1952,7 @@ exports.deserializeAws_restJson1GetRepositoryPermissionsPolicyCommand = deserial
|
|
|
1952
1952
|
const deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = async (output, context) => {
|
|
1953
1953
|
const parsedOutput = {
|
|
1954
1954
|
...output,
|
|
1955
|
-
body: await
|
|
1955
|
+
body: await parseErrorBody(output.body, context),
|
|
1956
1956
|
};
|
|
1957
1957
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
1958
|
switch (errorCode) {
|
|
@@ -2001,7 +2001,7 @@ exports.deserializeAws_restJson1ListDomainsCommand = deserializeAws_restJson1Lis
|
|
|
2001
2001
|
const deserializeAws_restJson1ListDomainsCommandError = async (output, context) => {
|
|
2002
2002
|
const parsedOutput = {
|
|
2003
2003
|
...output,
|
|
2004
|
-
body: await
|
|
2004
|
+
body: await parseErrorBody(output.body, context),
|
|
2005
2005
|
};
|
|
2006
2006
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
2007
|
switch (errorCode) {
|
|
@@ -2047,7 +2047,7 @@ exports.deserializeAws_restJson1ListPackagesCommand = deserializeAws_restJson1Li
|
|
|
2047
2047
|
const deserializeAws_restJson1ListPackagesCommandError = async (output, context) => {
|
|
2048
2048
|
const parsedOutput = {
|
|
2049
2049
|
...output,
|
|
2050
|
-
body: await
|
|
2050
|
+
body: await parseErrorBody(output.body, context),
|
|
2051
2051
|
};
|
|
2052
2052
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2053
2053
|
switch (errorCode) {
|
|
@@ -2111,7 +2111,7 @@ exports.deserializeAws_restJson1ListPackageVersionAssetsCommand = deserializeAws
|
|
|
2111
2111
|
const deserializeAws_restJson1ListPackageVersionAssetsCommandError = async (output, context) => {
|
|
2112
2112
|
const parsedOutput = {
|
|
2113
2113
|
...output,
|
|
2114
|
-
body: await
|
|
2114
|
+
body: await parseErrorBody(output.body, context),
|
|
2115
2115
|
};
|
|
2116
2116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
2117
|
switch (errorCode) {
|
|
@@ -2175,7 +2175,7 @@ exports.deserializeAws_restJson1ListPackageVersionDependenciesCommand = deserial
|
|
|
2175
2175
|
const deserializeAws_restJson1ListPackageVersionDependenciesCommandError = async (output, context) => {
|
|
2176
2176
|
const parsedOutput = {
|
|
2177
2177
|
...output,
|
|
2178
|
-
body: await
|
|
2178
|
+
body: await parseErrorBody(output.body, context),
|
|
2179
2179
|
};
|
|
2180
2180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
2181
|
switch (errorCode) {
|
|
@@ -2236,7 +2236,7 @@ exports.deserializeAws_restJson1ListPackageVersionsCommand = deserializeAws_rest
|
|
|
2236
2236
|
const deserializeAws_restJson1ListPackageVersionsCommandError = async (output, context) => {
|
|
2237
2237
|
const parsedOutput = {
|
|
2238
2238
|
...output,
|
|
2239
|
-
body: await
|
|
2239
|
+
body: await parseErrorBody(output.body, context),
|
|
2240
2240
|
};
|
|
2241
2241
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2242
2242
|
switch (errorCode) {
|
|
@@ -2285,7 +2285,7 @@ exports.deserializeAws_restJson1ListRepositoriesCommand = deserializeAws_restJso
|
|
|
2285
2285
|
const deserializeAws_restJson1ListRepositoriesCommandError = async (output, context) => {
|
|
2286
2286
|
const parsedOutput = {
|
|
2287
2287
|
...output,
|
|
2288
|
-
body: await
|
|
2288
|
+
body: await parseErrorBody(output.body, context),
|
|
2289
2289
|
};
|
|
2290
2290
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2291
2291
|
switch (errorCode) {
|
|
@@ -2331,7 +2331,7 @@ exports.deserializeAws_restJson1ListRepositoriesInDomainCommand = deserializeAws
|
|
|
2331
2331
|
const deserializeAws_restJson1ListRepositoriesInDomainCommandError = async (output, context) => {
|
|
2332
2332
|
const parsedOutput = {
|
|
2333
2333
|
...output,
|
|
2334
|
-
body: await
|
|
2334
|
+
body: await parseErrorBody(output.body, context),
|
|
2335
2335
|
};
|
|
2336
2336
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2337
2337
|
switch (errorCode) {
|
|
@@ -2377,7 +2377,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2377
2377
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2378
2378
|
const parsedOutput = {
|
|
2379
2379
|
...output,
|
|
2380
|
-
body: await
|
|
2380
|
+
body: await parseErrorBody(output.body, context),
|
|
2381
2381
|
};
|
|
2382
2382
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
2383
|
switch (errorCode) {
|
|
@@ -2420,7 +2420,7 @@ exports.deserializeAws_restJson1PutDomainPermissionsPolicyCommand = deserializeA
|
|
|
2420
2420
|
const deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
2421
2421
|
const parsedOutput = {
|
|
2422
2422
|
...output,
|
|
2423
|
-
body: await
|
|
2423
|
+
body: await parseErrorBody(output.body, context),
|
|
2424
2424
|
};
|
|
2425
2425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2426
2426
|
switch (errorCode) {
|
|
@@ -2472,7 +2472,7 @@ exports.deserializeAws_restJson1PutPackageOriginConfigurationCommand = deseriali
|
|
|
2472
2472
|
const deserializeAws_restJson1PutPackageOriginConfigurationCommandError = async (output, context) => {
|
|
2473
2473
|
const parsedOutput = {
|
|
2474
2474
|
...output,
|
|
2475
|
-
body: await
|
|
2475
|
+
body: await parseErrorBody(output.body, context),
|
|
2476
2476
|
};
|
|
2477
2477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
2478
|
switch (errorCode) {
|
|
@@ -2518,7 +2518,7 @@ exports.deserializeAws_restJson1PutRepositoryPermissionsPolicyCommand = deserial
|
|
|
2518
2518
|
const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = async (output, context) => {
|
|
2519
2519
|
const parsedOutput = {
|
|
2520
2520
|
...output,
|
|
2521
|
-
body: await
|
|
2521
|
+
body: await parseErrorBody(output.body, context),
|
|
2522
2522
|
};
|
|
2523
2523
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
2524
|
switch (errorCode) {
|
|
@@ -2567,7 +2567,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2567
2567
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2568
2568
|
const parsedOutput = {
|
|
2569
2569
|
...output,
|
|
2570
|
-
body: await
|
|
2570
|
+
body: await parseErrorBody(output.body, context),
|
|
2571
2571
|
};
|
|
2572
2572
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2573
2573
|
switch (errorCode) {
|
|
@@ -2610,7 +2610,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2610
2610
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2611
2611
|
const parsedOutput = {
|
|
2612
2612
|
...output,
|
|
2613
|
-
body: await
|
|
2613
|
+
body: await parseErrorBody(output.body, context),
|
|
2614
2614
|
};
|
|
2615
2615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
2616
|
switch (errorCode) {
|
|
@@ -2656,7 +2656,7 @@ exports.deserializeAws_restJson1UpdatePackageVersionsStatusCommand = deserialize
|
|
|
2656
2656
|
const deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = async (output, context) => {
|
|
2657
2657
|
const parsedOutput = {
|
|
2658
2658
|
...output,
|
|
2659
|
-
body: await
|
|
2659
|
+
body: await parseErrorBody(output.body, context),
|
|
2660
2660
|
};
|
|
2661
2661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2662
2662
|
switch (errorCode) {
|
|
@@ -2705,7 +2705,7 @@ exports.deserializeAws_restJson1UpdateRepositoryCommand = deserializeAws_restJso
|
|
|
2705
2705
|
const deserializeAws_restJson1UpdateRepositoryCommandError = async (output, context) => {
|
|
2706
2706
|
const parsedOutput = {
|
|
2707
2707
|
...output,
|
|
2708
|
-
body: await
|
|
2708
|
+
body: await parseErrorBody(output.body, context),
|
|
2709
2709
|
};
|
|
2710
2710
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2711
2711
|
switch (errorCode) {
|
|
@@ -3262,6 +3262,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3262
3262
|
}
|
|
3263
3263
|
return {};
|
|
3264
3264
|
});
|
|
3265
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3266
|
+
var _a;
|
|
3267
|
+
const value = await parseBody(errorBody, context);
|
|
3268
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3269
|
+
return value;
|
|
3270
|
+
};
|
|
3265
3271
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3266
3272
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3267
3273
|
const sanitizeErrorCode = (rawValue) => {
|