@aws-sdk/client-budgets 3.51.0 → 3.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +5 -5
  3. package/dist-cjs/Budgets.js +15 -0
  4. package/dist-cjs/commands/DescribeBudgetNotificationsForAccountCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +1 -0
  6. package/dist-cjs/index.js +3 -0
  7. package/dist-cjs/models/BudgetsServiceException.js +11 -0
  8. package/dist-cjs/models/models_0.js +164 -2
  9. package/dist-cjs/pagination/DescribeBudgetNotificationsForAccountPaginator.js +35 -0
  10. package/dist-cjs/pagination/index.js +1 -0
  11. package/dist-cjs/protocols/Aws_json1_1.js +392 -937
  12. package/dist-es/Budgets.js +15 -0
  13. package/dist-es/commands/DescribeBudgetNotificationsForAccountCommand.js +39 -0
  14. package/dist-es/commands/index.js +1 -0
  15. package/dist-es/index.js +1 -0
  16. package/dist-es/models/BudgetsServiceException.js +12 -0
  17. package/dist-es/models/models_0.js +144 -1
  18. package/dist-es/pagination/DescribeBudgetNotificationsForAccountPaginator.js +74 -0
  19. package/dist-es/pagination/index.js +1 -0
  20. package/dist-es/protocols/Aws_json1_1.js +688 -1009
  21. package/dist-types/Budgets.d.ts +15 -6
  22. package/dist-types/BudgetsClient.d.ts +10 -9
  23. package/dist-types/commands/DescribeBudgetNotificationsForAccountCommand.d.ts +37 -0
  24. package/dist-types/commands/UpdateBudgetCommand.d.ts +1 -1
  25. package/dist-types/commands/index.d.ts +1 -0
  26. package/dist-types/index.d.ts +1 -0
  27. package/dist-types/models/BudgetsServiceException.d.ts +10 -0
  28. package/dist-types/models/models_0.d.ts +345 -202
  29. package/dist-types/pagination/DescribeBudgetNotificationsForAccountPaginator.d.ts +4 -0
  30. package/dist-types/pagination/index.d.ts +1 -0
  31. package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
  32. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  33. package/dist-types/runtimeConfig.d.ts +1 -1
  34. package/dist-types/runtimeConfig.native.d.ts +1 -1
  35. package/dist-types/ts3.4/Budgets.d.ts +5 -0
  36. package/dist-types/ts3.4/BudgetsClient.d.ts +5 -4
  37. package/dist-types/ts3.4/commands/DescribeBudgetNotificationsForAccountCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  39. package/dist-types/ts3.4/index.d.ts +1 -0
  40. package/dist-types/ts3.4/models/BudgetsServiceException.d.ts +6 -0
  41. package/dist-types/ts3.4/models/models_0.d.ts +114 -32
  42. package/dist-types/ts3.4/pagination/DescribeBudgetNotificationsForAccountPaginator.d.ts +4 -0
  43. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  44. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
  45. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  46. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  47. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  48. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
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.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-budgets
9
+
10
+
11
+
12
+
13
+
14
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
26
+
27
+
28
+ ### Features
29
+
30
+ * **clients:** update clients as of 2022/02/18 ([#3335](https://github.com/aws/aws-sdk-js-v3/issues/3335)) ([717b06f](https://github.com/aws/aws-sdk-js-v3/commit/717b06fc43e9876a6f8040147b75ad5da38b1e0f))
31
+
32
+
33
+
34
+
35
+
6
36
  # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
37
 
8
38
  **Note:** Version bump only for package @aws-sdk/client-budgets
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  AWS SDK for JavaScript Budgets Client for Node.js, Browser and React Native.
9
9
 
10
- <p>The AWS Budgets API enables you to use AWS Budgets to plan your service usage, service costs, and instance reservations. The API reference provides descriptions, syntax, and usage examples for each of the actions and data types for AWS Budgets. </p>
10
+ <p>The Amazon Web Services Budgets API enables you to use Amazon Web Services Budgets to plan your service usage, service costs, and instance reservations. The API reference provides descriptions, syntax, and usage examples for each of the actions and data types for Amazon Web Services Budgets. </p>
11
11
  <p>Budgets provide you with a way to see the following information:</p>
12
12
  <ul>
13
13
  <li>
@@ -17,13 +17,13 @@ AWS SDK for JavaScript Budgets Client for Node.js, Browser and React Native.
17
17
  <p>Your usage-to-date, including how much you've used of your Reserved Instances (RIs)</p>
18
18
  </li>
19
19
  <li>
20
- <p>Your current estimated charges from AWS, and how much your predicted usage will accrue in charges by the end of the month</p>
20
+ <p>Your current estimated charges from Amazon Web Services, and how much your predicted usage will accrue in charges by the end of the month</p>
21
21
  </li>
22
22
  <li>
23
23
  <p>How much of your budget has been used</p>
24
24
  </li>
25
25
  </ul>
26
- <p>AWS updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:</p>
26
+ <p>Amazon Web Services updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:</p>
27
27
  <ul>
28
28
  <li>
29
29
  <p>
@@ -43,13 +43,13 @@ AWS SDK for JavaScript Budgets Client for Node.js, Browser and React Native.
43
43
  </li>
44
44
  </ul>
45
45
  <p>Service Endpoint</p>
46
- <p>The AWS Budgets API provides the following endpoint:</p>
46
+ <p>The Amazon Web Services Budgets API provides the following endpoint:</p>
47
47
  <ul>
48
48
  <li>
49
49
  <p>https://budgets.amazonaws.com</p>
50
50
  </li>
51
51
  </ul>
52
- <p>For information about costs that are associated with the AWS Budgets API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">AWS Cost Management Pricing</a>.</p>
52
+ <p>For information about costs that are associated with the Amazon Web Services Budgets API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web Services Cost Management Pricing</a>.</p>
53
53
 
54
54
  ## Installing
55
55
 
@@ -15,6 +15,7 @@ const DescribeBudgetActionHistoriesCommand_1 = require("./commands/DescribeBudge
15
15
  const DescribeBudgetActionsForAccountCommand_1 = require("./commands/DescribeBudgetActionsForAccountCommand");
16
16
  const DescribeBudgetActionsForBudgetCommand_1 = require("./commands/DescribeBudgetActionsForBudgetCommand");
17
17
  const DescribeBudgetCommand_1 = require("./commands/DescribeBudgetCommand");
18
+ const DescribeBudgetNotificationsForAccountCommand_1 = require("./commands/DescribeBudgetNotificationsForAccountCommand");
18
19
  const DescribeBudgetPerformanceHistoryCommand_1 = require("./commands/DescribeBudgetPerformanceHistoryCommand");
19
20
  const DescribeBudgetsCommand_1 = require("./commands/DescribeBudgetsCommand");
20
21
  const DescribeNotificationsForBudgetCommand_1 = require("./commands/DescribeNotificationsForBudgetCommand");
@@ -207,6 +208,20 @@ class Budgets extends BudgetsClient_1.BudgetsClient {
207
208
  return this.send(command, optionsOrCb);
208
209
  }
209
210
  }
211
+ describeBudgetNotificationsForAccount(args, optionsOrCb, cb) {
212
+ const command = new DescribeBudgetNotificationsForAccountCommand_1.DescribeBudgetNotificationsForAccountCommand(args);
213
+ if (typeof optionsOrCb === "function") {
214
+ this.send(command, optionsOrCb);
215
+ }
216
+ else if (typeof cb === "function") {
217
+ if (typeof optionsOrCb !== "object")
218
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
+ this.send(command, optionsOrCb || {}, cb);
220
+ }
221
+ else {
222
+ return this.send(command, optionsOrCb);
223
+ }
224
+ }
210
225
  describeBudgetPerformanceHistory(args, optionsOrCb, cb) {
211
226
  const command = new DescribeBudgetPerformanceHistoryCommand_1.DescribeBudgetPerformanceHistoryCommand(args);
212
227
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeBudgetNotificationsForAccountCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class DescribeBudgetNotificationsForAccountCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BudgetsClient";
18
+ const commandName = "DescribeBudgetNotificationsForAccountCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeBudgetNotificationsForAccountRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeBudgetNotificationsForAccountResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1DescribeBudgetNotificationsForAccountCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeBudgetNotificationsForAccountCommand = DescribeBudgetNotificationsForAccountCommand;
@@ -14,6 +14,7 @@ tslib_1.__exportStar(require("./DescribeBudgetActionHistoriesCommand"), exports)
14
14
  tslib_1.__exportStar(require("./DescribeBudgetActionsForAccountCommand"), exports);
15
15
  tslib_1.__exportStar(require("./DescribeBudgetActionsForBudgetCommand"), exports);
16
16
  tslib_1.__exportStar(require("./DescribeBudgetCommand"), exports);
17
+ tslib_1.__exportStar(require("./DescribeBudgetNotificationsForAccountCommand"), exports);
17
18
  tslib_1.__exportStar(require("./DescribeBudgetPerformanceHistoryCommand"), exports);
18
19
  tslib_1.__exportStar(require("./DescribeBudgetsCommand"), exports);
19
20
  tslib_1.__exportStar(require("./DescribeNotificationsForBudgetCommand"), exports);
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BudgetsServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./Budgets"), exports);
5
6
  tslib_1.__exportStar(require("./BudgetsClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var BudgetsServiceException_1 = require("./models/BudgetsServiceException");
11
+ Object.defineProperty(exports, "BudgetsServiceException", { enumerable: true, get: function () { return BudgetsServiceException_1.BudgetsServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BudgetsServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class BudgetsServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, BudgetsServiceException.prototype);
9
+ }
10
+ }
11
+ exports.BudgetsServiceException = BudgetsServiceException;
@@ -1,8 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DescribeBudgetActionHistoriesResponse = exports.DescribeBudgetActionHistoriesRequest = exports.DescribeBudgetActionResponse = exports.DescribeBudgetActionRequest = exports.DescribeBudgetResponse = exports.DescribeBudgetRequest = exports.DeleteSubscriberResponse = exports.DeleteSubscriberRequest = exports.DeleteNotificationResponse = exports.DeleteNotificationRequest = exports.DeleteBudgetActionResponse = exports.DeleteBudgetActionRequest = exports.DeleteBudgetResponse = exports.DeleteBudgetRequest = exports.CreateSubscriberResponse = exports.CreateSubscriberRequest = exports.CreateNotificationResponse = exports.CreateNotificationRequest = exports.CreateBudgetActionResponse = exports.CreateBudgetActionRequest = exports.CreateBudgetResponse = exports.CreateBudgetRequest = exports.NotificationWithSubscribers = exports.Notification = exports.NotificationState = exports.ComparisonOperator = exports.Budget = exports.TimeUnit = exports.TimePeriod = exports.CostTypes = exports.CalculatedSpend = exports.BudgetType = exports.Spend = exports.ActionHistory = exports.EventType = exports.ActionHistoryDetails = exports.Action = exports.Subscriber = exports.SubscriptionType = exports.ActionStatus = exports.NotificationType = exports.Definition = exports.SsmActionDefinition = exports.ActionSubType = exports.ScpActionDefinition = exports.IamActionDefinition = exports.ApprovalModel = exports.ActionType = exports.ActionThreshold = exports.ThresholdType = void 0;
4
- exports.UpdateSubscriberResponse = exports.UpdateSubscriberRequest = exports.UpdateNotificationResponse = exports.UpdateNotificationRequest = exports.UpdateBudgetActionResponse = exports.UpdateBudgetActionRequest = exports.UpdateBudgetResponse = exports.UpdateBudgetRequest = exports.ExecuteBudgetActionResponse = exports.ExecuteBudgetActionRequest = exports.ExecutionType = exports.DescribeSubscribersForNotificationResponse = exports.DescribeSubscribersForNotificationRequest = exports.DescribeNotificationsForBudgetResponse = exports.DescribeNotificationsForBudgetRequest = exports.DescribeBudgetsResponse = exports.DescribeBudgetsRequest = exports.DescribeBudgetPerformanceHistoryResponse = exports.BudgetPerformanceHistory = exports.BudgetedAndActualAmounts = exports.DescribeBudgetPerformanceHistoryRequest = exports.DescribeBudgetActionsForBudgetResponse = exports.DescribeBudgetActionsForBudgetRequest = exports.DescribeBudgetActionsForAccountResponse = exports.DescribeBudgetActionsForAccountRequest = void 0;
3
+ exports.ResourceLockedException = exports.DeleteBudgetActionResponse = exports.DeleteBudgetActionRequest = exports.DeleteBudgetResponse = exports.DeleteBudgetRequest = exports.CreateSubscriberResponse = exports.CreateSubscriberRequest = exports.CreateNotificationResponse = exports.CreateNotificationRequest = exports.NotFoundException = exports.CreateBudgetActionResponse = exports.CreateBudgetActionRequest = exports.InvalidParameterException = exports.InternalErrorException = exports.DuplicateRecordException = exports.CreationLimitExceededException = exports.CreateBudgetResponse = exports.CreateBudgetRequest = exports.NotificationWithSubscribers = exports.Notification = exports.NotificationState = exports.ComparisonOperator = exports.Budget = exports.TimeUnit = exports.TimePeriod = exports.CostTypes = exports.CalculatedSpend = exports.BudgetType = exports.Spend = exports.AutoAdjustData = exports.HistoricalOptions = exports.AutoAdjustType = exports.ActionHistory = exports.EventType = exports.ActionHistoryDetails = exports.Action = exports.Subscriber = exports.SubscriptionType = exports.ActionStatus = exports.NotificationType = exports.Definition = exports.SsmActionDefinition = exports.ActionSubType = exports.ScpActionDefinition = exports.IamActionDefinition = exports.ApprovalModel = exports.ActionType = exports.ActionThreshold = exports.ThresholdType = exports.AccessDeniedException = void 0;
4
+ exports.UpdateSubscriberResponse = exports.UpdateSubscriberRequest = exports.UpdateNotificationResponse = exports.UpdateNotificationRequest = exports.UpdateBudgetActionResponse = exports.UpdateBudgetActionRequest = exports.UpdateBudgetResponse = exports.UpdateBudgetRequest = exports.ExecuteBudgetActionResponse = exports.ExecuteBudgetActionRequest = exports.ExecutionType = exports.DescribeSubscribersForNotificationResponse = exports.DescribeSubscribersForNotificationRequest = exports.DescribeNotificationsForBudgetResponse = exports.DescribeNotificationsForBudgetRequest = exports.DescribeBudgetsResponse = exports.DescribeBudgetsRequest = exports.DescribeBudgetPerformanceHistoryResponse = exports.BudgetPerformanceHistory = exports.BudgetedAndActualAmounts = exports.DescribeBudgetPerformanceHistoryRequest = exports.ExpiredNextTokenException = exports.DescribeBudgetNotificationsForAccountResponse = exports.BudgetNotificationsForAccount = exports.DescribeBudgetNotificationsForAccountRequest = exports.DescribeBudgetActionsForBudgetResponse = exports.DescribeBudgetActionsForBudgetRequest = exports.DescribeBudgetActionsForAccountResponse = exports.DescribeBudgetActionsForAccountRequest = exports.InvalidNextTokenException = exports.DescribeBudgetActionHistoriesResponse = exports.DescribeBudgetActionHistoriesRequest = exports.DescribeBudgetActionResponse = exports.DescribeBudgetActionRequest = exports.DescribeBudgetResponse = exports.DescribeBudgetRequest = exports.DeleteSubscriberResponse = exports.DeleteSubscriberRequest = exports.DeleteNotificationResponse = exports.DeleteNotificationRequest = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const BudgetsServiceException_1 = require("./BudgetsServiceException");
7
+ class AccessDeniedException extends BudgetsServiceException_1.BudgetsServiceException {
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ this.name = "AccessDeniedException";
15
+ this.$fault = "client";
16
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
17
+ this.Message = opts.Message;
18
+ }
19
+ }
20
+ exports.AccessDeniedException = AccessDeniedException;
6
21
  var ThresholdType;
7
22
  (function (ThresholdType) {
8
23
  ThresholdType["ABSOLUTE_VALUE"] = "ABSOLUTE_VALUE";
@@ -115,6 +130,23 @@ var ActionHistory;
115
130
  }),
116
131
  });
117
132
  })(ActionHistory = exports.ActionHistory || (exports.ActionHistory = {}));
