@aws-sdk/client-compute-optimizer 3.185.0 → 3.188.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/CHANGELOG.md +16 -0
- package/dist-es/ComputeOptimizer.js +74 -81
- package/dist-es/ComputeOptimizerClient.js +22 -28
- package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +21 -28
- package/dist-es/commands/DescribeRecommendationExportJobsCommand.js +21 -28
- package/dist-es/commands/ExportAutoScalingGroupRecommendationsCommand.js +21 -28
- package/dist-es/commands/ExportEBSVolumeRecommendationsCommand.js +21 -28
- package/dist-es/commands/ExportEC2InstanceRecommendationsCommand.js +21 -28
- package/dist-es/commands/ExportLambdaFunctionRecommendationsCommand.js +21 -28
- package/dist-es/commands/GetAutoScalingGroupRecommendationsCommand.js +21 -28
- package/dist-es/commands/GetEBSVolumeRecommendationsCommand.js +21 -28
- package/dist-es/commands/GetEC2InstanceRecommendationsCommand.js +21 -28
- package/dist-es/commands/GetEC2RecommendationProjectedMetricsCommand.js +21 -28
- package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +21 -28
- package/dist-es/commands/GetEnrollmentStatusCommand.js +21 -28
- package/dist-es/commands/GetEnrollmentStatusesForOrganizationCommand.js +21 -28
- package/dist-es/commands/GetLambdaFunctionRecommendationsCommand.js +21 -28
- package/dist-es/commands/GetRecommendationPreferencesCommand.js +21 -28
- package/dist-es/commands/GetRecommendationSummariesCommand.js +21 -28
- package/dist-es/commands/PutRecommendationPreferencesCommand.js +21 -28
- package/dist-es/commands/UpdateEnrollmentStatusCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ComputeOptimizerServiceException.js +5 -10
- package/dist-es/models/models_0.js +321 -174
- package/dist-es/protocols/Aws_json1_0.js +1679 -2064
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-compute-optimizer
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-compute-optimizer
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { DeleteRecommendationPreferencesCommand, } from "./commands/DeleteRecommendationPreferencesCommand";
|
|
3
2
|
import { DescribeRecommendationExportJobsCommand, } from "./commands/DescribeRecommendationExportJobsCommand";
|
|
4
3
|
import { ExportAutoScalingGroupRecommendationsCommand, } from "./commands/ExportAutoScalingGroupRecommendationsCommand";
|
|
@@ -18,263 +17,257 @@ import { GetRecommendationSummariesCommand, } from "./commands/GetRecommendation
|
|
|
18
17
|
import { PutRecommendationPreferencesCommand, } from "./commands/PutRecommendationPreferencesCommand";
|
|
19
18
|
import { UpdateEnrollmentStatusCommand, } from "./commands/UpdateEnrollmentStatusCommand";
|
|
20
19
|
import { ComputeOptimizerClient } from "./ComputeOptimizerClient";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
}
|
|
26
|
-
ComputeOptimizer.prototype.deleteRecommendationPreferences = function (args, optionsOrCb, cb) {
|
|
27
|
-
var command = new DeleteRecommendationPreferencesCommand(args);
|
|
20
|
+
export class ComputeOptimizer extends ComputeOptimizerClient {
|
|
21
|
+
deleteRecommendationPreferences(args, optionsOrCb, cb) {
|
|
22
|
+
const command = new DeleteRecommendationPreferencesCommand(args);
|
|
28
23
|
if (typeof optionsOrCb === "function") {
|
|
29
24
|
this.send(command, optionsOrCb);
|
|
30
25
|
}
|
|
31
26
|
else if (typeof cb === "function") {
|
|
32
27
|
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error(
|
|
28
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
34
29
|
this.send(command, optionsOrCb || {}, cb);
|
|
35
30
|
}
|
|
36
31
|
else {
|
|
37
32
|
return this.send(command, optionsOrCb);
|
|
38
33
|
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
}
|
|
35
|
+
describeRecommendationExportJobs(args, optionsOrCb, cb) {
|
|
36
|
+
const command = new DescribeRecommendationExportJobsCommand(args);
|
|
42
37
|
if (typeof optionsOrCb === "function") {
|
|
43
38
|
this.send(command, optionsOrCb);
|
|
44
39
|
}
|
|
45
40
|
else if (typeof cb === "function") {
|
|
46
41
|
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error(
|
|
42
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
43
|
this.send(command, optionsOrCb || {}, cb);
|
|
49
44
|
}
|
|
50
45
|
else {
|
|
51
46
|
return this.send(command, optionsOrCb);
|
|
52
47
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
}
|
|
49
|
+
exportAutoScalingGroupRecommendations(args, optionsOrCb, cb) {
|
|
50
|
+
const command = new ExportAutoScalingGroupRecommendationsCommand(args);
|
|
56
51
|
if (typeof optionsOrCb === "function") {
|
|
57
52
|
this.send(command, optionsOrCb);
|
|
58
53
|
}
|
|
59
54
|
else if (typeof cb === "function") {
|
|
60
55
|
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(
|
|
56
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
62
57
|
this.send(command, optionsOrCb || {}, cb);
|
|
63
58
|
}
|
|
64
59
|
else {
|
|
65
60
|
return this.send(command, optionsOrCb);
|
|
66
61
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
}
|
|
63
|
+
exportEBSVolumeRecommendations(args, optionsOrCb, cb) {
|
|
64
|
+
const command = new ExportEBSVolumeRecommendationsCommand(args);
|
|
70
65
|
if (typeof optionsOrCb === "function") {
|
|
71
66
|
this.send(command, optionsOrCb);
|
|
72
67
|
}
|
|
73
68
|
else if (typeof cb === "function") {
|
|
74
69
|
if (typeof optionsOrCb !== "object")
|
|
75
|
-
throw new Error(
|
|
70
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
76
71
|
this.send(command, optionsOrCb || {}, cb);
|
|
77
72
|
}
|
|
78
73
|
else {
|
|
79
74
|
return this.send(command, optionsOrCb);
|
|
80
75
|
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
76
|
+
}
|
|
77
|
+
exportEC2InstanceRecommendations(args, optionsOrCb, cb) {
|
|
78
|
+
const command = new ExportEC2InstanceRecommendationsCommand(args);
|
|
84
79
|
if (typeof optionsOrCb === "function") {
|
|
85
80
|
this.send(command, optionsOrCb);
|
|
86
81
|
}
|
|
87
82
|
else if (typeof cb === "function") {
|
|
88
83
|
if (typeof optionsOrCb !== "object")
|
|
89
|
-
throw new Error(
|
|
84
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
90
85
|
this.send(command, optionsOrCb || {}, cb);
|
|
91
86
|
}
|
|
92
87
|
else {
|
|
93
88
|
return this.send(command, optionsOrCb);
|
|
94
89
|
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
}
|
|
91
|
+
exportLambdaFunctionRecommendations(args, optionsOrCb, cb) {
|
|
92
|
+
const command = new ExportLambdaFunctionRecommendationsCommand(args);
|
|
98
93
|
if (typeof optionsOrCb === "function") {
|
|
99
94
|
this.send(command, optionsOrCb);
|
|
100
95
|
}
|
|
101
96
|
else if (typeof cb === "function") {
|
|
102
97
|
if (typeof optionsOrCb !== "object")
|
|
103
|
-
throw new Error(
|
|
98
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
104
99
|
this.send(command, optionsOrCb || {}, cb);
|
|
105
100
|
}
|
|
106
101
|
else {
|
|
107
102
|
return this.send(command, optionsOrCb);
|
|
108
103
|
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
104
|
+
}
|
|
105
|
+
getAutoScalingGroupRecommendations(args, optionsOrCb, cb) {
|
|
106
|
+
const command = new GetAutoScalingGroupRecommendationsCommand(args);
|
|
112
107
|
if (typeof optionsOrCb === "function") {
|
|
113
108
|
this.send(command, optionsOrCb);
|
|
114
109
|
}
|
|
115
110
|
else if (typeof cb === "function") {
|
|
116
111
|
if (typeof optionsOrCb !== "object")
|
|
117
|
-
throw new Error(
|
|
112
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
118
113
|
this.send(command, optionsOrCb || {}, cb);
|
|
119
114
|
}
|
|
120
115
|
else {
|
|
121
116
|
return this.send(command, optionsOrCb);
|
|
122
117
|
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
118
|
+
}
|
|
119
|
+
getEBSVolumeRecommendations(args, optionsOrCb, cb) {
|
|
120
|
+
const command = new GetEBSVolumeRecommendationsCommand(args);
|
|
126
121
|
if (typeof optionsOrCb === "function") {
|
|
127
122
|
this.send(command, optionsOrCb);
|
|
128
123
|
}
|
|
129
124
|
else if (typeof cb === "function") {
|
|
130
125
|
if (typeof optionsOrCb !== "object")
|
|
131
|
-
throw new Error(
|
|
126
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
132
127
|
this.send(command, optionsOrCb || {}, cb);
|
|
133
128
|
}
|
|
134
129
|
else {
|
|
135
130
|
return this.send(command, optionsOrCb);
|
|
136
131
|
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
132
|
+
}
|
|
133
|
+
getEC2InstanceRecommendations(args, optionsOrCb, cb) {
|
|
134
|
+
const command = new GetEC2InstanceRecommendationsCommand(args);
|
|
140
135
|
if (typeof optionsOrCb === "function") {
|
|
141
136
|
this.send(command, optionsOrCb);
|
|
142
137
|
}
|
|
143
138
|
else if (typeof cb === "function") {
|
|
144
139
|
if (typeof optionsOrCb !== "object")
|
|
145
|
-
throw new Error(
|
|
140
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
146
141
|
this.send(command, optionsOrCb || {}, cb);
|
|
147
142
|
}
|
|
148
143
|
else {
|
|
149
144
|
return this.send(command, optionsOrCb);
|
|
150
145
|
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
146
|
+
}
|
|
147
|
+
getEC2RecommendationProjectedMetrics(args, optionsOrCb, cb) {
|
|
148
|
+
const command = new GetEC2RecommendationProjectedMetricsCommand(args);
|
|
154
149
|
if (typeof optionsOrCb === "function") {
|
|
155
150
|
this.send(command, optionsOrCb);
|
|
156
151
|
}
|
|
157
152
|
else if (typeof cb === "function") {
|
|
158
153
|
if (typeof optionsOrCb !== "object")
|
|
159
|
-
throw new Error(
|
|
154
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
160
155
|
this.send(command, optionsOrCb || {}, cb);
|
|
161
156
|
}
|
|
162
157
|
else {
|
|
163
158
|
return this.send(command, optionsOrCb);
|
|
164
159
|
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
160
|
+
}
|
|
161
|
+
getEffectiveRecommendationPreferences(args, optionsOrCb, cb) {
|
|
162
|
+
const command = new GetEffectiveRecommendationPreferencesCommand(args);
|
|
168
163
|
if (typeof optionsOrCb === "function") {
|
|
169
164
|
this.send(command, optionsOrCb);
|
|
170
165
|
}
|
|
171
166
|
else if (typeof cb === "function") {
|
|
172
167
|
if (typeof optionsOrCb !== "object")
|
|
173
|
-
throw new Error(
|
|
168
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
174
169
|
this.send(command, optionsOrCb || {}, cb);
|
|
175
170
|
}
|
|
176
171
|
else {
|
|
177
172
|
return this.send(command, optionsOrCb);
|
|
178
173
|
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
174
|
+
}
|
|
175
|
+
getEnrollmentStatus(args, optionsOrCb, cb) {
|
|
176
|
+
const command = new GetEnrollmentStatusCommand(args);
|
|
182
177
|
if (typeof optionsOrCb === "function") {
|
|
183
178
|
this.send(command, optionsOrCb);
|
|
184
179
|
}
|
|
185
180
|
else if (typeof cb === "function") {
|
|
186
181
|
if (typeof optionsOrCb !== "object")
|
|
187
|
-
throw new Error(
|
|
182
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
188
183
|
this.send(command, optionsOrCb || {}, cb);
|
|
189
184
|
}
|
|
190
185
|
else {
|
|
191
186
|
return this.send(command, optionsOrCb);
|
|
192
187
|
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
188
|
+
}
|
|
189
|
+
getEnrollmentStatusesForOrganization(args, optionsOrCb, cb) {
|
|
190
|
+
const command = new GetEnrollmentStatusesForOrganizationCommand(args);
|
|
196
191
|
if (typeof optionsOrCb === "function") {
|
|
197
192
|
this.send(command, optionsOrCb);
|
|
198
193
|
}
|
|
199
194
|
else if (typeof cb === "function") {
|
|
200
195
|
if (typeof optionsOrCb !== "object")
|
|
201
|
-
throw new Error(
|
|
196
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
202
197
|
this.send(command, optionsOrCb || {}, cb);
|
|
203
198
|
}
|
|
204
199
|
else {
|
|
205
200
|
return this.send(command, optionsOrCb);
|
|
206
201
|
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
|
|
202
|
+
}
|
|
203
|
+
getLambdaFunctionRecommendations(args, optionsOrCb, cb) {
|
|
204
|
+
const command = new GetLambdaFunctionRecommendationsCommand(args);
|
|
210
205
|
if (typeof optionsOrCb === "function") {
|
|
211
206
|
this.send(command, optionsOrCb);
|
|
212
207
|
}
|
|
213
208
|
else if (typeof cb === "function") {
|
|
214
209
|
if (typeof optionsOrCb !== "object")
|
|
215
|
-
throw new Error(
|
|
210
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
216
211
|
this.send(command, optionsOrCb || {}, cb);
|
|
217
212
|
}
|
|
218
213
|
else {
|
|
219
214
|
return this.send(command, optionsOrCb);
|
|
220
215
|
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
216
|
+
}
|
|
217
|
+
getRecommendationPreferences(args, optionsOrCb, cb) {
|
|
218
|
+
const command = new GetRecommendationPreferencesCommand(args);
|
|
224
219
|
if (typeof optionsOrCb === "function") {
|
|
225
220
|
this.send(command, optionsOrCb);
|
|
226
221
|
}
|
|
227
222
|
else if (typeof cb === "function") {
|
|
228
223
|
if (typeof optionsOrCb !== "object")
|
|
229
|
-
throw new Error(
|
|
224
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
230
225
|
this.send(command, optionsOrCb || {}, cb);
|
|
231
226
|
}
|
|
232
227
|
else {
|
|
233
228
|
return this.send(command, optionsOrCb);
|
|
234
229
|
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
|
|
230
|
+
}
|
|
231
|
+
getRecommendationSummaries(args, optionsOrCb, cb) {
|
|
232
|
+
const command = new GetRecommendationSummariesCommand(args);
|
|
238
233
|
if (typeof optionsOrCb === "function") {
|
|
239
234
|
this.send(command, optionsOrCb);
|
|
240
235
|
}
|
|
241
236
|
else if (typeof cb === "function") {
|
|
242
237
|
if (typeof optionsOrCb !== "object")
|
|
243
|
-
throw new Error(
|
|
238
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
244
239
|
this.send(command, optionsOrCb || {}, cb);
|
|
245
240
|
}
|
|
246
241
|
else {
|
|
247
242
|
return this.send(command, optionsOrCb);
|
|
248
243
|
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
244
|
+
}
|
|
245
|
+
putRecommendationPreferences(args, optionsOrCb, cb) {
|
|
246
|
+
const command = new PutRecommendationPreferencesCommand(args);
|
|
252
247
|
if (typeof optionsOrCb === "function") {
|
|
253
248
|
this.send(command, optionsOrCb);
|
|
254
249
|
}
|
|
255
250
|
else if (typeof cb === "function") {
|
|
256
251
|
if (typeof optionsOrCb !== "object")
|
|
257
|
-
throw new Error(
|
|
252
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
258
253
|
this.send(command, optionsOrCb || {}, cb);
|
|
259
254
|
}
|
|
260
255
|
else {
|
|
261
256
|
return this.send(command, optionsOrCb);
|
|
262
257
|
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
|
|
258
|
+
}
|
|
259
|
+
updateEnrollmentStatus(args, optionsOrCb, cb) {
|
|
260
|
+
const command = new UpdateEnrollmentStatusCommand(args);
|
|
266
261
|
if (typeof optionsOrCb === "function") {
|
|
267
262
|
this.send(command, optionsOrCb);
|
|
268
263
|
}
|
|
269
264
|
else if (typeof cb === "function") {
|
|
270
265
|
if (typeof optionsOrCb !== "object")
|
|
271
|
-
throw new Error(
|
|
266
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
272
267
|
this.send(command, optionsOrCb || {}, cb);
|
|
273
268
|
}
|
|
274
269
|
else {
|
|
275
270
|
return this.send(command, optionsOrCb);
|
|
276
271
|
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
}(ComputeOptimizerClient));
|
|
280
|
-
export { ComputeOptimizer };
|
|
272
|
+
}
|
|
273
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class ComputeOptimizerClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { ComputeOptimizerClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DeleteRecommendationPreferencesRequestFilterSensitiveLog, DeleteRecommendationPreferencesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_0DeleteRecommendationPreferencesCommand, serializeAws_json1_0DeleteRecommendationPreferencesCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DeleteRecommendationPreferencesCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "ComputeOptimizerClient";
|
|
15
|
+
const commandName = "DeleteRecommendationPreferencesCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DeleteRecommendationPreferencesRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DeleteRecommendationPreferencesResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DeleteRecommendationPreferencesCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_0DeleteRecommendationPreferencesCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_0DeleteRecommendationPreferencesCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DeleteRecommendationPreferencesCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DescribeRecommendationExportJobsRequestFilterSensitiveLog, DescribeRecommendationExportJobsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_0DescribeRecommendationExportJobsCommand, serializeAws_json1_0DescribeRecommendationExportJobsCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DescribeRecommendationExportJobsCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "ComputeOptimizerClient";
|
|
15
|
+
const commandName = "DescribeRecommendationExportJobsCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DescribeRecommendationExportJobsRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DescribeRecommendationExportJobsResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DescribeRecommendationExportJobsCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_0DescribeRecommendationExportJobsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_0DescribeRecommendationExportJobsCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DescribeRecommendationExportJobsCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { ExportAutoScalingGroupRecommendationsRequestFilterSensitiveLog, ExportAutoScalingGroupRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand, serializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class ExportAutoScalingGroupRecommendationsCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "ComputeOptimizerClient";
|
|
15
|
+
const commandName = "ExportAutoScalingGroupRecommendationsCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: ExportAutoScalingGroupRecommendationsRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: ExportAutoScalingGroupRecommendationsResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
ExportAutoScalingGroupRecommendationsCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { ExportAutoScalingGroupRecommendationsCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|