@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.
Files changed (39) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +410 -2
  3. package/dist-es/ComputeOptimizer.js +6 -0
  4. package/dist-es/commands/ExportRDSDatabaseRecommendationsCommand.js +24 -0
  5. package/dist-es/commands/GetRDSDatabaseRecommendationProjectedMetricsCommand.js +24 -0
  6. package/dist-es/commands/GetRDSDatabaseRecommendationsCommand.js +24 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +125 -0
  9. package/dist-es/protocols/Aws_json1_0.js +220 -0
  10. package/dist-types/ComputeOptimizer.d.ts +22 -0
  11. package/dist-types/ComputeOptimizerClient.d.ts +5 -2
  12. package/dist-types/commands/DeleteRecommendationPreferencesCommand.d.ts +1 -1
  13. package/dist-types/commands/DescribeRecommendationExportJobsCommand.d.ts +1 -1
  14. package/dist-types/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +1 -1
  15. package/dist-types/commands/ExportEBSVolumeRecommendationsCommand.d.ts +1 -1
  16. package/dist-types/commands/ExportEC2InstanceRecommendationsCommand.d.ts +1 -1
  17. package/dist-types/commands/ExportRDSDatabaseRecommendationsCommand.d.ts +121 -0
  18. package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +17 -17
  19. package/dist-types/commands/GetEBSVolumeRecommendationsCommand.d.ts +5 -5
  20. package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +10 -10
  21. package/dist-types/commands/GetECSServiceRecommendationsCommand.d.ts +12 -12
  22. package/dist-types/commands/GetLambdaFunctionRecommendationsCommand.d.ts +5 -5
  23. package/dist-types/commands/GetRDSDatabaseRecommendationProjectedMetricsCommand.d.ts +112 -0
  24. package/dist-types/commands/GetRDSDatabaseRecommendationsCommand.d.ts +223 -0
  25. package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +2 -2
  26. package/dist-types/commands/GetRecommendationSummariesCommand.d.ts +1 -1
  27. package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +1 -1
  28. package/dist-types/commands/index.d.ts +3 -0
  29. package/dist-types/models/models_0.d.ts +1316 -209
  30. package/dist-types/protocols/Aws_json1_0.d.ts +27 -0
  31. package/dist-types/ts3.4/ComputeOptimizer.d.ts +58 -0
  32. package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +18 -0
  33. package/dist-types/ts3.4/commands/ExportRDSDatabaseRecommendationsCommand.d.ts +40 -0
  34. package/dist-types/ts3.4/commands/GetRDSDatabaseRecommendationProjectedMetricsCommand.d.ts +40 -0
  35. package/dist-types/ts3.4/commands/GetRDSDatabaseRecommendationsCommand.d.ts +40 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  37. package/dist-types/ts3.4/models/models_0.d.ts +275 -9
  38. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
  39. package/package.json +1 -1
