@aws-sdk/client-compute-optimizer 3.183.0 → 3.186.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 +19 -0
  2. package/dist-cjs/protocols/Aws_json1_0.js +2 -2
  3. package/dist-es/ComputeOptimizer.js +81 -74
  4. package/dist-es/ComputeOptimizerClient.js +28 -22
  5. package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +28 -21
  6. package/dist-es/commands/DescribeRecommendationExportJobsCommand.js +28 -21
  7. package/dist-es/commands/ExportAutoScalingGroupRecommendationsCommand.js +28 -21
  8. package/dist-es/commands/ExportEBSVolumeRecommendationsCommand.js +28 -21
  9. package/dist-es/commands/ExportEC2InstanceRecommendationsCommand.js +28 -21
  10. package/dist-es/commands/ExportLambdaFunctionRecommendationsCommand.js +28 -21
  11. package/dist-es/commands/GetAutoScalingGroupRecommendationsCommand.js +28 -21
  12. package/dist-es/commands/GetEBSVolumeRecommendationsCommand.js +28 -21
  13. package/dist-es/commands/GetEC2InstanceRecommendationsCommand.js +28 -21
  14. package/dist-es/commands/GetEC2RecommendationProjectedMetricsCommand.js +28 -21
  15. package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +28 -21
  16. package/dist-es/commands/GetEnrollmentStatusCommand.js +28 -21
  17. package/dist-es/commands/GetEnrollmentStatusesForOrganizationCommand.js +28 -21
  18. package/dist-es/commands/GetLambdaFunctionRecommendationsCommand.js +28 -21
  19. package/dist-es/commands/GetRecommendationPreferencesCommand.js +28 -21
  20. package/dist-es/commands/GetRecommendationSummariesCommand.js +28 -21
  21. package/dist-es/commands/PutRecommendationPreferencesCommand.js +28 -21
  22. package/dist-es/commands/UpdateEnrollmentStatusCommand.js +28 -21
  23. package/dist-es/endpoints.js +8 -8
  24. package/dist-es/models/ComputeOptimizerServiceException.js +10 -5
  25. package/dist-es/models/models_0.js +174 -321
  26. package/dist-es/protocols/Aws_json1_0.js +2064 -1679
  27. package/dist-es/runtimeConfig.browser.js +12 -26
  28. package/dist-es/runtimeConfig.js +12 -30
  29. package/dist-es/runtimeConfig.native.js +5 -8
  30. package/dist-es/runtimeConfig.shared.js +11 -8
  31. package/package.json +33 -33
