@aws-sdk/client-compute-optimizer 3.600.0 → 3.602.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/README.md +24 -0
- package/dist-cjs/index.js +410 -2
- package/dist-es/ComputeOptimizer.js +6 -0
- package/dist-es/commands/ExportRDSDatabaseRecommendationsCommand.js +24 -0
- package/dist-es/commands/GetRDSDatabaseRecommendationProjectedMetricsCommand.js +24 -0
- package/dist-es/commands/GetRDSDatabaseRecommendationsCommand.js +24 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +125 -0
- package/dist-es/protocols/Aws_json1_0.js +220 -0
- package/dist-types/ComputeOptimizer.d.ts +22 -0
- package/dist-types/ComputeOptimizerClient.d.ts +5 -2
- package/dist-types/commands/DeleteRecommendationPreferencesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRecommendationExportJobsCommand.d.ts +1 -1
- package/dist-types/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ExportEBSVolumeRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ExportEC2InstanceRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ExportRDSDatabaseRecommendationsCommand.d.ts +121 -0
- package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +17 -17
- package/dist-types/commands/GetEBSVolumeRecommendationsCommand.d.ts +5 -5
- package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +10 -10
- package/dist-types/commands/GetECSServiceRecommendationsCommand.d.ts +12 -12
- package/dist-types/commands/GetLambdaFunctionRecommendationsCommand.d.ts +5 -5
- package/dist-types/commands/GetRDSDatabaseRecommendationProjectedMetricsCommand.d.ts +112 -0
- package/dist-types/commands/GetRDSDatabaseRecommendationsCommand.d.ts +223 -0
- package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +2 -2
- package/dist-types/commands/GetRecommendationSummariesCommand.d.ts +1 -1
- package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +1316 -209
- package/dist-types/protocols/Aws_json1_0.d.ts +27 -0
- package/dist-types/ts3.4/ComputeOptimizer.d.ts +58 -0
- package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/ExportRDSDatabaseRecommendationsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetRDSDatabaseRecommendationProjectedMetricsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetRDSDatabaseRecommendationsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +275 -9
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
- package/package.json +1 -1
|
@@ -52,7 +52,7 @@ declare const ExportEC2InstanceRecommendationsCommand_base: {
|
|
|
52
52
|
* },
|
|
53
53
|
* ],
|
|
54
54
|
* fieldsToExport: [ // ExportableInstanceFields
|
|
55
|
-
* "AccountId" || "InstanceArn" || "InstanceName" || "Finding" || "FindingReasonCodes" || "LookbackPeriodInDays" || "CurrentInstanceType" || "UtilizationMetricsCpuMaximum" || "UtilizationMetricsMemoryMaximum" || "UtilizationMetricsEbsReadOpsPerSecondMaximum" || "UtilizationMetricsEbsWriteOpsPerSecondMaximum" || "UtilizationMetricsEbsReadBytesPerSecondMaximum" || "UtilizationMetricsEbsWriteBytesPerSecondMaximum" || "UtilizationMetricsDiskReadOpsPerSecondMaximum" || "UtilizationMetricsDiskWriteOpsPerSecondMaximum" || "UtilizationMetricsDiskReadBytesPerSecondMaximum" || "UtilizationMetricsDiskWriteBytesPerSecondMaximum" || "UtilizationMetricsNetworkInBytesPerSecondMaximum" || "UtilizationMetricsNetworkOutBytesPerSecondMaximum" || "UtilizationMetricsNetworkPacketsInPerSecondMaximum" || "UtilizationMetricsNetworkPacketsOutPerSecondMaximum" || "CurrentOnDemandPrice" || "CurrentStandardOneYearNoUpfrontReservedPrice" || "CurrentStandardThreeYearNoUpfrontReservedPrice" || "CurrentVCpus" || "CurrentMemory" || "CurrentStorage" || "CurrentNetwork" || "RecommendationOptionsInstanceType" || "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum" || "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum" || "RecommendationOptionsPlatformDifferences" || "RecommendationOptionsPerformanceRisk" || "RecommendationOptionsVcpus" || "RecommendationOptionsMemory" || "RecommendationOptionsStorage" || "RecommendationOptionsNetwork" || "RecommendationOptionsOnDemandPrice" || "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice" || "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice" || "RecommendationsSourcesRecommendationSourceArn" || "RecommendationsSourcesRecommendationSourceType" || "LastRefreshTimestamp" || "CurrentPerformanceRisk" || "RecommendationOptionsSavingsOpportunityPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrency" || "RecommendationOptionsEstimatedMonthlySavingsValue" || "EffectiveRecommendationPreferencesCpuVendorArchitectures" || "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" || "EffectiveRecommendationPreferencesInferredWorkloadTypes" || "InferredWorkloadTypes" || "RecommendationOptionsMigrationEffort" || "EffectiveRecommendationPreferencesExternalMetricsSource" || "
|
|
55
|
+
* "AccountId" || "InstanceArn" || "InstanceName" || "Finding" || "FindingReasonCodes" || "LookbackPeriodInDays" || "CurrentInstanceType" || "UtilizationMetricsCpuMaximum" || "UtilizationMetricsMemoryMaximum" || "UtilizationMetricsEbsReadOpsPerSecondMaximum" || "UtilizationMetricsEbsWriteOpsPerSecondMaximum" || "UtilizationMetricsEbsReadBytesPerSecondMaximum" || "UtilizationMetricsEbsWriteBytesPerSecondMaximum" || "UtilizationMetricsDiskReadOpsPerSecondMaximum" || "UtilizationMetricsDiskWriteOpsPerSecondMaximum" || "UtilizationMetricsDiskReadBytesPerSecondMaximum" || "UtilizationMetricsDiskWriteBytesPerSecondMaximum" || "UtilizationMetricsNetworkInBytesPerSecondMaximum" || "UtilizationMetricsNetworkOutBytesPerSecondMaximum" || "UtilizationMetricsNetworkPacketsInPerSecondMaximum" || "UtilizationMetricsNetworkPacketsOutPerSecondMaximum" || "CurrentOnDemandPrice" || "CurrentStandardOneYearNoUpfrontReservedPrice" || "CurrentStandardThreeYearNoUpfrontReservedPrice" || "CurrentVCpus" || "CurrentMemory" || "CurrentStorage" || "CurrentNetwork" || "RecommendationOptionsInstanceType" || "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum" || "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum" || "RecommendationOptionsPlatformDifferences" || "RecommendationOptionsPerformanceRisk" || "RecommendationOptionsVcpus" || "RecommendationOptionsMemory" || "RecommendationOptionsStorage" || "RecommendationOptionsNetwork" || "RecommendationOptionsOnDemandPrice" || "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice" || "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice" || "RecommendationsSourcesRecommendationSourceArn" || "RecommendationsSourcesRecommendationSourceType" || "LastRefreshTimestamp" || "CurrentPerformanceRisk" || "RecommendationOptionsSavingsOpportunityPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrency" || "RecommendationOptionsEstimatedMonthlySavingsValue" || "EffectiveRecommendationPreferencesCpuVendorArchitectures" || "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" || "EffectiveRecommendationPreferencesInferredWorkloadTypes" || "InferredWorkloadTypes" || "RecommendationOptionsMigrationEffort" || "EffectiveRecommendationPreferencesExternalMetricsSource" || "Tags" || "InstanceState" || "ExternalMetricStatusCode" || "ExternalMetricStatusReason" || "CurrentInstanceGpuInfo" || "RecommendationOptionsInstanceGpuInfo" || "UtilizationMetricsGpuPercentageMaximum" || "UtilizationMetricsGpuMemoryPercentageMaximum" || "RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum" || "RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum" || "Idle" || "EffectiveRecommendationPreferencesPreferredResources" || "EffectiveRecommendationPreferencesLookBackPeriod" || "EffectiveRecommendationPreferencesUtilizationPreferences" || "EffectiveRecommendationPreferencesSavingsEstimationMode" || "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" || "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts",
|
|
56
56
|
* ],
|
|
57
57
|
* s3DestinationConfig: { // S3DestinationConfig
|
|
58
58
|
* bucket: "STRING_VALUE",
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerClient";
|
|
4
|
+
import { ExportRDSDatabaseRecommendationsRequest, ExportRDSDatabaseRecommendationsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ExportRDSDatabaseRecommendationsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ExportRDSDatabaseRecommendationsCommandInput extends ExportRDSDatabaseRecommendationsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ExportRDSDatabaseRecommendationsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ExportRDSDatabaseRecommendationsCommandOutput extends ExportRDSDatabaseRecommendationsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ExportRDSDatabaseRecommendationsCommand_base: {
|
|
25
|
+
new (input: ExportRDSDatabaseRecommendationsCommandInput): import("@smithy/smithy-client").CommandImpl<ExportRDSDatabaseRecommendationsCommandInput, ExportRDSDatabaseRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ExportRDSDatabaseRecommendationsCommandInput): import("@smithy/smithy-client").CommandImpl<ExportRDSDatabaseRecommendationsCommandInput, ExportRDSDatabaseRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>
|
|
31
|
+
* Export optimization recommendations for your Amazon Relational Database Service (Amazon RDS).
|
|
32
|
+
* </p>
|
|
33
|
+
* <p>Recommendations are exported in a comma-separated values (CSV) file, and its metadata
|
|
34
|
+
* in a JavaScript Object Notation (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
|
|
35
|
+
* Recommendations</a> in the <i>Compute Optimizer User
|
|
36
|
+
* Guide</i>.</p>
|
|
37
|
+
* <p>You can have only one Amazon RDS export job in progress per Amazon Web Services Region.</p>
|
|
38
|
+
* @example
|
|
39
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
40
|
+
* ```javascript
|
|
41
|
+
* import { ComputeOptimizerClient, ExportRDSDatabaseRecommendationsCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
42
|
+
* // const { ComputeOptimizerClient, ExportRDSDatabaseRecommendationsCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
43
|
+
* const client = new ComputeOptimizerClient(config);
|
|
44
|
+
* const input = { // ExportRDSDatabaseRecommendationsRequest
|
|
45
|
+
* accountIds: [ // AccountIds
|
|
46
|
+
* "STRING_VALUE",
|
|
47
|
+
* ],
|
|
48
|
+
* filters: [ // RDSDBRecommendationFilters
|
|
49
|
+
* { // RDSDBRecommendationFilter
|
|
50
|
+
* name: "InstanceFinding" || "InstanceFindingReasonCode" || "StorageFinding" || "StorageFindingReasonCode" || "Idle",
|
|
51
|
+
* values: [ // FilterValues
|
|
52
|
+
* "STRING_VALUE",
|
|
53
|
+
* ],
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
56
|
+
* fieldsToExport: [ // ExportableRDSDBFields
|
|
57
|
+
* "ResourceArn" || "AccountId" || "Engine" || "EngineVersion" || "Idle" || "MultiAZDBInstance" || "CurrentDBInstanceClass" || "CurrentStorageConfigurationStorageType" || "CurrentStorageConfigurationAllocatedStorage" || "CurrentStorageConfigurationMaxAllocatedStorage" || "CurrentStorageConfigurationIOPS" || "CurrentStorageConfigurationStorageThroughput" || "CurrentInstanceOnDemandHourlyPrice" || "CurrentStorageOnDemandMonthlyPrice" || "LookbackPeriodInDays" || "UtilizationMetricsCpuMaximum" || "UtilizationMetricsMemoryMaximum" || "UtilizationMetricsEBSVolumeStorageSpaceUtilizationMaximum" || "UtilizationMetricsNetworkReceiveThroughputMaximum" || "UtilizationMetricsNetworkTransmitThroughputMaximum" || "UtilizationMetricsEBSVolumeReadIOPSMaximum" || "UtilizationMetricsEBSVolumeWriteIOPSMaximum" || "UtilizationMetricsEBSVolumeReadThroughputMaximum" || "UtilizationMetricsEBSVolumeWriteThroughputMaximum" || "UtilizationMetricsDatabaseConnectionsMaximum" || "InstanceFinding" || "InstanceFindingReasonCodes" || "StorageFinding" || "StorageFindingReasonCodes" || "InstanceRecommendationOptionsDBInstanceClass" || "InstanceRecommendationOptionsRank" || "InstanceRecommendationOptionsPerformanceRisk" || "InstanceRecommendationOptionsProjectedUtilizationMetricsCpuMaximum" || "StorageRecommendationOptionsStorageType" || "StorageRecommendationOptionsAllocatedStorage" || "StorageRecommendationOptionsMaxAllocatedStorage" || "StorageRecommendationOptionsIOPS" || "StorageRecommendationOptionsStorageThroughput" || "StorageRecommendationOptionsRank" || "InstanceRecommendationOptionsInstanceOnDemandHourlyPrice" || "InstanceRecommendationOptionsSavingsOpportunityPercentage" || "InstanceRecommendationOptionsEstimatedMonthlySavingsCurrency" || "InstanceRecommendationOptionsEstimatedMonthlySavingsValue" || "InstanceRecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" || "InstanceRecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" || "InstanceRecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts" || "StorageRecommendationOptionsOnDemandMonthlyPrice" || "StorageRecommendationOptionsSavingsOpportunityPercentage" || "StorageRecommendationOptionsEstimatedMonthlySavingsCurrency" || "StorageRecommendationOptionsEstimatedMonthlySavingsValue" || "StorageRecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" || "StorageRecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" || "StorageRecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts" || "EffectiveRecommendationPreferencesCpuVendorArchitectures" || "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" || "EffectiveRecommendationPreferencesLookBackPeriod" || "EffectiveRecommendationPreferencesSavingsEstimationMode" || "LastRefreshTimestamp" || "Tags",
|
|
58
|
+
* ],
|
|
59
|
+
* s3DestinationConfig: { // S3DestinationConfig
|
|
60
|
+
* bucket: "STRING_VALUE",
|
|
61
|
+
* keyPrefix: "STRING_VALUE",
|
|
62
|
+
* },
|
|
63
|
+
* fileFormat: "Csv",
|
|
64
|
+
* includeMemberAccounts: true || false,
|
|
65
|
+
* recommendationPreferences: { // RecommendationPreferences
|
|
66
|
+
* cpuVendorArchitectures: [ // CpuVendorArchitectures
|
|
67
|
+
* "AWS_ARM64" || "CURRENT",
|
|
68
|
+
* ],
|
|
69
|
+
* },
|
|
70
|
+
* };
|
|
71
|
+
* const command = new ExportRDSDatabaseRecommendationsCommand(input);
|
|
72
|
+
* const response = await client.send(command);
|
|
73
|
+
* // { // ExportRDSDatabaseRecommendationsResponse
|
|
74
|
+
* // jobId: "STRING_VALUE",
|
|
75
|
+
* // s3Destination: { // S3Destination
|
|
76
|
+
* // bucket: "STRING_VALUE",
|
|
77
|
+
* // key: "STRING_VALUE",
|
|
78
|
+
* // metadataKey: "STRING_VALUE",
|
|
79
|
+
* // },
|
|
80
|
+
* // };
|
|
81
|
+
*
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* @param ExportRDSDatabaseRecommendationsCommandInput - {@link ExportRDSDatabaseRecommendationsCommandInput}
|
|
85
|
+
* @returns {@link ExportRDSDatabaseRecommendationsCommandOutput}
|
|
86
|
+
* @see {@link ExportRDSDatabaseRecommendationsCommandInput} for command's `input` shape.
|
|
87
|
+
* @see {@link ExportRDSDatabaseRecommendationsCommandOutput} for command's `response` shape.
|
|
88
|
+
* @see {@link ComputeOptimizerClientResolvedConfig | config} for ComputeOptimizerClient's `config` shape.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
91
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link InternalServerException} (server fault)
|
|
94
|
+
* <p>An internal error has occurred. Try your call again.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
97
|
+
* <p>The value supplied for the input parameter is out of range or not valid.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
100
|
+
* <p>The request exceeds a limit of the service.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link MissingAuthenticationToken} (client fault)
|
|
103
|
+
* <p>The request must contain either a valid (registered) Amazon Web Services access key ID
|
|
104
|
+
* or X.509 certificate.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
107
|
+
* <p>The account is not opted in to Compute Optimizer.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
110
|
+
* <p>The request has failed due to a temporary failure of the server.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
113
|
+
* <p>The request was denied due to request throttling.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ComputeOptimizerServiceException}
|
|
116
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizer service.</p>
|
|
117
|
+
*
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
export declare class ExportRDSDatabaseRecommendationsCommand extends ExportRDSDatabaseRecommendationsCommand_base {
|
|
121
|
+
}
|
|
@@ -85,6 +85,14 @@ declare const GetAutoScalingGroupRecommendationsCommand_base: {
|
|
|
85
85
|
* // maxSize: Number("int"),
|
|
86
86
|
* // instanceType: "STRING_VALUE",
|
|
87
87
|
* // },
|
|
88
|
+
* // currentInstanceGpuInfo: { // GpuInfo
|
|
89
|
+
* // gpus: [ // Gpus
|
|
90
|
+
* // { // Gpu
|
|
91
|
+
* // gpuCount: Number("int"),
|
|
92
|
+
* // gpuMemorySizeInMiB: Number("int"),
|
|
93
|
+
* // },
|
|
94
|
+
* // ],
|
|
95
|
+
* // },
|
|
88
96
|
* // recommendationOptions: [ // AutoScalingGroupRecommendationOptions
|
|
89
97
|
* // { // AutoScalingGroupRecommendationOption
|
|
90
98
|
* // configuration: {
|
|
@@ -93,6 +101,14 @@ declare const GetAutoScalingGroupRecommendationsCommand_base: {
|
|
|
93
101
|
* // maxSize: Number("int"),
|
|
94
102
|
* // instanceType: "STRING_VALUE",
|
|
95
103
|
* // },
|
|
104
|
+
* // instanceGpuInfo: {
|
|
105
|
+
* // gpus: [
|
|
106
|
+
* // {
|
|
107
|
+
* // gpuCount: Number("int"),
|
|
108
|
+
* // gpuMemorySizeInMiB: Number("int"),
|
|
109
|
+
* // },
|
|
110
|
+
* // ],
|
|
111
|
+
* // },
|
|
96
112
|
* // projectedUtilizationMetrics: [ // ProjectedUtilizationMetrics
|
|
97
113
|
* // {
|
|
98
114
|
* // name: "Cpu" || "Memory" || "EBS_READ_OPS_PER_SECOND" || "EBS_WRITE_OPS_PER_SECOND" || "EBS_READ_BYTES_PER_SECOND" || "EBS_WRITE_BYTES_PER_SECOND" || "DISK_READ_OPS_PER_SECOND" || "DISK_WRITE_OPS_PER_SECOND" || "DISK_READ_BYTES_PER_SECOND" || "DISK_WRITE_BYTES_PER_SECOND" || "NETWORK_IN_BYTES_PER_SECOND" || "NETWORK_OUT_BYTES_PER_SECOND" || "NETWORK_PACKETS_IN_PER_SECOND" || "NETWORK_PACKETS_OUT_PER_SECOND" || "GPU_PERCENTAGE" || "GPU_MEMORY_PERCENTAGE",
|
|
@@ -109,15 +125,6 @@ declare const GetAutoScalingGroupRecommendationsCommand_base: {
|
|
|
109
125
|
* // value: Number("double"),
|
|
110
126
|
* // },
|
|
111
127
|
* // },
|
|
112
|
-
* // migrationEffort: "VeryLow" || "Low" || "Medium" || "High",
|
|
113
|
-
* // instanceGpuInfo: { // GpuInfo
|
|
114
|
-
* // gpus: [ // Gpus
|
|
115
|
-
* // { // Gpu
|
|
116
|
-
* // gpuCount: Number("int"),
|
|
117
|
-
* // gpuMemorySizeInMiB: Number("int"),
|
|
118
|
-
* // },
|
|
119
|
-
* // ],
|
|
120
|
-
* // },
|
|
121
128
|
* // savingsOpportunityAfterDiscounts: { // AutoScalingGroupSavingsOpportunityAfterDiscounts
|
|
122
129
|
* // savingsOpportunityPercentage: Number("double"),
|
|
123
130
|
* // estimatedMonthlySavings: { // AutoScalingGroupEstimatedMonthlySavings
|
|
@@ -125,6 +132,7 @@ declare const GetAutoScalingGroupRecommendationsCommand_base: {
|
|
|
125
132
|
* // value: Number("double"),
|
|
126
133
|
* // },
|
|
127
134
|
* // },
|
|
135
|
+
* // migrationEffort: "VeryLow" || "Low" || "Medium" || "High",
|
|
128
136
|
* // },
|
|
129
137
|
* // ],
|
|
130
138
|
* // lastRefreshTimestamp: new Date("TIMESTAMP"),
|
|
@@ -169,14 +177,6 @@ declare const GetAutoScalingGroupRecommendationsCommand_base: {
|
|
|
169
177
|
* // inferredWorkloadTypes: [ // InferredWorkloadTypes
|
|
170
178
|
* // "AmazonEmr" || "ApacheCassandra" || "ApacheHadoop" || "Memcached" || "Nginx" || "PostgreSql" || "Redis" || "Kafka" || "SQLServer",
|
|
171
179
|
* // ],
|
|
172
|
-
* // currentInstanceGpuInfo: {
|
|
173
|
-
* // gpus: [
|
|
174
|
-
* // {
|
|
175
|
-
* // gpuCount: Number("int"),
|
|
176
|
-
* // gpuMemorySizeInMiB: Number("int"),
|
|
177
|
-
* // },
|
|
178
|
-
* // ],
|
|
179
|
-
* // },
|
|
180
180
|
* // },
|
|
181
181
|
* // ],
|
|
182
182
|
* // errors: [ // GetRecommendationErrors
|
|
@@ -113,17 +113,17 @@ declare const GetEBSVolumeRecommendationsCommand_base: {
|
|
|
113
113
|
* // ],
|
|
114
114
|
* // lastRefreshTimestamp: new Date("TIMESTAMP"),
|
|
115
115
|
* // currentPerformanceRisk: "VeryLow" || "Low" || "Medium" || "High",
|
|
116
|
+
* // effectiveRecommendationPreferences: { // EBSEffectiveRecommendationPreferences
|
|
117
|
+
* // savingsEstimationMode: { // EBSSavingsEstimationMode
|
|
118
|
+
* // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
|
|
119
|
+
* // },
|
|
120
|
+
* // },
|
|
116
121
|
* // tags: [ // Tags
|
|
117
122
|
* // { // Tag
|
|
118
123
|
* // key: "STRING_VALUE",
|
|
119
124
|
* // value: "STRING_VALUE",
|
|
120
125
|
* // },
|
|
121
126
|
* // ],
|
|
122
|
-
* // effectiveRecommendationPreferences: { // EBSEffectiveRecommendationPreferences
|
|
123
|
-
* // savingsEstimationMode: { // EBSSavingsEstimationMode
|
|
124
|
-
* // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
|
|
125
|
-
* // },
|
|
126
|
-
* // },
|
|
127
127
|
* // },
|
|
128
128
|
* // ],
|
|
129
129
|
* // errors: [ // GetRecommendationErrors
|
|
@@ -86,6 +86,14 @@ declare const GetEC2InstanceRecommendationsCommand_base: {
|
|
|
86
86
|
* // recommendationOptions: [ // RecommendationOptions
|
|
87
87
|
* // { // InstanceRecommendationOption
|
|
88
88
|
* // instanceType: "STRING_VALUE",
|
|
89
|
+
* // instanceGpuInfo: { // GpuInfo
|
|
90
|
+
* // gpus: [ // Gpus
|
|
91
|
+
* // { // Gpu
|
|
92
|
+
* // gpuCount: Number("int"),
|
|
93
|
+
* // gpuMemorySizeInMiB: Number("int"),
|
|
94
|
+
* // },
|
|
95
|
+
* // ],
|
|
96
|
+
* // },
|
|
89
97
|
* // projectedUtilizationMetrics: [ // ProjectedUtilizationMetrics
|
|
90
98
|
* // {
|
|
91
99
|
* // name: "Cpu" || "Memory" || "EBS_READ_OPS_PER_SECOND" || "EBS_WRITE_OPS_PER_SECOND" || "EBS_READ_BYTES_PER_SECOND" || "EBS_WRITE_BYTES_PER_SECOND" || "DISK_READ_OPS_PER_SECOND" || "DISK_WRITE_OPS_PER_SECOND" || "DISK_READ_BYTES_PER_SECOND" || "DISK_WRITE_BYTES_PER_SECOND" || "NETWORK_IN_BYTES_PER_SECOND" || "NETWORK_OUT_BYTES_PER_SECOND" || "NETWORK_PACKETS_IN_PER_SECOND" || "NETWORK_PACKETS_OUT_PER_SECOND" || "GPU_PERCENTAGE" || "GPU_MEMORY_PERCENTAGE",
|
|
@@ -105,15 +113,6 @@ declare const GetEC2InstanceRecommendationsCommand_base: {
|
|
|
105
113
|
* // value: Number("double"),
|
|
106
114
|
* // },
|
|
107
115
|
* // },
|
|
108
|
-
* // migrationEffort: "VeryLow" || "Low" || "Medium" || "High",
|
|
109
|
-
* // instanceGpuInfo: { // GpuInfo
|
|
110
|
-
* // gpus: [ // Gpus
|
|
111
|
-
* // { // Gpu
|
|
112
|
-
* // gpuCount: Number("int"),
|
|
113
|
-
* // gpuMemorySizeInMiB: Number("int"),
|
|
114
|
-
* // },
|
|
115
|
-
* // ],
|
|
116
|
-
* // },
|
|
117
116
|
* // savingsOpportunityAfterDiscounts: { // InstanceSavingsOpportunityAfterDiscounts
|
|
118
117
|
* // savingsOpportunityPercentage: Number("double"),
|
|
119
118
|
* // estimatedMonthlySavings: { // InstanceEstimatedMonthlySavings
|
|
@@ -121,12 +120,13 @@ declare const GetEC2InstanceRecommendationsCommand_base: {
|
|
|
121
120
|
* // value: Number("double"),
|
|
122
121
|
* // },
|
|
123
122
|
* // },
|
|
123
|
+
* // migrationEffort: "VeryLow" || "Low" || "Medium" || "High",
|
|
124
124
|
* // },
|
|
125
125
|
* // ],
|
|
126
126
|
* // recommendationSources: [ // RecommendationSources
|
|
127
127
|
* // { // RecommendationSource
|
|
128
128
|
* // recommendationSourceArn: "STRING_VALUE",
|
|
129
|
-
* // recommendationSourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "EcsService" || "License",
|
|
129
|
+
* // recommendationSourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "EcsService" || "License" || "RdsDBInstance" || "RdsDBInstanceStorage",
|
|
130
130
|
* // },
|
|
131
131
|
* // ],
|
|
132
132
|
* // lastRefreshTimestamp: new Date("TIMESTAMP"),
|
|
@@ -110,6 +110,13 @@ declare const GetECSServiceRecommendationsCommand_base: {
|
|
|
110
110
|
* // value: Number("double"),
|
|
111
111
|
* // },
|
|
112
112
|
* // },
|
|
113
|
+
* // savingsOpportunityAfterDiscounts: { // ECSSavingsOpportunityAfterDiscounts
|
|
114
|
+
* // savingsOpportunityPercentage: Number("double"),
|
|
115
|
+
* // estimatedMonthlySavings: { // ECSEstimatedMonthlySavings
|
|
116
|
+
* // currency: "USD" || "CNY",
|
|
117
|
+
* // value: Number("double"),
|
|
118
|
+
* // },
|
|
119
|
+
* // },
|
|
113
120
|
* // projectedUtilizationMetrics: [ // ECSServiceProjectedUtilizationMetrics
|
|
114
121
|
* // { // ECSServiceProjectedUtilizationMetric
|
|
115
122
|
* // name: "Cpu" || "Memory",
|
|
@@ -128,27 +135,20 @@ declare const GetECSServiceRecommendationsCommand_base: {
|
|
|
128
135
|
* // cpu: Number("int"),
|
|
129
136
|
* // },
|
|
130
137
|
* // ],
|
|
131
|
-
* // savingsOpportunityAfterDiscounts: { // ECSSavingsOpportunityAfterDiscounts
|
|
132
|
-
* // savingsOpportunityPercentage: Number("double"),
|
|
133
|
-
* // estimatedMonthlySavings: { // ECSEstimatedMonthlySavings
|
|
134
|
-
* // currency: "USD" || "CNY",
|
|
135
|
-
* // value: Number("double"),
|
|
136
|
-
* // },
|
|
137
|
-
* // },
|
|
138
138
|
* // },
|
|
139
139
|
* // ],
|
|
140
140
|
* // currentPerformanceRisk: "VeryLow" || "Low" || "Medium" || "High",
|
|
141
|
+
* // effectiveRecommendationPreferences: { // ECSEffectiveRecommendationPreferences
|
|
142
|
+
* // savingsEstimationMode: { // ECSSavingsEstimationMode
|
|
143
|
+
* // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
|
|
144
|
+
* // },
|
|
145
|
+
* // },
|
|
141
146
|
* // tags: [ // Tags
|
|
142
147
|
* // { // Tag
|
|
143
148
|
* // key: "STRING_VALUE",
|
|
144
149
|
* // value: "STRING_VALUE",
|
|
145
150
|
* // },
|
|
146
151
|
* // ],
|
|
147
|
-
* // effectiveRecommendationPreferences: { // ECSEffectiveRecommendationPreferences
|
|
148
|
-
* // savingsEstimationMode: { // ECSSavingsEstimationMode
|
|
149
|
-
* // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
|
|
150
|
-
* // },
|
|
151
|
-
* // },
|
|
152
152
|
* // },
|
|
153
153
|
* // ],
|
|
154
154
|
* // errors: [ // GetRecommendationErrors
|
|
@@ -108,17 +108,17 @@ declare const GetLambdaFunctionRecommendationsCommand_base: {
|
|
|
108
108
|
* // },
|
|
109
109
|
* // ],
|
|
110
110
|
* // currentPerformanceRisk: "VeryLow" || "Low" || "Medium" || "High",
|
|
111
|
+
* // effectiveRecommendationPreferences: { // LambdaEffectiveRecommendationPreferences
|
|
112
|
+
* // savingsEstimationMode: { // LambdaSavingsEstimationMode
|
|
113
|
+
* // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
|
|
114
|
+
* // },
|
|
115
|
+
* // },
|
|
111
116
|
* // tags: [ // Tags
|
|
112
117
|
* // { // Tag
|
|
113
118
|
* // key: "STRING_VALUE",
|
|
114
119
|
* // value: "STRING_VALUE",
|
|
115
120
|
* // },
|
|
116
121
|
* // ],
|
|
117
|
-
* // effectiveRecommendationPreferences: { // LambdaEffectiveRecommendationPreferences
|
|
118
|
-
* // savingsEstimationMode: { // LambdaSavingsEstimationMode
|
|
119
|
-
* // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
|
|
120
|
-
* // },
|
|
121
|
-
* // },
|
|
122
122
|
* // },
|
|
123
123
|
* // ],
|
|
124
124
|
* // };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerClient";
|
|
4
|
+
import { GetRDSDatabaseRecommendationProjectedMetricsRequest, GetRDSDatabaseRecommendationProjectedMetricsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetRDSDatabaseRecommendationProjectedMetricsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetRDSDatabaseRecommendationProjectedMetricsCommandInput extends GetRDSDatabaseRecommendationProjectedMetricsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetRDSDatabaseRecommendationProjectedMetricsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetRDSDatabaseRecommendationProjectedMetricsCommandOutput extends GetRDSDatabaseRecommendationProjectedMetricsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetRDSDatabaseRecommendationProjectedMetricsCommand_base: {
|
|
25
|
+
new (input: GetRDSDatabaseRecommendationProjectedMetricsCommandInput): import("@smithy/smithy-client").CommandImpl<GetRDSDatabaseRecommendationProjectedMetricsCommandInput, GetRDSDatabaseRecommendationProjectedMetricsCommandOutput, ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetRDSDatabaseRecommendationProjectedMetricsCommandInput): import("@smithy/smithy-client").CommandImpl<GetRDSDatabaseRecommendationProjectedMetricsCommandInput, GetRDSDatabaseRecommendationProjectedMetricsCommandOutput, ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>
|
|
31
|
+
* Returns the projected metrics of Amazon RDS recommendations.
|
|
32
|
+
* </p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { ComputeOptimizerClient, GetRDSDatabaseRecommendationProjectedMetricsCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
37
|
+
* // const { ComputeOptimizerClient, GetRDSDatabaseRecommendationProjectedMetricsCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
38
|
+
* const client = new ComputeOptimizerClient(config);
|
|
39
|
+
* const input = { // GetRDSDatabaseRecommendationProjectedMetricsRequest
|
|
40
|
+
* resourceArn: "STRING_VALUE", // required
|
|
41
|
+
* stat: "Maximum" || "Average", // required
|
|
42
|
+
* period: Number("int"), // required
|
|
43
|
+
* startTime: new Date("TIMESTAMP"), // required
|
|
44
|
+
* endTime: new Date("TIMESTAMP"), // required
|
|
45
|
+
* recommendationPreferences: { // RecommendationPreferences
|
|
46
|
+
* cpuVendorArchitectures: [ // CpuVendorArchitectures
|
|
47
|
+
* "AWS_ARM64" || "CURRENT",
|
|
48
|
+
* ],
|
|
49
|
+
* },
|
|
50
|
+
* };
|
|
51
|
+
* const command = new GetRDSDatabaseRecommendationProjectedMetricsCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // GetRDSDatabaseRecommendationProjectedMetricsResponse
|
|
54
|
+
* // recommendedOptionProjectedMetrics: [ // RDSDatabaseRecommendedOptionProjectedMetrics
|
|
55
|
+
* // { // RDSDatabaseRecommendedOptionProjectedMetric
|
|
56
|
+
* // recommendedDBInstanceClass: "STRING_VALUE",
|
|
57
|
+
* // rank: Number("int"),
|
|
58
|
+
* // projectedMetrics: [ // RDSDatabaseProjectedMetrics
|
|
59
|
+
* // { // RDSDatabaseProjectedMetric
|
|
60
|
+
* // name: "CPU" || "Memory" || "EBSVolumeStorageSpaceUtilization" || "NetworkReceiveThroughput" || "NetworkTransmitThroughput" || "EBSVolumeReadIOPS" || "EBSVolumeWriteIOPS" || "EBSVolumeReadThroughput" || "EBSVolumeWriteThroughput" || "DatabaseConnections",
|
|
61
|
+
* // timestamps: [ // Timestamps
|
|
62
|
+
* // new Date("TIMESTAMP"),
|
|
63
|
+
* // ],
|
|
64
|
+
* // values: [ // MetricValues
|
|
65
|
+
* // Number("double"),
|
|
66
|
+
* // ],
|
|
67
|
+
* // },
|
|
68
|
+
* // ],
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // };
|
|
72
|
+
*
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param GetRDSDatabaseRecommendationProjectedMetricsCommandInput - {@link GetRDSDatabaseRecommendationProjectedMetricsCommandInput}
|
|
76
|
+
* @returns {@link GetRDSDatabaseRecommendationProjectedMetricsCommandOutput}
|
|
77
|
+
* @see {@link GetRDSDatabaseRecommendationProjectedMetricsCommandInput} for command's `input` shape.
|
|
78
|
+
* @see {@link GetRDSDatabaseRecommendationProjectedMetricsCommandOutput} for command's `response` shape.
|
|
79
|
+
* @see {@link ComputeOptimizerClientResolvedConfig | config} for ComputeOptimizerClient's `config` shape.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
82
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link InternalServerException} (server fault)
|
|
85
|
+
* <p>An internal error has occurred. Try your call again.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
88
|
+
* <p>The value supplied for the input parameter is out of range or not valid.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link MissingAuthenticationToken} (client fault)
|
|
91
|
+
* <p>The request must contain either a valid (registered) Amazon Web Services access key ID
|
|
92
|
+
* or X.509 certificate.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
95
|
+
* <p>The account is not opted in to Compute Optimizer.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
98
|
+
* <p>A resource that is required for the action doesn't exist.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
101
|
+
* <p>The request has failed due to a temporary failure of the server.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
104
|
+
* <p>The request was denied due to request throttling.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ComputeOptimizerServiceException}
|
|
107
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizer service.</p>
|
|
108
|
+
*
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
export declare class GetRDSDatabaseRecommendationProjectedMetricsCommand extends GetRDSDatabaseRecommendationProjectedMetricsCommand_base {
|
|
112
|
+
}
|