@aws-sdk/client-compute-optimizer 3.312.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.
- package/dist-cjs/ComputeOptimizer.js +25 -294
- package/dist-cjs/protocols/Aws_json1_0.js +335 -1270
- package/dist-es/ComputeOptimizer.js +25 -294
- package/dist-es/protocols/Aws_json1_0.js +336 -1271
- package/dist-types/ComputeOptimizer.d.ts +39 -178
- package/dist-types/ts3.4/ComputeOptimizer.d.ts +4 -1
- package/package.json +6 -6
|
@@ -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);
|