@aws-sdk/client-migrationhubstrategy 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.
Files changed (38) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/MigrationHubStrategy.js +89 -82
  4. package/dist-es/MigrationHubStrategyClient.js +28 -22
  5. package/dist-es/commands/GetApplicationComponentDetailsCommand.js +28 -21
  6. package/dist-es/commands/GetApplicationComponentStrategiesCommand.js +28 -21
  7. package/dist-es/commands/GetAssessmentCommand.js +28 -21
  8. package/dist-es/commands/GetImportFileTaskCommand.js +28 -21
  9. package/dist-es/commands/GetPortfolioPreferencesCommand.js +28 -21
  10. package/dist-es/commands/GetPortfolioSummaryCommand.js +28 -21
  11. package/dist-es/commands/GetRecommendationReportDetailsCommand.js +28 -21
  12. package/dist-es/commands/GetServerDetailsCommand.js +28 -21
  13. package/dist-es/commands/GetServerStrategiesCommand.js +28 -21
  14. package/dist-es/commands/ListApplicationComponentsCommand.js +28 -21
  15. package/dist-es/commands/ListCollectorsCommand.js +28 -21
  16. package/dist-es/commands/ListImportFileTaskCommand.js +28 -21
  17. package/dist-es/commands/ListServersCommand.js +28 -21
  18. package/dist-es/commands/PutPortfolioPreferencesCommand.js +28 -21
  19. package/dist-es/commands/StartAssessmentCommand.js +28 -21
  20. package/dist-es/commands/StartImportFileTaskCommand.js +28 -21
  21. package/dist-es/commands/StartRecommendationReportGenerationCommand.js +28 -21
  22. package/dist-es/commands/StopAssessmentCommand.js +28 -21
  23. package/dist-es/commands/UpdateApplicationComponentConfigCommand.js +28 -21
  24. package/dist-es/commands/UpdateServerConfigCommand.js +28 -21
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/MigrationHubStrategyServiceException.js +10 -5
  27. package/dist-es/models/models_0.js +184 -338
  28. package/dist-es/pagination/GetServerDetailsPaginator.js +68 -25
  29. package/dist-es/pagination/ListApplicationComponentsPaginator.js +68 -25
  30. package/dist-es/pagination/ListCollectorsPaginator.js +68 -25
  31. package/dist-es/pagination/ListImportFileTaskPaginator.js +68 -25
  32. package/dist-es/pagination/ListServersPaginator.js +68 -25
  33. package/dist-es/protocols/Aws_restJson1.js +2237 -1660
  34. package/dist-es/runtimeConfig.browser.js +12 -26
  35. package/dist-es/runtimeConfig.js +12 -30
  36. package/dist-es/runtimeConfig.native.js +5 -8
  37. package/dist-es/runtimeConfig.shared.js +11 -8
  38. 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-migrationhubstrategy
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-migrationhubstrategy
@@ -2226,10 +2226,10 @@ const deserializeAws_restJson1TransformationTool = (output, context) => {
2226
2226
  };
2227
2227
  };