133
+ var AutoAdjustType;
134
+ (function (AutoAdjustType) {
135
+ AutoAdjustType["FORECAST"] = "FORECAST";
136
+ AutoAdjustType["HISTORICAL"] = "HISTORICAL";
137
+ })(AutoAdjustType = exports.AutoAdjustType || (exports.AutoAdjustType = {}));
138
+ var HistoricalOptions;
139
+ (function (HistoricalOptions) {
140
+ HistoricalOptions.filterSensitiveLog = (obj) => ({
141
+ ...obj,
142
+ });
143
+ })(HistoricalOptions = exports.HistoricalOptions || (exports.HistoricalOptions = {}));
144
+ var AutoAdjustData;
145
+ (function (AutoAdjustData) {
146
+ AutoAdjustData.filterSensitiveLog = (obj) => ({
147
+ ...obj,
148
+ });
149
+ })(AutoAdjustData = exports.AutoAdjustData || (exports.AutoAdjustData = {}));
118
150
  var Spend;
119
151
  (function (Spend) {
120
152
  Spend.filterSensitiveLog = (obj) => ({
@@ -197,6 +229,62 @@ var CreateBudgetResponse;
197
229
  ...obj,
198
230
  });
199
231
  })(CreateBudgetResponse = exports.CreateBudgetResponse || (exports.CreateBudgetResponse = {}));
