@aws-sdk/client-migrationhubstrategy 3.476.0 → 3.478.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 (27) hide show
  1. package/dist-cjs/pagination/GetServerDetailsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListAnalyzableServersPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListApplicationComponentsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListCollectorsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListImportFileTaskPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListServersPaginator.js +2 -24
  7. package/dist-cjs/protocols/Aws_restJson1.js +104 -261
  8. package/dist-es/pagination/GetServerDetailsPaginator.js +2 -23
  9. package/dist-es/pagination/ListAnalyzableServersPaginator.js +2 -23
  10. package/dist-es/pagination/ListApplicationComponentsPaginator.js +2 -23
  11. package/dist-es/pagination/ListCollectorsPaginator.js +2 -23
  12. package/dist-es/pagination/ListImportFileTaskPaginator.js +2 -23
  13. package/dist-es/pagination/ListServersPaginator.js +2 -23
  14. package/dist-es/protocols/Aws_restJson1.js +105 -262
  15. package/dist-types/pagination/GetServerDetailsPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListAnalyzableServersPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListApplicationComponentsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListCollectorsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListImportFileTaskPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListServersPaginator.d.ts +1 -1
  21. package/dist-types/ts3.4/pagination/GetServerDetailsPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/ListAnalyzableServersPaginator.d.ts +3 -3
  23. package/dist-types/ts3.4/pagination/ListApplicationComponentsPaginator.d.ts +3 -3
  24. package/dist-types/ts3.4/pagination/ListCollectorsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListImportFileTaskPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListServersPaginator.d.ts +3 -3
  27. package/package.json +7 -6
@@ -1,208 +1,128 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { MigrationHubStrategyServiceException as __BaseException } from "../models/MigrationHubStrategyServiceException";
4
4
  import { AccessDeniedException, ConflictException, DependencyException, InternalServerException, ResourceNotFoundException, ServiceLinkedRoleLockClientException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  export const se_GetApplicationComponentDetailsCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {};
8
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
9
- "/get-applicationcomponent-details/{applicationComponentId}";
10
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationComponentId", () => input.applicationComponentId, "{applicationComponentId}", false);
8
+ b.bp("/get-applicationcomponent-details/{applicationComponentId}");
9
+ b.p("applicationComponentId", () => input.applicationComponentId, "{applicationComponentId}", false);
11
10
  let body;
12
- return new __HttpRequest({
13
- protocol,
14
- hostname,
15
- port,
16
- method: "GET",
17
- headers,
18
- path: resolvedPath,
19
- body,
20
- });
11
+ b.m("GET").h(headers).b(body);
12
+ return b.build();
21
13
  };
22
14
  export const se_GetApplicationComponentStrategiesCommand = async (input, context) => {
23
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
15
+ const b = rb(input, context);
24
16
  const headers = {};
25
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
26
- "/get-applicationcomponent-strategies/{applicationComponentId}";
27
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationComponentId", () => input.applicationComponentId, "{applicationComponentId}", false);
17
+ b.bp("/get-applicationcomponent-strategies/{applicationComponentId}");
18
+ b.p("applicationComponentId", () => input.applicationComponentId, "{applicationComponentId}", false);
28
19
  let body;
29
- return new __HttpRequest({
30
- protocol,
31
- hostname,
32
- port,
33
- method: "GET",
34
- headers,
35
- path: resolvedPath,
36
- body,
37
- });
20
+ b.m("GET").h(headers).b(body);
21
+ return b.build();
38
22
  };
39
23
  export const se_GetAssessmentCommand = async (input, context) => {
40
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24
+ const b = rb(input, context);
41
25
  const headers = {};
42
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-assessment/{id}";
43
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
26
+ b.bp("/get-assessment/{id}");
27
+ b.p("id", () => input.id, "{id}", false);
44
28
  let body;
45
- return new __HttpRequest({
46
- protocol,
47
- hostname,
48
- port,
49
- method: "GET",
50
- headers,
51
- path: resolvedPath,
52
- body,
53
- });
29
+ b.m("GET").h(headers).b(body);
30
+ return b.build();
54
31
  };
