@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 { GetLambdaFunctionRecommendationsRequestFilterSensitiveLog, GetLambdaFunctionRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0GetLambdaFunctionRecommendationsCommand, serializeAws_json1_0GetLambdaFunctionRecommendationsCommand, } from "../protocols/Aws_json1_0";
5
- export class GetLambdaFunctionRecommendationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetLambdaFunctionRecommendationsCommand = (function (_super) {
7
+ __extends(GetLambdaFunctionRecommendationsCommand, _super);
8
+ function GetLambdaFunctionRecommendationsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetLambdaFunctionRecommendationsCommand.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 = "GetLambdaFunctionRecommendationsCommand";
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 = "GetLambdaFunctionRecommendationsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetLambdaFunctionRecommendationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetLambdaFunctionRecommendationsResponseFilterSensitiveLog,
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
+ GetLambdaFunctionRecommendationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0GetLambdaFunctionRecommendationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetLambdaFunctionRecommendationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0GetLambdaFunctionRecommendationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetLambdaFunctionRecommendationsCommand;
38
+ }($Command));
39
+ export { GetLambdaFunctionRecommendationsCommand };
@@ -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 { GetRecommendationPreferencesRequestFilterSensitiveLog, GetRecommendationPreferencesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0GetRecommendationPreferencesCommand, serializeAws_json1_0GetRecommendationPreferencesCommand, } from "../protocols/Aws_json1_0";
5
- export class GetRecommendationPreferencesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetRecommendationPreferencesCommand = (function (_super) {
7
+ __extends(GetRecommendationPreferencesCommand, _super);
8
+ function GetRecommendationPreferencesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetRecommendationPreferencesCommand.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 = "GetRecommendationPreferencesCommand";
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 = "GetRecommendationPreferencesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetRecommendationPreferencesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetRecommendationPreferencesResponseFilterSensitiveLog,
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
+ GetRecommendationPreferencesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0GetRecommendationPreferencesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetRecommendationPreferencesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0GetRecommendationPreferencesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetRecommendationPreferencesCommand;
38
+ }($Command));
39
+ export { GetRecommendationPreferencesCommand };
@@ -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 { GetRecommendationSummariesRequestFilterSensitiveLog, GetRecommendationSummariesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0GetRecommendationSummariesCommand, serializeAws_json1_0GetRecommendationSummariesCommand, } from "../protocols/Aws_json1_0";
5
- export class GetRecommendationSummariesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetRecommendationSummariesCommand = (function (_super) {
7
+ __extends(GetRecommendationSummariesCommand, _super);
8
+ function GetRecommendationSummariesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetRecommendationSummariesCommand.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 = "GetRecommendationSummariesCommand";
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 = "GetRecommendationSummariesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetRecommendationSummariesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetRecommendationSummariesResponseFilterSensitiveLog,
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
+ GetRecommendationSummariesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0GetRecommendationSummariesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetRecommendationSummariesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0GetRecommendationSummariesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetRecommendationSummariesCommand;
38
+ }($Command));
39
+ export { GetRecommendationSummariesCommand };
@@ -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 { PutRecommendationPreferencesRequestFilterSensitiveLog, PutRecommendationPreferencesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0PutRecommendationPreferencesCommand, serializeAws_json1_0PutRecommendationPreferencesCommand, } from "../protocols/Aws_json1_0";
5
- export class PutRecommendationPreferencesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var PutRecommendationPreferencesCommand = (function (_super) {
7
+ __extends(PutRecommendationPreferencesCommand, _super);
8
+ function PutRecommendationPreferencesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ PutRecommendationPreferencesCommand.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 = "PutRecommendationPreferencesCommand";
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 = "PutRecommendationPreferencesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: PutRecommendationPreferencesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: PutRecommendationPreferencesResponseFilterSensitiveLog,
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
+ PutRecommendationPreferencesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0PutRecommendationPreferencesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ PutRecommendationPreferencesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0PutRecommendationPreferencesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return PutRecommendationPreferencesCommand;
38
+ }($Command));
39
+ export { PutRecommendationPreferencesCommand };
@@ -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 { UpdateEnrollmentStatusRequestFilterSensitiveLog, UpdateEnrollmentStatusResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0UpdateEnrollmentStatusCommand, serializeAws_json1_0UpdateEnrollmentStatusCommand, } from "../protocols/Aws_json1_0";
5
- export class UpdateEnrollmentStatusCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateEnrollmentStatusCommand = (function (_super) {
7
+ __extends(UpdateEnrollmentStatusCommand, _super);
8
+ function UpdateEnrollmentStatusCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateEnrollmentStatusCommand.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 = "UpdateEnrollmentStatusCommand";
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 = "UpdateEnrollmentStatusCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateEnrollmentStatusRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateEnrollmentStatusResponseFilterSensitiveLog,
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
+ UpdateEnrollmentStatusCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0UpdateEnrollmentStatusCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateEnrollmentStatusCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0UpdateEnrollmentStatusCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateEnrollmentStatusCommand;
38
+ }($Command));
39
+ export { UpdateEnrollmentStatusCommand };
@@ -1,5 +1,6 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
+ var regionHash = {
3
4
  "af-south-1": {
4
5
  variants: [
5
6
  {
@@ -208,7 +209,7 @@ const regionHash = {
208
209
  signingRegion: "us-west-2",
209
210
  },
210
211
  };
211
- const partitionHash = {
212
+ var partitionHash = {
212
213
  aws: {
213
214
  regions: [
214
215
  "af-south-1",
@@ -328,9 +329,8 @@ const partitionHash = {
328
329
  ],
329
330
  },
330
331
  };
331
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
332
- ...options,
333
- signingService: "compute-optimizer",
334
- regionHash,
335
- partitionHash,
336
- });
332
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
333
+ return __generator(this, function (_a) {
334
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "compute-optimizer", regionHash: regionHash, partitionHash: partitionHash }))];
335
+ });
336
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class ComputeOptimizerServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, ComputeOptimizerServiceException.prototype);
3
+ var ComputeOptimizerServiceException = (function (_super) {
4
+ __extends(ComputeOptimizerServiceException, _super);
5
+ function ComputeOptimizerServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, ComputeOptimizerServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return ComputeOptimizerServiceException;
11
+ }(__ServiceException));
12
+ export { ComputeOptimizerServiceException };