232
+ class CreationLimitExceededException extends BudgetsServiceException_1.BudgetsServiceException {
233
+ constructor(opts) {
234
+ super({
235
+ name: "CreationLimitExceededException",
236
+ $fault: "client",
237
+ ...opts,
238
+ });
239
+ this.name = "CreationLimitExceededException";
240
+ this.$fault = "client";
241
+ Object.setPrototypeOf(this, CreationLimitExceededException.prototype);
242
+ this.Message = opts.Message;
243
+ }
244
+ }
245
+ exports.CreationLimitExceededException = CreationLimitExceededException;
246
+ class DuplicateRecordException extends BudgetsServiceException_1.BudgetsServiceException {
247
+ constructor(opts) {
248
+ super({
249
+ name: "DuplicateRecordException",
250
+ $fault: "client",
251
+ ...opts,
252
+ });
253
+ this.name = "DuplicateRecordException";
254
+ this.$fault = "client";
255
+ Object.setPrototypeOf(this, DuplicateRecordException.prototype);
256
+ this.Message = opts.Message;
257
+ }
258
+ }
259
+ exports.DuplicateRecordException = DuplicateRecordException;
260
+ class InternalErrorException extends BudgetsServiceException_1.BudgetsServiceException {
261
+ constructor(opts) {
262
+ super({
263
+ name: "InternalErrorException",
264
+ $fault: "server",
265
+ ...opts,
266
+ });
267
+ this.name = "InternalErrorException";
268
+ this.$fault = "server";
269
+ Object.setPrototypeOf(this, InternalErrorException.prototype);
270
+ this.Message = opts.Message;
271
+ }
272
+ }
273
+ exports.InternalErrorException = InternalErrorException;
274
+ class InvalidParameterException extends BudgetsServiceException_1.BudgetsServiceException {
275
+ constructor(opts) {
276
+ super({
277
+ name: "InvalidParameterException",
278
+ $fault: "client",
279
+ ...opts,
280
+ });
281
+ this.name = "InvalidParameterException";
282
+ this.$fault = "client";
283
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
284
+ this.Message = opts.Message;
285
+ }
286
+ }
287
+ exports.InvalidParameterException = InvalidParameterException;
200
288
  var CreateBudgetActionRequest;
