@aws-sdk/client-budgets 3.180.0 → 3.183.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/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +29 -23
- package/dist-es/Budgets.js +94 -101
- package/dist-es/BudgetsClient.js +22 -28
- package/dist-es/commands/CreateBudgetActionCommand.js +21 -28
- package/dist-es/commands/CreateBudgetCommand.js +21 -28
- package/dist-es/commands/CreateNotificationCommand.js +21 -28
- package/dist-es/commands/CreateSubscriberCommand.js +21 -28
- package/dist-es/commands/DeleteBudgetActionCommand.js +21 -28
- package/dist-es/commands/DeleteBudgetCommand.js +21 -28
- package/dist-es/commands/DeleteNotificationCommand.js +21 -28
- package/dist-es/commands/DeleteSubscriberCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetActionCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetActionHistoriesCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetActionsForAccountCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetActionsForBudgetCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetNotificationsForAccountCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetPerformanceHistoryCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetsCommand.js +21 -28
- package/dist-es/commands/DescribeNotificationsForBudgetCommand.js +21 -28
- package/dist-es/commands/DescribeSubscribersForNotificationCommand.js +21 -28
- package/dist-es/commands/ExecuteBudgetActionCommand.js +21 -28
- package/dist-es/commands/UpdateBudgetActionCommand.js +21 -28
- package/dist-es/commands/UpdateBudgetCommand.js +21 -28
- package/dist-es/commands/UpdateNotificationCommand.js +21 -28
- package/dist-es/commands/UpdateSubscriberCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/BudgetsServiceException.js +5 -10
- package/dist-es/models/models_0.js +340 -190
- package/dist-es/pagination/DescribeBudgetActionHistoriesPaginator.js +25 -68
- package/dist-es/pagination/DescribeBudgetActionsForAccountPaginator.js +25 -68
- package/dist-es/pagination/DescribeBudgetActionsForBudgetPaginator.js +25 -68
- package/dist-es/pagination/DescribeBudgetNotificationsForAccountPaginator.js +25 -68
- package/dist-es/pagination/DescribeBudgetPerformanceHistoryPaginator.js +25 -68
- package/dist-es/pagination/DescribeBudgetsPaginator.js +25 -68
- package/dist-es/pagination/DescribeNotificationsForBudgetPaginator.js +25 -68
- package/dist-es/pagination/DescribeSubscribersForNotificationPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1894 -2289
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-budgets
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-budgets
|
|
@@ -252,7 +252,7 @@ exports.deserializeAws_json1_1CreateBudgetCommand = deserializeAws_json1_1Create
|
|
|
252
252
|
const deserializeAws_json1_1CreateBudgetCommandError = async (output, context) => {
|
|
253
253
|
const parsedOutput = {
|
|
254
254
|
...output,
|
|
255
|
-
body: await
|
|
255
|
+
body: await parseErrorBody(output.body, context),
|
|
256
256
|
};
|
|
257
257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
258
258
|
switch (errorCode) {
|
|
@@ -301,7 +301,7 @@ exports.deserializeAws_json1_1CreateBudgetActionCommand = deserializeAws_json1_1
|
|
|
301
301
|
const deserializeAws_json1_1CreateBudgetActionCommandError = async (output, context) => {
|
|
302
302
|
const parsedOutput = {
|
|
303
303
|
...output,
|
|
304
|
-
body: await
|
|
304
|
+
body: await parseErrorBody(output.body, context),
|
|
305
305
|
};
|
|
306
306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
307
307
|
switch (errorCode) {
|
|
@@ -353,7 +353,7 @@ exports.deserializeAws_json1_1CreateNotificationCommand = deserializeAws_json1_1
|
|
|
353
353
|
const deserializeAws_json1_1CreateNotificationCommandError = async (output, context) => {
|
|
354
354
|
const parsedOutput = {
|
|
355
355
|
...output,
|
|
356
|
-
body: await
|
|
356
|
+
body: await parseErrorBody(output.body, context),
|
|
357
357
|
};
|
|
358
358
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
359
|
switch (errorCode) {
|
|
@@ -405,7 +405,7 @@ exports.deserializeAws_json1_1CreateSubscriberCommand = deserializeAws_json1_1Cr
|
|
|
405
405
|
const deserializeAws_json1_1CreateSubscriberCommandError = async (output, context) => {
|
|
406
406
|
const parsedOutput = {
|
|
407
407
|
...output,
|
|
408
|
-
body: await
|
|
408
|
+
body: await parseErrorBody(output.body, context),
|
|
409
409
|
};
|
|
410
410
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
411
411
|
switch (errorCode) {
|
|
@@ -457,7 +457,7 @@ exports.deserializeAws_json1_1DeleteBudgetCommand = deserializeAws_json1_1Delete
|
|
|
457
457
|
const deserializeAws_json1_1DeleteBudgetCommandError = async (output, context) => {
|
|
458
458
|
const parsedOutput = {
|
|
459
459
|
...output,
|
|
460
|
-
body: await
|
|
460
|
+
body: await parseErrorBody(output.body, context),
|
|
461
461
|
};
|
|
462
462
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
463
463
|
switch (errorCode) {
|
|
@@ -503,7 +503,7 @@ exports.deserializeAws_json1_1DeleteBudgetActionCommand = deserializeAws_json1_1
|
|
|
503
503
|
const deserializeAws_json1_1DeleteBudgetActionCommandError = async (output, context) => {
|
|
504
504
|
const parsedOutput = {
|
|
505
505
|
...output,
|
|
506
|
-
body: await
|
|
506
|
+
body: await parseErrorBody(output.body, context),
|
|
507
507
|
};
|
|
508
508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
509
|
switch (errorCode) {
|
|
@@ -552,7 +552,7 @@ exports.deserializeAws_json1_1DeleteNotificationCommand = deserializeAws_json1_1
|
|
|
552
552
|
const deserializeAws_json1_1DeleteNotificationCommandError = async (output, context) => {
|
|
553
553
|
const parsedOutput = {
|
|
554
554
|
...output,
|
|
555
|
-
body: await
|
|
555
|
+
body: await parseErrorBody(output.body, context),
|
|
556
556
|
};
|
|
557
557
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
558
|
switch (errorCode) {
|
|
@@ -598,7 +598,7 @@ exports.deserializeAws_json1_1DeleteSubscriberCommand = deserializeAws_json1_1De
|
|
|
598
598
|
const deserializeAws_json1_1DeleteSubscriberCommandError = async (output, context) => {
|
|
599
599
|
const parsedOutput = {
|
|
600
600
|
...output,
|
|
601
|
-
body: await
|
|
601
|
+
body: await parseErrorBody(output.body, context),
|
|
602
602
|
};
|
|
603
603
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
604
|
switch (errorCode) {
|
|
@@ -644,7 +644,7 @@ exports.deserializeAws_json1_1DescribeBudgetCommand = deserializeAws_json1_1Desc
|
|
|
644
644
|
const deserializeAws_json1_1DescribeBudgetCommandError = async (output, context) => {
|
|
645
645
|
const parsedOutput = {
|
|
646
646
|
...output,
|
|
647
|
-
body: await
|
|
647
|
+
body: await parseErrorBody(output.body, context),
|
|
648
648
|
};
|
|
649
649
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
650
|
switch (errorCode) {
|
|
@@ -690,7 +690,7 @@ exports.deserializeAws_json1_1DescribeBudgetActionCommand = deserializeAws_json1
|
|
|
690
690
|
const deserializeAws_json1_1DescribeBudgetActionCommandError = async (output, context) => {
|
|
691
691
|
const parsedOutput = {
|
|
692
692
|
...output,
|
|
693
|
-
body: await
|
|
693
|
+
body: await parseErrorBody(output.body, context),
|
|
694
694
|
};
|
|
695
695
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
696
|
switch (errorCode) {
|
|
@@ -736,7 +736,7 @@ exports.deserializeAws_json1_1DescribeBudgetActionHistoriesCommand = deserialize
|
|
|
736
736
|
const deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = async (output, context) => {
|
|
737
737
|
const parsedOutput = {
|
|
738
738
|
...output,
|
|
739
|
-
body: await
|
|
739
|
+
body: await parseErrorBody(output.body, context),
|
|
740
740
|
};
|
|
741
741
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
742
742
|
switch (errorCode) {
|
|
@@ -785,7 +785,7 @@ exports.deserializeAws_json1_1DescribeBudgetActionsForAccountCommand = deseriali
|
|
|
785
785
|
const deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = async (output, context) => {
|
|
786
786
|
const parsedOutput = {
|
|
787
787
|
...output,
|
|
788
|
-
body: await
|
|
788
|
+
body: await parseErrorBody(output.body, context),
|
|
789
789
|
};
|
|
790
790
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
791
|
switch (errorCode) {
|
|
@@ -831,7 +831,7 @@ exports.deserializeAws_json1_1DescribeBudgetActionsForBudgetCommand = deserializ
|
|
|
831
831
|
const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = async (output, context) => {
|
|
832
832
|
const parsedOutput = {
|
|
833
833
|
...output,
|
|
834
|
-
body: await
|
|
834
|
+
body: await parseErrorBody(output.body, context),
|
|
835
835
|
};
|
|
836
836
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
837
|
switch (errorCode) {
|
|
@@ -880,7 +880,7 @@ exports.deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand = des
|
|
|
880
880
|
const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError = async (output, context) => {
|
|
881
881
|
const parsedOutput = {
|
|
882
882
|
...output,
|
|
883
|
-
body: await
|
|
883
|
+
body: await parseErrorBody(output.body, context),
|
|
884
884
|
};
|
|
885
885
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
886
886
|
switch (errorCode) {
|
|
@@ -932,7 +932,7 @@ exports.deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = deserial
|
|
|
932
932
|
const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = async (output, context) => {
|
|
933
933
|
const parsedOutput = {
|
|
934
934
|
...output,
|
|
935
|
-
body: await
|
|
935
|
+
body: await parseErrorBody(output.body, context),
|
|
936
936
|
};
|
|
937
937
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
938
938
|
switch (errorCode) {
|
|
@@ -984,7 +984,7 @@ exports.deserializeAws_json1_1DescribeBudgetsCommand = deserializeAws_json1_1Des
|
|
|
984
984
|
const deserializeAws_json1_1DescribeBudgetsCommandError = async (output, context) => {
|
|
985
985
|
const parsedOutput = {
|
|
986
986
|
...output,
|
|
987
|
-
body: await
|
|
987
|
+
body: await parseErrorBody(output.body, context),
|
|
988
988
|
};
|
|
989
989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
990
|
switch (errorCode) {
|
|
@@ -1036,7 +1036,7 @@ exports.deserializeAws_json1_1DescribeNotificationsForBudgetCommand = deserializ
|
|
|
1036
1036
|
const deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = async (output, context) => {
|
|
1037
1037
|
const parsedOutput = {
|
|
1038
1038
|
...output,
|
|
1039
|
-
body: await
|
|
1039
|
+
body: await parseErrorBody(output.body, context),
|
|
1040
1040
|
};
|
|
1041
1041
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
1042
|
switch (errorCode) {
|
|
@@ -1088,7 +1088,7 @@ exports.deserializeAws_json1_1DescribeSubscribersForNotificationCommand = deseri
|
|
|
1088
1088
|
const deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = async (output, context) => {
|
|
1089
1089
|
const parsedOutput = {
|
|
1090
1090
|
...output,
|
|
1091
|
-
body: await
|
|
1091
|
+
body: await parseErrorBody(output.body, context),
|
|
1092
1092
|
};
|
|
1093
1093
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
1094
|
switch (errorCode) {
|
|
@@ -1140,7 +1140,7 @@ exports.deserializeAws_json1_1ExecuteBudgetActionCommand = deserializeAws_json1_
|
|
|
1140
1140
|
const deserializeAws_json1_1ExecuteBudgetActionCommandError = async (output, context) => {
|
|
1141
1141
|
const parsedOutput = {
|
|
1142
1142
|
...output,
|
|
1143
|
-
body: await
|
|
1143
|
+
body: await parseErrorBody(output.body, context),
|
|
1144
1144
|
};
|
|
1145
1145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
1146
|
switch (errorCode) {
|
|
@@ -1189,7 +1189,7 @@ exports.deserializeAws_json1_1UpdateBudgetCommand = deserializeAws_json1_1Update
|
|
|
1189
1189
|
const deserializeAws_json1_1UpdateBudgetCommandError = async (output, context) => {
|
|
1190
1190
|
const parsedOutput = {
|
|
1191
1191
|
...output,
|
|
1192
|
-
body: await
|
|
1192
|
+
body: await parseErrorBody(output.body, context),
|
|
1193
1193
|
};
|
|
1194
1194
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1195
1195
|
switch (errorCode) {
|
|
@@ -1235,7 +1235,7 @@ exports.deserializeAws_json1_1UpdateBudgetActionCommand = deserializeAws_json1_1
|
|
|
1235
1235
|
const deserializeAws_json1_1UpdateBudgetActionCommandError = async (output, context) => {
|
|
1236
1236
|
const parsedOutput = {
|
|
1237
1237
|
...output,
|
|
1238
|
-
body: await
|
|
1238
|
+
body: await parseErrorBody(output.body, context),
|
|
1239
1239
|
};
|
|
1240
1240
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
1241
|
switch (errorCode) {
|
|
@@ -1284,7 +1284,7 @@ exports.deserializeAws_json1_1UpdateNotificationCommand = deserializeAws_json1_1
|
|
|
1284
1284
|
const deserializeAws_json1_1UpdateNotificationCommandError = async (output, context) => {
|
|
1285
1285
|
const parsedOutput = {
|
|
1286
1286
|
...output,
|
|
1287
|
-
body: await
|
|
1287
|
+
body: await parseErrorBody(output.body, context),
|
|
1288
1288
|
};
|
|
1289
1289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
1290
|
switch (errorCode) {
|
|
@@ -1333,7 +1333,7 @@ exports.deserializeAws_json1_1UpdateSubscriberCommand = deserializeAws_json1_1Up
|
|
|
1333
1333
|
const deserializeAws_json1_1UpdateSubscriberCommandError = async (output, context) => {
|
|
1334
1334
|
const parsedOutput = {
|
|
1335
1335
|
...output,
|
|
1336
|
-
body: await
|
|
1336
|
+
body: await parseErrorBody(output.body, context),
|
|
1337
1337
|
};
|
|
1338
1338
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
1339
|
switch (errorCode) {
|
|
@@ -2424,6 +2424,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2424
2424
|
}
|
|
2425
2425
|
return {};
|
|
2426
2426
|
});
|
|
2427
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2428
|
+
var _a;
|
|
2429
|
+
const value = await parseBody(errorBody, context);
|
|
2430
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2431
|
+
return value;
|
|
2432
|
+
};
|
|
2427
2433
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2428
2434
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2429
2435
|
const sanitizeErrorCode = (rawValue) => {
|