@aws-sdk/client-billingconductor 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 +36 -30
- package/dist-es/Billingconductor.js +122 -129
- package/dist-es/BillingconductorClient.js +22 -28
- package/dist-es/commands/AssociateAccountsCommand.js +21 -28
- package/dist-es/commands/AssociatePricingRulesCommand.js +21 -28
- package/dist-es/commands/BatchAssociateResourcesToCustomLineItemCommand.js +21 -28
- package/dist-es/commands/BatchDisassociateResourcesFromCustomLineItemCommand.js +21 -28
- package/dist-es/commands/CreateBillingGroupCommand.js +21 -28
- package/dist-es/commands/CreateCustomLineItemCommand.js +21 -28
- package/dist-es/commands/CreatePricingPlanCommand.js +21 -28
- package/dist-es/commands/CreatePricingRuleCommand.js +21 -28
- package/dist-es/commands/DeleteBillingGroupCommand.js +21 -28
- package/dist-es/commands/DeleteCustomLineItemCommand.js +21 -28
- package/dist-es/commands/DeletePricingPlanCommand.js +21 -28
- package/dist-es/commands/DeletePricingRuleCommand.js +21 -28
- package/dist-es/commands/DisassociateAccountsCommand.js +21 -28
- package/dist-es/commands/DisassociatePricingRulesCommand.js +21 -28
- package/dist-es/commands/ListAccountAssociationsCommand.js +21 -28
- package/dist-es/commands/ListBillingGroupCostReportsCommand.js +21 -28
- package/dist-es/commands/ListBillingGroupsCommand.js +21 -28
- package/dist-es/commands/ListCustomLineItemsCommand.js +21 -28
- package/dist-es/commands/ListPricingPlansAssociatedWithPricingRuleCommand.js +21 -28
- package/dist-es/commands/ListPricingPlansCommand.js +21 -28
- package/dist-es/commands/ListPricingRulesAssociatedToPricingPlanCommand.js +21 -28
- package/dist-es/commands/ListPricingRulesCommand.js +21 -28
- package/dist-es/commands/ListResourcesAssociatedToCustomLineItemCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateBillingGroupCommand.js +21 -28
- package/dist-es/commands/UpdateCustomLineItemCommand.js +21 -28
- package/dist-es/commands/UpdatePricingPlanCommand.js +21 -28
- package/dist-es/commands/UpdatePricingRuleCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/BillingconductorServiceException.js +5 -10
- package/dist-es/models/models_0.js +417 -197
- package/dist-es/pagination/ListAccountAssociationsPaginator.js +24 -67
- package/dist-es/pagination/ListBillingGroupCostReportsPaginator.js +25 -68
- package/dist-es/pagination/ListBillingGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListCustomLineItemsPaginator.js +25 -68
- package/dist-es/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.js +25 -68
- package/dist-es/pagination/ListPricingPlansPaginator.js +25 -68
- package/dist-es/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.js +25 -68
- package/dist-es/pagination/ListPricingRulesPaginator.js +25 -68
- package/dist-es/pagination/ListResourcesAssociatedToCustomLineItemPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2512 -3350
- 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-billingconductor
|
|
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-billingconductor
|
|
@@ -764,7 +764,7 @@ exports.deserializeAws_restJson1AssociateAccountsCommand = deserializeAws_restJs
|
|
|
764
764
|
const deserializeAws_restJson1AssociateAccountsCommandError = async (output, context) => {
|
|
765
765
|
const parsedOutput = {
|
|
766
766
|
...output,
|
|
767
|
-
body: await
|
|
767
|
+
body: await parseErrorBody(output.body, context),
|
|
768
768
|
};
|
|
769
769
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
770
|
switch (errorCode) {
|
|
@@ -816,7 +816,7 @@ exports.deserializeAws_restJson1AssociatePricingRulesCommand = deserializeAws_re
|
|
|
816
816
|
const deserializeAws_restJson1AssociatePricingRulesCommandError = async (output, context) => {
|
|
817
817
|
const parsedOutput = {
|
|
818
818
|
...output,
|
|
819
|
-
body: await
|
|
819
|
+
body: await parseErrorBody(output.body, context),
|
|
820
820
|
};
|
|
821
821
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
822
822
|
switch (errorCode) {
|
|
@@ -871,7 +871,7 @@ exports.deserializeAws_restJson1BatchAssociateResourcesToCustomLineItemCommand =
|
|
|
871
871
|
const deserializeAws_restJson1BatchAssociateResourcesToCustomLineItemCommandError = async (output, context) => {
|
|
872
872
|
const parsedOutput = {
|
|
873
873
|
...output,
|
|
874
|
-
body: await
|
|
874
|
+
body: await parseErrorBody(output.body, context),
|
|
875
875
|
};
|
|
876
876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
877
|
switch (errorCode) {
|
|
@@ -926,7 +926,7 @@ exports.deserializeAws_restJson1BatchDisassociateResourcesFromCustomLineItemComm
|
|
|
926
926
|
const deserializeAws_restJson1BatchDisassociateResourcesFromCustomLineItemCommandError = async (output, context) => {
|
|
927
927
|
const parsedOutput = {
|
|
928
928
|
...output,
|
|
929
|
-
body: await
|
|
929
|
+
body: await parseErrorBody(output.body, context),
|
|
930
930
|
};
|
|
931
931
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
932
|
switch (errorCode) {
|
|
@@ -975,7 +975,7 @@ exports.deserializeAws_restJson1CreateBillingGroupCommand = deserializeAws_restJ
|
|
|
975
975
|
const deserializeAws_restJson1CreateBillingGroupCommandError = async (output, context) => {
|
|
976
976
|
const parsedOutput = {
|
|
977
977
|
...output,
|
|
978
|
-
body: await
|
|
978
|
+
body: await parseErrorBody(output.body, context),
|
|
979
979
|
};
|
|
980
980
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
981
|
switch (errorCode) {
|
|
@@ -1024,7 +1024,7 @@ exports.deserializeAws_restJson1CreateCustomLineItemCommand = deserializeAws_res
|
|
|
1024
1024
|
const deserializeAws_restJson1CreateCustomLineItemCommandError = async (output, context) => {
|
|
1025
1025
|
const parsedOutput = {
|
|
1026
1026
|
...output,
|
|
1027
|
-
body: await
|
|
1027
|
+
body: await parseErrorBody(output.body, context),
|
|
1028
1028
|
};
|
|
1029
1029
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1030
1030
|
switch (errorCode) {
|
|
@@ -1073,7 +1073,7 @@ exports.deserializeAws_restJson1CreatePricingPlanCommand = deserializeAws_restJs
|
|
|
1073
1073
|
const deserializeAws_restJson1CreatePricingPlanCommandError = async (output, context) => {
|
|
1074
1074
|
const parsedOutput = {
|
|
1075
1075
|
...output,
|
|
1076
|
-
body: await
|
|
1076
|
+
body: await parseErrorBody(output.body, context),
|
|
1077
1077
|
};
|
|
1078
1078
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1079
|
switch (errorCode) {
|
|
@@ -1125,7 +1125,7 @@ exports.deserializeAws_restJson1CreatePricingRuleCommand = deserializeAws_restJs
|
|
|
1125
1125
|
const deserializeAws_restJson1CreatePricingRuleCommandError = async (output, context) => {
|
|
1126
1126
|
const parsedOutput = {
|
|
1127
1127
|
...output,
|
|
1128
|
-
body: await
|
|
1128
|
+
body: await parseErrorBody(output.body, context),
|
|
1129
1129
|
};
|
|
1130
1130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
1131
|
switch (errorCode) {
|
|
@@ -1174,7 +1174,7 @@ exports.deserializeAws_restJson1DeleteBillingGroupCommand = deserializeAws_restJ
|
|
|
1174
1174
|
const deserializeAws_restJson1DeleteBillingGroupCommandError = async (output, context) => {
|
|
1175
1175
|
const parsedOutput = {
|
|
1176
1176
|
...output,
|
|
1177
|
-
body: await
|
|
1177
|
+
body: await parseErrorBody(output.body, context),
|
|
1178
1178
|
};
|
|
1179
1179
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
1180
|
switch (errorCode) {
|
|
@@ -1217,7 +1217,7 @@ exports.deserializeAws_restJson1DeleteCustomLineItemCommand = deserializeAws_res
|
|
|
1217
1217
|
const deserializeAws_restJson1DeleteCustomLineItemCommandError = async (output, context) => {
|
|
1218
1218
|
const parsedOutput = {
|
|
1219
1219
|
...output,
|
|
1220
|
-
body: await
|
|
1220
|
+
body: await parseErrorBody(output.body, context),
|
|
1221
1221
|
};
|
|
1222
1222
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1223
1223
|
switch (errorCode) {
|
|
@@ -1263,7 +1263,7 @@ exports.deserializeAws_restJson1DeletePricingPlanCommand = deserializeAws_restJs
|
|
|
1263
1263
|
const deserializeAws_restJson1DeletePricingPlanCommandError = async (output, context) => {
|
|
1264
1264
|
const parsedOutput = {
|
|
1265
1265
|
...output,
|
|
1266
|
-
body: await
|
|
1266
|
+
body: await parseErrorBody(output.body, context),
|
|
1267
1267
|
};
|
|
1268
1268
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
1269
|
switch (errorCode) {
|
|
@@ -1309,7 +1309,7 @@ exports.deserializeAws_restJson1DeletePricingRuleCommand = deserializeAws_restJs
|
|
|
1309
1309
|
const deserializeAws_restJson1DeletePricingRuleCommandError = async (output, context) => {
|
|
1310
1310
|
const parsedOutput = {
|
|
1311
1311
|
...output,
|
|
1312
|
-
body: await
|
|
1312
|
+
body: await parseErrorBody(output.body, context),
|
|
1313
1313
|
};
|
|
1314
1314
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1315
1315
|
switch (errorCode) {
|
|
@@ -1355,7 +1355,7 @@ exports.deserializeAws_restJson1DisassociateAccountsCommand = deserializeAws_res
|
|
|
1355
1355
|
const deserializeAws_restJson1DisassociateAccountsCommandError = async (output, context) => {
|
|
1356
1356
|
const parsedOutput = {
|
|
1357
1357
|
...output,
|
|
1358
|
-
body: await
|
|
1358
|
+
body: await parseErrorBody(output.body, context),
|
|
1359
1359
|
};
|
|
1360
1360
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1361
1361
|
switch (errorCode) {
|
|
@@ -1404,7 +1404,7 @@ exports.deserializeAws_restJson1DisassociatePricingRulesCommand = deserializeAws
|
|
|
1404
1404
|
const deserializeAws_restJson1DisassociatePricingRulesCommandError = async (output, context) => {
|
|
1405
1405
|
const parsedOutput = {
|
|
1406
1406
|
...output,
|
|
1407
|
-
body: await
|
|
1407
|
+
body: await parseErrorBody(output.body, context),
|
|
1408
1408
|
};
|
|
1409
1409
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
1410
|
switch (errorCode) {
|
|
@@ -1456,7 +1456,7 @@ exports.deserializeAws_restJson1ListAccountAssociationsCommand = deserializeAws_
|
|
|
1456
1456
|
const deserializeAws_restJson1ListAccountAssociationsCommandError = async (output, context) => {
|
|
1457
1457
|
const parsedOutput = {
|
|
1458
1458
|
...output,
|
|
1459
|
-
body: await
|
|
1459
|
+
body: await parseErrorBody(output.body, context),
|
|
1460
1460
|
};
|
|
1461
1461
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
1462
|
switch (errorCode) {
|
|
@@ -1505,7 +1505,7 @@ exports.deserializeAws_restJson1ListBillingGroupCostReportsCommand = deserialize
|
|
|
1505
1505
|
const deserializeAws_restJson1ListBillingGroupCostReportsCommandError = async (output, context) => {
|
|
1506
1506
|
const parsedOutput = {
|
|
1507
1507
|
...output,
|
|
1508
|
-
body: await
|
|
1508
|
+
body: await parseErrorBody(output.body, context),
|
|
1509
1509
|
};
|
|
1510
1510
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
1511
|
switch (errorCode) {
|
|
@@ -1554,7 +1554,7 @@ exports.deserializeAws_restJson1ListBillingGroupsCommand = deserializeAws_restJs
|
|
|
1554
1554
|
const deserializeAws_restJson1ListBillingGroupsCommandError = async (output, context) => {
|
|
1555
1555
|
const parsedOutput = {
|
|
1556
1556
|
...output,
|
|
1557
|
-
body: await
|
|
1557
|
+
body: await parseErrorBody(output.body, context),
|
|
1558
1558
|
};
|
|
1559
1559
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
1560
|
switch (errorCode) {
|
|
@@ -1603,7 +1603,7 @@ exports.deserializeAws_restJson1ListCustomLineItemsCommand = deserializeAws_rest
|
|
|
1603
1603
|
const deserializeAws_restJson1ListCustomLineItemsCommandError = async (output, context) => {
|
|
1604
1604
|
const parsedOutput = {
|
|
1605
1605
|
...output,
|
|
1606
|
-
body: await
|
|
1606
|
+
body: await parseErrorBody(output.body, context),
|
|
1607
1607
|
};
|
|
1608
1608
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
1609
|
switch (errorCode) {
|
|
@@ -1655,7 +1655,7 @@ exports.deserializeAws_restJson1ListPricingPlansCommand = deserializeAws_restJso
|
|
|
1655
1655
|
const deserializeAws_restJson1ListPricingPlansCommandError = async (output, context) => {
|
|
1656
1656
|
const parsedOutput = {
|
|
1657
1657
|
...output,
|
|
1658
|
-
body: await
|
|
1658
|
+
body: await parseErrorBody(output.body, context),
|
|
1659
1659
|
};
|
|
1660
1660
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1661
1661
|
switch (errorCode) {
|
|
@@ -1707,7 +1707,7 @@ exports.deserializeAws_restJson1ListPricingPlansAssociatedWithPricingRuleCommand
|
|
|
1707
1707
|
const deserializeAws_restJson1ListPricingPlansAssociatedWithPricingRuleCommandError = async (output, context) => {
|
|
1708
1708
|
const parsedOutput = {
|
|
1709
1709
|
...output,
|
|
1710
|
-
body: await
|
|
1710
|
+
body: await parseErrorBody(output.body, context),
|
|
1711
1711
|
};
|
|
1712
1712
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
1713
|
switch (errorCode) {
|
|
@@ -1759,7 +1759,7 @@ exports.deserializeAws_restJson1ListPricingRulesCommand = deserializeAws_restJso
|
|
|
1759
1759
|
const deserializeAws_restJson1ListPricingRulesCommandError = async (output, context) => {
|
|
1760
1760
|
const parsedOutput = {
|
|
1761
1761
|
...output,
|
|
1762
|
-
body: await
|
|
1762
|
+
body: await parseErrorBody(output.body, context),
|
|
1763
1763
|
};
|
|
1764
1764
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
1765
|
switch (errorCode) {
|
|
@@ -1811,7 +1811,7 @@ exports.deserializeAws_restJson1ListPricingRulesAssociatedToPricingPlanCommand =
|
|
|
1811
1811
|
const deserializeAws_restJson1ListPricingRulesAssociatedToPricingPlanCommandError = async (output, context) => {
|
|
1812
1812
|
const parsedOutput = {
|
|
1813
1813
|
...output,
|
|
1814
|
-
body: await
|
|
1814
|
+
body: await parseErrorBody(output.body, context),
|
|
1815
1815
|
};
|
|
1816
1816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1817
1817
|
switch (errorCode) {
|
|
@@ -1863,7 +1863,7 @@ exports.deserializeAws_restJson1ListResourcesAssociatedToCustomLineItemCommand =
|
|
|
1863
1863
|
const deserializeAws_restJson1ListResourcesAssociatedToCustomLineItemCommandError = async (output, context) => {
|
|
1864
1864
|
const parsedOutput = {
|
|
1865
1865
|
...output,
|
|
1866
|
-
body: await
|
|
1866
|
+
body: await parseErrorBody(output.body, context),
|
|
1867
1867
|
};
|
|
1868
1868
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
1869
|
switch (errorCode) {
|
|
@@ -1909,7 +1909,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1909
1909
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1910
1910
|
const parsedOutput = {
|
|
1911
1911
|
...output,
|
|
1912
|
-
body: await
|
|
1912
|
+
body: await parseErrorBody(output.body, context),
|
|
1913
1913
|
};
|
|
1914
1914
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
1915
|
switch (errorCode) {
|
|
@@ -1952,7 +1952,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1952
1952
|
const deserializeAws_restJson1TagResourceCommandError = 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) {
|
|
@@ -1995,7 +1995,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1995
1995
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1996
1996
|
const parsedOutput = {
|
|
1997
1997
|
...output,
|
|
1998
|
-
body: await
|
|
1998
|
+
body: await parseErrorBody(output.body, context),
|
|
1999
1999
|
};
|
|
2000
2000
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2001
2001
|
switch (errorCode) {
|
|
@@ -2065,7 +2065,7 @@ exports.deserializeAws_restJson1UpdateBillingGroupCommand = deserializeAws_restJ
|
|
|
2065
2065
|
const deserializeAws_restJson1UpdateBillingGroupCommandError = async (output, context) => {
|
|
2066
2066
|
const parsedOutput = {
|
|
2067
2067
|
...output,
|
|
2068
|
-
body: await
|
|
2068
|
+
body: await parseErrorBody(output.body, context),
|
|
2069
2069
|
};
|
|
2070
2070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
2071
|
switch (errorCode) {
|
|
@@ -2132,7 +2132,7 @@ exports.deserializeAws_restJson1UpdateCustomLineItemCommand = deserializeAws_res
|
|
|
2132
2132
|
const deserializeAws_restJson1UpdateCustomLineItemCommandError = async (output, context) => {
|
|
2133
2133
|
const parsedOutput = {
|
|
2134
2134
|
...output,
|
|
2135
|
-
body: await
|
|
2135
|
+
body: await parseErrorBody(output.body, context),
|
|
2136
2136
|
};
|
|
2137
2137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2138
2138
|
switch (errorCode) {
|
|
@@ -2190,7 +2190,7 @@ exports.deserializeAws_restJson1UpdatePricingPlanCommand = deserializeAws_restJs
|
|
|
2190
2190
|
const deserializeAws_restJson1UpdatePricingPlanCommandError = async (output, context) => {
|
|
2191
2191
|
const parsedOutput = {
|
|
2192
2192
|
...output,
|
|
2193
|
-
body: await
|
|
2193
|
+
body: await parseErrorBody(output.body, context),
|
|
2194
2194
|
};
|
|
2195
2195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2196
2196
|
switch (errorCode) {
|
|
@@ -2263,7 +2263,7 @@ exports.deserializeAws_restJson1UpdatePricingRuleCommand = deserializeAws_restJs
|
|
|
2263
2263
|
const deserializeAws_restJson1UpdatePricingRuleCommandError = async (output, context) => {
|
|
2264
2264
|
const parsedOutput = {
|
|
2265
2265
|
...output,
|
|
2266
|
-
body: await
|
|
2266
|
+
body: await parseErrorBody(output.body, context),
|
|
2267
2267
|
};
|
|
2268
2268
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2269
2269
|
switch (errorCode) {
|
|
@@ -2913,6 +2913,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2913
2913
|
}
|
|
2914
2914
|
return {};
|
|
2915
2915
|
});
|
|
2916
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2917
|
+
var _a;
|
|
2918
|
+
const value = await parseBody(errorBody, context);
|
|
2919
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2920
|
+
return value;
|
|
2921
|
+
};
|
|
2916
2922
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2917
2923
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2918
2924
|
const sanitizeErrorCode = (rawValue) => {
|