201
289
  (function (CreateBudgetActionRequest) {
202
290
  CreateBudgetActionRequest.filterSensitiveLog = (obj) => ({
@@ -210,6 +298,20 @@ var CreateBudgetActionResponse;
210
298
  ...obj,
211
299
  });
212
300
  })(CreateBudgetActionResponse = exports.CreateBudgetActionResponse || (exports.CreateBudgetActionResponse = {}));
301
+ class NotFoundException extends BudgetsServiceException_1.BudgetsServiceException {
302
+ constructor(opts) {
303
+ super({
304
+ name: "NotFoundException",
305
+ $fault: "client",
306
+ ...opts,
307
+ });
308
+ this.name = "NotFoundException";
309
+ this.$fault = "client";
310
+ Object.setPrototypeOf(this, NotFoundException.prototype);
311
+ this.Message = opts.Message;
312
+ }
313
+ }
314
+ exports.NotFoundException = NotFoundException;
213
315
  var CreateNotificationRequest;
214
316
  (function (CreateNotificationRequest) {
215
317
  CreateNotificationRequest.filterSensitiveLog = (obj) => ({
@@ -261,6 +363,20 @@ var DeleteBudgetActionResponse;
261
363
  ...(obj.Action && { Action: Action.filterSensitiveLog(obj.Action) }),
262
364
  });
263
365
  })(DeleteBudgetActionResponse = exports.DeleteBudgetActionResponse || (exports.DeleteBudgetActionResponse = {}));