55
32
  export const se_GetImportFileTaskCommand = async (input, context) => {
56
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
33
+ const b = rb(input, context);
57
34
  const headers = {};
58
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-import-file-task/{id}";
59
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
35
+ b.bp("/get-import-file-task/{id}");
36
+ b.p("id", () => input.id, "{id}", false);
60
37
  let body;
61
- return new __HttpRequest({
62
- protocol,
63
- hostname,
64
- port,
65
- method: "GET",
66
- headers,
67
- path: resolvedPath,
68
- body,
69
- });
38
+ b.m("GET").h(headers).b(body);
39
+ return b.build();
70
40
  };
71
41
  export const se_GetLatestAssessmentIdCommand = async (input, context) => {
72
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
42
+ const b = rb(input, context);
73
43
  const headers = {
74
44
  "content-type": "application/json",
75
45
  };
76
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-latest-assessment-id";
46
+ b.bp("/get-latest-assessment-id");
77
47
  let body;
78
48
  body = "";
79
- return new __HttpRequest({
80
- protocol,
81
- hostname,
82
- port,
83
- method: "GET",
84
- headers,
85
- path: resolvedPath,
86
- body,
87
- });
49
+ b.m("GET").h(headers).b(body);
50
+ return b.build();
88
51
  };
89
52
  export const se_GetPortfolioPreferencesCommand = async (input, context) => {
90
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
+ const b = rb(input, context);
91
54
  const headers = {
92
55
  "content-type": "application/json",
93
56
  };
94
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-portfolio-preferences";
57
+ b.bp("/get-portfolio-preferences");
95
58
  let body;
96
59
  body = "";
97
- return new __HttpRequest({
98
- protocol,
99
- hostname,
100
- port,
101
- method: "GET",
102
- headers,
103
- path: resolvedPath,
104
- body,
105
- });
60
+ b.m("GET").h(headers).b(body);
61
+ return b.build();
106
62
  };
107
63
  export const se_GetPortfolioSummaryCommand = async (input, context) => {
108
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
64
+ const b = rb(input, context);
109
65
  const headers = {
110
66
  "content-type": "application/json",
111
67
  };
112
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-portfolio-summary";
68
+ b.bp("/get-portfolio-summary");
113
69
  let body;
114
70
  body = "";
115
- return new __HttpRequest({
116
- protocol,
117
- hostname,
118
- port,
119
- method: "GET",
120
- headers,
121
- path: resolvedPath,
122
- body,
123
- });
71
+ b.m("GET").h(headers).b(body);
72
+ return b.build();
124
73
  };
125
74
  export const se_GetRecommendationReportDetailsCommand = async (input, context) => {
126
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
+ const b = rb(input, context);
127
76
  const headers = {};
128
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-recommendation-report-details/{id}";
129
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
77
+ b.bp("/get-recommendation-report-details/{id}");
78
+ b.p("id", () => input.id, "{id}", false);
130
79
  let body;
131
- return new __HttpRequest({
132
- protocol,
133
- hostname,
134
- port,
135
- method: "GET",
136
- headers,
137
- path: resolvedPath,
138
- body,
139
- });
80
+ b.m("GET").h(headers).b(body);
81
+ return b.build();
140
82
  };
141
83
  export const se_GetServerDetailsCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
84
+ const b = rb(input, context);
143
85
  const headers = {};
144
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-server-details/{serverId}";
145
- resolvedPath = __resolvedPath(resolvedPath, input, "serverId", () => input.serverId, "{serverId}", false);
86
+ b.bp("/get-server-details/{serverId}");
87
+ b.p("serverId", () => input.serverId, "{serverId}", false);
146
88
  const query = map({
147
- nextToken: [, input.nextToken],
148
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
89
+ [_nT]: [, input[_nT]],
90
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
149
91
  });
