@aws-sdk/client-cost-explorer 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +41 -35
- package/dist-es/CostExplorer.js +142 -149
- package/dist-es/CostExplorerClient.js +22 -28
- package/dist-es/commands/CreateAnomalyMonitorCommand.js +21 -28
- package/dist-es/commands/CreateAnomalySubscriptionCommand.js +21 -28
- package/dist-es/commands/CreateCostCategoryDefinitionCommand.js +21 -28
- package/dist-es/commands/DeleteAnomalyMonitorCommand.js +21 -28
- package/dist-es/commands/DeleteAnomalySubscriptionCommand.js +21 -28
- package/dist-es/commands/DeleteCostCategoryDefinitionCommand.js +21 -28
- package/dist-es/commands/DescribeCostCategoryDefinitionCommand.js +21 -28
- package/dist-es/commands/GetAnomaliesCommand.js +21 -28
- package/dist-es/commands/GetAnomalyMonitorsCommand.js +21 -28
- package/dist-es/commands/GetAnomalySubscriptionsCommand.js +21 -28
- package/dist-es/commands/GetCostAndUsageCommand.js +21 -28
- package/dist-es/commands/GetCostAndUsageWithResourcesCommand.js +21 -28
- package/dist-es/commands/GetCostCategoriesCommand.js +21 -28
- package/dist-es/commands/GetCostForecastCommand.js +21 -28
- package/dist-es/commands/GetDimensionValuesCommand.js +21 -28
- package/dist-es/commands/GetReservationCoverageCommand.js +21 -28
- package/dist-es/commands/GetReservationPurchaseRecommendationCommand.js +21 -28
- package/dist-es/commands/GetReservationUtilizationCommand.js +21 -28
- package/dist-es/commands/GetRightsizingRecommendationCommand.js +21 -28
- package/dist-es/commands/GetSavingsPlansCoverageCommand.js +21 -28
- package/dist-es/commands/GetSavingsPlansPurchaseRecommendationCommand.js +21 -28
- package/dist-es/commands/GetSavingsPlansUtilizationCommand.js +21 -28
- package/dist-es/commands/GetSavingsPlansUtilizationDetailsCommand.js +21 -28
- package/dist-es/commands/GetTagsCommand.js +21 -28
- package/dist-es/commands/GetUsageForecastCommand.js +21 -28
- package/dist-es/commands/ListCostAllocationTagsCommand.js +21 -28
- package/dist-es/commands/ListCostCategoryDefinitionsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ProvideAnomalyFeedbackCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAnomalyMonitorCommand.js +21 -28
- package/dist-es/commands/UpdateAnomalySubscriptionCommand.js +21 -28
- package/dist-es/commands/UpdateCostAllocationTagsStatusCommand.js +21 -28
- package/dist-es/commands/UpdateCostCategoryDefinitionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CostExplorerServiceException.js +5 -10
- package/dist-es/models/models_0.js +587 -286
- package/dist-es/pagination/GetSavingsPlansCoveragePaginator.js +25 -68
- package/dist-es/pagination/GetSavingsPlansUtilizationDetailsPaginator.js +25 -68
- package/dist-es/pagination/ListCostAllocationTagsPaginator.js +25 -68
- package/dist-es/pagination/ListCostCategoryDefinitionsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +2582 -3068
- 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-cost-explorer
|
|
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
|
|
|
@@ -373,7 +373,7 @@ exports.deserializeAws_json1_1CreateAnomalyMonitorCommand = deserializeAws_json1
|
|
|
373
373
|
const deserializeAws_json1_1CreateAnomalyMonitorCommandError = async (output, context) => {
|
|
374
374
|
const parsedOutput = {
|
|
375
375
|
...output,
|
|
376
|
-
body: await
|
|
376
|
+
body: await parseErrorBody(output.body, context),
|
|
377
377
|
};
|
|
378
378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
379
379
|
switch (errorCode) {
|
|
@@ -407,7 +407,7 @@ exports.deserializeAws_json1_1CreateAnomalySubscriptionCommand = deserializeAws_
|
|
|
407
407
|
const deserializeAws_json1_1CreateAnomalySubscriptionCommandError = async (output, context) => {
|
|
408
408
|
const parsedOutput = {
|
|
409
409
|
...output,
|
|
410
|
-
body: await
|
|
410
|
+
body: await parseErrorBody(output.body, context),
|
|
411
411
|
};
|
|
412
412
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
413
413
|
switch (errorCode) {
|
|
@@ -444,7 +444,7 @@ exports.deserializeAws_json1_1CreateCostCategoryDefinitionCommand = deserializeA
|
|
|
444
444
|
const deserializeAws_json1_1CreateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
445
445
|
const parsedOutput = {
|
|
446
446
|
...output,
|
|
447
|
-
body: await
|
|
447
|
+
body: await parseErrorBody(output.body, context),
|
|
448
448
|
};
|
|
449
449
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
450
450
|
switch (errorCode) {
|
|
@@ -481,7 +481,7 @@ exports.deserializeAws_json1_1DeleteAnomalyMonitorCommand = deserializeAws_json1
|
|
|
481
481
|
const deserializeAws_json1_1DeleteAnomalyMonitorCommandError = async (output, context) => {
|
|
482
482
|
const parsedOutput = {
|
|
483
483
|
...output,
|
|
484
|
-
body: await
|
|
484
|
+
body: await parseErrorBody(output.body, context),
|
|
485
485
|
};
|
|
486
486
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
487
487
|
switch (errorCode) {
|
|
@@ -518,7 +518,7 @@ exports.deserializeAws_json1_1DeleteAnomalySubscriptionCommand = deserializeAws_
|
|
|
518
518
|
const deserializeAws_json1_1DeleteAnomalySubscriptionCommandError = async (output, context) => {
|
|
519
519
|
const parsedOutput = {
|
|
520
520
|
...output,
|
|
521
|
-
body: await
|
|
521
|
+
body: await parseErrorBody(output.body, context),
|
|
522
522
|
};
|
|
523
523
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
524
524
|
switch (errorCode) {
|
|
@@ -555,7 +555,7 @@ exports.deserializeAws_json1_1DeleteCostCategoryDefinitionCommand = deserializeA
|
|
|
555
555
|
const deserializeAws_json1_1DeleteCostCategoryDefinitionCommandError = async (output, context) => {
|
|
556
556
|
const parsedOutput = {
|
|
557
557
|
...output,
|
|
558
|
-
body: await
|
|
558
|
+
body: await parseErrorBody(output.body, context),
|
|
559
559
|
};
|
|
560
560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
561
561
|
switch (errorCode) {
|
|
@@ -592,7 +592,7 @@ exports.deserializeAws_json1_1DescribeCostCategoryDefinitionCommand = deserializ
|
|
|
592
592
|
const deserializeAws_json1_1DescribeCostCategoryDefinitionCommandError = async (output, context) => {
|
|
593
593
|
const parsedOutput = {
|
|
594
594
|
...output,
|
|
595
|
-
body: await
|
|
595
|
+
body: await parseErrorBody(output.body, context),
|
|
596
596
|
};
|
|
597
597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
598
598
|
switch (errorCode) {
|
|
@@ -629,7 +629,7 @@ exports.deserializeAws_json1_1GetAnomaliesCommand = deserializeAws_json1_1GetAno
|
|
|
629
629
|
const deserializeAws_json1_1GetAnomaliesCommandError = async (output, context) => {
|
|
630
630
|
const parsedOutput = {
|
|
631
631
|
...output,
|
|
632
|
-
body: await
|
|
632
|
+
body: await parseErrorBody(output.body, context),
|
|
633
633
|
};
|
|
634
634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
635
|
switch (errorCode) {
|
|
@@ -666,7 +666,7 @@ exports.deserializeAws_json1_1GetAnomalyMonitorsCommand = deserializeAws_json1_1
|
|
|
666
666
|
const deserializeAws_json1_1GetAnomalyMonitorsCommandError = async (output, context) => {
|
|
667
667
|
const parsedOutput = {
|
|
668
668
|
...output,
|
|
669
|
-
body: await
|
|
669
|
+
body: await parseErrorBody(output.body, context),
|
|
670
670
|
};
|
|
671
671
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
672
|
switch (errorCode) {
|
|
@@ -706,7 +706,7 @@ exports.deserializeAws_json1_1GetAnomalySubscriptionsCommand = deserializeAws_js
|
|
|
706
706
|
const deserializeAws_json1_1GetAnomalySubscriptionsCommandError = async (output, context) => {
|
|
707
707
|
const parsedOutput = {
|
|
708
708
|
...output,
|
|
709
|
-
body: await
|
|
709
|
+
body: await parseErrorBody(output.body, context),
|
|
710
710
|
};
|
|
711
711
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
712
712
|
switch (errorCode) {
|
|
@@ -746,7 +746,7 @@ exports.deserializeAws_json1_1GetCostAndUsageCommand = deserializeAws_json1_1Get
|
|
|
746
746
|
const deserializeAws_json1_1GetCostAndUsageCommandError = async (output, context) => {
|
|
747
747
|
const parsedOutput = {
|
|
748
748
|
...output,
|
|
749
|
-
body: await
|
|
749
|
+
body: await parseErrorBody(output.body, context),
|
|
750
750
|
};
|
|
751
751
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
752
|
switch (errorCode) {
|
|
@@ -792,7 +792,7 @@ exports.deserializeAws_json1_1GetCostAndUsageWithResourcesCommand = deserializeA
|
|
|
792
792
|
const deserializeAws_json1_1GetCostAndUsageWithResourcesCommandError = async (output, context) => {
|
|
793
793
|
const parsedOutput = {
|
|
794
794
|
...output,
|
|
795
|
-
body: await
|
|
795
|
+
body: await parseErrorBody(output.body, context),
|
|
796
796
|
};
|
|
797
797
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
798
|
switch (errorCode) {
|
|
@@ -838,7 +838,7 @@ exports.deserializeAws_json1_1GetCostCategoriesCommand = deserializeAws_json1_1G
|
|
|
838
838
|
const deserializeAws_json1_1GetCostCategoriesCommandError = async (output, context) => {
|
|
839
839
|
const parsedOutput = {
|
|
840
840
|
...output,
|
|
841
|
-
body: await
|
|
841
|
+
body: await parseErrorBody(output.body, context),
|
|
842
842
|
};
|
|
843
843
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
844
|
switch (errorCode) {
|
|
@@ -884,7 +884,7 @@ exports.deserializeAws_json1_1GetCostForecastCommand = deserializeAws_json1_1Get
|
|
|
884
884
|
const deserializeAws_json1_1GetCostForecastCommandError = async (output, context) => {
|
|
885
885
|
const parsedOutput = {
|
|
886
886
|
...output,
|
|
887
|
-
body: await
|
|
887
|
+
body: await parseErrorBody(output.body, context),
|
|
888
888
|
};
|
|
889
889
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
890
|
switch (errorCode) {
|
|
@@ -921,7 +921,7 @@ exports.deserializeAws_json1_1GetDimensionValuesCommand = deserializeAws_json1_1
|
|
|
921
921
|
const deserializeAws_json1_1GetDimensionValuesCommandError = async (output, context) => {
|
|
922
922
|
const parsedOutput = {
|
|
923
923
|
...output,
|
|
924
|
-
body: await
|
|
924
|
+
body: await parseErrorBody(output.body, context),
|
|
925
925
|
};
|
|
926
926
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
927
|
switch (errorCode) {
|
|
@@ -967,7 +967,7 @@ exports.deserializeAws_json1_1GetReservationCoverageCommand = deserializeAws_jso
|
|
|
967
967
|
const deserializeAws_json1_1GetReservationCoverageCommandError = async (output, context) => {
|
|
968
968
|
const parsedOutput = {
|
|
969
969
|
...output,
|
|
970
|
-
body: await
|
|
970
|
+
body: await parseErrorBody(output.body, context),
|
|
971
971
|
};
|
|
972
972
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
973
|
switch (errorCode) {
|
|
@@ -1007,7 +1007,7 @@ exports.deserializeAws_json1_1GetReservationPurchaseRecommendationCommand = dese
|
|
|
1007
1007
|
const deserializeAws_json1_1GetReservationPurchaseRecommendationCommandError = async (output, context) => {
|
|
1008
1008
|
const parsedOutput = {
|
|
1009
1009
|
...output,
|
|
1010
|
-
body: await
|
|
1010
|
+
body: await parseErrorBody(output.body, context),
|
|
1011
1011
|
};
|
|
1012
1012
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
1013
|
switch (errorCode) {
|
|
@@ -1047,7 +1047,7 @@ exports.deserializeAws_json1_1GetReservationUtilizationCommand = deserializeAws_
|
|
|
1047
1047
|
const deserializeAws_json1_1GetReservationUtilizationCommandError = async (output, context) => {
|
|
1048
1048
|
const parsedOutput = {
|
|
1049
1049
|
...output,
|
|
1050
|
-
body: await
|
|
1050
|
+
body: await parseErrorBody(output.body, context),
|
|
1051
1051
|
};
|
|
1052
1052
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
1053
|
switch (errorCode) {
|
|
@@ -1087,7 +1087,7 @@ exports.deserializeAws_json1_1GetRightsizingRecommendationCommand = deserializeA
|
|
|
1087
1087
|
const deserializeAws_json1_1GetRightsizingRecommendationCommandError = async (output, context) => {
|
|
1088
1088
|
const parsedOutput = {
|
|
1089
1089
|
...output,
|
|
1090
|
-
body: await
|
|
1090
|
+
body: await parseErrorBody(output.body, context),
|
|
1091
1091
|
};
|
|
1092
1092
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
1093
|
switch (errorCode) {
|
|
@@ -1124,7 +1124,7 @@ exports.deserializeAws_json1_1GetSavingsPlansCoverageCommand = deserializeAws_js
|
|
|
1124
1124
|
const deserializeAws_json1_1GetSavingsPlansCoverageCommandError = async (output, context) => {
|
|
1125
1125
|
const parsedOutput = {
|
|
1126
1126
|
...output,
|
|
1127
|
-
body: await
|
|
1127
|
+
body: await parseErrorBody(output.body, context),
|
|
1128
1128
|
};
|
|
1129
1129
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
1130
|
switch (errorCode) {
|
|
@@ -1164,7 +1164,7 @@ exports.deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = des
|
|
|
1164
1164
|
const deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommandError = 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) {
|
|
@@ -1201,7 +1201,7 @@ exports.deserializeAws_json1_1GetSavingsPlansUtilizationCommand = deserializeAws
|
|
|
1201
1201
|
const deserializeAws_json1_1GetSavingsPlansUtilizationCommandError = async (output, context) => {
|
|
1202
1202
|
const parsedOutput = {
|
|
1203
1203
|
...output,
|
|
1204
|
-
body: await
|
|
1204
|
+
body: await parseErrorBody(output.body, context),
|
|
1205
1205
|
};
|
|
1206
1206
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1207
1207
|
switch (errorCode) {
|
|
@@ -1238,7 +1238,7 @@ exports.deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = deseria
|
|
|
1238
1238
|
const deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommandError = async (output, context) => {
|
|
1239
1239
|
const parsedOutput = {
|
|
1240
1240
|
...output,
|
|
1241
|
-
body: await
|
|
1241
|
+
body: await parseErrorBody(output.body, context),
|
|
1242
1242
|
};
|
|
1243
1243
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
1244
|
switch (errorCode) {
|
|
@@ -1278,7 +1278,7 @@ exports.deserializeAws_json1_1GetTagsCommand = deserializeAws_json1_1GetTagsComm
|
|
|
1278
1278
|
const deserializeAws_json1_1GetTagsCommandError = async (output, context) => {
|
|
1279
1279
|
const parsedOutput = {
|
|
1280
1280
|
...output,
|
|
1281
|
-
body: await
|
|
1281
|
+
body: await parseErrorBody(output.body, context),
|
|
1282
1282
|
};
|
|
1283
1283
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
1284
|
switch (errorCode) {
|
|
@@ -1324,7 +1324,7 @@ exports.deserializeAws_json1_1GetUsageForecastCommand = deserializeAws_json1_1Ge
|
|
|
1324
1324
|
const deserializeAws_json1_1GetUsageForecastCommandError = async (output, context) => {
|
|
1325
1325
|
const parsedOutput = {
|
|
1326
1326
|
...output,
|
|
1327
|
-
body: await
|
|
1327
|
+
body: await parseErrorBody(output.body, context),
|
|
1328
1328
|
};
|
|
1329
1329
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
1330
|
switch (errorCode) {
|
|
@@ -1364,7 +1364,7 @@ exports.deserializeAws_json1_1ListCostAllocationTagsCommand = deserializeAws_jso
|
|
|
1364
1364
|
const deserializeAws_json1_1ListCostAllocationTagsCommandError = async (output, context) => {
|
|
1365
1365
|
const parsedOutput = {
|
|
1366
1366
|
...output,
|
|
1367
|
-
body: await
|
|
1367
|
+
body: await parseErrorBody(output.body, context),
|
|
1368
1368
|
};
|
|
1369
1369
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
1370
|
switch (errorCode) {
|
|
@@ -1401,7 +1401,7 @@ exports.deserializeAws_json1_1ListCostCategoryDefinitionsCommand = deserializeAw
|
|
|
1401
1401
|
const deserializeAws_json1_1ListCostCategoryDefinitionsCommandError = async (output, context) => {
|
|
1402
1402
|
const parsedOutput = {
|
|
1403
1403
|
...output,
|
|
1404
|
-
body: await
|
|
1404
|
+
body: await parseErrorBody(output.body, context),
|
|
1405
1405
|
};
|
|
1406
1406
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1407
1407
|
switch (errorCode) {
|
|
@@ -1435,7 +1435,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1435
1435
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1436
1436
|
const parsedOutput = {
|
|
1437
1437
|
...output,
|
|
1438
|
-
body: await
|
|
1438
|
+
body: await parseErrorBody(output.body, context),
|
|
1439
1439
|
};
|
|
1440
1440
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1441
1441
|
switch (errorCode) {
|
|
@@ -1472,7 +1472,7 @@ exports.deserializeAws_json1_1ProvideAnomalyFeedbackCommand = deserializeAws_jso
|
|
|
1472
1472
|
const deserializeAws_json1_1ProvideAnomalyFeedbackCommandError = async (output, context) => {
|
|
1473
1473
|
const parsedOutput = {
|
|
1474
1474
|
...output,
|
|
1475
|
-
body: await
|
|
1475
|
+
body: await parseErrorBody(output.body, context),
|
|
1476
1476
|
};
|
|
1477
1477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
1478
|
switch (errorCode) {
|
|
@@ -1506,7 +1506,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
1506
1506
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1507
1507
|
const parsedOutput = {
|
|
1508
1508
|
...output,
|
|
1509
|
-
body: await
|
|
1509
|
+
body: await parseErrorBody(output.body, context),
|
|
1510
1510
|
};
|
|
1511
1511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
1512
|
switch (errorCode) {
|
|
@@ -1546,7 +1546,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
1546
1546
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1547
1547
|
const parsedOutput = {
|
|
1548
1548
|
...output,
|
|
1549
|
-
body: await
|
|
1549
|
+
body: await parseErrorBody(output.body, context),
|
|
1550
1550
|
};
|
|
1551
1551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
1552
|
switch (errorCode) {
|
|
@@ -1583,7 +1583,7 @@ exports.deserializeAws_json1_1UpdateAnomalyMonitorCommand = deserializeAws_json1
|
|
|
1583
1583
|
const deserializeAws_json1_1UpdateAnomalyMonitorCommandError = async (output, context) => {
|
|
1584
1584
|
const parsedOutput = {
|
|
1585
1585
|
...output,
|
|
1586
|
-
body: await
|
|
1586
|
+
body: await parseErrorBody(output.body, context),
|
|
1587
1587
|
};
|
|
1588
1588
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
1589
|
switch (errorCode) {
|
|
@@ -1620,7 +1620,7 @@ exports.deserializeAws_json1_1UpdateAnomalySubscriptionCommand = deserializeAws_
|
|
|
1620
1620
|
const deserializeAws_json1_1UpdateAnomalySubscriptionCommandError = async (output, context) => {
|
|
1621
1621
|
const parsedOutput = {
|
|
1622
1622
|
...output,
|
|
1623
|
-
body: await
|
|
1623
|
+
body: await parseErrorBody(output.body, context),
|
|
1624
1624
|
};
|
|
1625
1625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
1626
|
switch (errorCode) {
|
|
@@ -1660,7 +1660,7 @@ exports.deserializeAws_json1_1UpdateCostAllocationTagsStatusCommand = deserializ
|
|
|
1660
1660
|
const deserializeAws_json1_1UpdateCostAllocationTagsStatusCommandError = async (output, context) => {
|
|
1661
1661
|
const parsedOutput = {
|
|
1662
1662
|
...output,
|
|
1663
|
-
body: await
|
|
1663
|
+
body: await parseErrorBody(output.body, context),
|
|
1664
1664
|
};
|
|
1665
1665
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
1666
|
switch (errorCode) {
|
|
@@ -1694,7 +1694,7 @@ exports.deserializeAws_json1_1UpdateCostCategoryDefinitionCommand = deserializeA
|
|
|
1694
1694
|
const deserializeAws_json1_1UpdateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
1695
1695
|
const parsedOutput = {
|
|
1696
1696
|
...output,
|
|
1697
|
-
body: await
|
|
1697
|
+
body: await parseErrorBody(output.body, context),
|
|
1698
1698
|
};
|
|
1699
1699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
1700
|
switch (errorCode) {
|
|
@@ -4044,6 +4044,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4044
4044
|
}
|
|
4045
4045
|
return {};
|
|
4046
4046
|
});
|
|
4047
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4048
|
+
var _a;
|
|
4049
|
+
const value = await parseBody(errorBody, context);
|
|
4050
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4051
|
+
return value;
|
|
4052
|
+
};
|
|
4047
4053
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4048
4054
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4049
4055
|
const sanitizeErrorCode = (rawValue) => {
|