@aws-sdk/client-billingconductor 3.180.0 → 3.181.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 +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +36 -30
- package/dist-es/protocols/Aws_restJson1.js +43 -30
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
* **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))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**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) => {
|
|
@@ -800,7 +800,7 @@ var deserializeAws_restJson1AssociateAccountsCommandError = function (output, co
|
|
|
800
800
|
case 0:
|
|
801
801
|
_a = [__assign({}, output)];
|
|
802
802
|
_c = {};
|
|
803
|
-
return [4,
|
|
803
|
+
return [4, parseErrorBody(output.body, context)];
|
|
804
804
|
case 1:
|
|
805
805
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
806
806
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -880,7 +880,7 @@ var deserializeAws_restJson1AssociatePricingRulesCommandError = function (output
|
|
|
880
880
|
case 0:
|
|
881
881
|
_a = [__assign({}, output)];
|
|
882
882
|
_c = {};
|
|
883
|
-
return [4,
|
|
883
|
+
return [4, parseErrorBody(output.body, context)];
|
|
884
884
|
case 1:
|
|
885
885
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
886
886
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -963,7 +963,7 @@ var deserializeAws_restJson1BatchAssociateResourcesToCustomLineItemCommandError
|
|
|
963
963
|
case 0:
|
|
964
964
|
_a = [__assign({}, output)];
|
|
965
965
|
_c = {};
|
|
966
|
-
return [4,
|
|
966
|
+
return [4, parseErrorBody(output.body, context)];
|
|
967
967
|
case 1:
|
|
968
968
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
969
969
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1046,7 +1046,7 @@ var deserializeAws_restJson1BatchDisassociateResourcesFromCustomLineItemCommandE
|
|
|
1046
1046
|
case 0:
|
|
1047
1047
|
_a = [__assign({}, output)];
|
|
1048
1048
|
_c = {};
|
|
1049
|
-
return [4,
|
|
1049
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1050
1050
|
case 1:
|
|
1051
1051
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1052
1052
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1122,7 +1122,7 @@ var deserializeAws_restJson1CreateBillingGroupCommandError = function (output, c
|
|
|
1122
1122
|
case 0:
|
|
1123
1123
|
_a = [__assign({}, output)];
|
|
1124
1124
|
_c = {};
|
|
1125
|
-
return [4,
|
|
1125
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1126
1126
|
case 1:
|
|
1127
1127
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1128
1128
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1198,7 +1198,7 @@ var deserializeAws_restJson1CreateCustomLineItemCommandError = function (output,
|
|
|
1198
1198
|
case 0:
|
|
1199
1199
|
_a = [__assign({}, output)];
|
|
1200
1200
|
_c = {};
|
|
1201
|
-
return [4,
|
|
1201
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1202
1202
|
case 1:
|
|
1203
1203
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1204
1204
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1274,7 +1274,7 @@ var deserializeAws_restJson1CreatePricingPlanCommandError = function (output, co
|
|
|
1274
1274
|
case 0:
|
|
1275
1275
|
_a = [__assign({}, output)];
|
|
1276
1276
|
_c = {};
|
|
1277
|
-
return [4,
|
|
1277
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1278
1278
|
case 1:
|
|
1279
1279
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1280
1280
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1354,7 +1354,7 @@ var deserializeAws_restJson1CreatePricingRuleCommandError = function (output, co
|
|
|
1354
1354
|
case 0:
|
|
1355
1355
|
_a = [__assign({}, output)];
|
|
1356
1356
|
_c = {};
|
|
1357
|
-
return [4,
|
|
1357
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1358
1358
|
case 1:
|
|
1359
1359
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1360
1360
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1430,7 +1430,7 @@ var deserializeAws_restJson1DeleteBillingGroupCommandError = function (output, c
|
|
|
1430
1430
|
case 0:
|
|
1431
1431
|
_a = [__assign({}, output)];
|
|
1432
1432
|
_c = {};
|
|
1433
|
-
return [4,
|
|
1433
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1434
1434
|
case 1:
|
|
1435
1435
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1436
1436
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1498,7 +1498,7 @@ var deserializeAws_restJson1DeleteCustomLineItemCommandError = function (output,
|
|
|
1498
1498
|
case 0:
|
|
1499
1499
|
_a = [__assign({}, output)];
|
|
1500
1500
|
_c = {};
|
|
1501
|
-
return [4,
|
|
1501
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1502
1502
|
case 1:
|
|
1503
1503
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1504
1504
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1570,7 +1570,7 @@ var deserializeAws_restJson1DeletePricingPlanCommandError = function (output, co
|
|
|
1570
1570
|
case 0:
|
|
1571
1571
|
_a = [__assign({}, output)];
|
|
1572
1572
|
_c = {};
|
|
1573
|
-
return [4,
|
|
1573
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1574
1574
|
case 1:
|
|
1575
1575
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1576
1576
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1642,7 +1642,7 @@ var deserializeAws_restJson1DeletePricingRuleCommandError = function (output, co
|
|
|
1642
1642
|
case 0:
|
|
1643
1643
|
_a = [__assign({}, output)];
|
|
1644
1644
|
_c = {};
|
|
1645
|
-
return [4,
|
|
1645
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1646
1646
|
case 1:
|
|
1647
1647
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1648
1648
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1714,7 +1714,7 @@ var deserializeAws_restJson1DisassociateAccountsCommandError = function (output,
|
|
|
1714
1714
|
case 0:
|
|
1715
1715
|
_a = [__assign({}, output)];
|
|
1716
1716
|
_c = {};
|
|
1717
|
-
return [4,
|
|
1717
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1718
1718
|
case 1:
|
|
1719
1719
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1720
1720
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1790,7 +1790,7 @@ var deserializeAws_restJson1DisassociatePricingRulesCommandError = function (out
|
|
|
1790
1790
|
case 0:
|
|
1791
1791
|
_a = [__assign({}, output)];
|
|
1792
1792
|
_c = {};
|
|
1793
|
-
return [4,
|
|
1793
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1794
1794
|
case 1:
|
|
1795
1795
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1796
1796
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1869,7 +1869,7 @@ var deserializeAws_restJson1ListAccountAssociationsCommandError = function (outp
|
|
|
1869
1869
|
case 0:
|
|
1870
1870
|
_a = [__assign({}, output)];
|
|
1871
1871
|
_c = {};
|
|
1872
|
-
return [4,
|
|
1872
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1873
1873
|
case 1:
|
|
1874
1874
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1875
1875
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1944,7 +1944,7 @@ var deserializeAws_restJson1ListBillingGroupCostReportsCommandError = function (
|
|
|
1944
1944
|
case 0:
|
|
1945
1945
|
_a = [__assign({}, output)];
|
|
1946
1946
|
_c = {};
|
|
1947
|
-
return [4,
|
|
1947
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1948
1948
|
case 1:
|
|
1949
1949
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1950
1950
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2019,7 +2019,7 @@ var deserializeAws_restJson1ListBillingGroupsCommandError = function (output, co
|
|
|
2019
2019
|
case 0:
|
|
2020
2020
|
_a = [__assign({}, output)];
|
|
2021
2021
|
_c = {};
|
|
2022
|
-
return [4,
|
|
2022
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2023
2023
|
case 1:
|
|
2024
2024
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2025
2025
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2094,7 +2094,7 @@ var deserializeAws_restJson1ListCustomLineItemsCommandError = function (output,
|
|
|
2094
2094
|
case 0:
|
|
2095
2095
|
_a = [__assign({}, output)];
|
|
2096
2096
|
_c = {};
|
|
2097
|
-
return [4,
|
|
2097
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2098
2098
|
case 1:
|
|
2099
2099
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2100
2100
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2172,7 +2172,7 @@ var deserializeAws_restJson1ListPricingPlansCommandError = function (output, con
|
|
|
2172
2172
|
case 0:
|
|
2173
2173
|
_a = [__assign({}, output)];
|
|
2174
2174
|
_c = {};
|
|
2175
|
-
return [4,
|
|
2175
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2176
2176
|
case 1:
|
|
2177
2177
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2178
2178
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2249,7 +2249,7 @@ var deserializeAws_restJson1ListPricingPlansAssociatedWithPricingRuleCommandErro
|
|
|
2249
2249
|
case 0:
|
|
2250
2250
|
_a = [__assign({}, output)];
|
|
2251
2251
|
_c = {};
|
|
2252
|
-
return [4,
|
|
2252
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2253
2253
|
case 1:
|
|
2254
2254
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2255
2255
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2327,7 +2327,7 @@ var deserializeAws_restJson1ListPricingRulesCommandError = function (output, con
|
|
|
2327
2327
|
case 0:
|
|
2328
2328
|
_a = [__assign({}, output)];
|
|
2329
2329
|
_c = {};
|
|
2330
|
-
return [4,
|
|
2330
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2331
2331
|
case 1:
|
|
2332
2332
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2333
2333
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2404,7 +2404,7 @@ var deserializeAws_restJson1ListPricingRulesAssociatedToPricingPlanCommandError
|
|
|
2404
2404
|
case 0:
|
|
2405
2405
|
_a = [__assign({}, output)];
|
|
2406
2406
|
_c = {};
|
|
2407
|
-
return [4,
|
|
2407
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2408
2408
|
case 1:
|
|
2409
2409
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2410
2410
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2482,7 +2482,7 @@ var deserializeAws_restJson1ListResourcesAssociatedToCustomLineItemCommandError
|
|
|
2482
2482
|
case 0:
|
|
2483
2483
|
_a = [__assign({}, output)];
|
|
2484
2484
|
_c = {};
|
|
2485
|
-
return [4,
|
|
2485
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2486
2486
|
case 1:
|
|
2487
2487
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2488
2488
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2554,7 +2554,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2554
2554
|
case 0:
|
|
2555
2555
|
_a = [__assign({}, output)];
|
|
2556
2556
|
_c = {};
|
|
2557
|
-
return [4,
|
|
2557
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2558
2558
|
case 1:
|
|
2559
2559
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2560
2560
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2621,7 +2621,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2621
2621
|
case 0:
|
|
2622
2622
|
_a = [__assign({}, output)];
|
|
2623
2623
|
_c = {};
|
|
2624
|
-
return [4,
|
|
2624
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2625
2625
|
case 1:
|
|
2626
2626
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2627
2627
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2688,7 +2688,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2688
2688
|
case 0:
|
|
2689
2689
|
_a = [__assign({}, output)];
|
|
2690
2690
|
_c = {};
|
|
2691
|
-
return [4,
|
|
2691
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2692
2692
|
case 1:
|
|
2693
2693
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2694
2694
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2784,7 +2784,7 @@ var deserializeAws_restJson1UpdateBillingGroupCommandError = function (output, c
|
|
|
2784
2784
|
case 0:
|
|
2785
2785
|
_a = [__assign({}, output)];
|
|
2786
2786
|
_c = {};
|
|
2787
|
-
return [4,
|
|
2787
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2788
2788
|
case 1:
|
|
2789
2789
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2790
2790
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2878,7 +2878,7 @@ var deserializeAws_restJson1UpdateCustomLineItemCommandError = function (output,
|
|
|
2878
2878
|
case 0:
|
|
2879
2879
|
_a = [__assign({}, output)];
|
|
2880
2880
|
_c = {};
|
|
2881
|
-
return [4,
|
|
2881
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2882
2882
|
case 1:
|
|
2883
2883
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2884
2884
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2962,7 +2962,7 @@ var deserializeAws_restJson1UpdatePricingPlanCommandError = function (output, co
|
|
|
2962
2962
|
case 0:
|
|
2963
2963
|
_a = [__assign({}, output)];
|
|
2964
2964
|
_c = {};
|
|
2965
|
-
return [4,
|
|
2965
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2966
2966
|
case 1:
|
|
2967
2967
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2968
2968
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3062,7 +3062,7 @@ var deserializeAws_restJson1UpdatePricingRuleCommandError = function (output, co
|
|
|
3062
3062
|
case 0:
|
|
3063
3063
|
_a = [__assign({}, output)];
|
|
3064
3064
|
_c = {};
|
|
3065
|
-
return [4,
|
|
3065
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3066
3066
|
case 1:
|
|
3067
3067
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3068
3068
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3689,6 +3689,19 @@ var parseBody = function (streamBody, context) {
|
|
|
3689
3689
|
return {};
|
|
3690
3690
|
});
|
|
3691
3691
|
};
|
|
3692
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3693
|
+
var value;
|
|
3694
|
+
var _a;
|
|
3695
|
+
return __generator(this, function (_b) {
|
|
3696
|
+
switch (_b.label) {
|
|
3697
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
3698
|
+
case 1:
|
|
3699
|
+
value = _b.sent();
|
|
3700
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3701
|
+
return [2, value];
|
|
3702
|
+
}
|
|
3703
|
+
});
|
|
3704
|
+
}); };
|
|
3692
3705
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3693
3706
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3694
3707
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-billingconductor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Billingconductor Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|