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