Skip to content

Commit

Permalink
feat(client-compute-optimizer): This release enables AWS Compute Opti…
Browse files Browse the repository at this point in the history
…mizer to analyze and generate optimization recommendations for Amazon RDS MySQL and RDS PostgreSQL.
  • Loading branch information
awstools committed Jun 20, 2024
1 parent b3374d1 commit 1cf227f
Show file tree
Hide file tree
Showing 23 changed files with 6,435 additions and 2,562 deletions.
24 changes: 24 additions & 0 deletions clients/client-compute-optimizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,14 @@ ExportLicenseRecommendations

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/compute-optimizer/command/ExportLicenseRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-compute-optimizer/Interface/ExportLicenseRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-compute-optimizer/Interface/ExportLicenseRecommendationsCommandOutput/)

</details>
<details>
<summary>
ExportRDSDatabaseRecommendations
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/compute-optimizer/command/ExportRDSDatabaseRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-compute-optimizer/Interface/ExportRDSDatabaseRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-compute-optimizer/Interface/ExportRDSDatabaseRecommendationsCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -365,6 +373,22 @@ GetLicenseRecommendations

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/compute-optimizer/command/GetLicenseRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-compute-optimizer/Interface/GetLicenseRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-compute-optimizer/Interface/GetLicenseRecommendationsCommandOutput/)

</details>
<details>
<summary>
GetRDSDatabaseRecommendationProjectedMetrics
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/compute-optimizer/command/GetRDSDatabaseRecommendationProjectedMetricsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-compute-optimizer/Interface/GetRDSDatabaseRecommendationProjectedMetricsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-compute-optimizer/Interface/GetRDSDatabaseRecommendationProjectedMetricsCommandOutput/)

</details>
<details>
<summary>
GetRDSDatabaseRecommendations
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/compute-optimizer/command/GetRDSDatabaseRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-compute-optimizer/Interface/GetRDSDatabaseRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-compute-optimizer/Interface/GetRDSDatabaseRecommendationsCommandOutput/)