366
+ class ResourceLockedException extends BudgetsServiceException_1.BudgetsServiceException {
367
+ constructor(opts) {
368
+ super({
369
+ name: "ResourceLockedException",
370
+ $fault: "client",
371
+ ...opts,
372
+ });
373
+ this.name = "ResourceLockedException";
374
+ this.$fault = "client";
375
+ Object.setPrototypeOf(this, ResourceLockedException.prototype);
376
+ this.Message = opts.Message;
377
+ }
378
+ }
379
+ exports.ResourceLockedException = ResourceLockedException;
264
380
  var DeleteNotificationRequest;
265
381
  (function (DeleteNotificationRequest) {
266
382
  DeleteNotificationRequest.filterSensitiveLog = (obj) => ({
@@ -323,6 +439,20 @@ var DescribeBudgetActionHistoriesResponse;
323
439
  ...obj,
324
440
  });
325
441
  })(DescribeBudgetActionHistoriesResponse = exports.DescribeBudgetActionHistoriesResponse || (exports.DescribeBudgetActionHistoriesResponse = {}));
442
+ class InvalidNextTokenException extends BudgetsServiceException_1.BudgetsServiceException {
443
+ constructor(opts) {
444
+ super({
445
+ name: "InvalidNextTokenException",
446
+ $fault: "client",
447
+ ...opts,
448
+ });
449
+ this.name = "InvalidNextTokenException";
450
+ this.$fault = "client";
451
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
452
+ this.Message = opts.Message;
453
+ }
454
+ }
455
+ exports.InvalidNextTokenException = InvalidNextTokenException;
326
456
  var DescribeBudgetActionsForAccountRequest;