2228
2228
  const deserializeMetadata = (output) => {
2229
- var _a;
2229
+ var _a, _b;
2230
2230
  return ({
2231
2231
  httpStatusCode: output.statusCode,
2232
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2232
+ 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"],
2233
2233
  extendedRequestId: output.headers["x-amz-id-2"],
2234
2234
  cfId: output.headers["x-amz-cf-id"],
2235
2235
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { GetApplicationComponentDetailsCommand, } from "./commands/GetApplicationComponentDetailsCommand";
2
3
  import { GetApplicationComponentStrategiesCommand, } from "./commands/GetApplicationComponentStrategiesCommand";
3
4
  import { GetAssessmentCommand, } from "./commands/GetAssessmentCommand";
@@ -19,285 +20,291 @@ import { StopAssessmentCommand, } from "./commands/StopAssessmentCommand";
19
20
  import { UpdateApplicationComponentConfigCommand, } from "./commands/UpdateApplicationComponentConfigCommand";
20
21
  import { UpdateServerConfigCommand, } from "./commands/UpdateServerConfigCommand";
21
22
  import { MigrationHubStrategyClient } from "./MigrationHubStrategyClient";
22
- export class MigrationHubStrategy extends MigrationHubStrategyClient {
23
- getApplicationComponentDetails(args, optionsOrCb, cb) {
24
- const command = new GetApplicationComponentDetailsCommand(args);
23
+ var MigrationHubStrategy = (function (_super) {
24
+ __extends(MigrationHubStrategy, _super);
25
+ function MigrationHubStrategy() {
26
+ return _super !== null && _super.apply(this, arguments) || this;
27
+ }
28
+ MigrationHubStrategy.prototype.getApplicationComponentDetails = function (args, optionsOrCb, cb) {
29
+ var command = new GetApplicationComponentDetailsCommand(args);
25
30
  if (typeof optionsOrCb === "function") {
26
31
  this.send(command, optionsOrCb);
27
32
  }
28
33
  else if (typeof cb === "function") {
29
34
  if (typeof optionsOrCb !== "object")
30
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
35
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
31
36
  this.send(command, optionsOrCb || {}, cb);
32
37
  }
33
38
  else {
34
39
  return this.send(command, optionsOrCb);
35
40
  }
36
- }
37
- getApplicationComponentStrategies(args, optionsOrCb, cb) {
38
- const command = new GetApplicationComponentStrategiesCommand(args);
41
+ };
42
+ MigrationHubStrategy.prototype.getApplicationComponentStrategies = function (args, optionsOrCb, cb) {
43
+ var command = new GetApplicationComponentStrategiesCommand(args);
39
44
  if (typeof optionsOrCb === "function") {
40
45
  this.send(command, optionsOrCb);
41
46
  }
42
47
  else if (typeof cb === "function") {
43
48
  if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
45
50
  this.send(command, optionsOrCb || {}, cb);
46
51
  }
47
52
  else {
48
53
  return this.send(command, optionsOrCb);
49
54
  }
50
- }
51
- getAssessment(args, optionsOrCb, cb) {
52
- const command = new GetAssessmentCommand(args);
55
+ };
56
+ MigrationHubStrategy.prototype.getAssessment = function (args, optionsOrCb, cb) {
57
+ var command = new GetAssessmentCommand(args);
53
58
  if (typeof optionsOrCb === "function") {
54
59
  this.send(command, optionsOrCb);
55
60
  }
56
61
  else if (typeof cb === "function") {
57
62
  if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
59
64
  this.send(command, optionsOrCb || {}, cb);
60
65
  }
61
66
  else {
62
67
  return this.send(command, optionsOrCb);
63
68
  }
64
- }
65
- getImportFileTask(args, optionsOrCb, cb) {
66
- const command = new GetImportFileTaskCommand(args);
69
+ };
70
+ MigrationHubStrategy.prototype.getImportFileTask = function (args, optionsOrCb, cb) {
71
+ var command = new GetImportFileTaskCommand(args);
67
72
  if (typeof optionsOrCb === "function") {
68
73
  this.send(command, optionsOrCb);
69
74
  }
70
75
  else if (typeof cb === "function") {
71
76
  if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
73
78
  this.send(command, optionsOrCb || {}, cb);
74
79
  }
75
80
  else {
76
81
  return this.send(command, optionsOrCb);
77
82
  }
78
- }
79
- getPortfolioPreferences(args, optionsOrCb, cb) {
80
- const command = new GetPortfolioPreferencesCommand(args);
83
+ };
84
+ MigrationHubStrategy.prototype.getPortfolioPreferences = function (args, optionsOrCb, cb) {
85
+ var command = new GetPortfolioPreferencesCommand(args);
81
86
  if (typeof optionsOrCb === "function") {
82
87
  this.send(command, optionsOrCb);
83
88
  }
84
89
  else if (typeof cb === "function") {
85
90
  if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
87
92
  this.send(command, optionsOrCb || {}, cb);
88
93
  }
89
94
  else {
90
95
  return this.send(command, optionsOrCb);
91
96
  }
92
- }
93
- getPortfolioSummary(args, optionsOrCb, cb) {
94
- const command = new GetPortfolioSummaryCommand(args);
97
+ };
98
+ MigrationHubStrategy.prototype.getPortfolioSummary = function (args, optionsOrCb, cb) {
99
+ var command = new GetPortfolioSummaryCommand(args);
95
100
  if (typeof optionsOrCb === "function") {
96
101
  this.send(command, optionsOrCb);
97
102
  }
98
103
  else if (typeof cb === "function") {
99
104
  if (typeof optionsOrCb !== "object")
100
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
101
106
  this.send(command, optionsOrCb || {}, cb);
102
107
  }
103
108
  else {
104
109
  return this.send(command, optionsOrCb);
105
110
  }
106
- }
107
- getRecommendationReportDetails(args, optionsOrCb, cb) {
108
- const command = new GetRecommendationReportDetailsCommand(args);
111
+ };
112
+ MigrationHubStrategy.prototype.getRecommendationReportDetails = function (args, optionsOrCb, cb) {
113
+ var command = new GetRecommendationReportDetailsCommand(args);
109
114
  if (typeof optionsOrCb === "function") {
110
115
  this.send(command, optionsOrCb);
111
116
  }
112
117
  else if (typeof cb === "function") {
113
118
  if (typeof optionsOrCb !== "object")
114
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
115
120
  this.send(command, optionsOrCb || {}, cb);
116
121
  }
117
122
  else {
118
123
  return this.send(command, optionsOrCb);
119
124
  }
120
- }
121
- getServerDetails(args, optionsOrCb, cb) {
122
- const command = new GetServerDetailsCommand(args);
125
+ };
126
+ MigrationHubStrategy.prototype.getServerDetails = function (args, optionsOrCb, cb) {
127
+ var command = new GetServerDetailsCommand(args);
123
128
  if (typeof optionsOrCb === "function") {
124
129
  this.send(command, optionsOrCb);
125
130
  }
126
131
  else if (typeof cb === "function") {
127
132
  if (typeof optionsOrCb !== "object")
128
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
129
134
  this.send(command, optionsOrCb || {}, cb);
130
135
  }
131
136
  else {
132
137
  return this.send(command, optionsOrCb);
133
138
  }
134
- }
135
- getServerStrategies(args, optionsOrCb, cb) {
136
- const command = new GetServerStrategiesCommand(args);
139
+ };
140
+ MigrationHubStrategy.prototype.getServerStrategies = function (args, optionsOrCb, cb) {
141
+ var command = new GetServerStrategiesCommand(args);
137
142
  if (typeof optionsOrCb === "function") {
138
143
  this.send(command, optionsOrCb);
139
144
  }
140
145
  else if (typeof cb === "function") {
141
146
  if (typeof optionsOrCb !== "object")
142
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
143
148
  this.send(command, optionsOrCb || {}, cb);
144
149
  }
145
150
  else {
146
151
  return this.send(command, optionsOrCb);
147
152
  }
148
- }
149
- listApplicationComponents(args, optionsOrCb, cb) {
150
- const command = new ListApplicationComponentsCommand(args);
153
+ };
154
+ MigrationHubStrategy.prototype.listApplicationComponents = function (args, optionsOrCb, cb) {
155
+ var command = new ListApplicationComponentsCommand(args);
151
156
  if (typeof optionsOrCb === "function") {
152
157
  this.send(command, optionsOrCb);
153
158
  }
154
159
  else if (typeof cb === "function") {
155
160
  if (typeof optionsOrCb !== "object")
156
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
157
162
  this.send(command, optionsOrCb || {}, cb);
158
163
  }
159
164
  else {
160
165
  return this.send(command, optionsOrCb);
161
166
  }
162
- }
163
- listCollectors(args, optionsOrCb, cb) {
164
- const command = new ListCollectorsCommand(args);
167
+ };
168
+ MigrationHubStrategy.prototype.listCollectors = function (args, optionsOrCb, cb) {
169
+ var command = new ListCollectorsCommand(args);
165
170
  if (typeof optionsOrCb === "function") {
166
171
  this.send(command, optionsOrCb);
167
172
  }
168
173
  else if (typeof cb === "function") {
169
174
  if (typeof optionsOrCb !== "object")
170
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
175
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
171
176
  this.send(command, optionsOrCb || {}, cb);
172
177
  }
173
178
  else {
174
179
  return this.send(command, optionsOrCb);
175
180
  }
176
- }
177
- listImportFileTask(args, optionsOrCb, cb) {
178
- const command = new ListImportFileTaskCommand(args);
181
+ };
182
+ MigrationHubStrategy.prototype.listImportFileTask = function (args, optionsOrCb, cb) {
183
+ var command = new ListImportFileTaskCommand(args);
179
184
  if (typeof optionsOrCb === "function") {
180
185
  this.send(command, optionsOrCb);
181
186
  }
182
187
  else if (typeof cb === "function") {
183
188
  if (typeof optionsOrCb !== "object")
184
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
189
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
185
190
  this.send(command, optionsOrCb || {}, cb);
186
191
  }
187
192
  else {
188
193
  return this.send(command, optionsOrCb);
189
194
  }
190
- }
191
- listServers(args, optionsOrCb, cb) {
192
- const command = new ListServersCommand(args);
195
+ };
196
+ MigrationHubStrategy.prototype.listServers = function (args, optionsOrCb, cb) {
197
+ var command = new ListServersCommand(args);
193
198
  if (typeof optionsOrCb === "function") {
194
199
  this.send(command, optionsOrCb);
195
200
  }
196
201
  else if (typeof cb === "function") {
197
202
  if (typeof optionsOrCb !== "object")
198
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
203
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
199
204
  this.send(command, optionsOrCb || {}, cb);
200
205
  }
201
206
  else {
202
207
  return this.send(command, optionsOrCb);
203
208
  }
204
- }
205
- putPortfolioPreferences(args, optionsOrCb, cb) {
206
- const command = new PutPortfolioPreferencesCommand(args);
209
+ };
210
+ MigrationHubStrategy.prototype.putPortfolioPreferences = function (args, optionsOrCb, cb) {
211
+ var command = new PutPortfolioPreferencesCommand(args);
207
212
  if (typeof optionsOrCb === "function") {
208
213
  this.send(command, optionsOrCb);
209
214
  }
210
215
  else if (typeof cb === "function") {
211
216
  if (typeof optionsOrCb !== "object")
212
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
217
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
213
218
  this.send(command, optionsOrCb || {}, cb);
214
219
  }
215
220
  else {
216
221
  return this.send(command, optionsOrCb);
217
222
  }
218
- }
219
- startAssessment(args, optionsOrCb, cb) {
220
- const command = new StartAssessmentCommand(args);
223
+ };
224
+ MigrationHubStrategy.prototype.startAssessment = function (args, optionsOrCb, cb) {
225
+ var command = new StartAssessmentCommand(args);
221
226
  if (typeof optionsOrCb === "function") {
222
227
  this.send(command, optionsOrCb);
223
228
  }
224
229
  else if (typeof cb === "function") {
225
230
  if (typeof optionsOrCb !== "object")
226
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
231
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
227
232
  this.send(command, optionsOrCb || {}, cb);
228
233
  }
229
234
  else {
230
235
  return this.send(command, optionsOrCb);
231
236
  }
232
- }
233
- startImportFileTask(args, optionsOrCb, cb) {
234
- const command = new StartImportFileTaskCommand(args);
237
+ };
238
+ MigrationHubStrategy.prototype.startImportFileTask = function (args, optionsOrCb, cb) {
239
+ var command = new StartImportFileTaskCommand(args);
235
240
  if (typeof optionsOrCb === "function") {
236
241
  this.send(command, optionsOrCb);
237
242
  }
238
243
  else if (typeof cb === "function") {
239
244
  if (typeof optionsOrCb !== "object")
240
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
245
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
241
246
  this.send(command, optionsOrCb || {}, cb);
242
247
  }
243
248
  else {
244
249
  return this.send(command, optionsOrCb);
245
250
  }
246
- }
247
- startRecommendationReportGeneration(args, optionsOrCb, cb) {
248
- const command = new StartRecommendationReportGenerationCommand(args);
251
+ };
252
+ MigrationHubStrategy.prototype.startRecommendationReportGeneration = function (args, optionsOrCb, cb) {
253
+ var command = new StartRecommendationReportGenerationCommand(args);
249
254
  if (typeof optionsOrCb === "function") {
250
255
  this.send(command, optionsOrCb);
251
256
  }
252
257
  else if (typeof cb === "function") {
253
258
  if (typeof optionsOrCb !== "object")
254
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
259
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
255
260
  this.send(command, optionsOrCb || {}, cb);
256
261
  }
257
262
  else {
258
263
  return this.send(command, optionsOrCb);
259
264
  }
260
- }
261
- stopAssessment(args, optionsOrCb, cb) {
262
- const command = new StopAssessmentCommand(args);
265
+ };
266
+ MigrationHubStrategy.prototype.stopAssessment = function (args, optionsOrCb, cb) {
267
+ var command = new StopAssessmentCommand(args);
263
268
  if (typeof optionsOrCb === "function") {
264
269
  this.send(command, optionsOrCb);
265
270
  }
266
271
  else if (typeof cb === "function") {
267
272
  if (typeof optionsOrCb !== "object")
268
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
273
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
269
274
  this.send(command, optionsOrCb || {}, cb);
270
275
  }
271
276
  else {
272
277
  return this.send(command, optionsOrCb);
273
278
  }
274
- }
275
- updateApplicationComponentConfig(args, optionsOrCb, cb) {
276
- const command = new UpdateApplicationComponentConfigCommand(args);
279
+ };
280
+ MigrationHubStrategy.prototype.updateApplicationComponentConfig = function (args, optionsOrCb, cb) {
281
+ var command = new UpdateApplicationComponentConfigCommand(args);
277
282
  if (typeof optionsOrCb === "function") {
278
283
  this.send(command, optionsOrCb);
279
284
  }
280
285
  else if (typeof cb === "function") {
281
286
  if (typeof optionsOrCb !== "object")
282
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
287
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
283
288
  this.send(command, optionsOrCb || {}, cb);
284
289
  }
285
290
  else {
286
291
  return this.send(command, optionsOrCb);
287
292
  }
288
- }
289
- updateServerConfig(args, optionsOrCb, cb) {
290
- const command = new UpdateServerConfigCommand(args);
293
+ };
294
+ MigrationHubStrategy.prototype.updateServerConfig = function (args, optionsOrCb, cb) {
295
+ var command = new UpdateServerConfigCommand(args);
291
296
  if (typeof optionsOrCb === "function") {
292
297
  this.send(command, optionsOrCb);
293
298
  }
294
299
  else if (typeof cb === "function") {
295
300
  if (typeof optionsOrCb !== "object")
296
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
301
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
297
302
  this.send(command, optionsOrCb || {}, cb);
298
303
  }
299
304
  else {
300
305
  return this.send(command, optionsOrCb);
301
306
  }
302
- }
303
- }
307
+ };
308
+ return MigrationHubStrategy;
309
+ }(MigrationHubStrategyClient));
310
+ export { MigrationHubStrategy };
@@ -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
- export class MigrationHubStrategyClient 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));
12
+ var MigrationHubStrategyClient = (function (_super) {
13
+ __extends(MigrationHubStrategyClient, _super);
14
+ function MigrationHubStrategyClient(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
- super.destroy();
32
- }
33
- }
34
+ MigrationHubStrategyClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return MigrationHubStrategyClient;
38
+ }(__Client));
39
+ export { MigrationHubStrategyClient };
@@ -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 { GetApplicationComponentDetailsRequestFilterSensitiveLog, GetApplicationComponentDetailsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetApplicationComponentDetailsCommand, serializeAws_restJson1GetApplicationComponentDetailsCommand, } from "../protocols/Aws_restJson1";
5
- export class GetApplicationComponentDetailsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetApplicationComponentDetailsCommand = (function (_super) {
7
+ __extends(GetApplicationComponentDetailsCommand, _super);
8
+ function GetApplicationComponentDetailsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetApplicationComponentDetailsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "MigrationHubStrategyClient";
15
- const commandName = "GetApplicationComponentDetailsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MigrationHubStrategyClient";
18
+ var commandName = "GetApplicationComponentDetailsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetApplicationComponentDetailsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetApplicationComponentDetailsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetApplicationComponentDetailsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetApplicationComponentDetailsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetApplicationComponentDetailsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetApplicationComponentDetailsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetApplicationComponentDetailsCommand;
38
+ }($Command));
39
+ export { GetApplicationComponentDetailsCommand };
@@ -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 { GetApplicationComponentStrategiesRequestFilterSensitiveLog, GetApplicationComponentStrategiesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetApplicationComponentStrategiesCommand, serializeAws_restJson1GetApplicationComponentStrategiesCommand, } from "../protocols/Aws_restJson1";
5
- export class GetApplicationComponentStrategiesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetApplicationComponentStrategiesCommand = (function (_super) {
7
+ __extends(GetApplicationComponentStrategiesCommand, _super);
8
+ function GetApplicationComponentStrategiesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetApplicationComponentStrategiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "MigrationHubStrategyClient";
15
- const commandName = "GetApplicationComponentStrategiesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MigrationHubStrategyClient";
18
+ var commandName = "GetApplicationComponentStrategiesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetApplicationComponentStrategiesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetApplicationComponentStrategiesResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetApplicationComponentStrategiesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetApplicationComponentStrategiesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetApplicationComponentStrategiesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetApplicationComponentStrategiesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetApplicationComponentStrategiesCommand;
38
+ }($Command));
39
+ export { GetApplicationComponentStrategiesCommand };