@aws-sdk/client-imagebuilder 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 +56 -50
- package/dist-es/Imagebuilder.js +202 -209
- package/dist-es/ImagebuilderClient.js +22 -28
- package/dist-es/commands/CancelImageCreationCommand.js +21 -28
- package/dist-es/commands/CreateComponentCommand.js +21 -28
- package/dist-es/commands/CreateContainerRecipeCommand.js +21 -28
- package/dist-es/commands/CreateDistributionConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateImageCommand.js +21 -28
- package/dist-es/commands/CreateImagePipelineCommand.js +21 -28
- package/dist-es/commands/CreateImageRecipeCommand.js +21 -28
- package/dist-es/commands/CreateInfrastructureConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteComponentCommand.js +21 -28
- package/dist-es/commands/DeleteContainerRecipeCommand.js +21 -28
- package/dist-es/commands/DeleteDistributionConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteImageCommand.js +21 -28
- package/dist-es/commands/DeleteImagePipelineCommand.js +21 -28
- package/dist-es/commands/DeleteImageRecipeCommand.js +21 -28
- package/dist-es/commands/DeleteInfrastructureConfigurationCommand.js +21 -28
- package/dist-es/commands/GetComponentCommand.js +21 -28
- package/dist-es/commands/GetComponentPolicyCommand.js +21 -28
- package/dist-es/commands/GetContainerRecipeCommand.js +21 -28
- package/dist-es/commands/GetContainerRecipePolicyCommand.js +21 -28
- package/dist-es/commands/GetDistributionConfigurationCommand.js +21 -28
- package/dist-es/commands/GetImageCommand.js +21 -28
- package/dist-es/commands/GetImagePipelineCommand.js +21 -28
- package/dist-es/commands/GetImagePolicyCommand.js +21 -28
- package/dist-es/commands/GetImageRecipeCommand.js +21 -28
- package/dist-es/commands/GetImageRecipePolicyCommand.js +21 -28
- package/dist-es/commands/GetInfrastructureConfigurationCommand.js +21 -28
- package/dist-es/commands/ImportComponentCommand.js +21 -28
- package/dist-es/commands/ImportVmImageCommand.js +21 -28
- package/dist-es/commands/ListComponentBuildVersionsCommand.js +21 -28
- package/dist-es/commands/ListComponentsCommand.js +21 -28
- package/dist-es/commands/ListContainerRecipesCommand.js +21 -28
- package/dist-es/commands/ListDistributionConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListImageBuildVersionsCommand.js +21 -28
- package/dist-es/commands/ListImagePackagesCommand.js +21 -28
- package/dist-es/commands/ListImagePipelineImagesCommand.js +21 -28
- package/dist-es/commands/ListImagePipelinesCommand.js +21 -28
- package/dist-es/commands/ListImageRecipesCommand.js +21 -28
- package/dist-es/commands/ListImagesCommand.js +21 -28
- package/dist-es/commands/ListInfrastructureConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutComponentPolicyCommand.js +21 -28
- package/dist-es/commands/PutContainerRecipePolicyCommand.js +21 -28
- package/dist-es/commands/PutImagePolicyCommand.js +21 -28
- package/dist-es/commands/PutImageRecipePolicyCommand.js +21 -28
- package/dist-es/commands/StartImagePipelineExecutionCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateDistributionConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateImagePipelineCommand.js +21 -28
- package/dist-es/commands/UpdateInfrastructureConfigurationCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ImagebuilderServiceException.js +5 -10
- package/dist-es/models/models_0.js +622 -333
- package/dist-es/pagination/ListComponentBuildVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListComponentsPaginator.js +25 -68
- package/dist-es/pagination/ListContainerRecipesPaginator.js +25 -68
- package/dist-es/pagination/ListDistributionConfigurationsPaginator.js +25 -68
- package/dist-es/pagination/ListImageBuildVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListImagePackagesPaginator.js +25 -68
- package/dist-es/pagination/ListImagePipelineImagesPaginator.js +25 -68
- package/dist-es/pagination/ListImagePipelinesPaginator.js +25 -68
- package/dist-es/pagination/ListImageRecipesPaginator.js +25 -68
- package/dist-es/pagination/ListImagesPaginator.js +25 -68
- package/dist-es/pagination/ListInfrastructureConfigurationsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +4518 -5990
- 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-imagebuilder
|
|
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-imagebuilder
|
|
@@ -1284,7 +1284,7 @@ exports.deserializeAws_restJson1CancelImageCreationCommand = deserializeAws_rest
|
|
|
1284
1284
|
const deserializeAws_restJson1CancelImageCreationCommandError = async (output, context) => {
|
|
1285
1285
|
const parsedOutput = {
|
|
1286
1286
|
...output,
|
|
1287
|
-
body: await
|
|
1287
|
+
body: await parseErrorBody(output.body, context),
|
|
1288
1288
|
};
|
|
1289
1289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
1290
|
switch (errorCode) {
|
|
@@ -1345,7 +1345,7 @@ exports.deserializeAws_restJson1CreateComponentCommand = deserializeAws_restJson
|
|
|
1345
1345
|
const deserializeAws_restJson1CreateComponentCommandError = async (output, context) => {
|
|
1346
1346
|
const parsedOutput = {
|
|
1347
1347
|
...output,
|
|
1348
|
-
body: await
|
|
1348
|
+
body: await parseErrorBody(output.body, context),
|
|
1349
1349
|
};
|
|
1350
1350
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1351
1351
|
switch (errorCode) {
|
|
@@ -1415,7 +1415,7 @@ exports.deserializeAws_restJson1CreateContainerRecipeCommand = deserializeAws_re
|
|
|
1415
1415
|
const deserializeAws_restJson1CreateContainerRecipeCommandError = async (output, context) => {
|
|
1416
1416
|
const parsedOutput = {
|
|
1417
1417
|
...output,
|
|
1418
|
-
body: await
|
|
1418
|
+
body: await parseErrorBody(output.body, context),
|
|
1419
1419
|
};
|
|
1420
1420
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
1421
|
switch (errorCode) {
|
|
@@ -1485,7 +1485,7 @@ exports.deserializeAws_restJson1CreateDistributionConfigurationCommand = deseria
|
|
|
1485
1485
|
const deserializeAws_restJson1CreateDistributionConfigurationCommandError = async (output, context) => {
|
|
1486
1486
|
const parsedOutput = {
|
|
1487
1487
|
...output,
|
|
1488
|
-
body: await
|
|
1488
|
+
body: await parseErrorBody(output.body, context),
|
|
1489
1489
|
};
|
|
1490
1490
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1491
1491
|
switch (errorCode) {
|
|
@@ -1555,7 +1555,7 @@ exports.deserializeAws_restJson1CreateImageCommand = deserializeAws_restJson1Cre
|
|
|
1555
1555
|
const deserializeAws_restJson1CreateImageCommandError = async (output, context) => {
|
|
1556
1556
|
const parsedOutput = {
|
|
1557
1557
|
...output,
|
|
1558
|
-
body: await
|
|
1558
|
+
body: await parseErrorBody(output.body, context),
|
|
1559
1559
|
};
|
|
1560
1560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
1561
|
switch (errorCode) {
|
|
@@ -1619,7 +1619,7 @@ exports.deserializeAws_restJson1CreateImagePipelineCommand = deserializeAws_rest
|
|
|
1619
1619
|
const deserializeAws_restJson1CreateImagePipelineCommandError = async (output, context) => {
|
|
1620
1620
|
const parsedOutput = {
|
|
1621
1621
|
...output,
|
|
1622
|
-
body: await
|
|
1622
|
+
body: await parseErrorBody(output.body, context),
|
|
1623
1623
|
};
|
|
1624
1624
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
1625
|
switch (errorCode) {
|
|
@@ -1686,7 +1686,7 @@ exports.deserializeAws_restJson1CreateImageRecipeCommand = deserializeAws_restJs
|
|
|
1686
1686
|
const deserializeAws_restJson1CreateImageRecipeCommandError = async (output, context) => {
|
|
1687
1687
|
const parsedOutput = {
|
|
1688
1688
|
...output,
|
|
1689
|
-
body: await
|
|
1689
|
+
body: await parseErrorBody(output.body, context),
|
|
1690
1690
|
};
|
|
1691
1691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
1692
|
switch (errorCode) {
|
|
@@ -1756,7 +1756,7 @@ exports.deserializeAws_restJson1CreateInfrastructureConfigurationCommand = deser
|
|
|
1756
1756
|
const deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = 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) {
|
|
@@ -1820,7 +1820,7 @@ exports.deserializeAws_restJson1DeleteComponentCommand = deserializeAws_restJson
|
|
|
1820
1820
|
const deserializeAws_restJson1DeleteComponentCommandError = async (output, context) => {
|
|
1821
1821
|
const parsedOutput = {
|
|
1822
1822
|
...output,
|
|
1823
|
-
body: await
|
|
1823
|
+
body: await parseErrorBody(output.body, context),
|
|
1824
1824
|
};
|
|
1825
1825
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
1826
|
switch (errorCode) {
|
|
@@ -1875,7 +1875,7 @@ exports.deserializeAws_restJson1DeleteContainerRecipeCommand = deserializeAws_re
|
|
|
1875
1875
|
const deserializeAws_restJson1DeleteContainerRecipeCommandError = async (output, context) => {
|
|
1876
1876
|
const parsedOutput = {
|
|
1877
1877
|
...output,
|
|
1878
|
-
body: await
|
|
1878
|
+
body: await parseErrorBody(output.body, context),
|
|
1879
1879
|
};
|
|
1880
1880
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1881
1881
|
switch (errorCode) {
|
|
@@ -1930,7 +1930,7 @@ exports.deserializeAws_restJson1DeleteDistributionConfigurationCommand = deseria
|
|
|
1930
1930
|
const deserializeAws_restJson1DeleteDistributionConfigurationCommandError = async (output, context) => {
|
|
1931
1931
|
const parsedOutput = {
|
|
1932
1932
|
...output,
|
|
1933
|
-
body: await
|
|
1933
|
+
body: await parseErrorBody(output.body, context),
|
|
1934
1934
|
};
|
|
1935
1935
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1936
1936
|
switch (errorCode) {
|
|
@@ -1985,7 +1985,7 @@ exports.deserializeAws_restJson1DeleteImageCommand = deserializeAws_restJson1Del
|
|
|
1985
1985
|
const deserializeAws_restJson1DeleteImageCommandError = async (output, context) => {
|
|
1986
1986
|
const parsedOutput = {
|
|
1987
1987
|
...output,
|
|
1988
|
-
body: await
|
|
1988
|
+
body: await parseErrorBody(output.body, context),
|
|
1989
1989
|
};
|
|
1990
1990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1991
1991
|
switch (errorCode) {
|
|
@@ -2040,7 +2040,7 @@ exports.deserializeAws_restJson1DeleteImagePipelineCommand = deserializeAws_rest
|
|
|
2040
2040
|
const deserializeAws_restJson1DeleteImagePipelineCommandError = async (output, context) => {
|
|
2041
2041
|
const parsedOutput = {
|
|
2042
2042
|
...output,
|
|
2043
|
-
body: await
|
|
2043
|
+
body: await parseErrorBody(output.body, context),
|
|
2044
2044
|
};
|
|
2045
2045
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
2046
|
switch (errorCode) {
|
|
@@ -2095,7 +2095,7 @@ exports.deserializeAws_restJson1DeleteImageRecipeCommand = deserializeAws_restJs
|
|
|
2095
2095
|
const deserializeAws_restJson1DeleteImageRecipeCommandError = async (output, context) => {
|
|
2096
2096
|
const parsedOutput = {
|
|
2097
2097
|
...output,
|
|
2098
|
-
body: await
|
|
2098
|
+
body: await parseErrorBody(output.body, context),
|
|
2099
2099
|
};
|
|
2100
2100
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2101
2101
|
switch (errorCode) {
|
|
@@ -2150,7 +2150,7 @@ exports.deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = deser
|
|
|
2150
2150
|
const deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = async (output, context) => {
|
|
2151
2151
|
const parsedOutput = {
|
|
2152
2152
|
...output,
|
|
2153
|
-
body: await
|
|
2153
|
+
body: await parseErrorBody(output.body, context),
|
|
2154
2154
|
};
|
|
2155
2155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2156
2156
|
switch (errorCode) {
|
|
@@ -2205,7 +2205,7 @@ exports.deserializeAws_restJson1GetComponentCommand = deserializeAws_restJson1Ge
|
|
|
2205
2205
|
const deserializeAws_restJson1GetComponentCommandError = async (output, context) => {
|
|
2206
2206
|
const parsedOutput = {
|
|
2207
2207
|
...output,
|
|
2208
|
-
body: await
|
|
2208
|
+
body: await parseErrorBody(output.body, context),
|
|
2209
2209
|
};
|
|
2210
2210
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2211
2211
|
switch (errorCode) {
|
|
@@ -2257,7 +2257,7 @@ exports.deserializeAws_restJson1GetComponentPolicyCommand = deserializeAws_restJ
|
|
|
2257
2257
|
const deserializeAws_restJson1GetComponentPolicyCommandError = async (output, context) => {
|
|
2258
2258
|
const parsedOutput = {
|
|
2259
2259
|
...output,
|
|
2260
|
-
body: await
|
|
2260
|
+
body: await parseErrorBody(output.body, context),
|
|
2261
2261
|
};
|
|
2262
2262
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2263
2263
|
switch (errorCode) {
|
|
@@ -2309,7 +2309,7 @@ exports.deserializeAws_restJson1GetContainerRecipeCommand = deserializeAws_restJ
|
|
|
2309
2309
|
const deserializeAws_restJson1GetContainerRecipeCommandError = async (output, context) => {
|
|
2310
2310
|
const parsedOutput = {
|
|
2311
2311
|
...output,
|
|
2312
|
-
body: await
|
|
2312
|
+
body: await parseErrorBody(output.body, context),
|
|
2313
2313
|
};
|
|
2314
2314
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2315
2315
|
switch (errorCode) {
|
|
@@ -2361,7 +2361,7 @@ exports.deserializeAws_restJson1GetContainerRecipePolicyCommand = deserializeAws
|
|
|
2361
2361
|
const deserializeAws_restJson1GetContainerRecipePolicyCommandError = async (output, context) => {
|
|
2362
2362
|
const parsedOutput = {
|
|
2363
2363
|
...output,
|
|
2364
|
-
body: await
|
|
2364
|
+
body: await parseErrorBody(output.body, context),
|
|
2365
2365
|
};
|
|
2366
2366
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2367
2367
|
switch (errorCode) {
|
|
@@ -2413,7 +2413,7 @@ exports.deserializeAws_restJson1GetDistributionConfigurationCommand = deserializ
|
|
|
2413
2413
|
const deserializeAws_restJson1GetDistributionConfigurationCommandError = async (output, context) => {
|
|
2414
2414
|
const parsedOutput = {
|
|
2415
2415
|
...output,
|
|
2416
|
-
body: await
|
|
2416
|
+
body: await parseErrorBody(output.body, context),
|
|
2417
2417
|
};
|
|
2418
2418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2419
2419
|
switch (errorCode) {
|
|
@@ -2465,7 +2465,7 @@ exports.deserializeAws_restJson1GetImageCommand = deserializeAws_restJson1GetIma
|
|
|
2465
2465
|
const deserializeAws_restJson1GetImageCommandError = async (output, context) => {
|
|
2466
2466
|
const parsedOutput = {
|
|
2467
2467
|
...output,
|
|
2468
|
-
body: await
|
|
2468
|
+
body: await parseErrorBody(output.body, context),
|
|
2469
2469
|
};
|
|
2470
2470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2471
2471
|
switch (errorCode) {
|
|
@@ -2517,7 +2517,7 @@ exports.deserializeAws_restJson1GetImagePipelineCommand = deserializeAws_restJso
|
|
|
2517
2517
|
const deserializeAws_restJson1GetImagePipelineCommandError = async (output, context) => {
|
|
2518
2518
|
const parsedOutput = {
|
|
2519
2519
|
...output,
|
|
2520
|
-
body: await
|
|
2520
|
+
body: await parseErrorBody(output.body, context),
|
|
2521
2521
|
};
|
|
2522
2522
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2523
2523
|
switch (errorCode) {
|
|
@@ -2569,7 +2569,7 @@ exports.deserializeAws_restJson1GetImagePolicyCommand = deserializeAws_restJson1
|
|
|
2569
2569
|
const deserializeAws_restJson1GetImagePolicyCommandError = async (output, context) => {
|
|
2570
2570
|
const parsedOutput = {
|
|
2571
2571
|
...output,
|
|
2572
|
-
body: await
|
|
2572
|
+
body: await parseErrorBody(output.body, context),
|
|
2573
2573
|
};
|
|
2574
2574
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2575
2575
|
switch (errorCode) {
|
|
@@ -2621,7 +2621,7 @@ exports.deserializeAws_restJson1GetImageRecipeCommand = deserializeAws_restJson1
|
|
|
2621
2621
|
const deserializeAws_restJson1GetImageRecipeCommandError = async (output, context) => {
|
|
2622
2622
|
const parsedOutput = {
|
|
2623
2623
|
...output,
|
|
2624
|
-
body: await
|
|
2624
|
+
body: await parseErrorBody(output.body, context),
|
|
2625
2625
|
};
|
|
2626
2626
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2627
2627
|
switch (errorCode) {
|
|
@@ -2673,7 +2673,7 @@ exports.deserializeAws_restJson1GetImageRecipePolicyCommand = deserializeAws_res
|
|
|
2673
2673
|
const deserializeAws_restJson1GetImageRecipePolicyCommandError = async (output, context) => {
|
|
2674
2674
|
const parsedOutput = {
|
|
2675
2675
|
...output,
|
|
2676
|
-
body: await
|
|
2676
|
+
body: await parseErrorBody(output.body, context),
|
|
2677
2677
|
};
|
|
2678
2678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2679
2679
|
switch (errorCode) {
|
|
@@ -2725,7 +2725,7 @@ exports.deserializeAws_restJson1GetInfrastructureConfigurationCommand = deserial
|
|
|
2725
2725
|
const deserializeAws_restJson1GetInfrastructureConfigurationCommandError = async (output, context) => {
|
|
2726
2726
|
const parsedOutput = {
|
|
2727
2727
|
...output,
|
|
2728
|
-
body: await
|
|
2728
|
+
body: await parseErrorBody(output.body, context),
|
|
2729
2729
|
};
|
|
2730
2730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2731
2731
|
switch (errorCode) {
|
|
@@ -2780,7 +2780,7 @@ exports.deserializeAws_restJson1ImportComponentCommand = deserializeAws_restJson
|
|
|
2780
2780
|
const deserializeAws_restJson1ImportComponentCommandError = async (output, context) => {
|
|
2781
2781
|
const parsedOutput = {
|
|
2782
2782
|
...output,
|
|
2783
|
-
body: await
|
|
2783
|
+
body: await parseErrorBody(output.body, context),
|
|
2784
2784
|
};
|
|
2785
2785
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2786
2786
|
switch (errorCode) {
|
|
@@ -2847,7 +2847,7 @@ exports.deserializeAws_restJson1ImportVmImageCommand = deserializeAws_restJson1I
|
|
|
2847
2847
|
const deserializeAws_restJson1ImportVmImageCommandError = async (output, context) => {
|
|
2848
2848
|
const parsedOutput = {
|
|
2849
2849
|
...output,
|
|
2850
|
-
body: await
|
|
2850
|
+
body: await parseErrorBody(output.body, context),
|
|
2851
2851
|
};
|
|
2852
2852
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2853
2853
|
switch (errorCode) {
|
|
@@ -2893,7 +2893,7 @@ exports.deserializeAws_restJson1ListComponentBuildVersionsCommand = deserializeA
|
|
|
2893
2893
|
const deserializeAws_restJson1ListComponentBuildVersionsCommandError = async (output, context) => {
|
|
2894
2894
|
const parsedOutput = {
|
|
2895
2895
|
...output,
|
|
2896
|
-
body: await
|
|
2896
|
+
body: await parseErrorBody(output.body, context),
|
|
2897
2897
|
};
|
|
2898
2898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
2899
|
switch (errorCode) {
|
|
@@ -2951,7 +2951,7 @@ exports.deserializeAws_restJson1ListComponentsCommand = deserializeAws_restJson1
|
|
|
2951
2951
|
const deserializeAws_restJson1ListComponentsCommandError = async (output, context) => {
|
|
2952
2952
|
const parsedOutput = {
|
|
2953
2953
|
...output,
|
|
2954
|
-
body: await
|
|
2954
|
+
body: await parseErrorBody(output.body, context),
|
|
2955
2955
|
};
|
|
2956
2956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
2957
|
switch (errorCode) {
|
|
@@ -3009,7 +3009,7 @@ exports.deserializeAws_restJson1ListContainerRecipesCommand = deserializeAws_res
|
|
|
3009
3009
|
const deserializeAws_restJson1ListContainerRecipesCommandError = async (output, context) => {
|
|
3010
3010
|
const parsedOutput = {
|
|
3011
3011
|
...output,
|
|
3012
|
-
body: await
|
|
3012
|
+
body: await parseErrorBody(output.body, context),
|
|
3013
3013
|
};
|
|
3014
3014
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3015
3015
|
switch (errorCode) {
|
|
@@ -3067,7 +3067,7 @@ exports.deserializeAws_restJson1ListDistributionConfigurationsCommand = deserial
|
|
|
3067
3067
|
const deserializeAws_restJson1ListDistributionConfigurationsCommandError = async (output, context) => {
|
|
3068
3068
|
const parsedOutput = {
|
|
3069
3069
|
...output,
|
|
3070
|
-
body: await
|
|
3070
|
+
body: await parseErrorBody(output.body, context),
|
|
3071
3071
|
};
|
|
3072
3072
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3073
3073
|
switch (errorCode) {
|
|
@@ -3125,7 +3125,7 @@ exports.deserializeAws_restJson1ListImageBuildVersionsCommand = deserializeAws_r
|
|
|
3125
3125
|
const deserializeAws_restJson1ListImageBuildVersionsCommandError = async (output, context) => {
|
|
3126
3126
|
const parsedOutput = {
|
|
3127
3127
|
...output,
|
|
3128
|
-
body: await
|
|
3128
|
+
body: await parseErrorBody(output.body, context),
|
|
3129
3129
|
};
|
|
3130
3130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3131
3131
|
switch (errorCode) {
|
|
@@ -3183,7 +3183,7 @@ exports.deserializeAws_restJson1ListImagePackagesCommand = deserializeAws_restJs
|
|
|
3183
3183
|
const deserializeAws_restJson1ListImagePackagesCommandError = async (output, context) => {
|
|
3184
3184
|
const parsedOutput = {
|
|
3185
3185
|
...output,
|
|
3186
|
-
body: await
|
|
3186
|
+
body: await parseErrorBody(output.body, context),
|
|
3187
3187
|
};
|
|
3188
3188
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3189
3189
|
switch (errorCode) {
|
|
@@ -3244,7 +3244,7 @@ exports.deserializeAws_restJson1ListImagePipelineImagesCommand = deserializeAws_
|
|
|
3244
3244
|
const deserializeAws_restJson1ListImagePipelineImagesCommandError = async (output, context) => {
|
|
3245
3245
|
const parsedOutput = {
|
|
3246
3246
|
...output,
|
|
3247
|
-
body: await
|
|
3247
|
+
body: await parseErrorBody(output.body, context),
|
|
3248
3248
|
};
|
|
3249
3249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3250
3250
|
switch (errorCode) {
|
|
@@ -3305,7 +3305,7 @@ exports.deserializeAws_restJson1ListImagePipelinesCommand = deserializeAws_restJ
|
|
|
3305
3305
|
const deserializeAws_restJson1ListImagePipelinesCommandError = async (output, context) => {
|
|
3306
3306
|
const parsedOutput = {
|
|
3307
3307
|
...output,
|
|
3308
|
-
body: await
|
|
3308
|
+
body: await parseErrorBody(output.body, context),
|
|
3309
3309
|
};
|
|
3310
3310
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3311
3311
|
switch (errorCode) {
|
|
@@ -3363,7 +3363,7 @@ exports.deserializeAws_restJson1ListImageRecipesCommand = deserializeAws_restJso
|
|
|
3363
3363
|
const deserializeAws_restJson1ListImageRecipesCommandError = async (output, context) => {
|
|
3364
3364
|
const parsedOutput = {
|
|
3365
3365
|
...output,
|
|
3366
|
-
body: await
|
|
3366
|
+
body: await parseErrorBody(output.body, context),
|
|
3367
3367
|
};
|
|
3368
3368
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3369
3369
|
switch (errorCode) {
|
|
@@ -3421,7 +3421,7 @@ exports.deserializeAws_restJson1ListImagesCommand = deserializeAws_restJson1List
|
|
|
3421
3421
|
const deserializeAws_restJson1ListImagesCommandError = async (output, context) => {
|
|
3422
3422
|
const parsedOutput = {
|
|
3423
3423
|
...output,
|
|
3424
|
-
body: await
|
|
3424
|
+
body: await parseErrorBody(output.body, context),
|
|
3425
3425
|
};
|
|
3426
3426
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3427
3427
|
switch (errorCode) {
|
|
@@ -3479,7 +3479,7 @@ exports.deserializeAws_restJson1ListInfrastructureConfigurationsCommand = deseri
|
|
|
3479
3479
|
const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = async (output, context) => {
|
|
3480
3480
|
const parsedOutput = {
|
|
3481
3481
|
...output,
|
|
3482
|
-
body: await
|
|
3482
|
+
body: await parseErrorBody(output.body, context),
|
|
3483
3483
|
};
|
|
3484
3484
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3485
3485
|
switch (errorCode) {
|
|
@@ -3531,7 +3531,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
3531
3531
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
3532
3532
|
const parsedOutput = {
|
|
3533
3533
|
...output,
|
|
3534
|
-
body: await
|
|
3534
|
+
body: await parseErrorBody(output.body, context),
|
|
3535
3535
|
};
|
|
3536
3536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3537
3537
|
switch (errorCode) {
|
|
@@ -3574,7 +3574,7 @@ exports.deserializeAws_restJson1PutComponentPolicyCommand = deserializeAws_restJ
|
|
|
3574
3574
|
const deserializeAws_restJson1PutComponentPolicyCommandError = async (output, context) => {
|
|
3575
3575
|
const parsedOutput = {
|
|
3576
3576
|
...output,
|
|
3577
|
-
body: await
|
|
3577
|
+
body: await parseErrorBody(output.body, context),
|
|
3578
3578
|
};
|
|
3579
3579
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3580
3580
|
switch (errorCode) {
|
|
@@ -3632,7 +3632,7 @@ exports.deserializeAws_restJson1PutContainerRecipePolicyCommand = deserializeAws
|
|
|
3632
3632
|
const deserializeAws_restJson1PutContainerRecipePolicyCommandError = async (output, context) => {
|
|
3633
3633
|
const parsedOutput = {
|
|
3634
3634
|
...output,
|
|
3635
|
-
body: await
|
|
3635
|
+
body: await parseErrorBody(output.body, context),
|
|
3636
3636
|
};
|
|
3637
3637
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3638
3638
|
switch (errorCode) {
|
|
@@ -3690,7 +3690,7 @@ exports.deserializeAws_restJson1PutImagePolicyCommand = deserializeAws_restJson1
|
|
|
3690
3690
|
const deserializeAws_restJson1PutImagePolicyCommandError = async (output, context) => {
|
|
3691
3691
|
const parsedOutput = {
|
|
3692
3692
|
...output,
|
|
3693
|
-
body: await
|
|
3693
|
+
body: await parseErrorBody(output.body, context),
|
|
3694
3694
|
};
|
|
3695
3695
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3696
3696
|
switch (errorCode) {
|
|
@@ -3748,7 +3748,7 @@ exports.deserializeAws_restJson1PutImageRecipePolicyCommand = deserializeAws_res
|
|
|
3748
3748
|
const deserializeAws_restJson1PutImageRecipePolicyCommandError = async (output, context) => {
|
|
3749
3749
|
const parsedOutput = {
|
|
3750
3750
|
...output,
|
|
3751
|
-
body: await
|
|
3751
|
+
body: await parseErrorBody(output.body, context),
|
|
3752
3752
|
};
|
|
3753
3753
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3754
3754
|
switch (errorCode) {
|
|
@@ -3809,7 +3809,7 @@ exports.deserializeAws_restJson1StartImagePipelineExecutionCommand = deserialize
|
|
|
3809
3809
|
const deserializeAws_restJson1StartImagePipelineExecutionCommandError = async (output, context) => {
|
|
3810
3810
|
const parsedOutput = {
|
|
3811
3811
|
...output,
|
|
3812
|
-
body: await
|
|
3812
|
+
body: await parseErrorBody(output.body, context),
|
|
3813
3813
|
};
|
|
3814
3814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3815
3815
|
switch (errorCode) {
|
|
@@ -3864,7 +3864,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
3864
3864
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
3865
3865
|
const parsedOutput = {
|
|
3866
3866
|
...output,
|
|
3867
|
-
body: await
|
|
3867
|
+
body: await parseErrorBody(output.body, context),
|
|
3868
3868
|
};
|
|
3869
3869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3870
3870
|
switch (errorCode) {
|
|
@@ -3901,7 +3901,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
3901
3901
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
3902
3902
|
const parsedOutput = {
|
|
3903
3903
|
...output,
|
|
3904
|
-
body: await
|
|
3904
|
+
body: await parseErrorBody(output.body, context),
|
|
3905
3905
|
};
|
|
3906
3906
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3907
3907
|
switch (errorCode) {
|
|
@@ -3947,7 +3947,7 @@ exports.deserializeAws_restJson1UpdateDistributionConfigurationCommand = deseria
|
|
|
3947
3947
|
const deserializeAws_restJson1UpdateDistributionConfigurationCommandError = async (output, context) => {
|
|
3948
3948
|
const parsedOutput = {
|
|
3949
3949
|
...output,
|
|
3950
|
-
body: await
|
|
3950
|
+
body: await parseErrorBody(output.body, context),
|
|
3951
3951
|
};
|
|
3952
3952
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3953
3953
|
switch (errorCode) {
|
|
@@ -4011,7 +4011,7 @@ exports.deserializeAws_restJson1UpdateImagePipelineCommand = deserializeAws_rest
|
|
|
4011
4011
|
const deserializeAws_restJson1UpdateImagePipelineCommandError = async (output, context) => {
|
|
4012
4012
|
const parsedOutput = {
|
|
4013
4013
|
...output,
|
|
4014
|
-
body: await
|
|
4014
|
+
body: await parseErrorBody(output.body, context),
|
|
4015
4015
|
};
|
|
4016
4016
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4017
4017
|
switch (errorCode) {
|
|
@@ -4072,7 +4072,7 @@ exports.deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = deser
|
|
|
4072
4072
|
const deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = async (output, context) => {
|
|
4073
4073
|
const parsedOutput = {
|
|
4074
4074
|
...output,
|
|
4075
|
-
body: await
|
|
4075
|
+
body: await parseErrorBody(output.body, context),
|
|
4076
4076
|
};
|
|
4077
4077
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4078
4078
|
switch (errorCode) {
|
|
@@ -5546,6 +5546,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5546
5546
|
}
|
|
5547
5547
|
return {};
|
|
5548
5548
|
});
|
|
5549
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
5550
|
+
var _a;
|
|
5551
|
+
const value = await parseBody(errorBody, context);
|
|
5552
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5553
|
+
return value;
|
|
5554
|
+
};
|
|
5549
5555
|
const loadRestJsonErrorCode = (output, data) => {
|
|
5550
5556
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
5551
5557
|
const sanitizeErrorCode = (rawValue) => {
|