327
457
  (function (DescribeBudgetActionsForAccountRequest) {
328
458
  DescribeBudgetActionsForAccountRequest.filterSensitiveLog = (obj) => ({
@@ -347,6 +477,38 @@ var DescribeBudgetActionsForBudgetResponse;
347
477
  ...obj,
348
478
  });
349
479
  })(DescribeBudgetActionsForBudgetResponse = exports.DescribeBudgetActionsForBudgetResponse || (exports.DescribeBudgetActionsForBudgetResponse = {}));
480
+ var DescribeBudgetNotificationsForAccountRequest;
481
+ (function (DescribeBudgetNotificationsForAccountRequest) {
482
+ DescribeBudgetNotificationsForAccountRequest.filterSensitiveLog = (obj) => ({
483
+ ...obj,
484
+ });
485
+ })(DescribeBudgetNotificationsForAccountRequest = exports.DescribeBudgetNotificationsForAccountRequest || (exports.DescribeBudgetNotificationsForAccountRequest = {}));
486
+ var BudgetNotificationsForAccount;
487
+ (function (BudgetNotificationsForAccount) {
488
+ BudgetNotificationsForAccount.filterSensitiveLog = (obj) => ({
489
+ ...obj,
490
+ });
491
+ })(BudgetNotificationsForAccount = exports.BudgetNotificationsForAccount || (exports.BudgetNotificationsForAccount = {}));
492
+ var DescribeBudgetNotificationsForAccountResponse;
493
+ (function (DescribeBudgetNotificationsForAccountResponse) {
494
+ DescribeBudgetNotificationsForAccountResponse.filterSensitiveLog = (obj) => ({
495
+ ...obj,
496
+ });
497
+ })(DescribeBudgetNotificationsForAccountResponse = exports.DescribeBudgetNotificationsForAccountResponse || (exports.DescribeBudgetNotificationsForAccountResponse = {}));
498
+ class ExpiredNextTokenException extends BudgetsServiceException_1.BudgetsServiceException {
499
+ constructor(opts) {
500
+ super({
501
+ name: "ExpiredNextTokenException",
502
+ $fault: "client",
503
+ ...opts,
504
+ });
505
+ this.name = "ExpiredNextTokenException";
506
+ this.$fault = "client";
507
+ Object.setPrototypeOf(this, ExpiredNextTokenException.prototype);
508
+ this.Message = opts.Message;
509
+ }
510
+ }
511
+ exports.ExpiredNextTokenException = ExpiredNextTokenException;
350
512
  var DescribeBudgetPerformanceHistoryRequest;
