@aws-sdk/client-compute-optimizer 3.180.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 (31) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_0.js +24 -18
  3. package/dist-es/ComputeOptimizer.js +74 -81
  4. package/dist-es/ComputeOptimizerClient.js +22 -28
  5. package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +21 -28
  6. package/dist-es/commands/DescribeRecommendationExportJobsCommand.js +21 -28
  7. package/dist-es/commands/ExportAutoScalingGroupRecommendationsCommand.js +21 -28
  8. package/dist-es/commands/ExportEBSVolumeRecommendationsCommand.js +21 -28
  9. package/dist-es/commands/ExportEC2InstanceRecommendationsCommand.js +21 -28
  10. package/dist-es/commands/ExportLambdaFunctionRecommendationsCommand.js +21 -28
  11. package/dist-es/commands/GetAutoScalingGroupRecommendationsCommand.js +21 -28
  12. package/dist-es/commands/GetEBSVolumeRecommendationsCommand.js +21 -28
  13. package/dist-es/commands/GetEC2InstanceRecommendationsCommand.js +21 -28
  14. package/dist-es/commands/GetEC2RecommendationProjectedMetricsCommand.js +21 -28
  15. package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +21 -28
  16. package/dist-es/commands/GetEnrollmentStatusCommand.js +21 -28
  17. package/dist-es/commands/GetEnrollmentStatusesForOrganizationCommand.js +21 -28
  18. package/dist-es/commands/GetLambdaFunctionRecommendationsCommand.js +21 -28
  19. package/dist-es/commands/GetRecommendationPreferencesCommand.js +21 -28
  20. package/dist-es/commands/GetRecommendationSummariesCommand.js +21 -28
  21. package/dist-es/commands/PutRecommendationPreferencesCommand.js +21 -28
  22. package/dist-es/commands/UpdateEnrollmentStatusCommand.js +21 -28
  23. package/dist-es/endpoints.js +8 -8
  24. package/dist-es/models/ComputeOptimizerServiceException.js +5 -10
  25. package/dist-es/models/models_0.js +321 -174
  26. package/dist-es/protocols/Aws_json1_0.js +1679 -2051
  27. package/dist-es/runtimeConfig.browser.js +26 -12
  28. package/dist-es/runtimeConfig.js +30 -12
  29. package/dist-es/runtimeConfig.native.js +8 -5
  30. package/dist-es/runtimeConfig.shared.js +8 -11
  31. 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 { DeleteRecommendationPreferencesRequestFilterSensitiveLog, DeleteRecommendationPreferencesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0DeleteRecommendationPreferencesCommand, serializeAws_json1_0DeleteRecommendationPreferencesCommand, } from "../protocols/Aws_json1_0";
