@aws-sdk/client-cost-explorer 3.181.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/CostExplorer.js +142 -149
  3. package/dist-es/CostExplorerClient.js +22 -28
  4. package/dist-es/commands/CreateAnomalyMonitorCommand.js +21 -28
  5. package/dist-es/commands/CreateAnomalySubscriptionCommand.js +21 -28
  6. package/dist-es/commands/CreateCostCategoryDefinitionCommand.js +21 -28
  7. package/dist-es/commands/DeleteAnomalyMonitorCommand.js +21 -28
  8. package/dist-es/commands/DeleteAnomalySubscriptionCommand.js +21 -28
  9. package/dist-es/commands/DeleteCostCategoryDefinitionCommand.js +21 -28
  10. package/dist-es/commands/DescribeCostCategoryDefinitionCommand.js +21 -28
  11. package/dist-es/commands/GetAnomaliesCommand.js +21 -28
  12. package/dist-es/commands/GetAnomalyMonitorsCommand.js +21 -28
  13. package/dist-es/commands/GetAnomalySubscriptionsCommand.js +21 -28
  14. package/dist-es/commands/GetCostAndUsageCommand.js +21 -28
  15. package/dist-es/commands/GetCostAndUsageWithResourcesCommand.js +21 -28
  16. package/dist-es/commands/GetCostCategoriesCommand.js +21 -28
  17. package/dist-es/commands/GetCostForecastCommand.js +21 -28
  18. package/dist-es/commands/GetDimensionValuesCommand.js +21 -28
  19. package/dist-es/commands/GetReservationCoverageCommand.js +21 -28
  20. package/dist-es/commands/GetReservationPurchaseRecommendationCommand.js +21 -28
  21. package/dist-es/commands/GetReservationUtilizationCommand.js +21 -28
  22. package/dist-es/commands/GetRightsizingRecommendationCommand.js +21 -28
  23. package/dist-es/commands/GetSavingsPlansCoverageCommand.js +21 -28
  24. package/dist-es/commands/GetSavingsPlansPurchaseRecommendationCommand.js +21 -28
  25. package/dist-es/commands/GetSavingsPlansUtilizationCommand.js +21 -28
  26. package/dist-es/commands/GetSavingsPlansUtilizationDetailsCommand.js +21 -28
  27. package/dist-es/commands/GetTagsCommand.js +21 -28
  28. package/dist-es/commands/GetUsageForecastCommand.js +21 -28
  29. package/dist-es/commands/ListCostAllocationTagsCommand.js +21 -28
  30. package/dist-es/commands/ListCostCategoryDefinitionsCommand.js +21 -28
  31. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  32. package/dist-es/commands/ProvideAnomalyFeedbackCommand.js +21 -28
  33. package/dist-es/commands/TagResourceCommand.js +21 -28
  34. package/dist-es/commands/UntagResourceCommand.js +21 -28
  35. package/dist-es/commands/UpdateAnomalyMonitorCommand.js +21 -28
  36. package/dist-es/commands/UpdateAnomalySubscriptionCommand.js +21 -28
  37. package/dist-es/commands/UpdateCostAllocationTagsStatusCommand.js +21 -28
  38. package/dist-es/commands/UpdateCostCategoryDefinitionCommand.js +21 -28
  39. package/dist-es/endpoints.js +8 -8
  40. package/dist-es/models/CostExplorerServiceException.js +5 -10
  41. package/dist-es/models/models_0.js +587 -286
  42. package/dist-es/pagination/GetSavingsPlansCoveragePaginator.js +25 -68
  43. package/dist-es/pagination/GetSavingsPlansUtilizationDetailsPaginator.js +25 -68
  44. package/dist-es/pagination/ListCostAllocationTagsPaginator.js +25 -68
  45. package/dist-es/pagination/ListCostCategoryDefinitionsPaginator.js +25 -68
  46. package/dist-es/protocols/Aws_json1_1.js +2582 -3081
  47. package/dist-es/runtimeConfig.browser.js +26 -12
  48. package/dist-es/runtimeConfig.js +30 -12
  49. package/dist-es/runtimeConfig.native.js +8 -5
  50. package/dist-es/runtimeConfig.shared.js +8 -11
  51. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var CostExplorerClient = (function (_super) {
13
- __extends(CostExplorerClient, _super);
14
- function CostExplorerClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class CostExplorerClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- CostExplorerClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return CostExplorerClient;
38
- }(__Client));
39
- export { CostExplorerClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { CreateAnomalyMonitorRequestFilterSensitiveLog, CreateAnomalyMonitorResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateAnomalyMonitorCommand, serializeAws_json1_1CreateAnomalyMonitorCommand, } from "../protocols/Aws_json1_1";
6
- var CreateAnomalyMonitorCommand = (function (_super) {
7
- __extends(CreateAnomalyMonitorCommand, _super);
8
- function CreateAnomalyMonitorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateAnomalyMonitorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateAnomalyMonitorCommand.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 = "CostExplorerClient";
18
- var commandName = "CreateAnomalyMonitorCommand";
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 = "CostExplorerClient";
15
+ const commandName = "CreateAnomalyMonitorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateAnomalyMonitorRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateAnomalyMonitorResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateAnomalyMonitorCommand.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_1CreateAnomalyMonitorCommand(input, context);
33
- };
34
- CreateAnomalyMonitorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateAnomalyMonitorCommand(output, context);
36
- };
37
- return CreateAnomalyMonitorCommand;
38
- }($Command));
39
- export { CreateAnomalyMonitorCommand };
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 { CreateAnomalySubscriptionRequestFilterSensitiveLog, CreateAnomalySubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateAnomalySubscriptionCommand, serializeAws_json1_1CreateAnomalySubscriptionCommand, } from "../protocols/Aws_json1_1";
6
- var CreateAnomalySubscriptionCommand = (function (_super) {
7
- __extends(CreateAnomalySubscriptionCommand, _super);
8
- function CreateAnomalySubscriptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateAnomalySubscriptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateAnomalySubscriptionCommand.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 = "CostExplorerClient";
18
- var commandName = "CreateAnomalySubscriptionCommand";
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 = "CostExplorerClient";
15
+ const commandName = "CreateAnomalySubscriptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateAnomalySubscriptionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateAnomalySubscriptionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateAnomalySubscriptionCommand.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_1CreateAnomalySubscriptionCommand(input, context);
33
- };
34
- CreateAnomalySubscriptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateAnomalySubscriptionCommand(output, context);
36
- };
37
- return CreateAnomalySubscriptionCommand;
38
- }($Command));
39
- export { CreateAnomalySubscriptionCommand };
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 { CreateCostCategoryDefinitionRequestFilterSensitiveLog, CreateCostCategoryDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateCostCategoryDefinitionCommand, serializeAws_json1_1CreateCostCategoryDefinitionCommand, } from "../protocols/Aws_json1_1";
6
- var CreateCostCategoryDefinitionCommand = (function (_super) {
7
- __extends(CreateCostCategoryDefinitionCommand, _super);
8
- function CreateCostCategoryDefinitionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateCostCategoryDefinitionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateCostCategoryDefinitionCommand.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 = "CostExplorerClient";
18
- var commandName = "CreateCostCategoryDefinitionCommand";
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 = "CostExplorerClient";
15
+ const commandName = "CreateCostCategoryDefinitionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateCostCategoryDefinitionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateCostCategoryDefinitionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateCostCategoryDefinitionCommand.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_1CreateCostCategoryDefinitionCommand(input, context);
33
- };
34
- CreateCostCategoryDefinitionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateCostCategoryDefinitionCommand(output, context);
36
- };
37
- return CreateCostCategoryDefinitionCommand;
38
- }($Command));
39
- export { CreateCostCategoryDefinitionCommand };
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 { DeleteAnomalyMonitorRequestFilterSensitiveLog, DeleteAnomalyMonitorResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteAnomalyMonitorCommand, serializeAws_json1_1DeleteAnomalyMonitorCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteAnomalyMonitorCommand = (function (_super) {
7
- __extends(DeleteAnomalyMonitorCommand, _super);
8
- function DeleteAnomalyMonitorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteAnomalyMonitorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteAnomalyMonitorCommand.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 = "CostExplorerClient";
18
- var commandName = "DeleteAnomalyMonitorCommand";
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 = "CostExplorerClient";
15
+ const commandName = "DeleteAnomalyMonitorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteAnomalyMonitorRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteAnomalyMonitorResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteAnomalyMonitorCommand.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_1DeleteAnomalyMonitorCommand(input, context);
33
- };
34
- DeleteAnomalyMonitorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteAnomalyMonitorCommand(output, context);
36
- };
37
- return DeleteAnomalyMonitorCommand;
38
- }($Command));
39
- export { DeleteAnomalyMonitorCommand };
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 { DeleteAnomalySubscriptionRequestFilterSensitiveLog, DeleteAnomalySubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteAnomalySubscriptionCommand, serializeAws_json1_1DeleteAnomalySubscriptionCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteAnomalySubscriptionCommand = (function (_super) {
7
- __extends(DeleteAnomalySubscriptionCommand, _super);
8
- function DeleteAnomalySubscriptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteAnomalySubscriptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteAnomalySubscriptionCommand.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 = "CostExplorerClient";
18
- var commandName = "DeleteAnomalySubscriptionCommand";
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 = "CostExplorerClient";
15
+ const commandName = "DeleteAnomalySubscriptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteAnomalySubscriptionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteAnomalySubscriptionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteAnomalySubscriptionCommand.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_1DeleteAnomalySubscriptionCommand(input, context);
33
- };
34
- DeleteAnomalySubscriptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteAnomalySubscriptionCommand(output, context);
36
- };
37
- return DeleteAnomalySubscriptionCommand;
38
- }($Command));
39
- export { DeleteAnomalySubscriptionCommand };
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 { DeleteCostCategoryDefinitionRequestFilterSensitiveLog, DeleteCostCategoryDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteCostCategoryDefinitionCommand, serializeAws_json1_1DeleteCostCategoryDefinitionCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteCostCategoryDefinitionCommand = (function (_super) {
7
- __extends(DeleteCostCategoryDefinitionCommand, _super);
8
- function DeleteCostCategoryDefinitionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteCostCategoryDefinitionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteCostCategoryDefinitionCommand.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 = "CostExplorerClient";
18
- var commandName = "DeleteCostCategoryDefinitionCommand";
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 = "CostExplorerClient";
15
+ const commandName = "DeleteCostCategoryDefinitionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteCostCategoryDefinitionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteCostCategoryDefinitionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteCostCategoryDefinitionCommand.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_1DeleteCostCategoryDefinitionCommand(input, context);
33
- };
34
- DeleteCostCategoryDefinitionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteCostCategoryDefinitionCommand(output, context);
36
- };
37
- return DeleteCostCategoryDefinitionCommand;
38
- }($Command));
39
- export { DeleteCostCategoryDefinitionCommand };
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 { DescribeCostCategoryDefinitionRequestFilterSensitiveLog, DescribeCostCategoryDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeCostCategoryDefinitionCommand, serializeAws_json1_1DescribeCostCategoryDefinitionCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeCostCategoryDefinitionCommand = (function (_super) {
7
- __extends(DescribeCostCategoryDefinitionCommand, _super);
8
- function DescribeCostCategoryDefinitionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeCostCategoryDefinitionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeCostCategoryDefinitionCommand.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 = "CostExplorerClient";
18
- var commandName = "DescribeCostCategoryDefinitionCommand";
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 = "CostExplorerClient";
15
+ const commandName = "DescribeCostCategoryDefinitionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeCostCategoryDefinitionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeCostCategoryDefinitionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeCostCategoryDefinitionCommand.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_1DescribeCostCategoryDefinitionCommand(input, context);
33
- };
34
- DescribeCostCategoryDefinitionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeCostCategoryDefinitionCommand(output, context);
36
- };
37
- return DescribeCostCategoryDefinitionCommand;
38
- }($Command));
39
- export { DescribeCostCategoryDefinitionCommand };
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 { GetAnomaliesRequestFilterSensitiveLog, GetAnomaliesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetAnomaliesCommand, serializeAws_json1_1GetAnomaliesCommand, } from "../protocols/Aws_json1_1";
6
- var GetAnomaliesCommand = (function (_super) {
7
- __extends(GetAnomaliesCommand, _super);
8
- function GetAnomaliesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetAnomaliesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetAnomaliesCommand.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 = "CostExplorerClient";
18
- var commandName = "GetAnomaliesCommand";
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 = "CostExplorerClient";
15
+ const commandName = "GetAnomaliesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetAnomaliesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetAnomaliesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetAnomaliesCommand.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_1GetAnomaliesCommand(input, context);
33
- };
34
- GetAnomaliesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetAnomaliesCommand(output, context);
36
- };
37
- return GetAnomaliesCommand;
38
- }($Command));
39
- export { GetAnomaliesCommand };
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 { GetAnomalyMonitorsRequestFilterSensitiveLog, GetAnomalyMonitorsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetAnomalyMonitorsCommand, serializeAws_json1_1GetAnomalyMonitorsCommand, } from "../protocols/Aws_json1_1";
6
- var GetAnomalyMonitorsCommand = (function (_super) {
7
- __extends(GetAnomalyMonitorsCommand, _super);
8
- function GetAnomalyMonitorsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetAnomalyMonitorsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetAnomalyMonitorsCommand.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 = "CostExplorerClient";
18
- var commandName = "GetAnomalyMonitorsCommand";
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 = "CostExplorerClient";
15
+ const commandName = "GetAnomalyMonitorsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetAnomalyMonitorsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetAnomalyMonitorsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetAnomalyMonitorsCommand.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_1GetAnomalyMonitorsCommand(input, context);
33
- };
34
- GetAnomalyMonitorsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetAnomalyMonitorsCommand(output, context);
36
- };
37
- return GetAnomalyMonitorsCommand;
38
- }($Command));
39
- export { GetAnomalyMonitorsCommand };
31
+ }
32
+ }