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