@aws-sdk/client-cost-explorer 3.535.0 → 3.542.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.
Files changed (34) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/endpoint/endpointResolver.js +4 -2
  3. package/dist-cjs/index.js +123 -3
  4. package/dist-es/CostExplorer.js +4 -0
  5. package/dist-es/commands/ListCostAllocationTagBackfillHistoryCommand.js +24 -0
  6. package/dist-es/commands/StartCostAllocationTagBackfillCommand.js +24 -0
  7. package/dist-es/commands/index.js +2 -0
  8. package/dist-es/endpoint/endpointResolver.js +3 -1
  9. package/dist-es/index.js +0 -1
  10. package/dist-es/models/models_0.js +18 -0
  11. package/dist-es/pagination/ListCostAllocationTagBackfillHistoryPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/protocols/Aws_json1_1.js +51 -1
  14. package/dist-types/CostExplorer.d.ts +15 -0
  15. package/dist-types/CostExplorerClient.d.ts +4 -2
  16. package/dist-types/commands/ListCostAllocationTagBackfillHistoryCommand.d.ts +77 -0
  17. package/dist-types/commands/StartCostAllocationTagBackfillCommand.d.ts +76 -0
  18. package/dist-types/commands/index.d.ts +2 -0
  19. package/dist-types/index.d.ts +0 -1
  20. package/dist-types/models/models_0.d.ts +131 -0
  21. package/dist-types/pagination/ListCostAllocationTagBackfillHistoryPaginator.d.ts +7 -0
  22. package/dist-types/pagination/index.d.ts +1 -0
  23. package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
  24. package/dist-types/ts3.4/CostExplorer.d.ts +41 -0
  25. package/dist-types/ts3.4/CostExplorerClient.d.ts +12 -0
  26. package/dist-types/ts3.4/commands/ListCostAllocationTagBackfillHistoryCommand.d.ts +39 -0
  27. package/dist-types/ts3.4/commands/StartCostAllocationTagBackfillCommand.d.ts +39 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  29. package/dist-types/ts3.4/index.d.ts +0 -1
  30. package/dist-types/ts3.4/models/models_0.d.ts +36 -0
  31. package/dist-types/ts3.4/pagination/ListCostAllocationTagBackfillHistoryPaginator.d.ts +11 -0
  32. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  33. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  34. package/package.json +5 -5
package/README.md CHANGED
@@ -433,6 +433,14 @@ GetUsageForecast
433
433
 
434
434
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-explorer/command/GetUsageForecastCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/GetUsageForecastCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/GetUsageForecastCommandOutput/)
435
435
 
436
+ </details>
437
+ <details>
438
+ <summary>
439
+ ListCostAllocationTagBackfillHistory
440
+ </summary>
441
+
442
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-explorer/command/ListCostAllocationTagBackfillHistoryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/ListCostAllocationTagBackfillHistoryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/ListCostAllocationTagBackfillHistoryCommandOutput/)
443
+
436
444
  </details>
437
445
  <details>
438
446
  <summary>
@@ -473,6 +481,14 @@ ProvideAnomalyFeedback
473
481
 
474
482
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-explorer/command/ProvideAnomalyFeedbackCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/ProvideAnomalyFeedbackCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/ProvideAnomalyFeedbackCommandOutput/)
475
483
 
484
+ </details>
485
+ <details>
486
+ <summary>
487
+ StartCostAllocationTagBackfill
488
+ </summary>
489
+
490
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-explorer/command/StartCostAllocationTagBackfillCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/StartCostAllocationTagBackfillCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/StartCostAllocationTagBackfillCommandOutput/)
491
+
476
492
  </details>
477
493
  <details>