</details>
<details>
<summary>
Expand Down
70 changes: 70 additions & 0 deletions clients/client-compute-optimizer/src/ComputeOptimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ import {
ExportLicenseRecommendationsCommandInput,
ExportLicenseRecommendationsCommandOutput,
} from "./commands/ExportLicenseRecommendationsCommand";
import {
ExportRDSDatabaseRecommendationsCommand,
ExportRDSDatabaseRecommendationsCommandInput,
ExportRDSDatabaseRecommendationsCommandOutput,
} from "./commands/ExportRDSDatabaseRecommendationsCommand";
import {
GetAutoScalingGroupRecommendationsCommand,
GetAutoScalingGroupRecommendationsCommandInput,
Expand Down Expand Up @@ -97,6 +102,16 @@ import {
GetLicenseRecommendationsCommandInput,
GetLicenseRecommendationsCommandOutput,
} from "./commands/GetLicenseRecommendationsCommand";
import {
GetRDSDatabaseRecommendationProjectedMetricsCommand,
GetRDSDatabaseRecommendationProjectedMetricsCommandInput,
GetRDSDatabaseRecommendationProjectedMetricsCommandOutput,
} from "./commands/GetRDSDatabaseRecommendationProjectedMetricsCommand";
import {
GetRDSDatabaseRecommendationsCommand,
GetRDSDatabaseRecommendationsCommandInput,
GetRDSDatabaseRecommendationsCommandOutput,
} from "./commands/GetRDSDatabaseRecommendationsCommand";
import {
GetRecommendationPreferencesCommand,
GetRecommendationPreferencesCommandInput,
Expand Down Expand Up @@ -128,6 +143,7 @@ const commands = {
ExportECSServiceRecommendationsCommand,
ExportLambdaFunctionRecommendationsCommand,
ExportLicenseRecommendationsCommand,
ExportRDSDatabaseRecommendationsCommand,
GetAutoScalingGroupRecommendationsCommand,
GetEBSVolumeRecommendationsCommand,
GetEC2InstanceRecommendationsCommand,
Expand All @@ -139,6 +155,8 @@ const commands = {
GetEnrollmentStatusesForOrganizationCommand,
GetLambdaFunctionRecommendationsCommand,
GetLicenseRecommendationsCommand,
GetRDSDatabaseRecommendationProjectedMetricsCommand,
GetRDSDatabaseRecommendationsCommand,
GetRecommendationPreferencesCommand,
GetRecommendationSummariesCommand,
PutRecommendationPreferencesCommand,
Expand Down Expand Up @@ -283,6 +301,23 @@ export interface ComputeOptimizer {
cb: (err: any, data?: ExportLicenseRecommendationsCommandOutput) => void
): void;

/**
* @see {@link ExportRDSDatabaseRecommendationsCommand}
*/
exportRDSDatabaseRecommendations(
args: ExportRDSDatabaseRecommendationsCommandInput,
options?: __HttpHandlerOptions
): Promise<ExportRDSDatabaseRecommendationsCommandOutput>;
exportRDSDatabaseRecommendations(
args: ExportRDSDatabaseRecommendationsCommandInput,
cb: (err: any, data?: ExportRDSDatabaseRecommendationsCommandOutput) => void
): void;
exportRDSDatabaseRecommendations(
args: ExportRDSDatabaseRecommendationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ExportRDSDatabaseRecommendationsCommandOutput) => void
): void;

/**
* @see {@link GetAutoScalingGroupRecommendationsCommand}
*/
Expand Down Expand Up @@ -478,6 +513,41 @@ export interface ComputeOptimizer {
cb: (err: any, data?: GetLicenseRecommendationsCommandOutput) => void
): void;

/**
* @see {@link GetRDSDatabaseRecommendationProjectedMetricsCommand}
*/
getRDSDatabaseRecommendationProjectedMetrics(
args: GetRDSDatabaseRecommendationProjectedMetricsCommandInput,
options?: __HttpHandlerOptions
): Promise<GetRDSDatabaseRecommendationProjectedMetricsCommandOutput>;
getRDSDatabaseRecommendationProjectedMetrics(
args: GetRDSDatabaseRecommendationProjectedMetricsCommandInput,
cb: (err: any, data?: GetRDSDatabaseRecommendationProjectedMetricsCommandOutput) => void
): void;
getRDSDatabaseRecommendationProjectedMetrics(
args: GetRDSDatabaseRecommendationProjectedMetricsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetRDSDatabaseRecommendationProjectedMetricsCommandOutput) => void
): void;

/**
* @see {@link GetRDSDatabaseRecommendationsCommand}
*/
getRDSDatabaseRecommendations(): Promise<GetRDSDatabaseRecommendationsCommandOutput>;
getRDSDatabaseRecommendations(
args: GetRDSDatabaseRecommendationsCommandInput,
options?: __HttpHandlerOptions
): Promise<GetRDSDatabaseRecommendationsCommandOutput>;
getRDSDatabaseRecommendations(
args: GetRDSDatabaseRecommendationsCommandInput,
cb: (err: any, data?: GetRDSDatabaseRecommendationsCommandOutput) => void
): void;
getRDSDatabaseRecommendations(
args: GetRDSDatabaseRecommendationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetRDSDatabaseRecommendationsCommandOutput) => void
): void;

/**
* @see {@link GetRecommendationPreferencesCommand}
*/
Expand Down
18 changes: 18 additions & 0 deletions clients/client-compute-optimizer/src/ComputeOptimizerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ import {
ExportLicenseRecommendationsCommandInput,
ExportLicenseRecommendationsCommandOutput,
} from "./commands/ExportLicenseRecommendationsCommand";
import {
ExportRDSDatabaseRecommendationsCommandInput,
ExportRDSDatabaseRecommendationsCommandOutput,
} from "./commands/ExportRDSDatabaseRecommendationsCommand";
import {
GetAutoScalingGroupRecommendationsCommandInput,
GetAutoScalingGroupRecommendationsCommandOutput,
Expand Down Expand Up @@ -129,6 +133,14 @@ import {
GetLicenseRecommendationsCommandInput,
GetLicenseRecommendationsCommandOutput,
} from "./commands/GetLicenseRecommendationsCommand";
import {
GetRDSDatabaseRecommendationProjectedMetricsCommandInput,
GetRDSDatabaseRecommendationProjectedMetricsCommandOutput,
} from "./commands/GetRDSDatabaseRecommendationProjectedMetricsCommand";
import {
GetRDSDatabaseRecommendationsCommandInput,
GetRDSDatabaseRecommendationsCommandOutput,
} from "./commands/GetRDSDatabaseRecommendationsCommand";
import {
GetRecommendationPreferencesCommandInput,
GetRecommendationPreferencesCommandOutput,
Expand Down Expand Up @@ -168,6 +180,7 @@ export type ServiceInputTypes =
| ExportECSServiceRecommendationsCommandInput
| ExportLambdaFunctionRecommendationsCommandInput
| ExportLicenseRecommendationsCommandInput
| ExportRDSDatabaseRecommendationsCommandInput
| GetAutoScalingGroupRecommendationsCommandInput
| GetEBSVolumeRecommendationsCommandInput
| GetEC2InstanceRecommendationsCommandInput
Expand All @@ -179,6 +192,8 @@ export type ServiceInputTypes =
| GetEnrollmentStatusesForOrganizationCommandInput
| GetLambdaFunctionRecommendationsCommandInput
| GetLicenseRecommendationsCommandInput
| GetRDSDatabaseRecommendationProjectedMetricsCommandInput
| GetRDSDatabaseRecommendationsCommandInput
| GetRecommendationPreferencesCommandInput
| GetRecommendationSummariesCommandInput
| PutRecommendationPreferencesCommandInput
Expand All @@ -196,6 +211,7 @@ export type ServiceOutputTypes =
| ExportECSServiceRecommendationsCommandOutput
| ExportLambdaFunctionRecommendationsCommandOutput
| ExportLicenseRecommendationsCommandOutput
| ExportRDSDatabaseRecommendationsCommandOutput
| GetAutoScalingGroupRecommendationsCommandOutput
| GetEBSVolumeRecommendationsCommandOutput
| GetEC2InstanceRecommendationsCommandOutput
Expand All @@ -207,6 +223,8 @@ export type ServiceOutputTypes =
| GetEnrollmentStatusesForOrganizationCommandOutput
| GetLambdaFunctionRecommendationsCommandOutput
| GetLicenseRecommendationsCommandOutput
| GetRDSDatabaseRecommendationProjectedMetricsCommandOutput
| GetRDSDatabaseRecommendationsCommandOutput
| GetRecommendationPreferencesCommandOutput
| GetRecommendationSummariesCommandOutput
| PutRecommendationPreferencesCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export interface DeleteRecommendationPreferencesCommandOutput
* // const { ComputeOptimizerClient, DeleteRecommendationPreferencesCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
* const client = new ComputeOptimizerClient(config);
* const input = { // DeleteRecommendationPreferencesRequest
* resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License", // required
* resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License" || "RdsDBInstance", // required
* scope: { // Scope
* name: "Organization" || "AccountId" || "ResourceArn",
* value: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface DescribeRecommendationExportJobsCommandOutput
* // metadataKey: "STRING_VALUE",
* // },
* // },
* // resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License",
* // resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License" || "RdsDBInstance",
* // status: "Queued" || "InProgress" || "Complete" || "Failed",
* // creationTimestamp: new Date("TIMESTAMP"),
* // lastUpdatedTimestamp: new Date("TIMESTAMP"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface ExportAutoScalingGroupRecommendationsCommandOutput
* },
* ],
* fieldsToExport: [ // ExportableAutoScalingGroupFields
* "AccountId" || "AutoScalingGroupArn" || "AutoScalingGroupName" || "Finding" || "UtilizationMetricsCpuMaximum" || "UtilizationMetricsMemoryMaximum" || "UtilizationMetricsEbsReadOpsPerSecondMaximum" || "UtilizationMetricsEbsWriteOpsPerSecondMaximum" || "UtilizationMetricsEbsReadBytesPerSecondMaximum" || "UtilizationMetricsEbsWriteBytesPerSecondMaximum" || "UtilizationMetricsDiskReadOpsPerSecondMaximum" || "UtilizationMetricsDiskWriteOpsPerSecondMaximum" || "UtilizationMetricsDiskReadBytesPerSecondMaximum" || "UtilizationMetricsDiskWriteBytesPerSecondMaximum" || "UtilizationMetricsNetworkInBytesPerSecondMaximum" || "UtilizationMetricsNetworkOutBytesPerSecondMaximum" || "UtilizationMetricsNetworkPacketsInPerSecondMaximum" || "UtilizationMetricsNetworkPacketsOutPerSecondMaximum" || "LookbackPeriodInDays" || "CurrentConfigurationInstanceType" || "CurrentConfigurationDesiredCapacity" || "CurrentConfigurationMinSize" || "CurrentConfigurationMaxSize" || "CurrentOnDemandPrice" || "CurrentStandardOneYearNoUpfrontReservedPrice" || "CurrentStandardThreeYearNoUpfrontReservedPrice" || "CurrentVCpus" || "CurrentMemory" || "CurrentStorage" || "CurrentNetwork" || "RecommendationOptionsConfigurationInstanceType" || "RecommendationOptionsConfigurationDesiredCapacity" || "RecommendationOptionsConfigurationMinSize" || "RecommendationOptionsConfigurationMaxSize" || "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum" || "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum" || "RecommendationOptionsPerformanceRisk" || "RecommendationOptionsOnDemandPrice" || "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice" || "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice" || "RecommendationOptionsVcpus" || "RecommendationOptionsMemory" || "RecommendationOptionsStorage" || "RecommendationOptionsNetwork" || "LastRefreshTimestamp" || "CurrentPerformanceRisk" || "RecommendationOptionsSavingsOpportunityPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrency" || "RecommendationOptionsEstimatedMonthlySavingsValue" || "EffectiveRecommendationPreferencesCpuVendorArchitectures" || "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" || "EffectiveRecommendationPreferencesInferredWorkloadTypes" || "InferredWorkloadTypes" || "RecommendationOptionsMigrationEffort" || "CurrentInstanceGpuInfo" || "RecommendationOptionsInstanceGpuInfo" || "UtilizationMetricsGpuPercentageMaximum" || "UtilizationMetricsGpuMemoryPercentageMaximum" || "RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum" || "RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum" || "EffectiveRecommendationPreferencesSavingsEstimationMode" || "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" || "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts" || "EffectiveRecommendationPreferencesPreferredResources" || "EffectiveRecommendationPreferencesLookBackPeriod",
* "AccountId" || "AutoScalingGroupArn" || "AutoScalingGroupName" || "Finding" || "UtilizationMetricsCpuMaximum" || "UtilizationMetricsMemoryMaximum" || "UtilizationMetricsEbsReadOpsPerSecondMaximum" || "UtilizationMetricsEbsWriteOpsPerSecondMaximum" || "UtilizationMetricsEbsReadBytesPerSecondMaximum" || "UtilizationMetricsEbsWriteBytesPerSecondMaximum" || "UtilizationMetricsDiskReadOpsPerSecondMaximum" || "UtilizationMetricsDiskWriteOpsPerSecondMaximum" || "UtilizationMetricsDiskReadBytesPerSecondMaximum" || "UtilizationMetricsDiskWriteBytesPerSecondMaximum" || "UtilizationMetricsNetworkInBytesPerSecondMaximum" || "UtilizationMetricsNetworkOutBytesPerSecondMaximum" || "UtilizationMetricsNetworkPacketsInPerSecondMaximum" || "UtilizationMetricsNetworkPacketsOutPerSecondMaximum" || "LookbackPeriodInDays" || "CurrentConfigurationInstanceType" || "CurrentConfigurationDesiredCapacity" || "CurrentConfigurationMinSize" || "CurrentConfigurationMaxSize" || "CurrentOnDemandPrice" || "CurrentStandardOneYearNoUpfrontReservedPrice" || "CurrentStandardThreeYearNoUpfrontReservedPrice" || "CurrentVCpus" || "CurrentMemory" || "CurrentStorage" || "CurrentNetwork" || "RecommendationOptionsConfigurationInstanceType" || "RecommendationOptionsConfigurationDesiredCapacity" || "RecommendationOptionsConfigurationMinSize" || "RecommendationOptionsConfigurationMaxSize" || "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum" || "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum" || "RecommendationOptionsPerformanceRisk" || "RecommendationOptionsOnDemandPrice" || "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice" || "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice" || "RecommendationOptionsVcpus" || "RecommendationOptionsMemory" || "RecommendationOptionsStorage" || "RecommendationOptionsNetwork" || "LastRefreshTimestamp" || "CurrentPerformanceRisk" || "RecommendationOptionsSavingsOpportunityPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrency" || "RecommendationOptionsEstimatedMonthlySavingsValue" || "EffectiveRecommendationPreferencesCpuVendorArchitectures" || "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" || "EffectiveRecommendationPreferencesInferredWorkloadTypes" || "EffectiveRecommendationPreferencesPreferredResources" || "EffectiveRecommendationPreferencesLookBackPeriod" || "InferredWorkloadTypes" || "RecommendationOptionsMigrationEffort" || "CurrentInstanceGpuInfo" || "RecommendationOptionsInstanceGpuInfo" || "UtilizationMetricsGpuPercentageMaximum" || "UtilizationMetricsGpuMemoryPercentageMaximum" || "RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum" || "RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum" || "EffectiveRecommendationPreferencesSavingsEstimationMode" || "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" || "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts",
* ],
* s3DestinationConfig: { // S3DestinationConfig
* bucket: "STRING_VALUE",
Expand Down
Loading

0 comments on commit 1cf227f

Please sign in to comment.