@aws-sdk/client-cost-explorer 3.521.0 → 3.524.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -297,6 +297,14 @@ GetAnomalySubscriptions
297
297
 
298
298
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-explorer/command/GetAnomalySubscriptionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/GetAnomalySubscriptionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/GetAnomalySubscriptionsCommandOutput/)
299
299
 
300
+ </details>
301
+ <details>
302
+ <summary>
303
+ GetApproximateUsageRecords
304
+ </summary>
305
+
306
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-explorer/command/GetApproximateUsageRecordsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/GetApproximateUsageRecordsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-explorer/Interface/GetApproximateUsageRecordsCommandOutput/)
307
+
300
308
  </details>
301
309
  <details>
302
310
  <summary>
@@ -0,0 +1 @@
1
+ module.exports = require("../index.js");
package/dist-cjs/index.js CHANGED
@@ -24,6 +24,7 @@ __export(src_exports, {
24
24
  AccountScope: () => AccountScope,
25
25
  AnomalyFeedbackType: () => AnomalyFeedbackType,
26
26
  AnomalySubscriptionFrequency: () => AnomalySubscriptionFrequency,
27
+ ApproximationDimension: () => ApproximationDimension,
27
28
  BillExpirationException: () => BillExpirationException,
28
29
  Context: () => Context,
29
30
  CostAllocationTagStatus: () => CostAllocationTagStatus,
@@ -53,6 +54,7 @@ __export(src_exports, {
53
54
  GetAnomaliesCommand: () => GetAnomaliesCommand,
54
55
  GetAnomalyMonitorsCommand: () => GetAnomalyMonitorsCommand,
55
56
  GetAnomalySubscriptionsCommand: () => GetAnomalySubscriptionsCommand,
57
+ GetApproximateUsageRecordsCommand: () => GetApproximateUsageRecordsCommand,
56
58
  GetCostAndUsageCommand: () => GetCostAndUsageCommand,
57
59
  GetCostAndUsageWithResourcesCommand: () => GetCostAndUsageWithResourcesCommand,
58
60
  GetCostCategoriesCommand: () => GetCostCategoriesCommand,
@@ -363,6 +365,10 @@ var SubscriberType = {
363
365
  EMAIL: "EMAIL",
364
366
  SNS: "SNS"
365
367
  };
368
+ var ApproximationDimension = {
369
+ RESOURCE: "RESOURCE",
370
+ SERVICE: "SERVICE"
371
+ };
366
372
  var _LimitExceededException = class _LimitExceededException extends CostExplorerServiceException {
367
373
  /**
368
374
  * @internal
@@ -506,47 +512,47 @@ var _InvalidNextTokenException = class _InvalidNextTokenException extends CostEx
506
512
  };
507
513
  __name(_InvalidNextTokenException, "InvalidNextTokenException");
508
514
  var InvalidNextTokenException = _InvalidNextTokenException;
509
- var _BillExpirationException = class _BillExpirationException extends CostExplorerServiceException {
515
+ var _DataUnavailableException = class _DataUnavailableException extends CostExplorerServiceException {
510
516
  /**
511
517
  * @internal
512
518
  */
513
519
  constructor(opts) {
514
520
  super({
515
- name: "BillExpirationException",
521
+ name: "DataUnavailableException",
516
522
  $fault: "client",
517
523
  ...opts
518
524
  });
519
- this.name = "BillExpirationException";
525
+ this.name = "DataUnavailableException";
520
526
  this.$fault = "client";
521
- Object.setPrototypeOf(this, _BillExpirationException.prototype);
527
+ Object.setPrototypeOf(this, _DataUnavailableException.prototype);
522
528
  this.Message = opts.Message;
523
529
  }
524
530
  };
525
- __name(_BillExpirationException, "BillExpirationException");
526
- var BillExpirationException = _BillExpirationException;
527
- var _DataUnavailableException = class _DataUnavailableException extends CostExplorerServiceException {
531
+ __name(_DataUnavailableException, "DataUnavailableException");
532
+ var DataUnavailableException = _DataUnavailableException;
533
+ var Granularity = {
534
+ DAILY: "DAILY",
535
+ HOURLY: "HOURLY",
536
+ MONTHLY: "MONTHLY"
537
+ };
538
+ var _BillExpirationException = class _BillExpirationException extends CostExplorerServiceException {
528
539
  /**
529
540
  * @internal
530
541
  */
531
542
  constructor(opts) {
532
543
  super({
533
- name: "DataUnavailableException",
544
+ name: "BillExpirationException",
534
545
  $fault: "client",
535
546
  ...opts
536
547
  });
537
- this.name = "DataUnavailableException";
548
+ this.name = "BillExpirationException";
538
549
  this.$fault = "client";
539
- Object.setPrototypeOf(this, _DataUnavailableException.prototype);
550
+ Object.setPrototypeOf(this, _BillExpirationException.prototype);
540
551
  this.Message = opts.Message;
541
552
  }
542
553
  };
543
- __name(_DataUnavailableException, "DataUnavailableException");
544
- var DataUnavailableException = _DataUnavailableException;
545
- var Granularity = {
546
- DAILY: "DAILY",
547
- HOURLY: "HOURLY",
548
- MONTHLY: "MONTHLY"
549
- };
554
+ __name(_BillExpirationException, "BillExpirationException");
555
+ var BillExpirationException = _BillExpirationException;
550
556
  var GroupDefinitionType = {
551
557
  COST_CATEGORY: "COST_CATEGORY",
552
558
  DIMENSION: "DIMENSION",
@@ -783,6 +789,12 @@ var se_GetAnomalySubscriptionsCommand = /* @__PURE__ */ __name(async (input, con
783
789
  body = JSON.stringify((0, import_smithy_client._json)(input));
784
790
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
785
791
  }, "se_GetAnomalySubscriptionsCommand");
792
+ var se_GetApproximateUsageRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
793
+ const headers = sharedHeaders("GetApproximateUsageRecords");
794
+ let body;
795
+ body = JSON.stringify((0, import_smithy_client._json)(input));
796
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
797
+ }, "se_GetApproximateUsageRecordsCommand");
786
798
  var se_GetCostAndUsageCommand = /* @__PURE__ */ __name(async (input, context) => {
787
799
  const headers = sharedHeaders("GetCostAndUsage");
788
800
  let body;
@@ -1081,6 +1093,19 @@ var de_GetAnomalySubscriptionsCommand = /* @__PURE__ */ __name(async (output, co
1081
1093
  };
1082
1094
  return response;
1083
1095
  }, "de_GetAnomalySubscriptionsCommand");
1096
+ var de_GetApproximateUsageRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
1097
+ if (output.statusCode >= 300) {
1098
+ return de_CommandError(output, context);
1099
+ }
1100
+ const data = await parseBody(output.body, context);
1101
+ let contents = {};
1102
+ contents = (0, import_smithy_client._json)(data);
1103
+ const response = {
1104
+ $metadata: deserializeMetadata(output),
1105
+ ...contents
1106
+ };
1107
+ return response;
1108
+ }, "de_GetApproximateUsageRecordsCommand");
1084
1109
  var de_GetCostAndUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
1085
1110
  if (output.statusCode >= 300) {
1086
1111
  return de_CommandError(output, context);
@@ -1470,12 +1495,12 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1470
1495
  case "InvalidNextTokenException":
1471
1496
  case "com.amazonaws.costexplorer#InvalidNextTokenException":
1472
1497
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1473
- case "BillExpirationException":
1474
- case "com.amazonaws.costexplorer#BillExpirationException":
1475
- throw await de_BillExpirationExceptionRes(parsedOutput, context);
1476
1498
  case "DataUnavailableException":
1477
1499
  case "com.amazonaws.costexplorer#DataUnavailableException":
1478
1500
  throw await de_DataUnavailableExceptionRes(parsedOutput, context);
1501
+ case "BillExpirationException":
1502
+ case "com.amazonaws.costexplorer#BillExpirationException":
1503
+ throw await de_BillExpirationExceptionRes(parsedOutput, context);
1479
1504
  case "RequestChangedException":
1480
1505
  case "com.amazonaws.costexplorer#RequestChangedException":
1481
1506
  throw await de_RequestChangedExceptionRes(parsedOutput, context);
@@ -2256,6 +2281,23 @@ var _GetAnomalySubscriptionsCommand = class _GetAnomalySubscriptionsCommand exte
2256
2281
  __name(_GetAnomalySubscriptionsCommand, "GetAnomalySubscriptionsCommand");
2257
2282
  var GetAnomalySubscriptionsCommand = _GetAnomalySubscriptionsCommand;
2258
2283
 
2284
+ // src/commands/GetApproximateUsageRecordsCommand.ts
2285
+
2286
+
2287
+
2288
+
2289
+ var _GetApproximateUsageRecordsCommand = class _GetApproximateUsageRecordsCommand extends import_smithy_client.Command.classBuilder().ep({
2290
+ ...commonParams
2291
+ }).m(function(Command, cs, config, o) {
2292
+ return [
2293
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2294
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2295
+ ];
2296
+ }).s("AWSInsightsIndexService", "GetApproximateUsageRecords", {}).n("CostExplorerClient", "GetApproximateUsageRecordsCommand").f(void 0, void 0).ser(se_GetApproximateUsageRecordsCommand).de(de_GetApproximateUsageRecordsCommand).build() {
2297
+ };
2298
+ __name(_GetApproximateUsageRecordsCommand, "GetApproximateUsageRecordsCommand");
2299
+ var GetApproximateUsageRecordsCommand = _GetApproximateUsageRecordsCommand;
2300
+
2259
2301
  // src/commands/GetCostAndUsageCommand.ts
2260
2302
 
2261
2303
 
@@ -2744,6 +2786,7 @@ var commands = {
2744
2786
  GetAnomaliesCommand,
2745
2787
  GetAnomalyMonitorsCommand,
2746
2788
  GetAnomalySubscriptionsCommand,
2789
+ GetApproximateUsageRecordsCommand,
2747
2790
  GetCostAndUsageCommand,
2748
2791
  GetCostAndUsageWithResourcesCommand,
2749
2792
  GetCostCategoriesCommand,
@@ -2815,6 +2858,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2815
2858
  GetAnomaliesCommand,
2816
2859
  GetAnomalyMonitorsCommand,
2817
2860
  GetAnomalySubscriptionsCommand,
2861
+ GetApproximateUsageRecordsCommand,
2818
2862
  GetCostAndUsageCommand,
2819
2863
  GetCostAndUsageWithResourcesCommand,
2820
2864
  GetCostCategoriesCommand,
@@ -2856,6 +2900,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2856
2900
  AnomalySubscriptionFrequency,
2857
2901
  SubscriberStatus,
2858
2902
  SubscriberType,
2903
+ ApproximationDimension,
2859
2904
  LimitExceededException,
2860
2905
  UnknownMonitorException,
2861
2906
  CostCategoryInheritedValueDimensionName,
@@ -2870,9 +2915,9 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2870
2915
  CostCategoryStatus,
2871
2916
  NumericOperator,
2872
2917
  InvalidNextTokenException,
2873
- BillExpirationException,
2874
2918
  DataUnavailableException,
2875
2919
  Granularity,
2920
+ BillExpirationException,
2876
2921
  GroupDefinitionType,
2877
2922
  RequestChangedException,
2878
2923
  SortOrder,
@@ -9,6 +9,7 @@ import { DescribeCostCategoryDefinitionCommand, } from "./commands/DescribeCostC
9
9
  import { GetAnomaliesCommand, } from "./commands/GetAnomaliesCommand";
10
10
  import { GetAnomalyMonitorsCommand, } from "./commands/GetAnomalyMonitorsCommand";
11
11
  import { GetAnomalySubscriptionsCommand, } from "./commands/GetAnomalySubscriptionsCommand";
12
+ import { GetApproximateUsageRecordsCommand, } from "./commands/GetApproximateUsageRecordsCommand";
12
13
  import { GetCostAndUsageCommand, } from "./commands/GetCostAndUsageCommand";
13
14
  import { GetCostAndUsageWithResourcesCommand, } from "./commands/GetCostAndUsageWithResourcesCommand";
14
15
  import { GetCostCategoriesCommand, } from "./commands/GetCostCategoriesCommand";
@@ -49,6 +50,7 @@ const commands = {
49
50
  GetAnomaliesCommand,
50
51
  GetAnomalyMonitorsCommand,
51
52
  GetAnomalySubscriptionsCommand,
53
+ GetApproximateUsageRecordsCommand,
52
54
  GetCostAndUsageCommand,
53
55
  GetCostAndUsageWithResourcesCommand,
54
56
  GetCostCategoriesCommand,
@@ -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_GetApproximateUsageRecordsCommand, se_GetApproximateUsageRecordsCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class GetApproximateUsageRecordsCommand 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", "GetApproximateUsageRecords", {})
19
+ .n("CostExplorerClient", "GetApproximateUsageRecordsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetApproximateUsageRecordsCommand)
22
+ .de(de_GetApproximateUsageRecordsCommand)
23
+ .build() {
24
+ }
@@ -8,6 +8,7 @@ export * from "./DescribeCostCategoryDefinitionCommand";
8
8
  export * from "./GetAnomaliesCommand";
9
9
  export * from "./GetAnomalyMonitorsCommand";
10
10
  export * from "./GetAnomalySubscriptionsCommand";
11
+ export * from "./GetApproximateUsageRecordsCommand";
11
12
  export * from "./GetCostAndUsageCommand";
12
13
  export * from "./GetCostAndUsageWithResourcesCommand";
13
14
  export * from "./GetCostCategoriesCommand";
@@ -74,6 +74,10 @@ export const SubscriberType = {
74
74
  EMAIL: "EMAIL",
75
75
  SNS: "SNS",
76
76
  };
77
+ export const ApproximationDimension = {
78
+ RESOURCE: "RESOURCE",
79
+ SERVICE: "SERVICE",
80
+ };
77
81
  export class LimitExceededException extends __BaseException {
78
82
  constructor(opts) {
79
83
  super({
@@ -187,19 +191,6 @@ export class InvalidNextTokenException extends __BaseException {
187
191
  this.Message = opts.Message;
188
192
  }
189
193
  }
190
- export class BillExpirationException extends __BaseException {
191
- constructor(opts) {
192
- super({
193
- name: "BillExpirationException",
194
- $fault: "client",
195
- ...opts,
196
- });
197
- this.name = "BillExpirationException";
198
- this.$fault = "client";
199
- Object.setPrototypeOf(this, BillExpirationException.prototype);
200
- this.Message = opts.Message;
201
- }
202
- }
203
194
  export class DataUnavailableException extends __BaseException {
204
195
  constructor(opts) {
205
196
  super({
@@ -218,6 +209,19 @@ export const Granularity = {
218
209
  HOURLY: "HOURLY",
219
210
  MONTHLY: "MONTHLY",
220
211
  };
212
+ export class BillExpirationException extends __BaseException {
213
+ constructor(opts) {
214
+ super({
215
+ name: "BillExpirationException",
216
+ $fault: "client",
217
+ ...opts,
218
+ });
219
+ this.name = "BillExpirationException";
220
+ this.$fault = "client";
221
+ Object.setPrototypeOf(this, BillExpirationException.prototype);
222
+ this.Message = opts.Message;
223
+ }
224
+ }
221
225
  export const GroupDefinitionType = {
222
226
  COST_CATEGORY: "COST_CATEGORY",
223
227
  DIMENSION: "DIMENSION",
@@ -62,6 +62,12 @@ export const se_GetAnomalySubscriptionsCommand = async (input, context) => {
62
62
  body = JSON.stringify(_json(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
+ export const se_GetApproximateUsageRecordsCommand = async (input, context) => {
66
+ const headers = sharedHeaders("GetApproximateUsageRecords");
67
+ let body;
68
+ body = JSON.stringify(_json(input));
69
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
+ };
65
71
  export const se_GetCostAndUsageCommand = async (input, context) => {
66
72
  const headers = sharedHeaders("GetCostAndUsage");
67
73
  let body;
@@ -360,6 +366,19 @@ export const de_GetAnomalySubscriptionsCommand = async (output, context) => {
360
366
  };
361
367
  return response;
362
368
  };
369
+ export const de_GetApproximateUsageRecordsCommand = async (output, context) => {
370
+ if (output.statusCode >= 300) {
371
+ return de_CommandError(output, context);
372
+ }
373
+ const data = await parseBody(output.body, context);
374
+ let contents = {};
375
+ contents = _json(data);
376
+ const response = {
377
+ $metadata: deserializeMetadata(output),
378
+ ...contents,
379
+ };
380
+ return response;
381
+ };
363
382
  export const de_GetCostAndUsageCommand = async (output, context) => {
364
383
  if (output.statusCode >= 300) {
365
384
  return de_CommandError(output, context);
@@ -749,12 +768,12 @@ const de_CommandError = async (output, context) => {
749
768
  case "InvalidNextTokenException":
750
769
  case "com.amazonaws.costexplorer#InvalidNextTokenException":
751
770
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
752
- case "BillExpirationException":
753
- case "com.amazonaws.costexplorer#BillExpirationException":
754
- throw await de_BillExpirationExceptionRes(parsedOutput, context);
755
771
  case "DataUnavailableException":
756
772
  case "com.amazonaws.costexplorer#DataUnavailableException":
757
773
  throw await de_DataUnavailableExceptionRes(parsedOutput, context);
774
+ case "BillExpirationException":
775
+ case "com.amazonaws.costexplorer#BillExpirationException":
776
+ throw await de_BillExpirationExceptionRes(parsedOutput, context);
758
777
  case "RequestChangedException":
759
778
  case "com.amazonaws.costexplorer#RequestChangedException":
760
779
  throw await de_RequestChangedExceptionRes(parsedOutput, context);
@@ -9,6 +9,7 @@ import { DescribeCostCategoryDefinitionCommandInput, DescribeCostCategoryDefinit
9
9
  import { GetAnomaliesCommandInput, GetAnomaliesCommandOutput } from "./commands/GetAnomaliesCommand";
10
10
  import { GetAnomalyMonitorsCommandInput, GetAnomalyMonitorsCommandOutput } from "./commands/GetAnomalyMonitorsCommand";
11
11
  import { GetAnomalySubscriptionsCommandInput, GetAnomalySubscriptionsCommandOutput } from "./commands/GetAnomalySubscriptionsCommand";
12
+ import { GetApproximateUsageRecordsCommandInput, GetApproximateUsageRecordsCommandOutput } from "./commands/GetApproximateUsageRecordsCommand";
12
13
  import { GetCostAndUsageCommandInput, GetCostAndUsageCommandOutput } from "./commands/GetCostAndUsageCommand";
13
14
  import { GetCostAndUsageWithResourcesCommandInput, GetCostAndUsageWithResourcesCommandOutput } from "./commands/GetCostAndUsageWithResourcesCommand";
14
15
  import { GetCostCategoriesCommandInput, GetCostCategoriesCommandOutput } from "./commands/GetCostCategoriesCommand";
@@ -99,6 +100,12 @@ export interface CostExplorer {
99
100
  getAnomalySubscriptions(args: GetAnomalySubscriptionsCommandInput, options?: __HttpHandlerOptions): Promise<GetAnomalySubscriptionsCommandOutput>;
100
101
  getAnomalySubscriptions(args: GetAnomalySubscriptionsCommandInput, cb: (err: any, data?: GetAnomalySubscriptionsCommandOutput) => void): void;
101
102
  getAnomalySubscriptions(args: GetAnomalySubscriptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAnomalySubscriptionsCommandOutput) => void): void;
103
+ /**
104
+ * @see {@link GetApproximateUsageRecordsCommand}
105
+ */
106
+ getApproximateUsageRecords(args: GetApproximateUsageRecordsCommandInput, options?: __HttpHandlerOptions): Promise<GetApproximateUsageRecordsCommandOutput>;
107
+ getApproximateUsageRecords(args: GetApproximateUsageRecordsCommandInput, cb: (err: any, data?: GetApproximateUsageRecordsCommandOutput) => void): void;
108
+ getApproximateUsageRecords(args: GetApproximateUsageRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetApproximateUsageRecordsCommandOutput) => void): void;
102
109
  /**
103
110
  * @see {@link GetCostAndUsageCommand}
104
111
  */
@@ -17,6 +17,7 @@ import { DescribeCostCategoryDefinitionCommandInput, DescribeCostCategoryDefinit
17
17
  import { GetAnomaliesCommandInput, GetAnomaliesCommandOutput } from "./commands/GetAnomaliesCommand";
18
18
  import { GetAnomalyMonitorsCommandInput, GetAnomalyMonitorsCommandOutput } from "./commands/GetAnomalyMonitorsCommand";
19
19
  import { GetAnomalySubscriptionsCommandInput, GetAnomalySubscriptionsCommandOutput } from "./commands/GetAnomalySubscriptionsCommand";
20
+ import { GetApproximateUsageRecordsCommandInput, GetApproximateUsageRecordsCommandOutput } from "./commands/GetApproximateUsageRecordsCommand";
20
21
  import { GetCostAndUsageCommandInput, GetCostAndUsageCommandOutput } from "./commands/GetCostAndUsageCommand";
21
22
  import { GetCostAndUsageWithResourcesCommandInput, GetCostAndUsageWithResourcesCommandOutput } from "./commands/GetCostAndUsageWithResourcesCommand";
22
23
  import { GetCostCategoriesCommandInput, GetCostCategoriesCommandOutput } from "./commands/GetCostCategoriesCommand";
@@ -51,11 +52,11 @@ export { __Client };
51
52
  /**
52
53
  * @public
53
54
  */
54
- export type ServiceInputTypes = CreateAnomalyMonitorCommandInput | CreateAnomalySubscriptionCommandInput | CreateCostCategoryDefinitionCommandInput | DeleteAnomalyMonitorCommandInput | DeleteAnomalySubscriptionCommandInput | DeleteCostCategoryDefinitionCommandInput | DescribeCostCategoryDefinitionCommandInput | GetAnomaliesCommandInput | GetAnomalyMonitorsCommandInput | GetAnomalySubscriptionsCommandInput | GetCostAndUsageCommandInput | GetCostAndUsageWithResourcesCommandInput | GetCostCategoriesCommandInput | GetCostForecastCommandInput | GetDimensionValuesCommandInput | GetReservationCoverageCommandInput | GetReservationPurchaseRecommendationCommandInput | GetReservationUtilizationCommandInput | GetRightsizingRecommendationCommandInput | GetSavingsPlanPurchaseRecommendationDetailsCommandInput | GetSavingsPlansCoverageCommandInput | GetSavingsPlansPurchaseRecommendationCommandInput | GetSavingsPlansUtilizationCommandInput | GetSavingsPlansUtilizationDetailsCommandInput | GetTagsCommandInput | GetUsageForecastCommandInput | ListCostAllocationTagsCommandInput | ListCostCategoryDefinitionsCommandInput | ListSavingsPlansPurchaseRecommendationGenerationCommandInput | ListTagsForResourceCommandInput | ProvideAnomalyFeedbackCommandInput | StartSavingsPlansPurchaseRecommendationGenerationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAnomalyMonitorCommandInput | UpdateAnomalySubscriptionCommandInput | UpdateCostAllocationTagsStatusCommandInput | UpdateCostCategoryDefinitionCommandInput;
55
+ export type ServiceInputTypes = CreateAnomalyMonitorCommandInput | CreateAnomalySubscriptionCommandInput | CreateCostCategoryDefinitionCommandInput | DeleteAnomalyMonitorCommandInput | DeleteAnomalySubscriptionCommandInput | DeleteCostCategoryDefinitionCommandInput | DescribeCostCategoryDefinitionCommandInput | GetAnomaliesCommandInput | GetAnomalyMonitorsCommandInput | GetAnomalySubscriptionsCommandInput | GetApproximateUsageRecordsCommandInput | GetCostAndUsageCommandInput | GetCostAndUsageWithResourcesCommandInput | GetCostCategoriesCommandInput | GetCostForecastCommandInput | GetDimensionValuesCommandInput | GetReservationCoverageCommandInput | GetReservationPurchaseRecommendationCommandInput | GetReservationUtilizationCommandInput | GetRightsizingRecommendationCommandInput | GetSavingsPlanPurchaseRecommendationDetailsCommandInput | GetSavingsPlansCoverageCommandInput | GetSavingsPlansPurchaseRecommendationCommandInput | GetSavingsPlansUtilizationCommandInput | GetSavingsPlansUtilizationDetailsCommandInput | GetTagsCommandInput | GetUsageForecastCommandInput | ListCostAllocationTagsCommandInput | ListCostCategoryDefinitionsCommandInput | ListSavingsPlansPurchaseRecommendationGenerationCommandInput | ListTagsForResourceCommandInput | ProvideAnomalyFeedbackCommandInput | StartSavingsPlansPurchaseRecommendationGenerationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAnomalyMonitorCommandInput | UpdateAnomalySubscriptionCommandInput | UpdateCostAllocationTagsStatusCommandInput | UpdateCostCategoryDefinitionCommandInput;
55
56
  /**
56
57
  * @public
57
58
  */
58
- export type ServiceOutputTypes = CreateAnomalyMonitorCommandOutput | CreateAnomalySubscriptionCommandOutput | CreateCostCategoryDefinitionCommandOutput | DeleteAnomalyMonitorCommandOutput | DeleteAnomalySubscriptionCommandOutput | DeleteCostCategoryDefinitionCommandOutput | DescribeCostCategoryDefinitionCommandOutput | GetAnomaliesCommandOutput | GetAnomalyMonitorsCommandOutput | GetAnomalySubscriptionsCommandOutput | GetCostAndUsageCommandOutput | GetCostAndUsageWithResourcesCommandOutput | GetCostCategoriesCommandOutput | GetCostForecastCommandOutput | GetDimensionValuesCommandOutput | GetReservationCoverageCommandOutput | GetReservationPurchaseRecommendationCommandOutput | GetReservationUtilizationCommandOutput | GetRightsizingRecommendationCommandOutput | GetSavingsPlanPurchaseRecommendationDetailsCommandOutput | GetSavingsPlansCoverageCommandOutput | GetSavingsPlansPurchaseRecommendationCommandOutput | GetSavingsPlansUtilizationCommandOutput | GetSavingsPlansUtilizationDetailsCommandOutput | GetTagsCommandOutput | GetUsageForecastCommandOutput | ListCostAllocationTagsCommandOutput | ListCostCategoryDefinitionsCommandOutput | ListSavingsPlansPurchaseRecommendationGenerationCommandOutput | ListTagsForResourceCommandOutput | ProvideAnomalyFeedbackCommandOutput | StartSavingsPlansPurchaseRecommendationGenerationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAnomalyMonitorCommandOutput | UpdateAnomalySubscriptionCommandOutput | UpdateCostAllocationTagsStatusCommandOutput | UpdateCostCategoryDefinitionCommandOutput;
59
+ export type ServiceOutputTypes = CreateAnomalyMonitorCommandOutput | CreateAnomalySubscriptionCommandOutput | CreateCostCategoryDefinitionCommandOutput | DeleteAnomalyMonitorCommandOutput | DeleteAnomalySubscriptionCommandOutput | DeleteCostCategoryDefinitionCommandOutput | DescribeCostCategoryDefinitionCommandOutput | GetAnomaliesCommandOutput | GetAnomalyMonitorsCommandOutput | GetAnomalySubscriptionsCommandOutput | GetApproximateUsageRecordsCommandOutput | GetCostAndUsageCommandOutput | GetCostAndUsageWithResourcesCommandOutput | GetCostCategoriesCommandOutput | GetCostForecastCommandOutput | GetDimensionValuesCommandOutput | GetReservationCoverageCommandOutput | GetReservationPurchaseRecommendationCommandOutput | GetReservationUtilizationCommandOutput | GetRightsizingRecommendationCommandOutput | GetSavingsPlanPurchaseRecommendationDetailsCommandOutput | GetSavingsPlansCoverageCommandOutput | GetSavingsPlansPurchaseRecommendationCommandOutput | GetSavingsPlansUtilizationCommandOutput | GetSavingsPlansUtilizationDetailsCommandOutput | GetTagsCommandOutput | GetUsageForecastCommandOutput | ListCostAllocationTagsCommandOutput | ListCostCategoryDefinitionsCommandOutput | ListSavingsPlansPurchaseRecommendationGenerationCommandOutput | ListTagsForResourceCommandOutput | ProvideAnomalyFeedbackCommandOutput | StartSavingsPlansPurchaseRecommendationGenerationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAnomalyMonitorCommandOutput | UpdateAnomalySubscriptionCommandOutput | UpdateCostAllocationTagsStatusCommandOutput | UpdateCostCategoryDefinitionCommandOutput;
59
60
  /**
60
61
  * @public
61
62
  */
@@ -0,0 +1,76 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient";
4
+ import { GetApproximateUsageRecordsRequest, GetApproximateUsageRecordsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetApproximateUsageRecordsCommand}.
13
+ */
14
+ export interface GetApproximateUsageRecordsCommandInput extends GetApproximateUsageRecordsRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetApproximateUsageRecordsCommand}.
20
+ */
21
+ export interface GetApproximateUsageRecordsCommandOutput extends GetApproximateUsageRecordsResponse, __MetadataBearer {
22
+ }
23
+ declare const GetApproximateUsageRecordsCommand_base: {
24
+ new (input: GetApproximateUsageRecordsCommandInput): import("@smithy/smithy-client").CommandImpl<GetApproximateUsageRecordsCommandInput, GetApproximateUsageRecordsCommandOutput, CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>Retrieves estimated usage records for hourly granularity or resource-level data at daily
30
+ * granularity.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CostExplorerClient, GetApproximateUsageRecordsCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
35
+ * // const { CostExplorerClient, GetApproximateUsageRecordsCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
36
+ * const client = new CostExplorerClient(config);
37
+ * const input = { // GetApproximateUsageRecordsRequest
38
+ * Granularity: "DAILY" || "MONTHLY" || "HOURLY", // required
39
+ * Services: [ // UsageServices
40
+ * "STRING_VALUE",
41
+ * ],
42
+ * ApproximationDimension: "SERVICE" || "RESOURCE", // required
43
+ * };
44
+ * const command = new GetApproximateUsageRecordsCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // GetApproximateUsageRecordsResponse
47
+ * // Services: { // ApproximateUsageRecordsPerService
48
+ * // "<keys>": Number("long"),
49
+ * // },
50
+ * // TotalRecords: Number("long"),
51
+ * // LookbackPeriod: { // DateInterval
52
+ * // Start: "STRING_VALUE", // required
53
+ * // End: "STRING_VALUE", // required
54
+ * // },
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param GetApproximateUsageRecordsCommandInput - {@link GetApproximateUsageRecordsCommandInput}
60
+ * @returns {@link GetApproximateUsageRecordsCommandOutput}
61
+ * @see {@link GetApproximateUsageRecordsCommandInput} for command's `input` shape.
62
+ * @see {@link GetApproximateUsageRecordsCommandOutput} for command's `response` shape.
63
+ * @see {@link CostExplorerClientResolvedConfig | config} for CostExplorerClient's `config` shape.
64
+ *
65
+ * @throws {@link DataUnavailableException} (client fault)
66
+ * <p>The requested data is unavailable.</p>
67
+ *
68
+ * @throws {@link LimitExceededException} (client fault)
69
+ * <p>You made too many calls in a short period of time. Try again later.</p>
70
+ *
71
+ * @throws {@link CostExplorerServiceException}
72
+ * <p>Base exception class for all service exceptions from CostExplorer service.</p>
73
+ *
74
+ */
75
+ export declare class GetApproximateUsageRecordsCommand extends GetApproximateUsageRecordsCommand_base {
76
+ }
@@ -8,6 +8,7 @@ export * from "./DescribeCostCategoryDefinitionCommand";
8
8
  export * from "./GetAnomaliesCommand";
9
9
  export * from "./GetAnomalyMonitorsCommand";
10
10
  export * from "./GetAnomalySubscriptionsCommand";
11
+ export * from "./GetApproximateUsageRecordsCommand";
11
12
  export * from "./GetCostAndUsageCommand";
12
13
  export * from "./GetCostAndUsageWithResourcesCommand";
13
14
  export * from "./GetCostCategoriesCommand";
@@ -425,6 +425,18 @@ export interface Subscriber {
425
425
  */
426
426
  Status?: SubscriberStatus;
427
427
  }
428
+ /**
429
+ * @public
430
+ * @enum
431
+ */
432
+ export declare const ApproximationDimension: {
433
+ readonly RESOURCE: "RESOURCE";
434
+ readonly SERVICE: "SERVICE";
435
+ };
436
+ /**
437
+ * @public
438
+ */
439
+ export type ApproximationDimension = (typeof ApproximationDimension)[keyof typeof ApproximationDimension];
428
440
  /**
429
441
  * @public
430
442
  * <p>The tag structure that contains a tag key and value. </p>
@@ -956,19 +968,6 @@ export interface GetAnomalySubscriptionsRequest {
956
968
  */
957
969
  MaxResults?: number;
958
970
  }
959
- /**
960
- * @public
961
- * <p>The requested report expired. Update the date interval and try again.</p>
962
- */
963
- export declare class BillExpirationException extends __BaseException {
964
- readonly name: "BillExpirationException";
965
- readonly $fault: "client";
966
- Message?: string;
967
- /**
968
- * @internal
969
- */
970
- constructor(opts: __ExceptionOptionType<BillExpirationException, __BaseException>);
971
- }
972
971
  /**
973
972
  * @public
974
973
  * <p>The requested data is unavailable.</p>
@@ -997,33 +996,26 @@ export declare const Granularity: {
997
996
  export type Granularity = (typeof Granularity)[keyof typeof Granularity];
998
997
  /**
999
998
  * @public
1000
- * @enum
1001
999
  */
1002
- export declare const GroupDefinitionType: {
1003
- readonly COST_CATEGORY: "COST_CATEGORY";
1004
- readonly DIMENSION: "DIMENSION";
1005
- readonly TAG: "TAG";
1006
- };
1007
- /**
1008
- * @public
1009
- */
1010
- export type GroupDefinitionType = (typeof GroupDefinitionType)[keyof typeof GroupDefinitionType];
1011
- /**
1012
- * @public
1013
- * <p>Represents a group when you specify a group by criteria or in the response to a query
1014
- * with a specific grouping.</p>
1015
- */
1016
- export interface GroupDefinition {
1000
+ export interface GetApproximateUsageRecordsRequest {
1017
1001
  /**
1018
1002
  * @public
1019
- * <p>The string that represents the type of group.</p>
1003
+ * <p>How granular you want the data to be. You can enable data at hourly or daily
1004
+ * granularity.</p>
1020
1005
  */
1021
- Type?: GroupDefinitionType;
1006
+ Granularity: Granularity | undefined;
1022
1007
  /**
1023
1008
  * @public
1024
- * <p>The string that represents a key for a specified group.</p>
1009
+ * <p>The service metadata for the service or services you want to query. If not specified, all
1010
+ * elements are returned.</p>
1025
1011
  */
1026
- Key?: string;
1012
+ Services?: string[];
1013
+ /**
1014
+ * @public
1015
+ * <p>The service to evaluate for the usage records. You can choose resource-level data at daily
1016
+ * granularity, or hourly granularity with or without resource-level data.</p>
1017
+ */
1018
+ ApproximationDimension: ApproximationDimension | undefined;
1027
1019
  }
1028
1020
  /**
1029
1021
  * @public
@@ -1046,6 +1038,69 @@ export interface DateInterval {
1046
1038
  */
1047
1039
  End: string | undefined;
1048
1040
  }
1041
+ /**
1042
+ * @public
1043
+ */
1044
+ export interface GetApproximateUsageRecordsResponse {
1045
+ /**
1046
+ * @public
1047
+ * <p>The service metadata for the service or services in the response.</p>
1048
+ */
1049
+ Services?: Record<string, number>;
1050
+ /**
1051
+ * @public
1052
+ * <p>The total number of usage records for all services in the services list.</p>
1053
+ */
1054
+ TotalRecords?: number;
1055
+ /**
1056
+ * @public
1057
+ * <p>The lookback period that's used for the estimation.</p>
1058
+ */
1059
+ LookbackPeriod?: DateInterval;
1060
+ }
1061
+ /**
1062
+ * @public
1063
+ * <p>The requested report expired. Update the date interval and try again.</p>
1064
+ */
1065
+ export declare class BillExpirationException extends __BaseException {
1066
+ readonly name: "BillExpirationException";
1067
+ readonly $fault: "client";
1068
+ Message?: string;
1069
+ /**
1070
+ * @internal
1071
+ */
1072
+ constructor(opts: __ExceptionOptionType<BillExpirationException, __BaseException>);
1073
+ }
1074
+ /**
1075
+ * @public
1076
+ * @enum
1077
+ */
1078
+ export declare const GroupDefinitionType: {
1079
+ readonly COST_CATEGORY: "COST_CATEGORY";
1080
+ readonly DIMENSION: "DIMENSION";
1081
+ readonly TAG: "TAG";
1082
+ };
1083
+ /**
1084
+ * @public
1085
+ */
1086
+ export type GroupDefinitionType = (typeof GroupDefinitionType)[keyof typeof GroupDefinitionType];
1087
+ /**
1088
+ * @public
1089
+ * <p>Represents a group when you specify a group by criteria or in the response to a query
1090
+ * with a specific grouping.</p>
1091
+ */
1092
+ export interface GroupDefinition {
1093
+ /**
1094
+ * @public
1095
+ * <p>The string that represents the type of group.</p>
1096
+ */
1097
+ Type?: GroupDefinitionType;
1098
+ /**
1099
+ * @public
1100
+ * <p>The string that represents a key for a specified group.</p>
1101
+ */
1102
+ Key?: string;
1103
+ }
1049
1104
  /**
1050
1105
  * @public
1051
1106
  * <p>The metadata of a specific type that you can use to filter and group your results. You
@@ -10,6 +10,7 @@ import { DescribeCostCategoryDefinitionCommandInput, DescribeCostCategoryDefinit
10
10
  import { GetAnomaliesCommandInput, GetAnomaliesCommandOutput } from "../commands/GetAnomaliesCommand";
11
11
  import { GetAnomalyMonitorsCommandInput, GetAnomalyMonitorsCommandOutput } from "../commands/GetAnomalyMonitorsCommand";
12
12
  import { GetAnomalySubscriptionsCommandInput, GetAnomalySubscriptionsCommandOutput } from "../commands/GetAnomalySubscriptionsCommand";
13
+ import { GetApproximateUsageRecordsCommandInput, GetApproximateUsageRecordsCommandOutput } from "../commands/GetApproximateUsageRecordsCommand";
13
14
  import { GetCostAndUsageCommandInput, GetCostAndUsageCommandOutput } from "../commands/GetCostAndUsageCommand";
14
15
  import { GetCostAndUsageWithResourcesCommandInput, GetCostAndUsageWithResourcesCommandOutput } from "../commands/GetCostAndUsageWithResourcesCommand";
15
16
  import { GetCostCategoriesCommandInput, GetCostCategoriesCommandOutput } from "../commands/GetCostCategoriesCommand";
@@ -78,6 +79,10 @@ export declare const se_GetAnomalyMonitorsCommand: (input: GetAnomalyMonitorsCom
78
79
  * serializeAws_json1_1GetAnomalySubscriptionsCommand
79
80
  */
80
81
  export declare const se_GetAnomalySubscriptionsCommand: (input: GetAnomalySubscriptionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
82
+ /**
83
+ * serializeAws_json1_1GetApproximateUsageRecordsCommand
84
+ */
85
+ export declare const se_GetApproximateUsageRecordsCommand: (input: GetApproximateUsageRecordsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
81
86
  /**
82
87
  * serializeAws_json1_1GetCostAndUsageCommand
83
88
  */
@@ -230,6 +235,10 @@ export declare const de_GetAnomalyMonitorsCommand: (output: __HttpResponse, cont
230
235
  * deserializeAws_json1_1GetAnomalySubscriptionsCommand
231
236
  */
232
237
  export declare const de_GetAnomalySubscriptionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAnomalySubscriptionsCommandOutput>;
238
+ /**
239
+ * deserializeAws_json1_1GetApproximateUsageRecordsCommand
240
+ */
241
+ export declare const de_GetApproximateUsageRecordsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetApproximateUsageRecordsCommandOutput>;
233
242
  /**
234
243
  * deserializeAws_json1_1GetCostAndUsageCommand
235
244
  */
@@ -39,6 +39,10 @@ import {
39
39
  GetAnomalySubscriptionsCommandInput,
40
40
  GetAnomalySubscriptionsCommandOutput,
41
41
  } from "./commands/GetAnomalySubscriptionsCommand";
42
+ import {
43
+ GetApproximateUsageRecordsCommandInput,
44
+ GetApproximateUsageRecordsCommandOutput,
45
+ } from "./commands/GetApproximateUsageRecordsCommand";
42
46
  import {
43
47
  GetCostAndUsageCommandInput,
44
48
  GetCostAndUsageCommandOutput,
@@ -283,6 +287,19 @@ export interface CostExplorer {
283
287
  options: __HttpHandlerOptions,
284
288
  cb: (err: any, data?: GetAnomalySubscriptionsCommandOutput) => void
285
289
  ): void;
290
+ getApproximateUsageRecords(
291
+ args: GetApproximateUsageRecordsCommandInput,
292
+ options?: __HttpHandlerOptions
293
+ ): Promise<GetApproximateUsageRecordsCommandOutput>;
294
+ getApproximateUsageRecords(
295
+ args: GetApproximateUsageRecordsCommandInput,
296
+ cb: (err: any, data?: GetApproximateUsageRecordsCommandOutput) => void
297
+ ): void;
298
+ getApproximateUsageRecords(
299
+ args: GetApproximateUsageRecordsCommandInput,
300
+ options: __HttpHandlerOptions,
301
+ cb: (err: any, data?: GetApproximateUsageRecordsCommandOutput) => void
302
+ ): void;
286
303
  getCostAndUsage(
287
304
  args: GetCostAndUsageCommandInput,
288
305
  options?: __HttpHandlerOptions
@@ -85,6 +85,10 @@ import {
85
85
  GetAnomalySubscriptionsCommandInput,
86
86
  GetAnomalySubscriptionsCommandOutput,
87
87
  } from "./commands/GetAnomalySubscriptionsCommand";
88
+ import {
89
+ GetApproximateUsageRecordsCommandInput,
90
+ GetApproximateUsageRecordsCommandOutput,
91
+ } from "./commands/GetApproximateUsageRecordsCommand";
88
92
  import {
89
93
  GetCostAndUsageCommandInput,
90
94
  GetCostAndUsageCommandOutput,
@@ -215,6 +219,7 @@ export type ServiceInputTypes =
215
219
  | GetAnomaliesCommandInput
216
220
  | GetAnomalyMonitorsCommandInput
217
221
  | GetAnomalySubscriptionsCommandInput
222
+ | GetApproximateUsageRecordsCommandInput
218
223
  | GetCostAndUsageCommandInput
219
224
  | GetCostAndUsageWithResourcesCommandInput
220
225
  | GetCostCategoriesCommandInput
@@ -254,6 +259,7 @@ export type ServiceOutputTypes =
254
259
  | GetAnomaliesCommandOutput
255
260
  | GetAnomalyMonitorsCommandOutput
256
261
  | GetAnomalySubscriptionsCommandOutput
262
+ | GetApproximateUsageRecordsCommandOutput
257
263
  | GetCostAndUsageCommandOutput
258
264
  | GetCostAndUsageWithResourcesCommandOutput
259
265
  | GetCostCategoriesCommandOutput
@@ -0,0 +1,30 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ CostExplorerClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../CostExplorerClient";
8
+ import {
9
+ GetApproximateUsageRecordsRequest,
10
+ GetApproximateUsageRecordsResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface GetApproximateUsageRecordsCommandInput
14
+ extends GetApproximateUsageRecordsRequest {}
15
+ export interface GetApproximateUsageRecordsCommandOutput
16
+ extends GetApproximateUsageRecordsResponse,
17
+ __MetadataBearer {}
18
+ declare const GetApproximateUsageRecordsCommand_base: {
19
+ new (
20
+ input: GetApproximateUsageRecordsCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ GetApproximateUsageRecordsCommandInput,
23
+ GetApproximateUsageRecordsCommandOutput,
24
+ CostExplorerClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
+ };
30
+ export declare class GetApproximateUsageRecordsCommand extends GetApproximateUsageRecordsCommand_base {}
@@ -8,6 +8,7 @@ export * from "./DescribeCostCategoryDefinitionCommand";
8
8
  export * from "./GetAnomaliesCommand";
9
9
  export * from "./GetAnomalyMonitorsCommand";
10
10
  export * from "./GetAnomalySubscriptionsCommand";
11
+ export * from "./GetApproximateUsageRecordsCommand";
11
12
  export * from "./GetCostAndUsageCommand";
12
13
  export * from "./GetCostAndUsageWithResourcesCommand";
13
14
  export * from "./GetCostCategoriesCommand";
@@ -142,6 +142,12 @@ export interface Subscriber {
142
142
  Type?: SubscriberType;
143
143
  Status?: SubscriberStatus;
144
144
  }
145
+ export declare const ApproximationDimension: {
146
+ readonly RESOURCE: "RESOURCE";
147
+ readonly SERVICE: "SERVICE";
148
+ };
149
+ export type ApproximationDimension =
150
+ (typeof ApproximationDimension)[keyof typeof ApproximationDimension];
145
151
  export interface ResourceTag {
146
152
  Key: string | undefined;
147
153
  Value: string | undefined;
@@ -320,14 +326,6 @@ export interface GetAnomalySubscriptionsRequest {
320
326
  NextPageToken?: string;
321
327
  MaxResults?: number;
322
328
  }
323
- export declare class BillExpirationException extends __BaseException {
324
- readonly name: "BillExpirationException";
325
- readonly $fault: "client";
326
- Message?: string;
327
- constructor(
328
- opts: __ExceptionOptionType<BillExpirationException, __BaseException>
329
- );
330
- }
331
329
  export declare class DataUnavailableException extends __BaseException {
332
330
  readonly name: "DataUnavailableException";
333
331
  readonly $fault: "client";
@@ -342,6 +340,28 @@ export declare const Granularity: {
342
340
  readonly MONTHLY: "MONTHLY";
343
341
  };
344
342
  export type Granularity = (typeof Granularity)[keyof typeof Granularity];
343
+ export interface GetApproximateUsageRecordsRequest {
344
+ Granularity: Granularity | undefined;
345
+ Services?: string[];
346
+ ApproximationDimension: ApproximationDimension | undefined;
347
+ }
348
+ export interface DateInterval {
349
+ Start: string | undefined;
350
+ End: string | undefined;
351
+ }
352
+ export interface GetApproximateUsageRecordsResponse {
353
+ Services?: Record<string, number>;
354
+ TotalRecords?: number;
355
+ LookbackPeriod?: DateInterval;
356
+ }
357
+ export declare class BillExpirationException extends __BaseException {
358
+ readonly name: "BillExpirationException";
359
+ readonly $fault: "client";
360
+ Message?: string;
361
+ constructor(
362
+ opts: __ExceptionOptionType<BillExpirationException, __BaseException>
363
+ );
364
+ }
345
365
  export declare const GroupDefinitionType: {
346
366
  readonly COST_CATEGORY: "COST_CATEGORY";
347
367
  readonly DIMENSION: "DIMENSION";
@@ -353,10 +373,6 @@ export interface GroupDefinition {
353
373
  Type?: GroupDefinitionType;
354
374
  Key?: string;
355
375
  }
356
- export interface DateInterval {
357
- Start: string | undefined;
358
- End: string | undefined;
359
- }
360
376
  export interface DimensionValuesWithAttributes {
361
377
  Value?: string;
362
378
  Attributes?: Record<string, string>;
@@ -43,6 +43,10 @@ import {
43
43
  GetAnomalySubscriptionsCommandInput,
44
44
  GetAnomalySubscriptionsCommandOutput,
45
45
  } from "../commands/GetAnomalySubscriptionsCommand";
46
+ import {
47
+ GetApproximateUsageRecordsCommandInput,
48
+ GetApproximateUsageRecordsCommandOutput,
49
+ } from "../commands/GetApproximateUsageRecordsCommand";
46
50
  import {
47
51
  GetCostAndUsageCommandInput,
48
52
  GetCostAndUsageCommandOutput,
@@ -195,6 +199,10 @@ export declare const se_GetAnomalySubscriptionsCommand: (
195
199
  input: GetAnomalySubscriptionsCommandInput,
196
200
  context: __SerdeContext
197
201
  ) => Promise<__HttpRequest>;
202
+ export declare const se_GetApproximateUsageRecordsCommand: (
203
+ input: GetApproximateUsageRecordsCommandInput,
204
+ context: __SerdeContext
205
+ ) => Promise<__HttpRequest>;
198
206
  export declare const se_GetCostAndUsageCommand: (
199
207
  input: GetCostAndUsageCommandInput,
200
208
  context: __SerdeContext
@@ -347,6 +355,10 @@ export declare const de_GetAnomalySubscriptionsCommand: (
347
355
  output: __HttpResponse,
348
356
  context: __SerdeContext
349
357
  ) => Promise<GetAnomalySubscriptionsCommandOutput>;
358
+ export declare const de_GetApproximateUsageRecordsCommand: (
359
+ output: __HttpResponse,
360
+ context: __SerdeContext
361
+ ) => Promise<GetApproximateUsageRecordsCommandOutput>;
350
362
  export declare const de_GetCostAndUsageCommand: (
351
363
  output: __HttpResponse,
352
364
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cost-explorer",
3
3
  "description": "AWS SDK for JavaScript Cost Explorer Client for Node.js, Browser and React Native",
4
- "version": "3.521.0",
4
+ "version": "3.524.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cost-explorer",
@@ -20,42 +20,42 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.521.0",
24
- "@aws-sdk/core": "3.521.0",
25
- "@aws-sdk/credential-provider-node": "3.521.0",
26
- "@aws-sdk/middleware-host-header": "3.521.0",
27
- "@aws-sdk/middleware-logger": "3.521.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.521.0",
29
- "@aws-sdk/middleware-user-agent": "3.521.0",
30
- "@aws-sdk/region-config-resolver": "3.521.0",
31
- "@aws-sdk/types": "3.521.0",
32
- "@aws-sdk/util-endpoints": "3.521.0",
33
- "@aws-sdk/util-user-agent-browser": "3.521.0",
34
- "@aws-sdk/util-user-agent-node": "3.521.0",
35
- "@smithy/config-resolver": "^2.1.2",
36
- "@smithy/core": "^1.3.3",
37
- "@smithy/fetch-http-handler": "^2.4.2",
38
- "@smithy/hash-node": "^2.1.2",
39
- "@smithy/invalid-dependency": "^2.1.2",
40
- "@smithy/middleware-content-length": "^2.1.2",
41
- "@smithy/middleware-endpoint": "^2.4.2",
42
- "@smithy/middleware-retry": "^2.1.2",
43
- "@smithy/middleware-serde": "^2.1.2",
44
- "@smithy/middleware-stack": "^2.1.2",
45
- "@smithy/node-config-provider": "^2.2.2",
46
- "@smithy/node-http-handler": "^2.4.0",
47
- "@smithy/protocol-http": "^3.2.0",
48
- "@smithy/smithy-client": "^2.4.0",
49
- "@smithy/types": "^2.10.0",
50
- "@smithy/url-parser": "^2.1.2",
23
+ "@aws-sdk/client-sts": "3.523.0",
24
+ "@aws-sdk/core": "3.523.0",
25
+ "@aws-sdk/credential-provider-node": "3.523.0",
26
+ "@aws-sdk/middleware-host-header": "3.523.0",
27
+ "@aws-sdk/middleware-logger": "3.523.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
+ "@aws-sdk/middleware-user-agent": "3.523.0",
30
+ "@aws-sdk/region-config-resolver": "3.523.0",
31
+ "@aws-sdk/types": "3.523.0",
32
+ "@aws-sdk/util-endpoints": "3.523.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.523.0",
34
+ "@aws-sdk/util-user-agent-node": "3.523.0",
35
+ "@smithy/config-resolver": "^2.1.3",
36
+ "@smithy/core": "^1.3.4",
37
+ "@smithy/fetch-http-handler": "^2.4.3",
38
+ "@smithy/hash-node": "^2.1.3",
39
+ "@smithy/invalid-dependency": "^2.1.3",
40
+ "@smithy/middleware-content-length": "^2.1.3",
41
+ "@smithy/middleware-endpoint": "^2.4.3",
42
+ "@smithy/middleware-retry": "^2.1.3",
43
+ "@smithy/middleware-serde": "^2.1.3",
44
+ "@smithy/middleware-stack": "^2.1.3",
45
+ "@smithy/node-config-provider": "^2.2.3",
46
+ "@smithy/node-http-handler": "^2.4.1",
47
+ "@smithy/protocol-http": "^3.2.1",
48
+ "@smithy/smithy-client": "^2.4.1",
49
+ "@smithy/types": "^2.10.1",
50
+ "@smithy/url-parser": "^2.1.3",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.2",
55
- "@smithy/util-defaults-mode-node": "^2.2.1",
56
- "@smithy/util-endpoints": "^1.1.2",
57
- "@smithy/util-middleware": "^2.1.2",
58
- "@smithy/util-retry": "^2.1.2",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.3",
55
+ "@smithy/util-defaults-mode-node": "^2.2.2",
56
+ "@smithy/util-endpoints": "^1.1.3",
57
+ "@smithy/util-middleware": "^2.1.3",
58
+ "@smithy/util-retry": "^2.1.3",
59
59
  "@smithy/util-utf8": "^2.1.1",
60
60
  "tslib": "^2.5.0"
61
61
  },