478
494
  <summary>
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -25,8 +25,10 @@ __export(src_exports, {
25
25
  AnomalyFeedbackType: () => AnomalyFeedbackType,
26
26
  AnomalySubscriptionFrequency: () => AnomalySubscriptionFrequency,
27
27
  ApproximationDimension: () => ApproximationDimension,
28
+ BackfillLimitExceededException: () => BackfillLimitExceededException,
28
29
  BillExpirationException: () => BillExpirationException,
29
30
  Context: () => Context,
31
+ CostAllocationTagBackfillStatus: () => CostAllocationTagBackfillStatus,
30
32
  CostAllocationTagStatus: () => CostAllocationTagStatus,
31
33
  CostAllocationTagType: () => CostAllocationTagType,
32
34
  CostCategoryInheritedValueDimensionName: () => CostCategoryInheritedValueDimensionName,
@@ -75,6 +77,7 @@ __export(src_exports, {
75
77
  GroupDefinitionType: () => GroupDefinitionType,
76
78
  InvalidNextTokenException: () => InvalidNextTokenException,
77
79
  LimitExceededException: () => LimitExceededException,
80
+ ListCostAllocationTagBackfillHistoryCommand: () => ListCostAllocationTagBackfillHistoryCommand,
78
81
  ListCostAllocationTagsCommand: () => ListCostAllocationTagsCommand,
79
82
  ListCostCategoryDefinitionsCommand: () => ListCostCategoryDefinitionsCommand,
80
83
  ListSavingsPlansPurchaseRecommendationGenerationCommand: () => ListSavingsPlansPurchaseRecommendationGenerationCommand,
@@ -96,6 +99,7 @@ __export(src_exports, {
96
99
  SavingsPlansDataType: () => SavingsPlansDataType,
97
100
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
98
101
  SortOrder: () => SortOrder,
102
+ StartCostAllocationTagBackfillCommand: () => StartCostAllocationTagBackfillCommand,
99
103
  StartSavingsPlansPurchaseRecommendationGenerationCommand: () => StartSavingsPlansPurchaseRecommendationGenerationCommand,
100
104
  SubscriberStatus: () => SubscriberStatus,
101
105
  SubscriberType: () => SubscriberType,
@@ -114,6 +118,7 @@ __export(src_exports, {
114
118
  __Client: () => import_smithy_client.Client,
115
119
  paginateGetSavingsPlansCoverage: () => paginateGetSavingsPlansCoverage,
116
120
  paginateGetSavingsPlansUtilizationDetails: () => paginateGetSavingsPlansUtilizationDetails,
121
+ paginateListCostAllocationTagBackfillHistory: () => paginateListCostAllocationTagBackfillHistory,
117
122
  paginateListCostAllocationTags: () => paginateListCostAllocationTags,
118
123
  paginateListCostCategoryDefinitions: () => paginateListCostCategoryDefinitions
119
124
  });
@@ -678,6 +683,11 @@ var _UnresolvableUsageUnitException = class _UnresolvableUsageUnitException exte
678
683
  };
679
684
  __name(_UnresolvableUsageUnitException, "UnresolvableUsageUnitException");
680
685
  var UnresolvableUsageUnitException = _UnresolvableUsageUnitException;
686
+ var CostAllocationTagBackfillStatus = {
687
+ FAILED: "FAILED",
688
+ PROCESSING: "PROCESSING",
689
+ SUCCEEDED: "SUCCEEDED"
690
+ };
681
691
  var CostAllocationTagStatus = {
682
692
  ACTIVE: "Active",
683
693
  INACTIVE: "Inactive"
@@ -691,6 +701,24 @@ var GenerationStatus = {
691
701
  PROCESSING: "PROCESSING",
692
702
  SUCCEEDED: "SUCCEEDED"
693
703
  };
704
+ var _BackfillLimitExceededException = class _BackfillLimitExceededException extends CostExplorerServiceException {
705
+ /**
706
+ * @internal
707
+ */
708
+ constructor(opts) {
709
+ super({
710
+ name: "BackfillLimitExceededException",
711
+ $fault: "client",
712
+ ...opts
713
+ });
714
+ this.name = "BackfillLimitExceededException";
715
+ this.$fault = "client";
716
+ Object.setPrototypeOf(this, _BackfillLimitExceededException.prototype);
717
+ this.Message = opts.Message;
718
+ }
719
+ };
720
+ __name(_BackfillLimitExceededException, "BackfillLimitExceededException");
721
+ var BackfillLimitExceededException = _BackfillLimitExceededException;
694
722
  var _GenerationExistsException = class _GenerationExistsException extends CostExplorerServiceException {
695
723
  /**
696
724
  * @internal
@@ -892,6 +920,12 @@ var se_GetUsageForecastCommand = /* @__PURE__ */ __name(async (input, context) =
892
920
  body = JSON.stringify(se_GetUsageForecastRequest(input, context));
893
921
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
894
922
  }, "se_GetUsageForecastCommand");
923
+ var se_ListCostAllocationTagBackfillHistoryCommand = /* @__PURE__ */ __name(async (input, context) => {
924
+ const headers = sharedHeaders("ListCostAllocationTagBackfillHistory");
925
+ let body;
926
+ body = JSON.stringify((0, import_smithy_client._json)(input));
927
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
928
+ }, "se_ListCostAllocationTagBackfillHistoryCommand");
895
929
  var se_ListCostAllocationTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
896
930
  const headers = sharedHeaders("ListCostAllocationTags");
897
931
  let body;
@@ -922,6 +956,12 @@ var se_ProvideAnomalyFeedbackCommand = /* @__PURE__ */ __name(async (input, cont
922
956
  body = JSON.stringify((0, import_smithy_client._json)(input));
923
957
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
924
958
  }, "se_ProvideAnomalyFeedbackCommand");
959
+ var se_StartCostAllocationTagBackfillCommand = /* @__PURE__ */ __name(async (input, context) => {
960
+ const headers = sharedHeaders("StartCostAllocationTagBackfill");
961
+ let body;
962
+ body = JSON.stringify((0, import_smithy_client._json)(input));
963
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
964
+ }, "se_StartCostAllocationTagBackfillCommand");
925
965
  var se_StartSavingsPlansPurchaseRecommendationGenerationCommand = /* @__PURE__ */ __name(async (input, context) => {
926
966
  const headers = sharedHeaders("StartSavingsPlansPurchaseRecommendationGeneration");
927
967
  let body;
@@ -1315,6 +1355,19 @@ var de_GetUsageForecastCommand = /* @__PURE__ */ __name(async (output, context)
1315
1355
  };
1316
1356
  return response;
1317
1357
  }, "de_GetUsageForecastCommand");
1358
+ var de_ListCostAllocationTagBackfillHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1359
+ if (output.statusCode >= 300) {
1360
+ return de_CommandError(output, context);
1361
+ }
1362
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1363
+ let contents = {};
1364
+ contents = (0, import_smithy_client._json)(data);
1365
+ const response = {
1366
+ $metadata: deserializeMetadata(output),
1367
+ ...contents
1368
+ };
1369
+ return response;
1370
+ }, "de_ListCostAllocationTagBackfillHistoryCommand");
1318
1371
  var de_ListCostAllocationTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
1319
1372
  if (output.statusCode >= 300) {
1320
1373
  return de_CommandError(output, context);
@@ -1380,6 +1433,19 @@ var de_ProvideAnomalyFeedbackCommand = /* @__PURE__ */ __name(async (output, con
1380
1433
  };
1381
1434
  return response;
1382
1435
  }, "de_ProvideAnomalyFeedbackCommand");
1436
+ var de_StartCostAllocationTagBackfillCommand = /* @__PURE__ */ __name(async (output, context) => {
1437
+ if (output.statusCode >= 300) {
1438
+ return de_CommandError(output, context);
1439
+ }
1440
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1441
+ let contents = {};
1442
+ contents = (0, import_smithy_client._json)(data);
1443
+ const response = {
1444
+ $metadata: deserializeMetadata(output),
1445
+ ...contents
1446
+ };
1447
+ return response;
1448
+ }, "de_StartCostAllocationTagBackfillCommand");
1383
1449
  var de_StartSavingsPlansPurchaseRecommendationGenerationCommand = /* @__PURE__ */ __name(async (output, context) => {
1384
1450
  if (output.statusCode >= 300) {
1385
1451
  return de_CommandError(output, context);
@@ -1508,6 +1574,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1508
1574
  case "UnresolvableUsageUnitException":
1509
1575
  case "com.amazonaws.costexplorer#UnresolvableUsageUnitException":
1510
1576
  throw await de_UnresolvableUsageUnitExceptionRes(parsedOutput, context);
1577
+ case "BackfillLimitExceededException":
1578
+ case "com.amazonaws.costexplorer#BackfillLimitExceededException":
1579
+ throw await de_BackfillLimitExceededExceptionRes(parsedOutput, context);
1511
1580
  case "GenerationExistsException":
1512
1581
  case "com.amazonaws.costexplorer#GenerationExistsException":
1513
1582
  throw await de_GenerationExistsExceptionRes(parsedOutput, context);
@@ -1523,6 +1592,15 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1523
1592
  });
1524
1593
  }
1525
1594
  }, "de_CommandError");
1595
+ var de_BackfillLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1596
+ const body = parsedOutput.body;
1597
+ const deserialized = (0, import_smithy_client._json)(body);
1598
+ const exception = new BackfillLimitExceededException({
1599
+ $metadata: deserializeMetadata(parsedOutput),
1600
+ ...deserialized
1601
+ });
1602
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1603
+ }, "de_BackfillLimitExceededExceptionRes");
1526
1604
  var de_BillExpirationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1527
