@aws-sdk/client-compute-optimizer 3.40.0 → 3.44.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.
- package/CHANGELOG.md +38 -0
- package/README.md +7 -10
- package/dist-cjs/ComputeOptimizer.js +60 -0
- package/dist-cjs/commands/DeleteRecommendationPreferencesCommand.js +36 -0
- package/dist-cjs/commands/GetEffectiveRecommendationPreferencesCommand.js +36 -0
- package/dist-cjs/commands/GetRecommendationPreferencesCommand.js +36 -0
- package/dist-cjs/commands/PutRecommendationPreferencesCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoints.js +172 -1
- package/dist-cjs/models/models_0.js +183 -51
- package/dist-cjs/protocols/Aws_json1_0.js +617 -1
- package/dist-es/ComputeOptimizer.js +60 -0
- package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +39 -0
- package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +39 -0
- package/dist-es/commands/GetRecommendationPreferencesCommand.js +39 -0
- package/dist-es/commands/PutRecommendationPreferencesCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoints.js +172 -1
- package/dist-es/models/models_0.js +143 -40
- package/dist-es/protocols/Aws_json1_0.js +646 -8
- package/dist-types/ComputeOptimizer.d.ts +50 -27
- package/dist-types/ComputeOptimizerClient.d.ts +6 -2
- package/dist-types/commands/DeleteRecommendationPreferencesCommand.d.ts +38 -0
- package/dist-types/commands/DescribeRecommendationExportJobsCommand.d.ts +1 -2
- package/dist-types/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +1 -3
- package/dist-types/commands/ExportEBSVolumeRecommendationsCommand.d.ts +2 -5
- package/dist-types/commands/ExportEC2InstanceRecommendationsCommand.d.ts +2 -5
- package/dist-types/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +2 -5
- package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +1 -2
- package/dist-types/commands/GetEBSVolumeRecommendationsCommand.d.ts +1 -2
- package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +1 -2
- package/dist-types/commands/GetEC2RecommendationProjectedMetricsCommand.d.ts +1 -2
- package/dist-types/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +40 -0
- package/dist-types/commands/GetEnrollmentStatusCommand.d.ts +1 -2
- package/dist-types/commands/GetEnrollmentStatusesForOrganizationCommand.d.ts +1 -2
- package/dist-types/commands/GetLambdaFunctionRecommendationsCommand.d.ts +1 -2
- package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +42 -0
- package/dist-types/commands/GetRecommendationSummariesCommand.d.ts +1 -3
- package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +39 -0
- package/dist-types/commands/UpdateEnrollmentStatusCommand.d.ts +1 -4
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +646 -282
- package/dist-types/protocols/Aws_json1_0.d.ts +12 -0
- package/dist-types/ts3.4/ComputeOptimizer.d.ts +20 -0
- package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/DeleteRecommendationPreferencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRecommendationPreferencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutRecommendationPreferencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +291 -77
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +4 -4
|
@@ -0,0 +1,42 @@
|
|
|
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 { GetRecommendationPreferencesRequest, GetRecommendationPreferencesResponse } from "../models/models_0";
|
|
5
|
+
export interface GetRecommendationPreferencesCommandInput extends GetRecommendationPreferencesRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetRecommendationPreferencesCommandOutput extends GetRecommendationPreferencesResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Returns existing recommendation preferences, such as enhanced infrastructure
|
|
11
|
+
* metrics.</p>
|
|
12
|
+
* <p>Use the <code>scope</code> parameter to specify which preferences to return. You can
|
|
13
|
+
* specify to return preferences for an organization, a specific account ID, or a specific
|
|
14
|
+
* EC2 instance or Auto Scaling group Amazon Resource Name (ARN).</p>
|
|
15
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating
|
|
16
|
+
* enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
|
|
17
|
+
* Guide</i>.</p>
|
|
18
|
+
* @example
|
|
19
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
+
* ```javascript
|
|
21
|
+
* import { ComputeOptimizerClient, GetRecommendationPreferencesCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
22
|
+
* // const { ComputeOptimizerClient, GetRecommendationPreferencesCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
23
|
+
* const client = new ComputeOptimizerClient(config);
|
|
24
|
+
* const command = new GetRecommendationPreferencesCommand(input);
|
|
25
|
+
* const response = await client.send(command);
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @see {@link GetRecommendationPreferencesCommandInput} for command's `input` shape.
|
|
29
|
+
* @see {@link GetRecommendationPreferencesCommandOutput} for command's `response` shape.
|
|
30
|
+
* @see {@link ComputeOptimizerClientResolvedConfig | config} for ComputeOptimizerClient's `config` shape.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export declare class GetRecommendationPreferencesCommand extends $Command<GetRecommendationPreferencesCommandInput, GetRecommendationPreferencesCommandOutput, ComputeOptimizerClientResolvedConfig> {
|
|
34
|
+
readonly input: GetRecommendationPreferencesCommandInput;
|
|
35
|
+
constructor(input: GetRecommendationPreferencesCommandInput);
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRecommendationPreferencesCommandInput, GetRecommendationPreferencesCommandOutput>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -8,9 +8,7 @@ export interface GetRecommendationSummariesCommandOutput extends GetRecommendati
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Returns the optimization findings for an account.</p>
|
|
11
|
-
*
|
|
12
11
|
* <p>It returns the number of:</p>
|
|
13
|
-
*
|
|
14
12
|
* <ul>
|
|
15
13
|
* <li>
|
|
16
14
|
* <p>Amazon EC2 instances in an account that are
|
|
@@ -42,7 +40,7 @@ export interface GetRecommendationSummariesCommandOutput extends GetRecommendati
|
|
|
42
40
|
*
|
|
43
41
|
* @see {@link GetRecommendationSummariesCommandInput} for command's `input` shape.
|
|
44
42
|
* @see {@link GetRecommendationSummariesCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link ComputeOptimizerClientResolvedConfig | config} for
|
|
43
|
+
* @see {@link ComputeOptimizerClientResolvedConfig | config} for ComputeOptimizerClient's `config` shape.
|
|
46
44
|
*
|
|
47
45
|
*/
|
|
48
46
|
export declare class GetRecommendationSummariesCommand extends $Command<GetRecommendationSummariesCommandInput, GetRecommendationSummariesCommandOutput, ComputeOptimizerClientResolvedConfig> {
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { PutRecommendationPreferencesRequest, PutRecommendationPreferencesResponse } from "../models/models_0";
|
|
5
|
+
export interface PutRecommendationPreferencesCommandInput extends PutRecommendationPreferencesRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface PutRecommendationPreferencesCommandOutput extends PutRecommendationPreferencesResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Creates a new recommendation preference or updates an existing recommendation
|
|
11
|
+
* preference, such as enhanced infrastructure metrics.</p>
|
|
12
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating
|
|
13
|
+
* enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
|
|
14
|
+
* Guide</i>.</p>
|
|
15
|
+
* @example
|
|
16
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
+
* ```javascript
|
|
18
|
+
* import { ComputeOptimizerClient, PutRecommendationPreferencesCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
19
|
+
* // const { ComputeOptimizerClient, PutRecommendationPreferencesCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
20
|
+
* const client = new ComputeOptimizerClient(config);
|
|
21
|
+
* const command = new PutRecommendationPreferencesCommand(input);
|
|
22
|
+
* const response = await client.send(command);
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @see {@link PutRecommendationPreferencesCommandInput} for command's `input` shape.
|
|
26
|
+
* @see {@link PutRecommendationPreferencesCommandOutput} for command's `response` shape.
|
|
27
|
+
* @see {@link ComputeOptimizerClientResolvedConfig | config} for ComputeOptimizerClient's `config` shape.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare class PutRecommendationPreferencesCommand extends $Command<PutRecommendationPreferencesCommandInput, PutRecommendationPreferencesCommandOutput, ComputeOptimizerClientResolvedConfig> {
|
|
31
|
+
readonly input: PutRecommendationPreferencesCommandInput;
|
|
32
|
+
constructor(input: PutRecommendationPreferencesCommandInput);
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutRecommendationPreferencesCommandInput, PutRecommendationPreferencesCommandOutput>;
|
|
37
|
+
private serialize;
|
|
38
|
+
private deserialize;
|
|
39
|
+
}
|
|
@@ -8,13 +8,10 @@ export interface UpdateEnrollmentStatusCommandOutput extends UpdateEnrollmentSta
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Updates the enrollment (opt in and opt out) status of an account to the Compute Optimizer service.</p>
|
|
11
|
-
*
|
|
12
11
|
* <p>If the account is a management account of an organization, this action can also be
|
|
13
12
|
* used to enroll member accounts of the organization.</p>
|
|
14
|
-
*
|
|
15
13
|
* <p>You must have the appropriate permissions to opt in to Compute Optimizer, to view its
|
|
16
14
|
* 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>
|
|
17
|
-
*
|
|
18
15
|
* <p>When you opt in, Compute Optimizer automatically creates a service-linked role in your
|
|
19
16
|
* 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
|
|
20
17
|
* Service-Linked Roles for Compute Optimizer</a> in the <i>Compute Optimizer User Guide</i>.</p>
|
|
@@ -30,7 +27,7 @@ export interface UpdateEnrollmentStatusCommandOutput extends UpdateEnrollmentSta
|
|
|
30
27
|
*
|
|
31
28
|
* @see {@link UpdateEnrollmentStatusCommandInput} for command's `input` shape.
|
|
32
29
|
* @see {@link UpdateEnrollmentStatusCommandOutput} for command's `response` shape.
|
|
33
|
-
* @see {@link ComputeOptimizerClientResolvedConfig | config} for
|
|
30
|
+
* @see {@link ComputeOptimizerClientResolvedConfig | config} for ComputeOptimizerClient's `config` shape.
|
|
34
31
|
*
|
|
35
32
|
*/
|
|
36
33
|
export declare class UpdateEnrollmentStatusCommand extends $Command<UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput, ComputeOptimizerClientResolvedConfig> {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./DeleteRecommendationPreferencesCommand";
|
|
1
2
|
export * from "./DescribeRecommendationExportJobsCommand";
|
|
2
3
|
export * from "./ExportAutoScalingGroupRecommendationsCommand";
|
|
3
4
|
export * from "./ExportEBSVolumeRecommendationsCommand";
|
|
@@ -7,8 +8,11 @@ export * from "./GetAutoScalingGroupRecommendationsCommand";
|
|
|
7
8
|
export * from "./GetEBSVolumeRecommendationsCommand";
|
|
8
9
|
export * from "./GetEC2InstanceRecommendationsCommand";
|
|
9
10
|
export * from "./GetEC2RecommendationProjectedMetricsCommand";
|
|
11
|
+
export * from "./GetEffectiveRecommendationPreferencesCommand";
|
|
10
12
|
export * from "./GetEnrollmentStatusCommand";
|
|
11
13
|
export * from "./GetEnrollmentStatusesForOrganizationCommand";
|
|
12
14
|
export * from "./GetLambdaFunctionRecommendationsCommand";
|
|
15
|
+
export * from "./GetRecommendationPreferencesCommand";
|
|
13
16
|
export * from "./GetRecommendationSummariesCommand";
|
|
17
|
+
export * from "./PutRecommendationPreferencesCommand";
|
|
14
18
|
export * from "./UpdateEnrollmentStatusCommand";
|