@aws-sdk/client-migrationhubstrategy 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/MigrationHubStrategy.js +82 -89
- package/dist-es/MigrationHubStrategyClient.js +22 -28
- package/dist-es/commands/GetApplicationComponentDetailsCommand.js +21 -28
- package/dist-es/commands/GetApplicationComponentStrategiesCommand.js +21 -28
- package/dist-es/commands/GetAssessmentCommand.js +21 -28
- package/dist-es/commands/GetImportFileTaskCommand.js +21 -28
- package/dist-es/commands/GetPortfolioPreferencesCommand.js +21 -28
- package/dist-es/commands/GetPortfolioSummaryCommand.js +21 -28
- package/dist-es/commands/GetRecommendationReportDetailsCommand.js +21 -28
- package/dist-es/commands/GetServerDetailsCommand.js +21 -28
- package/dist-es/commands/GetServerStrategiesCommand.js +21 -28
- package/dist-es/commands/ListApplicationComponentsCommand.js +21 -28
- package/dist-es/commands/ListCollectorsCommand.js +21 -28
- package/dist-es/commands/ListImportFileTaskCommand.js +21 -28
- package/dist-es/commands/ListServersCommand.js +21 -28
- package/dist-es/commands/PutPortfolioPreferencesCommand.js +21 -28
- package/dist-es/commands/StartAssessmentCommand.js +21 -28
- package/dist-es/commands/StartImportFileTaskCommand.js +21 -28
- package/dist-es/commands/StartRecommendationReportGenerationCommand.js +21 -28
- package/dist-es/commands/StopAssessmentCommand.js +21 -28
- package/dist-es/commands/UpdateApplicationComponentConfigCommand.js +21 -28
- package/dist-es/commands/UpdateServerConfigCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MigrationHubStrategyServiceException.js +5 -10
- package/dist-es/models/models_0.js +338 -184
- package/dist-es/pagination/GetServerDetailsPaginator.js +25 -68
- package/dist-es/pagination/ListApplicationComponentsPaginator.js +25 -68
- package/dist-es/pagination/ListCollectorsPaginator.js +25 -68
- package/dist-es/pagination/ListImportFileTaskPaginator.js +25 -68
- package/dist-es/pagination/ListServersPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1660 -2237
- 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
|
@@ -1,2167 +1,1608 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { MigrationHubStrategyServiceException as __BaseException } from "../models/MigrationHubStrategyServiceException";
|
|
5
4
|
import { AccessDeniedException, ConflictException, DatabaseMigrationPreference, InternalServerException, ManagementPreference, ResourceNotFoundException, ServiceLinkedRoleLockClientException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
return
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
return
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
})
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
return
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
})
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
});
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
});
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
});
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
});
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
});
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
export
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
426
|
-
headers = {
|
|
427
|
-
"content-type": "application/json",
|
|
428
|
-
};
|
|
429
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/stop-assessment";
|
|
430
|
-
body = JSON.stringify(__assign({}, (input.assessmentId != null && { assessmentId: input.assessmentId })));
|
|
431
|
-
return [2, new __HttpRequest({
|
|
432
|
-
protocol: protocol,
|
|
433
|
-
hostname: hostname,
|
|
434
|
-
port: port,
|
|
435
|
-
method: "POST",
|
|
436
|
-
headers: headers,
|
|
437
|
-
path: resolvedPath,
|
|
438
|
-
body: body,
|
|
439
|
-
})];
|
|
440
|
-
}
|
|
441
|
-
});
|
|
442
|
-
}); };
|
|
443
|
-
export var serializeAws_restJson1UpdateApplicationComponentConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
444
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
445
|
-
return __generator(this, function (_c) {
|
|
446
|
-
switch (_c.label) {
|
|
447
|
-
case 0: return [4, context.endpoint()];
|
|
448
|
-
case 1:
|
|
449
|
-
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
450
|
-
headers = {
|
|
451
|
-
"content-type": "application/json",
|
|
452
|
-
};
|
|
453
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-applicationcomponent-config";
|
|
454
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.applicationComponentId != null && { applicationComponentId: input.applicationComponentId })), (input.inclusionStatus != null && { inclusionStatus: input.inclusionStatus })), (input.secretsManagerKey != null && { secretsManagerKey: input.secretsManagerKey })), (input.sourceCodeList != null && {
|
|
455
|
-
sourceCodeList: serializeAws_restJson1SourceCodeList(input.sourceCodeList, context),
|
|
456
|
-
})), (input.strategyOption != null && {
|
|
457
|
-
strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
|
|
458
|
-
})));
|
|
459
|
-
return [2, new __HttpRequest({
|
|
460
|
-
protocol: protocol,
|
|
461
|
-
hostname: hostname,
|
|
462
|
-
port: port,
|
|
463
|
-
method: "POST",
|
|
464
|
-
headers: headers,
|
|
465
|
-
path: resolvedPath,
|
|
466
|
-
body: body,
|
|
467
|
-
})];
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
|
-
}); };
|
|
471
|
-
export var serializeAws_restJson1UpdateServerConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
472
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
473
|
-
return __generator(this, function (_c) {
|
|
474
|
-
switch (_c.label) {
|
|
475
|
-
case 0: return [4, context.endpoint()];
|
|
476
|
-
case 1:
|
|
477
|
-
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
478
|
-
headers = {
|
|
479
|
-
"content-type": "application/json",
|
|
480
|
-
};
|
|
481
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-server-config";
|
|
482
|
-
body = JSON.stringify(__assign(__assign({}, (input.serverId != null && { serverId: input.serverId })), (input.strategyOption != null && {
|
|
483
|
-
strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
|
|
484
|
-
})));
|
|
485
|
-
return [2, new __HttpRequest({
|
|
486
|
-
protocol: protocol,
|
|
487
|
-
hostname: hostname,
|
|
488
|
-
port: port,
|
|
489
|
-
method: "POST",
|
|
490
|
-
headers: headers,
|
|
491
|
-
path: resolvedPath,
|
|
492
|
-
body: body,
|
|
493
|
-
})];
|
|
494
|
-
}
|
|
495
|
-
});
|
|
496
|
-
}); };
|
|
497
|
-
export var deserializeAws_restJson1GetApplicationComponentDetailsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
498
|
-
var contents, data, _a, _b;
|
|
499
|
-
return __generator(this, function (_c) {
|
|
500
|
-
switch (_c.label) {
|
|
501
|
-
case 0:
|
|
502
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
503
|
-
return [2, deserializeAws_restJson1GetApplicationComponentDetailsCommandError(output, context)];
|
|
504
|
-
}
|
|
505
|
-
contents = map({
|
|
506
|
-
$metadata: deserializeMetadata(output),
|
|
507
|
-
});
|
|
508
|
-
_a = __expectNonNull;
|
|
509
|
-
_b = __expectObject;
|
|
510
|
-
return [4, parseBody(output.body, context)];
|
|
511
|
-
case 1:
|
|
512
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
513
|
-
if (data.applicationComponentDetail != null) {
|
|
514
|
-
contents.applicationComponentDetail = deserializeAws_restJson1ApplicationComponentDetail(data.applicationComponentDetail, context);
|
|
515
|
-
}
|
|
516
|
-
if (data.associatedApplications != null) {
|
|
517
|
-
contents.associatedApplications = deserializeAws_restJson1AssociatedApplications(data.associatedApplications, context);
|
|
518
|
-
}
|
|
519
|
-
if (data.associatedServerIds != null) {
|
|
520
|
-
contents.associatedServerIds = deserializeAws_restJson1AssociatedServerIDs(data.associatedServerIds, context);
|
|
521
|
-
}
|
|
522
|
-
if (data.moreApplicationResource != null) {
|
|
523
|
-
contents.moreApplicationResource = __expectBoolean(data.moreApplicationResource);
|
|
524
|
-
}
|
|
525
|
-
return [2, contents];
|
|
526
|
-
}
|
|
527
|
-
});
|
|
528
|
-
}); };
|
|
529
|
-
var deserializeAws_restJson1GetApplicationComponentDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
530
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
531
|
-
var _c;
|
|
532
|
-
return __generator(this, function (_d) {
|
|
533
|
-
switch (_d.label) {
|
|
534
|
-
case 0:
|
|
535
|
-
_a = [__assign({}, output)];
|
|
536
|
-
_c = {};
|
|
537
|
-
return [4, parseErrorBody(output.body, context)];
|
|
538
|
-
case 1:
|
|
539
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
540
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
-
_b = errorCode;
|
|
542
|
-
switch (_b) {
|
|
543
|
-
case "InternalServerException": return [3, 2];
|
|
544
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException": return [3, 2];
|
|
545
|
-
case "ResourceNotFoundException": return [3, 4];
|
|
546
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException": return [3, 4];
|
|
547
|
-
case "ThrottlingException": return [3, 6];
|
|
548
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 6];
|
|
549
|
-
}
|
|
550
|
-
return [3, 8];
|
|
551
|
-
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
552
|
-
case 3: throw _d.sent();
|
|
553
|
-
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
554
|
-
case 5: throw _d.sent();
|
|
555
|
-
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
556
|
-
case 7: throw _d.sent();
|
|
557
|
-
case 8:
|
|
558
|
-
parsedBody = parsedOutput.body;
|
|
559
|
-
throwDefaultError({
|
|
560
|
-
output: output,
|
|
561
|
-
parsedBody: parsedBody,
|
|
562
|
-
exceptionCtor: __BaseException,
|
|
563
|
-
errorCode: errorCode,
|
|
564
|
-
});
|
|
565
|
-
_d.label = 9;
|
|
566
|
-
case 9: return [2];
|
|
567
|
-
}
|
|
568
|
-
});
|
|
569
|
-
}); };
|
|
570
|
-
export var deserializeAws_restJson1GetApplicationComponentStrategiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
571
|
-
var contents, data, _a, _b;
|
|
572
|
-
return __generator(this, function (_c) {
|
|
573
|
-
switch (_c.label) {
|
|
574
|
-
case 0:
|
|
575
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
576
|
-
return [2, deserializeAws_restJson1GetApplicationComponentStrategiesCommandError(output, context)];
|
|
577
|
-
}
|
|
578
|
-
contents = map({
|
|
579
|
-
$metadata: deserializeMetadata(output),
|
|
580
|
-
});
|
|
581
|
-
_a = __expectNonNull;
|
|
582
|
-
_b = __expectObject;
|
|
583
|
-
return [4, parseBody(output.body, context)];
|
|
584
|
-
case 1:
|
|
585
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
586
|
-
if (data.applicationComponentStrategies != null) {
|
|
587
|
-
contents.applicationComponentStrategies = deserializeAws_restJson1ApplicationComponentStrategies(data.applicationComponentStrategies, context);
|
|
588
|
-
}
|
|
589
|
-
return [2, contents];
|
|
590
|
-
}
|
|
591
|
-
});
|
|
592
|
-
}); };
|
|
593
|
-
var deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
594
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
595
|
-
var _c;
|
|
596
|
-
return __generator(this, function (_d) {
|
|
597
|
-
switch (_d.label) {
|
|
598
|
-
case 0:
|
|
599
|
-
_a = [__assign({}, output)];
|
|
600
|
-
_c = {};
|
|
601
|
-
return [4, parseErrorBody(output.body, context)];
|
|
602
|
-
case 1:
|
|
603
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
604
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
605
|
-
_b = errorCode;
|
|
606
|
-
switch (_b) {
|
|
607
|
-
case "InternalServerException": return [3, 2];
|
|
608
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException": return [3, 2];
|
|
609
|
-
case "ResourceNotFoundException": return [3, 4];
|
|
610
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException": return [3, 4];
|
|
611
|
-
case "ThrottlingException": return [3, 6];
|
|
612
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 6];
|
|
613
|
-
}
|
|
614
|
-
return [3, 8];
|
|
615
|
-
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
616
|
-
case 3: throw _d.sent();
|
|
617
|
-
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
618
|
-
case 5: throw _d.sent();
|
|
619
|
-
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
620
|
-
case 7: throw _d.sent();
|
|
621
|
-
case 8:
|
|
622
|
-
parsedBody = parsedOutput.body;
|
|
623
|
-
throwDefaultError({
|
|
624
|
-
output: output,
|
|
625
|
-
parsedBody: parsedBody,
|
|
626
|
-
exceptionCtor: __BaseException,
|
|
627
|
-
errorCode: errorCode,
|
|
628
|
-
});
|
|
629
|
-
_d.label = 9;
|
|
630
|
-
case 9: return [2];
|
|
631
|
-
}
|
|
632
|
-
});
|
|
633
|
-
}); };
|
|
634
|
-
export var deserializeAws_restJson1GetAssessmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
635
|
-
var contents, data, _a, _b;
|
|
636
|
-
return __generator(this, function (_c) {
|
|
637
|
-
switch (_c.label) {
|
|
638
|
-
case 0:
|
|
639
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
640
|
-
return [2, deserializeAws_restJson1GetAssessmentCommandError(output, context)];
|
|
641
|
-
}
|
|
642
|
-
contents = map({
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
});
|
|
645
|
-
_a = __expectNonNull;
|
|
646
|
-
_b = __expectObject;
|
|
647
|
-
return [4, parseBody(output.body, context)];
|
|
648
|
-
case 1:
|
|
649
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
650
|
-
if (data.dataCollectionDetails != null) {
|
|
651
|
-
contents.dataCollectionDetails = deserializeAws_restJson1DataCollectionDetails(data.dataCollectionDetails, context);
|
|
652
|
-
}
|
|
653
|
-
if (data.id != null) {
|
|
654
|
-
contents.id = __expectString(data.id);
|
|
655
|
-
}
|
|
656
|
-
return [2, contents];
|
|
657
|
-
}
|
|
658
|
-
});
|
|
659
|
-
}); };
|
|
660
|
-
var deserializeAws_restJson1GetAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
661
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
662
|
-
var _c;
|
|
663
|
-
return __generator(this, function (_d) {
|
|
664
|
-
switch (_d.label) {
|
|
665
|
-
case 0:
|
|
666
|
-
_a = [__assign({}, output)];
|
|
667
|
-
_c = {};
|
|
668
|
-
return [4, parseErrorBody(output.body, context)];
|
|
669
|
-
case 1:
|
|
670
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
671
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
|
-
_b = errorCode;
|
|
673
|
-
switch (_b) {
|
|
674
|
-
case "AccessDeniedException": return [3, 2];
|
|
675
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException": return [3, 2];
|
|
676
|
-
case "InternalServerException": return [3, 4];
|
|
677
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException": return [3, 4];
|
|
678
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
679
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException": return [3, 6];
|
|
680
|
-
case "ThrottlingException": return [3, 8];
|
|
681
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 8];
|
|
682
|
-
}
|
|
683
|
-
return [3, 10];
|
|
684
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
685
|
-
case 3: throw _d.sent();
|
|
686
|
-
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
687
|
-
case 5: throw _d.sent();
|
|
688
|
-
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
689
|
-
case 7: throw _d.sent();
|
|
690
|
-
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
691
|
-
case 9: throw _d.sent();
|
|
692
|
-
case 10:
|
|
693
|
-
parsedBody = parsedOutput.body;
|
|
694
|
-
throwDefaultError({
|
|
695
|
-
output: output,
|
|
696
|
-
parsedBody: parsedBody,
|
|
697
|
-
exceptionCtor: __BaseException,
|
|
698
|
-
errorCode: errorCode,
|
|
699
|
-
});
|
|
700
|
-
_d.label = 11;
|
|
701
|
-
case 11: return [2];
|
|
702
|
-
}
|
|
703
|
-
});
|
|
704
|
-
}); };
|
|
705
|
-
export var deserializeAws_restJson1GetImportFileTaskCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
706
|
-
var contents, data, _a, _b;
|
|
707
|
-
return __generator(this, function (_c) {
|
|
708
|
-
switch (_c.label) {
|
|
709
|
-
case 0:
|
|
710
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
711
|
-
return [2, deserializeAws_restJson1GetImportFileTaskCommandError(output, context)];
|
|
712
|
-
}
|
|
713
|
-
contents = map({
|
|
714
|
-
$metadata: deserializeMetadata(output),
|
|
715
|
-
});
|
|
716
|
-
_a = __expectNonNull;
|
|
717
|
-
_b = __expectObject;
|
|
718
|
-
return [4, parseBody(output.body, context)];
|
|
719
|
-
case 1:
|
|
720
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
721
|
-
if (data.completionTime != null) {
|
|
722
|
-
contents.completionTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.completionTime)));
|
|
723
|
-
}
|
|
724
|
-
if (data.id != null) {
|
|
725
|
-
contents.id = __expectString(data.id);
|
|
726
|
-
}
|
|
727
|
-
if (data.importName != null) {
|
|
728
|
-
contents.importName = __expectString(data.importName);
|
|
729
|
-
}
|
|
730
|
-
if (data.inputS3Bucket != null) {
|
|
731
|
-
contents.inputS3Bucket = __expectString(data.inputS3Bucket);
|
|
732
|
-
}
|
|
733
|
-
if (data.inputS3Key != null) {
|
|
734
|
-
contents.inputS3Key = __expectString(data.inputS3Key);
|
|
735
|
-
}
|
|
736
|
-
if (data.numberOfRecordsFailed != null) {
|
|
737
|
-
contents.numberOfRecordsFailed = __expectInt32(data.numberOfRecordsFailed);
|
|
738
|
-
}
|
|
739
|
-
if (data.numberOfRecordsSuccess != null) {
|
|
740
|
-
contents.numberOfRecordsSuccess = __expectInt32(data.numberOfRecordsSuccess);
|
|
741
|
-
}
|
|
742
|
-
if (data.startTime != null) {
|
|
743
|
-
contents.startTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.startTime)));
|
|
744
|
-
}
|
|
745
|
-
if (data.status != null) {
|
|
746
|
-
contents.status = __expectString(data.status);
|
|
747
|
-
}
|
|
748
|
-
if (data.statusReportS3Bucket != null) {
|
|
749
|
-
contents.statusReportS3Bucket = __expectString(data.statusReportS3Bucket);
|
|
750
|
-
}
|
|
751
|
-
if (data.statusReportS3Key != null) {
|
|
752
|
-
contents.statusReportS3Key = __expectString(data.statusReportS3Key);
|
|
753
|
-
}
|
|
754
|
-
return [2, contents];
|
|
755
|
-
}
|
|
756
|
-
});
|
|
757
|
-
}); };
|
|
758
|
-
var deserializeAws_restJson1GetImportFileTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
759
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
760
|
-
var _c;
|
|
761
|
-
return __generator(this, function (_d) {
|
|
762
|
-
switch (_d.label) {
|
|
763
|
-
case 0:
|
|
764
|
-
_a = [__assign({}, output)];
|
|
765
|
-
_c = {};
|
|
766
|
-
return [4, parseErrorBody(output.body, context)];
|
|
767
|
-
case 1:
|
|
768
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
769
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
|
-
_b = errorCode;
|
|
771
|
-
switch (_b) {
|
|
772
|
-
case "AccessDeniedException": return [3, 2];
|
|
773
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException": return [3, 2];
|
|
774
|
-
case "InternalServerException": return [3, 4];
|
|
775
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException": return [3, 4];
|
|
776
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
777
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException": return [3, 6];
|
|
778
|
-
case "ThrottlingException": return [3, 8];
|
|
779
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 8];
|
|
780
|
-
case "ValidationException": return [3, 10];
|
|
781
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 10];
|
|
782
|
-
}
|
|
783
|
-
return [3, 12];
|
|
784
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
785
|
-
case 3: throw _d.sent();
|
|
786
|
-
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
787
|
-
case 5: throw _d.sent();
|
|
788
|
-
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
789
|
-
case 7: throw _d.sent();
|
|
790
|
-
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
791
|
-
case 9: throw _d.sent();
|
|
792
|
-
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
793
|
-
case 11: throw _d.sent();
|
|
794
|
-
case 12:
|
|
795
|
-
parsedBody = parsedOutput.body;
|
|
796
|
-
throwDefaultError({
|
|
797
|
-
output: output,
|
|
798
|
-
parsedBody: parsedBody,
|
|
799
|
-
exceptionCtor: __BaseException,
|
|
800
|
-
errorCode: errorCode,
|
|
801
|
-
});
|
|
802
|
-
_d.label = 13;
|
|
803
|
-
case 13: return [2];
|
|
804
|
-
}
|
|
805
|
-
});
|
|
806
|
-
}); };
|
|
807
|
-
export var deserializeAws_restJson1GetPortfolioPreferencesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
808
|
-
var contents, data, _a, _b;
|
|
809
|
-
return __generator(this, function (_c) {
|
|
810
|
-
switch (_c.label) {
|
|
811
|
-
case 0:
|
|
812
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
813
|
-
return [2, deserializeAws_restJson1GetPortfolioPreferencesCommandError(output, context)];
|
|
814
|
-
}
|
|
815
|
-
contents = map({
|
|
816
|
-
$metadata: deserializeMetadata(output),
|
|
817
|
-
});
|
|
818
|
-
_a = __expectNonNull;
|
|
819
|
-
_b = __expectObject;
|
|
820
|
-
return [4, parseBody(output.body, context)];
|
|
821
|
-
case 1:
|
|
822
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
823
|
-
if (data.applicationPreferences != null) {
|
|
824
|
-
contents.applicationPreferences = deserializeAws_restJson1ApplicationPreferences(data.applicationPreferences, context);
|
|
825
|
-
}
|
|
826
|
-
if (data.databasePreferences != null) {
|
|
827
|
-
contents.databasePreferences = deserializeAws_restJson1DatabasePreferences(data.databasePreferences, context);
|
|
828
|
-
}
|
|
829
|
-
if (data.prioritizeBusinessGoals != null) {
|
|
830
|
-
contents.prioritizeBusinessGoals = deserializeAws_restJson1PrioritizeBusinessGoals(data.prioritizeBusinessGoals, context);
|
|
831
|
-
}
|
|
832
|
-
return [2, contents];
|
|
833
|
-
}
|
|
834
|
-
});
|
|
835
|
-
}); };
|
|
836
|
-
var deserializeAws_restJson1GetPortfolioPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
837
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
838
|
-
var _c;
|
|
839
|
-
return __generator(this, function (_d) {
|
|
840
|
-
switch (_d.label) {
|
|
841
|
-
case 0:
|
|
842
|
-
_a = [__assign({}, output)];
|
|
843
|
-
_c = {};
|
|
844
|
-
return [4, parseErrorBody(output.body, context)];
|
|
845
|
-
case 1:
|
|
846
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
847
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
_b = errorCode;
|
|
849
|
-
switch (_b) {
|
|
850
|
-
case "AccessDeniedException": return [3, 2];
|
|
851
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException": return [3, 2];
|
|
852
|
-
case "InternalServerException": return [3, 4];
|
|
853
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException": return [3, 4];
|
|
854
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
855
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException": return [3, 6];
|
|
856
|
-
case "ThrottlingException": return [3, 8];
|
|
857
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 8];
|
|
858
|
-
}
|
|
859
|
-
return [3, 10];
|
|
860
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
861
|
-
case 3: throw _d.sent();
|
|
862
|
-
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
863
|
-
case 5: throw _d.sent();
|
|
864
|
-
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
865
|
-
case 7: throw _d.sent();
|
|
866
|
-
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
867
|
-
case 9: throw _d.sent();
|
|
868
|
-
case 10:
|
|
869
|
-
parsedBody = parsedOutput.body;
|
|
870
|
-
throwDefaultError({
|
|
871
|
-
output: output,
|
|
872
|
-
parsedBody: parsedBody,
|
|
873
|
-
exceptionCtor: __BaseException,
|
|
874
|
-
errorCode: errorCode,
|
|
875
|
-
});
|
|
876
|
-
_d.label = 11;
|
|
877
|
-
case 11: return [2];
|
|
878
|
-
}
|
|
879
|
-
});
|
|
880
|
-
}); };
|
|
881
|
-
export var deserializeAws_restJson1GetPortfolioSummaryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
882
|
-
var contents, data, _a, _b;
|
|
883
|
-
return __generator(this, function (_c) {
|
|
884
|
-
switch (_c.label) {
|
|
885
|
-
case 0:
|
|
886
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
-
return [2, deserializeAws_restJson1GetPortfolioSummaryCommandError(output, context)];
|
|
888
|
-
}
|
|
889
|
-
contents = map({
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
});
|
|
892
|
-
_a = __expectNonNull;
|
|
893
|
-
_b = __expectObject;
|
|
894
|
-
return [4, parseBody(output.body, context)];
|
|
895
|
-
case 1:
|
|
896
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
897
|
-
if (data.assessmentSummary != null) {
|
|
898
|
-
contents.assessmentSummary = deserializeAws_restJson1AssessmentSummary(data.assessmentSummary, context);
|
|
899
|
-
}
|
|
900
|
-
return [2, contents];
|
|
901
|
-
}
|
|
902
|
-
});
|
|
903
|
-
}); };
|
|
904
|
-
var deserializeAws_restJson1GetPortfolioSummaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
905
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
906
|
-
var _c;
|
|
907
|
-
return __generator(this, function (_d) {
|
|
908
|
-
switch (_d.label) {
|
|
909
|
-
case 0:
|
|
910
|
-
_a = [__assign({}, output)];
|
|
911
|
-
_c = {};
|
|
912
|
-
return [4, parseErrorBody(output.body, context)];
|
|
913
|
-
case 1:
|
|
914
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
915
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
|
-
_b = errorCode;
|
|
917
|
-
switch (_b) {
|
|
918
|
-
case "AccessDeniedException": return [3, 2];
|
|
919
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException": return [3, 2];
|
|
920
|
-
case "InternalServerException": return [3, 4];
|
|
921
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException": return [3, 4];
|
|
922
|
-
case "ThrottlingException": return [3, 6];
|
|
923
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 6];
|
|
924
|
-
}
|
|
925
|
-
return [3, 8];
|
|
926
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
927
|
-
case 3: throw _d.sent();
|
|
928
|
-
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
929
|
-
case 5: throw _d.sent();
|
|
930
|
-
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
931
|
-
case 7: throw _d.sent();
|
|
932
|
-
case 8:
|
|
933
|
-
parsedBody = parsedOutput.body;
|
|
934
|
-
throwDefaultError({
|
|
935
|
-
output: output,
|
|
936
|
-
parsedBody: parsedBody,
|
|
937
|
-
exceptionCtor: __BaseException,
|
|
938
|
-
errorCode: errorCode,
|
|
939
|
-
});
|
|
940
|
-
_d.label = 9;
|
|
941
|
-
case 9: return [2];
|
|
942
|
-
}
|
|
943
|
-
});
|
|
944
|
-
}); };
|
|
945
|
-
export var deserializeAws_restJson1GetRecommendationReportDetailsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
946
|
-
var contents, data, _a, _b;
|
|
947
|
-
return __generator(this, function (_c) {
|
|
948
|
-
switch (_c.label) {
|
|
949
|
-
case 0:
|
|
950
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
951
|
-
return [2, deserializeAws_restJson1GetRecommendationReportDetailsCommandError(output, context)];
|
|
952
|
-
}
|
|
953
|
-
contents = map({
|
|
954
|
-
$metadata: deserializeMetadata(output),
|
|
955
|
-
});
|
|
956
|
-
_a = __expectNonNull;
|
|
957
|
-
_b = __expectObject;
|
|
958
|
-
return [4, parseBody(output.body, context)];
|
|
959
|
-
case 1:
|
|
960
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
961
|
-
if (data.id != null) {
|
|
962
|
-
contents.id = __expectString(data.id);
|
|
963
|
-
}
|
|
964
|
-
if (data.recommendationReportDetails != null) {
|
|
965
|
-
contents.recommendationReportDetails = deserializeAws_restJson1RecommendationReportDetails(data.recommendationReportDetails, context);
|
|
966
|
-
}
|
|
967
|
-
return [2, contents];
|
|
968
|
-
}
|
|
969
|
-
});
|
|
970
|
-
}); };
|
|
971
|
-
var deserializeAws_restJson1GetRecommendationReportDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
972
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
973
|
-
var _c;
|
|
974
|
-
return __generator(this, function (_d) {
|
|
975
|
-
switch (_d.label) {
|
|
976
|
-
case 0:
|
|
977
|
-
_a = [__assign({}, output)];
|
|
978
|
-
_c = {};
|
|
979
|
-
return [4, parseErrorBody(output.body, context)];
|
|
980
|
-
case 1:
|
|
981
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
982
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
|
-
_b = errorCode;
|
|
984
|
-
switch (_b) {
|
|
985
|
-
case "AccessDeniedException": return [3, 2];
|
|
986
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException": return [3, 2];
|
|
987
|
-
case "InternalServerException": return [3, 4];
|
|
988
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException": return [3, 4];
|
|
989
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
990
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException": return [3, 6];
|
|
991
|
-
case "ThrottlingException": return [3, 8];
|
|
992
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 8];
|
|
993
|
-
case "ValidationException": return [3, 10];
|
|
994
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 10];
|
|
995
|
-
}
|
|
996
|
-
return [3, 12];
|
|
997
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
998
|
-
case 3: throw _d.sent();
|
|
999
|
-
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1000
|
-
case 5: throw _d.sent();
|
|
1001
|
-
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1002
|
-
case 7: throw _d.sent();
|
|
1003
|
-
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1004
|
-
case 9: throw _d.sent();
|
|
1005
|
-
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1006
|
-
case 11: throw _d.sent();
|
|
1007
|
-
case 12:
|
|
1008
|
-
parsedBody = parsedOutput.body;
|
|
1009
|
-
throwDefaultError({
|
|
1010
|
-
output: output,
|
|
1011
|
-
parsedBody: parsedBody,
|
|
1012
|
-
exceptionCtor: __BaseException,
|
|
1013
|
-
errorCode: errorCode,
|
|
1014
|
-
});
|
|
1015
|
-
_d.label = 13;
|
|
1016
|
-
case 13: return [2];
|
|
1017
|
-
}
|
|
5
|
+
export const serializeAws_restJson1GetApplicationComponentDetailsCommand = async (input, context) => {
|
|
6
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
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);
|
|
11
|
+
let body;
|
|
12
|
+
return new __HttpRequest({
|
|
13
|
+
protocol,
|
|
14
|
+
hostname,
|
|
15
|
+
port,
|
|
16
|
+
method: "GET",
|
|
17
|
+
headers,
|
|
18
|
+
path: resolvedPath,
|
|
19
|
+
body,
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export const serializeAws_restJson1GetApplicationComponentStrategiesCommand = async (input, context) => {
|
|
23
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
24
|
+
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);
|
|
28
|
+
let body;
|
|
29
|
+
return new __HttpRequest({
|
|
30
|
+
protocol,
|
|
31
|
+
hostname,
|
|
32
|
+
port,
|
|
33
|
+
method: "GET",
|
|
34
|
+
headers,
|
|
35
|
+
path: resolvedPath,
|
|
36
|
+
body,
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
export const serializeAws_restJson1GetAssessmentCommand = async (input, context) => {
|
|
40
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
|
+
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);
|
|
44
|
+
let body;
|
|
45
|
+
return new __HttpRequest({
|
|
46
|
+
protocol,
|
|
47
|
+
hostname,
|
|
48
|
+
port,
|
|
49
|
+
method: "GET",
|
|
50
|
+
headers,
|
|
51
|
+
path: resolvedPath,
|
|
52
|
+
body,
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
export const serializeAws_restJson1GetImportFileTaskCommand = async (input, context) => {
|
|
56
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
57
|
+
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);
|
|
60
|
+
let body;
|
|
61
|
+
return new __HttpRequest({
|
|
62
|
+
protocol,
|
|
63
|
+
hostname,
|
|
64
|
+
port,
|
|
65
|
+
method: "GET",
|
|
66
|
+
headers,
|
|
67
|
+
path: resolvedPath,
|
|
68
|
+
body,
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
export const serializeAws_restJson1GetPortfolioPreferencesCommand = async (input, context) => {
|
|
72
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
73
|
+
const headers = {
|
|
74
|
+
"content-type": "application/json",
|
|
75
|
+
};
|
|
76
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-portfolio-preferences";
|
|
77
|
+
let body;
|
|
78
|
+
body = "";
|
|
79
|
+
return new __HttpRequest({
|
|
80
|
+
protocol,
|
|
81
|
+
hostname,
|
|
82
|
+
port,
|
|
83
|
+
method: "GET",
|
|
84
|
+
headers,
|
|
85
|
+
path: resolvedPath,
|
|
86
|
+
body,
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
export const serializeAws_restJson1GetPortfolioSummaryCommand = async (input, context) => {
|
|
90
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
91
|
+
const headers = {
|
|
92
|
+
"content-type": "application/json",
|
|
93
|
+
};
|
|
94
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-portfolio-summary";
|
|
95
|
+
let body;
|
|
96
|
+
body = "";
|
|
97
|
+
return new __HttpRequest({
|
|
98
|
+
protocol,
|
|
99
|
+
hostname,
|
|
100
|
+
port,
|
|
101
|
+
method: "GET",
|
|
102
|
+
headers,
|
|
103
|
+
path: resolvedPath,
|
|
104
|
+
body,
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
export const serializeAws_restJson1GetRecommendationReportDetailsCommand = async (input, context) => {
|
|
108
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
109
|
+
const headers = {};
|
|
110
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-recommendation-report-details/{id}";
|
|
111
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
112
|
+
let body;
|
|
113
|
+
return new __HttpRequest({
|
|
114
|
+
protocol,
|
|
115
|
+
hostname,
|
|
116
|
+
port,
|
|
117
|
+
method: "GET",
|
|
118
|
+
headers,
|
|
119
|
+
path: resolvedPath,
|
|
120
|
+
body,
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
export const serializeAws_restJson1GetServerDetailsCommand = async (input, context) => {
|
|
124
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
125
|
+
const headers = {};
|
|
126
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-server-details/{serverId}";
|
|
127
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "serverId", () => input.serverId, "{serverId}", false);
|
|
128
|
+
const query = map({
|
|
129
|
+
nextToken: [, input.nextToken],
|
|
130
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
131
|
+
});
|
|
132
|
+
let body;
|
|
133
|
+
return new __HttpRequest({
|
|
134
|
+
protocol,
|
|
135
|
+
hostname,
|
|
136
|
+
port,
|
|
137
|
+
method: "GET",
|
|
138
|
+
headers,
|
|
139
|
+
path: resolvedPath,
|
|
140
|
+
query,
|
|
141
|
+
body,
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
export const serializeAws_restJson1GetServerStrategiesCommand = async (input, context) => {
|
|
145
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
146
|
+
const headers = {};
|
|
147
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-server-strategies/{serverId}";
|
|
148
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "serverId", () => input.serverId, "{serverId}", false);
|
|
149
|
+
let body;
|
|
150
|
+
return new __HttpRequest({
|
|
151
|
+
protocol,
|
|
152
|
+
hostname,
|
|
153
|
+
port,
|
|
154
|
+
method: "GET",
|
|
155
|
+
headers,
|
|
156
|
+
path: resolvedPath,
|
|
157
|
+
body,
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
export const serializeAws_restJson1ListApplicationComponentsCommand = async (input, context) => {
|
|
161
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
162
|
+
const headers = {
|
|
163
|
+
"content-type": "application/json",
|
|
164
|
+
};
|
|
165
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-applicationcomponents";
|
|
166
|
+
let body;
|
|
167
|
+
body = JSON.stringify({
|
|
168
|
+
...(input.applicationComponentCriteria != null && {
|
|
169
|
+
applicationComponentCriteria: input.applicationComponentCriteria,
|
|
170
|
+
}),
|
|
171
|
+
...(input.filterValue != null && { filterValue: input.filterValue }),
|
|
172
|
+
...(input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
|
|
173
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
174
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
175
|
+
...(input.sort != null && { sort: input.sort }),
|
|
176
|
+
});
|
|
177
|
+
return new __HttpRequest({
|
|
178
|
+
protocol,
|
|
179
|
+
hostname,
|
|
180
|
+
port,
|
|
181
|
+
method: "POST",
|
|
182
|
+
headers,
|
|
183
|
+
path: resolvedPath,
|
|
184
|
+
body,
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
export const serializeAws_restJson1ListCollectorsCommand = async (input, context) => {
|
|
188
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
189
|
+
const headers = {};
|
|
190
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-collectors";
|
|
191
|
+
const query = map({
|
|
192
|
+
nextToken: [, input.nextToken],
|
|
193
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
194
|
+
});
|
|
195
|
+
let body;
|
|
196
|
+
return new __HttpRequest({
|
|
197
|
+
protocol,
|
|
198
|
+
hostname,
|
|
199
|
+
port,
|
|
200
|
+
method: "GET",
|
|
201
|
+
headers,
|
|
202
|
+
path: resolvedPath,
|
|
203
|
+
query,
|
|
204
|
+
body,
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
export const serializeAws_restJson1ListImportFileTaskCommand = async (input, context) => {
|
|
208
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
|
+
const headers = {};
|
|
210
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-import-file-task";
|
|
211
|
+
const query = map({
|
|
212
|
+
nextToken: [, input.nextToken],
|
|
213
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
214
|
+
});
|
|
215
|
+
let body;
|
|
216
|
+
return new __HttpRequest({
|
|
217
|
+
protocol,
|
|
218
|
+
hostname,
|
|
219
|
+
port,
|
|
220
|
+
method: "GET",
|
|
221
|
+
headers,
|
|
222
|
+
path: resolvedPath,
|
|
223
|
+
query,
|
|
224
|
+
body,
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
export const serializeAws_restJson1ListServersCommand = async (input, context) => {
|
|
228
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
229
|
+
const headers = {
|
|
230
|
+
"content-type": "application/json",
|
|
231
|
+
};
|
|
232
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-servers";
|
|
233
|
+
let body;
|
|
234
|
+
body = JSON.stringify({
|
|
235
|
+
...(input.filterValue != null && { filterValue: input.filterValue }),
|
|
236
|
+
...(input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
|
|
237
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
238
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
239
|
+
...(input.serverCriteria != null && { serverCriteria: input.serverCriteria }),
|
|
240
|
+
...(input.sort != null && { sort: input.sort }),
|
|
241
|
+
});
|
|
242
|
+
return new __HttpRequest({
|
|
243
|
+
protocol,
|
|
244
|
+
hostname,
|
|
245
|
+
port,
|
|
246
|
+
method: "POST",
|
|
247
|
+
headers,
|
|
248
|
+
path: resolvedPath,
|
|
249
|
+
body,
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
export const serializeAws_restJson1PutPortfolioPreferencesCommand = async (input, context) => {
|
|
253
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
254
|
+
const headers = {
|
|
255
|
+
"content-type": "application/json",
|
|
256
|
+
};
|
|
257
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-portfolio-preferences";
|
|
258
|
+
let body;
|
|
259
|
+
body = JSON.stringify({
|
|
260
|
+
...(input.applicationPreferences != null && {
|
|
261
|
+
applicationPreferences: serializeAws_restJson1ApplicationPreferences(input.applicationPreferences, context),
|
|
262
|
+
}),
|
|
263
|
+
...(input.databasePreferences != null && {
|
|
264
|
+
databasePreferences: serializeAws_restJson1DatabasePreferences(input.databasePreferences, context),
|
|
265
|
+
}),
|
|
266
|
+
...(input.prioritizeBusinessGoals != null && {
|
|
267
|
+
prioritizeBusinessGoals: serializeAws_restJson1PrioritizeBusinessGoals(input.prioritizeBusinessGoals, context),
|
|
268
|
+
}),
|
|
269
|
+
});
|
|
270
|
+
return new __HttpRequest({
|
|
271
|
+
protocol,
|
|
272
|
+
hostname,
|
|
273
|
+
port,
|
|
274
|
+
method: "POST",
|
|
275
|
+
headers,
|
|
276
|
+
path: resolvedPath,
|
|
277
|
+
body,
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
export const serializeAws_restJson1StartAssessmentCommand = async (input, context) => {
|
|
281
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
282
|
+
const headers = {
|
|
283
|
+
"content-type": "application/json",
|
|
284
|
+
};
|
|
285
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-assessment";
|
|
286
|
+
let body;
|
|
287
|
+
body = JSON.stringify({
|
|
288
|
+
...(input.s3bucketForAnalysisData != null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData }),
|
|
289
|
+
...(input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData }),
|
|
290
|
+
});
|
|
291
|
+
return new __HttpRequest({
|
|
292
|
+
protocol,
|
|
293
|
+
hostname,
|
|
294
|
+
port,
|
|
295
|
+
method: "POST",
|
|
296
|
+
headers,
|
|
297
|
+
path: resolvedPath,
|
|
298
|
+
body,
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
export const serializeAws_restJson1StartImportFileTaskCommand = async (input, context) => {
|
|
302
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
303
|
+
const headers = {
|
|
304
|
+
"content-type": "application/json",
|
|
305
|
+
};
|
|
306
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-import-file-task";
|
|
307
|
+
let body;
|
|
308
|
+
body = JSON.stringify({
|
|
309
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
310
|
+
...(input.dataSourceType != null && { dataSourceType: input.dataSourceType }),
|
|
311
|
+
...(input.groupId != null && { groupId: serializeAws_restJson1GroupIds(input.groupId, context) }),
|
|
312
|
+
...(input.name != null && { name: input.name }),
|
|
313
|
+
...(input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData }),
|
|
314
|
+
...(input.s3key != null && { s3key: input.s3key }),
|
|
315
|
+
});
|
|
316
|
+
return new __HttpRequest({
|
|
317
|
+
protocol,
|
|
318
|
+
hostname,
|
|
319
|
+
port,
|
|
320
|
+
method: "POST",
|
|
321
|
+
headers,
|
|
322
|
+
path: resolvedPath,
|
|
323
|
+
body,
|
|
324
|
+
});
|
|
325
|
+
};
|
|
326
|
+
export const serializeAws_restJson1StartRecommendationReportGenerationCommand = async (input, context) => {
|
|
327
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
328
|
+
const headers = {
|
|
329
|
+
"content-type": "application/json",
|
|
330
|
+
};
|
|
331
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-recommendation-report-generation";
|
|
332
|
+
let body;
|
|
333
|
+
body = JSON.stringify({
|
|
334
|
+
...(input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
|
|
335
|
+
...(input.outputFormat != null && { outputFormat: input.outputFormat }),
|
|
336
|
+
});
|
|
337
|
+
return new __HttpRequest({
|
|
338
|
+
protocol,
|
|
339
|
+
hostname,
|
|
340
|
+
port,
|
|
341
|
+
method: "POST",
|
|
342
|
+
headers,
|
|
343
|
+
path: resolvedPath,
|
|
344
|
+
body,
|
|
345
|
+
});
|
|
346
|
+
};
|
|
347
|
+
export const serializeAws_restJson1StopAssessmentCommand = async (input, context) => {
|
|
348
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
349
|
+
const headers = {
|
|
350
|
+
"content-type": "application/json",
|
|
351
|
+
};
|
|
352
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stop-assessment";
|
|
353
|
+
let body;
|
|
354
|
+
body = JSON.stringify({
|
|
355
|
+
...(input.assessmentId != null && { assessmentId: input.assessmentId }),
|
|
356
|
+
});
|
|
357
|
+
return new __HttpRequest({
|
|
358
|
+
protocol,
|
|
359
|
+
hostname,
|
|
360
|
+
port,
|
|
361
|
+
method: "POST",
|
|
362
|
+
headers,
|
|
363
|
+
path: resolvedPath,
|
|
364
|
+
body,
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
export const serializeAws_restJson1UpdateApplicationComponentConfigCommand = async (input, context) => {
|
|
368
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
369
|
+
const headers = {
|
|
370
|
+
"content-type": "application/json",
|
|
371
|
+
};
|
|
372
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-applicationcomponent-config";
|
|
373
|
+
let body;
|
|
374
|
+
body = JSON.stringify({
|
|
375
|
+
...(input.applicationComponentId != null && { applicationComponentId: input.applicationComponentId }),
|
|
376
|
+
...(input.inclusionStatus != null && { inclusionStatus: input.inclusionStatus }),
|
|
377
|
+
...(input.secretsManagerKey != null && { secretsManagerKey: input.secretsManagerKey }),
|
|
378
|
+
...(input.sourceCodeList != null && {
|
|
379
|
+
sourceCodeList: serializeAws_restJson1SourceCodeList(input.sourceCodeList, context),
|
|
380
|
+
}),
|
|
381
|
+
...(input.strategyOption != null && {
|
|
382
|
+
strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
|
|
383
|
+
}),
|
|
384
|
+
});
|
|
385
|
+
return new __HttpRequest({
|
|
386
|
+
protocol,
|
|
387
|
+
hostname,
|
|
388
|
+
port,
|
|
389
|
+
method: "POST",
|
|
390
|
+
headers,
|
|
391
|
+
path: resolvedPath,
|
|
392
|
+
body,
|
|
393
|
+
});
|
|
394
|
+
};
|
|
395
|
+
export const serializeAws_restJson1UpdateServerConfigCommand = async (input, context) => {
|
|
396
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
397
|
+
const headers = {
|
|
398
|
+
"content-type": "application/json",
|
|
399
|
+
};
|
|
400
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-server-config";
|
|
401
|
+
let body;
|
|
402
|
+
body = JSON.stringify({
|
|
403
|
+
...(input.serverId != null && { serverId: input.serverId }),
|
|
404
|
+
...(input.strategyOption != null && {
|
|
405
|
+
strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
|
|
406
|
+
}),
|
|
407
|
+
});
|
|
408
|
+
return new __HttpRequest({
|
|
409
|
+
protocol,
|
|
410
|
+
hostname,
|
|
411
|
+
port,
|
|
412
|
+
method: "POST",
|
|
413
|
+
headers,
|
|
414
|
+
path: resolvedPath,
|
|
415
|
+
body,
|
|
416
|
+
});
|
|
417
|
+
};
|
|
418
|
+
export const deserializeAws_restJson1GetApplicationComponentDetailsCommand = async (output, context) => {
|
|
419
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
420
|
+
return deserializeAws_restJson1GetApplicationComponentDetailsCommandError(output, context);
|
|
421
|
+
}
|
|
422
|
+
const contents = map({
|
|
423
|
+
$metadata: deserializeMetadata(output),
|
|
1018
424
|
});
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
425
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
426
|
+
if (data.applicationComponentDetail != null) {
|
|
427
|
+
contents.applicationComponentDetail = deserializeAws_restJson1ApplicationComponentDetail(data.applicationComponentDetail, context);
|
|
428
|
+
}
|
|
429
|
+
if (data.associatedApplications != null) {
|
|
430
|
+
contents.associatedApplications = deserializeAws_restJson1AssociatedApplications(data.associatedApplications, context);
|
|
431
|
+
}
|
|
432
|
+
if (data.associatedServerIds != null) {
|
|
433
|
+
contents.associatedServerIds = deserializeAws_restJson1AssociatedServerIDs(data.associatedServerIds, context);
|
|
434
|
+
}
|
|
435
|
+
if (data.moreApplicationResource != null) {
|
|
436
|
+
contents.moreApplicationResource = __expectBoolean(data.moreApplicationResource);
|
|
437
|
+
}
|
|
438
|
+
return contents;
|
|
439
|
+
};
|
|
440
|
+
const deserializeAws_restJson1GetApplicationComponentDetailsCommandError = async (output, context) => {
|
|
441
|
+
const parsedOutput = {
|
|
442
|
+
...output,
|
|
443
|
+
body: await parseErrorBody(output.body, context),
|
|
444
|
+
};
|
|
445
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
446
|
+
switch (errorCode) {
|
|
447
|
+
case "InternalServerException":
|
|
448
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
449
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
450
|
+
case "ResourceNotFoundException":
|
|
451
|
+
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
452
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
453
|
+
case "ThrottlingException":
|
|
454
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
455
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
456
|
+
default:
|
|
457
|
+
const parsedBody = parsedOutput.body;
|
|
458
|
+
throwDefaultError({
|
|
459
|
+
output,
|
|
460
|
+
parsedBody,
|
|
461
|
+
exceptionCtor: __BaseException,
|
|
462
|
+
errorCode,
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
export const deserializeAws_restJson1GetApplicationComponentStrategiesCommand = async (output, context) => {
|
|
467
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
468
|
+
return deserializeAws_restJson1GetApplicationComponentStrategiesCommandError(output, context);
|
|
469
|
+
}
|
|
470
|
+
const contents = map({
|
|
471
|
+
$metadata: deserializeMetadata(output),
|
|
1047
472
|
});
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
return
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
parsedBody = parsedOutput.body;
|
|
1087
|
-
throwDefaultError({
|
|
1088
|
-
output: output,
|
|
1089
|
-
parsedBody: parsedBody,
|
|
1090
|
-
exceptionCtor: __BaseException,
|
|
1091
|
-
errorCode: errorCode,
|
|
1092
|
-
});
|
|
1093
|
-
_d.label = 13;
|
|
1094
|
-
case 13: return [2];
|
|
1095
|
-
}
|
|
473
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
474
|
+
if (data.applicationComponentStrategies != null) {
|
|
475
|
+
contents.applicationComponentStrategies = deserializeAws_restJson1ApplicationComponentStrategies(data.applicationComponentStrategies, context);
|
|
476
|
+
}
|
|
477
|
+
return contents;
|
|
478
|
+
};
|
|
479
|
+
const deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = async (output, context) => {
|
|
480
|
+
const parsedOutput = {
|
|
481
|
+
...output,
|
|
482
|
+
body: await parseErrorBody(output.body, context),
|
|
483
|
+
};
|
|
484
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
|
+
switch (errorCode) {
|
|
486
|
+
case "InternalServerException":
|
|
487
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
488
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
489
|
+
case "ResourceNotFoundException":
|
|
490
|
+
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
491
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
492
|
+
case "ThrottlingException":
|
|
493
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
494
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
495
|
+
default:
|
|
496
|
+
const parsedBody = parsedOutput.body;
|
|
497
|
+
throwDefaultError({
|
|
498
|
+
output,
|
|
499
|
+
parsedBody,
|
|
500
|
+
exceptionCtor: __BaseException,
|
|
501
|
+
errorCode,
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
export const deserializeAws_restJson1GetAssessmentCommand = async (output, context) => {
|
|
506
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
507
|
+
return deserializeAws_restJson1GetAssessmentCommandError(output, context);
|
|
508
|
+
}
|
|
509
|
+
const contents = map({
|
|
510
|
+
$metadata: deserializeMetadata(output),
|
|
1096
511
|
});
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
512
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
513
|
+
if (data.dataCollectionDetails != null) {
|
|
514
|
+
contents.dataCollectionDetails = deserializeAws_restJson1DataCollectionDetails(data.dataCollectionDetails, context);
|
|
515
|
+
}
|
|
516
|
+
if (data.id != null) {
|
|
517
|
+
contents.id = __expectString(data.id);
|
|
518
|
+
}
|
|
519
|
+
return contents;
|
|
520
|
+
};
|
|
521
|
+
const deserializeAws_restJson1GetAssessmentCommandError = async (output, context) => {
|
|
522
|
+
const parsedOutput = {
|
|
523
|
+
...output,
|
|
524
|
+
body: await parseErrorBody(output.body, context),
|
|
525
|
+
};
|
|
526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
527
|
+
switch (errorCode) {
|
|
528
|
+
case "AccessDeniedException":
|
|
529
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
530
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
531
|
+
case "InternalServerException":
|
|
532
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
533
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
534
|
+
case "ResourceNotFoundException":
|
|
535
|
+
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
536
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
537
|
+
case "ThrottlingException":
|
|
538
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
539
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
540
|
+
default:
|
|
541
|
+
const parsedBody = parsedOutput.body;
|
|
542
|
+
throwDefaultError({
|
|
543
|
+
output,
|
|
544
|
+
parsedBody,
|
|
545
|
+
exceptionCtor: __BaseException,
|
|
546
|
+
errorCode,
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
export const deserializeAws_restJson1GetImportFileTaskCommand = async (output, context) => {
|
|
551
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
552
|
+
return deserializeAws_restJson1GetImportFileTaskCommandError(output, context);
|
|
553
|
+
}
|
|
554
|
+
const contents = map({
|
|
555
|
+
$metadata: deserializeMetadata(output),
|
|
1119
556
|
});
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
557
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
558
|
+
if (data.completionTime != null) {
|
|
559
|
+
contents.completionTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.completionTime)));
|
|
560
|
+
}
|
|
561
|
+
if (data.id != null) {
|
|
562
|
+
contents.id = __expectString(data.id);
|
|
563
|
+
}
|
|
564
|
+
if (data.importName != null) {
|
|
565
|
+
contents.importName = __expectString(data.importName);
|
|
566
|
+
}
|
|
567
|
+
if (data.inputS3Bucket != null) {
|
|
568
|
+
contents.inputS3Bucket = __expectString(data.inputS3Bucket);
|
|
569
|
+
}
|
|
570
|
+
if (data.inputS3Key != null) {
|
|
571
|
+
contents.inputS3Key = __expectString(data.inputS3Key);
|
|
572
|
+
}
|
|
573
|
+
if (data.numberOfRecordsFailed != null) {
|
|
574
|
+
contents.numberOfRecordsFailed = __expectInt32(data.numberOfRecordsFailed);
|
|
575
|
+
}
|
|
576
|
+
if (data.numberOfRecordsSuccess != null) {
|
|
577
|
+
contents.numberOfRecordsSuccess = __expectInt32(data.numberOfRecordsSuccess);
|
|
578
|
+
}
|
|
579
|
+
if (data.startTime != null) {
|
|
580
|
+
contents.startTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.startTime)));
|
|
581
|
+
}
|
|
582
|
+
if (data.status != null) {
|
|
583
|
+
contents.status = __expectString(data.status);
|
|
584
|
+
}
|
|
585
|
+
if (data.statusReportS3Bucket != null) {
|
|
586
|
+
contents.statusReportS3Bucket = __expectString(data.statusReportS3Bucket);
|
|
587
|
+
}
|
|
588
|
+
if (data.statusReportS3Key != null) {
|
|
589
|
+
contents.statusReportS3Key = __expectString(data.statusReportS3Key);
|
|
590
|
+
}
|
|
591
|
+
return contents;
|
|
592
|
+
};
|
|
593
|
+
const deserializeAws_restJson1GetImportFileTaskCommandError = async (output, context) => {
|
|
594
|
+
const parsedOutput = {
|
|
595
|
+
...output,
|
|
596
|
+
body: await parseErrorBody(output.body, context),
|
|
597
|
+
};
|
|
598
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
599
|
+
switch (errorCode) {
|
|
600
|
+
case "AccessDeniedException":
|
|
601
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
602
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
603
|
+
case "InternalServerException":
|
|
604
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
605
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
606
|
+
case "ResourceNotFoundException":
|
|
607
|
+
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
608
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
609
|
+
case "ThrottlingException":
|
|
610
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
611
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
612
|
+
case "ValidationException":
|
|
613
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
614
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
615
|
+
default:
|
|
616
|
+
const parsedBody = parsedOutput.body;
|
|
617
|
+
throwDefaultError({
|
|
618
|
+
output,
|
|
619
|
+
parsedBody,
|
|
620
|
+
exceptionCtor: __BaseException,
|
|
621
|
+
errorCode,
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
export const deserializeAws_restJson1GetPortfolioPreferencesCommand = async (output, context) => {
|
|
626
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
627
|
+
return deserializeAws_restJson1GetPortfolioPreferencesCommandError(output, context);
|
|
628
|
+
}
|
|
629
|
+
const contents = map({
|
|
630
|
+
$metadata: deserializeMetadata(output),
|
|
1168
631
|
});
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
632
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
633
|
+
if (data.applicationPreferences != null) {
|
|
634
|
+
contents.applicationPreferences = deserializeAws_restJson1ApplicationPreferences(data.applicationPreferences, context);
|
|
635
|
+
}
|
|
636
|
+
if (data.databasePreferences != null) {
|
|
637
|
+
contents.databasePreferences = deserializeAws_restJson1DatabasePreferences(data.databasePreferences, context);
|
|
638
|
+
}
|
|
639
|
+
if (data.prioritizeBusinessGoals != null) {
|
|
640
|
+
contents.prioritizeBusinessGoals = deserializeAws_restJson1PrioritizeBusinessGoals(data.prioritizeBusinessGoals, context);
|
|
641
|
+
}
|
|
642
|
+
return contents;
|
|
643
|
+
};
|
|
644
|
+
const deserializeAws_restJson1GetPortfolioPreferencesCommandError = async (output, context) => {
|
|
645
|
+
const parsedOutput = {
|
|
646
|
+
...output,
|
|
647
|
+
body: await parseErrorBody(output.body, context),
|
|
648
|
+
};
|
|
649
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
|
+
switch (errorCode) {
|
|
651
|
+
case "AccessDeniedException":
|
|
652
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
653
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
654
|
+
case "InternalServerException":
|
|
655
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
656
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
657
|
+
case "ResourceNotFoundException":
|
|
658
|
+
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
659
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
660
|
+
case "ThrottlingException":
|
|
661
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
662
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
663
|
+
default:
|
|
664
|
+
const parsedBody = parsedOutput.body;
|
|
665
|
+
throwDefaultError({
|
|
666
|
+
output,
|
|
667
|
+
parsedBody,
|
|
668
|
+
exceptionCtor: __BaseException,
|
|
669
|
+
errorCode,
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
export const deserializeAws_restJson1GetPortfolioSummaryCommand = async (output, context) => {
|
|
674
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
675
|
+
return deserializeAws_restJson1GetPortfolioSummaryCommandError(output, context);
|
|
676
|
+
}
|
|
677
|
+
const contents = map({
|
|
678
|
+
$metadata: deserializeMetadata(output),
|
|
1194
679
|
});
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
return
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
exceptionCtor: __BaseException,
|
|
1234
|
-
errorCode: errorCode,
|
|
1235
|
-
});
|
|
1236
|
-
_d.label = 11;
|
|
1237
|
-
case 11: return [2];
|
|
1238
|
-
}
|
|
680
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
681
|
+
if (data.assessmentSummary != null) {
|
|
682
|
+
contents.assessmentSummary = deserializeAws_restJson1AssessmentSummary(data.assessmentSummary, context);
|
|
683
|
+
}
|
|
684
|
+
return contents;
|
|
685
|
+
};
|
|
686
|
+
const deserializeAws_restJson1GetPortfolioSummaryCommandError = async (output, context) => {
|
|
687
|
+
const parsedOutput = {
|
|
688
|
+
...output,
|
|
689
|
+
body: await parseErrorBody(output.body, context),
|
|
690
|
+
};
|
|
691
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
+
switch (errorCode) {
|
|
693
|
+
case "AccessDeniedException":
|
|
694
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
695
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
696
|
+
case "InternalServerException":
|
|
697
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
698
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
699
|
+
case "ThrottlingException":
|
|
700
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
701
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
702
|
+
default:
|
|
703
|
+
const parsedBody = parsedOutput.body;
|
|
704
|
+
throwDefaultError({
|
|
705
|
+
output,
|
|
706
|
+
parsedBody,
|
|
707
|
+
exceptionCtor: __BaseException,
|
|
708
|
+
errorCode,
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
export const deserializeAws_restJson1GetRecommendationReportDetailsCommand = async (output, context) => {
|
|
713
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
714
|
+
return deserializeAws_restJson1GetRecommendationReportDetailsCommandError(output, context);
|
|
715
|
+
}
|
|
716
|
+
const contents = map({
|
|
717
|
+
$metadata: deserializeMetadata(output),
|
|
1239
718
|
});
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
719
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
720
|
+
if (data.id != null) {
|
|
721
|
+
contents.id = __expectString(data.id);
|
|
722
|
+
}
|
|
723
|
+
if (data.recommendationReportDetails != null) {
|
|
724
|
+
contents.recommendationReportDetails = deserializeAws_restJson1RecommendationReportDetails(data.recommendationReportDetails, context);
|
|
725
|
+
}
|
|
726
|
+
return contents;
|
|
727
|
+
};
|
|
728
|
+
const deserializeAws_restJson1GetRecommendationReportDetailsCommandError = async (output, context) => {
|
|
729
|
+
const parsedOutput = {
|
|
730
|
+
...output,
|
|
731
|
+
body: await parseErrorBody(output.body, context),
|
|
732
|
+
};
|
|
733
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
734
|
+
switch (errorCode) {
|
|
735
|
+
case "AccessDeniedException":
|
|
736
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
737
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
738
|
+
case "InternalServerException":
|
|
739
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
740
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
741
|
+
case "ResourceNotFoundException":
|
|
742
|
+
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
743
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
744
|
+
case "ThrottlingException":
|
|
745
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
746
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
747
|
+
case "ValidationException":
|
|
748
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
749
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
750
|
+
default:
|
|
751
|
+
const parsedBody = parsedOutput.body;
|
|
752
|
+
throwDefaultError({
|
|
753
|
+
output,
|
|
754
|
+
parsedBody,
|
|
755
|
+
exceptionCtor: __BaseException,
|
|
756
|
+
errorCode,
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
export const deserializeAws_restJson1GetServerDetailsCommand = async (output, context) => {
|
|
761
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
762
|
+
return deserializeAws_restJson1GetServerDetailsCommandError(output, context);
|
|
763
|
+
}
|
|
764
|
+
const contents = map({
|
|
765
|
+
$metadata: deserializeMetadata(output),
|
|
1265
766
|
});
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
767
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
768
|
+
if (data.associatedApplications != null) {
|
|
769
|
+
contents.associatedApplications = deserializeAws_restJson1AssociatedApplications(data.associatedApplications, context);
|
|
770
|
+
}
|
|
771
|
+
if (data.nextToken != null) {
|
|
772
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
773
|
+
}
|
|
774
|
+
if (data.serverDetail != null) {
|
|
775
|
+
contents.serverDetail = deserializeAws_restJson1ServerDetail(data.serverDetail, context);
|
|
776
|
+
}
|
|
777
|
+
return contents;
|
|
778
|
+
};
|
|
779
|
+
const deserializeAws_restJson1GetServerDetailsCommandError = async (output, context) => {
|
|
780
|
+
const parsedOutput = {
|
|
781
|
+
...output,
|
|
782
|
+
body: await parseErrorBody(output.body, context),
|
|
783
|
+
};
|
|
784
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
|
+
switch (errorCode) {
|
|
786
|
+
case "AccessDeniedException":
|
|
787
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
788
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
789
|
+
case "InternalServerException":
|
|
790
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
791
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
792
|
+
case "ResourceNotFoundException":
|
|
793
|
+
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
794
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
795
|
+
case "ThrottlingException":
|
|
796
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
797
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
798
|
+
case "ValidationException":
|
|
799
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
800
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
801
|
+
default:
|
|
802
|
+
const parsedBody = parsedOutput.body;
|
|
803
|
+
throwDefaultError({
|
|
804
|
+
output,
|
|
805
|
+
parsedBody,
|
|
806
|
+
exceptionCtor: __BaseException,
|
|
807
|
+
errorCode,
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
};
|
|
811
|
+
export const deserializeAws_restJson1GetServerStrategiesCommand = async (output, context) => {
|
|
812
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
813
|
+
return deserializeAws_restJson1GetServerStrategiesCommandError(output, context);
|
|
814
|
+
}
|
|
815
|
+
const contents = map({
|
|
816
|
+
$metadata: deserializeMetadata(output),
|
|
1310
817
|
});
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
818
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
819
|
+
if (data.serverStrategies != null) {
|
|
820
|
+
contents.serverStrategies = deserializeAws_restJson1ServerStrategies(data.serverStrategies, context);
|
|
821
|
+
}
|
|
822
|
+
return contents;
|
|
823
|
+
};
|
|
824
|
+
const deserializeAws_restJson1GetServerStrategiesCommandError = async (output, context) => {
|
|
825
|
+
const parsedOutput = {
|
|
826
|
+
...output,
|
|
827
|
+
body: await parseErrorBody(output.body, context),
|
|
828
|
+
};
|
|
829
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
|
+
switch (errorCode) {
|
|
831
|
+
case "AccessDeniedException":
|
|
832
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
833
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
834
|
+
case "InternalServerException":
|
|
835
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
836
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
837
|
+
case "ResourceNotFoundException":
|
|
838
|
+
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
839
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
840
|
+
case "ThrottlingException":
|
|
841
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
842
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
843
|
+
case "ValidationException":
|
|
844
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
845
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
846
|
+
default:
|
|
847
|
+
const parsedBody = parsedOutput.body;
|
|
848
|
+
throwDefaultError({
|
|
849
|
+
output,
|
|
850
|
+
parsedBody,
|
|
851
|
+
exceptionCtor: __BaseException,
|
|
852
|
+
errorCode,
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
export const deserializeAws_restJson1ListApplicationComponentsCommand = async (output, context) => {
|
|
857
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
858
|
+
return deserializeAws_restJson1ListApplicationComponentsCommandError(output, context);
|
|
859
|
+
}
|
|
860
|
+
const contents = map({
|
|
861
|
+
$metadata: deserializeMetadata(output),
|
|
1336
862
|
});
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
863
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
864
|
+
if (data.applicationComponentInfos != null) {
|
|
865
|
+
contents.applicationComponentInfos = deserializeAws_restJson1ApplicationComponentDetails(data.applicationComponentInfos, context);
|
|
866
|
+
}
|
|
867
|
+
if (data.nextToken != null) {
|
|
868
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
869
|
+
}
|
|
870
|
+
return contents;
|
|
871
|
+
};
|
|
872
|
+
const deserializeAws_restJson1ListApplicationComponentsCommandError = async (output, context) => {
|
|
873
|
+
const parsedOutput = {
|
|
874
|
+
...output,
|
|
875
|
+
body: await parseErrorBody(output.body, context),
|
|
876
|
+
};
|
|
877
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
|
+
switch (errorCode) {
|
|
879
|
+
case "AccessDeniedException":
|
|
880
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
881
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
882
|
+
case "InternalServerException":
|
|
883
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
884
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
885
|
+
case "ServiceLinkedRoleLockClientException":
|
|
886
|
+
case "com.amazonaws.migrationhubstrategy#ServiceLinkedRoleLockClientException":
|
|
887
|
+
throw await deserializeAws_restJson1ServiceLinkedRoleLockClientExceptionResponse(parsedOutput, context);
|
|
888
|
+
case "ValidationException":
|
|
889
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
890
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
891
|
+
default:
|
|
892
|
+
const parsedBody = parsedOutput.body;
|
|
893
|
+
throwDefaultError({
|
|
894
|
+
output,
|
|
895
|
+
parsedBody,
|
|
896
|
+
exceptionCtor: __BaseException,
|
|
897
|
+
errorCode,
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
export const deserializeAws_restJson1ListCollectorsCommand = async (output, context) => {
|
|
902
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
+
return deserializeAws_restJson1ListCollectorsCommandError(output, context);
|
|
904
|
+
}
|
|
905
|
+
const contents = map({
|
|
906
|
+
$metadata: deserializeMetadata(output),
|
|
1381
907
|
});
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
908
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
909
|
+
if (data.Collectors != null) {
|
|
910
|
+
contents.Collectors = deserializeAws_restJson1Collectors(data.Collectors, context);
|
|
911
|
+
}
|
|
912
|
+
if (data.nextToken != null) {
|
|
913
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
914
|
+
}
|
|
915
|
+
return contents;
|
|
916
|
+
};
|
|
917
|
+
const deserializeAws_restJson1ListCollectorsCommandError = async (output, context) => {
|
|
918
|
+
const parsedOutput = {
|
|
919
|
+
...output,
|
|
920
|
+
body: await parseErrorBody(output.body, context),
|
|
921
|
+
};
|
|
922
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
|
+
switch (errorCode) {
|
|
924
|
+
case "AccessDeniedException":
|
|
925
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
926
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
927
|
+
case "InternalServerException":
|
|
928
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
929
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
930
|
+
case "ThrottlingException":
|
|
931
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
932
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
933
|
+
case "ValidationException":
|
|
934
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
935
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
936
|
+
default:
|
|
937
|
+
const parsedBody = parsedOutput.body;
|
|
938
|
+
throwDefaultError({
|
|
939
|
+
output,
|
|
940
|
+
parsedBody,
|
|
941
|
+
exceptionCtor: __BaseException,
|
|
942
|
+
errorCode,
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
export const deserializeAws_restJson1ListImportFileTaskCommand = async (output, context) => {
|
|
947
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
948
|
+
return deserializeAws_restJson1ListImportFileTaskCommandError(output, context);
|
|
949
|
+
}
|
|
950
|
+
const contents = map({
|
|
951
|
+
$metadata: deserializeMetadata(output),
|
|
1407
952
|
});
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
953
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
954
|
+
if (data.nextToken != null) {
|
|
955
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
956
|
+
}
|
|
957
|
+
if (data.taskInfos != null) {
|
|
958
|
+
contents.taskInfos = deserializeAws_restJson1ListImportFileTaskInformation(data.taskInfos, context);
|
|
959
|
+
}
|
|
960
|
+
return contents;
|
|
961
|
+
};
|
|
962
|
+
const deserializeAws_restJson1ListImportFileTaskCommandError = async (output, context) => {
|
|
963
|
+
const parsedOutput = {
|
|
964
|
+
...output,
|
|
965
|
+
body: await parseErrorBody(output.body, context),
|
|
966
|
+
};
|
|
967
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
+
switch (errorCode) {
|
|
969
|
+
case "AccessDeniedException":
|
|
970
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
971
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
972
|
+
case "InternalServerException":
|
|
973
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
974
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
975
|
+
case "ThrottlingException":
|
|
976
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
977
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
978
|
+
case "ValidationException":
|
|
979
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
980
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
981
|
+
default:
|
|
982
|
+
const parsedBody = parsedOutput.body;
|
|
983
|
+
throwDefaultError({
|
|
984
|
+
output,
|
|
985
|
+
parsedBody,
|
|
986
|
+
exceptionCtor: __BaseException,
|
|
987
|
+
errorCode,
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
};
|
|
991
|
+
export const deserializeAws_restJson1ListServersCommand = async (output, context) => {
|
|
992
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
993
|
+
return deserializeAws_restJson1ListServersCommandError(output, context);
|
|
994
|
+
}
|
|
995
|
+
const contents = map({
|
|
996
|
+
$metadata: deserializeMetadata(output),
|
|
1452
997
|
});
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
998
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
999
|
+
if (data.nextToken != null) {
|
|
1000
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1001
|
+
}
|
|
1002
|
+
if (data.serverInfos != null) {
|
|
1003
|
+
contents.serverInfos = deserializeAws_restJson1ServerDetails(data.serverInfos, context);
|
|
1004
|
+
}
|
|
1005
|
+
return contents;
|
|
1006
|
+
};
|
|
1007
|
+
const deserializeAws_restJson1ListServersCommandError = async (output, context) => {
|
|
1008
|
+
const parsedOutput = {
|
|
1009
|
+
...output,
|
|
1010
|
+
body: await parseErrorBody(output.body, context),
|
|
1011
|
+
};
|
|
1012
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
|
+
switch (errorCode) {
|
|
1014
|
+
case "AccessDeniedException":
|
|
1015
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1016
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1017
|
+
case "InternalServerException":
|
|
1018
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1019
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1020
|
+
case "ThrottlingException":
|
|
1021
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1022
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1023
|
+
case "ValidationException":
|
|
1024
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1025
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1026
|
+
default:
|
|
1027
|
+
const parsedBody = parsedOutput.body;
|
|
1028
|
+
throwDefaultError({
|
|
1029
|
+
output,
|
|
1030
|
+
parsedBody,
|
|
1031
|
+
exceptionCtor: __BaseException,
|
|
1032
|
+
errorCode,
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
export const deserializeAws_restJson1PutPortfolioPreferencesCommand = async (output, context) => {
|
|
1037
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1038
|
+
return deserializeAws_restJson1PutPortfolioPreferencesCommandError(output, context);
|
|
1039
|
+
}
|
|
1040
|
+
const contents = map({
|
|
1041
|
+
$metadata: deserializeMetadata(output),
|
|
1470
1042
|
});
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
parsedBody: parsedBody,
|
|
1513
|
-
exceptionCtor: __BaseException,
|
|
1514
|
-
errorCode: errorCode,
|
|
1515
|
-
});
|
|
1516
|
-
_d.label = 13;
|
|
1517
|
-
case 13: return [2];
|
|
1518
|
-
}
|
|
1043
|
+
await collectBody(output.body, context);
|
|
1044
|
+
return contents;
|
|
1045
|
+
};
|
|
1046
|
+
const deserializeAws_restJson1PutPortfolioPreferencesCommandError = async (output, context) => {
|
|
1047
|
+
const parsedOutput = {
|
|
1048
|
+
...output,
|
|
1049
|
+
body: await parseErrorBody(output.body, context),
|
|
1050
|
+
};
|
|
1051
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
|
+
switch (errorCode) {
|
|
1053
|
+
case "AccessDeniedException":
|
|
1054
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1055
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1056
|
+
case "ConflictException":
|
|
1057
|
+
case "com.amazonaws.migrationhubstrategy#ConflictException":
|
|
1058
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1059
|
+
case "InternalServerException":
|
|
1060
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1061
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1062
|
+
case "ThrottlingException":
|
|
1063
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1064
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1065
|
+
case "ValidationException":
|
|
1066
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1067
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1068
|
+
default:
|
|
1069
|
+
const parsedBody = parsedOutput.body;
|
|
1070
|
+
throwDefaultError({
|
|
1071
|
+
output,
|
|
1072
|
+
parsedBody,
|
|
1073
|
+
exceptionCtor: __BaseException,
|
|
1074
|
+
errorCode,
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1078
|
+
export const deserializeAws_restJson1StartAssessmentCommand = async (output, context) => {
|
|
1079
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1080
|
+
return deserializeAws_restJson1StartAssessmentCommandError(output, context);
|
|
1081
|
+
}
|
|
1082
|
+
const contents = map({
|
|
1083
|
+
$metadata: deserializeMetadata(output),
|
|
1519
1084
|
});
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1085
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1086
|
+
if (data.assessmentId != null) {
|
|
1087
|
+
contents.assessmentId = __expectString(data.assessmentId);
|
|
1088
|
+
}
|
|
1089
|
+
return contents;
|
|
1090
|
+
};
|
|
1091
|
+
const deserializeAws_restJson1StartAssessmentCommandError = async (output, context) => {
|
|
1092
|
+
const parsedOutput = {
|
|
1093
|
+
...output,
|
|
1094
|
+
body: await parseErrorBody(output.body, context),
|
|
1095
|
+
};
|
|
1096
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1097
|
+
switch (errorCode) {
|
|
1098
|
+
case "AccessDeniedException":
|
|
1099
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1100
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1101
|
+
case "InternalServerException":
|
|
1102
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1103
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1104
|
+
case "ServiceQuotaExceededException":
|
|
1105
|
+
case "com.amazonaws.migrationhubstrategy#ServiceQuotaExceededException":
|
|
1106
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1107
|
+
case "ThrottlingException":
|
|
1108
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1109
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1110
|
+
default:
|
|
1111
|
+
const parsedBody = parsedOutput.body;
|
|
1112
|
+
throwDefaultError({
|
|
1113
|
+
output,
|
|
1114
|
+
parsedBody,
|
|
1115
|
+
exceptionCtor: __BaseException,
|
|
1116
|
+
errorCode,
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
};
|
|
1120
|
+
export const deserializeAws_restJson1StartImportFileTaskCommand = async (output, context) => {
|
|
1121
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1122
|
+
return deserializeAws_restJson1StartImportFileTaskCommandError(output, context);
|
|
1123
|
+
}
|
|
1124
|
+
const contents = map({
|
|
1125
|
+
$metadata: deserializeMetadata(output),
|
|
1542
1126
|
});
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
return
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1127
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1128
|
+
if (data.id != null) {
|
|
1129
|
+
contents.id = __expectString(data.id);
|
|
1130
|
+
}
|
|
1131
|
+
return contents;
|
|
1132
|
+
};
|
|
1133
|
+
const deserializeAws_restJson1StartImportFileTaskCommandError = async (output, context) => {
|
|
1134
|
+
const parsedOutput = {
|
|
1135
|
+
...output,
|
|
1136
|
+
body: await parseErrorBody(output.body, context),
|
|
1137
|
+
};
|
|
1138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
|
+
switch (errorCode) {
|
|
1140
|
+
case "AccessDeniedException":
|
|
1141
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1142
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1143
|
+
case "InternalServerException":
|
|
1144
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1145
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1146
|
+
case "ServiceQuotaExceededException":
|
|
1147
|
+
case "com.amazonaws.migrationhubstrategy#ServiceQuotaExceededException":
|
|
1148
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1149
|
+
case "ThrottlingException":
|
|
1150
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1151
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1152
|
+
case "ValidationException":
|
|
1153
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1154
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1155
|
+
default:
|
|
1156
|
+
const parsedBody = parsedOutput.body;
|
|
1157
|
+
throwDefaultError({
|
|
1158
|
+
output,
|
|
1159
|
+
parsedBody,
|
|
1160
|
+
exceptionCtor: __BaseException,
|
|
1161
|
+
errorCode,
|
|
1162
|
+
});
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1165
|
+
export const deserializeAws_restJson1StartRecommendationReportGenerationCommand = async (output, context) => {
|
|
1166
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1167
|
+
return deserializeAws_restJson1StartRecommendationReportGenerationCommandError(output, context);
|
|
1168
|
+
}
|
|
1169
|
+
const contents = map({
|
|
1170
|
+
$metadata: deserializeMetadata(output),
|
|
1587
1171
|
});
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1172
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1173
|
+
if (data.id != null) {
|
|
1174
|
+
contents.id = __expectString(data.id);
|
|
1175
|
+
}
|
|
1176
|
+
return contents;
|
|
1177
|
+
};
|
|
1178
|
+
const deserializeAws_restJson1StartRecommendationReportGenerationCommandError = async (output, context) => {
|
|
1179
|
+
const parsedOutput = {
|
|
1180
|
+
...output,
|
|
1181
|
+
body: await parseErrorBody(output.body, context),
|
|
1182
|
+
};
|
|
1183
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
|
+
switch (errorCode) {
|
|
1185
|
+
case "AccessDeniedException":
|
|
1186
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1187
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1188
|
+
case "ConflictException":
|
|
1189
|
+
case "com.amazonaws.migrationhubstrategy#ConflictException":
|
|
1190
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1191
|
+
case "InternalServerException":
|
|
1192
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1193
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1194
|
+
case "ThrottlingException":
|
|
1195
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1196
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1197
|
+
case "ValidationException":
|
|
1198
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1199
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1200
|
+
default:
|
|
1201
|
+
const parsedBody = parsedOutput.body;
|
|
1202
|
+
throwDefaultError({
|
|
1203
|
+
output,
|
|
1204
|
+
parsedBody,
|
|
1205
|
+
exceptionCtor: __BaseException,
|
|
1206
|
+
errorCode,
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
};
|
|
1210
|
+
export const deserializeAws_restJson1StopAssessmentCommand = async (output, context) => {
|
|
1211
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1212
|
+
return deserializeAws_restJson1StopAssessmentCommandError(output, context);
|
|
1213
|
+
}
|
|
1214
|
+
const contents = map({
|
|
1215
|
+
$metadata: deserializeMetadata(output),
|
|
1610
1216
|
});
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
parsedBody = parsedOutput.body;
|
|
1650
|
-
throwDefaultError({
|
|
1651
|
-
output: output,
|
|
1652
|
-
parsedBody: parsedBody,
|
|
1653
|
-
exceptionCtor: __BaseException,
|
|
1654
|
-
errorCode: errorCode,
|
|
1655
|
-
});
|
|
1656
|
-
_d.label = 13;
|
|
1657
|
-
case 13: return [2];
|
|
1658
|
-
}
|
|
1217
|
+
await collectBody(output.body, context);
|
|
1218
|
+
return contents;
|
|
1219
|
+
};
|
|
1220
|
+
const deserializeAws_restJson1StopAssessmentCommandError = async (output, context) => {
|
|
1221
|
+
const parsedOutput = {
|
|
1222
|
+
...output,
|
|
1223
|
+
body: await parseErrorBody(output.body, context),
|
|
1224
|
+
};
|
|
1225
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
|
+
switch (errorCode) {
|
|
1227
|
+
case "AccessDeniedException":
|
|
1228
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1229
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1230
|
+
case "InternalServerException":
|
|
1231
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1232
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1233
|
+
case "ThrottlingException":
|
|
1234
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1235
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1236
|
+
case "ValidationException":
|
|
1237
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1238
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1239
|
+
default:
|
|
1240
|
+
const parsedBody = parsedOutput.body;
|
|
1241
|
+
throwDefaultError({
|
|
1242
|
+
output,
|
|
1243
|
+
parsedBody,
|
|
1244
|
+
exceptionCtor: __BaseException,
|
|
1245
|
+
errorCode,
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
export const deserializeAws_restJson1UpdateApplicationComponentConfigCommand = async (output, context) => {
|
|
1250
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1251
|
+
return deserializeAws_restJson1UpdateApplicationComponentConfigCommandError(output, context);
|
|
1252
|
+
}
|
|
1253
|
+
const contents = map({
|
|
1254
|
+
$metadata: deserializeMetadata(output),
|
|
1659
1255
|
});
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1256
|
+
await collectBody(output.body, context);
|
|
1257
|
+
return contents;
|
|
1258
|
+
};
|
|
1259
|
+
const deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = async (output, context) => {
|
|
1260
|
+
const parsedOutput = {
|
|
1261
|
+
...output,
|
|
1262
|
+
body: await parseErrorBody(output.body, context),
|
|
1263
|
+
};
|
|
1264
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1265
|
+
switch (errorCode) {
|
|
1266
|
+
case "InternalServerException":
|
|
1267
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1268
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1269
|
+
case "ResourceNotFoundException":
|
|
1270
|
+
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1271
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1272
|
+
case "ThrottlingException":
|
|
1273
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1274
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1275
|
+
case "ValidationException":
|
|
1276
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1277
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1278
|
+
default:
|
|
1279
|
+
const parsedBody = parsedOutput.body;
|
|
1280
|
+
throwDefaultError({
|
|
1281
|
+
output,
|
|
1282
|
+
parsedBody,
|
|
1283
|
+
exceptionCtor: __BaseException,
|
|
1284
|
+
errorCode,
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
};
|
|
1288
|
+
export const deserializeAws_restJson1UpdateServerConfigCommand = async (output, context) => {
|
|
1289
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1290
|
+
return deserializeAws_restJson1UpdateServerConfigCommandError(output, context);
|
|
1291
|
+
}
|
|
1292
|
+
const contents = map({
|
|
1293
|
+
$metadata: deserializeMetadata(output),
|
|
1682
1294
|
});
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
exceptionCtor: __BaseException,
|
|
1726
|
-
errorCode: errorCode,
|
|
1727
|
-
});
|
|
1728
|
-
_d.label = 13;
|
|
1729
|
-
case 13: return [2];
|
|
1730
|
-
}
|
|
1295
|
+
await collectBody(output.body, context);
|
|
1296
|
+
return contents;
|
|
1297
|
+
};
|
|
1298
|
+
const deserializeAws_restJson1UpdateServerConfigCommandError = async (output, context) => {
|
|
1299
|
+
const parsedOutput = {
|
|
1300
|
+
...output,
|
|
1301
|
+
body: await parseErrorBody(output.body, context),
|
|
1302
|
+
};
|
|
1303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
|
+
switch (errorCode) {
|
|
1305
|
+
case "InternalServerException":
|
|
1306
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1307
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1308
|
+
case "ResourceNotFoundException":
|
|
1309
|
+
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1310
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1311
|
+
case "ThrottlingException":
|
|
1312
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1313
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1314
|
+
case "ValidationException":
|
|
1315
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1316
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1317
|
+
default:
|
|
1318
|
+
const parsedBody = parsedOutput.body;
|
|
1319
|
+
throwDefaultError({
|
|
1320
|
+
output,
|
|
1321
|
+
parsedBody,
|
|
1322
|
+
exceptionCtor: __BaseException,
|
|
1323
|
+
errorCode,
|
|
1324
|
+
});
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1327
|
+
const map = __map;
|
|
1328
|
+
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1329
|
+
const contents = map({});
|
|
1330
|
+
const data = parsedOutput.body;
|
|
1331
|
+
if (data.message != null) {
|
|
1332
|
+
contents.message = __expectString(data.message);
|
|
1333
|
+
}
|
|
1334
|
+
const exception = new AccessDeniedException({
|
|
1335
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1336
|
+
...contents,
|
|
1731
1337
|
});
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
});
|
|
1744
|
-
return [4, collectBody(output.body, context)];
|
|
1745
|
-
case 1:
|
|
1746
|
-
_a.sent();
|
|
1747
|
-
return [2, contents];
|
|
1748
|
-
}
|
|
1338
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1339
|
+
};
|
|
1340
|
+
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1341
|
+
const contents = map({});
|
|
1342
|
+
const data = parsedOutput.body;
|
|
1343
|
+
if (data.message != null) {
|
|
1344
|
+
contents.message = __expectString(data.message);
|
|
1345
|
+
}
|
|
1346
|
+
const exception = new ConflictException({
|
|
1347
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1348
|
+
...contents,
|
|
1749
1349
|
});
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1762
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1763
|
-
_b = errorCode;
|
|
1764
|
-
switch (_b) {
|
|
1765
|
-
case "AccessDeniedException": return [3, 2];
|
|
1766
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException": return [3, 2];
|
|
1767
|
-
case "InternalServerException": return [3, 4];
|
|
1768
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException": return [3, 4];
|
|
1769
|
-
case "ThrottlingException": return [3, 6];
|
|
1770
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 6];
|
|
1771
|
-
case "ValidationException": return [3, 8];
|
|
1772
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 8];
|
|
1773
|
-
}
|
|
1774
|
-
return [3, 10];
|
|
1775
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1776
|
-
case 3: throw _d.sent();
|
|
1777
|
-
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1778
|
-
case 5: throw _d.sent();
|
|
1779
|
-
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1780
|
-
case 7: throw _d.sent();
|
|
1781
|
-
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1782
|
-
case 9: throw _d.sent();
|
|
1783
|
-
case 10:
|
|
1784
|
-
parsedBody = parsedOutput.body;
|
|
1785
|
-
throwDefaultError({
|
|
1786
|
-
output: output,
|
|
1787
|
-
parsedBody: parsedBody,
|
|
1788
|
-
exceptionCtor: __BaseException,
|
|
1789
|
-
errorCode: errorCode,
|
|
1790
|
-
});
|
|
1791
|
-
_d.label = 11;
|
|
1792
|
-
case 11: return [2];
|
|
1793
|
-
}
|
|
1350
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1351
|
+
};
|
|
1352
|
+
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1353
|
+
const contents = map({});
|
|
1354
|
+
const data = parsedOutput.body;
|
|
1355
|
+
if (data.message != null) {
|
|
1356
|
+
contents.message = __expectString(data.message);
|
|
1357
|
+
}
|
|
1358
|
+
const exception = new InternalServerException({
|
|
1359
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1360
|
+
...contents,
|
|
1794
1361
|
});
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
});
|
|
1807
|
-
return [4, collectBody(output.body, context)];
|
|
1808
|
-
case 1:
|
|
1809
|
-
_a.sent();
|
|
1810
|
-
return [2, contents];
|
|
1811
|
-
}
|
|
1362
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1363
|
+
};
|
|
1364
|
+
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1365
|
+
const contents = map({});
|
|
1366
|
+
const data = parsedOutput.body;
|
|
1367
|
+
if (data.message != null) {
|
|
1368
|
+
contents.message = __expectString(data.message);
|
|
1369
|
+
}
|
|
1370
|
+
const exception = new ResourceNotFoundException({
|
|
1371
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1372
|
+
...contents,
|
|
1812
1373
|
});
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1825
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
|
-
_b = errorCode;
|
|
1827
|
-
switch (_b) {
|
|
1828
|
-
case "InternalServerException": return [3, 2];
|
|
1829
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException": return [3, 2];
|
|
1830
|
-
case "ResourceNotFoundException": return [3, 4];
|
|
1831
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException": return [3, 4];
|
|
1832
|
-
case "ThrottlingException": return [3, 6];
|
|
1833
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 6];
|
|
1834
|
-
case "ValidationException": return [3, 8];
|
|
1835
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 8];
|
|
1836
|
-
}
|
|
1837
|
-
return [3, 10];
|
|
1838
|
-
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1839
|
-
case 3: throw _d.sent();
|
|
1840
|
-
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1841
|
-
case 5: throw _d.sent();
|
|
1842
|
-
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1843
|
-
case 7: throw _d.sent();
|
|
1844
|
-
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1845
|
-
case 9: throw _d.sent();
|
|
1846
|
-
case 10:
|
|
1847
|
-
parsedBody = parsedOutput.body;
|
|
1848
|
-
throwDefaultError({
|
|
1849
|
-
output: output,
|
|
1850
|
-
parsedBody: parsedBody,
|
|
1851
|
-
exceptionCtor: __BaseException,
|
|
1852
|
-
errorCode: errorCode,
|
|
1853
|
-
});
|
|
1854
|
-
_d.label = 11;
|
|
1855
|
-
case 11: return [2];
|
|
1856
|
-
}
|
|
1374
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1375
|
+
};
|
|
1376
|
+
const deserializeAws_restJson1ServiceLinkedRoleLockClientExceptionResponse = async (parsedOutput, context) => {
|
|
1377
|
+
const contents = map({});
|
|
1378
|
+
const data = parsedOutput.body;
|
|
1379
|
+
if (data.message != null) {
|
|
1380
|
+
contents.message = __expectString(data.message);
|
|
1381
|
+
}
|
|
1382
|
+
const exception = new ServiceLinkedRoleLockClientException({
|
|
1383
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1384
|
+
...contents,
|
|
1857
1385
|
});
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
});
|
|
1870
|
-
return [4, collectBody(output.body, context)];
|
|
1871
|
-
case 1:
|
|
1872
|
-
_a.sent();
|
|
1873
|
-
return [2, contents];
|
|
1874
|
-
}
|
|
1386
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1387
|
+
};
|
|
1388
|
+
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1389
|
+
const contents = map({});
|
|
1390
|
+
const data = parsedOutput.body;
|
|
1391
|
+
if (data.message != null) {
|
|
1392
|
+
contents.message = __expectString(data.message);
|
|
1393
|
+
}
|
|
1394
|
+
const exception = new ServiceQuotaExceededException({
|
|
1395
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1396
|
+
...contents,
|
|
1875
1397
|
});
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
|
-
_b = errorCode;
|
|
1890
|
-
switch (_b) {
|
|
1891
|
-
case "InternalServerException": return [3, 2];
|
|
1892
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException": return [3, 2];
|
|
1893
|
-
case "ResourceNotFoundException": return [3, 4];
|
|
1894
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException": return [3, 4];
|
|
1895
|
-
case "ThrottlingException": return [3, 6];
|
|
1896
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 6];
|
|
1897
|
-
case "ValidationException": return [3, 8];
|
|
1898
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 8];
|
|
1899
|
-
}
|
|
1900
|
-
return [3, 10];
|
|
1901
|
-
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1902
|
-
case 3: throw _d.sent();
|
|
1903
|
-
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1904
|
-
case 5: throw _d.sent();
|
|
1905
|
-
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1906
|
-
case 7: throw _d.sent();
|
|
1907
|
-
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1908
|
-
case 9: throw _d.sent();
|
|
1909
|
-
case 10:
|
|
1910
|
-
parsedBody = parsedOutput.body;
|
|
1911
|
-
throwDefaultError({
|
|
1912
|
-
output: output,
|
|
1913
|
-
parsedBody: parsedBody,
|
|
1914
|
-
exceptionCtor: __BaseException,
|
|
1915
|
-
errorCode: errorCode,
|
|
1916
|
-
});
|
|
1917
|
-
_d.label = 11;
|
|
1918
|
-
case 11: return [2];
|
|
1919
|
-
}
|
|
1398
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1399
|
+
};
|
|
1400
|
+
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1401
|
+
const contents = map({});
|
|
1402
|
+
const data = parsedOutput.body;
|
|
1403
|
+
if (data.message != null) {
|
|
1404
|
+
contents.message = __expectString(data.message);
|
|
1405
|
+
}
|
|
1406
|
+
const exception = new ThrottlingException({
|
|
1407
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1408
|
+
...contents,
|
|
1920
1409
|
});
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1933
|
-
});
|
|
1934
|
-
}); };
|
|
1935
|
-
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1936
|
-
var contents, data, exception;
|
|
1937
|
-
return __generator(this, function (_a) {
|
|
1938
|
-
contents = map({});
|
|
1939
|
-
data = parsedOutput.body;
|
|
1940
|
-
if (data.message != null) {
|
|
1941
|
-
contents.message = __expectString(data.message);
|
|
1942
|
-
}
|
|
1943
|
-
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1944
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1945
|
-
});
|
|
1946
|
-
}); };
|
|
1947
|
-
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1948
|
-
var contents, data, exception;
|
|
1949
|
-
return __generator(this, function (_a) {
|
|
1950
|
-
contents = map({});
|
|
1951
|
-
data = parsedOutput.body;
|
|
1952
|
-
if (data.message != null) {
|
|
1953
|
-
contents.message = __expectString(data.message);
|
|
1954
|
-
}
|
|
1955
|
-
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1956
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1957
|
-
});
|
|
1958
|
-
}); };
|
|
1959
|
-
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1960
|
-
var contents, data, exception;
|
|
1961
|
-
return __generator(this, function (_a) {
|
|
1962
|
-
contents = map({});
|
|
1963
|
-
data = parsedOutput.body;
|
|
1964
|
-
if (data.message != null) {
|
|
1965
|
-
contents.message = __expectString(data.message);
|
|
1966
|
-
}
|
|
1967
|
-
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1968
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1969
|
-
});
|
|
1970
|
-
}); };
|
|
1971
|
-
var deserializeAws_restJson1ServiceLinkedRoleLockClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1972
|
-
var contents, data, exception;
|
|
1973
|
-
return __generator(this, function (_a) {
|
|
1974
|
-
contents = map({});
|
|
1975
|
-
data = parsedOutput.body;
|
|
1976
|
-
if (data.message != null) {
|
|
1977
|
-
contents.message = __expectString(data.message);
|
|
1978
|
-
}
|
|
1979
|
-
exception = new ServiceLinkedRoleLockClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1980
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1981
|
-
});
|
|
1982
|
-
}); };
|
|
1983
|
-
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1984
|
-
var contents, data, exception;
|
|
1985
|
-
return __generator(this, function (_a) {
|
|
1986
|
-
contents = map({});
|
|
1987
|
-
data = parsedOutput.body;
|
|
1988
|
-
if (data.message != null) {
|
|
1989
|
-
contents.message = __expectString(data.message);
|
|
1990
|
-
}
|
|
1991
|
-
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1992
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1993
|
-
});
|
|
1994
|
-
}); };
|
|
1995
|
-
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1996
|
-
var contents, data, exception;
|
|
1997
|
-
return __generator(this, function (_a) {
|
|
1998
|
-
contents = map({});
|
|
1999
|
-
data = parsedOutput.body;
|
|
2000
|
-
if (data.message != null) {
|
|
2001
|
-
contents.message = __expectString(data.message);
|
|
2002
|
-
}
|
|
2003
|
-
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2004
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2005
|
-
});
|
|
2006
|
-
}); };
|
|
2007
|
-
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2008
|
-
var contents, data, exception;
|
|
2009
|
-
return __generator(this, function (_a) {
|
|
2010
|
-
contents = map({});
|
|
2011
|
-
data = parsedOutput.body;
|
|
2012
|
-
if (data.message != null) {
|
|
2013
|
-
contents.message = __expectString(data.message);
|
|
2014
|
-
}
|
|
2015
|
-
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2016
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1410
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1411
|
+
};
|
|
1412
|
+
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1413
|
+
const contents = map({});
|
|
1414
|
+
const data = parsedOutput.body;
|
|
1415
|
+
if (data.message != null) {
|
|
1416
|
+
contents.message = __expectString(data.message);
|
|
1417
|
+
}
|
|
1418
|
+
const exception = new ValidationException({
|
|
1419
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1420
|
+
...contents,
|
|
2017
1421
|
});
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
1422
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1423
|
+
};
|
|
1424
|
+
const serializeAws_restJson1ApplicationPreferences = (input, context) => {
|
|
1425
|
+
return {
|
|
1426
|
+
...(input.managementPreference != null && {
|
|
1427
|
+
managementPreference: serializeAws_restJson1ManagementPreference(input.managementPreference, context),
|
|
1428
|
+
}),
|
|
1429
|
+
};
|
|
2023
1430
|
};
|
|
2024
|
-
|
|
2025
|
-
return
|
|
2026
|
-
|
|
2027
|
-
|
|
1431
|
+
const serializeAws_restJson1AwsManagedResources = (input, context) => {
|
|
1432
|
+
return {
|
|
1433
|
+
...(input.targetDestination != null && {
|
|
1434
|
+
targetDestination: serializeAws_restJson1AwsManagedTargetDestinations(input.targetDestination, context),
|
|
1435
|
+
}),
|
|
1436
|
+
};
|
|
2028
1437
|
};
|
|
2029
|
-
|
|
1438
|
+
const serializeAws_restJson1AwsManagedTargetDestinations = (input, context) => {
|
|
2030
1439
|
return input
|
|
2031
|
-
.filter(
|
|
2032
|
-
.map(
|
|
1440
|
+
.filter((e) => e != null)
|
|
1441
|
+
.map((entry) => {
|
|
2033
1442
|
return entry;
|
|
2034
1443
|
});
|
|
2035
1444
|
};
|
|
2036
|
-
|
|
2037
|
-
return
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
1445
|
+
const serializeAws_restJson1BusinessGoals = (input, context) => {
|
|
1446
|
+
return {
|
|
1447
|
+
...(input.licenseCostReduction != null && { licenseCostReduction: input.licenseCostReduction }),
|
|
1448
|
+
...(input.modernizeInfrastructureWithCloudNativeTechnologies != null && {
|
|
1449
|
+
modernizeInfrastructureWithCloudNativeTechnologies: input.modernizeInfrastructureWithCloudNativeTechnologies,
|
|
1450
|
+
}),
|
|
1451
|
+
...(input.reduceOperationalOverheadWithManagedServices != null && {
|
|
1452
|
+
reduceOperationalOverheadWithManagedServices: input.reduceOperationalOverheadWithManagedServices,
|
|
1453
|
+
}),
|
|
1454
|
+
...(input.speedOfMigration != null && { speedOfMigration: input.speedOfMigration }),
|
|
1455
|
+
};
|
|
2042
1456
|
};
|
|
2043
|
-
|
|
1457
|
+
const serializeAws_restJson1DatabaseMigrationPreference = (input, context) => {
|
|
2044
1458
|
return DatabaseMigrationPreference.visit(input, {
|
|
2045
|
-
heterogeneous:
|
|
2046
|
-
homogeneous:
|
|
2047
|
-
noPreference:
|
|
2048
|
-
_:
|
|
1459
|
+
heterogeneous: (value) => ({ heterogeneous: serializeAws_restJson1Heterogeneous(value, context) }),
|
|
1460
|
+
homogeneous: (value) => ({ homogeneous: serializeAws_restJson1Homogeneous(value, context) }),
|
|
1461
|
+
noPreference: (value) => ({ noPreference: serializeAws_restJson1NoDatabaseMigrationPreference(value, context) }),
|
|
1462
|
+
_: (name, value) => ({ name: value }),
|
|
2049
1463
|
});
|
|
2050
1464
|
};
|
|
2051
|
-
|
|
2052
|
-
return
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
1465
|
+
const serializeAws_restJson1DatabasePreferences = (input, context) => {
|
|
1466
|
+
return {
|
|
1467
|
+
...(input.databaseManagementPreference != null && {
|
|
1468
|
+
databaseManagementPreference: input.databaseManagementPreference,
|
|
1469
|
+
}),
|
|
1470
|
+
...(input.databaseMigrationPreference != null && {
|
|
1471
|
+
databaseMigrationPreference: serializeAws_restJson1DatabaseMigrationPreference(input.databaseMigrationPreference, context),
|
|
1472
|
+
}),
|
|
1473
|
+
};
|
|
2057
1474
|
};
|
|
2058
|
-
|
|
2059
|
-
return
|
|
1475
|
+
const serializeAws_restJson1Group = (input, context) => {
|
|
1476
|
+
return {
|
|
1477
|
+
...(input.name != null && { name: input.name }),
|
|
1478
|
+
...(input.value != null && { value: input.value }),
|
|
1479
|
+
};
|
|
2060
1480
|
};
|
|
2061
|
-
|
|
1481
|
+
const serializeAws_restJson1GroupIds = (input, context) => {
|
|
2062
1482
|
return input
|
|
2063
|
-
.filter(
|
|
2064
|
-
.map(
|
|
1483
|
+
.filter((e) => e != null)
|
|
1484
|
+
.map((entry) => {
|
|
2065
1485
|
return serializeAws_restJson1Group(entry, context);
|
|
2066
1486
|
});
|
|
2067
1487
|
};
|
|
2068
|
-
|
|
2069
|
-
return
|
|
2070
|
-
|
|
2071
|
-
|
|
1488
|
+
const serializeAws_restJson1Heterogeneous = (input, context) => {
|
|
1489
|
+
return {
|
|
1490
|
+
...(input.targetDatabaseEngine != null && {
|
|
1491
|
+
targetDatabaseEngine: serializeAws_restJson1HeterogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
|
|
1492
|
+
}),
|
|
1493
|
+
};
|
|
2072
1494
|
};
|
|
2073
|
-
|
|
1495
|
+
const serializeAws_restJson1HeterogeneousTargetDatabaseEngines = (input, context) => {
|
|
2074
1496
|
return input
|
|
2075
|
-
.filter(
|
|
2076
|
-
.map(
|
|
1497
|
+
.filter((e) => e != null)
|
|
1498
|
+
.map((entry) => {
|
|
2077
1499
|
return entry;
|
|
2078
1500
|
});
|
|
2079
1501
|
};
|
|
2080
|
-
|
|
2081
|
-
return
|
|
2082
|
-
|
|
2083
|
-
|
|
1502
|
+
const serializeAws_restJson1Homogeneous = (input, context) => {
|
|
1503
|
+
return {
|
|
1504
|
+
...(input.targetDatabaseEngine != null && {
|
|
1505
|
+
targetDatabaseEngine: serializeAws_restJson1HomogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
|
|
1506
|
+
}),
|
|
1507
|
+
};
|
|
2084
1508
|
};
|
|
2085
|
-
|
|
1509
|
+
const serializeAws_restJson1HomogeneousTargetDatabaseEngines = (input, context) => {
|
|
2086
1510
|
return input
|
|
2087
|
-
.filter(
|
|
2088
|
-
.map(
|
|
1511
|
+
.filter((e) => e != null)
|
|
1512
|
+
.map((entry) => {
|
|
2089
1513
|
return entry;
|
|
2090
1514
|
});
|
|
2091
1515
|
};
|
|
2092
|
-
|
|
1516
|
+
const serializeAws_restJson1ManagementPreference = (input, context) => {
|
|
2093
1517
|
return ManagementPreference.visit(input, {
|
|
2094
|
-
awsManagedResources:
|
|
1518
|
+
awsManagedResources: (value) => ({
|
|
2095
1519
|
awsManagedResources: serializeAws_restJson1AwsManagedResources(value, context),
|
|
2096
|
-
})
|
|
2097
|
-
noPreference:
|
|
2098
|
-
selfManageResources:
|
|
1520
|
+
}),
|
|
1521
|
+
noPreference: (value) => ({ noPreference: serializeAws_restJson1NoManagementPreference(value, context) }),
|
|
1522
|
+
selfManageResources: (value) => ({
|
|
2099
1523
|
selfManageResources: serializeAws_restJson1SelfManageResources(value, context),
|
|
2100
|
-
})
|
|
2101
|
-
_:
|
|
1524
|
+
}),
|
|
1525
|
+
_: (name, value) => ({ name: value }),
|
|
2102
1526
|
});
|
|
2103
1527
|
};
|
|
2104
|
-
|
|
2105
|
-
return
|
|
2106
|
-
|
|
2107
|
-
|
|
1528
|
+
const serializeAws_restJson1NoDatabaseMigrationPreference = (input, context) => {
|
|
1529
|
+
return {
|
|
1530
|
+
...(input.targetDatabaseEngine != null && {
|
|
1531
|
+
targetDatabaseEngine: serializeAws_restJson1TargetDatabaseEngines(input.targetDatabaseEngine, context),
|
|
1532
|
+
}),
|
|
1533
|
+
};
|
|
2108
1534
|
};
|
|
2109
|
-
|
|
2110
|
-
return
|
|
2111
|
-
|
|
2112
|
-
|
|
1535
|
+
const serializeAws_restJson1NoManagementPreference = (input, context) => {
|
|
1536
|
+
return {
|
|
1537
|
+
...(input.targetDestination != null && {
|
|
1538
|
+
targetDestination: serializeAws_restJson1NoPreferenceTargetDestinations(input.targetDestination, context),
|
|
1539
|
+
}),
|
|
1540
|
+
};
|
|
2113
1541
|
};
|
|
2114
|
-
|
|
1542
|
+
const serializeAws_restJson1NoPreferenceTargetDestinations = (input, context) => {
|
|
2115
1543
|
return input
|
|
2116
|
-
.filter(
|
|
2117
|
-
.map(
|
|
1544
|
+
.filter((e) => e != null)
|
|
1545
|
+
.map((entry) => {
|
|
2118
1546
|
return entry;
|
|
2119
1547
|
});
|
|
2120
1548
|
};
|
|
2121
|
-
|
|
2122
|
-
return
|
|
2123
|
-
|
|
2124
|
-
|
|
1549
|
+
const serializeAws_restJson1PrioritizeBusinessGoals = (input, context) => {
|
|
1550
|
+
return {
|
|
1551
|
+
...(input.businessGoals != null && {
|
|
1552
|
+
businessGoals: serializeAws_restJson1BusinessGoals(input.businessGoals, context),
|
|
1553
|
+
}),
|
|
1554
|
+
};
|
|
2125
1555
|
};
|
|
2126
|
-
|
|
2127
|
-
return
|
|
2128
|
-
|
|
2129
|
-
|
|
1556
|
+
const serializeAws_restJson1SelfManageResources = (input, context) => {
|
|
1557
|
+
return {
|
|
1558
|
+
...(input.targetDestination != null && {
|
|
1559
|
+
targetDestination: serializeAws_restJson1SelfManageTargetDestinations(input.targetDestination, context),
|
|
1560
|
+
}),
|
|
1561
|
+
};
|
|
2130
1562
|
};
|
|
2131
|
-
|
|
1563
|
+
const serializeAws_restJson1SelfManageTargetDestinations = (input, context) => {
|
|
2132
1564
|
return input
|
|
2133
|
-
.filter(
|
|
2134
|
-
.map(
|
|
1565
|
+
.filter((e) => e != null)
|
|
1566
|
+
.map((entry) => {
|
|
2135
1567
|
return entry;
|
|
2136
1568
|
});
|
|
2137
1569
|
};
|
|
2138
|
-
|
|
2139
|
-
return
|
|
1570
|
+
const serializeAws_restJson1SourceCode = (input, context) => {
|
|
1571
|
+
return {
|
|
1572
|
+
...(input.location != null && { location: input.location }),
|
|
1573
|
+
...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
|
|
1574
|
+
...(input.versionControl != null && { versionControl: input.versionControl }),
|
|
1575
|
+
};
|
|
2140
1576
|
};
|
|
2141
|
-
|
|
1577
|
+
const serializeAws_restJson1SourceCodeList = (input, context) => {
|
|
2142
1578
|
return input
|
|
2143
|
-
.filter(
|
|
2144
|
-
.map(
|
|
1579
|
+
.filter((e) => e != null)
|
|
1580
|
+
.map((entry) => {
|
|
2145
1581
|
return serializeAws_restJson1SourceCode(entry, context);
|
|
2146
1582
|
});
|
|
2147
1583
|
};
|
|
2148
|
-
|
|
2149
|
-
return
|
|
1584
|
+
const serializeAws_restJson1StrategyOption = (input, context) => {
|
|
1585
|
+
return {
|
|
1586
|
+
...(input.isPreferred != null && { isPreferred: input.isPreferred }),
|
|
1587
|
+
...(input.strategy != null && { strategy: input.strategy }),
|
|
1588
|
+
...(input.targetDestination != null && { targetDestination: input.targetDestination }),
|
|
1589
|
+
...(input.toolName != null && { toolName: input.toolName }),
|
|
1590
|
+
};
|
|
2150
1591
|
};
|
|
2151
|
-
|
|
1592
|
+
const serializeAws_restJson1TargetDatabaseEngines = (input, context) => {
|
|
2152
1593
|
return input
|
|
2153
|
-
.filter(
|
|
2154
|
-
.map(
|
|
1594
|
+
.filter((e) => e != null)
|
|
1595
|
+
.map((entry) => {
|
|
2155
1596
|
return entry;
|
|
2156
1597
|
});
|
|
2157
1598
|
};
|
|
2158
|
-
|
|
1599
|
+
const deserializeAws_restJson1AntipatternSeveritySummary = (output, context) => {
|
|
2159
1600
|
return {
|
|
2160
1601
|
count: __expectInt32(output.count),
|
|
2161
1602
|
severity: __expectString(output.severity),
|
|
2162
1603
|
};
|
|
2163
1604
|
};
|
|
2164
|
-
|
|
1605
|
+
const deserializeAws_restJson1ApplicationComponentDetail = (output, context) => {
|
|
2165
1606
|
return {
|
|
2166
1607
|
analysisStatus: __expectString(output.analysisStatus),
|
|
2167
1608
|
antipatternReportS3Object: output.antipatternReportS3Object != null
|
|
@@ -2196,10 +1637,10 @@ var deserializeAws_restJson1ApplicationComponentDetail = function (output, conte
|
|
|
2196
1637
|
statusMessage: __expectString(output.statusMessage),
|
|
2197
1638
|
};
|
|
2198
1639
|
};
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
.filter(
|
|
2202
|
-
.map(
|
|
1640
|
+
const deserializeAws_restJson1ApplicationComponentDetails = (output, context) => {
|
|
1641
|
+
const retVal = (output || [])
|
|
1642
|
+
.filter((e) => e != null)
|
|
1643
|
+
.map((entry) => {
|
|
2203
1644
|
if (entry === null) {
|
|
2204
1645
|
return null;
|
|
2205
1646
|
}
|
|
@@ -2207,10 +1648,10 @@ var deserializeAws_restJson1ApplicationComponentDetails = function (output, cont
|
|
|
2207
1648
|
});
|
|
2208
1649
|
return retVal;
|
|
2209
1650
|
};
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
.filter(
|
|
2213
|
-
.map(
|
|
1651
|
+
const deserializeAws_restJson1ApplicationComponentStrategies = (output, context) => {
|
|
1652
|
+
const retVal = (output || [])
|
|
1653
|
+
.filter((e) => e != null)
|
|
1654
|
+
.map((entry) => {
|
|
2214
1655
|
if (entry === null) {
|
|
2215
1656
|
return null;
|
|
2216
1657
|
}
|
|
@@ -2218,7 +1659,7 @@ var deserializeAws_restJson1ApplicationComponentStrategies = function (output, c
|
|
|
2218
1659
|
});
|
|
2219
1660
|
return retVal;
|
|
2220
1661
|
};
|
|
2221
|
-
|
|
1662
|
+
const deserializeAws_restJson1ApplicationComponentStrategy = (output, context) => {
|
|
2222
1663
|
return {
|
|
2223
1664
|
isPreferred: __expectBoolean(output.isPreferred),
|
|
2224
1665
|
recommendation: output.recommendation != null
|
|
@@ -2227,20 +1668,20 @@ var deserializeAws_restJson1ApplicationComponentStrategy = function (output, con
|
|
|
2227
1668
|
status: __expectString(output.status),
|
|
2228
1669
|
};
|
|
2229
1670
|
};
|
|
2230
|
-
|
|
1671
|
+
const deserializeAws_restJson1ApplicationComponentSummary = (output, context) => {
|
|
2231
1672
|
return {
|
|
2232
1673
|
appType: __expectString(output.appType),
|
|
2233
1674
|
count: __expectInt32(output.count),
|
|
2234
1675
|
};
|
|
2235
1676
|
};
|
|
2236
|
-
|
|
1677
|
+
const deserializeAws_restJson1ApplicationPreferences = (output, context) => {
|
|
2237
1678
|
return {
|
|
2238
1679
|
managementPreference: output.managementPreference != null
|
|
2239
1680
|
? deserializeAws_restJson1ManagementPreference(__expectUnion(output.managementPreference), context)
|
|
2240
1681
|
: undefined,
|
|
2241
1682
|
};
|
|
2242
1683
|
};
|
|
2243
|
-
|
|
1684
|
+
const deserializeAws_restJson1AssessmentSummary = (output, context) => {
|
|
2244
1685
|
return {
|
|
2245
1686
|
antipatternReportS3Object: output.antipatternReportS3Object != null
|
|
2246
1687
|
? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
|
|
@@ -2267,16 +1708,16 @@ var deserializeAws_restJson1AssessmentSummary = function (output, context) {
|
|
|
2267
1708
|
: undefined,
|
|
2268
1709
|
};
|
|
2269
1710
|
};
|
|
2270
|
-
|
|
1711
|
+
const deserializeAws_restJson1AssociatedApplication = (output, context) => {
|
|
2271
1712
|
return {
|
|
2272
1713
|
id: __expectString(output.id),
|
|
2273
1714
|
name: __expectString(output.name),
|
|
2274
1715
|
};
|
|
2275
1716
|
};
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
.filter(
|
|
2279
|
-
.map(
|
|
1717
|
+
const deserializeAws_restJson1AssociatedApplications = (output, context) => {
|
|
1718
|
+
const retVal = (output || [])
|
|
1719
|
+
.filter((e) => e != null)
|
|
1720
|
+
.map((entry) => {
|
|
2280
1721
|
if (entry === null) {
|
|
2281
1722
|
return null;
|
|
2282
1723
|
}
|
|
@@ -2284,10 +1725,10 @@ var deserializeAws_restJson1AssociatedApplications = function (output, context)
|
|
|
2284
1725
|
});
|
|
2285
1726
|
return retVal;
|
|
2286
1727
|
};
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
.filter(
|
|
2290
|
-
.map(
|
|
1728
|
+
const deserializeAws_restJson1AssociatedServerIDs = (output, context) => {
|
|
1729
|
+
const retVal = (output || [])
|
|
1730
|
+
.filter((e) => e != null)
|
|
1731
|
+
.map((entry) => {
|
|
2291
1732
|
if (entry === null) {
|
|
2292
1733
|
return null;
|
|
2293
1734
|
}
|
|
@@ -2295,17 +1736,17 @@ var deserializeAws_restJson1AssociatedServerIDs = function (output, context) {
|
|
|
2295
1736
|
});
|
|
2296
1737
|
return retVal;
|
|
2297
1738
|
};
|
|
2298
|
-
|
|
1739
|
+
const deserializeAws_restJson1AwsManagedResources = (output, context) => {
|
|
2299
1740
|
return {
|
|
2300
1741
|
targetDestination: output.targetDestination != null
|
|
2301
1742
|
? deserializeAws_restJson1AwsManagedTargetDestinations(output.targetDestination, context)
|
|
2302
1743
|
: undefined,
|
|
2303
1744
|
};
|
|
2304
1745
|
};
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
.filter(
|
|
2308
|
-
.map(
|
|
1746
|
+
const deserializeAws_restJson1AwsManagedTargetDestinations = (output, context) => {
|
|
1747
|
+
const retVal = (output || [])
|
|
1748
|
+
.filter((e) => e != null)
|
|
1749
|
+
.map((entry) => {
|
|
2309
1750
|
if (entry === null) {
|
|
2310
1751
|
return null;
|
|
2311
1752
|
}
|
|
@@ -2313,7 +1754,7 @@ var deserializeAws_restJson1AwsManagedTargetDestinations = function (output, con
|
|
|
2313
1754
|
});
|
|
2314
1755
|
return retVal;
|
|
2315
1756
|
};
|
|
2316
|
-
|
|
1757
|
+
const deserializeAws_restJson1BusinessGoals = (output, context) => {
|
|
2317
1758
|
return {
|
|
2318
1759
|
licenseCostReduction: __expectInt32(output.licenseCostReduction),
|
|
2319
1760
|
modernizeInfrastructureWithCloudNativeTechnologies: __expectInt32(output.modernizeInfrastructureWithCloudNativeTechnologies),
|
|
@@ -2321,7 +1762,7 @@ var deserializeAws_restJson1BusinessGoals = function (output, context) {
|
|
|
2321
1762
|
speedOfMigration: __expectInt32(output.speedOfMigration),
|
|
2322
1763
|
};
|
|
2323
1764
|
};
|
|
2324
|
-
|
|
1765
|
+
const deserializeAws_restJson1Collector = (output, context) => {
|
|
2325
1766
|
return {
|
|
2326
1767
|
collectorHealth: __expectString(output.collectorHealth),
|
|
2327
1768
|
collectorId: __expectString(output.collectorId),
|
|
@@ -2332,10 +1773,10 @@ var deserializeAws_restJson1Collector = function (output, context) {
|
|
|
2332
1773
|
registeredTimeStamp: __expectString(output.registeredTimeStamp),
|
|
2333
1774
|
};
|
|
2334
1775
|
};
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
.filter(
|
|
2338
|
-
.map(
|
|
1776
|
+
const deserializeAws_restJson1Collectors = (output, context) => {
|
|
1777
|
+
const retVal = (output || [])
|
|
1778
|
+
.filter((e) => e != null)
|
|
1779
|
+
.map((entry) => {
|
|
2339
1780
|
if (entry === null) {
|
|
2340
1781
|
return null;
|
|
2341
1782
|
}
|
|
@@ -2343,12 +1784,12 @@ var deserializeAws_restJson1Collectors = function (output, context) {
|
|
|
2343
1784
|
});
|
|
2344
1785
|
return retVal;
|
|
2345
1786
|
};
|
|
2346
|
-
|
|
1787
|
+
const deserializeAws_restJson1DatabaseConfigDetail = (output, context) => {
|
|
2347
1788
|
return {
|
|
2348
1789
|
secretName: __expectString(output.secretName),
|
|
2349
1790
|
};
|
|
2350
1791
|
};
|
|
2351
|
-
|
|
1792
|
+
const deserializeAws_restJson1DatabaseMigrationPreference = (output, context) => {
|
|
2352
1793
|
if (output.heterogeneous != null) {
|
|
2353
1794
|
return {
|
|
2354
1795
|
heterogeneous: deserializeAws_restJson1Heterogeneous(output.heterogeneous, context),
|
|
@@ -2366,7 +1807,7 @@ var deserializeAws_restJson1DatabaseMigrationPreference = function (output, cont
|
|
|
2366
1807
|
}
|
|
2367
1808
|
return { $unknown: Object.entries(output)[0] };
|
|
2368
1809
|
};
|
|
2369
|
-
|
|
1810
|
+
const deserializeAws_restJson1DatabasePreferences = (output, context) => {
|
|
2370
1811
|
return {
|
|
2371
1812
|
databaseManagementPreference: __expectString(output.databaseManagementPreference),
|
|
2372
1813
|
databaseMigrationPreference: output.databaseMigrationPreference != null
|
|
@@ -2374,7 +1815,7 @@ var deserializeAws_restJson1DatabasePreferences = function (output, context) {
|
|
|
2374
1815
|
: undefined,
|
|
2375
1816
|
};
|
|
2376
1817
|
};
|
|
2377
|
-
|
|
1818
|
+
const deserializeAws_restJson1DataCollectionDetails = (output, context) => {
|
|
2378
1819
|
return {
|
|
2379
1820
|
completionTime: output.completionTime != null
|
|
2380
1821
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completionTime)))
|
|
@@ -2387,17 +1828,17 @@ var deserializeAws_restJson1DataCollectionDetails = function (output, context) {
|
|
|
2387
1828
|
success: __expectInt32(output.success),
|
|
2388
1829
|
};
|
|
2389
1830
|
};
|
|
2390
|
-
|
|
1831
|
+
const deserializeAws_restJson1Heterogeneous = (output, context) => {
|
|
2391
1832
|
return {
|
|
2392
1833
|
targetDatabaseEngine: output.targetDatabaseEngine != null
|
|
2393
1834
|
? deserializeAws_restJson1HeterogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
|
|
2394
1835
|
: undefined,
|
|
2395
1836
|
};
|
|
2396
1837
|
};
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
.filter(
|
|
2400
|
-
.map(
|
|
1838
|
+
const deserializeAws_restJson1HeterogeneousTargetDatabaseEngines = (output, context) => {
|
|
1839
|
+
const retVal = (output || [])
|
|
1840
|
+
.filter((e) => e != null)
|
|
1841
|
+
.map((entry) => {
|
|
2401
1842
|
if (entry === null) {
|
|
2402
1843
|
return null;
|
|
2403
1844
|
}
|
|
@@ -2405,17 +1846,17 @@ var deserializeAws_restJson1HeterogeneousTargetDatabaseEngines = function (outpu
|
|
|
2405
1846
|
});
|
|
2406
1847
|
return retVal;
|
|
2407
1848
|
};
|
|
2408
|
-
|
|
1849
|
+
const deserializeAws_restJson1Homogeneous = (output, context) => {
|
|
2409
1850
|
return {
|
|
2410
1851
|
targetDatabaseEngine: output.targetDatabaseEngine != null
|
|
2411
1852
|
? deserializeAws_restJson1HomogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
|
|
2412
1853
|
: undefined,
|
|
2413
1854
|
};
|
|
2414
1855
|
};
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
.filter(
|
|
2418
|
-
.map(
|
|
1856
|
+
const deserializeAws_restJson1HomogeneousTargetDatabaseEngines = (output, context) => {
|
|
1857
|
+
const retVal = (output || [])
|
|
1858
|
+
.filter((e) => e != null)
|
|
1859
|
+
.map((entry) => {
|
|
2419
1860
|
if (entry === null) {
|
|
2420
1861
|
return null;
|
|
2421
1862
|
}
|
|
@@ -2423,7 +1864,7 @@ var deserializeAws_restJson1HomogeneousTargetDatabaseEngines = function (output,
|
|
|
2423
1864
|
});
|
|
2424
1865
|
return retVal;
|
|
2425
1866
|
};
|
|
2426
|
-
|
|
1867
|
+
const deserializeAws_restJson1ImportFileTaskInformation = (output, context) => {
|
|
2427
1868
|
return {
|
|
2428
1869
|
completionTime: output.completionTime != null
|
|
2429
1870
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completionTime)))
|
|
@@ -2440,10 +1881,10 @@ var deserializeAws_restJson1ImportFileTaskInformation = function (output, contex
|
|
|
2440
1881
|
statusReportS3Key: __expectString(output.statusReportS3Key),
|
|
2441
1882
|
};
|
|
2442
1883
|
};
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
.filter(
|
|
2446
|
-
.map(
|
|
1884
|
+
const deserializeAws_restJson1ListAntipatternSeveritySummary = (output, context) => {
|
|
1885
|
+
const retVal = (output || [])
|
|
1886
|
+
.filter((e) => e != null)
|
|
1887
|
+
.map((entry) => {
|
|
2447
1888
|
if (entry === null) {
|
|
2448
1889
|
return null;
|
|
2449
1890
|
}
|
|
@@ -2451,10 +1892,10 @@ var deserializeAws_restJson1ListAntipatternSeveritySummary = function (output, c
|
|
|
2451
1892
|
});
|
|
2452
1893
|
return retVal;
|
|
2453
1894
|
};
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
.filter(
|
|
2457
|
-
.map(
|
|
1895
|
+
const deserializeAws_restJson1ListApplicationComponentSummary = (output, context) => {
|
|
1896
|
+
const retVal = (output || [])
|
|
1897
|
+
.filter((e) => e != null)
|
|
1898
|
+
.map((entry) => {
|
|
2458
1899
|
if (entry === null) {
|
|
2459
1900
|
return null;
|
|
2460
1901
|
}
|
|
@@ -2462,10 +1903,10 @@ var deserializeAws_restJson1ListApplicationComponentSummary = function (output,
|
|
|
2462
1903
|
});
|
|
2463
1904
|
return retVal;
|
|
2464
1905
|
};
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
.filter(
|
|
2468
|
-
.map(
|
|
1906
|
+
const deserializeAws_restJson1ListImportFileTaskInformation = (output, context) => {
|
|
1907
|
+
const retVal = (output || [])
|
|
1908
|
+
.filter((e) => e != null)
|
|
1909
|
+
.map((entry) => {
|
|
2469
1910
|
if (entry === null) {
|
|
2470
1911
|
return null;
|
|
2471
1912
|
}
|
|
@@ -2473,10 +1914,10 @@ var deserializeAws_restJson1ListImportFileTaskInformation = function (output, co
|
|
|
2473
1914
|
});
|
|
2474
1915
|
return retVal;
|
|
2475
1916
|
};
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
.filter(
|
|
2479
|
-
.map(
|
|
1917
|
+
const deserializeAws_restJson1ListServerSummary = (output, context) => {
|
|
1918
|
+
const retVal = (output || [])
|
|
1919
|
+
.filter((e) => e != null)
|
|
1920
|
+
.map((entry) => {
|
|
2480
1921
|
if (entry === null) {
|
|
2481
1922
|
return null;
|
|
2482
1923
|
}
|
|
@@ -2484,10 +1925,10 @@ var deserializeAws_restJson1ListServerSummary = function (output, context) {
|
|
|
2484
1925
|
});
|
|
2485
1926
|
return retVal;
|
|
2486
1927
|
};
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
.filter(
|
|
2490
|
-
.map(
|
|
1928
|
+
const deserializeAws_restJson1ListStrategySummary = (output, context) => {
|
|
1929
|
+
const retVal = (output || [])
|
|
1930
|
+
.filter((e) => e != null)
|
|
1931
|
+
.map((entry) => {
|
|
2491
1932
|
if (entry === null) {
|
|
2492
1933
|
return null;
|
|
2493
1934
|
}
|
|
@@ -2495,7 +1936,7 @@ var deserializeAws_restJson1ListStrategySummary = function (output, context) {
|
|
|
2495
1936
|
});
|
|
2496
1937
|
return retVal;
|
|
2497
1938
|
};
|
|
2498
|
-
|
|
1939
|
+
const deserializeAws_restJson1ManagementPreference = (output, context) => {
|
|
2499
1940
|
if (output.awsManagedResources != null) {
|
|
2500
1941
|
return {
|
|
2501
1942
|
awsManagedResources: deserializeAws_restJson1AwsManagedResources(output.awsManagedResources, context),
|
|
@@ -2513,7 +1954,7 @@ var deserializeAws_restJson1ManagementPreference = function (output, context) {
|
|
|
2513
1954
|
}
|
|
2514
1955
|
return { $unknown: Object.entries(output)[0] };
|
|
2515
1956
|
};
|
|
2516
|
-
|
|
1957
|
+
const deserializeAws_restJson1NetworkInfo = (output, context) => {
|
|
2517
1958
|
return {
|
|
2518
1959
|
interfaceName: __expectString(output.interfaceName),
|
|
2519
1960
|
ipAddress: __expectString(output.ipAddress),
|
|
@@ -2521,10 +1962,10 @@ var deserializeAws_restJson1NetworkInfo = function (output, context) {
|
|
|
2521
1962
|
netMask: __expectString(output.netMask),
|
|
2522
1963
|
};
|
|
2523
1964
|
};
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
.filter(
|
|
2527
|
-
.map(
|
|
1965
|
+
const deserializeAws_restJson1NetworkInfoList = (output, context) => {
|
|
1966
|
+
const retVal = (output || [])
|
|
1967
|
+
.filter((e) => e != null)
|
|
1968
|
+
.map((entry) => {
|
|
2528
1969
|
if (entry === null) {
|
|
2529
1970
|
return null;
|
|
2530
1971
|
}
|
|
@@ -2532,24 +1973,24 @@ var deserializeAws_restJson1NetworkInfoList = function (output, context) {
|
|
|
2532
1973
|
});
|
|
2533
1974
|
return retVal;
|
|
2534
1975
|
};
|
|
2535
|
-
|
|
1976
|
+
const deserializeAws_restJson1NoDatabaseMigrationPreference = (output, context) => {
|
|
2536
1977
|
return {
|
|
2537
1978
|
targetDatabaseEngine: output.targetDatabaseEngine != null
|
|
2538
1979
|
? deserializeAws_restJson1TargetDatabaseEngines(output.targetDatabaseEngine, context)
|
|
2539
1980
|
: undefined,
|
|
2540
1981
|
};
|
|
2541
1982
|
};
|
|
2542
|
-
|
|
1983
|
+
const deserializeAws_restJson1NoManagementPreference = (output, context) => {
|
|
2543
1984
|
return {
|
|
2544
1985
|
targetDestination: output.targetDestination != null
|
|
2545
1986
|
? deserializeAws_restJson1NoPreferenceTargetDestinations(output.targetDestination, context)
|
|
2546
1987
|
: undefined,
|
|
2547
1988
|
};
|
|
2548
1989
|
};
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
.filter(
|
|
2552
|
-
.map(
|
|
1990
|
+
const deserializeAws_restJson1NoPreferenceTargetDestinations = (output, context) => {
|
|
1991
|
+
const retVal = (output || [])
|
|
1992
|
+
.filter((e) => e != null)
|
|
1993
|
+
.map((entry) => {
|
|
2553
1994
|
if (entry === null) {
|
|
2554
1995
|
return null;
|
|
2555
1996
|
}
|
|
@@ -2557,18 +1998,18 @@ var deserializeAws_restJson1NoPreferenceTargetDestinations = function (output, c
|
|
|
2557
1998
|
});
|
|
2558
1999
|
return retVal;
|
|
2559
2000
|
};
|
|
2560
|
-
|
|
2001
|
+
const deserializeAws_restJson1OSInfo = (output, context) => {
|
|
2561
2002
|
return {
|
|
2562
2003
|
type: __expectString(output.type),
|
|
2563
2004
|
version: __expectString(output.version),
|
|
2564
2005
|
};
|
|
2565
2006
|
};
|
|
2566
|
-
|
|
2007
|
+
const deserializeAws_restJson1PrioritizeBusinessGoals = (output, context) => {
|
|
2567
2008
|
return {
|
|
2568
2009
|
businessGoals: output.businessGoals != null ? deserializeAws_restJson1BusinessGoals(output.businessGoals, context) : undefined,
|
|
2569
2010
|
};
|
|
2570
2011
|
};
|
|
2571
|
-
|
|
2012
|
+
const deserializeAws_restJson1RecommendationReportDetails = (output, context) => {
|
|
2572
2013
|
return {
|
|
2573
2014
|
completionTime: output.completionTime != null
|
|
2574
2015
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completionTime)))
|
|
@@ -2580,7 +2021,7 @@ var deserializeAws_restJson1RecommendationReportDetails = function (output, cont
|
|
|
2580
2021
|
statusMessage: __expectString(output.statusMessage),
|
|
2581
2022
|
};
|
|
2582
2023
|
};
|
|
2583
|
-
|
|
2024
|
+
const deserializeAws_restJson1RecommendationSet = (output, context) => {
|
|
2584
2025
|
return {
|
|
2585
2026
|
strategy: __expectString(output.strategy),
|
|
2586
2027
|
targetDestination: __expectString(output.targetDestination),
|
|
@@ -2589,10 +2030,10 @@ var deserializeAws_restJson1RecommendationSet = function (output, context) {
|
|
|
2589
2030
|
: undefined,
|
|
2590
2031
|
};
|
|
2591
2032
|
};
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
.filter(
|
|
2595
|
-
.map(
|
|
2033
|
+
const deserializeAws_restJson1S3Keys = (output, context) => {
|
|
2034
|
+
const retVal = (output || [])
|
|
2035
|
+
.filter((e) => e != null)
|
|
2036
|
+
.map((entry) => {
|
|
2596
2037
|
if (entry === null) {
|
|
2597
2038
|
return null;
|
|
2598
2039
|
}
|
|
@@ -2600,23 +2041,23 @@ var deserializeAws_restJson1S3Keys = function (output, context) {
|
|
|
2600
2041
|
});
|
|
2601
2042
|
return retVal;
|
|
2602
2043
|
};
|
|
2603
|
-
|
|
2044
|
+
const deserializeAws_restJson1S3Object = (output, context) => {
|
|
2604
2045
|
return {
|
|
2605
2046
|
s3Bucket: __expectString(output.s3Bucket),
|
|
2606
2047
|
s3key: __expectString(output.s3key),
|
|
2607
2048
|
};
|
|
2608
2049
|
};
|
|
2609
|
-
|
|
2050
|
+
const deserializeAws_restJson1SelfManageResources = (output, context) => {
|
|
2610
2051
|
return {
|
|
2611
2052
|
targetDestination: output.targetDestination != null
|
|
2612
2053
|
? deserializeAws_restJson1SelfManageTargetDestinations(output.targetDestination, context)
|
|
2613
2054
|
: undefined,
|
|
2614
2055
|
};
|
|
2615
2056
|
};
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
.filter(
|
|
2619
|
-
.map(
|
|
2057
|
+
const deserializeAws_restJson1SelfManageTargetDestinations = (output, context) => {
|
|
2058
|
+
const retVal = (output || [])
|
|
2059
|
+
.filter((e) => e != null)
|
|
2060
|
+
.map((entry) => {
|
|
2620
2061
|
if (entry === null) {
|
|
2621
2062
|
return null;
|
|
2622
2063
|
}
|
|
@@ -2624,7 +2065,7 @@ var deserializeAws_restJson1SelfManageTargetDestinations = function (output, con
|
|
|
2624
2065
|
});
|
|
2625
2066
|
return retVal;
|
|
2626
2067
|
};
|
|
2627
|
-
|
|
2068
|
+
const deserializeAws_restJson1ServerDetail = (output, context) => {
|
|
2628
2069
|
return {
|
|
2629
2070
|
antipatternReportS3Object: output.antipatternReportS3Object != null
|
|
2630
2071
|
? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
|
|
@@ -2651,10 +2092,10 @@ var deserializeAws_restJson1ServerDetail = function (output, context) {
|
|
|
2651
2092
|
systemInfo: output.systemInfo != null ? deserializeAws_restJson1SystemInfo(output.systemInfo, context) : undefined,
|
|
2652
2093
|
};
|
|
2653
2094
|
};
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
.filter(
|
|
2657
|
-
.map(
|
|
2095
|
+
const deserializeAws_restJson1ServerDetails = (output, context) => {
|
|
2096
|
+
const retVal = (output || [])
|
|
2097
|
+
.filter((e) => e != null)
|
|
2098
|
+
.map((entry) => {
|
|
2658
2099
|
if (entry === null) {
|
|
2659
2100
|
return null;
|
|
2660
2101
|
}
|
|
@@ -2662,10 +2103,10 @@ var deserializeAws_restJson1ServerDetails = function (output, context) {
|
|
|
2662
2103
|
});
|
|
2663
2104
|
return retVal;
|
|
2664
2105
|
};
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
.filter(
|
|
2668
|
-
.map(
|
|
2106
|
+
const deserializeAws_restJson1ServerStrategies = (output, context) => {
|
|
2107
|
+
const retVal = (output || [])
|
|
2108
|
+
.filter((e) => e != null)
|
|
2109
|
+
.map((entry) => {
|
|
2669
2110
|
if (entry === null) {
|
|
2670
2111
|
return null;
|
|
2671
2112
|
}
|
|
@@ -2673,7 +2114,7 @@ var deserializeAws_restJson1ServerStrategies = function (output, context) {
|
|
|
2673
2114
|
});
|
|
2674
2115
|
return retVal;
|
|
2675
2116
|
};
|
|
2676
|
-
|
|
2117
|
+
const deserializeAws_restJson1ServerStrategy = (output, context) => {
|
|
2677
2118
|
return {
|
|
2678
2119
|
isPreferred: __expectBoolean(output.isPreferred),
|
|
2679
2120
|
numberOfApplicationComponents: __expectInt32(output.numberOfApplicationComponents),
|
|
@@ -2683,16 +2124,16 @@ var deserializeAws_restJson1ServerStrategy = function (output, context) {
|
|
|
2683
2124
|
status: __expectString(output.status),
|
|
2684
2125
|
};
|
|
2685
2126
|
};
|
|
2686
|
-
|
|
2127
|
+
const deserializeAws_restJson1ServerSummary = (output, context) => {
|
|
2687
2128
|
return {
|
|
2688
2129
|
ServerOsType: __expectString(output.ServerOsType),
|
|
2689
2130
|
count: __expectInt32(output.count),
|
|
2690
2131
|
};
|
|
2691
2132
|
};
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
.filter(
|
|
2695
|
-
.map(
|
|
2133
|
+
const deserializeAws_restJson1SourceCodeRepositories = (output, context) => {
|
|
2134
|
+
const retVal = (output || [])
|
|
2135
|
+
.filter((e) => e != null)
|
|
2136
|
+
.map((entry) => {
|
|
2696
2137
|
if (entry === null) {
|
|
2697
2138
|
return null;
|
|
2698
2139
|
}
|
|
@@ -2700,20 +2141,20 @@ var deserializeAws_restJson1SourceCodeRepositories = function (output, context)
|
|
|
2700
2141
|
});
|
|
2701
2142
|
return retVal;
|
|
2702
2143
|
};
|
|
2703
|
-
|
|
2144
|
+
const deserializeAws_restJson1SourceCodeRepository = (output, context) => {
|
|
2704
2145
|
return {
|
|
2705
2146
|
branch: __expectString(output.branch),
|
|
2706
2147
|
repository: __expectString(output.repository),
|
|
2707
2148
|
versionControlType: __expectString(output.versionControlType),
|
|
2708
2149
|
};
|
|
2709
2150
|
};
|
|
2710
|
-
|
|
2151
|
+
const deserializeAws_restJson1StrategySummary = (output, context) => {
|
|
2711
2152
|
return {
|
|
2712
2153
|
count: __expectInt32(output.count),
|
|
2713
2154
|
strategy: __expectString(output.strategy),
|
|
2714
2155
|
};
|
|
2715
2156
|
};
|
|
2716
|
-
|
|
2157
|
+
const deserializeAws_restJson1SystemInfo = (output, context) => {
|
|
2717
2158
|
return {
|
|
2718
2159
|
cpuArchitecture: __expectString(output.cpuArchitecture),
|
|
2719
2160
|
fileSystemType: __expectString(output.fileSystemType),
|
|
@@ -2723,10 +2164,10 @@ var deserializeAws_restJson1SystemInfo = function (output, context) {
|
|
|
2723
2164
|
osInfo: output.osInfo != null ? deserializeAws_restJson1OSInfo(output.osInfo, context) : undefined,
|
|
2724
2165
|
};
|
|
2725
2166
|
};
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
.filter(
|
|
2729
|
-
.map(
|
|
2167
|
+
const deserializeAws_restJson1TargetDatabaseEngines = (output, context) => {
|
|
2168
|
+
const retVal = (output || [])
|
|
2169
|
+
.filter((e) => e != null)
|
|
2170
|
+
.map((entry) => {
|
|
2730
2171
|
if (entry === null) {
|
|
2731
2172
|
return null;
|
|
2732
2173
|
}
|
|
@@ -2734,64 +2175,46 @@ var deserializeAws_restJson1TargetDatabaseEngines = function (output, context) {
|
|
|
2734
2175
|
});
|
|
2735
2176
|
return retVal;
|
|
2736
2177
|
};
|
|
2737
|
-
|
|
2178
|
+
const deserializeAws_restJson1TransformationTool = (output, context) => {
|
|
2738
2179
|
return {
|
|
2739
2180
|
description: __expectString(output.description),
|
|
2740
2181
|
name: __expectString(output.name),
|
|
2741
2182
|
tranformationToolInstallationLink: __expectString(output.tranformationToolInstallationLink),
|
|
2742
2183
|
};
|
|
2743
2184
|
};
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
});
|
|
2752
|
-
};
|
|
2753
|
-
var collectBody = function (streamBody, context) {
|
|
2754
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2185
|
+
const deserializeMetadata = (output) => ({
|
|
2186
|
+
httpStatusCode: output.statusCode,
|
|
2187
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2188
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2189
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2190
|
+
});
|
|
2191
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2755
2192
|
if (streamBody instanceof Uint8Array) {
|
|
2756
2193
|
return Promise.resolve(streamBody);
|
|
2757
2194
|
}
|
|
2758
2195
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2759
2196
|
};
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
}
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
return __generator(this, function (_b) {
|
|
2782
|
-
switch (_b.label) {
|
|
2783
|
-
case 0: return [4, parseBody(errorBody, context)];
|
|
2784
|
-
case 1:
|
|
2785
|
-
value = _b.sent();
|
|
2786
|
-
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2787
|
-
return [2, value];
|
|
2788
|
-
}
|
|
2789
|
-
});
|
|
2790
|
-
}); };
|
|
2791
|
-
var loadRestJsonErrorCode = function (output, data) {
|
|
2792
|
-
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2793
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
2794
|
-
var cleanValue = rawValue;
|
|
2197
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2198
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2199
|
+
value !== null &&
|
|
2200
|
+
value !== "" &&
|
|
2201
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2202
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2203
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2204
|
+
if (encoded.length) {
|
|
2205
|
+
return JSON.parse(encoded);
|
|
2206
|
+
}
|
|
2207
|
+
return {};
|
|
2208
|
+
});
|
|
2209
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2210
|
+
const value = await parseBody(errorBody, context);
|
|
2211
|
+
value.message = value.message ?? value.Message;
|
|
2212
|
+
return value;
|
|
2213
|
+
};
|
|
2214
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2215
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2216
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2217
|
+
let cleanValue = rawValue;
|
|
2795
2218
|
if (typeof cleanValue === "number") {
|
|
2796
2219
|
cleanValue = cleanValue.toString();
|
|
2797
2220
|
}
|
|
@@ -2806,7 +2229,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2806
2229
|
}
|
|
2807
2230
|
return cleanValue;
|
|
2808
2231
|
};
|
|
2809
|
-
|
|
2232
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2810
2233
|
if (headerKey !== undefined) {
|
|
2811
2234
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2812
2235
|
}
|