@aws-sdk/client-compute-optimizer 3.43.0 → 3.47.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 (63) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +7 -10
  3. package/dist-cjs/ComputeOptimizer.js +60 -0
  4. package/dist-cjs/commands/DeleteRecommendationPreferencesCommand.js +36 -0
  5. package/dist-cjs/commands/GetEffectiveRecommendationPreferencesCommand.js +36 -0
  6. package/dist-cjs/commands/GetRecommendationPreferencesCommand.js +36 -0
  7. package/dist-cjs/commands/PutRecommendationPreferencesCommand.js +36 -0
  8. package/dist-cjs/commands/index.js +4 -0
  9. package/dist-cjs/endpoints.js +1 -0
  10. package/dist-cjs/models/models_0.js +146 -68
  11. package/dist-cjs/protocols/Aws_json1_0.js +617 -1
  12. package/dist-cjs/runtimeConfig.browser.js +7 -2
  13. package/dist-cjs/runtimeConfig.js +9 -3
  14. package/dist-es/ComputeOptimizer.js +60 -0
  15. package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +39 -0
  16. package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +39 -0
  17. package/dist-es/commands/GetRecommendationPreferencesCommand.js +39 -0
  18. package/dist-es/commands/PutRecommendationPreferencesCommand.js +39 -0
  19. package/dist-es/commands/index.js +4 -0
  20. package/dist-es/endpoints.js +1 -0
  21. package/dist-es/models/models_0.js +115 -48
  22. package/dist-es/protocols/Aws_json1_0.js +646 -8
  23. package/dist-es/runtimeConfig.browser.js +12 -3
  24. package/dist-es/runtimeConfig.js +13 -6
  25. package/dist-types/ComputeOptimizer.d.ts +50 -27
  26. package/dist-types/ComputeOptimizerClient.d.ts +11 -3
  27. package/dist-types/commands/DeleteRecommendationPreferencesCommand.d.ts +38 -0
  28. package/dist-types/commands/DescribeRecommendationExportJobsCommand.d.ts +0 -1
  29. package/dist-types/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +0 -2
  30. package/dist-types/commands/ExportEBSVolumeRecommendationsCommand.d.ts +1 -4
  31. package/dist-types/commands/ExportEC2InstanceRecommendationsCommand.d.ts +1 -4
  32. package/dist-types/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +1 -4
  33. package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +0 -1
  34. package/dist-types/commands/GetEBSVolumeRecommendationsCommand.d.ts +0 -1
  35. package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +0 -1
  36. package/dist-types/commands/GetEC2RecommendationProjectedMetricsCommand.d.ts +0 -1
  37. package/dist-types/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +40 -0
  38. package/dist-types/commands/GetEnrollmentStatusCommand.d.ts +0 -1
  39. package/dist-types/commands/GetEnrollmentStatusesForOrganizationCommand.d.ts +0 -1
  40. package/dist-types/commands/GetLambdaFunctionRecommendationsCommand.d.ts +0 -1
  41. package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +42 -0
  42. package/dist-types/commands/GetRecommendationSummariesCommand.d.ts +0 -2
  43. package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +39 -0
  44. package/dist-types/commands/UpdateEnrollmentStatusCommand.d.ts +0 -3
  45. package/dist-types/commands/index.d.ts +4 -0
  46. package/dist-types/models/models_0.d.ts +603 -293
  47. package/dist-types/protocols/Aws_json1_0.d.ts +12 -0
  48. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  49. package/dist-types/runtimeConfig.d.ts +4 -3
  50. package/dist-types/runtimeConfig.native.d.ts +1 -0
  51. package/dist-types/ts3.4/ComputeOptimizer.d.ts +20 -0
  52. package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +9 -3
  53. package/dist-types/ts3.4/commands/DeleteRecommendationPreferencesCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +17 -0
  55. package/dist-types/ts3.4/commands/GetRecommendationPreferencesCommand.d.ts +17 -0
  56. package/dist-types/ts3.4/commands/PutRecommendationPreferencesCommand.d.ts +17 -0
  57. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  58. package/dist-types/ts3.4/models/models_0.d.ts +266 -88
  59. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
  60. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  61. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  62. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  63. package/package.json +38 -45
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -1,4 +1,5 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { DeleteRecommendationPreferencesCommandInput, DeleteRecommendationPreferencesCommandOutput } from "./commands/DeleteRecommendationPreferencesCommand";
2
3
  import { DescribeRecommendationExportJobsCommandInput, DescribeRecommendationExportJobsCommandOutput } from "./commands/DescribeRecommendationExportJobsCommand";
3
4
  import { ExportAutoScalingGroupRecommendationsCommandInput, ExportAutoScalingGroupRecommendationsCommandOutput } from "./commands/ExportAutoScalingGroupRecommendationsCommand";
