@aws-sdk/client-cost-explorer 3.52.0 → 3.53.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.
@@ -3,3 +3,4 @@ export * from "./CostExplorerClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { CostExplorerServiceException } from "./models/CostExplorerServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from CostExplorer service.
4
+ */
5
+ export declare class CostExplorerServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CostExplorerServiceException as __BaseException } from "./CostExplorerServiceException";
2
3
  export declare enum AccountScope {
3
4
  LINKED = "LINKED",
4
5
  PAYER = "PAYER"
@@ -382,10 +383,14 @@ export declare namespace CreateAnomalyMonitorResponse {
382
383
  /**
383
384
  * <p>You made too many calls in a short period of time. Try again later.</p>
384
385
  */
385
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
386
- name: "LimitExceededException";
387
- $fault: "client";
386
+ export declare class LimitExceededException extends __BaseException {
387
+ readonly name: "LimitExceededException";
388
+ readonly $fault: "client";
388
389
  Message?: string;
390
+ /**
391
+ * @internal
392
+ */
393
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
389
394
  }
390
395
  export interface CreateAnomalySubscriptionRequest {
391
396
  /**
@@ -415,10 +420,14 @@ export declare namespace CreateAnomalySubscriptionResponse {
415
420
  * <p>The cost anomaly monitor does not exist for the account.
416
421
  * </p>
417
422
  */
418
- export interface UnknownMonitorException extends __SmithyException, $MetadataBearer {
419
- name: "UnknownMonitorException";
420
- $fault: "client";
423
+ export declare class UnknownMonitorException extends __BaseException {
424
+ readonly name: "UnknownMonitorException";
425
+ readonly $fault: "client";
421
426
  Message?: string;
427
+ /**
428
+ * @internal
429
+ */
430
+ constructor(opts: __ExceptionOptionType<UnknownMonitorException, __BaseException>);
422
431
  }
423
432
  export declare enum CostCategoryInheritedValueDimensionName {
424
433
  LINKED_ACCOUNT_NAME = "LINKED_ACCOUNT_NAME",
@@ -549,10 +558,14 @@ export declare namespace CreateCostCategoryDefinitionResponse {
549
558
  * <p> You've reached the limit on the number of resources you can create, or exceeded the
550
559
  * size of an individual resource. </p>
551
560
  */
552
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
553
- name: "ServiceQuotaExceededException";
554
- $fault: "client";
561
+ export declare class ServiceQuotaExceededException extends __BaseException {
562
+ readonly name: "ServiceQuotaExceededException";
563
+ readonly $fault: "client";
555
564
  Message?: string;
565
+ /**
566
+ * @internal
567
+ */
568
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
556
569
  }
557
570
  export interface DeleteAnomalyMonitorRequest {
558
571
  /**
@@ -598,10 +611,14 @@ export declare namespace DeleteAnomalySubscriptionResponse {
598
611
  * <p>The cost anomaly subscription does not exist for the account.
599
612
  * </p>
600
613
  */
601
- export interface UnknownSubscriptionException extends __SmithyException, $MetadataBearer {
602
- name: "UnknownSubscriptionException";
603
- $fault: "client";
614
+ export declare class UnknownSubscriptionException extends __BaseException {
615
+ readonly name: "UnknownSubscriptionException";
616
+ readonly $fault: "client";
604
617
  Message?: string;
618
+ /**
619
+ * @internal
620
+ */
621
+ constructor(opts: __ExceptionOptionType<UnknownSubscriptionException, __BaseException>);
605
622
  }
606
623
  export interface DeleteCostCategoryDefinitionRequest {
607
624
  /**
@@ -642,10 +659,14 @@ export declare namespace DeleteCostCategoryDefinitionResponse {
642
659
  * The specified ARN in the request doesn't exist.
643
660
  * </p>
644
661
  */
645
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
646
- name: "ResourceNotFoundException";
647
- $fault: "client";
662
+ export declare class ResourceNotFoundException extends __BaseException {
663
+ readonly name: "ResourceNotFoundException";
664
+ readonly $fault: "client";
648
665
  Message?: string;
666
+ /**
667
+ * @internal
668
+ */
669
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
649
670
  }
650
671
  export interface DescribeCostCategoryDefinitionRequest {
651
672
  /**
@@ -782,10 +803,14 @@ export declare namespace GetAnomaliesResponse {
782
803
  /**
783
804
  * <p>The pagination token is invalid. Try again without a pagination token.</p>
784
805
  */
785
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
786
- name: "InvalidNextTokenException";
787
- $fault: "client";
806
+ export declare class InvalidNextTokenException extends __BaseException {
807
+ readonly name: "InvalidNextTokenException";
808
+ readonly $fault: "client";
788
809
  Message?: string;
810
+ /**
811
+ * @internal
812
+ */
813
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
789
814
  }
790
815
  export interface GetAnomalyMonitorsRequest {
791
816
  /**
@@ -853,18 +878,26 @@ export declare namespace GetAnomalySubscriptionsResponse {
853
878
  /**
854
879
  * <p>The requested report expired. Update the date interval and try again.</p>
855
880
  */
856
- export interface BillExpirationException extends __SmithyException, $MetadataBearer {
857
- name: "BillExpirationException";
858
- $fault: "client";
881
+ export declare class BillExpirationException extends __BaseException {
882
+ readonly name: "BillExpirationException";
883
+ readonly $fault: "client";
859
884
  Message?: string;
885
+ /**
886
+ * @internal
887
+ */
888
+ constructor(opts: __ExceptionOptionType<BillExpirationException, __BaseException>);
860
889
  }
861
890
  /**
862
891
  * <p>The requested data is unavailable.</p>
863
892
  */
864
- export interface DataUnavailableException extends __SmithyException, $MetadataBearer {
865
- name: "DataUnavailableException";
866
- $fault: "client";
893
+ export declare class DataUnavailableException extends __BaseException {
894
+ readonly name: "DataUnavailableException";
895
+ readonly $fault: "client";
867
896
  Message?: string;
897
+ /**
898
+ * @internal
899
+ */
900
+ constructor(opts: __ExceptionOptionType<DataUnavailableException, __BaseException>);
868
901
  }
869
902
  export declare enum Granularity {
870
903
  DAILY = "DAILY",
@@ -1039,10 +1072,14 @@ export declare namespace GetCostAndUsageResponse {
1039
1072
  * <p>Your request parameters changed between pages. Try again with the old parameters or
1040
1073
  * without a pagination token.</p>
1041
1074
  */
1042
- export interface RequestChangedException extends __SmithyException, $MetadataBearer {
1043
- name: "RequestChangedException";
1044
- $fault: "client";
1075
+ export declare class RequestChangedException extends __BaseException {
1076
+ readonly name: "RequestChangedException";
1077
+ readonly $fault: "client";
1045
1078
  Message?: string;
1079
+ /**
1080
+ * @internal
1081
+ */
1082
+ constructor(opts: __ExceptionOptionType<RequestChangedException, __BaseException>);
1046
1083
  }
1047
1084
  export interface GetCostAndUsageWithResourcesResponse {
1048
1085
  /**
@@ -3270,10 +3307,14 @@ export declare namespace GetUsageForecastResponse {
3270
3307
  /**
3271
3308
  * <p>Cost Explorer was unable to identify the usage unit. Provide <code>UsageType/UsageTypeGroup</code> filter selections that contain matching units, for example: <code>hours</code>.</p>
3272
3309
  */
3273
- export interface UnresolvableUsageUnitException extends __SmithyException, $MetadataBearer {
3274
- name: "UnresolvableUsageUnitException";
3275
- $fault: "client";
3310
+ export declare class UnresolvableUsageUnitException extends __BaseException {
3311
+ readonly name: "UnresolvableUsageUnitException";
3312
+ readonly $fault: "client";
3276
3313
  Message?: string;
3314
+ /**
3315
+ * @internal
3316
+ */
3317
+ constructor(opts: __ExceptionOptionType<UnresolvableUsageUnitException, __BaseException>);
3277
3318
  }
3278
3319
  export interface ListCostCategoryDefinitionsRequest {
3279
3320
  /**
@@ -3,3 +3,4 @@ export * from "./CostExplorerClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { CostExplorerServiceException } from "./models/CostExplorerServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class CostExplorerServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CostExplorerServiceException as __BaseException } from "./CostExplorerServiceException";
2
3
  export declare enum AccountScope {
3
4
  LINKED = "LINKED",
4
5
  PAYER = "PAYER"
@@ -226,10 +227,12 @@ export declare namespace CreateAnomalyMonitorResponse {
226
227
  const filterSensitiveLog: (obj: CreateAnomalyMonitorResponse) => any;
227
228
  }
228
229
 
229
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
230
- name: "LimitExceededException";
231
- $fault: "client";
230
+ export declare class LimitExceededException extends __BaseException {
231
+ readonly name: "LimitExceededException";
232
+ readonly $fault: "client";
232
233
  Message?: string;
234
+
235
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
233
236
  }
234
237
  export interface CreateAnomalySubscriptionRequest {
235
238
 
@@ -248,10 +251,12 @@ export declare namespace CreateAnomalySubscriptionResponse {
248
251
  const filterSensitiveLog: (obj: CreateAnomalySubscriptionResponse) => any;
249
252
  }
250
253
 
251
- export interface UnknownMonitorException extends __SmithyException, $MetadataBearer {
252
- name: "UnknownMonitorException";
253
- $fault: "client";
254
+ export declare class UnknownMonitorException extends __BaseException {
255
+ readonly name: "UnknownMonitorException";
256
+ readonly $fault: "client";
254
257
  Message?: string;
258
+
259
+ constructor(opts: __ExceptionOptionType<UnknownMonitorException, __BaseException>);
255
260
  }
256
261
  export declare enum CostCategoryInheritedValueDimensionName {
257
262
  LINKED_ACCOUNT_NAME = "LINKED_ACCOUNT_NAME",
@@ -320,10 +325,12 @@ export declare namespace CreateCostCategoryDefinitionResponse {
320
325
  const filterSensitiveLog: (obj: CreateCostCategoryDefinitionResponse) => any;
321
326
  }
322
327
 
323
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
324
- name: "ServiceQuotaExceededException";
325
- $fault: "client";
328
+ export declare class ServiceQuotaExceededException extends __BaseException {
329
+ readonly name: "ServiceQuotaExceededException";
330
+ readonly $fault: "client";
326
331
  Message?: string;
332
+
333
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
327
334
  }
328
335
  export interface DeleteAnomalyMonitorRequest {
329
336
 
@@ -354,10 +361,12 @@ export declare namespace DeleteAnomalySubscriptionResponse {
354
361
  const filterSensitiveLog: (obj: DeleteAnomalySubscriptionResponse) => any;
355
362
  }
356
363
 
357
- export interface UnknownSubscriptionException extends __SmithyException, $MetadataBearer {
358
- name: "UnknownSubscriptionException";
359
- $fault: "client";
364
+ export declare class UnknownSubscriptionException extends __BaseException {
365
+ readonly name: "UnknownSubscriptionException";
366
+ readonly $fault: "client";
360
367
  Message?: string;
368
+
369
+ constructor(opts: __ExceptionOptionType<UnknownSubscriptionException, __BaseException>);
361
370
  }
362
371
  export interface DeleteCostCategoryDefinitionRequest {
363
372
 
@@ -378,10 +387,12 @@ export declare namespace DeleteCostCategoryDefinitionResponse {
378
387
  const filterSensitiveLog: (obj: DeleteCostCategoryDefinitionResponse) => any;
379
388
  }
380
389
 
381
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
382
- name: "ResourceNotFoundException";
383
- $fault: "client";
390
+ export declare class ResourceNotFoundException extends __BaseException {
391
+ readonly name: "ResourceNotFoundException";
392
+ readonly $fault: "client";
384
393
  Message?: string;
394
+
395
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
385
396
  }
386
397
  export interface DescribeCostCategoryDefinitionRequest {
387
398
 
@@ -461,10 +472,12 @@ export declare namespace GetAnomaliesResponse {
461
472
  const filterSensitiveLog: (obj: GetAnomaliesResponse) => any;
462
473
  }
463
474
 
464
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
465
- name: "InvalidNextTokenException";
466
- $fault: "client";
475
+ export declare class InvalidNextTokenException extends __BaseException {
476
+ readonly name: "InvalidNextTokenException";
477
+ readonly $fault: "client";
467
478
  Message?: string;
479
+
480
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
468
481
  }
469
482
  export interface GetAnomalyMonitorsRequest {
470
483
 
@@ -503,16 +516,20 @@ export declare namespace GetAnomalySubscriptionsResponse {
503
516
  const filterSensitiveLog: (obj: GetAnomalySubscriptionsResponse) => any;
504
517
  }
505
518
 
506
- export interface BillExpirationException extends __SmithyException, $MetadataBearer {
507
- name: "BillExpirationException";
508
- $fault: "client";
519
+ export declare class BillExpirationException extends __BaseException {
520
+ readonly name: "BillExpirationException";
521
+ readonly $fault: "client";
509
522
  Message?: string;
523
+
524
+ constructor(opts: __ExceptionOptionType<BillExpirationException, __BaseException>);
510
525
  }
511
526
 
512
- export interface DataUnavailableException extends __SmithyException, $MetadataBearer {
513
- name: "DataUnavailableException";
514
- $fault: "client";
527
+ export declare class DataUnavailableException extends __BaseException {
528
+ readonly name: "DataUnavailableException";
529
+ readonly $fault: "client";
515
530
  Message?: string;
531
+
532
+ constructor(opts: __ExceptionOptionType<DataUnavailableException, __BaseException>);
516
533
  }
517
534
  export declare enum Granularity {
518
535
  DAILY = "DAILY",
@@ -615,10 +632,12 @@ export declare namespace GetCostAndUsageResponse {
615
632
  const filterSensitiveLog: (obj: GetCostAndUsageResponse) => any;
616
633
  }
617
634
 
618
- export interface RequestChangedException extends __SmithyException, $MetadataBearer {
619
- name: "RequestChangedException";
620
- $fault: "client";
635
+ export declare class RequestChangedException extends __BaseException {
636
+ readonly name: "RequestChangedException";
637
+ readonly $fault: "client";
621
638
  Message?: string;
639
+
640
+ constructor(opts: __ExceptionOptionType<RequestChangedException, __BaseException>);
622
641
  }
623
642
  export interface GetCostAndUsageWithResourcesResponse {
624
643
 
@@ -1749,10 +1768,12 @@ export declare namespace GetUsageForecastResponse {
1749
1768
  const filterSensitiveLog: (obj: GetUsageForecastResponse) => any;
1750
1769
  }
1751
1770
 
1752
- export interface UnresolvableUsageUnitException extends __SmithyException, $MetadataBearer {
1753
- name: "UnresolvableUsageUnitException";
1754
- $fault: "client";
1771
+ export declare class UnresolvableUsageUnitException extends __BaseException {
1772
+ readonly name: "UnresolvableUsageUnitException";
1773
+ readonly $fault: "client";
1755
1774
  Message?: string;
1775
+
1776
+ constructor(opts: __ExceptionOptionType<UnresolvableUsageUnitException, __BaseException>);
1756
1777
  }
1757
1778
  export interface ListCostCategoryDefinitionsRequest {
1758
1779
 
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.52.0",
4
+ "version": "3.53.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"