@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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
18
 
8
19
 
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.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.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 = 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.DescribeBudgetNotificationsForAccountResponse = exports.BudgetNotificationsForAccount = exports.DescribeBudgetNotificationsForAccountRequest = exports.DescribeBudgetActionsForBudgetResponse = exports.DescribeBudgetActionsForBudgetRequest = exports.DescribeBudgetActionsForAccountResponse = exports.DescribeBudgetActionsForAccountRequest = exports.DescribeBudgetActionHistoriesResponse = exports.DescribeBudgetActionHistoriesRequest = exports.DescribeBudgetActionResponse = 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";
@@ -214,6 +229,62 @@ var CreateBudgetResponse;
214
229
  ...obj,
215
230
  });
216
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;
217
288
  var CreateBudgetActionRequest;
218
289
  (function (CreateBudgetActionRequest) {
219
290
  CreateBudgetActionRequest.filterSensitiveLog = (obj) => ({
@@ -227,6 +298,20 @@ var CreateBudgetActionResponse;
227
298
  ...obj,
228
299
  });
229
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;
230
315
  var CreateNotificationRequest;
231
316
  (function (CreateNotificationRequest) {
232
317
  CreateNotificationRequest.filterSensitiveLog = (obj) => ({
@@ -278,6 +363,20 @@ var DeleteBudgetActionResponse;
278
363
  ...(obj.Action && { Action: Action.filterSensitiveLog(obj.Action) }),
279
364
  });
280
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;
281
380
  var DeleteNotificationRequest;
282
381
  (function (DeleteNotificationRequest) {
283
382
  DeleteNotificationRequest.filterSensitiveLog = (obj) => ({
@@ -340,6 +439,20 @@ var DescribeBudgetActionHistoriesResponse;
340
439
  ...obj,
341
440
  });
342
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;
343
456
  var DescribeBudgetActionsForAccountRequest;
344
457
  (function (DescribeBudgetActionsForAccountRequest) {
345
458
  DescribeBudgetActionsForAccountRequest.filterSensitiveLog = (obj) => ({
@@ -382,6 +495,20 @@ var DescribeBudgetNotificationsForAccountResponse;
382
495
  ...obj,
383
496
  });
384
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;
385
512
  var DescribeBudgetPerformanceHistoryRequest;
386
513
  (function (DescribeBudgetPerformanceHistoryRequest) {
387
514
  DescribeBudgetPerformanceHistoryRequest.filterSensitiveLog = (obj) => ({