4
5
  import { ExportEBSVolumeRecommendationsCommandInput, ExportEBSVolumeRecommendationsCommandOutput } from "./commands/ExportEBSVolumeRecommendationsCommand";
@@ -8,10 +9,13 @@ import { GetAutoScalingGroupRecommendationsCommandInput, GetAutoScalingGroupReco
8
9
  import { GetEBSVolumeRecommendationsCommandInput, GetEBSVolumeRecommendationsCommandOutput } from "./commands/GetEBSVolumeRecommendationsCommand";
9
10
  import { GetEC2InstanceRecommendationsCommandInput, GetEC2InstanceRecommendationsCommandOutput } from "./commands/GetEC2InstanceRecommendationsCommand";
10
11
  import { GetEC2RecommendationProjectedMetricsCommandInput, GetEC2RecommendationProjectedMetricsCommandOutput } from "./commands/GetEC2RecommendationProjectedMetricsCommand";
12
+ import { GetEffectiveRecommendationPreferencesCommandInput, GetEffectiveRecommendationPreferencesCommandOutput } from "./commands/GetEffectiveRecommendationPreferencesCommand";
11
13
  import { GetEnrollmentStatusCommandInput, GetEnrollmentStatusCommandOutput } from "./commands/GetEnrollmentStatusCommand";
12
14
  import { GetEnrollmentStatusesForOrganizationCommandInput, GetEnrollmentStatusesForOrganizationCommandOutput } from "./commands/GetEnrollmentStatusesForOrganizationCommand";
13
15
  import { GetLambdaFunctionRecommendationsCommandInput, GetLambdaFunctionRecommendationsCommandOutput } from "./commands/GetLambdaFunctionRecommendationsCommand";
16
+ import { GetRecommendationPreferencesCommandInput, GetRecommendationPreferencesCommandOutput } from "./commands/GetRecommendationPreferencesCommand";
14
17
  import { GetRecommendationSummariesCommandInput, GetRecommendationSummariesCommandOutput } from "./commands/GetRecommendationSummariesCommand";
18
+ import { PutRecommendationPreferencesCommandInput, PutRecommendationPreferencesCommandOutput } from "./commands/PutRecommendationPreferencesCommand";
15
19
  import { UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput } from "./commands/UpdateEnrollmentStatusCommand";
16
20
  import { ComputeOptimizerClient } from "./ComputeOptimizerClient";
17
21
  /**
@@ -28,9 +32,17 @@ import { ComputeOptimizerClient } from "./ComputeOptimizerClient";
28
32
  * service, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/">Compute Optimizer User Guide</a>.</p>
29
33
  */
30
34
  export declare class ComputeOptimizer extends ComputeOptimizerClient {
35
+ /**
36
+ * <p>Deletes a recommendation preference, such as enhanced infrastructure metrics.</p>
37
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating
38
+ * enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
39
+ * Guide</i>.</p>
40
+ */
41
+ deleteRecommendationPreferences(args: DeleteRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRecommendationPreferencesCommandOutput>;
42
+ deleteRecommendationPreferences(args: DeleteRecommendationPreferencesCommandInput, cb: (err: any, data?: DeleteRecommendationPreferencesCommandOutput) => void): void;
43
+ deleteRecommendationPreferences(args: DeleteRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRecommendationPreferencesCommandOutput) => void): void;
31
44
  /**
32
45
  * <p>Describes recommendation export jobs created in the last seven days.</p>
33
- *
34
46
  * <p>Use the <a>ExportAutoScalingGroupRecommendations</a> or <a>ExportEC2InstanceRecommendations</a> actions to request an export of your
35
47
  * recommendations. Then use the <a>DescribeRecommendationExportJobs</a> action
36
48
  * to view your export jobs.</p>
@@ -40,12 +52,10 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
40
52
  describeRecommendationExportJobs(args: DescribeRecommendationExportJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRecommendationExportJobsCommandOutput) => void): void;
41
53
  /**
42
54
  * <p>Exports optimization recommendations for Auto Scaling groups.</p>
43
- *
44
55
  * <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
45
56
  * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
46
57
  * Recommendations</a> in the <i>Compute Optimizer User
47
58
  * Guide</i>.</p>
48
- *
49
59
  * <p>You can have only one Auto Scaling group export job in progress per Amazon Web Services Region.</p>
50
60
  */
51
61
  exportAutoScalingGroupRecommendations(args: ExportAutoScalingGroupRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportAutoScalingGroupRecommendationsCommandOutput>;
@@ -53,13 +63,10 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
53
63
  exportAutoScalingGroupRecommendations(args: ExportAutoScalingGroupRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportAutoScalingGroupRecommendationsCommandOutput) => void): void;
54
64
  /**
55
65
  * <p>Exports optimization recommendations for Amazon EBS volumes.</p>
56
- *
57
66
  * <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
58
- * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see
59
- * <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
67
+ * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
60
68
  * Recommendations</a> in the <i>Compute Optimizer User
61
69
  * Guide</i>.</p>
62
- *
63
70
  * <p>You can have only one Amazon EBS volume export job in progress per Amazon Web Services Region.</p>
64
71
  */
65
72
  exportEBSVolumeRecommendations(args: ExportEBSVolumeRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportEBSVolumeRecommendationsCommandOutput>;
@@ -67,13 +74,10 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
67
74
  exportEBSVolumeRecommendations(args: ExportEBSVolumeRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportEBSVolumeRecommendationsCommandOutput) => void): void;
68
75
  /**
69
76
  * <p>Exports optimization recommendations for Amazon EC2 instances.</p>
70
- *
71
77
  * <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
72
- * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see
73
- * <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
78
+ * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
74
79
  * Recommendations</a> in the <i>Compute Optimizer User
75
80
  * Guide</i>.</p>
76
- *
77
81
  * <p>You can have only one Amazon EC2 instance export job in progress per Amazon Web Services Region.</p>
78
82
  */
79
83
  exportEC2InstanceRecommendations(args: ExportEC2InstanceRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportEC2InstanceRecommendationsCommandOutput>;
@@ -81,13 +85,10 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
81
85
  exportEC2InstanceRecommendations(args: ExportEC2InstanceRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportEC2InstanceRecommendationsCommandOutput) => void): void;
82
86
  /**
83
87
  * <p>Exports optimization recommendations for Lambda functions.</p>
84
- *
85
88
  * <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
86
- * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see
87
- * <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
89
+ * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
88
90
  * Recommendations</a> in the <i>Compute Optimizer User
89
91
  * Guide</i>.</p>
90
- *
91
92
  * <p>You can have only one Lambda function export job in progress per Amazon Web Services Region.</p>
92
93
  */
93
94
  exportLambdaFunctionRecommendations(args: ExportLambdaFunctionRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportLambdaFunctionRecommendationsCommandOutput>;
@@ -95,7 +96,6 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
95
96
  exportLambdaFunctionRecommendations(args: ExportLambdaFunctionRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportLambdaFunctionRecommendationsCommandOutput) => void): void;
96
97
  /**
97
98
  * <p>Returns Auto Scaling group recommendations.</p>
98
- *
99
99
  * <p>Compute Optimizer generates recommendations for Amazon EC2 Auto Scaling groups that
100
100
  * meet a specific set of requirements. For more information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported
101
101
  * resources and requirements</a> in the <i>Compute Optimizer User
@@ -106,7 +106,6 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
106
106
  getAutoScalingGroupRecommendations(args: GetAutoScalingGroupRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAutoScalingGroupRecommendationsCommandOutput) => void): void;
107
107
  /**
108
108
  * <p>Returns Amazon Elastic Block Store (Amazon EBS) volume recommendations.</p>
109
- *
110
109
  * <p>Compute Optimizer generates recommendations for Amazon EBS volumes that
111
110
  * meet a specific set of requirements. For more information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported
112
111
  * resources and requirements</a> in the <i>Compute Optimizer User
@@ -117,7 +116,6 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
117
116
  getEBSVolumeRecommendations(args: GetEBSVolumeRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEBSVolumeRecommendationsCommandOutput) => void): void;
118
117
  /**
119
118
  * <p>Returns Amazon EC2 instance recommendations.</p>
120
- *
121
119
  * <p>Compute Optimizer generates recommendations for Amazon Elastic Compute Cloud (Amazon EC2) instances that meet a specific set of requirements. For more
122
120
  * information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported resources and
123
121
  * requirements</a> in the <i>Compute Optimizer User
@@ -129,7 +127,6 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
129
127
  /**
130
128
  * <p>Returns the projected utilization metrics of Amazon EC2 instance
131
129
  * recommendations.</p>
132
- *
133
130
  * <note>
134
131
  * <p>The <code>Cpu</code> and <code>Memory</code> metrics are the only projected
135
132
  * utilization metrics returned when you run this action. Additionally, the
@@ -140,10 +137,20 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
140
137
  getEC2RecommendationProjectedMetrics(args: GetEC2RecommendationProjectedMetricsCommandInput, options?: __HttpHandlerOptions): Promise<GetEC2RecommendationProjectedMetricsCommandOutput>;
141
138
  getEC2RecommendationProjectedMetrics(args: GetEC2RecommendationProjectedMetricsCommandInput, cb: (err: any, data?: GetEC2RecommendationProjectedMetricsCommandOutput) => void): void;
142
139
  getEC2RecommendationProjectedMetrics(args: GetEC2RecommendationProjectedMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEC2RecommendationProjectedMetricsCommandOutput) => void): void;
140
+ /**
141
+ * <p>Returns the recommendation preferences that are in effect for a given resource, such
142
+ * as enhanced infrastructure metrics. Considers all applicable preferences that you might
143
+ * have set at the resource, account, and organization level.</p>
144
+ * <p>When you create a recommendation preference, you can set its status to
145
+ * <code>Active</code> or <code>Inactive</code>. Use this action to view the
146
+ * recommendation preferences that are in effect, or <code>Active</code>.</p>
147
+ */
148
+ getEffectiveRecommendationPreferences(args: GetEffectiveRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetEffectiveRecommendationPreferencesCommandOutput>;
149
+ getEffectiveRecommendationPreferences(args: GetEffectiveRecommendationPreferencesCommandInput, cb: (err: any, data?: GetEffectiveRecommendationPreferencesCommandOutput) => void): void;
150
+ getEffectiveRecommendationPreferences(args: GetEffectiveRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEffectiveRecommendationPreferencesCommandOutput) => void): void;
143
151
  /**
144
152
  * <p>Returns the enrollment (opt in) status of an account to the Compute Optimizer
145
153
  * service.</p>
146
- *
147
154
  * <p>If the account is the management account of an organization, this action also confirms
148
155
  * the enrollment status of member accounts of the organization. Use the <a>GetEnrollmentStatusesForOrganization</a> action to get detailed information
149
156
  * about the enrollment status of member accounts of an organization.</p>
@@ -154,7 +161,6 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
154
161
  /**
155
162
  * <p>Returns the Compute Optimizer enrollment (opt-in) status of organization member
156
163
  * accounts, if your account is an organization management account.</p>
157
- *
158
164
  * <p>To get the enrollment status of standalone accounts, use the <a>GetEnrollmentStatus</a> action.</p>
159
165
  */
160
166
  getEnrollmentStatusesForOrganization(args: GetEnrollmentStatusesForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<GetEnrollmentStatusesForOrganizationCommandOutput>;
@@ -162,7 +168,6 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
162
168
  getEnrollmentStatusesForOrganization(args: GetEnrollmentStatusesForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnrollmentStatusesForOrganizationCommandOutput) => void): void;
163
169
  /**
164
170
  * <p>Returns Lambda function recommendations.</p>
165
- *
166
171
  * <p>Compute Optimizer generates recommendations for functions that meet a specific set
167
172
  * of requirements. For more information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported resources and
168
173
  * requirements</a> in the <i>Compute Optimizer User
@@ -171,11 +176,22 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
171
176
  getLambdaFunctionRecommendations(args: GetLambdaFunctionRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<GetLambdaFunctionRecommendationsCommandOutput>;
172
177
  getLambdaFunctionRecommendations(args: GetLambdaFunctionRecommendationsCommandInput, cb: (err: any, data?: GetLambdaFunctionRecommendationsCommandOutput) => void): void;
173
178
  getLambdaFunctionRecommendations(args: GetLambdaFunctionRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLambdaFunctionRecommendationsCommandOutput) => void): void;
179
+ /**
180
+ * <p>Returns existing recommendation preferences, such as enhanced infrastructure
181
+ * metrics.</p>
182
+ * <p>Use the <code>scope</code> parameter to specify which preferences to return. You can
183
+ * specify to return preferences for an organization, a specific account ID, or a specific
184
+ * EC2 instance or Auto Scaling group Amazon Resource Name (ARN).</p>
185
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating
186
+ * enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
187
+ * Guide</i>.</p>
188
+ */
189
+ getRecommendationPreferences(args: GetRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetRecommendationPreferencesCommandOutput>;
190
+ getRecommendationPreferences(args: GetRecommendationPreferencesCommandInput, cb: (err: any, data?: GetRecommendationPreferencesCommandOutput) => void): void;
191
+ getRecommendationPreferences(args: GetRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecommendationPreferencesCommandOutput) => void): void;
174
192
  /**
175
193
  * <p>Returns the optimization findings for an account.</p>
176
- *
177
194
  * <p>It returns the number of:</p>
178
- *
179
195
  * <ul>
180
196
  * <li>
181
197
  * <p>Amazon EC2 instances in an account that are
@@ -199,15 +215,22 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
199
215
  getRecommendationSummaries(args: GetRecommendationSummariesCommandInput, options?: __HttpHandlerOptions): Promise<GetRecommendationSummariesCommandOutput>;
200
216
  getRecommendationSummaries(args: GetRecommendationSummariesCommandInput, cb: (err: any, data?: GetRecommendationSummariesCommandOutput) => void): void;
201
217
  getRecommendationSummaries(args: GetRecommendationSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecommendationSummariesCommandOutput) => void): void;
218
+ /**
219
+ * <p>Creates a new recommendation preference or updates an existing recommendation
220
+ * preference, such as enhanced infrastructure metrics.</p>
221
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating
222
+ * enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
223
+ * Guide</i>.</p>
224
+ */
225
+ putRecommendationPreferences(args: PutRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<PutRecommendationPreferencesCommandOutput>;
226
+ putRecommendationPreferences(args: PutRecommendationPreferencesCommandInput, cb: (err: any, data?: PutRecommendationPreferencesCommandOutput) => void): void;
227
+ putRecommendationPreferences(args: PutRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRecommendationPreferencesCommandOutput) => void): void;
202
228
  /**
203
229
  * <p>Updates the enrollment (opt in and opt out) status of an account to the Compute Optimizer service.</p>
204
- *
205
230
  * <p>If the account is a management account of an organization, this action can also be
206
231
  * used to enroll member accounts of the organization.</p>
207
- *
208
232
  * <p>You must have the appropriate permissions to opt in to Compute Optimizer, to view its
209
233
  * recommendations, and to opt out. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html">Controlling access with Amazon Web Services Identity and Access Management</a> in the <i>Compute Optimizer User Guide</i>.</p>
210
- *
211
234
  * <p>When you opt in, Compute Optimizer automatically creates a service-linked role in your
212
235
  * account to access its data. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/using-service-linked-roles.html">Using
213
236
  * Service-Linked Roles for Compute Optimizer</a> in the <i>Compute Optimizer User Guide</i>.</p>
@@ -4,8 +4,9 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { DeleteRecommendationPreferencesCommandInput, DeleteRecommendationPreferencesCommandOutput } from "./commands/DeleteRecommendationPreferencesCommand";
9
10
  import { DescribeRecommendationExportJobsCommandInput, DescribeRecommendationExportJobsCommandOutput } from "./commands/DescribeRecommendationExportJobsCommand";
10
11
  import { ExportAutoScalingGroupRecommendationsCommandInput, ExportAutoScalingGroupRecommendationsCommandOutput } from "./commands/ExportAutoScalingGroupRecommendationsCommand";
11
12
  import { ExportEBSVolumeRecommendationsCommandInput, ExportEBSVolumeRecommendationsCommandOutput } from "./commands/ExportEBSVolumeRecommendationsCommand";
@@ -15,13 +16,16 @@ import { GetAutoScalingGroupRecommendationsCommandInput, GetAutoScalingGroupReco
15
16
  import { GetEBSVolumeRecommendationsCommandInput, GetEBSVolumeRecommendationsCommandOutput } from "./commands/GetEBSVolumeRecommendationsCommand";
16
17
  import { GetEC2InstanceRecommendationsCommandInput, GetEC2InstanceRecommendationsCommandOutput } from "./commands/GetEC2InstanceRecommendationsCommand";
17
18
  import { GetEC2RecommendationProjectedMetricsCommandInput, GetEC2RecommendationProjectedMetricsCommandOutput } from "./commands/GetEC2RecommendationProjectedMetricsCommand";
19
+ import { GetEffectiveRecommendationPreferencesCommandInput, GetEffectiveRecommendationPreferencesCommandOutput } from "./commands/GetEffectiveRecommendationPreferencesCommand";
18
20
  import { GetEnrollmentStatusCommandInput, GetEnrollmentStatusCommandOutput } from "./commands/GetEnrollmentStatusCommand";
19
21
  import { GetEnrollmentStatusesForOrganizationCommandInput, GetEnrollmentStatusesForOrganizationCommandOutput } from "./commands/GetEnrollmentStatusesForOrganizationCommand";
20
22
  import { GetLambdaFunctionRecommendationsCommandInput, GetLambdaFunctionRecommendationsCommandOutput } from "./commands/GetLambdaFunctionRecommendationsCommand";
23
+ import { GetRecommendationPreferencesCommandInput, GetRecommendationPreferencesCommandOutput } from "./commands/GetRecommendationPreferencesCommand";
21
24
  import { GetRecommendationSummariesCommandInput, GetRecommendationSummariesCommandOutput } from "./commands/GetRecommendationSummariesCommand";
25
+ import { PutRecommendationPreferencesCommandInput, PutRecommendationPreferencesCommandOutput } from "./commands/PutRecommendationPreferencesCommand";
22
26
  import { UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput } from "./commands/UpdateEnrollmentStatusCommand";
23
- export declare type ServiceInputTypes = DescribeRecommendationExportJobsCommandInput | ExportAutoScalingGroupRecommendationsCommandInput | ExportEBSVolumeRecommendationsCommandInput | ExportEC2InstanceRecommendationsCommandInput | ExportLambdaFunctionRecommendationsCommandInput | GetAutoScalingGroupRecommendationsCommandInput | GetEBSVolumeRecommendationsCommandInput | GetEC2InstanceRecommendationsCommandInput | GetEC2RecommendationProjectedMetricsCommandInput | GetEnrollmentStatusCommandInput | GetEnrollmentStatusesForOrganizationCommandInput | GetLambdaFunctionRecommendationsCommandInput | GetRecommendationSummariesCommandInput | UpdateEnrollmentStatusCommandInput;
24
- export declare type ServiceOutputTypes = DescribeRecommendationExportJobsCommandOutput | ExportAutoScalingGroupRecommendationsCommandOutput | ExportEBSVolumeRecommendationsCommandOutput | ExportEC2InstanceRecommendationsCommandOutput | ExportLambdaFunctionRecommendationsCommandOutput | GetAutoScalingGroupRecommendationsCommandOutput | GetEBSVolumeRecommendationsCommandOutput | GetEC2InstanceRecommendationsCommandOutput | GetEC2RecommendationProjectedMetricsCommandOutput | GetEnrollmentStatusCommandOutput | GetEnrollmentStatusesForOrganizationCommandOutput | GetLambdaFunctionRecommendationsCommandOutput | GetRecommendationSummariesCommandOutput | UpdateEnrollmentStatusCommandOutput;
27
+ export declare type ServiceInputTypes = DeleteRecommendationPreferencesCommandInput | DescribeRecommendationExportJobsCommandInput | ExportAutoScalingGroupRecommendationsCommandInput | ExportEBSVolumeRecommendationsCommandInput | ExportEC2InstanceRecommendationsCommandInput | ExportLambdaFunctionRecommendationsCommandInput | GetAutoScalingGroupRecommendationsCommandInput | GetEBSVolumeRecommendationsCommandInput | GetEC2InstanceRecommendationsCommandInput | GetEC2RecommendationProjectedMetricsCommandInput | GetEffectiveRecommendationPreferencesCommandInput | GetEnrollmentStatusCommandInput | GetEnrollmentStatusesForOrganizationCommandInput | GetLambdaFunctionRecommendationsCommandInput | GetRecommendationPreferencesCommandInput | GetRecommendationSummariesCommandInput | PutRecommendationPreferencesCommandInput | UpdateEnrollmentStatusCommandInput;
28
+ export declare type ServiceOutputTypes = DeleteRecommendationPreferencesCommandOutput | DescribeRecommendationExportJobsCommandOutput | ExportAutoScalingGroupRecommendationsCommandOutput | ExportEBSVolumeRecommendationsCommandOutput | ExportEC2InstanceRecommendationsCommandOutput | ExportLambdaFunctionRecommendationsCommandOutput | GetAutoScalingGroupRecommendationsCommandOutput | GetEBSVolumeRecommendationsCommandOutput | GetEC2InstanceRecommendationsCommandOutput | GetEC2RecommendationProjectedMetricsCommandOutput | GetEffectiveRecommendationPreferencesCommandOutput | GetEnrollmentStatusCommandOutput | GetEnrollmentStatusesForOrganizationCommandOutput | GetLambdaFunctionRecommendationsCommandOutput | GetRecommendationPreferencesCommandOutput | GetRecommendationSummariesCommandOutput | PutRecommendationPreferencesCommandOutput | UpdateEnrollmentStatusCommandOutput;
25
29
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
26
30
  /**
27
31
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -122,6 +126,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
122
126
  * @internal
123
127
  */
124
128
  defaultUserAgentProvider?: Provider<__UserAgent>;
129
+ /**
130
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
131
+ */
132
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
125
133
  }
126
134
  declare type ComputeOptimizerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
127
135
  /**
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerClient";
4
+ import { DeleteRecommendationPreferencesRequest, DeleteRecommendationPreferencesResponse } from "../models/models_0";
5
+ export interface DeleteRecommendationPreferencesCommandInput extends DeleteRecommendationPreferencesRequest {
6
+ }
7
+ export interface DeleteRecommendationPreferencesCommandOutput extends DeleteRecommendationPreferencesResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Deletes a recommendation preference, such as enhanced infrastructure metrics.</p>
11
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating
12
+ * enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
13
+ * Guide</i>.</p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { ComputeOptimizerClient, DeleteRecommendationPreferencesCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
18
+ * // const { ComputeOptimizerClient, DeleteRecommendationPreferencesCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
19
+ * const client = new ComputeOptimizerClient(config);
20
+ * const command = new DeleteRecommendationPreferencesCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link DeleteRecommendationPreferencesCommandInput} for command's `input` shape.
25
+ * @see {@link DeleteRecommendationPreferencesCommandOutput} for command's `response` shape.
26
+ * @see {@link ComputeOptimizerClientResolvedConfig | config} for ComputeOptimizerClient's `config` shape.
27
+ *
28
+ */
29
+ export declare class DeleteRecommendationPreferencesCommand extends $Command<DeleteRecommendationPreferencesCommandInput, DeleteRecommendationPreferencesCommandOutput, ComputeOptimizerClientResolvedConfig> {
30
+ readonly input: DeleteRecommendationPreferencesCommandInput;
31
+ constructor(input: DeleteRecommendationPreferencesCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteRecommendationPreferencesCommandInput, DeleteRecommendationPreferencesCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -8,7 +8,6 @@ export interface DescribeRecommendationExportJobsCommandOutput extends DescribeR
8
8
  }
9
9
  /**
10
10
  * <p>Describes recommendation export jobs created in the last seven days.</p>
11
- *
12
11
  * <p>Use the <a>ExportAutoScalingGroupRecommendations</a> or <a>ExportEC2InstanceRecommendations</a> actions to request an export of your
13
12
  * recommendations. Then use the <a>DescribeRecommendationExportJobs</a> action
14
13
  * to view your export jobs.</p>
@@ -8,12 +8,10 @@ export interface ExportAutoScalingGroupRecommendationsCommandOutput extends Expo
8
8
  }
9
9
  /**
10
10
  * <p>Exports optimization recommendations for Auto Scaling groups.</p>
11
- *
12
11
  * <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
13
12
  * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
14
13
  * Recommendations</a> in the <i>Compute Optimizer User
15
14
  * Guide</i>.</p>
16
- *
17
15
  * <p>You can have only one Auto Scaling group export job in progress per Amazon Web Services Region.</p>
18
16
  * @example
19
17
  * Use a bare-bones client and the command you need to make an API call.
@@ -8,13 +8,10 @@ export interface ExportEBSVolumeRecommendationsCommandOutput extends ExportEBSVo
8
8
  }
9
9
  /**
10
10
  * <p>Exports optimization recommendations for Amazon EBS volumes.</p>
11
- *
12
11
  * <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
13
- * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see
14
- * <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
12
+ * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
15
13
  * Recommendations</a> in the <i>Compute Optimizer User
16
14
  * Guide</i>.</p>
17
- *
18
15
  * <p>You can have only one Amazon EBS volume export job in progress per Amazon Web Services Region.</p>
19
16
  * @example
20
17
  * Use a bare-bones client and the command you need to make an API call.
@@ -8,13 +8,10 @@ export interface ExportEC2InstanceRecommendationsCommandOutput extends ExportEC2
8
8
  }
9
9
  /**
10
10
  * <p>Exports optimization recommendations for Amazon EC2 instances.</p>
11
- *
12
11
  * <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
13
- * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see
14
- * <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
12
+ * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
15
13
  * Recommendations</a> in the <i>Compute Optimizer User
16
14
  * Guide</i>.</p>
17
- *
18
15
  * <p>You can have only one Amazon EC2 instance export job in progress per Amazon Web Services Region.</p>
19
16
  * @example
20
17
  * Use a bare-bones client and the command you need to make an API call.
@@ -8,13 +8,10 @@ export interface ExportLambdaFunctionRecommendationsCommandOutput extends Export
8
8
  }
9
9
  /**
10
10
  * <p>Exports optimization recommendations for Lambda functions.</p>
11
- *
12
11
  * <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
13
- * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see
14
- * <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
12
+ * in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
15
13
  * Recommendations</a> in the <i>Compute Optimizer User
16
14
  * Guide</i>.</p>
17
- *
18
15
  * <p>You can have only one Lambda function export job in progress per Amazon Web Services Region.</p>
19
16
  * @example
20
17
  * Use a bare-bones client and the command you need to make an API call.
@@ -8,7 +8,6 @@ export interface GetAutoScalingGroupRecommendationsCommandOutput extends GetAuto
8
8
  }
9
9
  /**
10
10
  * <p>Returns Auto Scaling group recommendations.</p>
11
- *
12
11
  * <p>Compute Optimizer generates recommendations for Amazon EC2 Auto Scaling groups that
13
12
  * meet a specific set of requirements. For more information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported
14
13
  * resources and requirements</a> in the <i>Compute Optimizer User
@@ -8,7 +8,6 @@ export interface GetEBSVolumeRecommendationsCommandOutput extends GetEBSVolumeRe
8
8
  }
9
9
  /**
10
10
  * <p>Returns Amazon Elastic Block Store (Amazon EBS) volume recommendations.</p>
11
- *
12
11
  * <p>Compute Optimizer generates recommendations for Amazon EBS volumes that
13
12
  * meet a specific set of requirements. For more information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported
14
13
  * resources and requirements</a> in the <i>Compute Optimizer User
@@ -8,7 +8,6 @@ export interface GetEC2InstanceRecommendationsCommandOutput extends GetEC2Instan
8
8
  }
9
9
  /**
10
10
  * <p>Returns Amazon EC2 instance recommendations.</p>
11
- *
12
11
  * <p>Compute Optimizer generates recommendations for Amazon Elastic Compute Cloud (Amazon EC2) instances that meet a specific set of requirements. For more
13
12
  * information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported resources and
14
13
  * requirements</a> in the <i>Compute Optimizer User
@@ -9,7 +9,6 @@ export interface GetEC2RecommendationProjectedMetricsCommandOutput extends GetEC
9
9
  /**
10
10
  * <p>Returns the projected utilization metrics of Amazon EC2 instance
11
11
  * recommendations.</p>
12
- *
13
12
  * <note>
14
13
  * <p>The <code>Cpu</code> and <code>Memory</code> metrics are the only projected
15
14
  * utilization metrics returned when you run this action. Additionally, the
@@ -0,0 +1,40 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerClient";
4
+ import { GetEffectiveRecommendationPreferencesRequest, GetEffectiveRecommendationPreferencesResponse } from "../models/models_0";
5
+ export interface GetEffectiveRecommendationPreferencesCommandInput extends GetEffectiveRecommendationPreferencesRequest {
6
+ }
7
+ export interface GetEffectiveRecommendationPreferencesCommandOutput extends GetEffectiveRecommendationPreferencesResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Returns the recommendation preferences that are in effect for a given resource, such
11
+ * as enhanced infrastructure metrics. Considers all applicable preferences that you might
12
+ * have set at the resource, account, and organization level.</p>
13
+ * <p>When you create a recommendation preference, you can set its status to
14
+ * <code>Active</code> or <code>Inactive</code>. Use this action to view the
15
+ * recommendation preferences that are in effect, or <code>Active</code>.</p>
16
+ * @example
17
+ * Use a bare-bones client and the command you need to make an API call.
18
+ * ```javascript
19
+ * import { ComputeOptimizerClient, GetEffectiveRecommendationPreferencesCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
20
+ * // const { ComputeOptimizerClient, GetEffectiveRecommendationPreferencesCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
21
+ * const client = new ComputeOptimizerClient(config);
22
+ * const command = new GetEffectiveRecommendationPreferencesCommand(input);
23
+ * const response = await client.send(command);
24
+ * ```
25
+ *
26
+ * @see {@link GetEffectiveRecommendationPreferencesCommandInput} for command's `input` shape.
27
+ * @see {@link GetEffectiveRecommendationPreferencesCommandOutput} for command's `response` shape.
28
+ * @see {@link ComputeOptimizerClientResolvedConfig | config} for ComputeOptimizerClient's `config` shape.
29
+ *
30
+ */
31
+ export declare class GetEffectiveRecommendationPreferencesCommand extends $Command<GetEffectiveRecommendationPreferencesCommandInput, GetEffectiveRecommendationPreferencesCommandOutput, ComputeOptimizerClientResolvedConfig> {
32
+ readonly input: GetEffectiveRecommendationPreferencesCommandInput;
33
+ constructor(input: GetEffectiveRecommendationPreferencesCommandInput);
34
+ /**
35
+ * @internal
36
+ */
37
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetEffectiveRecommendationPreferencesCommandInput, GetEffectiveRecommendationPreferencesCommandOutput>;
38
+ private serialize;
39
+ private deserialize;
40
+ }
@@ -9,7 +9,6 @@ export interface GetEnrollmentStatusCommandOutput extends GetEnrollmentStatusRes
9
9
  /**
10
10
  * <p>Returns the enrollment (opt in) status of an account to the Compute Optimizer
11
11
  * service.</p>
12
- *
13
12
  * <p>If the account is the management account of an organization, this action also confirms
14
13
  * the enrollment status of member accounts of the organization. Use the <a>GetEnrollmentStatusesForOrganization</a> action to get detailed information
15
14
  * about the enrollment status of member accounts of an organization.</p>
@@ -9,7 +9,6 @@ export interface GetEnrollmentStatusesForOrganizationCommandOutput extends GetEn
9
9
  /**
10
10
  * <p>Returns the Compute Optimizer enrollment (opt-in) status of organization member
11
11
  * accounts, if your account is an organization management account.</p>
12
- *
13
12
  * <p>To get the enrollment status of standalone accounts, use the <a>GetEnrollmentStatus</a> action.</p>
14
13
  * @example
15
14
  * Use a bare-bones client and the command you need to make an API call.
@@ -8,7 +8,6 @@ export interface GetLambdaFunctionRecommendationsCommandOutput extends GetLambda
8
8
  }
9
9
  /**
10
10
  * <p>Returns Lambda function recommendations.</p>
11
- *
12
11
  * <p>Compute Optimizer generates recommendations for functions that meet a specific set
13
12
  * of requirements. For more information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported resources and
14
13
  * requirements</a> in the <i>Compute Optimizer User