150
92
  let body;
151
- return new __HttpRequest({
152
- protocol,
153
- hostname,
154
- port,
155
- method: "GET",
156
- headers,
157
- path: resolvedPath,
158
- query,
159
- body,
160
- });
93
+ b.m("GET").h(headers).q(query).b(body);
94
+ return b.build();
161
95
  };
162
96
  export const se_GetServerStrategiesCommand = async (input, context) => {
163
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
97
+ const b = rb(input, context);
164
98
  const headers = {};
165
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-server-strategies/{serverId}";
166
- resolvedPath = __resolvedPath(resolvedPath, input, "serverId", () => input.serverId, "{serverId}", false);
99
+ b.bp("/get-server-strategies/{serverId}");
100
+ b.p("serverId", () => input.serverId, "{serverId}", false);
167
101
  let body;
168
- return new __HttpRequest({
169
- protocol,
170
- hostname,
171
- port,
172
- method: "GET",
173
- headers,
174
- path: resolvedPath,
175
- body,
176
- });
102
+ b.m("GET").h(headers).b(body);
103
+ return b.build();
177
104
  };
178
105
  export const se_ListAnalyzableServersCommand = async (input, context) => {
179
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
+ const b = rb(input, context);
180
107
  const headers = {
181
108
  "content-type": "application/json",
182
109
  };
183
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-analyzable-servers";
110
+ b.bp("/list-analyzable-servers");
184
111
  let body;
185
112
  body = JSON.stringify(take(input, {
186
113
  maxResults: [],
187
114
  nextToken: [],
188
115
  sort: [],
189
116
  }));
190
- return new __HttpRequest({
191
- protocol,
192
- hostname,
193
- port,
194
- method: "POST",
195
- headers,
196
- path: resolvedPath,
197
- body,
198
- });
117
+ b.m("POST").h(headers).b(body);
118
+ return b.build();
199
119
  };
