@aws-sdk/client-budgets 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 "./BudgetsClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { BudgetsServiceException } from "./models/BudgetsServiceException";
@@ -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 Budgets service.
4
+ */
5
+ export declare class BudgetsServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,14 +1,19 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { BudgetsServiceException as __BaseException } from "./BudgetsServiceException";
2
3
  /**
3
4
  * <p>You are not authorized to use this operation with the given parameters.</p>
4
5
  */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
8
9
  /**
9
10
  * <p>The error message the exception carries.</p>
10
11
  */
11
12
  Message?: string;
13
+ /**
14
+ * @internal
15
+ */
16
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
12
17
  }
13
18
  export declare enum ThresholdType {
14
19
  ABSOLUTE_VALUE = "ABSOLUTE_VALUE",
@@ -770,46 +775,62 @@ export declare namespace CreateBudgetResponse {
770
775
  /**
771
776
  * <p>You've exceeded the notification or subscriber limit.</p>
772
777
  */
773
- export interface CreationLimitExceededException extends __SmithyException, $MetadataBearer {
774
- name: "CreationLimitExceededException";
775
- $fault: "client";
778
+ export declare class CreationLimitExceededException extends __BaseException {
779
+ readonly name: "CreationLimitExceededException";
780
+ readonly $fault: "client";
776
781
  /**
777
782
  * <p>The error message the exception carries.</p>
778
783
  */
779
784
  Message?: string;
785
+ /**
786
+ * @internal
787
+ */
788
+ constructor(opts: __ExceptionOptionType<CreationLimitExceededException, __BaseException>);
780
789
  }
781
790
  /**
782
791
  * <p>The budget name already exists. Budget names must be unique within an account.</p>
783
792
  */
784
- export interface DuplicateRecordException extends __SmithyException, $MetadataBearer {
785
- name: "DuplicateRecordException";
786
- $fault: "client";
793
+ export declare class DuplicateRecordException extends __BaseException {
794
+ readonly name: "DuplicateRecordException";
795
+ readonly $fault: "client";
787
796
  /**
788
797
  * <p>The error message the exception carries.</p>
789
798
  */
790
799
  Message?: string;
800
+ /**
801
+ * @internal
802
+ */
803
+ constructor(opts: __ExceptionOptionType<DuplicateRecordException, __BaseException>);
791
804
  }
792
805
  /**
793
806
  * <p>An error on the server occurred during the processing of your request. Try again later.</p>
794
807
  */
795
- export interface InternalErrorException extends __SmithyException, $MetadataBearer {
796
- name: "InternalErrorException";
797
- $fault: "server";
808
+ export declare class InternalErrorException extends __BaseException {
809
+ readonly name: "InternalErrorException";
810
+ readonly $fault: "server";
798
811
  /**
799
812
  * <p>The error message the exception carries.</p>
800
813
  */
801
814
  Message?: string;
815
+ /**
816
+ * @internal
817
+ */
818
+ constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
802
819
  }
803
820
  /**
804
821
  * <p>An error on the client occurred. Typically, the cause is an invalid input value.</p>
805
822
  */
806
- export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
807
- name: "InvalidParameterException";
808
- $fault: "client";
823
+ export declare class InvalidParameterException extends __BaseException {
824
+ readonly name: "InvalidParameterException";
825
+ readonly $fault: "client";
809
826
  /**
810
827
  * <p>The error message the exception carries.</p>
811
828
  */
812
829
  Message?: string;
830
+ /**
831
+ * @internal
832
+ */
833
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
813
834
  }
814
835
  export interface CreateBudgetActionRequest {
815
836
  /**
@@ -886,13 +907,17 @@ export declare namespace CreateBudgetActionResponse {
886
907
  /**
887
908
  * <p>We can’t locate the resource that you specified.</p>
888
909
  */
889
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
890
- name: "NotFoundException";
891
- $fault: "client";
910
+ export declare class NotFoundException extends __BaseException {
911
+ readonly name: "NotFoundException";
912
+ readonly $fault: "client";
892
913
  /**
893
914
  * <p>The error message the exception carries.</p>
894
915
  */
895
916
  Message?: string;
917
+ /**
918
+ * @internal
919
+ */
920
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
896
921
  }
897
922
  /**
898
923
  * <p> Request of CreateNotification </p>
@@ -1046,13 +1071,17 @@ export declare namespace DeleteBudgetActionResponse {
1046
1071
  * <p> The request was received and recognized by the server, but the server rejected that
1047
1072
  * particular method for the requested resource. </p>
1048
1073
  */
1049
- export interface ResourceLockedException extends __SmithyException, $MetadataBearer {
1050
- name: "ResourceLockedException";
1051
- $fault: "client";
1074
+ export declare class ResourceLockedException extends __BaseException {
1075
+ readonly name: "ResourceLockedException";
1076
+ readonly $fault: "client";
1052
1077
  /**
1053
1078
  * <p>The error message the exception carries.</p>
1054
1079
  */
1055
1080
  Message?: string;
1081
+ /**
1082
+ * @internal
1083
+ */
1084
+ constructor(opts: __ExceptionOptionType<ResourceLockedException, __BaseException>);
1056
1085
  }
1057
1086
  /**
1058
1087
  * <p> Request of DeleteNotification </p>
@@ -1260,13 +1289,17 @@ export declare namespace DescribeBudgetActionHistoriesResponse {
1260
1289
  /**
1261
1290
  * <p>The pagination token is invalid.</p>
1262
1291
  */
1263
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
1264
- name: "InvalidNextTokenException";
1265
- $fault: "client";
1292
+ export declare class InvalidNextTokenException extends __BaseException {
1293
+ readonly name: "InvalidNextTokenException";
1294
+ readonly $fault: "client";
1266
1295
  /**
1267
1296
  * <p>The error message the exception carries.</p>
1268
1297
  */
1269
1298
  Message?: string;
1299
+ /**
1300
+ * @internal
1301
+ */
1302
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
1270
1303
  }
1271
1304
  export interface DescribeBudgetActionsForAccountRequest {
1272
1305
  /**
@@ -1412,13 +1445,17 @@ export declare namespace DescribeBudgetNotificationsForAccountResponse {
1412
1445
  /**
1413
1446
  * <p>The pagination token expired.</p>
1414
1447
  */
1415
- export interface ExpiredNextTokenException extends __SmithyException, $MetadataBearer {
1416
- name: "ExpiredNextTokenException";
1417
- $fault: "client";
1448
+ export declare class ExpiredNextTokenException extends __BaseException {
1449
+ readonly name: "ExpiredNextTokenException";
1450
+ readonly $fault: "client";
1418
1451
  /**
1419
1452
  * <p>The error message the exception carries.</p>
1420
1453
  */
1421
1454
  Message?: string;
1455
+ /**
1456
+ * @internal
1457
+ */
1458
+ constructor(opts: __ExceptionOptionType<ExpiredNextTokenException, __BaseException>);
1422
1459
  }
1423
1460
  export interface DescribeBudgetPerformanceHistoryRequest {
1424
1461
  /**
@@ -3,3 +3,4 @@ export * from "./BudgetsClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { BudgetsServiceException } from "./models/BudgetsServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class BudgetsServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,10 +1,13 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { BudgetsServiceException as __BaseException } from "./BudgetsServiceException";
2
3
 
3
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
4
- name: "AccessDeniedException";
5
- $fault: "client";
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
6
7
 
7
8
  Message?: string;
9
+
10
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
8
11
  }
9
12
  export declare enum ThresholdType {
10
13
  ABSOLUTE_VALUE = "ABSOLUTE_VALUE",
@@ -372,32 +375,40 @@ export declare namespace CreateBudgetResponse {
372
375
  const filterSensitiveLog: (obj: CreateBudgetResponse) => any;
373
376
  }
374
377
 
375
- export interface CreationLimitExceededException extends __SmithyException, $MetadataBearer {
376
- name: "CreationLimitExceededException";
377
- $fault: "client";
378
+ export declare class CreationLimitExceededException extends __BaseException {
379
+ readonly name: "CreationLimitExceededException";
380
+ readonly $fault: "client";
378
381
 
379
382
  Message?: string;
383
+
384
+ constructor(opts: __ExceptionOptionType<CreationLimitExceededException, __BaseException>);
380
385
  }
381
386
 
382
- export interface DuplicateRecordException extends __SmithyException, $MetadataBearer {
383
- name: "DuplicateRecordException";
384
- $fault: "client";
387
+ export declare class DuplicateRecordException extends __BaseException {
388
+ readonly name: "DuplicateRecordException";
389
+ readonly $fault: "client";
385
390
 
386
391
  Message?: string;
392
+
393
+ constructor(opts: __ExceptionOptionType<DuplicateRecordException, __BaseException>);
387
394
  }
388
395
 
389
- export interface InternalErrorException extends __SmithyException, $MetadataBearer {
390
- name: "InternalErrorException";
391
- $fault: "server";
396
+ export declare class InternalErrorException extends __BaseException {
397
+ readonly name: "InternalErrorException";
398
+ readonly $fault: "server";
392
399
 
393
400
  Message?: string;
401
+
402
+ constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
394
403
  }
395
404
 
396
- export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
397
- name: "InvalidParameterException";
398
- $fault: "client";
405
+ export declare class InvalidParameterException extends __BaseException {
406
+ readonly name: "InvalidParameterException";
407
+ readonly $fault: "client";
399
408
 
400
409
  Message?: string;
410
+
411
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
401
412
  }
402
413
  export interface CreateBudgetActionRequest {
403
414
 
@@ -436,11 +447,13 @@ export declare namespace CreateBudgetActionResponse {
436
447
  const filterSensitiveLog: (obj: CreateBudgetActionResponse) => any;
437
448
  }
438
449
 
439
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
440
- name: "NotFoundException";
441
- $fault: "client";
450
+ export declare class NotFoundException extends __BaseException {
451
+ readonly name: "NotFoundException";
452
+ readonly $fault: "client";
442
453
 
443
454
  Message?: string;
455
+
456
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
444
457
  }
445
458
 
446
459
  export interface CreateNotificationRequest {
@@ -529,11 +542,13 @@ export declare namespace DeleteBudgetActionResponse {
529
542
  const filterSensitiveLog: (obj: DeleteBudgetActionResponse) => any;
530
543
  }
531
544
 
532
- export interface ResourceLockedException extends __SmithyException, $MetadataBearer {
533
- name: "ResourceLockedException";
534
- $fault: "client";
545
+ export declare class ResourceLockedException extends __BaseException {
546
+ readonly name: "ResourceLockedException";
547
+ readonly $fault: "client";
535
548
 
536
549
  Message?: string;
550
+
551
+ constructor(opts: __ExceptionOptionType<ResourceLockedException, __BaseException>);
537
552
  }
538
553
 
539
554
  export interface DeleteNotificationRequest {
@@ -650,11 +665,13 @@ export declare namespace DescribeBudgetActionHistoriesResponse {
650
665
  const filterSensitiveLog: (obj: DescribeBudgetActionHistoriesResponse) => any;
651
666
  }
652
667
 
653
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
654
- name: "InvalidNextTokenException";
655
- $fault: "client";
668
+ export declare class InvalidNextTokenException extends __BaseException {
669
+ readonly name: "InvalidNextTokenException";
670
+ readonly $fault: "client";
656
671
 
657
672
  Message?: string;
673
+
674
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
658
675
  }
659
676
  export interface DescribeBudgetActionsForAccountRequest {
660
677
 
@@ -736,11 +753,13 @@ export declare namespace DescribeBudgetNotificationsForAccountResponse {
736
753
  const filterSensitiveLog: (obj: DescribeBudgetNotificationsForAccountResponse) => any;
737
754
  }
738
755
 
739
- export interface ExpiredNextTokenException extends __SmithyException, $MetadataBearer {
740
- name: "ExpiredNextTokenException";
741
- $fault: "client";
756
+ export declare class ExpiredNextTokenException extends __BaseException {
757
+ readonly name: "ExpiredNextTokenException";
758
+ readonly $fault: "client";
742
759
 
743
760
  Message?: string;
761
+
762
+ constructor(opts: __ExceptionOptionType<ExpiredNextTokenException, __BaseException>);
744
763
  }
745
764
  export interface DescribeBudgetPerformanceHistoryRequest {
746
765
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-budgets",
3
3
  "description": "AWS SDK for JavaScript Budgets 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"