@@ -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 { ExportEBSVolumeRecommendationsRequestFilterSensitiveLog, ExportEBSVolumeRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0ExportEBSVolumeRecommendationsCommand, serializeAws_json1_0ExportEBSVolumeRecommendationsCommand, } from "../protocols/Aws_json1_0";
5
- export class ExportEBSVolumeRecommendationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ExportEBSVolumeRecommendationsCommand.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 = "ComputeOptimizerClient";
15
- const commandName = "ExportEBSVolumeRecommendationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: ExportEBSVolumeRecommendationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ExportEBSVolumeRecommendationsResponseFilterSensitiveLog,
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
+ ExportEBSVolumeRecommendationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0ExportEBSVolumeRecommendationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ExportEBSVolumeRecommendationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0ExportEBSVolumeRecommendationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ExportEBSVolumeRecommendationsCommand;
38
+ }($Command));
39
+ export { ExportEBSVolumeRecommendationsCommand };
@@ -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 { ExportEC2InstanceRecommendationsRequestFilterSensitiveLog, ExportEC2InstanceRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0ExportEC2InstanceRecommendationsCommand, serializeAws_json1_0ExportEC2InstanceRecommendationsCommand, } from "../protocols/Aws_json1_0";
5
- export class ExportEC2InstanceRecommendationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ExportEC2InstanceRecommendationsCommand.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 = "ComputeOptimizerClient";
15
- const commandName = "ExportEC2InstanceRecommendationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: ExportEC2InstanceRecommendationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ExportEC2InstanceRecommendationsResponseFilterSensitiveLog,
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
+ ExportEC2InstanceRecommendationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0ExportEC2InstanceRecommendationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ExportEC2InstanceRecommendationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0ExportEC2InstanceRecommendationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ExportEC2InstanceRecommendationsCommand;
38
+ }($Command));
39
+ export { ExportEC2InstanceRecommendationsCommand };
@@ -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 { ExportLambdaFunctionRecommendationsRequestFilterSensitiveLog, ExportLambdaFunctionRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommand, serializeAws_json1_0ExportLambdaFunctionRecommendationsCommand, } from "../protocols/Aws_json1_0";
5
- export class ExportLambdaFunctionRecommendationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ExportLambdaFunctionRecommendationsCommand.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 = "ComputeOptimizerClient";
15
- const commandName = "ExportLambdaFunctionRecommendationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: ExportLambdaFunctionRecommendationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ExportLambdaFunctionRecommendationsResponseFilterSensitiveLog,
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
+ ExportLambdaFunctionRecommendationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0ExportLambdaFunctionRecommendationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ExportLambdaFunctionRecommendationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ExportLambdaFunctionRecommendationsCommand;
38
+ }($Command));
39
+ export { ExportLambdaFunctionRecommendationsCommand };
@@ -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 { GetAutoScalingGroupRecommendationsRequestFilterSensitiveLog, GetAutoScalingGroupRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommand, serializeAws_json1_0GetAutoScalingGroupRecommendationsCommand, } from "../protocols/Aws_json1_0";
5
- export class GetAutoScalingGroupRecommendationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetAutoScalingGroupRecommendationsCommand.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 = "ComputeOptimizerClient";
15
- const commandName = "GetAutoScalingGroupRecommendationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: GetAutoScalingGroupRecommendationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetAutoScalingGroupRecommendationsResponseFilterSensitiveLog,
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
+ GetAutoScalingGroupRecommendationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0GetAutoScalingGroupRecommendationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetAutoScalingGroupRecommendationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetAutoScalingGroupRecommendationsCommand;
38
+ }($Command));
39
+ export { GetAutoScalingGroupRecommendationsCommand };
@@ -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 { GetEBSVolumeRecommendationsRequestFilterSensitiveLog, GetEBSVolumeRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0GetEBSVolumeRecommendationsCommand, serializeAws_json1_0GetEBSVolumeRecommendationsCommand, } from "../protocols/Aws_json1_0";
5
- export class GetEBSVolumeRecommendationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetEBSVolumeRecommendationsCommand.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 = "ComputeOptimizerClient";
15
- const commandName = "GetEBSVolumeRecommendationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: GetEBSVolumeRecommendationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetEBSVolumeRecommendationsResponseFilterSensitiveLog,
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
+ GetEBSVolumeRecommendationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0GetEBSVolumeRecommendationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetEBSVolumeRecommendationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0GetEBSVolumeRecommendationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetEBSVolumeRecommendationsCommand;
38
+ }($Command));
39
+ export { GetEBSVolumeRecommendationsCommand };
@@ -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 { GetEC2InstanceRecommendationsRequestFilterSensitiveLog, GetEC2InstanceRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0GetEC2InstanceRecommendationsCommand, serializeAws_json1_0GetEC2InstanceRecommendationsCommand, } from "../protocols/Aws_json1_0";
5
- export class GetEC2InstanceRecommendationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetEC2InstanceRecommendationsCommand.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 = "ComputeOptimizerClient";
15
- const commandName = "GetEC2InstanceRecommendationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: GetEC2InstanceRecommendationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetEC2InstanceRecommendationsResponseFilterSensitiveLog,
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
+ GetEC2InstanceRecommendationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0GetEC2InstanceRecommendationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetEC2InstanceRecommendationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0GetEC2InstanceRecommendationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetEC2InstanceRecommendationsCommand;
38
+ }($Command));
39
+ export { GetEC2InstanceRecommendationsCommand };
@@ -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 { GetEC2RecommendationProjectedMetricsRequestFilterSensitiveLog, GetEC2RecommendationProjectedMetricsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand, serializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand, } from "../protocols/Aws_json1_0";
5
- export class GetEC2RecommendationProjectedMetricsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetEC2RecommendationProjectedMetricsCommand.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 = "ComputeOptimizerClient";
15
- const commandName = "GetEC2RecommendationProjectedMetricsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: GetEC2RecommendationProjectedMetricsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetEC2RecommendationProjectedMetricsResponseFilterSensitiveLog,
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
+ GetEC2RecommendationProjectedMetricsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetEC2RecommendationProjectedMetricsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetEC2RecommendationProjectedMetricsCommand;
38
+ }($Command));
39
+ export { GetEC2RecommendationProjectedMetricsCommand };
@@ -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 { GetEffectiveRecommendationPreferencesRequestFilterSensitiveLog, GetEffectiveRecommendationPreferencesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommand, serializeAws_json1_0GetEffectiveRecommendationPreferencesCommand, } from "../protocols/Aws_json1_0";
5
- export class GetEffectiveRecommendationPreferencesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetEffectiveRecommendationPreferencesCommand.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 = "ComputeOptimizerClient";
15
- const commandName = "GetEffectiveRecommendationPreferencesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: GetEffectiveRecommendationPreferencesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetEffectiveRecommendationPreferencesResponseFilterSensitiveLog,
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
+ GetEffectiveRecommendationPreferencesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0GetEffectiveRecommendationPreferencesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetEffectiveRecommendationPreferencesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetEffectiveRecommendationPreferencesCommand;
38
+ }($Command));
39
+ export { GetEffectiveRecommendationPreferencesCommand };
@@ -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 { GetEnrollmentStatusRequestFilterSensitiveLog, GetEnrollmentStatusResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0GetEnrollmentStatusCommand, serializeAws_json1_0GetEnrollmentStatusCommand, } from "../protocols/Aws_json1_0";
5
- export class GetEnrollmentStatusCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetEnrollmentStatusCommand.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 = "ComputeOptimizerClient";
15
- const commandName = "GetEnrollmentStatusCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: GetEnrollmentStatusRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetEnrollmentStatusResponseFilterSensitiveLog,
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
+ GetEnrollmentStatusCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0GetEnrollmentStatusCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetEnrollmentStatusCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0GetEnrollmentStatusCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetEnrollmentStatusCommand;
38
+ }($Command));
39
+ export { GetEnrollmentStatusCommand };
@@ -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 { GetEnrollmentStatusesForOrganizationRequestFilterSensitiveLog, GetEnrollmentStatusesForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand, serializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand, } from "../protocols/Aws_json1_0";
5
- export class GetEnrollmentStatusesForOrganizationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetEnrollmentStatusesForOrganizationCommand.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 = "ComputeOptimizerClient";
15
- const commandName = "GetEnrollmentStatusesForOrganizationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: GetEnrollmentStatusesForOrganizationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetEnrollmentStatusesForOrganizationResponseFilterSensitiveLog,
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
+ GetEnrollmentStatusesForOrganizationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetEnrollmentStatusesForOrganizationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetEnrollmentStatusesForOrganizationCommand;
38
+ }($Command));
39
+ export { GetEnrollmentStatusesForOrganizationCommand };