@aws-sdk/client-budgets 3.185.0 → 3.188.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 (43) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Budgets.js +94 -101
  3. package/dist-es/BudgetsClient.js +22 -28
  4. package/dist-es/commands/CreateBudgetActionCommand.js +21 -28
  5. package/dist-es/commands/CreateBudgetCommand.js +21 -28
  6. package/dist-es/commands/CreateNotificationCommand.js +21 -28
  7. package/dist-es/commands/CreateSubscriberCommand.js +21 -28
  8. package/dist-es/commands/DeleteBudgetActionCommand.js +21 -28
  9. package/dist-es/commands/DeleteBudgetCommand.js +21 -28
  10. package/dist-es/commands/DeleteNotificationCommand.js +21 -28
  11. package/dist-es/commands/DeleteSubscriberCommand.js +21 -28
  12. package/dist-es/commands/DescribeBudgetActionCommand.js +21 -28
  13. package/dist-es/commands/DescribeBudgetActionHistoriesCommand.js +21 -28
  14. package/dist-es/commands/DescribeBudgetActionsForAccountCommand.js +21 -28
  15. package/dist-es/commands/DescribeBudgetActionsForBudgetCommand.js +21 -28
  16. package/dist-es/commands/DescribeBudgetCommand.js +21 -28
  17. package/dist-es/commands/DescribeBudgetNotificationsForAccountCommand.js +21 -28
  18. package/dist-es/commands/DescribeBudgetPerformanceHistoryCommand.js +21 -28
  19. package/dist-es/commands/DescribeBudgetsCommand.js +21 -28
  20. package/dist-es/commands/DescribeNotificationsForBudgetCommand.js +21 -28
  21. package/dist-es/commands/DescribeSubscribersForNotificationCommand.js +21 -28
  22. package/dist-es/commands/ExecuteBudgetActionCommand.js +21 -28
  23. package/dist-es/commands/UpdateBudgetActionCommand.js +21 -28
  24. package/dist-es/commands/UpdateBudgetCommand.js +21 -28
  25. package/dist-es/commands/UpdateNotificationCommand.js +21 -28
  26. package/dist-es/commands/UpdateSubscriberCommand.js +21 -28
  27. package/dist-es/endpoints.js +8 -8
  28. package/dist-es/models/BudgetsServiceException.js +5 -10
  29. package/dist-es/models/models_0.js +340 -190
  30. package/dist-es/pagination/DescribeBudgetActionHistoriesPaginator.js +25 -68
  31. package/dist-es/pagination/DescribeBudgetActionsForAccountPaginator.js +25 -68
  32. package/dist-es/pagination/DescribeBudgetActionsForBudgetPaginator.js +25 -68
  33. package/dist-es/pagination/DescribeBudgetNotificationsForAccountPaginator.js +25 -68
  34. package/dist-es/pagination/DescribeBudgetPerformanceHistoryPaginator.js +25 -68
  35. package/dist-es/pagination/DescribeBudgetsPaginator.js +25 -68
  36. package/dist-es/pagination/DescribeNotificationsForBudgetPaginator.js +25 -68
  37. package/dist-es/pagination/DescribeSubscribersForNotificationPaginator.js +25 -68
  38. package/dist-es/protocols/Aws_json1_1.js +1894 -2302
  39. package/dist-es/runtimeConfig.browser.js +26 -12
  40. package/dist-es/runtimeConfig.js +30 -12
  41. package/dist-es/runtimeConfig.native.js +8 -5
  42. package/dist-es/runtimeConfig.shared.js +8 -11
  43. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateNotificationRequestFilterSensitiveLog, CreateNotificationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateNotificationCommand, serializeAws_json1_1CreateNotificationCommand, } from "../protocols/Aws_json1_1";