351
513
  (function (DescribeBudgetPerformanceHistoryRequest) {
352
514
  DescribeBudgetPerformanceHistoryRequest.filterSensitiveLog = (obj) => ({
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeBudgetNotificationsForAccount = void 0;
4
+ const Budgets_1 = require("../Budgets");
5
+ const BudgetsClient_1 = require("../BudgetsClient");
6
+ const DescribeBudgetNotificationsForAccountCommand_1 = require("../commands/DescribeBudgetNotificationsForAccountCommand");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new DescribeBudgetNotificationsForAccountCommand_1.DescribeBudgetNotificationsForAccountCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.describeBudgetNotificationsForAccount(input, ...args);
12
+ };
13
+ async function* paginateDescribeBudgetNotificationsForAccount(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.NextToken = token;
19
+ input["MaxResults"] = config.pageSize;
20
+ if (config.client instanceof Budgets_1.Budgets) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof BudgetsClient_1.BudgetsClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Budgets | BudgetsClient");
28
+ }
29
+ yield page;
30
+ token = page.NextToken;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateDescribeBudgetNotificationsForAccount = paginateDescribeBudgetNotificationsForAccount;
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./DescribeBudgetActionHistoriesPaginator"), exports);
5
5
  tslib_1.__exportStar(require("./DescribeBudgetActionsForAccountPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./DescribeBudgetActionsForBudgetPaginator"), exports);
7
+ tslib_1.__exportStar(require("./DescribeBudgetNotificationsForAccountPaginator"), exports);
7
8
  tslib_1.__exportStar(require("./DescribeBudgetPerformanceHistoryPaginator"), exports);
8
9
  tslib_1.__exportStar(require("./DescribeBudgetsPaginator"), exports);
9
10
  tslib_1.__exportStar(require("./DescribeNotificationsForBudgetPaginator"), exports);