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