1605
  const body = parsedOutput.body;
1528
1606
  const deserialized = (0, import_smithy_client._json)(body);
@@ -2530,6 +2608,23 @@ var _GetUsageForecastCommand = class _GetUsageForecastCommand extends import_smi
2530
2608
  __name(_GetUsageForecastCommand, "GetUsageForecastCommand");
2531
2609
  var GetUsageForecastCommand = _GetUsageForecastCommand;
2532
2610
 
2611
+ // src/commands/ListCostAllocationTagBackfillHistoryCommand.ts
2612
+
2613
+
2614
+
2615
+
2616
+ var _ListCostAllocationTagBackfillHistoryCommand = class _ListCostAllocationTagBackfillHistoryCommand extends import_smithy_client.Command.classBuilder().ep({
2617
+ ...commonParams
2618
+ }).m(function(Command, cs, config, o) {
2619
+ return [
2620
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2621
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2622
+ ];
2623
+ }).s("AWSInsightsIndexService", "ListCostAllocationTagBackfillHistory", {}).n("CostExplorerClient", "ListCostAllocationTagBackfillHistoryCommand").f(void 0, void 0).ser(se_ListCostAllocationTagBackfillHistoryCommand).de(de_ListCostAllocationTagBackfillHistoryCommand).build() {
2624
+ };
2625
+ __name(_ListCostAllocationTagBackfillHistoryCommand, "ListCostAllocationTagBackfillHistoryCommand");
2626
+ var ListCostAllocationTagBackfillHistoryCommand = _ListCostAllocationTagBackfillHistoryCommand;
2627
+
2533
2628
  // src/commands/ListCostAllocationTagsCommand.ts