6
- var CreateNotificationCommand = (function (_super) {
7
- __extends(CreateNotificationCommand, _super);
8
- function CreateNotificationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateNotificationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateNotificationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BudgetsClient";
18
- var commandName = "CreateNotificationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BudgetsClient";
15
+ const commandName = "CreateNotificationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateNotificationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateNotificationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateNotificationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1CreateNotificationCommand(input, context);
33
- };
34
- CreateNotificationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateNotificationCommand(output, context);
36
- };
37
- return CreateNotificationCommand;
38
- }($Command));
39
- export { CreateNotificationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateSubscriberRequestFilterSensitiveLog, CreateSubscriberResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateSubscriberCommand, serializeAws_json1_1CreateSubscriberCommand, } from "../protocols/Aws_json1_1";
6
- var CreateSubscriberCommand = (function (_super) {
7
- __extends(CreateSubscriberCommand, _super);
8
- function CreateSubscriberCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateSubscriberCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateSubscriberCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BudgetsClient";
18
- var commandName = "CreateSubscriberCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BudgetsClient";
15
+ const commandName = "CreateSubscriberCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateSubscriberRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateSubscriberResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateSubscriberCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1CreateSubscriberCommand(input, context);
33
- };
34
- CreateSubscriberCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateSubscriberCommand(output, context);
36
- };
37
- return CreateSubscriberCommand;
38
- }($Command));
39
- export { CreateSubscriberCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteBudgetActionRequestFilterSensitiveLog, DeleteBudgetActionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteBudgetActionCommand, serializeAws_json1_1DeleteBudgetActionCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteBudgetActionCommand = (function (_super) {
7
- __extends(DeleteBudgetActionCommand, _super);
8
- function DeleteBudgetActionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteBudgetActionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteBudgetActionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BudgetsClient";
18
- var commandName = "DeleteBudgetActionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BudgetsClient";
15
+ const commandName = "DeleteBudgetActionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteBudgetActionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteBudgetActionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteBudgetActionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DeleteBudgetActionCommand(input, context);
33
- };
34
- DeleteBudgetActionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteBudgetActionCommand(output, context);
36
- };
37
- return DeleteBudgetActionCommand;
38
- }($Command));
39
- export { DeleteBudgetActionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteBudgetRequestFilterSensitiveLog, DeleteBudgetResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteBudgetCommand, serializeAws_json1_1DeleteBudgetCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteBudgetCommand = (function (_super) {
7
- __extends(DeleteBudgetCommand, _super);
8
- function DeleteBudgetCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteBudgetCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteBudgetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BudgetsClient";
18
- var commandName = "DeleteBudgetCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BudgetsClient";
15
+ const commandName = "DeleteBudgetCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteBudgetRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteBudgetResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteBudgetCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DeleteBudgetCommand(input, context);
33
- };
34
- DeleteBudgetCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteBudgetCommand(output, context);
36
- };
37
- return DeleteBudgetCommand;
38
- }($Command));
39
- export { DeleteBudgetCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteNotificationRequestFilterSensitiveLog, DeleteNotificationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteNotificationCommand, serializeAws_json1_1DeleteNotificationCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteNotificationCommand = (function (_super) {
7
- __extends(DeleteNotificationCommand, _super);
8
- function DeleteNotificationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteNotificationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteNotificationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BudgetsClient";
18
- var commandName = "DeleteNotificationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BudgetsClient";
15
+ const commandName = "DeleteNotificationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteNotificationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteNotificationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteNotificationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DeleteNotificationCommand(input, context);
33
- };
34
- DeleteNotificationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteNotificationCommand(output, context);
36
- };
37
- return DeleteNotificationCommand;
38
- }($Command));
39
- export { DeleteNotificationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteSubscriberRequestFilterSensitiveLog, DeleteSubscriberResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteSubscriberCommand, serializeAws_json1_1DeleteSubscriberCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteSubscriberCommand = (function (_super) {
7
- __extends(DeleteSubscriberCommand, _super);
8
- function DeleteSubscriberCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteSubscriberCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteSubscriberCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BudgetsClient";
18
- var commandName = "DeleteSubscriberCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BudgetsClient";
15
+ const commandName = "DeleteSubscriberCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteSubscriberRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteSubscriberResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteSubscriberCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DeleteSubscriberCommand(input, context);
33
- };
34
- DeleteSubscriberCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteSubscriberCommand(output, context);
36
- };
37
- return DeleteSubscriberCommand;
38
- }($Command));
39
- export { DeleteSubscriberCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeBudgetActionRequestFilterSensitiveLog, DescribeBudgetActionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeBudgetActionCommand, serializeAws_json1_1DescribeBudgetActionCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeBudgetActionCommand = (function (_super) {
7
- __extends(DescribeBudgetActionCommand, _super);
8
- function DescribeBudgetActionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeBudgetActionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeBudgetActionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BudgetsClient";
18
- var commandName = "DescribeBudgetActionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BudgetsClient";
15
+ const commandName = "DescribeBudgetActionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeBudgetActionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeBudgetActionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeBudgetActionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeBudgetActionCommand(input, context);
33
- };
34
- DescribeBudgetActionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeBudgetActionCommand(output, context);
36
- };
37
- return DescribeBudgetActionCommand;
38
- }($Command));
39
- export { DescribeBudgetActionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeBudgetActionHistoriesRequestFilterSensitiveLog, DescribeBudgetActionHistoriesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeBudgetActionHistoriesCommand, serializeAws_json1_1DescribeBudgetActionHistoriesCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeBudgetActionHistoriesCommand = (function (_super) {
7
- __extends(DescribeBudgetActionHistoriesCommand, _super);
8
- function DescribeBudgetActionHistoriesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeBudgetActionHistoriesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeBudgetActionHistoriesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BudgetsClient";
18
- var commandName = "DescribeBudgetActionHistoriesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BudgetsClient";
15
+ const commandName = "DescribeBudgetActionHistoriesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeBudgetActionHistoriesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeBudgetActionHistoriesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeBudgetActionHistoriesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeBudgetActionHistoriesCommand(input, context);
33
- };
34
- DescribeBudgetActionHistoriesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeBudgetActionHistoriesCommand(output, context);
36
- };
37
- return DescribeBudgetActionHistoriesCommand;
38
- }($Command));
39
- export { DescribeBudgetActionHistoriesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeBudgetActionsForAccountRequestFilterSensitiveLog, DescribeBudgetActionsForAccountResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeBudgetActionsForAccountCommand, serializeAws_json1_1DescribeBudgetActionsForAccountCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeBudgetActionsForAccountCommand = (function (_super) {
7
- __extends(DescribeBudgetActionsForAccountCommand, _super);
8
- function DescribeBudgetActionsForAccountCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeBudgetActionsForAccountCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeBudgetActionsForAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BudgetsClient";
18
- var commandName = "DescribeBudgetActionsForAccountCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BudgetsClient";
15
+ const commandName = "DescribeBudgetActionsForAccountCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeBudgetActionsForAccountRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeBudgetActionsForAccountResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeBudgetActionsForAccountCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeBudgetActionsForAccountCommand(input, context);
33
- };
34
- DescribeBudgetActionsForAccountCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeBudgetActionsForAccountCommand(output, context);
36
- };
37
- return DescribeBudgetActionsForAccountCommand;
38
- }($Command));
39
- export { DescribeBudgetActionsForAccountCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeBudgetActionsForBudgetRequestFilterSensitiveLog, DescribeBudgetActionsForBudgetResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeBudgetActionsForBudgetCommand, serializeAws_json1_1DescribeBudgetActionsForBudgetCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeBudgetActionsForBudgetCommand = (function (_super) {
7
- __extends(DescribeBudgetActionsForBudgetCommand, _super);
8
- function DescribeBudgetActionsForBudgetCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeBudgetActionsForBudgetCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeBudgetActionsForBudgetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BudgetsClient";
18
- var commandName = "DescribeBudgetActionsForBudgetCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BudgetsClient";
15
+ const commandName = "DescribeBudgetActionsForBudgetCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeBudgetActionsForBudgetRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeBudgetActionsForBudgetResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeBudgetActionsForBudgetCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeBudgetActionsForBudgetCommand(input, context);
33
- };
34
- DescribeBudgetActionsForBudgetCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeBudgetActionsForBudgetCommand(output, context);
36
- };
37
- return DescribeBudgetActionsForBudgetCommand;
38
- }($Command));
39
- export { DescribeBudgetActionsForBudgetCommand };
31
+ }
32
+ }