@aws-sdk/client-cost-explorer 3.105.0 → 3.106.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 (45) hide show
  1. package/dist-cjs/CostExplorer.js +30 -0
  2. package/dist-cjs/commands/ListCostAllocationTagsCommand.js +36 -0
  3. package/dist-cjs/commands/UpdateCostAllocationTagsStatusCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +2 -0
  5. package/dist-cjs/models/models_0.js +54 -2
  6. package/dist-cjs/pagination/ListCostAllocationTagsPaginator.js +36 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_json1_1.js +192 -2
  9. package/dist-es/CostExplorer.js +30 -0
  10. package/dist-es/commands/ListCostAllocationTagsCommand.js +39 -0
  11. package/dist-es/commands/UpdateCostAllocationTagsStatusCommand.js +39 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/models/models_0.js +38 -0
  14. package/dist-es/pagination/ListCostAllocationTagsPaginator.js +75 -0
  15. package/dist-es/pagination/index.js +1 -0
  16. package/dist-es/protocols/Aws_json1_1.js +210 -0
  17. package/dist-types/CostExplorer.d.ts +63 -29
  18. package/dist-types/CostExplorerClient.d.ts +4 -2
  19. package/dist-types/commands/DescribeCostCategoryDefinitionCommand.d.ts +6 -2
  20. package/dist-types/commands/GetCostAndUsageWithResourcesCommand.d.ts +3 -1
  21. package/dist-types/commands/GetReservationCoverageCommand.d.ts +6 -3
  22. package/dist-types/commands/GetReservationPurchaseRecommendationCommand.d.ts +16 -10
  23. package/dist-types/commands/GetRightsizingRecommendationCommand.d.ts +2 -6
  24. package/dist-types/commands/GetSavingsPlansUtilizationCommand.d.ts +1 -1
  25. package/dist-types/commands/ListCostAllocationTagsCommand.d.ts +36 -0
  26. package/dist-types/commands/ListCostCategoryDefinitionsCommand.d.ts +7 -1
  27. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  28. package/dist-types/commands/UntagResourceCommand.d.ts +2 -3
  29. package/dist-types/commands/UpdateCostAllocationTagsStatusCommand.d.ts +38 -0
  30. package/dist-types/commands/index.d.ts +2 -0
  31. package/dist-types/models/models_0.d.ts +403 -227
  32. package/dist-types/pagination/ListCostAllocationTagsPaginator.d.ts +4 -0
  33. package/dist-types/pagination/index.d.ts +1 -0
  34. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  35. package/dist-types/ts3.4/CostExplorer.d.ts +10 -0
  36. package/dist-types/ts3.4/CostExplorerClient.d.ts +4 -2
  37. package/dist-types/ts3.4/commands/ListCostAllocationTagsCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/UpdateCostAllocationTagsStatusCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +87 -0
  41. package/dist-types/ts3.4/pagination/ListCostAllocationTagsPaginator.d.ts +4 -0
  42. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  43. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
  44. package/package.json +1 -1
  45. package/CHANGELOG.md +0 -3774