2534
2629
 
2535
2630
 
@@ -2615,6 +2710,23 @@ var _ProvideAnomalyFeedbackCommand = class _ProvideAnomalyFeedbackCommand extend
2615
2710
  __name(_ProvideAnomalyFeedbackCommand, "ProvideAnomalyFeedbackCommand");
2616
2711
  var ProvideAnomalyFeedbackCommand = _ProvideAnomalyFeedbackCommand;
2617
2712
 
2713
+ // src/commands/StartCostAllocationTagBackfillCommand.ts
2714
+
2715
+
2716
+
2717
+
2718
+ var _StartCostAllocationTagBackfillCommand = class _StartCostAllocationTagBackfillCommand extends import_smithy_client.Command.classBuilder().ep({
2719
+ ...commonParams
2720
+ }).m(function(Command, cs, config, o) {
2721
+ return [
2722
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2723
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2724
+ ];
2725
+ }).s("AWSInsightsIndexService", "StartCostAllocationTagBackfill", {}).n("CostExplorerClient", "StartCostAllocationTagBackfillCommand").f(void 0, void 0).ser(se_StartCostAllocationTagBackfillCommand).de(de_StartCostAllocationTagBackfillCommand).build() {
2726
+ };
2727
+ __name(_StartCostAllocationTagBackfillCommand, "StartCostAllocationTagBackfillCommand");
2728
+ var StartCostAllocationTagBackfillCommand = _StartCostAllocationTagBackfillCommand;
2729
+
2618
2730
  // src/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.ts
2619
2731
 
2620
2732
 