200
120
  export const se_ListApplicationComponentsCommand = async (input, context) => {
201
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
+ const b = rb(input, context);
202
122
  const headers = {
203
123
  "content-type": "application/json",
204
124
  };
205
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-applicationcomponents";
125
+ b.bp("/list-applicationcomponents");
206
126
  let body;
207
127
  body = JSON.stringify(take(input, {
208
128
  applicationComponentCriteria: [],
@@ -212,62 +132,39 @@ export const se_ListApplicationComponentsCommand = async (input, context) => {
212
132
  nextToken: [],
213
133
  sort: [],
214
134
  }));
215
- return new __HttpRequest({
216
- protocol,
217
- hostname,
218
- port,
219
- method: "POST",
220
- headers,
221
- path: resolvedPath,
222
- body,
223
- });
135
+ b.m("POST").h(headers).b(body);
136
+ return b.build();
224
137
  };
225
138
  export const se_ListCollectorsCommand = async (input, context) => {
226
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
+ const b = rb(input, context);
227
140
  const headers = {};
228
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-collectors";
141
+ b.bp("/list-collectors");
229
142
  const query = map({
230
- nextToken: [, input.nextToken],
231
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
143
+ [_nT]: [, input[_nT]],
144
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
232
145
  });
233
146
  let body;
234
- return new __HttpRequest({
235
- protocol,
236
- hostname,
237
- port,
238
- method: "GET",
239
- headers,
240
- path: resolvedPath,
241
- query,
242
- body,
243
- });
147
+ b.m("GET").h(headers).q(query).b(body);
148
+ return b.build();
244
149
  };
245
150
  export const se_ListImportFileTaskCommand = async (input, context) => {
246
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
151
+ const b = rb(input, context);
247
152
  const headers = {};
248
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-import-file-task";
153
+ b.bp("/list-import-file-task");
249
154
  const query = map({
250
- nextToken: [, input.nextToken],
251
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
155
+ [_nT]: [, input[_nT]],
156
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
252
157
  });
253
158
  let body;
254
- return new __HttpRequest({
255
- protocol,
256
- hostname,
257
- port,
258
- method: "GET",
259
- headers,
260
- path: resolvedPath,
261
- query,
262
- body,
263
- });
159
+ b.m("GET").h(headers).q(query).b(body);
160
+ return b.build();
264
161
  };
265
162
  export const se_ListServersCommand = async (input, context) => {
266
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
+ const b = rb(input, context);
267
164
  const headers = {
268
165
  "content-type": "application/json",
269
166
  };
270
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-servers";
167
+ b.bp("/list-servers");
271
168
  let body;
272
169
  body = JSON.stringify(take(input, {
273
170
  filterValue: [],
@@ -277,22 +174,15 @@ export const se_ListServersCommand = async (input, context) => {
277
174
  serverCriteria: [],
278
175
  sort: [],
279
176
  }));
280
- return new __HttpRequest({
281
- protocol,
282
- hostname,
283
- port,
284
- method: "POST",
285
- headers,
286
- path: resolvedPath,
287
- body,
288
- });
177
+ b.m("POST").h(headers).b(body);
178
+ return b.build();
289
179
  };
290
180
  export const se_PutPortfolioPreferencesCommand = async (input, context) => {
291
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
181
+ const b = rb(input, context);
292
182
  const headers = {
293
183
  "content-type": "application/json",
294
184
  };
295
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-portfolio-preferences";
185
+ b.bp("/put-portfolio-preferences");
296
186
  let body;
297
187
  body = JSON.stringify(take(input, {
298
188
  applicationMode: [],
@@ -300,22 +190,15 @@ export const se_PutPortfolioPreferencesCommand = async (input, context) => {
300
190
  databasePreferences: (_) => _json(_),
301
191
  prioritizeBusinessGoals: (_) => _json(_),
302
192
  }));
303
- return new __HttpRequest({
304
- protocol,
305
- hostname,
306
- port,
307
- method: "POST",
308
- headers,
309
- path: resolvedPath,
310
- body,
311
- });
193
+ b.m("POST").h(headers).b(body);
194
+ return b.build();
312
195
  };
313
196
  export const se_StartAssessmentCommand = async (input, context) => {
314
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
197
+ const b = rb(input, context);
315
198
  const headers = {
316
199
  "content-type": "application/json",
317
200
  };
318
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-assessment";
201
+ b.bp("/start-assessment");
319
202
  let body;
320
203
  body = JSON.stringify(take(input, {
321
204
  assessmentDataSourceType: [],
@@ -323,22 +206,15 @@ export const se_StartAssessmentCommand = async (input, context) => {
323
206
  s3bucketForAnalysisData: [],
324
207
  s3bucketForReportData: [],
325
208
  }));
326
- return new __HttpRequest({
327
- protocol,
328
- hostname,
329
- port,
330
- method: "POST",
331
- headers,
332
- path: resolvedPath,
333
- body,
334
- });
209
+ b.m("POST").h(headers).b(body);
210
+ return b.build();
335
211
  };
336
212
  export const se_StartImportFileTaskCommand = async (input, context) => {
337
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
213
+ const b = rb(input, context);
338
214
  const headers = {
339
215
  "content-type": "application/json",
340
216
  };
341
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-import-file-task";
217
+ b.bp("/start-import-file-task");
342
218
  let body;
343
219
  body = JSON.stringify(take(input, {
344
220
  S3Bucket: [],
@@ -348,63 +224,42 @@ export const se_StartImportFileTaskCommand = async (input, context) => {
348
224
  s3bucketForReportData: [],
349
225
  s3key: [],
350
226
  }));
351
- return new __HttpRequest({
352
- protocol,
353
- hostname,
354
- port,
355
- method: "POST",
356
- headers,
357
- path: resolvedPath,
358
- body,
359
- });
227
+ b.m("POST").h(headers).b(body);
228
+ return b.build();
360
229
  };
361
230
  export const se_StartRecommendationReportGenerationCommand = async (input, context) => {
362
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const b = rb(input, context);
363
232
  const headers = {
364
233
  "content-type": "application/json",
365
234
  };
366
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-recommendation-report-generation";
235
+ b.bp("/start-recommendation-report-generation");
367
236
  let body;
368
237
  body = JSON.stringify(take(input, {
369
238
  groupIdFilter: (_) => _json(_),
370
239
  outputFormat: [],
371
240
  }));
372
- return new __HttpRequest({
373
- protocol,
374
- hostname,
375
- port,
376
- method: "POST",
377
- headers,
378
- path: resolvedPath,
379
- body,
380
- });
241
+ b.m("POST").h(headers).b(body);
242
+ return b.build();
381
243
  };
382
244
  export const se_StopAssessmentCommand = async (input, context) => {
383
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
245
+ const b = rb(input, context);
384
246
  const headers = {
385
247
  "content-type": "application/json",
386
248
  };
387
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stop-assessment";
249
+ b.bp("/stop-assessment");
388
250
  let body;
389
251
  body = JSON.stringify(take(input, {
390
252
  assessmentId: [],
391
253
  }));
392
- return new __HttpRequest({
393
- protocol,
394
- hostname,
395
- port,
396
- method: "POST",
397
- headers,
398
- path: resolvedPath,
399
- body,
400
- });
254
+ b.m("POST").h(headers).b(body);
255
+ return b.build();
401
256
  };
402
257
  export const se_UpdateApplicationComponentConfigCommand = async (input, context) => {
403
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
+ const b = rb(input, context);
404
259
  const headers = {
405
260
  "content-type": "application/json",
406
261
  };
407
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-applicationcomponent-config";
262
+ b.bp("/update-applicationcomponent-config");
408
263
  let body;
409
264
  body = JSON.stringify(take(input, {
410
265
  appType: [],
@@ -415,36 +270,22 @@ export const se_UpdateApplicationComponentConfigCommand = async (input, context)
415
270
  sourceCodeList: (_) => _json(_),
416
271
  strategyOption: (_) => _json(_),
417
272
  }));
418
- return new __HttpRequest({
419
- protocol,
420
- hostname,
421
- port,
422
- method: "POST",
423
- headers,
424
- path: resolvedPath,
425
- body,
426
- });
273
+ b.m("POST").h(headers).b(body);
274
+ return b.build();
427
275
  };
428
276
  export const se_UpdateServerConfigCommand = async (input, context) => {
429
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
+ const b = rb(input, context);
430
278
  const headers = {
431
279
  "content-type": "application/json",
432
280
  };
433
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-server-config";
281
+ b.bp("/update-server-config");
434
282
  let body;
435
283
  body = JSON.stringify(take(input, {
436
284
  serverId: [],
437
285
  strategyOption: (_) => _json(_),
438
286
  }));
439
- return new __HttpRequest({
440
- protocol,
441
- hostname,
442
- port,
443
- method: "POST",
444
- headers,
445
- path: resolvedPath,
446
- body,
447
- });
287
+ b.m("POST").h(headers).b(body);
288
+ return b.build();
448
289
  };
449
290
  export const de_GetApplicationComponentDetailsCommand = async (output, context) => {
450
291
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1643,6 +1484,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1643
1484
  value !== "" &&
1644
1485
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1645
1486
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1487
+ const _mR = "maxResults";
1488
+ const _nT = "nextToken";
1646
1489
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1647
1490
  if (encoded.length) {
1648
1491
  return JSON.parse(encoded);
@@ -4,4 +4,4 @@ import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateGetServerDetails(config: MigrationHubStrategyPaginationConfiguration, input: GetServerDetailsCommandInput, ...additionalArguments: any): Paginator<GetServerDetailsCommandOutput>;
7
+ export declare const paginateGetServerDetails: (config: MigrationHubStrategyPaginationConfiguration, input: GetServerDetailsCommandInput, ...rest: any[]) => Paginator<GetServerDetailsCommandOutput>;
@@ -4,4 +4,4 @@ import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAnalyzableServers(config: MigrationHubStrategyPaginationConfiguration, input: ListAnalyzableServersCommandInput, ...additionalArguments: any): Paginator<ListAnalyzableServersCommandOutput>;
7
+ export declare const paginateListAnalyzableServers: (config: MigrationHubStrategyPaginationConfiguration, input: ListAnalyzableServersCommandInput, ...rest: any[]) => Paginator<ListAnalyzableServersCommandOutput>;
@@ -4,4 +4,4 @@ import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListApplicationComponents(config: MigrationHubStrategyPaginationConfiguration, input: ListApplicationComponentsCommandInput, ...additionalArguments: any): Paginator<ListApplicationComponentsCommandOutput>;
7
+ export declare const paginateListApplicationComponents: (config: MigrationHubStrategyPaginationConfiguration, input: ListApplicationComponentsCommandInput, ...rest: any[]) => Paginator<ListApplicationComponentsCommandOutput>;
@@ -4,4 +4,4 @@ import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListCollectors(config: MigrationHubStrategyPaginationConfiguration, input: ListCollectorsCommandInput, ...additionalArguments: any): Paginator<ListCollectorsCommandOutput>;
7
+ export declare const paginateListCollectors: (config: MigrationHubStrategyPaginationConfiguration, input: ListCollectorsCommandInput, ...rest: any[]) => Paginator<ListCollectorsCommandOutput>;
@@ -4,4 +4,4 @@ import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListImportFileTask(config: MigrationHubStrategyPaginationConfiguration, input: ListImportFileTaskCommandInput, ...additionalArguments: any): Paginator<ListImportFileTaskCommandOutput>;
7
+ export declare const paginateListImportFileTask: (config: MigrationHubStrategyPaginationConfiguration, input: ListImportFileTaskCommandInput, ...rest: any[]) => Paginator<ListImportFileTaskCommandOutput>;
@@ -4,4 +4,4 @@ import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListServers(config: MigrationHubStrategyPaginationConfiguration, input: ListServersCommandInput, ...additionalArguments: any): Paginator<ListServersCommandOutput>;
7
+ export declare const paginateListServers: (config: MigrationHubStrategyPaginationConfiguration, input: ListServersCommandInput, ...rest: any[]) => Paginator<ListServersCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  GetServerDetailsCommandOutput,
5
5
  } from "../commands/GetServerDetailsCommand";
6
6
  import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateGetServerDetails(
7
+ export declare const paginateGetServerDetails: (
8
8
  config: MigrationHubStrategyPaginationConfiguration,
9
9
  input: GetServerDetailsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<GetServerDetailsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<GetServerDetailsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAnalyzableServersCommandOutput,
5
5
  } from "../commands/ListAnalyzableServersCommand";
6
6
  import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAnalyzableServers(
7
+ export declare const paginateListAnalyzableServers: (
8
8
  config: MigrationHubStrategyPaginationConfiguration,
9
9
  input: ListAnalyzableServersCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAnalyzableServersCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAnalyzableServersCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListApplicationComponentsCommandOutput,
5
5
  } from "../commands/ListApplicationComponentsCommand";
6
6
  import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListApplicationComponents(
7
+ export declare const paginateListApplicationComponents: (
8
8
  config: MigrationHubStrategyPaginationConfiguration,
9
9
  input: ListApplicationComponentsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListApplicationComponentsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListApplicationComponentsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListCollectorsCommandOutput,
5
5
  } from "../commands/ListCollectorsCommand";
6
6
  import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListCollectors(
7
+ export declare const paginateListCollectors: (
8
8
  config: MigrationHubStrategyPaginationConfiguration,
9
9
  input: ListCollectorsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListCollectorsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListCollectorsCommandOutput>;