@@ -26,6 +26,7 @@ const GetSavingsPlansUtilizationCommand_1 = require("./commands/GetSavingsPlansU
26
26
  const GetSavingsPlansUtilizationDetailsCommand_1 = require("./commands/GetSavingsPlansUtilizationDetailsCommand");
27
27
  const GetTagsCommand_1 = require("./commands/GetTagsCommand");
28
28
  const GetUsageForecastCommand_1 = require("./commands/GetUsageForecastCommand");
29
+ const ListCostAllocationTagsCommand_1 = require("./commands/ListCostAllocationTagsCommand");
29
30
  const ListCostCategoryDefinitionsCommand_1 = require("./commands/ListCostCategoryDefinitionsCommand");
30
31
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
31
32
  const ProvideAnomalyFeedbackCommand_1 = require("./commands/ProvideAnomalyFeedbackCommand");
@@ -33,6 +34,7 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
33
34
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
34
35
  const UpdateAnomalyMonitorCommand_1 = require("./commands/UpdateAnomalyMonitorCommand");
35
36
  const UpdateAnomalySubscriptionCommand_1 = require("./commands/UpdateAnomalySubscriptionCommand");
37
+ const UpdateCostAllocationTagsStatusCommand_1 = require("./commands/UpdateCostAllocationTagsStatusCommand");
36
38
  const UpdateCostCategoryDefinitionCommand_1 = require("./commands/UpdateCostCategoryDefinitionCommand");
37
39
  const CostExplorerClient_1 = require("./CostExplorerClient");
38
40
  class CostExplorer extends CostExplorerClient_1.CostExplorerClient {
@@ -386,6 +388,20 @@ class CostExplorer extends CostExplorerClient_1.CostExplorerClient {
386
388
  return this.send(command, optionsOrCb);
387
389
  }
388
390
  }
391
+ listCostAllocationTags(args, optionsOrCb, cb) {
392
+ const command = new ListCostAllocationTagsCommand_1.ListCostAllocationTagsCommand(args);
393
+ if (typeof optionsOrCb === "function") {
394
+ this.send(command, optionsOrCb);
395
+ }
396
+ else if (typeof cb === "function") {
397
+ if (typeof optionsOrCb !== "object")
398
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
399
+ this.send(command, optionsOrCb || {}, cb);
400
+ }
401
+ else {
402
+ return this.send(command, optionsOrCb);
403
+ }
404
+ }
389
405
  listCostCategoryDefinitions(args, optionsOrCb, cb) {
390
406
  const command = new ListCostCategoryDefinitionsCommand_1.ListCostCategoryDefinitionsCommand(args);
391
407
  if (typeof optionsOrCb === "function") {
@@ -484,6 +500,20 @@ class CostExplorer extends CostExplorerClient_1.CostExplorerClient {
484
500
  return this.send(command, optionsOrCb);
485
501
  }
486
502
  }
503
+ updateCostAllocationTagsStatus(args, optionsOrCb, cb) {
504
+ const command = new UpdateCostAllocationTagsStatusCommand_1.UpdateCostAllocationTagsStatusCommand(args);
505
+ if (typeof optionsOrCb === "function") {
506
+ this.send(command, optionsOrCb);
507
+ }
508
+ else if (typeof cb === "function") {
509
+ if (typeof optionsOrCb !== "object")
510
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
511
+ this.send(command, optionsOrCb || {}, cb);
512
+ }
513
+ else {
514
+ return this.send(command, optionsOrCb);
515
+ }
516
+ }
487
517
  updateCostCategoryDefinition(args, optionsOrCb, cb) {
488
518
  const command = new UpdateCostCategoryDefinitionCommand_1.UpdateCostCategoryDefinitionCommand(args);
489
519
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListCostAllocationTagsCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class ListCostAllocationTagsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CostExplorerClient";
18
+ const commandName = "ListCostAllocationTagsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListCostAllocationTagsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListCostAllocationTagsResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1ListCostAllocationTagsCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1ListCostAllocationTagsCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ListCostAllocationTagsCommand = ListCostAllocationTagsCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateCostAllocationTagsStatusCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class UpdateCostAllocationTagsStatusCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CostExplorerClient";
18
+ const commandName = "UpdateCostAllocationTagsStatusCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.UpdateCostAllocationTagsStatusRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.UpdateCostAllocationTagsStatusResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1UpdateCostAllocationTagsStatusCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateCostAllocationTagsStatusCommand)(output, context);
34
+ }
35
+ }
36
+ exports.UpdateCostAllocationTagsStatusCommand = UpdateCostAllocationTagsStatusCommand;
@@ -26,6 +26,7 @@ tslib_1.__exportStar(require("./GetSavingsPlansUtilizationCommand"), exports);
26
26
  tslib_1.__exportStar(require("./GetSavingsPlansUtilizationDetailsCommand"), exports);
27
27
  tslib_1.__exportStar(require("./GetTagsCommand"), exports);
28
28
  tslib_1.__exportStar(require("./GetUsageForecastCommand"), exports);
29
+ tslib_1.__exportStar(require("./ListCostAllocationTagsCommand"), exports);
29
30
  tslib_1.__exportStar(require("./ListCostCategoryDefinitionsCommand"), exports);
30
31
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
31
32
  tslib_1.__exportStar(require("./ProvideAnomalyFeedbackCommand"), exports);
@@ -33,4 +34,5 @@ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
33
34
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
34
35
  tslib_1.__exportStar(require("./UpdateAnomalyMonitorCommand"), exports);
35
36
  tslib_1.__exportStar(require("./UpdateAnomalySubscriptionCommand"), exports);
37
+ tslib_1.__exportStar(require("./UpdateCostAllocationTagsStatusCommand"), exports);
36
38
  tslib_1.__exportStar(require("./UpdateCostCategoryDefinitionCommand"), exports);
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetAnomaliesRequest = exports.TotalImpactFilter = exports.NumericOperator = exports.CostCategoryProcessingStatus = exports.CostCategoryStatus = exports.CostCategoryStatusComponent = exports.DescribeCostCategoryDefinitionRequest = exports.ResourceNotFoundException = exports.DeleteCostCategoryDefinitionResponse = exports.DeleteCostCategoryDefinitionRequest = exports.UnknownSubscriptionException = exports.DeleteAnomalySubscriptionResponse = exports.DeleteAnomalySubscriptionRequest = exports.DeleteAnomalyMonitorResponse = exports.DeleteAnomalyMonitorRequest = exports.ServiceQuotaExceededException = exports.CreateCostCategoryDefinitionResponse = exports.CostCategorySplitChargeRule = exports.CostCategorySplitChargeRuleParameter = exports.CostCategorySplitChargeRuleParameterType = exports.CostCategorySplitChargeMethod = exports.CostCategoryRuleVersion = exports.CostCategoryRuleType = exports.CostCategoryInheritedValueDimension = exports.CostCategoryInheritedValueDimensionName = exports.UnknownMonitorException = exports.CreateAnomalySubscriptionResponse = exports.CreateAnomalySubscriptionRequest = exports.LimitExceededException = exports.CreateAnomalyMonitorResponse = exports.ResourceTag = exports.AnomalySubscription = exports.Subscriber = exports.SubscriberType = exports.SubscriberStatus = exports.AnomalySubscriptionFrequency = exports.MonitorType = exports.TagValues = exports.DimensionValues = exports.Dimension = exports.CostCategoryValues = exports.MatchOption = exports.MonitorDimension = exports.AnomalyDateInterval = exports.Anomaly = exports.RootCause = exports.Impact = exports.AnomalyFeedbackType = exports.AnomalyScore = exports.AccountScope = void 0;
4
4
  exports.GetReservationPurchaseRecommendationResponse = exports.ReservationPurchaseRecommendation = exports.ReservationPurchaseRecommendationSummary = exports.ReservationPurchaseRecommendationDetail = exports.InstanceDetails = exports.RedshiftInstanceDetails = exports.RDSInstanceDetails = exports.ESInstanceDetails = exports.ElastiCacheInstanceDetails = exports.EC2InstanceDetails = exports.ReservationPurchaseRecommendationMetadata = exports.TermInYears = exports.ServiceSpecification = exports.EC2Specification = exports.OfferingClass = exports.PaymentOption = exports.LookbackPeriodInDays = exports.GetReservationCoverageResponse = exports.CoverageByTime = exports.ReservationCoverageGroup = exports.Coverage = exports.CoverageNormalizedUnits = exports.CoverageHours = exports.CoverageCost = exports.GetDimensionValuesResponse = exports.Context = exports.GetCostForecastResponse = exports.ForecastResult = exports.Metric = exports.GetCostCategoriesResponse = exports.SortDefinition = exports.SortOrder = exports.GetCostAndUsageWithResourcesResponse = exports.RequestChangedException = exports.GetCostAndUsageResponse = exports.ResultByTime = exports.Group = exports.MetricValue = exports.DimensionValuesWithAttributes = exports.DateInterval = exports.GroupDefinition = exports.GroupDefinitionType = exports.Granularity = exports.DataUnavailableException = exports.BillExpirationException = exports.GetAnomalySubscriptionsResponse = exports.GetAnomalySubscriptionsRequest = exports.GetAnomalyMonitorsRequest = exports.InvalidNextTokenException = exports.GetAnomaliesResponse = void 0;
5
- exports.ListTagsForResourceRequest = exports.ListCostCategoryDefinitionsResponse = exports.CostCategoryReference = exports.ListCostCategoryDefinitionsRequest = exports.UnresolvableUsageUnitException = exports.GetUsageForecastResponse = exports.GetTagsResponse = exports.GetSavingsPlansUtilizationDetailsResponse = exports.SavingsPlansUtilizationDetail = exports.SavingsPlansDataType = exports.GetSavingsPlansUtilizationResponse = exports.SavingsPlansUtilizationAggregates = exports.SavingsPlansUtilizationByTime = exports.SavingsPlansUtilization = exports.SavingsPlansSavings = exports.SavingsPlansAmortizedCommitment = exports.GetSavingsPlansPurchaseRecommendationResponse = exports.SavingsPlansPurchaseRecommendation = exports.SavingsPlansPurchaseRecommendationSummary = exports.SavingsPlansPurchaseRecommendationDetail = exports.SavingsPlansDetails = exports.SavingsPlansPurchaseRecommendationMetadata = exports.SupportedSavingsPlansType = exports.GetSavingsPlansCoverageResponse = exports.SavingsPlansCoverage = exports.SavingsPlansCoverageData = exports.GetRightsizingRecommendationResponse = exports.RightsizingRecommendationSummary = exports.RightsizingRecommendation = exports.TerminateRecommendationDetail = exports.RightsizingType = exports.ModifyRecommendationDetail = exports.TargetInstance = exports.PlatformDifference = exports.FindingReasonCode = exports.CurrentInstance = exports.ResourceUtilization = exports.EC2ResourceUtilization = exports.NetworkResourceUtilization = exports.EBSResourceUtilization = exports.DiskResourceUtilization = exports.ResourceDetails = exports.EC2ResourceDetails = exports.RightsizingRecommendationMetadata = exports.RightsizingRecommendationConfiguration = exports.RecommendationTarget = exports.GetReservationUtilizationResponse = exports.UtilizationByTime = exports.ReservationUtilizationGroup = exports.ReservationAggregates = void 0;
6
- exports.DescribeCostCategoryDefinitionResponse = exports.UpdateCostCategoryDefinitionRequest = exports.GetAnomalyMonitorsResponse = exports.CreateCostCategoryDefinitionRequest = exports.CostCategory = exports.CreateAnomalyMonitorRequest = exports.GetUsageForecastRequest = exports.GetTagsRequest = exports.GetSavingsPlansUtilizationRequest = exports.GetSavingsPlansUtilizationDetailsRequest = exports.GetSavingsPlansPurchaseRecommendationRequest = exports.GetSavingsPlansCoverageRequest = exports.GetRightsizingRecommendationRequest = exports.GetReservationUtilizationRequest = exports.GetReservationPurchaseRecommendationRequest = exports.GetReservationCoverageRequest = exports.GetDimensionValuesRequest = exports.GetCostForecastRequest = exports.GetCostCategoriesRequest = exports.GetCostAndUsageWithResourcesRequest = exports.GetCostAndUsageRequest = exports.CostCategoryRule = exports.AnomalyMonitor = exports.Expression = exports.UpdateCostCategoryDefinitionResponse = exports.UpdateAnomalySubscriptionResponse = exports.UpdateAnomalySubscriptionRequest = exports.UpdateAnomalyMonitorResponse = exports.UpdateAnomalyMonitorRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TooManyTagsException = exports.TagResourceResponse = exports.TagResourceRequest = exports.ProvideAnomalyFeedbackResponse = exports.ProvideAnomalyFeedbackRequest = exports.ListTagsForResourceResponse = void 0;
5
+ exports.CostAllocationTag = exports.ListCostAllocationTagsRequest = exports.CostAllocationTagType = exports.CostAllocationTagStatus = exports.UnresolvableUsageUnitException = exports.GetUsageForecastResponse = exports.GetTagsResponse = exports.GetSavingsPlansUtilizationDetailsResponse = exports.SavingsPlansUtilizationDetail = exports.SavingsPlansDataType = exports.GetSavingsPlansUtilizationResponse = exports.SavingsPlansUtilizationAggregates = exports.SavingsPlansUtilizationByTime = exports.SavingsPlansUtilization = exports.SavingsPlansSavings = exports.SavingsPlansAmortizedCommitment = exports.GetSavingsPlansPurchaseRecommendationResponse = exports.SavingsPlansPurchaseRecommendation = exports.SavingsPlansPurchaseRecommendationSummary = exports.SavingsPlansPurchaseRecommendationDetail = exports.SavingsPlansDetails = exports.SavingsPlansPurchaseRecommendationMetadata = exports.SupportedSavingsPlansType = exports.GetSavingsPlansCoverageResponse = exports.SavingsPlansCoverage = exports.SavingsPlansCoverageData = exports.GetRightsizingRecommendationResponse = exports.RightsizingRecommendationSummary = exports.RightsizingRecommendation = exports.TerminateRecommendationDetail = exports.RightsizingType = exports.ModifyRecommendationDetail = exports.TargetInstance = exports.PlatformDifference = exports.FindingReasonCode = exports.CurrentInstance = exports.ResourceUtilization = exports.EC2ResourceUtilization = exports.NetworkResourceUtilization = exports.EBSResourceUtilization = exports.DiskResourceUtilization = exports.ResourceDetails = exports.EC2ResourceDetails = exports.RightsizingRecommendationMetadata = exports.RightsizingRecommendationConfiguration = exports.RecommendationTarget = exports.GetReservationUtilizationResponse = exports.UtilizationByTime = exports.ReservationUtilizationGroup = exports.ReservationAggregates = void 0;
6
+ exports.DescribeCostCategoryDefinitionResponse = exports.UpdateCostCategoryDefinitionRequest = exports.GetAnomalyMonitorsResponse = exports.CreateCostCategoryDefinitionRequest = exports.CostCategory = exports.CreateAnomalyMonitorRequest = exports.GetUsageForecastRequest = exports.GetTagsRequest = exports.GetSavingsPlansUtilizationRequest = exports.GetSavingsPlansUtilizationDetailsRequest = exports.GetSavingsPlansPurchaseRecommendationRequest = exports.GetSavingsPlansCoverageRequest = exports.GetRightsizingRecommendationRequest = exports.GetReservationUtilizationRequest = exports.GetReservationPurchaseRecommendationRequest = exports.GetReservationCoverageRequest = exports.GetDimensionValuesRequest = exports.GetCostForecastRequest = exports.GetCostCategoriesRequest = exports.GetCostAndUsageWithResourcesRequest = exports.GetCostAndUsageRequest = exports.CostCategoryRule = exports.AnomalyMonitor = exports.Expression = exports.UpdateCostCategoryDefinitionResponse = exports.UpdateCostAllocationTagsStatusResponse = exports.UpdateCostAllocationTagsStatusError = exports.UpdateCostAllocationTagsStatusRequest = exports.CostAllocationTagStatusEntry = exports.UpdateAnomalySubscriptionResponse = exports.UpdateAnomalySubscriptionRequest = exports.UpdateAnomalyMonitorResponse = exports.UpdateAnomalyMonitorRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TooManyTagsException = exports.TagResourceResponse = exports.TagResourceRequest = exports.ProvideAnomalyFeedbackResponse = exports.ProvideAnomalyFeedbackRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListCostCategoryDefinitionsResponse = exports.CostCategoryReference = exports.ListCostCategoryDefinitionsRequest = exports.ListCostAllocationTagsResponse = void 0;
7
7
  const CostExplorerServiceException_1 = require("./CostExplorerServiceException");
8
8
  var AccountScope;
9
9
  (function (AccountScope) {
@@ -1001,6 +1001,34 @@ class UnresolvableUsageUnitException extends CostExplorerServiceException_1.Cost
1001
1001
  }
1002
1002
  }
1003
1003
  exports.UnresolvableUsageUnitException = UnresolvableUsageUnitException;
1004
+ var CostAllocationTagStatus;
1005
+ (function (CostAllocationTagStatus) {
1006
+ CostAllocationTagStatus["ACTIVE"] = "Active";
1007
+ CostAllocationTagStatus["INACTIVE"] = "Inactive";
1008
+ })(CostAllocationTagStatus = exports.CostAllocationTagStatus || (exports.CostAllocationTagStatus = {}));
1009
+ var CostAllocationTagType;
1010
+ (function (CostAllocationTagType) {
1011
+ CostAllocationTagType["AWS_GENERATED"] = "AWSGenerated";
1012
+ CostAllocationTagType["USER_DEFINED"] = "UserDefined";
1013
+ })(CostAllocationTagType = exports.CostAllocationTagType || (exports.CostAllocationTagType = {}));
1014
+ var ListCostAllocationTagsRequest;
1015
+ (function (ListCostAllocationTagsRequest) {
1016
+ ListCostAllocationTagsRequest.filterSensitiveLog = (obj) => ({
1017
+ ...obj,
1018
+ });
1019
+ })(ListCostAllocationTagsRequest = exports.ListCostAllocationTagsRequest || (exports.ListCostAllocationTagsRequest = {}));
1020
+ var CostAllocationTag;
1021
+ (function (CostAllocationTag) {
1022
+ CostAllocationTag.filterSensitiveLog = (obj) => ({
1023
+ ...obj,
1024
+ });
1025
+ })(CostAllocationTag = exports.CostAllocationTag || (exports.CostAllocationTag = {}));
1026
+ var ListCostAllocationTagsResponse;
1027
+ (function (ListCostAllocationTagsResponse) {
1028
+ ListCostAllocationTagsResponse.filterSensitiveLog = (obj) => ({
1029
+ ...obj,
1030
+ });
1031
+ })(ListCostAllocationTagsResponse = exports.ListCostAllocationTagsResponse || (exports.ListCostAllocationTagsResponse = {}));
1004
1032
  var ListCostCategoryDefinitionsRequest;
1005
1033
  (function (ListCostCategoryDefinitionsRequest) {
1006
1034
  ListCostCategoryDefinitionsRequest.filterSensitiveLog = (obj) => ({
@@ -1106,6 +1134,30 @@ var UpdateAnomalySubscriptionResponse;
1106
1134
  ...obj,
1107
1135
  });
1108
1136
  })(UpdateAnomalySubscriptionResponse = exports.UpdateAnomalySubscriptionResponse || (exports.UpdateAnomalySubscriptionResponse = {}));
1137
+ var CostAllocationTagStatusEntry;
1138
+ (function (CostAllocationTagStatusEntry) {
1139
+ CostAllocationTagStatusEntry.filterSensitiveLog = (obj) => ({
1140
+ ...obj,
1141
+ });
1142
+ })(CostAllocationTagStatusEntry = exports.CostAllocationTagStatusEntry || (exports.CostAllocationTagStatusEntry = {}));
1143
+ var UpdateCostAllocationTagsStatusRequest;
1144
+ (function (UpdateCostAllocationTagsStatusRequest) {
1145
+ UpdateCostAllocationTagsStatusRequest.filterSensitiveLog = (obj) => ({
1146
+ ...obj,
1147
+ });
1148
+ })(UpdateCostAllocationTagsStatusRequest = exports.UpdateCostAllocationTagsStatusRequest || (exports.UpdateCostAllocationTagsStatusRequest = {}));
1149
+ var UpdateCostAllocationTagsStatusError;
1150
+ (function (UpdateCostAllocationTagsStatusError) {
1151
+ UpdateCostAllocationTagsStatusError.filterSensitiveLog = (obj) => ({
1152
+ ...obj,
1153
+ });
1154
+ })(UpdateCostAllocationTagsStatusError = exports.UpdateCostAllocationTagsStatusError || (exports.UpdateCostAllocationTagsStatusError = {}));
1155
+ var UpdateCostAllocationTagsStatusResponse;
1156
+ (function (UpdateCostAllocationTagsStatusResponse) {
1157
+ UpdateCostAllocationTagsStatusResponse.filterSensitiveLog = (obj) => ({
1158
+ ...obj,
1159
+ });
1160
+ })(UpdateCostAllocationTagsStatusResponse = exports.UpdateCostAllocationTagsStatusResponse || (exports.UpdateCostAllocationTagsStatusResponse = {}));
1109
1161
  var UpdateCostCategoryDefinitionResponse;
1110
1162
  (function (UpdateCostCategoryDefinitionResponse) {
1111
1163
  UpdateCostCategoryDefinitionResponse.filterSensitiveLog = (obj) => ({
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListCostAllocationTags = void 0;
4
+ const ListCostAllocationTagsCommand_1 = require("../commands/ListCostAllocationTagsCommand");
5
+ const CostExplorer_1 = require("../CostExplorer");
6
+ const CostExplorerClient_1 = require("../CostExplorerClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListCostAllocationTagsCommand_1.ListCostAllocationTagsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listCostAllocationTags(input, ...args);
12
+ };
13
+ async function* paginateListCostAllocationTags(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.NextToken = token;
19
+ input["MaxResults"] = config.pageSize;
20
+ if (config.client instanceof CostExplorer_1.CostExplorer) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof CostExplorerClient_1.CostExplorerClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected CostExplorer | CostExplorerClient");
28
+ }
29
+ yield page;
30
+ const prevToken = token;
31
+ token = page.NextToken;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ }
34
+ return undefined;
35
+ }
36
+ exports.paginateListCostAllocationTags = paginateListCostAllocationTags;
@@ -4,4 +4,5 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./GetSavingsPlansCoveragePaginator"), exports);
5
5
  tslib_1.__exportStar(require("./GetSavingsPlansUtilizationDetailsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./Interfaces"), exports);
7
+ tslib_1.__exportStar(require("./ListCostAllocationTagsPaginator"), exports);
7
8
  tslib_1.__exportStar(require("./ListCostCategoryDefinitionsPaginator"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_json1_1GetReservationPurchaseRecommendationCommand = exports.deserializeAws_json1_1GetReservationCoverageCommand = exports.deserializeAws_json1_1GetDimensionValuesCommand = exports.deserializeAws_json1_1GetCostForecastCommand = exports.deserializeAws_json1_1GetCostCategoriesCommand = exports.deserializeAws_json1_1GetCostAndUsageWithResourcesCommand = exports.deserializeAws_json1_1GetCostAndUsageCommand = exports.deserializeAws_json1_1GetAnomalySubscriptionsCommand = exports.deserializeAws_json1_1GetAnomalyMonitorsCommand = exports.deserializeAws_json1_1GetAnomaliesCommand = exports.deserializeAws_json1_1DescribeCostCategoryDefinitionCommand = exports.deserializeAws_json1_1DeleteCostCategoryDefinitionCommand = exports.deserializeAws_json1_1DeleteAnomalySubscriptionCommand = exports.deserializeAws_json1_1DeleteAnomalyMonitorCommand = exports.deserializeAws_json1_1CreateCostCategoryDefinitionCommand = exports.deserializeAws_json1_1CreateAnomalySubscriptionCommand = exports.deserializeAws_json1_1CreateAnomalyMonitorCommand = exports.serializeAws_json1_1UpdateCostCategoryDefinitionCommand = exports.serializeAws_json1_1UpdateAnomalySubscriptionCommand = exports.serializeAws_json1_1UpdateAnomalyMonitorCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1ProvideAnomalyFeedbackCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListCostCategoryDefinitionsCommand = exports.serializeAws_json1_1GetUsageForecastCommand = exports.serializeAws_json1_1GetTagsCommand = exports.serializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = exports.serializeAws_json1_1GetSavingsPlansUtilizationCommand = exports.serializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = exports.serializeAws_json1_1GetSavingsPlansCoverageCommand = exports.serializeAws_json1_1GetRightsizingRecommendationCommand = exports.serializeAws_json1_1GetReservationUtilizationCommand = exports.serializeAws_json1_1GetReservationPurchaseRecommendationCommand = exports.serializeAws_json1_1GetReservationCoverageCommand = exports.serializeAws_json1_1GetDimensionValuesCommand = exports.serializeAws_json1_1GetCostForecastCommand = exports.serializeAws_json1_1GetCostCategoriesCommand = exports.serializeAws_json1_1GetCostAndUsageWithResourcesCommand = exports.serializeAws_json1_1GetCostAndUsageCommand = exports.serializeAws_json1_1GetAnomalySubscriptionsCommand = exports.serializeAws_json1_1GetAnomalyMonitorsCommand = exports.serializeAws_json1_1GetAnomaliesCommand = exports.serializeAws_json1_1DescribeCostCategoryDefinitionCommand = exports.serializeAws_json1_1DeleteCostCategoryDefinitionCommand = exports.serializeAws_json1_1DeleteAnomalySubscriptionCommand = exports.serializeAws_json1_1DeleteAnomalyMonitorCommand = exports.serializeAws_json1_1CreateCostCategoryDefinitionCommand = exports.serializeAws_json1_1CreateAnomalySubscriptionCommand = exports.serializeAws_json1_1CreateAnomalyMonitorCommand = void 0;
4
- exports.deserializeAws_json1_1UpdateCostCategoryDefinitionCommand = exports.deserializeAws_json1_1UpdateAnomalySubscriptionCommand = exports.deserializeAws_json1_1UpdateAnomalyMonitorCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1ProvideAnomalyFeedbackCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListCostCategoryDefinitionsCommand = exports.deserializeAws_json1_1GetUsageForecastCommand = exports.deserializeAws_json1_1GetTagsCommand = exports.deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = exports.deserializeAws_json1_1GetSavingsPlansUtilizationCommand = exports.deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = exports.deserializeAws_json1_1GetSavingsPlansCoverageCommand = exports.deserializeAws_json1_1GetRightsizingRecommendationCommand = exports.deserializeAws_json1_1GetReservationUtilizationCommand = void 0;
3
+ exports.deserializeAws_json1_1GetDimensionValuesCommand = exports.deserializeAws_json1_1GetCostForecastCommand = exports.deserializeAws_json1_1GetCostCategoriesCommand = exports.deserializeAws_json1_1GetCostAndUsageWithResourcesCommand = exports.deserializeAws_json1_1GetCostAndUsageCommand = exports.deserializeAws_json1_1GetAnomalySubscriptionsCommand = exports.deserializeAws_json1_1GetAnomalyMonitorsCommand = exports.deserializeAws_json1_1GetAnomaliesCommand = exports.deserializeAws_json1_1DescribeCostCategoryDefinitionCommand = exports.deserializeAws_json1_1DeleteCostCategoryDefinitionCommand = exports.deserializeAws_json1_1DeleteAnomalySubscriptionCommand = exports.deserializeAws_json1_1DeleteAnomalyMonitorCommand = exports.deserializeAws_json1_1CreateCostCategoryDefinitionCommand = exports.deserializeAws_json1_1CreateAnomalySubscriptionCommand = exports.deserializeAws_json1_1CreateAnomalyMonitorCommand = exports.serializeAws_json1_1UpdateCostCategoryDefinitionCommand = exports.serializeAws_json1_1UpdateCostAllocationTagsStatusCommand = exports.serializeAws_json1_1UpdateAnomalySubscriptionCommand = exports.serializeAws_json1_1UpdateAnomalyMonitorCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1ProvideAnomalyFeedbackCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListCostCategoryDefinitionsCommand = exports.serializeAws_json1_1ListCostAllocationTagsCommand = exports.serializeAws_json1_1GetUsageForecastCommand = exports.serializeAws_json1_1GetTagsCommand = exports.serializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = exports.serializeAws_json1_1GetSavingsPlansUtilizationCommand = exports.serializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = exports.serializeAws_json1_1GetSavingsPlansCoverageCommand = exports.serializeAws_json1_1GetRightsizingRecommendationCommand = exports.serializeAws_json1_1GetReservationUtilizationCommand = exports.serializeAws_json1_1GetReservationPurchaseRecommendationCommand = exports.serializeAws_json1_1GetReservationCoverageCommand = exports.serializeAws_json1_1GetDimensionValuesCommand = exports.serializeAws_json1_1GetCostForecastCommand = exports.serializeAws_json1_1GetCostCategoriesCommand = exports.serializeAws_json1_1GetCostAndUsageWithResourcesCommand = exports.serializeAws_json1_1GetCostAndUsageCommand = exports.serializeAws_json1_1GetAnomalySubscriptionsCommand = exports.serializeAws_json1_1GetAnomalyMonitorsCommand = exports.serializeAws_json1_1GetAnomaliesCommand = exports.serializeAws_json1_1DescribeCostCategoryDefinitionCommand = exports.serializeAws_json1_1DeleteCostCategoryDefinitionCommand = exports.serializeAws_json1_1DeleteAnomalySubscriptionCommand = exports.serializeAws_json1_1DeleteAnomalyMonitorCommand = exports.serializeAws_json1_1CreateCostCategoryDefinitionCommand = exports.serializeAws_json1_1CreateAnomalySubscriptionCommand = exports.serializeAws_json1_1CreateAnomalyMonitorCommand = void 0;
4
+ exports.deserializeAws_json1_1UpdateCostCategoryDefinitionCommand = exports.deserializeAws_json1_1UpdateCostAllocationTagsStatusCommand = exports.deserializeAws_json1_1UpdateAnomalySubscriptionCommand = exports.deserializeAws_json1_1UpdateAnomalyMonitorCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1ProvideAnomalyFeedbackCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListCostCategoryDefinitionsCommand = exports.deserializeAws_json1_1ListCostAllocationTagsCommand = exports.deserializeAws_json1_1GetUsageForecastCommand = exports.deserializeAws_json1_1GetTagsCommand = exports.deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = exports.deserializeAws_json1_1GetSavingsPlansUtilizationCommand = exports.deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = exports.deserializeAws_json1_1GetSavingsPlansCoverageCommand = exports.deserializeAws_json1_1GetRightsizingRecommendationCommand = exports.deserializeAws_json1_1GetReservationUtilizationCommand = exports.deserializeAws_json1_1GetReservationPurchaseRecommendationCommand = exports.deserializeAws_json1_1GetReservationCoverageCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const CostExplorerServiceException_1 = require("../models/CostExplorerServiceException");
@@ -256,6 +256,16 @@ const serializeAws_json1_1GetUsageForecastCommand = async (input, context) => {
256
256
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
257
  };
258
258
  exports.serializeAws_json1_1GetUsageForecastCommand = serializeAws_json1_1GetUsageForecastCommand;
259
+ const serializeAws_json1_1ListCostAllocationTagsCommand = async (input, context) => {
260
+ const headers = {
261
+ "content-type": "application/x-amz-json-1.1",
262
+ "x-amz-target": "AWSInsightsIndexService.ListCostAllocationTags",
263
+ };
264
+ let body;
265
+ body = JSON.stringify(serializeAws_json1_1ListCostAllocationTagsRequest(input, context));
266
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
+ };
268
+ exports.serializeAws_json1_1ListCostAllocationTagsCommand = serializeAws_json1_1ListCostAllocationTagsCommand;
259
269
  const serializeAws_json1_1ListCostCategoryDefinitionsCommand = async (input, context) => {
260
270
  const headers = {
261
271
  "content-type": "application/x-amz-json-1.1",
@@ -326,6 +336,16 @@ const serializeAws_json1_1UpdateAnomalySubscriptionCommand = async (input, conte
326
336
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
337
  };
328
338
  exports.serializeAws_json1_1UpdateAnomalySubscriptionCommand = serializeAws_json1_1UpdateAnomalySubscriptionCommand;
339
+ const serializeAws_json1_1UpdateCostAllocationTagsStatusCommand = async (input, context) => {
340
+ const headers = {
341
+ "content-type": "application/x-amz-json-1.1",
342
+ "x-amz-target": "AWSInsightsIndexService.UpdateCostAllocationTagsStatus",
343
+ };
344
+ let body;
345
+ body = JSON.stringify(serializeAws_json1_1UpdateCostAllocationTagsStatusRequest(input, context));
346
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
+ };
348
+ exports.serializeAws_json1_1UpdateCostAllocationTagsStatusCommand = serializeAws_json1_1UpdateCostAllocationTagsStatusCommand;
329
349
  const serializeAws_json1_1UpdateCostCategoryDefinitionCommand = async (input, context) => {
330
350
  const headers = {
331
351
  "content-type": "application/x-amz-json-1.1",
@@ -1377,6 +1397,45 @@ const deserializeAws_json1_1GetUsageForecastCommandError = async (output, contex
1377
1397
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1378
1398
  }
1379
1399
  };
1400
+ const deserializeAws_json1_1ListCostAllocationTagsCommand = async (output, context) => {
1401
+ if (output.statusCode >= 300) {
1402
+ return deserializeAws_json1_1ListCostAllocationTagsCommandError(output, context);
1403
+ }
1404
+ const data = await parseBody(output.body, context);
1405
+ let contents = {};
1406
+ contents = deserializeAws_json1_1ListCostAllocationTagsResponse(data, context);
1407
+ const response = {
1408
+ $metadata: deserializeMetadata(output),
1409
+ ...contents,
1410
+ };
1411
+ return Promise.resolve(response);
1412
+ };
1413
+ exports.deserializeAws_json1_1ListCostAllocationTagsCommand = deserializeAws_json1_1ListCostAllocationTagsCommand;
1414
+ const deserializeAws_json1_1ListCostAllocationTagsCommandError = async (output, context) => {
1415
+ const parsedOutput = {
1416
+ ...output,
1417
+ body: await parseBody(output.body, context),
1418
+ };
1419
+ let response;
1420
+ let errorCode = "UnknownError";
1421
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1422
+ switch (errorCode) {
1423
+ case "InvalidNextTokenException":
1424
+ case "com.amazonaws.costexplorer#InvalidNextTokenException":
1425
+ throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
1426
+ case "LimitExceededException":
1427
+ case "com.amazonaws.costexplorer#LimitExceededException":
1428
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
1429
+ default:
1430
+ const parsedBody = parsedOutput.body;
1431
+ response = new CostExplorerServiceException_1.CostExplorerServiceException({
1432
+ name: parsedBody.code || parsedBody.Code || errorCode,
1433
+ $fault: "client",
1434
+ $metadata: deserializeMetadata(output),
1435
+ });
1436
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1437
+ }
1438
+ };
1380
1439
  const deserializeAws_json1_1ListCostCategoryDefinitionsCommand = async (output, context) => {
1381
1440
  if (output.statusCode >= 300) {
1382
1441
  return deserializeAws_json1_1ListCostCategoryDefinitionsCommandError(output, context);
@@ -1650,6 +1709,42 @@ const deserializeAws_json1_1UpdateAnomalySubscriptionCommandError = async (outpu
1650
1709
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1651
1710
  }
1652
1711
  };
1712
+ const deserializeAws_json1_1UpdateCostAllocationTagsStatusCommand = async (output, context) => {
1713
+ if (output.statusCode >= 300) {
1714
+ return deserializeAws_json1_1UpdateCostAllocationTagsStatusCommandError(output, context);
1715
+ }
1716
+ const data = await parseBody(output.body, context);
1717
+ let contents = {};
1718
+ contents = deserializeAws_json1_1UpdateCostAllocationTagsStatusResponse(data, context);
1719
+ const response = {
1720
+ $metadata: deserializeMetadata(output),
1721
+ ...contents,
1722
+ };
1723
+ return Promise.resolve(response);
1724
+ };
1725
+ exports.deserializeAws_json1_1UpdateCostAllocationTagsStatusCommand = deserializeAws_json1_1UpdateCostAllocationTagsStatusCommand;
1726
+ const deserializeAws_json1_1UpdateCostAllocationTagsStatusCommandError = async (output, context) => {
1727
+ const parsedOutput = {
1728
+ ...output,
1729
+ body: await parseBody(output.body, context),
1730
+ };
1731
+ let response;
1732
+ let errorCode = "UnknownError";
1733
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1734
+ switch (errorCode) {
1735
+ case "LimitExceededException":
1736
+ case "com.amazonaws.costexplorer#LimitExceededException":
1737
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
1738
+ default:
1739
+ const parsedBody = parsedOutput.body;
1740
+ response = new CostExplorerServiceException_1.CostExplorerServiceException({
1741
+ name: parsedBody.code || parsedBody.Code || errorCode,
1742
+ $fault: "client",
1743
+ $metadata: deserializeMetadata(output),
1744
+ });
1745
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1746
+ }
1747
+ };
1653
1748
  const deserializeAws_json1_1UpdateCostCategoryDefinitionCommand = async (output, context) => {
1654
1749
  if (output.statusCode >= 300) {
1655
1750
  return deserializeAws_json1_1UpdateCostCategoryDefinitionCommandError(output, context);
@@ -1834,6 +1929,32 @@ const serializeAws_json1_1AnomalySubscription = (input, context) => {
1834
1929
  ...(input.Threshold !== undefined && input.Threshold !== null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
1835
1930
  };
1836
1931
  };
1932
+ const serializeAws_json1_1CostAllocationTagKeyList = (input, context) => {
1933
+ return input
1934
+ .filter((e) => e != null)
1935
+ .map((entry) => {
1936
+ if (entry === null) {
1937
+ return null;
1938
+ }
1939
+ return entry;
1940
+ });
1941
+ };
1942
+ const serializeAws_json1_1CostAllocationTagStatusEntry = (input, context) => {
1943
+ return {
1944
+ ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
1945
+ ...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
1946
+ };
1947
+ };
1948
+ const serializeAws_json1_1CostAllocationTagStatusList = (input, context) => {
1949
+ return input
1950
+ .filter((e) => e != null)
1951
+ .map((entry) => {
1952
+ if (entry === null) {
1953
+ return null;
1954
+ }
1955
+ return serializeAws_json1_1CostAllocationTagStatusEntry(entry, context);
1956
+ });
1957
+ };
1837
1958
  const serializeAws_json1_1CostCategoryInheritedValueDimension = (input, context) => {
1838
1959
  return {
1839
1960
  ...(input.DimensionKey !== undefined && input.DimensionKey !== null && { DimensionKey: input.DimensionKey }),
@@ -2310,6 +2431,16 @@ const serializeAws_json1_1GroupDefinitions = (input, context) => {
2310
2431
  return serializeAws_json1_1GroupDefinition(entry, context);
2311
2432
  });
2312
2433
  };
2434
+ const serializeAws_json1_1ListCostAllocationTagsRequest = (input, context) => {
2435
+ return {
2436
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2437
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2438
+ ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
2439
+ ...(input.TagKeys !== undefined &&
2440
+ input.TagKeys !== null && { TagKeys: serializeAws_json1_1CostAllocationTagKeyList(input.TagKeys, context) }),
2441
+ ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2442
+ };
2443
+ };
2313
2444
  const serializeAws_json1_1ListCostCategoryDefinitionsRequest = (input, context) => {
2314
2445
  return {
2315
2446
  ...(input.EffectiveOn !== undefined && input.EffectiveOn !== null && { EffectiveOn: input.EffectiveOn }),
@@ -2501,6 +2632,14 @@ const serializeAws_json1_1UpdateAnomalySubscriptionRequest = (input, context) =>
2501
2632
  ...(input.Threshold !== undefined && input.Threshold !== null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
2502
2633
  };
2503
2634
  };
2635
+ const serializeAws_json1_1UpdateCostAllocationTagsStatusRequest = (input, context) => {
2636
+ return {
2637
+ ...(input.CostAllocationTagsStatus !== undefined &&
2638
+ input.CostAllocationTagsStatus !== null && {
2639
+ CostAllocationTagsStatus: serializeAws_json1_1CostAllocationTagStatusList(input.CostAllocationTagsStatus, context),
2640
+ }),
2641
+ };
2642
+ };
2504
2643
  const serializeAws_json1_1UpdateCostCategoryDefinitionRequest = (input, context) => {
2505
2644
  return {
2506
2645
  ...(input.CostCategoryArn !== undefined &&
@@ -2629,6 +2768,24 @@ const deserializeAws_json1_1BillExpirationException = (output, context) => {
2629
2768
  Message: (0, smithy_client_1.expectString)(output.Message),
2630
2769
  };
2631
2770
  };
2771
+ const deserializeAws_json1_1CostAllocationTag = (output, context) => {
2772
+ return {
2773
+ Status: (0, smithy_client_1.expectString)(output.Status),
2774
+ TagKey: (0, smithy_client_1.expectString)(output.TagKey),
2775
+ Type: (0, smithy_client_1.expectString)(output.Type),
2776
+ };
2777
+ };
2778
+ const deserializeAws_json1_1CostAllocationTagList = (output, context) => {
2779
+ const retVal = (output || [])
2780
+ .filter((e) => e != null)
2781
+ .map((entry) => {
2782
+ if (entry === null) {
2783
+ return null;
2784
+ }
2785
+ return deserializeAws_json1_1CostAllocationTag(entry, context);
2786
+ });
2787
+ return retVal;
2788
+ };
2632
2789
  const deserializeAws_json1_1CostCategory = (output, context) => {
2633
2790
  return {
2634
2791
  CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
@@ -3397,6 +3554,14 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
3397
3554
  Message: (0, smithy_client_1.expectString)(output.Message),
3398
3555
  };
3399
3556
  };
3557
+ const deserializeAws_json1_1ListCostAllocationTagsResponse = (output, context) => {
3558
+ return {
3559
+ CostAllocationTags: output.CostAllocationTags !== undefined && output.CostAllocationTags !== null
3560
+ ? deserializeAws_json1_1CostAllocationTagList(output.CostAllocationTags, context)
3561
+ : undefined,
3562
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3563
+ };
3564
+ };
3400
3565
  const deserializeAws_json1_1ListCostCategoryDefinitionsResponse = (output, context) => {
3401
3566
  return {
3402
3567
  CostCategoryReferences: output.CostCategoryReferences !== undefined && output.CostCategoryReferences !== null
@@ -4117,6 +4282,31 @@ const deserializeAws_json1_1UpdateAnomalySubscriptionResponse = (output, context
4117
4282
  SubscriptionArn: (0, smithy_client_1.expectString)(output.SubscriptionArn),
4118
4283
  };
4119
4284
  };
4285
+ const deserializeAws_json1_1UpdateCostAllocationTagsStatusError = (output, context) => {
4286
+ return {
4287
+ Code: (0, smithy_client_1.expectString)(output.Code),
4288
+ Message: (0, smithy_client_1.expectString)(output.Message),
4289
+ TagKey: (0, smithy_client_1.expectString)(output.TagKey),
4290
+ };
4291
+ };
4292
+ const deserializeAws_json1_1UpdateCostAllocationTagsStatusErrors = (output, context) => {
4293
+ const retVal = (output || [])
4294
+ .filter((e) => e != null)
4295
+ .map((entry) => {
4296
+ if (entry === null) {
4297
+ return null;
4298
+ }
4299
+ return deserializeAws_json1_1UpdateCostAllocationTagsStatusError(entry, context);
4300
+ });
4301
+ return retVal;
4302
+ };
4303
+ const deserializeAws_json1_1UpdateCostAllocationTagsStatusResponse = (output, context) => {
4304
+ return {
4305
+ Errors: output.Errors !== undefined && output.Errors !== null
4306
+ ? deserializeAws_json1_1UpdateCostAllocationTagsStatusErrors(output.Errors, context)
4307
+ : undefined,
4308
+ };
4309
+ };
4120
4310
  const deserializeAws_json1_1UpdateCostCategoryDefinitionResponse = (output, context) => {
4121
4311
  return {
4122
4312
  CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
@@ -24,6 +24,7 @@ import { GetSavingsPlansUtilizationCommand, } from "./commands/GetSavingsPlansUt
24
24
  import { GetSavingsPlansUtilizationDetailsCommand, } from "./commands/GetSavingsPlansUtilizationDetailsCommand";
25
25
  import { GetTagsCommand } from "./commands/GetTagsCommand";
26
26
  import { GetUsageForecastCommand, } from "./commands/GetUsageForecastCommand";
27
+ import { ListCostAllocationTagsCommand, } from "./commands/ListCostAllocationTagsCommand";
27
28
  import { ListCostCategoryDefinitionsCommand, } from "./commands/ListCostCategoryDefinitionsCommand";
28
29
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
29
30
  import { ProvideAnomalyFeedbackCommand, } from "./commands/ProvideAnomalyFeedbackCommand";
@@ -31,6 +32,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
31
32
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
32
33
  import { UpdateAnomalyMonitorCommand, } from "./commands/UpdateAnomalyMonitorCommand";
33
34
  import { UpdateAnomalySubscriptionCommand, } from "./commands/UpdateAnomalySubscriptionCommand";
35
+ import { UpdateCostAllocationTagsStatusCommand, } from "./commands/UpdateCostAllocationTagsStatusCommand";
34
36
  import { UpdateCostCategoryDefinitionCommand, } from "./commands/UpdateCostCategoryDefinitionCommand";
35
37
  import { CostExplorerClient } from "./CostExplorerClient";
36
38
  var CostExplorer = (function (_super) {
@@ -388,6 +390,20 @@ var CostExplorer = (function (_super) {
388
390
  return this.send(command, optionsOrCb);
389
391
  }
390
392
  };
393
+ CostExplorer.prototype.listCostAllocationTags = function (args, optionsOrCb, cb) {
394
+ var command = new ListCostAllocationTagsCommand(args);
395
+ if (typeof optionsOrCb === "function") {
396
+ this.send(command, optionsOrCb);
397
+ }
398
+ else if (typeof cb === "function") {
399
+ if (typeof optionsOrCb !== "object")
400
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
401
+ this.send(command, optionsOrCb || {}, cb);
402
+ }
403
+ else {
404
+ return this.send(command, optionsOrCb);
405
+ }
406
+ };
391
407
  CostExplorer.prototype.listCostCategoryDefinitions = function (args, optionsOrCb, cb) {
392
408
  var command = new ListCostCategoryDefinitionsCommand(args);
393
409
  if (typeof optionsOrCb === "function") {
@@ -486,6 +502,20 @@ var CostExplorer = (function (_super) {
486
502
  return this.send(command, optionsOrCb);
487
503
  }
488
504
  };
505
+ CostExplorer.prototype.updateCostAllocationTagsStatus = function (args, optionsOrCb, cb) {
506
+ var command = new UpdateCostAllocationTagsStatusCommand(args);
507
+ if (typeof optionsOrCb === "function") {
508
+ this.send(command, optionsOrCb);
509
+ }
510
+ else if (typeof cb === "function") {
511
+ if (typeof optionsOrCb !== "object")
512
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
513
+ this.send(command, optionsOrCb || {}, cb);
514
+ }
515
+ else {
516
+ return this.send(command, optionsOrCb);
517
+ }
518
+ };
489
519
  CostExplorer.prototype.updateCostCategoryDefinition = function (args, optionsOrCb, cb) {
490
520
  var command = new UpdateCostCategoryDefinitionCommand(args);
491
521
  if (typeof optionsOrCb === "function") {