@@ -2763,11 +2875,13 @@ var commands = {
2763
2875
  GetSavingsPlansUtilizationDetailsCommand,
2764
2876
  GetTagsCommand,
2765
2877
  GetUsageForecastCommand,
2878
+ ListCostAllocationTagBackfillHistoryCommand,
2766
2879
  ListCostAllocationTagsCommand,
2767
2880
  ListCostCategoryDefinitionsCommand,
2768
2881
  ListSavingsPlansPurchaseRecommendationGenerationCommand,
2769
2882
  ListTagsForResourceCommand,
2770
2883
  ProvideAnomalyFeedbackCommand,
2884
+ StartCostAllocationTagBackfillCommand,
2771
2885
  StartSavingsPlansPurchaseRecommendationGenerationCommand,
2772
2886
  TagResourceCommand,
2773
2887
  UntagResourceCommand,
@@ -2790,6 +2904,10 @@ var paginateGetSavingsPlansCoverage = (0, import_core.createPaginator)(CostExplo
2790
2904
 
2791
2905
  var paginateGetSavingsPlansUtilizationDetails = (0, import_core.createPaginator)(CostExplorerClient, GetSavingsPlansUtilizationDetailsCommand, "NextToken", "NextToken", "MaxResults");
2792
2906
 
2907
+ // src/pagination/ListCostAllocationTagBackfillHistoryPaginator.ts
2908
+
2909
+ var paginateListCostAllocationTagBackfillHistory = (0, import_core.createPaginator)(CostExplorerClient, ListCostAllocationTagBackfillHistoryCommand, "NextToken", "NextToken", "MaxResults");
2910
+
2793
2911
  // src/pagination/ListCostAllocationTagsPaginator.ts
2794
2912
 
2795
2913
  var paginateListCostAllocationTags = (0, import_core.createPaginator)(CostExplorerClient, ListCostAllocationTagsCommand, "NextToken", "NextToken", "MaxResults");
@@ -2797,9 +2915,6 @@ var paginateListCostAllocationTags = (0, import_core.createPaginator)(CostExplor
2797
2915
  // src/pagination/ListCostCategoryDefinitionsPaginator.ts
2798
2916
 
2799
2917
  var paginateListCostCategoryDefinitions = (0, import_core.createPaginator)(CostExplorerClient, ListCostCategoryDefinitionsCommand, "NextToken", "NextToken", "MaxResults");
2800
-
2801
- // src/index.ts
2802
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
2803
2918
  // Annotate the CommonJS export names for ESM import in node:
2804
2919
 
2805
2920
  0 && (module.exports = {
@@ -2835,11 +2950,13 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2835
2950
  GetSavingsPlansUtilizationDetailsCommand,
2836
2951
  GetTagsCommand,
2837
2952
  GetUsageForecastCommand,
2953
+ ListCostAllocationTagBackfillHistoryCommand,
2838
2954
  ListCostAllocationTagsCommand,
2839
2955
  ListCostCategoryDefinitionsCommand,
2840
2956
  ListSavingsPlansPurchaseRecommendationGenerationCommand,
2841
2957
  ListTagsForResourceCommand,
2842
2958
  ProvideAnomalyFeedbackCommand,
2959
+ StartCostAllocationTagBackfillCommand,
2843
2960
  StartSavingsPlansPurchaseRecommendationGenerationCommand,
2844
2961
  TagResourceCommand,
2845
2962
  UntagResourceCommand,
@@ -2849,6 +2966,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2849
2966
  UpdateCostCategoryDefinitionCommand,
2850
2967
  paginateGetSavingsPlansCoverage,
2851
2968
  paginateGetSavingsPlansUtilizationDetails,
2969
+ paginateListCostAllocationTagBackfillHistory,
2852
2970
  paginateListCostAllocationTags,
2853
2971
  paginateListCostCategoryDefinitions,
2854
2972
  AccountScope,
@@ -2894,9 +3012,11 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2894
3012
  SupportedSavingsPlansType,
2895
3013
  SavingsPlansDataType,
2896
3014
  UnresolvableUsageUnitException,
3015
+ CostAllocationTagBackfillStatus,
2897
3016
  CostAllocationTagStatus,
2898
3017
  CostAllocationTagType,
2899
3018
  GenerationStatus,
3019
+ BackfillLimitExceededException,
2900
3020
  GenerationExistsException,
2901
3021
  TooManyTagsException
2902
3022
  });
@@ -26,11 +26,13 @@ import { GetSavingsPlansUtilizationCommand, } from "./commands/GetSavingsPlansUt
26
26
  import { GetSavingsPlansUtilizationDetailsCommand, } from "./commands/GetSavingsPlansUtilizationDetailsCommand";
27
27
  import { GetTagsCommand } from "./commands/GetTagsCommand";
28
28
  import { GetUsageForecastCommand, } from "./commands/GetUsageForecastCommand";
29
+ import { ListCostAllocationTagBackfillHistoryCommand, } from "./commands/ListCostAllocationTagBackfillHistoryCommand";
29
30
  import { ListCostAllocationTagsCommand, } from "./commands/ListCostAllocationTagsCommand";
30
31
  import { ListCostCategoryDefinitionsCommand, } from "./commands/ListCostCategoryDefinitionsCommand";
31
32
  import { ListSavingsPlansPurchaseRecommendationGenerationCommand, } from "./commands/ListSavingsPlansPurchaseRecommendationGenerationCommand";
32
33
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
33
34
  import { ProvideAnomalyFeedbackCommand, } from "./commands/ProvideAnomalyFeedbackCommand";
35
+ import { StartCostAllocationTagBackfillCommand, } from "./commands/StartCostAllocationTagBackfillCommand";
34
36
  import { StartSavingsPlansPurchaseRecommendationGenerationCommand, } from "./commands/StartSavingsPlansPurchaseRecommendationGenerationCommand";
35
37
  import { TagResourceCommand } from "./commands/TagResourceCommand";
36
38
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
@@ -67,11 +69,13 @@ const commands = {
67
69
  GetSavingsPlansUtilizationDetailsCommand,
68
70
  GetTagsCommand,
69
71
  GetUsageForecastCommand,
72
+ ListCostAllocationTagBackfillHistoryCommand,
70
73
  ListCostAllocationTagsCommand,
71
74
  ListCostCategoryDefinitionsCommand,
72
75
  ListSavingsPlansPurchaseRecommendationGenerationCommand,
73
76
  ListTagsForResourceCommand,
74
77
  ProvideAnomalyFeedbackCommand,
78
+ StartCostAllocationTagBackfillCommand,
75
79
  StartSavingsPlansPurchaseRecommendationGenerationCommand,
76
80
  TagResourceCommand,
77
81
  UntagResourceCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListCostAllocationTagBackfillHistoryCommand, se_ListCostAllocationTagBackfillHistoryCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListCostAllocationTagBackfillHistoryCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSInsightsIndexService", "ListCostAllocationTagBackfillHistory", {})
19
+ .n("CostExplorerClient", "ListCostAllocationTagBackfillHistoryCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListCostAllocationTagBackfillHistoryCommand)
22
+ .de(de_ListCostAllocationTagBackfillHistoryCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_StartCostAllocationTagBackfillCommand, se_StartCostAllocationTagBackfillCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class StartCostAllocationTagBackfillCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSInsightsIndexService", "StartCostAllocationTagBackfill", {})
19
+ .n("CostExplorerClient", "StartCostAllocationTagBackfillCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartCostAllocationTagBackfillCommand)
22
+ .de(de_StartCostAllocationTagBackfillCommand)
23
+ .build() {
24
+ }
@@ -25,11 +25,13 @@ export * from "./GetSavingsPlansUtilizationCommand";
25
25
  export * from "./GetSavingsPlansUtilizationDetailsCommand";
26
26
  export * from "./GetTagsCommand";
27
27
  export * from "./GetUsageForecastCommand";
28
+ export * from "./ListCostAllocationTagBackfillHistoryCommand";
28
29
  export * from "./ListCostAllocationTagsCommand";
29
30
  export * from "./ListCostCategoryDefinitionsCommand";
30
31
  export * from "./ListSavingsPlansPurchaseRecommendationGenerationCommand";
31
32
  export * from "./ListTagsForResourceCommand";
32
33
  export * from "./ProvideAnomalyFeedbackCommand";
34
+ export * from "./StartCostAllocationTagBackfillCommand";
33
35
  export * from "./StartSavingsPlansPurchaseRecommendationGenerationCommand";
34
36
  export * from "./TagResourceCommand";
35
37
  export * from "./UntagResourceCommand";
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -3,5 +3,4 @@ export * from "./CostExplorer";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./models";
6
- import "@aws-sdk/util-endpoints";
7
6
  export { CostExplorerServiceException } from "./models/CostExplorerServiceException";
@@ -336,6 +336,11 @@ export class UnresolvableUsageUnitException extends __BaseException {
336
336
  this.Message = opts.Message;
337
337
  }
338
338
  }
339
+ export const CostAllocationTagBackfillStatus = {
340
+ FAILED: "FAILED",
341
+ PROCESSING: "PROCESSING",
342
+ SUCCEEDED: "SUCCEEDED",
343
+ };
339
344
  export const CostAllocationTagStatus = {
340
345
  ACTIVE: "Active",
341
346
  INACTIVE: "Inactive",
@@ -349,6 +354,19 @@ export const GenerationStatus = {
349
354
  PROCESSING: "PROCESSING",
350
355
  SUCCEEDED: "SUCCEEDED",
351
356
  };
357
+ export class BackfillLimitExceededException extends __BaseException {
358
+ constructor(opts) {
359
+ super({
360
+ name: "BackfillLimitExceededException",
361
+ $fault: "client",
362
+ ...opts,
363
+ });
364
+ this.name = "BackfillLimitExceededException";
365
+ this.$fault = "client";
366
+ Object.setPrototypeOf(this, BackfillLimitExceededException.prototype);
367
+ this.Message = opts.Message;
368
+ }
369
+ }
352
370
  export class GenerationExistsException extends __BaseException {
353
371
  constructor(opts) {
354
372
  super({
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListCostAllocationTagBackfillHistoryCommand, } from "../commands/ListCostAllocationTagBackfillHistoryCommand";
3
+ import { CostExplorerClient } from "../CostExplorerClient";
4
+ export const paginateListCostAllocationTagBackfillHistory = createPaginator(CostExplorerClient, ListCostAllocationTagBackfillHistoryCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,5 +1,6 @@
1
1
  export * from "./GetSavingsPlansCoveragePaginator";
2
2
  export * from "./GetSavingsPlansUtilizationDetailsPaginator";
3
3
  export * from "./Interfaces";
4
+ export * from "./ListCostAllocationTagBackfillHistoryPaginator";
4
5
  export * from "./ListCostAllocationTagsPaginator";
5
6
  export * from "./ListCostCategoryDefinitionsPaginator";
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { CostExplorerServiceException as __BaseException } from "../models/CostExplorerServiceException";
5
- import { BillExpirationException, DataUnavailableException, GenerationExistsException, InvalidNextTokenException, LimitExceededException, RequestChangedException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyTagsException, UnknownMonitorException, UnknownSubscriptionException, UnresolvableUsageUnitException, } from "../models/models_0";
5
+ import { BackfillLimitExceededException, BillExpirationException, DataUnavailableException, GenerationExistsException, InvalidNextTokenException, LimitExceededException, RequestChangedException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyTagsException, UnknownMonitorException, UnknownSubscriptionException, UnresolvableUsageUnitException, } from "../models/models_0";
6
6
  export const se_CreateAnomalyMonitorCommand = async (input, context) => {
7
7
  const headers = sharedHeaders("CreateAnomalyMonitor");
8
8
  let body;
@@ -165,6 +165,12 @@ export const se_GetUsageForecastCommand = async (input, context) => {
165
165
  body = JSON.stringify(se_GetUsageForecastRequest(input, context));
166
166
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
167
  };
168
+ export const se_ListCostAllocationTagBackfillHistoryCommand = async (input, context) => {
169
+ const headers = sharedHeaders("ListCostAllocationTagBackfillHistory");
170
+ let body;
171
+ body = JSON.stringify(_json(input));
172
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
+ };
168
174
  export const se_ListCostAllocationTagsCommand = async (input, context) => {
169
175
  const headers = sharedHeaders("ListCostAllocationTags");
170
176
  let body;
@@ -195,6 +201,12 @@ export const se_ProvideAnomalyFeedbackCommand = async (input, context) => {
195
201
  body = JSON.stringify(_json(input));
196
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
203
  };
204
+ export const se_StartCostAllocationTagBackfillCommand = async (input, context) => {
205
+ const headers = sharedHeaders("StartCostAllocationTagBackfill");
206
+ let body;
207
+ body = JSON.stringify(_json(input));
208
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
+ };
198
210
  export const se_StartSavingsPlansPurchaseRecommendationGenerationCommand = async (input, context) => {
199
211
  const headers = sharedHeaders("StartSavingsPlansPurchaseRecommendationGeneration");
200
212
  let body;
@@ -588,6 +600,19 @@ export const de_GetUsageForecastCommand = async (output, context) => {
588
600
  };
589
601
  return response;
590
602
  };
603
+ export const de_ListCostAllocationTagBackfillHistoryCommand = async (output, context) => {
604
+ if (output.statusCode >= 300) {
605
+ return de_CommandError(output, context);
606
+ }
607
+ const data = await parseBody(output.body, context);
608
+ let contents = {};
609
+ contents = _json(data);
610
+ const response = {
611
+ $metadata: deserializeMetadata(output),
612
+ ...contents,
613
+ };
614
+ return response;
615
+ };
591
616
  export const de_ListCostAllocationTagsCommand = async (output, context) => {
592
617
  if (output.statusCode >= 300) {
593
618
  return de_CommandError(output, context);
@@ -653,6 +678,19 @@ export const de_ProvideAnomalyFeedbackCommand = async (output, context) => {
653
678
  };
654
679
  return response;
655
680
  };
681
+ export const de_StartCostAllocationTagBackfillCommand = async (output, context) => {
682
+ if (output.statusCode >= 300) {
683
+ return de_CommandError(output, context);
684
+ }
685
+ const data = await parseBody(output.body, context);
686
+ let contents = {};
687
+ contents = _json(data);
688
+ const response = {
689
+ $metadata: deserializeMetadata(output),
690
+ ...contents,
691
+ };
692
+ return response;
693
+ };
656
694
  export const de_StartSavingsPlansPurchaseRecommendationGenerationCommand = async (output, context) => {
657
695
  if (output.statusCode >= 300) {
658
696
  return de_CommandError(output, context);
@@ -781,6 +819,9 @@ const de_CommandError = async (output, context) => {
781
819
  case "UnresolvableUsageUnitException":
782
820
  case "com.amazonaws.costexplorer#UnresolvableUsageUnitException":
783
821
  throw await de_UnresolvableUsageUnitExceptionRes(parsedOutput, context);
822
+ case "BackfillLimitExceededException":
823
+ case "com.amazonaws.costexplorer#BackfillLimitExceededException":
824
+ throw await de_BackfillLimitExceededExceptionRes(parsedOutput, context);
784
825
  case "GenerationExistsException":
785
826
  case "com.amazonaws.costexplorer#GenerationExistsException":
786
827
  throw await de_GenerationExistsExceptionRes(parsedOutput, context);
@@ -796,6 +837,15 @@ const de_CommandError = async (output, context) => {
796
837
  });
797
838
  }
798
839
  };
840
+ const de_BackfillLimitExceededExceptionRes = async (parsedOutput, context) => {
841
+ const body = parsedOutput.body;
842
+ const deserialized = _json(body);
843
+ const exception = new BackfillLimitExceededException({
844
+ $metadata: deserializeMetadata(parsedOutput),
845
+ ...deserialized,
846
+ });
847
+ return __decorateServiceException(exception, body);
848
+ };
799
849
  const de_BillExpirationExceptionRes = async (parsedOutput, context) => {
800
850
  const body = parsedOutput.body;
801
851
  const deserialized = _json(body);
@@ -26,11 +26,13 @@ import { GetSavingsPlansUtilizationCommandInput, GetSavingsPlansUtilizationComma
26
26
  import { GetSavingsPlansUtilizationDetailsCommandInput, GetSavingsPlansUtilizationDetailsCommandOutput } from "./commands/GetSavingsPlansUtilizationDetailsCommand";
27
27
  import { GetTagsCommandInput, GetTagsCommandOutput } from "./commands/GetTagsCommand";
28
28
  import { GetUsageForecastCommandInput, GetUsageForecastCommandOutput } from "./commands/GetUsageForecastCommand";
29
+ import { ListCostAllocationTagBackfillHistoryCommandInput, ListCostAllocationTagBackfillHistoryCommandOutput } from "./commands/ListCostAllocationTagBackfillHistoryCommand";
29
30
  import { ListCostAllocationTagsCommandInput, ListCostAllocationTagsCommandOutput } from "./commands/ListCostAllocationTagsCommand";
30
31
  import { ListCostCategoryDefinitionsCommandInput, ListCostCategoryDefinitionsCommandOutput } from "./commands/ListCostCategoryDefinitionsCommand";
31
32
  import { ListSavingsPlansPurchaseRecommendationGenerationCommandInput, ListSavingsPlansPurchaseRecommendationGenerationCommandOutput } from "./commands/ListSavingsPlansPurchaseRecommendationGenerationCommand";
32
33
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
33
34
  import { ProvideAnomalyFeedbackCommandInput, ProvideAnomalyFeedbackCommandOutput } from "./commands/ProvideAnomalyFeedbackCommand";
35
+ import { StartCostAllocationTagBackfillCommandInput, StartCostAllocationTagBackfillCommandOutput } from "./commands/StartCostAllocationTagBackfillCommand";
34
36
  import { StartSavingsPlansPurchaseRecommendationGenerationCommandInput, StartSavingsPlansPurchaseRecommendationGenerationCommandOutput } from "./commands/StartSavingsPlansPurchaseRecommendationGenerationCommand";
35
37
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
36
38
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -204,6 +206,13 @@ export interface CostExplorer {
204
206
  getUsageForecast(args: GetUsageForecastCommandInput, options?: __HttpHandlerOptions): Promise<GetUsageForecastCommandOutput>;
205
207
  getUsageForecast(args: GetUsageForecastCommandInput, cb: (err: any, data?: GetUsageForecastCommandOutput) => void): void;
206
208
  getUsageForecast(args: GetUsageForecastCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUsageForecastCommandOutput) => void): void;
209
+ /**
210
+ * @see {@link ListCostAllocationTagBackfillHistoryCommand}
211
+ */
212
+ listCostAllocationTagBackfillHistory(): Promise<ListCostAllocationTagBackfillHistoryCommandOutput>;
213
+ listCostAllocationTagBackfillHistory(args: ListCostAllocationTagBackfillHistoryCommandInput, options?: __HttpHandlerOptions): Promise<ListCostAllocationTagBackfillHistoryCommandOutput>;
214
+ listCostAllocationTagBackfillHistory(args: ListCostAllocationTagBackfillHistoryCommandInput, cb: (err: any, data?: ListCostAllocationTagBackfillHistoryCommandOutput) => void): void;
215
+ listCostAllocationTagBackfillHistory(args: ListCostAllocationTagBackfillHistoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCostAllocationTagBackfillHistoryCommandOutput) => void): void;
207
216
  /**
208
217
  * @see {@link ListCostAllocationTagsCommand}
209
218
  */
@@ -237,6 +246,12 @@ export interface CostExplorer {
237
246
  provideAnomalyFeedback(args: ProvideAnomalyFeedbackCommandInput, options?: __HttpHandlerOptions): Promise<ProvideAnomalyFeedbackCommandOutput>;
238
247
  provideAnomalyFeedback(args: ProvideAnomalyFeedbackCommandInput, cb: (err: any, data?: ProvideAnomalyFeedbackCommandOutput) => void): void;
239
248
  provideAnomalyFeedback(args: ProvideAnomalyFeedbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ProvideAnomalyFeedbackCommandOutput) => void): void;
249
+ /**
250
+ * @see {@link StartCostAllocationTagBackfillCommand}
251
+ */
252
+ startCostAllocationTagBackfill(args: StartCostAllocationTagBackfillCommandInput, options?: __HttpHandlerOptions): Promise<StartCostAllocationTagBackfillCommandOutput>;
253
+ startCostAllocationTagBackfill(args: StartCostAllocationTagBackfillCommandInput, cb: (err: any, data?: StartCostAllocationTagBackfillCommandOutput) => void): void;
254
+ startCostAllocationTagBackfill(args: StartCostAllocationTagBackfillCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCostAllocationTagBackfillCommandOutput) => void): void;
240
255
  /**
241
256
  * @see {@link StartSavingsPlansPurchaseRecommendationGenerationCommand}
242
257
  */