@aws-sdk/client-compute-optimizer 3.315.0 → 3.316.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ComputeOptimizer = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const DeleteRecommendationPreferencesCommand_1 = require("./commands/DeleteRecommendationPreferencesCommand");
|
|
5
6
|
const DescribeRecommendationExportJobsCommand_1 = require("./commands/DescribeRecommendationExportJobsCommand");
|
|
6
7
|
const ExportAutoScalingGroupRecommendationsCommand_1 = require("./commands/ExportAutoScalingGroupRecommendationsCommand");
|
|
@@ -23,300 +24,30 @@ const GetRecommendationSummariesCommand_1 = require("./commands/GetRecommendatio
|
|
|
23
24
|
const PutRecommendationPreferencesCommand_1 = require("./commands/PutRecommendationPreferencesCommand");
|
|
24
25
|
const UpdateEnrollmentStatusCommand_1 = require("./commands/UpdateEnrollmentStatusCommand");
|
|
25
26
|
const ComputeOptimizerClient_1 = require("./ComputeOptimizerClient");
|
|
27
|
+
const commands = {
|
|
28
|
+
DeleteRecommendationPreferencesCommand: DeleteRecommendationPreferencesCommand_1.DeleteRecommendationPreferencesCommand,
|
|
29
|
+
DescribeRecommendationExportJobsCommand: DescribeRecommendationExportJobsCommand_1.DescribeRecommendationExportJobsCommand,
|
|
30
|
+
ExportAutoScalingGroupRecommendationsCommand: ExportAutoScalingGroupRecommendationsCommand_1.ExportAutoScalingGroupRecommendationsCommand,
|
|
31
|
+
ExportEBSVolumeRecommendationsCommand: ExportEBSVolumeRecommendationsCommand_1.ExportEBSVolumeRecommendationsCommand,
|
|
32
|
+
ExportEC2InstanceRecommendationsCommand: ExportEC2InstanceRecommendationsCommand_1.ExportEC2InstanceRecommendationsCommand,
|
|
33
|
+
ExportECSServiceRecommendationsCommand: ExportECSServiceRecommendationsCommand_1.ExportECSServiceRecommendationsCommand,
|
|
34
|
+
ExportLambdaFunctionRecommendationsCommand: ExportLambdaFunctionRecommendationsCommand_1.ExportLambdaFunctionRecommendationsCommand,
|
|
35
|
+
GetAutoScalingGroupRecommendationsCommand: GetAutoScalingGroupRecommendationsCommand_1.GetAutoScalingGroupRecommendationsCommand,
|
|
36
|
+
GetEBSVolumeRecommendationsCommand: GetEBSVolumeRecommendationsCommand_1.GetEBSVolumeRecommendationsCommand,
|
|
37
|
+
GetEC2InstanceRecommendationsCommand: GetEC2InstanceRecommendationsCommand_1.GetEC2InstanceRecommendationsCommand,
|
|
38
|
+
GetEC2RecommendationProjectedMetricsCommand: GetEC2RecommendationProjectedMetricsCommand_1.GetEC2RecommendationProjectedMetricsCommand,
|
|
39
|
+
GetECSServiceRecommendationProjectedMetricsCommand: GetECSServiceRecommendationProjectedMetricsCommand_1.GetECSServiceRecommendationProjectedMetricsCommand,
|
|
40
|
+
GetECSServiceRecommendationsCommand: GetECSServiceRecommendationsCommand_1.GetECSServiceRecommendationsCommand,
|
|
41
|
+
GetEffectiveRecommendationPreferencesCommand: GetEffectiveRecommendationPreferencesCommand_1.GetEffectiveRecommendationPreferencesCommand,
|
|
42
|
+
GetEnrollmentStatusCommand: GetEnrollmentStatusCommand_1.GetEnrollmentStatusCommand,
|
|
43
|
+
GetEnrollmentStatusesForOrganizationCommand: GetEnrollmentStatusesForOrganizationCommand_1.GetEnrollmentStatusesForOrganizationCommand,
|
|
44
|
+
GetLambdaFunctionRecommendationsCommand: GetLambdaFunctionRecommendationsCommand_1.GetLambdaFunctionRecommendationsCommand,
|
|
45
|
+
GetRecommendationPreferencesCommand: GetRecommendationPreferencesCommand_1.GetRecommendationPreferencesCommand,
|
|
46
|
+
GetRecommendationSummariesCommand: GetRecommendationSummariesCommand_1.GetRecommendationSummariesCommand,
|
|
47
|
+
PutRecommendationPreferencesCommand: PutRecommendationPreferencesCommand_1.PutRecommendationPreferencesCommand,
|
|
48
|
+
UpdateEnrollmentStatusCommand: UpdateEnrollmentStatusCommand_1.UpdateEnrollmentStatusCommand,
|
|
49
|
+
};
|
|
26
50
|
class ComputeOptimizer extends ComputeOptimizerClient_1.ComputeOptimizerClient {
|
|
27
|
-
deleteRecommendationPreferences(args, optionsOrCb, cb) {
|
|
28
|
-
const command = new DeleteRecommendationPreferencesCommand_1.DeleteRecommendationPreferencesCommand(args);
|
|
29
|
-
if (typeof optionsOrCb === "function") {
|
|
30
|
-
this.send(command, optionsOrCb);
|
|
31
|
-
}
|
|
32
|
-
else if (typeof cb === "function") {
|
|
33
|
-
if (typeof optionsOrCb !== "object")
|
|
34
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
35
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return this.send(command, optionsOrCb);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
describeRecommendationExportJobs(args, optionsOrCb, cb) {
|
|
42
|
-
const command = new DescribeRecommendationExportJobsCommand_1.DescribeRecommendationExportJobsCommand(args);
|
|
43
|
-
if (typeof optionsOrCb === "function") {
|
|
44
|
-
this.send(command, optionsOrCb);
|
|
45
|
-
}
|
|
46
|
-
else if (typeof cb === "function") {
|
|
47
|
-
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
49
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exportAutoScalingGroupRecommendations(args, optionsOrCb, cb) {
|
|
56
|
-
const command = new ExportAutoScalingGroupRecommendationsCommand_1.ExportAutoScalingGroupRecommendationsCommand(args);
|
|
57
|
-
if (typeof optionsOrCb === "function") {
|
|
58
|
-
this.send(command, optionsOrCb);
|
|
59
|
-
}
|
|
60
|
-
else if (typeof cb === "function") {
|
|
61
|
-
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
63
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return this.send(command, optionsOrCb);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exportEBSVolumeRecommendations(args, optionsOrCb, cb) {
|
|
70
|
-
const command = new ExportEBSVolumeRecommendationsCommand_1.ExportEBSVolumeRecommendationsCommand(args);
|
|
71
|
-
if (typeof optionsOrCb === "function") {
|
|
72
|
-
this.send(command, optionsOrCb);
|
|
73
|
-
}
|
|
74
|
-
else if (typeof cb === "function") {
|
|
75
|
-
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
77
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return this.send(command, optionsOrCb);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exportEC2InstanceRecommendations(args, optionsOrCb, cb) {
|
|
84
|
-
const command = new ExportEC2InstanceRecommendationsCommand_1.ExportEC2InstanceRecommendationsCommand(args);
|
|
85
|
-
if (typeof optionsOrCb === "function") {
|
|
86
|
-
this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
else if (typeof cb === "function") {
|
|
89
|
-
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
91
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
return this.send(command, optionsOrCb);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
exportECSServiceRecommendations(args, optionsOrCb, cb) {
|
|
98
|
-
const command = new ExportECSServiceRecommendationsCommand_1.ExportECSServiceRecommendationsCommand(args);
|
|
99
|
-
if (typeof optionsOrCb === "function") {
|
|
100
|
-
this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
else if (typeof cb === "function") {
|
|
103
|
-
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
105
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
return this.send(command, optionsOrCb);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
exportLambdaFunctionRecommendations(args, optionsOrCb, cb) {
|
|
112
|
-
const command = new ExportLambdaFunctionRecommendationsCommand_1.ExportLambdaFunctionRecommendationsCommand(args);
|
|
113
|
-
if (typeof optionsOrCb === "function") {
|
|
114
|
-
this.send(command, optionsOrCb);
|
|
115
|
-
}
|
|
116
|
-
else if (typeof cb === "function") {
|
|
117
|
-
if (typeof optionsOrCb !== "object")
|
|
118
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
119
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
return this.send(command, optionsOrCb);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
getAutoScalingGroupRecommendations(args, optionsOrCb, cb) {
|
|
126
|
-
const command = new GetAutoScalingGroupRecommendationsCommand_1.GetAutoScalingGroupRecommendationsCommand(args);
|
|
127
|
-
if (typeof optionsOrCb === "function") {
|
|
128
|
-
this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
else if (typeof cb === "function") {
|
|
131
|
-
if (typeof optionsOrCb !== "object")
|
|
132
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
133
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
return this.send(command, optionsOrCb);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
getEBSVolumeRecommendations(args, optionsOrCb, cb) {
|
|
140
|
-
const command = new GetEBSVolumeRecommendationsCommand_1.GetEBSVolumeRecommendationsCommand(args);
|
|
141
|
-
if (typeof optionsOrCb === "function") {
|
|
142
|
-
this.send(command, optionsOrCb);
|
|
143
|
-
}
|
|
144
|
-
else if (typeof cb === "function") {
|
|
145
|
-
if (typeof optionsOrCb !== "object")
|
|
146
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
147
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
return this.send(command, optionsOrCb);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
getEC2InstanceRecommendations(args, optionsOrCb, cb) {
|
|
154
|
-
const command = new GetEC2InstanceRecommendationsCommand_1.GetEC2InstanceRecommendationsCommand(args);
|
|
155
|
-
if (typeof optionsOrCb === "function") {
|
|
156
|
-
this.send(command, optionsOrCb);
|
|
157
|
-
}
|
|
158
|
-
else if (typeof cb === "function") {
|
|
159
|
-
if (typeof optionsOrCb !== "object")
|
|
160
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
161
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
return this.send(command, optionsOrCb);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
getEC2RecommendationProjectedMetrics(args, optionsOrCb, cb) {
|
|
168
|
-
const command = new GetEC2RecommendationProjectedMetricsCommand_1.GetEC2RecommendationProjectedMetricsCommand(args);
|
|
169
|
-
if (typeof optionsOrCb === "function") {
|
|
170
|
-
this.send(command, optionsOrCb);
|
|
171
|
-
}
|
|
172
|
-
else if (typeof cb === "function") {
|
|
173
|
-
if (typeof optionsOrCb !== "object")
|
|
174
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
175
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
return this.send(command, optionsOrCb);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
getECSServiceRecommendationProjectedMetrics(args, optionsOrCb, cb) {
|
|
182
|
-
const command = new GetECSServiceRecommendationProjectedMetricsCommand_1.GetECSServiceRecommendationProjectedMetricsCommand(args);
|
|
183
|
-
if (typeof optionsOrCb === "function") {
|
|
184
|
-
this.send(command, optionsOrCb);
|
|
185
|
-
}
|
|
186
|
-
else if (typeof cb === "function") {
|
|
187
|
-
if (typeof optionsOrCb !== "object")
|
|
188
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
189
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
return this.send(command, optionsOrCb);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
getECSServiceRecommendations(args, optionsOrCb, cb) {
|
|
196
|
-
const command = new GetECSServiceRecommendationsCommand_1.GetECSServiceRecommendationsCommand(args);
|
|
197
|
-
if (typeof optionsOrCb === "function") {
|
|
198
|
-
this.send(command, optionsOrCb);
|
|
199
|
-
}
|
|
200
|
-
else if (typeof cb === "function") {
|
|
201
|
-
if (typeof optionsOrCb !== "object")
|
|
202
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
203
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
return this.send(command, optionsOrCb);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
getEffectiveRecommendationPreferences(args, optionsOrCb, cb) {
|
|
210
|
-
const command = new GetEffectiveRecommendationPreferencesCommand_1.GetEffectiveRecommendationPreferencesCommand(args);
|
|
211
|
-
if (typeof optionsOrCb === "function") {
|
|
212
|
-
this.send(command, optionsOrCb);
|
|
213
|
-
}
|
|
214
|
-
else if (typeof cb === "function") {
|
|
215
|
-
if (typeof optionsOrCb !== "object")
|
|
216
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
217
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
return this.send(command, optionsOrCb);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
getEnrollmentStatus(args, optionsOrCb, cb) {
|
|
224
|
-
const command = new GetEnrollmentStatusCommand_1.GetEnrollmentStatusCommand(args);
|
|
225
|
-
if (typeof optionsOrCb === "function") {
|
|
226
|
-
this.send(command, optionsOrCb);
|
|
227
|
-
}
|
|
228
|
-
else if (typeof cb === "function") {
|
|
229
|
-
if (typeof optionsOrCb !== "object")
|
|
230
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
231
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
return this.send(command, optionsOrCb);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
getEnrollmentStatusesForOrganization(args, optionsOrCb, cb) {
|
|
238
|
-
const command = new GetEnrollmentStatusesForOrganizationCommand_1.GetEnrollmentStatusesForOrganizationCommand(args);
|
|
239
|
-
if (typeof optionsOrCb === "function") {
|
|
240
|
-
this.send(command, optionsOrCb);
|
|
241
|
-
}
|
|
242
|
-
else if (typeof cb === "function") {
|
|
243
|
-
if (typeof optionsOrCb !== "object")
|
|
244
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
245
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
248
|
-
return this.send(command, optionsOrCb);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
getLambdaFunctionRecommendations(args, optionsOrCb, cb) {
|
|
252
|
-
const command = new GetLambdaFunctionRecommendationsCommand_1.GetLambdaFunctionRecommendationsCommand(args);
|
|
253
|
-
if (typeof optionsOrCb === "function") {
|
|
254
|
-
this.send(command, optionsOrCb);
|
|
255
|
-
}
|
|
256
|
-
else if (typeof cb === "function") {
|
|
257
|
-
if (typeof optionsOrCb !== "object")
|
|
258
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
259
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
260
|
-
}
|
|
261
|
-
else {
|
|
262
|
-
return this.send(command, optionsOrCb);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
getRecommendationPreferences(args, optionsOrCb, cb) {
|
|
266
|
-
const command = new GetRecommendationPreferencesCommand_1.GetRecommendationPreferencesCommand(args);
|
|
267
|
-
if (typeof optionsOrCb === "function") {
|
|
268
|
-
this.send(command, optionsOrCb);
|
|
269
|
-
}
|
|
270
|
-
else if (typeof cb === "function") {
|
|
271
|
-
if (typeof optionsOrCb !== "object")
|
|
272
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
273
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
return this.send(command, optionsOrCb);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
getRecommendationSummaries(args, optionsOrCb, cb) {
|
|
280
|
-
const command = new GetRecommendationSummariesCommand_1.GetRecommendationSummariesCommand(args);
|
|
281
|
-
if (typeof optionsOrCb === "function") {
|
|
282
|
-
this.send(command, optionsOrCb);
|
|
283
|
-
}
|
|
284
|
-
else if (typeof cb === "function") {
|
|
285
|
-
if (typeof optionsOrCb !== "object")
|
|
286
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
287
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
return this.send(command, optionsOrCb);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
putRecommendationPreferences(args, optionsOrCb, cb) {
|
|
294
|
-
const command = new PutRecommendationPreferencesCommand_1.PutRecommendationPreferencesCommand(args);
|
|
295
|
-
if (typeof optionsOrCb === "function") {
|
|
296
|
-
this.send(command, optionsOrCb);
|
|
297
|
-
}
|
|
298
|
-
else if (typeof cb === "function") {
|
|
299
|
-
if (typeof optionsOrCb !== "object")
|
|
300
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
301
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
return this.send(command, optionsOrCb);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
updateEnrollmentStatus(args, optionsOrCb, cb) {
|
|
308
|
-
const command = new UpdateEnrollmentStatusCommand_1.UpdateEnrollmentStatusCommand(args);
|
|
309
|
-
if (typeof optionsOrCb === "function") {
|
|
310
|
-
this.send(command, optionsOrCb);
|
|
311
|
-
}
|
|
312
|
-
else if (typeof cb === "function") {
|
|
313
|
-
if (typeof optionsOrCb !== "object")
|
|
314
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
315
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
316
|
-
}
|
|
317
|
-
else {
|
|
318
|
-
return this.send(command, optionsOrCb);
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
51
|
}
|
|
322
52
|
exports.ComputeOptimizer = ComputeOptimizer;
|
|
53
|
+
(0, smithy_client_1.createAggregatedClient)(commands, ComputeOptimizer);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { DeleteRecommendationPreferencesCommand, } from "./commands/DeleteRecommendationPreferencesCommand";
|
|
2
3
|
import { DescribeRecommendationExportJobsCommand, } from "./commands/DescribeRecommendationExportJobsCommand";
|
|
3
4
|
import { ExportAutoScalingGroupRecommendationsCommand, } from "./commands/ExportAutoScalingGroupRecommendationsCommand";
|
|
@@ -20,299 +21,29 @@ import { GetRecommendationSummariesCommand, } from "./commands/GetRecommendation
|
|
|
20
21
|
import { PutRecommendationPreferencesCommand, } from "./commands/PutRecommendationPreferencesCommand";
|
|
21
22
|
import { UpdateEnrollmentStatusCommand, } from "./commands/UpdateEnrollmentStatusCommand";
|
|
22
23
|
import { ComputeOptimizerClient } from "./ComputeOptimizerClient";
|
|
24
|
+
const commands = {
|
|
25
|
+
DeleteRecommendationPreferencesCommand,
|
|
26
|
+
DescribeRecommendationExportJobsCommand,
|
|
27
|
+
ExportAutoScalingGroupRecommendationsCommand,
|
|
28
|
+
ExportEBSVolumeRecommendationsCommand,
|
|
29
|
+
ExportEC2InstanceRecommendationsCommand,
|
|
30
|
+
ExportECSServiceRecommendationsCommand,
|
|
31
|
+
ExportLambdaFunctionRecommendationsCommand,
|
|
32
|
+
GetAutoScalingGroupRecommendationsCommand,
|
|
33
|
+
GetEBSVolumeRecommendationsCommand,
|
|
34
|
+
GetEC2InstanceRecommendationsCommand,
|
|
35
|
+
GetEC2RecommendationProjectedMetricsCommand,
|
|
36
|
+
GetECSServiceRecommendationProjectedMetricsCommand,
|
|
37
|
+
GetECSServiceRecommendationsCommand,
|
|
38
|
+
GetEffectiveRecommendationPreferencesCommand,
|
|
39
|
+
GetEnrollmentStatusCommand,
|
|
40
|
+
GetEnrollmentStatusesForOrganizationCommand,
|
|
41
|
+
GetLambdaFunctionRecommendationsCommand,
|
|
42
|
+
GetRecommendationPreferencesCommand,
|
|
43
|
+
GetRecommendationSummariesCommand,
|
|
44
|
+
PutRecommendationPreferencesCommand,
|
|
45
|
+
UpdateEnrollmentStatusCommand,
|
|
46
|
+
};
|
|
23
47
|
export class ComputeOptimizer extends ComputeOptimizerClient {
|
|
24
|
-
deleteRecommendationPreferences(args, optionsOrCb, cb) {
|
|
25
|
-
const command = new DeleteRecommendationPreferencesCommand(args);
|
|
26
|
-
if (typeof optionsOrCb === "function") {
|
|
27
|
-
this.send(command, optionsOrCb);
|
|
28
|
-
}
|
|
29
|
-
else if (typeof cb === "function") {
|
|
30
|
-
if (typeof optionsOrCb !== "object")
|
|
31
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
32
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
describeRecommendationExportJobs(args, optionsOrCb, cb) {
|
|
39
|
-
const command = new DescribeRecommendationExportJobsCommand(args);
|
|
40
|
-
if (typeof optionsOrCb === "function") {
|
|
41
|
-
this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
else if (typeof cb === "function") {
|
|
44
|
-
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
46
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exportAutoScalingGroupRecommendations(args, optionsOrCb, cb) {
|
|
53
|
-
const command = new ExportAutoScalingGroupRecommendationsCommand(args);
|
|
54
|
-
if (typeof optionsOrCb === "function") {
|
|
55
|
-
this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
else if (typeof cb === "function") {
|
|
58
|
-
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
60
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
return this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
exportEBSVolumeRecommendations(args, optionsOrCb, cb) {
|
|
67
|
-
const command = new ExportEBSVolumeRecommendationsCommand(args);
|
|
68
|
-
if (typeof optionsOrCb === "function") {
|
|
69
|
-
this.send(command, optionsOrCb);
|
|
70
|
-
}
|
|
71
|
-
else if (typeof cb === "function") {
|
|
72
|
-
if (typeof optionsOrCb !== "object")
|
|
73
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
74
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
return this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
exportEC2InstanceRecommendations(args, optionsOrCb, cb) {
|
|
81
|
-
const command = new ExportEC2InstanceRecommendationsCommand(args);
|
|
82
|
-
if (typeof optionsOrCb === "function") {
|
|
83
|
-
this.send(command, optionsOrCb);
|
|
84
|
-
}
|
|
85
|
-
else if (typeof cb === "function") {
|
|
86
|
-
if (typeof optionsOrCb !== "object")
|
|
87
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
88
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
return this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exportECSServiceRecommendations(args, optionsOrCb, cb) {
|
|
95
|
-
const command = new ExportECSServiceRecommendationsCommand(args);
|
|
96
|
-
if (typeof optionsOrCb === "function") {
|
|
97
|
-
this.send(command, optionsOrCb);
|
|
98
|
-
}
|
|
99
|
-
else if (typeof cb === "function") {
|
|
100
|
-
if (typeof optionsOrCb !== "object")
|
|
101
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
102
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
return this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
exportLambdaFunctionRecommendations(args, optionsOrCb, cb) {
|
|
109
|
-
const command = new ExportLambdaFunctionRecommendationsCommand(args);
|
|
110
|
-
if (typeof optionsOrCb === "function") {
|
|
111
|
-
this.send(command, optionsOrCb);
|
|
112
|
-
}
|
|
113
|
-
else if (typeof cb === "function") {
|
|
114
|
-
if (typeof optionsOrCb !== "object")
|
|
115
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
116
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
return this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
getAutoScalingGroupRecommendations(args, optionsOrCb, cb) {
|
|
123
|
-
const command = new GetAutoScalingGroupRecommendationsCommand(args);
|
|
124
|
-
if (typeof optionsOrCb === "function") {
|
|
125
|
-
this.send(command, optionsOrCb);
|
|
126
|
-
}
|
|
127
|
-
else if (typeof cb === "function") {
|
|
128
|
-
if (typeof optionsOrCb !== "object")
|
|
129
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
130
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
return this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
getEBSVolumeRecommendations(args, optionsOrCb, cb) {
|
|
137
|
-
const command = new GetEBSVolumeRecommendationsCommand(args);
|
|
138
|
-
if (typeof optionsOrCb === "function") {
|
|
139
|
-
this.send(command, optionsOrCb);
|
|
140
|
-
}
|
|
141
|
-
else if (typeof cb === "function") {
|
|
142
|
-
if (typeof optionsOrCb !== "object")
|
|
143
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
144
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
return this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
getEC2InstanceRecommendations(args, optionsOrCb, cb) {
|
|
151
|
-
const command = new GetEC2InstanceRecommendationsCommand(args);
|
|
152
|
-
if (typeof optionsOrCb === "function") {
|
|
153
|
-
this.send(command, optionsOrCb);
|
|
154
|
-
}
|
|
155
|
-
else if (typeof cb === "function") {
|
|
156
|
-
if (typeof optionsOrCb !== "object")
|
|
157
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
158
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
return this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
getEC2RecommendationProjectedMetrics(args, optionsOrCb, cb) {
|
|
165
|
-
const command = new GetEC2RecommendationProjectedMetricsCommand(args);
|
|
166
|
-
if (typeof optionsOrCb === "function") {
|
|
167
|
-
this.send(command, optionsOrCb);
|
|
168
|
-
}
|
|
169
|
-
else if (typeof cb === "function") {
|
|
170
|
-
if (typeof optionsOrCb !== "object")
|
|
171
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
172
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
return this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
getECSServiceRecommendationProjectedMetrics(args, optionsOrCb, cb) {
|
|
179
|
-
const command = new GetECSServiceRecommendationProjectedMetricsCommand(args);
|
|
180
|
-
if (typeof optionsOrCb === "function") {
|
|
181
|
-
this.send(command, optionsOrCb);
|
|
182
|
-
}
|
|
183
|
-
else if (typeof cb === "function") {
|
|
184
|
-
if (typeof optionsOrCb !== "object")
|
|
185
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
186
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
return this.send(command, optionsOrCb);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
getECSServiceRecommendations(args, optionsOrCb, cb) {
|
|
193
|
-
const command = new GetECSServiceRecommendationsCommand(args);
|
|
194
|
-
if (typeof optionsOrCb === "function") {
|
|
195
|
-
this.send(command, optionsOrCb);
|
|
196
|
-
}
|
|
197
|
-
else if (typeof cb === "function") {
|
|
198
|
-
if (typeof optionsOrCb !== "object")
|
|
199
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
200
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
return this.send(command, optionsOrCb);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
getEffectiveRecommendationPreferences(args, optionsOrCb, cb) {
|
|
207
|
-
const command = new GetEffectiveRecommendationPreferencesCommand(args);
|
|
208
|
-
if (typeof optionsOrCb === "function") {
|
|
209
|
-
this.send(command, optionsOrCb);
|
|
210
|
-
}
|
|
211
|
-
else if (typeof cb === "function") {
|
|
212
|
-
if (typeof optionsOrCb !== "object")
|
|
213
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
214
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
return this.send(command, optionsOrCb);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
getEnrollmentStatus(args, optionsOrCb, cb) {
|
|
221
|
-
const command = new GetEnrollmentStatusCommand(args);
|
|
222
|
-
if (typeof optionsOrCb === "function") {
|
|
223
|
-
this.send(command, optionsOrCb);
|
|
224
|
-
}
|
|
225
|
-
else if (typeof cb === "function") {
|
|
226
|
-
if (typeof optionsOrCb !== "object")
|
|
227
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
228
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
return this.send(command, optionsOrCb);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
getEnrollmentStatusesForOrganization(args, optionsOrCb, cb) {
|
|
235
|
-
const command = new GetEnrollmentStatusesForOrganizationCommand(args);
|
|
236
|
-
if (typeof optionsOrCb === "function") {
|
|
237
|
-
this.send(command, optionsOrCb);
|
|
238
|
-
}
|
|
239
|
-
else if (typeof cb === "function") {
|
|
240
|
-
if (typeof optionsOrCb !== "object")
|
|
241
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
242
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
return this.send(command, optionsOrCb);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
getLambdaFunctionRecommendations(args, optionsOrCb, cb) {
|
|
249
|
-
const command = new GetLambdaFunctionRecommendationsCommand(args);
|
|
250
|
-
if (typeof optionsOrCb === "function") {
|
|
251
|
-
this.send(command, optionsOrCb);
|
|
252
|
-
}
|
|
253
|
-
else if (typeof cb === "function") {
|
|
254
|
-
if (typeof optionsOrCb !== "object")
|
|
255
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
256
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
257
|
-
}
|
|
258
|
-
else {
|
|
259
|
-
return this.send(command, optionsOrCb);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
getRecommendationPreferences(args, optionsOrCb, cb) {
|
|
263
|
-
const command = new GetRecommendationPreferencesCommand(args);
|
|
264
|
-
if (typeof optionsOrCb === "function") {
|
|
265
|
-
this.send(command, optionsOrCb);
|
|
266
|
-
}
|
|
267
|
-
else if (typeof cb === "function") {
|
|
268
|
-
if (typeof optionsOrCb !== "object")
|
|
269
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
270
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
271
|
-
}
|
|
272
|
-
else {
|
|
273
|
-
return this.send(command, optionsOrCb);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
getRecommendationSummaries(args, optionsOrCb, cb) {
|
|
277
|
-
const command = new GetRecommendationSummariesCommand(args);
|
|
278
|
-
if (typeof optionsOrCb === "function") {
|
|
279
|
-
this.send(command, optionsOrCb);
|
|
280
|
-
}
|
|
281
|
-
else if (typeof cb === "function") {
|
|
282
|
-
if (typeof optionsOrCb !== "object")
|
|
283
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
284
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
return this.send(command, optionsOrCb);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
putRecommendationPreferences(args, optionsOrCb, cb) {
|
|
291
|
-
const command = new PutRecommendationPreferencesCommand(args);
|
|
292
|
-
if (typeof optionsOrCb === "function") {
|
|
293
|
-
this.send(command, optionsOrCb);
|
|
294
|
-
}
|
|
295
|
-
else if (typeof cb === "function") {
|
|
296
|
-
if (typeof optionsOrCb !== "object")
|
|
297
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
298
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
return this.send(command, optionsOrCb);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
updateEnrollmentStatus(args, optionsOrCb, cb) {
|
|
305
|
-
const command = new UpdateEnrollmentStatusCommand(args);
|
|
306
|
-
if (typeof optionsOrCb === "function") {
|
|
307
|
-
this.send(command, optionsOrCb);
|
|
308
|
-
}
|
|
309
|
-
else if (typeof cb === "function") {
|
|
310
|
-
if (typeof optionsOrCb !== "object")
|
|
311
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
312
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
return this.send(command, optionsOrCb);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
48
|
}
|
|
49
|
+
createAggregatedClient(commands, ComputeOptimizer);
|
|
@@ -21,287 +21,148 @@ import { GetRecommendationSummariesCommandInput, GetRecommendationSummariesComma
|
|
|
21
21
|
import { PutRecommendationPreferencesCommandInput, PutRecommendationPreferencesCommandOutput } from "./commands/PutRecommendationPreferencesCommand";
|
|
22
22
|
import { UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput } from "./commands/UpdateEnrollmentStatusCommand";
|
|
23
23
|
import { ComputeOptimizerClient } from "./ComputeOptimizerClient";
|
|
24
|
-
|
|
25
|
-
* @public
|
|
26
|
-
* <p>Compute Optimizer is a service that analyzes the configuration and utilization
|
|
27
|
-
* metrics of your Amazon Web Services compute resources, such as Amazon EC2
|
|
28
|
-
* instances, Amazon EC2 Auto Scaling groups, Lambda functions, Amazon EBS volumes, and Amazon ECS services on Fargate.
|
|
29
|
-
* It reports whether your resources are optimal, and generates
|
|
30
|
-
* optimization recommendations to reduce the cost and improve the performance of your
|
|
31
|
-
* workloads. Compute Optimizer also provides recent utilization metric data, in addition
|
|
32
|
-
* to projected utilization metric data for the recommendations, which you can use to
|
|
33
|
-
* evaluate which recommendation provides the best price-performance trade-off. The
|
|
34
|
-
* analysis of your usage patterns can help you decide when to move or resize your running
|
|
35
|
-
* resources, and still meet your performance and capacity requirements. For more
|
|
36
|
-
* information about Compute Optimizer, including the required permissions to use the
|
|
37
|
-
* service, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/">Compute Optimizer User Guide</a>.</p>
|
|
38
|
-
*/
|
|
39
|
-
export declare class ComputeOptimizer extends ComputeOptimizerClient {
|
|
24
|
+
export interface ComputeOptimizer {
|
|
40
25
|
/**
|
|
41
|
-
* @
|
|
42
|
-
* <p>Deletes a recommendation preference, such as enhanced infrastructure metrics.</p>
|
|
43
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating
|
|
44
|
-
* enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
|
|
45
|
-
* Guide</i>.</p>
|
|
26
|
+
* @see {@link DeleteRecommendationPreferencesCommand}
|
|
46
27
|
*/
|
|
47
28
|
deleteRecommendationPreferences(args: DeleteRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRecommendationPreferencesCommandOutput>;
|
|
48
29
|
deleteRecommendationPreferences(args: DeleteRecommendationPreferencesCommandInput, cb: (err: any, data?: DeleteRecommendationPreferencesCommandOutput) => void): void;
|
|
49
30
|
deleteRecommendationPreferences(args: DeleteRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRecommendationPreferencesCommandOutput) => void): void;
|
|
50
31
|
/**
|
|
51
|
-
* @
|
|
52
|
-
* <p>Describes recommendation export jobs created in the last seven days.</p>
|
|
53
|
-
* <p>Use the <a>ExportAutoScalingGroupRecommendations</a> or <a>ExportEC2InstanceRecommendations</a> actions to request an export of your
|
|
54
|
-
* recommendations. Then use the <a>DescribeRecommendationExportJobs</a> action
|
|
55
|
-
* to view your export jobs.</p>
|
|
32
|
+
* @see {@link DescribeRecommendationExportJobsCommand}
|
|
56
33
|
*/
|
|
57
34
|
describeRecommendationExportJobs(args: DescribeRecommendationExportJobsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRecommendationExportJobsCommandOutput>;
|
|
58
35
|
describeRecommendationExportJobs(args: DescribeRecommendationExportJobsCommandInput, cb: (err: any, data?: DescribeRecommendationExportJobsCommandOutput) => void): void;
|
|
59
36
|
describeRecommendationExportJobs(args: DescribeRecommendationExportJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRecommendationExportJobsCommandOutput) => void): void;
|
|
60
37
|
/**
|
|
61
|
-
* @
|
|
62
|
-
* <p>Exports optimization recommendations for Auto Scaling groups.</p>
|
|
63
|
-
* <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
|
|
64
|
-
* 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
|
|
65
|
-
* Recommendations</a> in the <i>Compute Optimizer User
|
|
66
|
-
* Guide</i>.</p>
|
|
67
|
-
* <p>You can have only one Auto Scaling group export job in progress per Amazon Web Services Region.</p>
|
|
38
|
+
* @see {@link ExportAutoScalingGroupRecommendationsCommand}
|
|
68
39
|
*/
|
|
69
40
|
exportAutoScalingGroupRecommendations(args: ExportAutoScalingGroupRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportAutoScalingGroupRecommendationsCommandOutput>;
|
|
70
41
|
exportAutoScalingGroupRecommendations(args: ExportAutoScalingGroupRecommendationsCommandInput, cb: (err: any, data?: ExportAutoScalingGroupRecommendationsCommandOutput) => void): void;
|
|
71
42
|
exportAutoScalingGroupRecommendations(args: ExportAutoScalingGroupRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportAutoScalingGroupRecommendationsCommandOutput) => void): void;
|
|
72
43
|
/**
|
|
73
|
-
* @
|
|
74
|
-
* <p>Exports optimization recommendations for Amazon EBS volumes.</p>
|
|
75
|
-
* <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
|
|
76
|
-
* 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
|
|
77
|
-
* Recommendations</a> in the <i>Compute Optimizer User
|
|
78
|
-
* Guide</i>.</p>
|
|
79
|
-
* <p>You can have only one Amazon EBS volume export job in progress per Amazon Web Services Region.</p>
|
|
44
|
+
* @see {@link ExportEBSVolumeRecommendationsCommand}
|
|
80
45
|
*/
|
|
81
46
|
exportEBSVolumeRecommendations(args: ExportEBSVolumeRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportEBSVolumeRecommendationsCommandOutput>;
|
|
82
47
|
exportEBSVolumeRecommendations(args: ExportEBSVolumeRecommendationsCommandInput, cb: (err: any, data?: ExportEBSVolumeRecommendationsCommandOutput) => void): void;
|
|
83
48
|
exportEBSVolumeRecommendations(args: ExportEBSVolumeRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportEBSVolumeRecommendationsCommandOutput) => void): void;
|
|
84
49
|
/**
|
|
85
|
-
* @
|
|
86
|
-
* <p>Exports optimization recommendations for Amazon EC2 instances.</p>
|
|
87
|
-
* <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
|
|
88
|
-
* 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
|
|
89
|
-
* Recommendations</a> in the <i>Compute Optimizer User
|
|
90
|
-
* Guide</i>.</p>
|
|
91
|
-
* <p>You can have only one Amazon EC2 instance export job in progress per Amazon Web Services Region.</p>
|
|
50
|
+
* @see {@link ExportEC2InstanceRecommendationsCommand}
|
|
92
51
|
*/
|
|
93
52
|
exportEC2InstanceRecommendations(args: ExportEC2InstanceRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportEC2InstanceRecommendationsCommandOutput>;
|
|
94
53
|
exportEC2InstanceRecommendations(args: ExportEC2InstanceRecommendationsCommandInput, cb: (err: any, data?: ExportEC2InstanceRecommendationsCommandOutput) => void): void;
|
|
95
54
|
exportEC2InstanceRecommendations(args: ExportEC2InstanceRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportEC2InstanceRecommendationsCommandOutput) => void): void;
|
|
96
55
|
/**
|
|
97
|
-
* @
|
|
98
|
-
* <p>
|
|
99
|
-
* Exports optimization recommendations for Amazon ECS services on Fargate.
|
|
100
|
-
* </p>
|
|
101
|
-
* <p>Recommendations are exported in a CSV file, and its metadata
|
|
102
|
-
* in a 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
|
|
103
|
-
* Recommendations</a> in the <i>Compute Optimizer User
|
|
104
|
-
* Guide</i>.</p>
|
|
105
|
-
* <p>You can only have one Amazon ECS service export job in progress per Amazon Web Services Region.</p>
|
|
56
|
+
* @see {@link ExportECSServiceRecommendationsCommand}
|
|
106
57
|
*/
|
|
107
58
|
exportECSServiceRecommendations(args: ExportECSServiceRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportECSServiceRecommendationsCommandOutput>;
|
|
108
59
|
exportECSServiceRecommendations(args: ExportECSServiceRecommendationsCommandInput, cb: (err: any, data?: ExportECSServiceRecommendationsCommandOutput) => void): void;
|
|
109
60
|
exportECSServiceRecommendations(args: ExportECSServiceRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportECSServiceRecommendationsCommandOutput) => void): void;
|
|
110
61
|
/**
|
|
111
|
-
* @
|
|
112
|
-
* <p>Exports optimization recommendations for Lambda functions.</p>
|
|
113
|
-
* <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
|
|
114
|
-
* 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
|
|
115
|
-
* Recommendations</a> in the <i>Compute Optimizer User
|
|
116
|
-
* Guide</i>.</p>
|
|
117
|
-
* <p>You can have only one Lambda function export job in progress per Amazon Web Services Region.</p>
|
|
62
|
+
* @see {@link ExportLambdaFunctionRecommendationsCommand}
|
|
118
63
|
*/
|
|
119
64
|
exportLambdaFunctionRecommendations(args: ExportLambdaFunctionRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportLambdaFunctionRecommendationsCommandOutput>;
|
|
120
65
|
exportLambdaFunctionRecommendations(args: ExportLambdaFunctionRecommendationsCommandInput, cb: (err: any, data?: ExportLambdaFunctionRecommendationsCommandOutput) => void): void;
|
|
121
66
|
exportLambdaFunctionRecommendations(args: ExportLambdaFunctionRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportLambdaFunctionRecommendationsCommandOutput) => void): void;
|
|
122
67
|
/**
|
|
123
|
-
* @
|
|
124
|
-
* <p>Returns Auto Scaling group recommendations.</p>
|
|
125
|
-
* <p>Compute Optimizer generates recommendations for Amazon EC2 Auto Scaling groups that
|
|
126
|
-
* 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
|
|
127
|
-
* resources and requirements</a> in the <i>Compute Optimizer User
|
|
128
|
-
* Guide</i>.</p>
|
|
68
|
+
* @see {@link GetAutoScalingGroupRecommendationsCommand}
|
|
129
69
|
*/
|
|
130
70
|
getAutoScalingGroupRecommendations(args: GetAutoScalingGroupRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<GetAutoScalingGroupRecommendationsCommandOutput>;
|
|
131
71
|
getAutoScalingGroupRecommendations(args: GetAutoScalingGroupRecommendationsCommandInput, cb: (err: any, data?: GetAutoScalingGroupRecommendationsCommandOutput) => void): void;
|
|
132
72
|
getAutoScalingGroupRecommendations(args: GetAutoScalingGroupRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAutoScalingGroupRecommendationsCommandOutput) => void): void;
|
|
133
73
|
/**
|
|
134
|
-
* @
|
|
135
|
-
* <p>Returns Amazon Elastic Block Store (Amazon EBS) volume recommendations.</p>
|
|
136
|
-
* <p>Compute Optimizer generates recommendations for Amazon EBS volumes that
|
|
137
|
-
* 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
|
|
138
|
-
* resources and requirements</a> in the <i>Compute Optimizer User
|
|
139
|
-
* Guide</i>.</p>
|
|
74
|
+
* @see {@link GetEBSVolumeRecommendationsCommand}
|
|
140
75
|
*/
|
|
141
76
|
getEBSVolumeRecommendations(args: GetEBSVolumeRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<GetEBSVolumeRecommendationsCommandOutput>;
|
|
142
77
|
getEBSVolumeRecommendations(args: GetEBSVolumeRecommendationsCommandInput, cb: (err: any, data?: GetEBSVolumeRecommendationsCommandOutput) => void): void;
|
|
143
78
|
getEBSVolumeRecommendations(args: GetEBSVolumeRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEBSVolumeRecommendationsCommandOutput) => void): void;
|
|
144
79
|
/**
|
|
145
|
-
* @
|
|
146
|
-
* <p>Returns Amazon EC2 instance recommendations.</p>
|
|
147
|
-
* <p>Compute Optimizer generates recommendations for Amazon Elastic Compute Cloud (Amazon EC2) instances that meet a specific set of requirements. For more
|
|
148
|
-
* information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported resources and
|
|
149
|
-
* requirements</a> in the <i>Compute Optimizer User
|
|
150
|
-
* Guide</i>.</p>
|
|
80
|
+
* @see {@link GetEC2InstanceRecommendationsCommand}
|
|
151
81
|
*/
|
|
152
82
|
getEC2InstanceRecommendations(args: GetEC2InstanceRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<GetEC2InstanceRecommendationsCommandOutput>;
|
|
153
83
|
getEC2InstanceRecommendations(args: GetEC2InstanceRecommendationsCommandInput, cb: (err: any, data?: GetEC2InstanceRecommendationsCommandOutput) => void): void;
|
|
154
84
|
getEC2InstanceRecommendations(args: GetEC2InstanceRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEC2InstanceRecommendationsCommandOutput) => void): void;
|
|
155
85
|
/**
|
|
156
|
-
* @
|
|
157
|
-
* <p>Returns the projected utilization metrics of Amazon EC2 instance
|
|
158
|
-
* recommendations.</p>
|
|
159
|
-
* <note>
|
|
160
|
-
* <p>The <code>Cpu</code> and <code>Memory</code> metrics are the only projected
|
|
161
|
-
* utilization metrics returned when you run this action. Additionally, the
|
|
162
|
-
* <code>Memory</code> metric is returned only for resources that have the unified
|
|
163
|
-
* CloudWatch agent installed on them. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html#cw-agent">Enabling Memory Utilization with the CloudWatch Agent</a>.</p>
|
|
164
|
-
* </note>
|
|
86
|
+
* @see {@link GetEC2RecommendationProjectedMetricsCommand}
|
|
165
87
|
*/
|
|
166
88
|
getEC2RecommendationProjectedMetrics(args: GetEC2RecommendationProjectedMetricsCommandInput, options?: __HttpHandlerOptions): Promise<GetEC2RecommendationProjectedMetricsCommandOutput>;
|
|
167
89
|
getEC2RecommendationProjectedMetrics(args: GetEC2RecommendationProjectedMetricsCommandInput, cb: (err: any, data?: GetEC2RecommendationProjectedMetricsCommandOutput) => void): void;
|
|
168
90
|
getEC2RecommendationProjectedMetrics(args: GetEC2RecommendationProjectedMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEC2RecommendationProjectedMetricsCommandOutput) => void): void;
|
|
169
91
|
/**
|
|
170
|
-
* @
|
|
171
|
-
* <p>
|
|
172
|
-
* Returns the projected metrics of Amazon ECS service recommendations.
|
|
173
|
-
* </p>
|
|
92
|
+
* @see {@link GetECSServiceRecommendationProjectedMetricsCommand}
|
|
174
93
|
*/
|
|
175
94
|
getECSServiceRecommendationProjectedMetrics(args: GetECSServiceRecommendationProjectedMetricsCommandInput, options?: __HttpHandlerOptions): Promise<GetECSServiceRecommendationProjectedMetricsCommandOutput>;
|
|
176
95
|
getECSServiceRecommendationProjectedMetrics(args: GetECSServiceRecommendationProjectedMetricsCommandInput, cb: (err: any, data?: GetECSServiceRecommendationProjectedMetricsCommandOutput) => void): void;
|
|
177
96
|
getECSServiceRecommendationProjectedMetrics(args: GetECSServiceRecommendationProjectedMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetECSServiceRecommendationProjectedMetricsCommandOutput) => void): void;
|
|
178
97
|
/**
|
|
179
|
-
* @
|
|
180
|
-
* <p>
|
|
181
|
-
* Returns Amazon ECS service recommendations.
|
|
182
|
-
* </p>
|
|
183
|
-
* <p>
|
|
184
|
-
* Compute Optimizer generates recommendations for Amazon ECS services on
|
|
185
|
-
* Fargate that meet a specific set of requirements. For more
|
|
186
|
-
* information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported resources and
|
|
187
|
-
* requirements</a> in the <i>Compute Optimizer User
|
|
188
|
-
* Guide</i>.
|
|
189
|
-
* </p>
|
|
98
|
+
* @see {@link GetECSServiceRecommendationsCommand}
|
|
190
99
|
*/
|
|
191
100
|
getECSServiceRecommendations(args: GetECSServiceRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<GetECSServiceRecommendationsCommandOutput>;
|
|
192
101
|
getECSServiceRecommendations(args: GetECSServiceRecommendationsCommandInput, cb: (err: any, data?: GetECSServiceRecommendationsCommandOutput) => void): void;
|
|
193
102
|
getECSServiceRecommendations(args: GetECSServiceRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetECSServiceRecommendationsCommandOutput) => void): void;
|
|
194
103
|
/**
|
|
195
|
-
* @
|
|
196
|
-
* <p>Returns the recommendation preferences that are in effect for a given resource, such
|
|
197
|
-
* as enhanced infrastructure metrics. Considers all applicable preferences that you might
|
|
198
|
-
* have set at the resource, account, and organization level.</p>
|
|
199
|
-
* <p>When you create a recommendation preference, you can set its status to
|
|
200
|
-
* <code>Active</code> or <code>Inactive</code>. Use this action to view the
|
|
201
|
-
* recommendation preferences that are in effect, or <code>Active</code>.</p>
|
|
104
|
+
* @see {@link GetEffectiveRecommendationPreferencesCommand}
|
|
202
105
|
*/
|
|
203
106
|
getEffectiveRecommendationPreferences(args: GetEffectiveRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetEffectiveRecommendationPreferencesCommandOutput>;
|
|
204
107
|
getEffectiveRecommendationPreferences(args: GetEffectiveRecommendationPreferencesCommandInput, cb: (err: any, data?: GetEffectiveRecommendationPreferencesCommandOutput) => void): void;
|
|
205
108
|
getEffectiveRecommendationPreferences(args: GetEffectiveRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEffectiveRecommendationPreferencesCommandOutput) => void): void;
|
|
206
109
|
/**
|
|
207
|
-
* @
|
|
208
|
-
* <p>Returns the enrollment (opt in) status of an account to the Compute Optimizer
|
|
209
|
-
* service.</p>
|
|
210
|
-
* <p>If the account is the management account of an organization, this action also confirms
|
|
211
|
-
* the enrollment status of member accounts of the organization. Use the <a>GetEnrollmentStatusesForOrganization</a> action to get detailed information
|
|
212
|
-
* about the enrollment status of member accounts of an organization.</p>
|
|
110
|
+
* @see {@link GetEnrollmentStatusCommand}
|
|
213
111
|
*/
|
|
214
112
|
getEnrollmentStatus(args: GetEnrollmentStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetEnrollmentStatusCommandOutput>;
|
|
215
113
|
getEnrollmentStatus(args: GetEnrollmentStatusCommandInput, cb: (err: any, data?: GetEnrollmentStatusCommandOutput) => void): void;
|
|
216
114
|
getEnrollmentStatus(args: GetEnrollmentStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnrollmentStatusCommandOutput) => void): void;
|
|
217
115
|
/**
|
|
218
|
-
* @
|
|
219
|
-
* <p>Returns the Compute Optimizer enrollment (opt-in) status of organization member
|
|
220
|
-
* accounts, if your account is an organization management account.</p>
|
|
221
|
-
* <p>To get the enrollment status of standalone accounts, use the <a>GetEnrollmentStatus</a> action.</p>
|
|
116
|
+
* @see {@link GetEnrollmentStatusesForOrganizationCommand}
|
|
222
117
|
*/
|
|
223
118
|
getEnrollmentStatusesForOrganization(args: GetEnrollmentStatusesForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<GetEnrollmentStatusesForOrganizationCommandOutput>;
|
|
224
119
|
getEnrollmentStatusesForOrganization(args: GetEnrollmentStatusesForOrganizationCommandInput, cb: (err: any, data?: GetEnrollmentStatusesForOrganizationCommandOutput) => void): void;
|
|
225
120
|
getEnrollmentStatusesForOrganization(args: GetEnrollmentStatusesForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnrollmentStatusesForOrganizationCommandOutput) => void): void;
|
|
226
121
|
/**
|
|
227
|
-
* @
|
|
228
|
-
* <p>Returns Lambda function recommendations.</p>
|
|
229
|
-
* <p>Compute Optimizer generates recommendations for functions that meet a specific set
|
|
230
|
-
* of requirements. For more information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported resources and
|
|
231
|
-
* requirements</a> in the <i>Compute Optimizer User
|
|
232
|
-
* Guide</i>.</p>
|
|
122
|
+
* @see {@link GetLambdaFunctionRecommendationsCommand}
|
|
233
123
|
*/
|
|
234
124
|
getLambdaFunctionRecommendations(args: GetLambdaFunctionRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<GetLambdaFunctionRecommendationsCommandOutput>;
|
|
235
125
|
getLambdaFunctionRecommendations(args: GetLambdaFunctionRecommendationsCommandInput, cb: (err: any, data?: GetLambdaFunctionRecommendationsCommandOutput) => void): void;
|
|
236
126
|
getLambdaFunctionRecommendations(args: GetLambdaFunctionRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLambdaFunctionRecommendationsCommandOutput) => void): void;
|
|
237
127
|
/**
|
|
238
|
-
* @
|
|
239
|
-
* <p>Returns existing recommendation preferences, such as enhanced infrastructure
|
|
240
|
-
* metrics.</p>
|
|
241
|
-
* <p>Use the <code>scope</code> parameter to specify which preferences to return. You can
|
|
242
|
-
* specify to return preferences for an organization, a specific account ID, or a specific
|
|
243
|
-
* EC2 instance or Auto Scaling group Amazon Resource Name (ARN).</p>
|
|
244
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating
|
|
245
|
-
* enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
|
|
246
|
-
* Guide</i>.</p>
|
|
128
|
+
* @see {@link GetRecommendationPreferencesCommand}
|
|
247
129
|
*/
|
|
248
130
|
getRecommendationPreferences(args: GetRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetRecommendationPreferencesCommandOutput>;
|
|
249
131
|
getRecommendationPreferences(args: GetRecommendationPreferencesCommandInput, cb: (err: any, data?: GetRecommendationPreferencesCommandOutput) => void): void;
|
|
250
132
|
getRecommendationPreferences(args: GetRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecommendationPreferencesCommandOutput) => void): void;
|
|
251
133
|
/**
|
|
252
|
-
* @
|
|
253
|
-
* <p>Returns the optimization findings for an account.</p>
|
|
254
|
-
* <p>It returns the number of:</p>
|
|
255
|
-
* <ul>
|
|
256
|
-
* <li>
|
|
257
|
-
* <p>Amazon EC2 instances in an account that are
|
|
258
|
-
* <code>Underprovisioned</code>, <code>Overprovisioned</code>, or
|
|
259
|
-
* <code>Optimized</code>.</p>
|
|
260
|
-
* </li>
|
|
261
|
-
* <li>
|
|
262
|
-
* <p>Auto Scaling groups in an account that are <code>NotOptimized</code>, or
|
|
263
|
-
* <code>Optimized</code>.</p>
|
|
264
|
-
* </li>
|
|
265
|
-
* <li>
|
|
266
|
-
* <p>Amazon EBS volumes in an account that are <code>NotOptimized</code>,
|
|
267
|
-
* or <code>Optimized</code>.</p>
|
|
268
|
-
* </li>
|
|
269
|
-
* <li>
|
|
270
|
-
* <p>Lambda functions in an account that are <code>NotOptimized</code>,
|
|
271
|
-
* or <code>Optimized</code>.</p>
|
|
272
|
-
* </li>
|
|
273
|
-
* <li>
|
|
274
|
-
* <p>Amazon ECS services in an account that are <code>Underprovisioned</code>,
|
|
275
|
-
* <code>Overprovisioned</code>, or <code>Optimized</code>.</p>
|
|
276
|
-
* </li>
|
|
277
|
-
* </ul>
|
|
134
|
+
* @see {@link GetRecommendationSummariesCommand}
|
|
278
135
|
*/
|
|
279
136
|
getRecommendationSummaries(args: GetRecommendationSummariesCommandInput, options?: __HttpHandlerOptions): Promise<GetRecommendationSummariesCommandOutput>;
|
|
280
137
|
getRecommendationSummaries(args: GetRecommendationSummariesCommandInput, cb: (err: any, data?: GetRecommendationSummariesCommandOutput) => void): void;
|
|
281
138
|
getRecommendationSummaries(args: GetRecommendationSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecommendationSummariesCommandOutput) => void): void;
|
|
282
139
|
/**
|
|
283
|
-
* @
|
|
284
|
-
* <p>Creates a new recommendation preference or updates an existing recommendation
|
|
285
|
-
* preference, such as enhanced infrastructure metrics.</p>
|
|
286
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating
|
|
287
|
-
* enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
|
|
288
|
-
* Guide</i>.</p>
|
|
140
|
+
* @see {@link PutRecommendationPreferencesCommand}
|
|
289
141
|
*/
|
|
290
142
|
putRecommendationPreferences(args: PutRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<PutRecommendationPreferencesCommandOutput>;
|
|
291
143
|
putRecommendationPreferences(args: PutRecommendationPreferencesCommandInput, cb: (err: any, data?: PutRecommendationPreferencesCommandOutput) => void): void;
|
|
292
144
|
putRecommendationPreferences(args: PutRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRecommendationPreferencesCommandOutput) => void): void;
|
|
293
145
|
/**
|
|
294
|
-
* @
|
|
295
|
-
* <p>Updates the enrollment (opt in and opt out) status of an account to the Compute Optimizer service.</p>
|
|
296
|
-
* <p>If the account is a management account of an organization, this action can also be
|
|
297
|
-
* used to enroll member accounts of the organization.</p>
|
|
298
|
-
* <p>You must have the appropriate permissions to opt in to Compute Optimizer, to view its
|
|
299
|
-
* 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>
|
|
300
|
-
* <p>When you opt in, Compute Optimizer automatically creates a service-linked role in your
|
|
301
|
-
* 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
|
|
302
|
-
* Service-Linked Roles for Compute Optimizer</a> in the <i>Compute Optimizer User Guide</i>.</p>
|
|
146
|
+
* @see {@link UpdateEnrollmentStatusCommand}
|
|
303
147
|
*/
|
|
304
148
|
updateEnrollmentStatus(args: UpdateEnrollmentStatusCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEnrollmentStatusCommandOutput>;
|
|
305
149
|
updateEnrollmentStatus(args: UpdateEnrollmentStatusCommandInput, cb: (err: any, data?: UpdateEnrollmentStatusCommandOutput) => void): void;
|
|
306
150
|
updateEnrollmentStatus(args: UpdateEnrollmentStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEnrollmentStatusCommandOutput) => void): void;
|
|
307
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* @public
|
|
154
|
+
* <p>Compute Optimizer is a service that analyzes the configuration and utilization
|
|
155
|
+
* metrics of your Amazon Web Services compute resources, such as Amazon EC2
|
|
156
|
+
* instances, Amazon EC2 Auto Scaling groups, Lambda functions, Amazon EBS volumes, and Amazon ECS services on Fargate.
|
|
157
|
+
* It reports whether your resources are optimal, and generates
|
|
158
|
+
* optimization recommendations to reduce the cost and improve the performance of your
|
|
159
|
+
* workloads. Compute Optimizer also provides recent utilization metric data, in addition
|
|
160
|
+
* to projected utilization metric data for the recommendations, which you can use to
|
|
161
|
+
* evaluate which recommendation provides the best price-performance trade-off. The
|
|
162
|
+
* analysis of your usage patterns can help you decide when to move or resize your running
|
|
163
|
+
* resources, and still meet your performance and capacity requirements. For more
|
|
164
|
+
* information about Compute Optimizer, including the required permissions to use the
|
|
165
|
+
* service, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/">Compute Optimizer User Guide</a>.</p>
|
|
166
|
+
*/
|
|
167
|
+
export declare class ComputeOptimizer extends ComputeOptimizerClient implements ComputeOptimizer {
|
|
168
|
+
}
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
UpdateEnrollmentStatusCommandOutput,
|
|
85
85
|
} from "./commands/UpdateEnrollmentStatusCommand";
|
|
86
86
|
import { ComputeOptimizerClient } from "./ComputeOptimizerClient";
|
|
87
|
-
export
|
|
87
|
+
export interface ComputeOptimizer {
|
|
88
88
|
deleteRecommendationPreferences(
|
|
89
89
|
args: DeleteRecommendationPreferencesCommandInput,
|
|
90
90
|
options?: __HttpHandlerOptions
|
|
@@ -401,3 +401,6 @@ export declare class ComputeOptimizer extends ComputeOptimizerClient {
|
|
|
401
401
|
cb: (err: any, data?: UpdateEnrollmentStatusCommandOutput) => void
|
|
402
402
|
): void;
|
|
403
403
|
}
|
|
404
|
+
export declare class ComputeOptimizer
|
|
405
|
+
extends ComputeOptimizerClient
|
|
406
|
+
implements ComputeOptimizer {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-compute-optimizer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Compute Optimizer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|