@@ -0,0 +1,223 @@
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 { GetRDSDatabaseRecommendationsRequest, GetRDSDatabaseRecommendationsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetRDSDatabaseRecommendationsCommand}.
14
+ */
15
+ export interface GetRDSDatabaseRecommendationsCommandInput extends GetRDSDatabaseRecommendationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetRDSDatabaseRecommendationsCommand}.
21
+ */
22
+ export interface GetRDSDatabaseRecommendationsCommandOutput extends GetRDSDatabaseRecommendationsResponse, __MetadataBearer {
23
+ }
24
+ declare const GetRDSDatabaseRecommendationsCommand_base: {
25
+ new (input: GetRDSDatabaseRecommendationsCommandInput): import("@smithy/smithy-client").CommandImpl<GetRDSDatabaseRecommendationsCommandInput, GetRDSDatabaseRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetRDSDatabaseRecommendationsCommandInput]): import("@smithy/smithy-client").CommandImpl<GetRDSDatabaseRecommendationsCommandInput, GetRDSDatabaseRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Returns Amazon RDS recommendations.
32
+ * </p>
33
+ * <p>Compute Optimizer generates recommendations for Amazon RDS that
34
+ * meet a specific set of requirements. For more
35
+ * information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported resources and
36
+ * requirements</a> in the <i>Compute Optimizer User
37
+ * Guide</i>.</p>
38
+ * @example
39
+ * Use a bare-bones client and the command you need to make an API call.
40
+ * ```javascript
41
+ * import { ComputeOptimizerClient, GetRDSDatabaseRecommendationsCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
42
+ * // const { ComputeOptimizerClient, GetRDSDatabaseRecommendationsCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
43
+ * const client = new ComputeOptimizerClient(config);
44
+ * const input = { // GetRDSDatabaseRecommendationsRequest
45
+ * resourceArns: [ // ResourceArns
46
+ * "STRING_VALUE",
47
+ * ],
48
+ * nextToken: "STRING_VALUE",
49
+ * maxResults: Number("int"),
50
+ * filters: [ // RDSDBRecommendationFilters
51
+ * { // RDSDBRecommendationFilter
52
+ * name: "InstanceFinding" || "InstanceFindingReasonCode" || "StorageFinding" || "StorageFindingReasonCode" || "Idle",
53
+ * values: [ // FilterValues
54
+ * "STRING_VALUE",
55
+ * ],
56
+ * },
57
+ * ],
58
+ * accountIds: [ // AccountIds
59
+ * "STRING_VALUE",
60
+ * ],
61
+ * recommendationPreferences: { // RecommendationPreferences
62
+ * cpuVendorArchitectures: [ // CpuVendorArchitectures
63
+ * "AWS_ARM64" || "CURRENT",
64
+ * ],
65
+ * },
66
+ * };
67
+ * const command = new GetRDSDatabaseRecommendationsCommand(input);
68
+ * const response = await client.send(command);
69
+ * // { // GetRDSDatabaseRecommendationsResponse
70
+ * // nextToken: "STRING_VALUE",
71
+ * // rdsDBRecommendations: [ // RDSDBRecommendations
72
+ * // { // RDSDBRecommendation
73
+ * // resourceArn: "STRING_VALUE",
74
+ * // accountId: "STRING_VALUE",
75
+ * // engine: "STRING_VALUE",
76
+ * // engineVersion: "STRING_VALUE",
77
+ * // currentDBInstanceClass: "STRING_VALUE",
78
+ * // currentStorageConfiguration: { // DBStorageConfiguration
79
+ * // storageType: "STRING_VALUE",
80
+ * // allocatedStorage: Number("int"),
81
+ * // iops: Number("int"),
82
+ * // maxAllocatedStorage: Number("int"),
83
+ * // storageThroughput: Number("int"),
84
+ * // },
85
+ * // idle: "True" || "False",
86
+ * // instanceFinding: "Optimized" || "Underprovisioned" || "Overprovisioned",
87
+ * // storageFinding: "Optimized" || "Underprovisioned" || "Overprovisioned",
88
+ * // instanceFindingReasonCodes: [ // RDSInstanceFindingReasonCodes
89
+ * // "CPUOverprovisioned" || "NetworkBandwidthOverprovisioned" || "EBSIOPSOverprovisioned" || "EBSThroughputOverprovisioned" || "CPUUnderprovisioned" || "NetworkBandwidthUnderprovisioned" || "EBSThroughputUnderprovisioned" || "NewGenerationDBInstanceClassAvailable" || "NewEngineVersionAvailable",
90
+ * // ],
91
+ * // storageFindingReasonCodes: [ // RDSStorageFindingReasonCodes
92
+ * // "EBSVolumeAllocatedStorageUnderprovisioned" || "EBSVolumeThroughputUnderprovisioned" || "EBSVolumeIOPSOverprovisioned" || "EBSVolumeThroughputOverprovisioned" || "NewGenerationStorageTypeAvailable",
93
+ * // ],
94
+ * // instanceRecommendationOptions: [ // RDSDBInstanceRecommendationOptions
95
+ * // { // RDSDBInstanceRecommendationOption
96
+ * // dbInstanceClass: "STRING_VALUE",
97
+ * // projectedUtilizationMetrics: [ // RDSDBProjectedUtilizationMetrics
98
+ * // { // RDSDBUtilizationMetric
99
+ * // name: "CPU" || "Memory" || "EBSVolumeStorageSpaceUtilization" || "NetworkReceiveThroughput" || "NetworkTransmitThroughput" || "EBSVolumeReadIOPS" || "EBSVolumeWriteIOPS" || "EBSVolumeReadThroughput" || "EBSVolumeWriteThroughput" || "DatabaseConnections",
100
+ * // statistic: "Maximum" || "Minimum" || "Average",
101
+ * // value: Number("double"),
102
+ * // },
103
+ * // ],
104
+ * // performanceRisk: Number("double"),
105
+ * // rank: Number("int"),
106
+ * // savingsOpportunity: { // SavingsOpportunity
107
+ * // savingsOpportunityPercentage: Number("double"),
108
+ * // estimatedMonthlySavings: { // EstimatedMonthlySavings
109
+ * // currency: "USD" || "CNY",
110
+ * // value: Number("double"),
111
+ * // },
112
+ * // },
113
+ * // savingsOpportunityAfterDiscounts: { // RDSInstanceSavingsOpportunityAfterDiscounts
114
+ * // savingsOpportunityPercentage: Number("double"),
115
+ * // estimatedMonthlySavings: { // RDSInstanceEstimatedMonthlySavings
116
+ * // currency: "USD" || "CNY",
117
+ * // value: Number("double"),
118
+ * // },
119
+ * // },
120
+ * // },
121
+ * // ],
122
+ * // storageRecommendationOptions: [ // RDSDBStorageRecommendationOptions
123
+ * // { // RDSDBStorageRecommendationOption
124
+ * // storageConfiguration: {
125
+ * // storageType: "STRING_VALUE",
126
+ * // allocatedStorage: Number("int"),
127
+ * // iops: Number("int"),
128
+ * // maxAllocatedStorage: Number("int"),
129
+ * // storageThroughput: Number("int"),
130
+ * // },
131
+ * // rank: Number("int"),
132
+ * // savingsOpportunity: {
133
+ * // savingsOpportunityPercentage: Number("double"),
134
+ * // estimatedMonthlySavings: {
135
+ * // currency: "USD" || "CNY",
136
+ * // value: Number("double"),
137
+ * // },
138
+ * // },
139
+ * // savingsOpportunityAfterDiscounts: { // RDSStorageSavingsOpportunityAfterDiscounts
140
+ * // savingsOpportunityPercentage: Number("double"),
141
+ * // estimatedMonthlySavings: { // RDSStorageEstimatedMonthlySavings
142
+ * // currency: "USD" || "CNY",
143
+ * // value: Number("double"),
144
+ * // },
145
+ * // },
146
+ * // },
147
+ * // ],
148
+ * // utilizationMetrics: [ // RDSDBUtilizationMetrics
149
+ * // {
150
+ * // name: "CPU" || "Memory" || "EBSVolumeStorageSpaceUtilization" || "NetworkReceiveThroughput" || "NetworkTransmitThroughput" || "EBSVolumeReadIOPS" || "EBSVolumeWriteIOPS" || "EBSVolumeReadThroughput" || "EBSVolumeWriteThroughput" || "DatabaseConnections",
151
+ * // statistic: "Maximum" || "Minimum" || "Average",
152
+ * // value: Number("double"),
153
+ * // },
154
+ * // ],
155
+ * // effectiveRecommendationPreferences: { // RDSEffectiveRecommendationPreferences
156
+ * // cpuVendorArchitectures: [ // CpuVendorArchitectures
157
+ * // "AWS_ARM64" || "CURRENT",
158
+ * // ],
159
+ * // enhancedInfrastructureMetrics: "Active" || "Inactive",
160
+ * // lookBackPeriod: "DAYS_14" || "DAYS_32" || "DAYS_93",
161
+ * // savingsEstimationMode: { // RDSSavingsEstimationMode
162
+ * // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
163
+ * // },
164
+ * // },
165
+ * // lookbackPeriodInDays: Number("double"),
166
+ * // lastRefreshTimestamp: new Date("TIMESTAMP"),
167
+ * // tags: [ // Tags
168
+ * // { // Tag
169
+ * // key: "STRING_VALUE",
170
+ * // value: "STRING_VALUE",
171
+ * // },
172
+ * // ],
173
+ * // },
174
+ * // ],
175
+ * // errors: [ // GetRecommendationErrors
176
+ * // { // GetRecommendationError
177
+ * // identifier: "STRING_VALUE",
178
+ * // code: "STRING_VALUE",
179
+ * // message: "STRING_VALUE",
180
+ * // },
181
+ * // ],
182
+ * // };
183
+ *
184
+ * ```
185
+ *
186
+ * @param GetRDSDatabaseRecommendationsCommandInput - {@link GetRDSDatabaseRecommendationsCommandInput}
187
+ * @returns {@link GetRDSDatabaseRecommendationsCommandOutput}
188
+ * @see {@link GetRDSDatabaseRecommendationsCommandInput} for command's `input` shape.
189
+ * @see {@link GetRDSDatabaseRecommendationsCommandOutput} for command's `response` shape.
190
+ * @see {@link ComputeOptimizerClientResolvedConfig | config} for ComputeOptimizerClient's `config` shape.
191
+ *
192
+ * @throws {@link AccessDeniedException} (client fault)
193
+ * <p>You do not have sufficient access to perform this action.</p>
194
+ *
195
+ * @throws {@link InternalServerException} (server fault)
196
+ * <p>An internal error has occurred. Try your call again.</p>
197
+ *
198
+ * @throws {@link InvalidParameterValueException} (client fault)
199
+ * <p>The value supplied for the input parameter is out of range or not valid.</p>
200
+ *
201
+ * @throws {@link MissingAuthenticationToken} (client fault)
202
+ * <p>The request must contain either a valid (registered) Amazon Web Services access key ID
203
+ * or X.509 certificate.</p>
204
+ *
205
+ * @throws {@link OptInRequiredException} (client fault)
206
+ * <p>The account is not opted in to Compute Optimizer.</p>
207
+ *
208
+ * @throws {@link ResourceNotFoundException} (client fault)
209
+ * <p>A resource that is required for the action doesn't exist.</p>
210
+ *
211
+ * @throws {@link ServiceUnavailableException} (server fault)
212
+ * <p>The request has failed due to a temporary failure of the server.</p>
213
+ *
214
+ * @throws {@link ThrottlingException} (client fault)
215
+ * <p>The request was denied due to request throttling.</p>
216
+ *
217
+ * @throws {@link ComputeOptimizerServiceException}
218
+ * <p>Base exception class for all service exceptions from ComputeOptimizer service.</p>
219
+ *
220
+ * @public
221
+ */
222
+ export declare class GetRDSDatabaseRecommendationsCommand extends GetRDSDatabaseRecommendationsCommand_base {
223
+ }
@@ -42,7 +42,7 @@ declare const GetRecommendationPreferencesCommand_base: {
42
42
  * // const { ComputeOptimizerClient, GetRecommendationPreferencesCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
43
43
  * const client = new ComputeOptimizerClient(config);
44
44
  * const input = { // GetRecommendationPreferencesRequest
45
- * resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License", // required
45
+ * resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License" || "RdsDBInstance", // required
46
46
  * scope: { // Scope
47
47
  * name: "Organization" || "AccountId" || "ResourceArn",
48
48
  * value: "STRING_VALUE",
@@ -60,7 +60,7 @@ declare const GetRecommendationPreferencesCommand_base: {
60
60
  * // name: "Organization" || "AccountId" || "ResourceArn",
61
61
  * // value: "STRING_VALUE",
62
62
  * // },
63
- * // resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License",
63
+ * // resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License" || "RdsDBInstance",
64
64
  * // enhancedInfrastructureMetrics: "Active" || "Inactive",
65
65
  * // inferredWorkloadTypes: "Active" || "Inactive",
66
66
  * // externalMetricsPreference: { // ExternalMetricsPreference
@@ -83,7 +83,7 @@ declare const GetRecommendationSummariesCommand_base: {
83
83
  * // ],
84
84
  * // },
85
85
  * // ],
86
- * // recommendationResourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "EcsService" || "License",
86
+ * // recommendationResourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "EcsService" || "License" || "RdsDBInstance" || "RdsDBInstanceStorage",
87
87
  * // accountId: "STRING_VALUE",
88
88
  * // savingsOpportunity: { // SavingsOpportunity
89
89
  * // savingsOpportunityPercentage: Number("double"),
@@ -39,7 +39,7 @@ declare const PutRecommendationPreferencesCommand_base: {
39
39
  * // const { ComputeOptimizerClient, PutRecommendationPreferencesCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
40
40
  * const client = new ComputeOptimizerClient(config);
41
41
  * const input = { // PutRecommendationPreferencesRequest
42
- * resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License", // required
42
+ * resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License" || "RdsDBInstance", // required
43
43
  * scope: { // Scope
44
44
  * name: "Organization" || "AccountId" || "ResourceArn",
45
45
  * value: "STRING_VALUE",
@@ -6,6 +6,7 @@ export * from "./ExportEC2InstanceRecommendationsCommand";
6
6
  export * from "./ExportECSServiceRecommendationsCommand";
7
7
  export * from "./ExportLambdaFunctionRecommendationsCommand";
8
8
  export * from "./ExportLicenseRecommendationsCommand";
9
+ export * from "./ExportRDSDatabaseRecommendationsCommand";
9
10
  export * from "./GetAutoScalingGroupRecommendationsCommand";
10
11
  export * from "./GetEBSVolumeRecommendationsCommand";
11
12
  export * from "./GetEC2InstanceRecommendationsCommand";
@@ -17,6 +18,8 @@ export * from "./GetEnrollmentStatusCommand";
17
18
  export * from "./GetEnrollmentStatusesForOrganizationCommand";
18
19
  export * from "./GetLambdaFunctionRecommendationsCommand";
19
20
  export * from "./GetLicenseRecommendationsCommand";
21
+ export * from "./GetRDSDatabaseRecommendationProjectedMetricsCommand";
22
+ export * from "./GetRDSDatabaseRecommendationsCommand";
20
23
  export * from "./GetRecommendationPreferencesCommand";
21
24
  export * from "./GetRecommendationSummariesCommand";
22
25
  export * from "./PutRecommendationPreferencesCommand";