6
- var DeleteRecommendationPreferencesCommand = (function (_super) {
7
- __extends(DeleteRecommendationPreferencesCommand, _super);
8
- function DeleteRecommendationPreferencesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteRecommendationPreferencesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteRecommendationPreferencesCommand.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 = "ComputeOptimizerClient";
18
- var commandName = "DeleteRecommendationPreferencesCommand";
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 = "ComputeOptimizerClient";
15
+ const commandName = "DeleteRecommendationPreferencesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteRecommendationPreferencesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteRecommendationPreferencesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteRecommendationPreferencesCommand.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_0DeleteRecommendationPreferencesCommand(input, context);
33
- };
34
- DeleteRecommendationPreferencesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0DeleteRecommendationPreferencesCommand(output, context);
36
- };
37
- return DeleteRecommendationPreferencesCommand;
38
- }($Command));
39
- export { DeleteRecommendationPreferencesCommand };
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 { DescribeRecommendationExportJobsRequestFilterSensitiveLog, DescribeRecommendationExportJobsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0DescribeRecommendationExportJobsCommand, serializeAws_json1_0DescribeRecommendationExportJobsCommand, } from "../protocols/Aws_json1_0";
6
- var DescribeRecommendationExportJobsCommand = (function (_super) {
7
- __extends(DescribeRecommendationExportJobsCommand, _super);
8
- function DescribeRecommendationExportJobsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeRecommendationExportJobsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeRecommendationExportJobsCommand.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 = "ComputeOptimizerClient";
18
- var commandName = "DescribeRecommendationExportJobsCommand";
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 = "ComputeOptimizerClient";
15
+ const commandName = "DescribeRecommendationExportJobsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeRecommendationExportJobsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeRecommendationExportJobsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeRecommendationExportJobsCommand.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_0DescribeRecommendationExportJobsCommand(input, context);
33
- };
34
- DescribeRecommendationExportJobsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0DescribeRecommendationExportJobsCommand(output, context);
36
- };
37
- return DescribeRecommendationExportJobsCommand;
38
- }($Command));
39
- export { DescribeRecommendationExportJobsCommand };
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 { ExportAutoScalingGroupRecommendationsRequestFilterSensitiveLog, ExportAutoScalingGroupRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand, serializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand, } from "../protocols/Aws_json1_0";
6
- var ExportAutoScalingGroupRecommendationsCommand = (function (_super) {
7
- __extends(ExportAutoScalingGroupRecommendationsCommand, _super);
8
- function ExportAutoScalingGroupRecommendationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ExportAutoScalingGroupRecommendationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ExportAutoScalingGroupRecommendationsCommand.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 = "ComputeOptimizerClient";
18
- var commandName = "ExportAutoScalingGroupRecommendationsCommand";
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 = "ComputeOptimizerClient";
15
+ const commandName = "ExportAutoScalingGroupRecommendationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ExportAutoScalingGroupRecommendationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ExportAutoScalingGroupRecommendationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ExportAutoScalingGroupRecommendationsCommand.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_0ExportAutoScalingGroupRecommendationsCommand(input, context);
33
- };
34
- ExportAutoScalingGroupRecommendationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand(output, context);
36
- };
37
- return ExportAutoScalingGroupRecommendationsCommand;
38
- }($Command));
39
- export { ExportAutoScalingGroupRecommendationsCommand };
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 { ExportEBSVolumeRecommendationsRequestFilterSensitiveLog, ExportEBSVolumeRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0ExportEBSVolumeRecommendationsCommand, serializeAws_json1_0ExportEBSVolumeRecommendationsCommand, } from "../protocols/Aws_json1_0";
6
- var ExportEBSVolumeRecommendationsCommand = (function (_super) {
7
- __extends(ExportEBSVolumeRecommendationsCommand, _super);
8
- function ExportEBSVolumeRecommendationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ExportEBSVolumeRecommendationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ExportEBSVolumeRecommendationsCommand.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 = "ComputeOptimizerClient";
18
- var commandName = "ExportEBSVolumeRecommendationsCommand";
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 = "ComputeOptimizerClient";
15
+ const commandName = "ExportEBSVolumeRecommendationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ExportEBSVolumeRecommendationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ExportEBSVolumeRecommendationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ExportEBSVolumeRecommendationsCommand.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_0ExportEBSVolumeRecommendationsCommand(input, context);
33
- };
34
- ExportEBSVolumeRecommendationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0ExportEBSVolumeRecommendationsCommand(output, context);
36
- };
37
- return ExportEBSVolumeRecommendationsCommand;
38
- }($Command));
39
- export { ExportEBSVolumeRecommendationsCommand };
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 { ExportEC2InstanceRecommendationsRequestFilterSensitiveLog, ExportEC2InstanceRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0ExportEC2InstanceRecommendationsCommand, serializeAws_json1_0ExportEC2InstanceRecommendationsCommand, } from "../protocols/Aws_json1_0";
6
- var ExportEC2InstanceRecommendationsCommand = (function (_super) {
7
- __extends(ExportEC2InstanceRecommendationsCommand, _super);
8
- function ExportEC2InstanceRecommendationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ExportEC2InstanceRecommendationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ExportEC2InstanceRecommendationsCommand.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 = "ComputeOptimizerClient";
18
- var commandName = "ExportEC2InstanceRecommendationsCommand";
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 = "ComputeOptimizerClient";
15
+ const commandName = "ExportEC2InstanceRecommendationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ExportEC2InstanceRecommendationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ExportEC2InstanceRecommendationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ExportEC2InstanceRecommendationsCommand.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_0ExportEC2InstanceRecommendationsCommand(input, context);
33
- };
34
- ExportEC2InstanceRecommendationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0ExportEC2InstanceRecommendationsCommand(output, context);
36
- };
37
- return ExportEC2InstanceRecommendationsCommand;
38
- }($Command));
39
- export { ExportEC2InstanceRecommendationsCommand };
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 { ExportLambdaFunctionRecommendationsRequestFilterSensitiveLog, ExportLambdaFunctionRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommand, serializeAws_json1_0ExportLambdaFunctionRecommendationsCommand, } from "../protocols/Aws_json1_0";
6
- var ExportLambdaFunctionRecommendationsCommand = (function (_super) {
7
- __extends(ExportLambdaFunctionRecommendationsCommand, _super);
8
- function ExportLambdaFunctionRecommendationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ExportLambdaFunctionRecommendationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ExportLambdaFunctionRecommendationsCommand.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 = "ComputeOptimizerClient";
18
- var commandName = "ExportLambdaFunctionRecommendationsCommand";
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 = "ComputeOptimizerClient";
15
+ const commandName = "ExportLambdaFunctionRecommendationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ExportLambdaFunctionRecommendationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ExportLambdaFunctionRecommendationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ExportLambdaFunctionRecommendationsCommand.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_0ExportLambdaFunctionRecommendationsCommand(input, context);
33
- };
34
- ExportLambdaFunctionRecommendationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommand(output, context);
36
- };
37
- return ExportLambdaFunctionRecommendationsCommand;
38
- }($Command));
39
- export { ExportLambdaFunctionRecommendationsCommand };
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 { GetAutoScalingGroupRecommendationsRequestFilterSensitiveLog, GetAutoScalingGroupRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommand, serializeAws_json1_0GetAutoScalingGroupRecommendationsCommand, } from "../protocols/Aws_json1_0";
6
- var GetAutoScalingGroupRecommendationsCommand = (function (_super) {
7
- __extends(GetAutoScalingGroupRecommendationsCommand, _super);
8
- function GetAutoScalingGroupRecommendationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetAutoScalingGroupRecommendationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetAutoScalingGroupRecommendationsCommand.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 = "ComputeOptimizerClient";
18
- var commandName = "GetAutoScalingGroupRecommendationsCommand";
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 = "ComputeOptimizerClient";
15
+ const commandName = "GetAutoScalingGroupRecommendationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetAutoScalingGroupRecommendationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetAutoScalingGroupRecommendationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetAutoScalingGroupRecommendationsCommand.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_0GetAutoScalingGroupRecommendationsCommand(input, context);
33
- };
34
- GetAutoScalingGroupRecommendationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommand(output, context);
36
- };
37
- return GetAutoScalingGroupRecommendationsCommand;
38
- }($Command));
39
- export { GetAutoScalingGroupRecommendationsCommand };
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 { GetEBSVolumeRecommendationsRequestFilterSensitiveLog, GetEBSVolumeRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0GetEBSVolumeRecommendationsCommand, serializeAws_json1_0GetEBSVolumeRecommendationsCommand, } from "../protocols/Aws_json1_0";
6
- var GetEBSVolumeRecommendationsCommand = (function (_super) {
7
- __extends(GetEBSVolumeRecommendationsCommand, _super);
8
- function GetEBSVolumeRecommendationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetEBSVolumeRecommendationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetEBSVolumeRecommendationsCommand.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 = "ComputeOptimizerClient";
18
- var commandName = "GetEBSVolumeRecommendationsCommand";
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 = "ComputeOptimizerClient";
15
+ const commandName = "GetEBSVolumeRecommendationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetEBSVolumeRecommendationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetEBSVolumeRecommendationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetEBSVolumeRecommendationsCommand.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_0GetEBSVolumeRecommendationsCommand(input, context);
33
- };
34
- GetEBSVolumeRecommendationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0GetEBSVolumeRecommendationsCommand(output, context);
36
- };
37
- return GetEBSVolumeRecommendationsCommand;
38
- }($Command));
39
- export { GetEBSVolumeRecommendationsCommand };
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 { GetEC2InstanceRecommendationsRequestFilterSensitiveLog, GetEC2InstanceRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0GetEC2InstanceRecommendationsCommand, serializeAws_json1_0GetEC2InstanceRecommendationsCommand, } from "../protocols/Aws_json1_0";
6
- var GetEC2InstanceRecommendationsCommand = (function (_super) {
7
- __extends(GetEC2InstanceRecommendationsCommand, _super);
8
- function GetEC2InstanceRecommendationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetEC2InstanceRecommendationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetEC2InstanceRecommendationsCommand.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 = "ComputeOptimizerClient";
18
- var commandName = "GetEC2InstanceRecommendationsCommand";
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 = "ComputeOptimizerClient";
15
+ const commandName = "GetEC2InstanceRecommendationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetEC2InstanceRecommendationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetEC2InstanceRecommendationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetEC2InstanceRecommendationsCommand.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_0GetEC2InstanceRecommendationsCommand(input, context);
33
- };
34
- GetEC2InstanceRecommendationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0GetEC2InstanceRecommendationsCommand(output, context);
36
- };
37
- return GetEC2InstanceRecommendationsCommand;
38
- }($Command));
39
- export { GetEC2InstanceRecommendationsCommand };
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 { GetEC2RecommendationProjectedMetricsRequestFilterSensitiveLog, GetEC2RecommendationProjectedMetricsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand, serializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand, } from "../protocols/Aws_json1_0";
6
- var GetEC2RecommendationProjectedMetricsCommand = (function (_super) {
7
- __extends(GetEC2RecommendationProjectedMetricsCommand, _super);
8
- function GetEC2RecommendationProjectedMetricsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetEC2RecommendationProjectedMetricsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetEC2RecommendationProjectedMetricsCommand.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 = "ComputeOptimizerClient";
18
- var commandName = "GetEC2RecommendationProjectedMetricsCommand";
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 = "ComputeOptimizerClient";
15
+ const commandName = "GetEC2RecommendationProjectedMetricsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetEC2RecommendationProjectedMetricsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetEC2RecommendationProjectedMetricsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetEC2RecommendationProjectedMetricsCommand.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_0GetEC2RecommendationProjectedMetricsCommand(input, context);
33
- };
34
- GetEC2RecommendationProjectedMetricsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand(output, context);
36
- };
37
- return GetEC2RecommendationProjectedMetricsCommand;
38
- }($Command));
39
- export { GetEC2RecommendationProjectedMetricsCommand };
31
+ }
32
+ }