@aws-sdk/client-compute-optimizer 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 (30) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/ComputeOptimizer.js +74 -81
  3. package/dist-es/ComputeOptimizerClient.js +22 -28
  4. package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +21 -28
  5. package/dist-es/commands/DescribeRecommendationExportJobsCommand.js +21 -28
  6. package/dist-es/commands/ExportAutoScalingGroupRecommendationsCommand.js +21 -28
  7. package/dist-es/commands/ExportEBSVolumeRecommendationsCommand.js +21 -28
  8. package/dist-es/commands/ExportEC2InstanceRecommendationsCommand.js +21 -28
  9. package/dist-es/commands/ExportLambdaFunctionRecommendationsCommand.js +21 -28
  10. package/dist-es/commands/GetAutoScalingGroupRecommendationsCommand.js +21 -28
  11. package/dist-es/commands/GetEBSVolumeRecommendationsCommand.js +21 -28
  12. package/dist-es/commands/GetEC2InstanceRecommendationsCommand.js +21 -28
  13. package/dist-es/commands/GetEC2RecommendationProjectedMetricsCommand.js +21 -28
  14. package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +21 -28
  15. package/dist-es/commands/GetEnrollmentStatusCommand.js +21 -28
  16. package/dist-es/commands/GetEnrollmentStatusesForOrganizationCommand.js +21 -28
  17. package/dist-es/commands/GetLambdaFunctionRecommendationsCommand.js +21 -28
  18. package/dist-es/commands/GetRecommendationPreferencesCommand.js +21 -28
  19. package/dist-es/commands/GetRecommendationSummariesCommand.js +21 -28
  20. package/dist-es/commands/PutRecommendationPreferencesCommand.js +21 -28
  21. package/dist-es/commands/UpdateEnrollmentStatusCommand.js +21 -28
  22. package/dist-es/endpoints.js +8 -8
  23. package/dist-es/models/ComputeOptimizerServiceException.js +5 -10
  24. package/dist-es/models/models_0.js +321 -174
  25. package/dist-es/protocols/Aws_json1_0.js +1679 -2064
  26. package/dist-es/runtimeConfig.browser.js +26 -12
  27. package/dist-es/runtimeConfig.js +30 -12
  28. package/dist-es/runtimeConfig.native.js +8 -5
  29. package/dist-es/runtimeConfig.shared.js +8 -11
  30. 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 { 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
+ }
@@ -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 { GetEffectiveRecommendationPreferencesRequestFilterSensitiveLog, GetEffectiveRecommendationPreferencesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommand, serializeAws_json1_0GetEffectiveRecommendationPreferencesCommand, } from "../protocols/Aws_json1_0";
6
- var GetEffectiveRecommendationPreferencesCommand = (function (_super) {
7
- __extends(GetEffectiveRecommendationPreferencesCommand, _super);
8
- function GetEffectiveRecommendationPreferencesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetEffectiveRecommendationPreferencesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetEffectiveRecommendationPreferencesCommand.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 = "GetEffectiveRecommendationPreferencesCommand";
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 = "GetEffectiveRecommendationPreferencesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetEffectiveRecommendationPreferencesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetEffectiveRecommendationPreferencesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetEffectiveRecommendationPreferencesCommand.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_0GetEffectiveRecommendationPreferencesCommand(input, context);
33
- };
34
- GetEffectiveRecommendationPreferencesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommand(output, context);
36
- };
37
- return GetEffectiveRecommendationPreferencesCommand;
38
- }($Command));
39
- export { GetEffectiveRecommendationPreferencesCommand };
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 { GetEnrollmentStatusRequestFilterSensitiveLog, GetEnrollmentStatusResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0GetEnrollmentStatusCommand, serializeAws_json1_0GetEnrollmentStatusCommand, } from "../protocols/Aws_json1_0";
6
- var GetEnrollmentStatusCommand = (function (_super) {
7
- __extends(GetEnrollmentStatusCommand, _super);
8
- function GetEnrollmentStatusCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetEnrollmentStatusCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetEnrollmentStatusCommand.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 = "GetEnrollmentStatusCommand";
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 = "GetEnrollmentStatusCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetEnrollmentStatusRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetEnrollmentStatusResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetEnrollmentStatusCommand.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_0GetEnrollmentStatusCommand(input, context);
33
- };
34
- GetEnrollmentStatusCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0GetEnrollmentStatusCommand(output, context);
36
- };
37
- return GetEnrollmentStatusCommand;
38
- }($Command));
39
- export { GetEnrollmentStatusCommand };
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 { GetEnrollmentStatusesForOrganizationRequestFilterSensitiveLog, GetEnrollmentStatusesForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand, serializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand, } from "../protocols/Aws_json1_0";
6
- var GetEnrollmentStatusesForOrganizationCommand = (function (_super) {
7
- __extends(GetEnrollmentStatusesForOrganizationCommand, _super);
8
- function GetEnrollmentStatusesForOrganizationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetEnrollmentStatusesForOrganizationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetEnrollmentStatusesForOrganizationCommand.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 = "GetEnrollmentStatusesForOrganizationCommand";
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 = "GetEnrollmentStatusesForOrganizationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetEnrollmentStatusesForOrganizationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetEnrollmentStatusesForOrganizationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetEnrollmentStatusesForOrganizationCommand.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_0GetEnrollmentStatusesForOrganizationCommand(input, context);
33
- };
34
- GetEnrollmentStatusesForOrganizationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand(output, context);
36
- };
37
- return GetEnrollmentStatusesForOrganizationCommand;
38
- }($Command));
39
- export { GetEnrollmentStatusesForOrganizationCommand };
31
+ }
32
+ }