@aws-sdk/client-migrationhubstrategy 3.312.0 → 3.315.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.
@@ -154,7 +154,7 @@ const se_GetServerDetailsCommand = async (input, context) => {
154
154
  const headers = {};
155
155
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-server-details/{serverId}";
156
156
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "serverId", () => input.serverId, "{serverId}", false);
157
- const query = map({
157
+ const query = (0, smithy_client_1.map)({
158
158
  nextToken: [, input.nextToken],
159
159
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
160
160
  });
@@ -195,16 +195,14 @@ const se_ListApplicationComponentsCommand = async (input, context) => {
195
195
  };
196
196
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-applicationcomponents";
197
197
  let body;
198
- body = JSON.stringify({
199
- ...(input.applicationComponentCriteria != null && {
200
- applicationComponentCriteria: input.applicationComponentCriteria,
201
- }),
202
- ...(input.filterValue != null && { filterValue: input.filterValue }),
203
- ...(input.groupIdFilter != null && { groupIdFilter: se_GroupIds(input.groupIdFilter, context) }),
204
- ...(input.maxResults != null && { maxResults: input.maxResults }),
205
- ...(input.nextToken != null && { nextToken: input.nextToken }),
206
- ...(input.sort != null && { sort: input.sort }),
207
- });
198
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
199
+ applicationComponentCriteria: [],
200
+ filterValue: [],
201
+ groupIdFilter: (_) => (0, smithy_client_1._json)(_),
202
+ maxResults: [],
203
+ nextToken: [],
204
+ sort: [],
205
+ }));
208
206
  return new protocol_http_1.HttpRequest({
209
207
  protocol,
210
208
  hostname,
@@ -220,7 +218,7 @@ const se_ListCollectorsCommand = async (input, context) => {
220
218
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
221
219
  const headers = {};
222
220
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-collectors";
223
- const query = map({
221
+ const query = (0, smithy_client_1.map)({
224
222
  nextToken: [, input.nextToken],
225
223
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
226
224
  });
@@ -241,7 +239,7 @@ const se_ListImportFileTaskCommand = async (input, context) => {
241
239
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
242
240
  const headers = {};
243
241
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-import-file-task";
244
- const query = map({
242
+ const query = (0, smithy_client_1.map)({
245
243
  nextToken: [, input.nextToken],
246
244
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
247
245
  });
@@ -265,14 +263,14 @@ const se_ListServersCommand = async (input, context) => {
265
263
  };
266
264
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-servers";
267
265
  let body;
268
- body = JSON.stringify({
269
- ...(input.filterValue != null && { filterValue: input.filterValue }),
270
- ...(input.groupIdFilter != null && { groupIdFilter: se_GroupIds(input.groupIdFilter, context) }),
271
- ...(input.maxResults != null && { maxResults: input.maxResults }),
272
- ...(input.nextToken != null && { nextToken: input.nextToken }),
273
- ...(input.serverCriteria != null && { serverCriteria: input.serverCriteria }),
274
- ...(input.sort != null && { sort: input.sort }),
275
- });
266
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
267
+ filterValue: [],
268
+ groupIdFilter: (_) => (0, smithy_client_1._json)(_),
269
+ maxResults: [],
270
+ nextToken: [],
271
+ serverCriteria: [],
272
+ sort: [],
273
+ }));
276
274
  return new protocol_http_1.HttpRequest({
277
275
  protocol,
278
276
  hostname,
@@ -291,18 +289,12 @@ const se_PutPortfolioPreferencesCommand = async (input, context) => {
291
289
  };
292
290
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-portfolio-preferences";
293
291
  let body;
294
- body = JSON.stringify({
295
- ...(input.applicationMode != null && { applicationMode: input.applicationMode }),
296
- ...(input.applicationPreferences != null && {
297
- applicationPreferences: se_ApplicationPreferences(input.applicationPreferences, context),
298
- }),
299
- ...(input.databasePreferences != null && {
300
- databasePreferences: se_DatabasePreferences(input.databasePreferences, context),
301
- }),
302
- ...(input.prioritizeBusinessGoals != null && {
303
- prioritizeBusinessGoals: se_PrioritizeBusinessGoals(input.prioritizeBusinessGoals, context),
304
- }),
305
- });
292
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
293
+ applicationMode: [],
294
+ applicationPreferences: (_) => (0, smithy_client_1._json)(_),
295
+ databasePreferences: (_) => (0, smithy_client_1._json)(_),
296
+ prioritizeBusinessGoals: (_) => (0, smithy_client_1._json)(_),
297
+ }));
306
298
  return new protocol_http_1.HttpRequest({
307
299
  protocol,
308
300
  hostname,
@@ -321,13 +313,11 @@ const se_StartAssessmentCommand = async (input, context) => {
321
313
  };
322
314
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-assessment";
323
315
  let body;
324
- body = JSON.stringify({
325
- ...(input.assessmentTargets != null && {
326
- assessmentTargets: se_AssessmentTargets(input.assessmentTargets, context),
327
- }),
328
- ...(input.s3bucketForAnalysisData != null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData }),
329
- ...(input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData }),
330
- });
316
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
317
+ assessmentTargets: (_) => (0, smithy_client_1._json)(_),
318
+ s3bucketForAnalysisData: [],
319
+ s3bucketForReportData: [],
320
+ }));
331
321
  return new protocol_http_1.HttpRequest({
332
322
  protocol,
333
323
  hostname,
@@ -346,14 +336,14 @@ const se_StartImportFileTaskCommand = async (input, context) => {
346
336
  };
347
337
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-import-file-task";
348
338
  let body;
349
- body = JSON.stringify({
350
- ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
351
- ...(input.dataSourceType != null && { dataSourceType: input.dataSourceType }),
352
- ...(input.groupId != null && { groupId: se_GroupIds(input.groupId, context) }),
353
- ...(input.name != null && { name: input.name }),
354
- ...(input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData }),
355
- ...(input.s3key != null && { s3key: input.s3key }),
356
- });
339
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
340
+ S3Bucket: [],
341
+ dataSourceType: [],
342
+ groupId: (_) => (0, smithy_client_1._json)(_),
343
+ name: [],
344
+ s3bucketForReportData: [],
345
+ s3key: [],
346
+ }));
357
347
  return new protocol_http_1.HttpRequest({
358
348
  protocol,
359
349
  hostname,
@@ -372,10 +362,10 @@ const se_StartRecommendationReportGenerationCommand = async (input, context) =>
372
362
  };
373
363
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-recommendation-report-generation";
374
364
  let body;
375
- body = JSON.stringify({
376
- ...(input.groupIdFilter != null && { groupIdFilter: se_GroupIds(input.groupIdFilter, context) }),
377
- ...(input.outputFormat != null && { outputFormat: input.outputFormat }),
378
- });
365
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
366
+ groupIdFilter: (_) => (0, smithy_client_1._json)(_),
367
+ outputFormat: [],
368
+ }));
379
369
  return new protocol_http_1.HttpRequest({
380
370
  protocol,
381
371
  hostname,
@@ -394,9 +384,9 @@ const se_StopAssessmentCommand = async (input, context) => {
394
384
  };
395
385
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stop-assessment";
396
386
  let body;
397
- body = JSON.stringify({
398
- ...(input.assessmentId != null && { assessmentId: input.assessmentId }),
399
- });
387
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
388
+ assessmentId: [],
389
+ }));
400
390
  return new protocol_http_1.HttpRequest({
401
391
  protocol,
402
392
  hostname,
@@ -415,15 +405,15 @@ const se_UpdateApplicationComponentConfigCommand = async (input, context) => {
415
405
  };
416
406
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-applicationcomponent-config";
417
407
  let body;
418
- body = JSON.stringify({
419
- ...(input.appType != null && { appType: input.appType }),
420
- ...(input.applicationComponentId != null && { applicationComponentId: input.applicationComponentId }),
421
- ...(input.configureOnly != null && { configureOnly: input.configureOnly }),
422
- ...(input.inclusionStatus != null && { inclusionStatus: input.inclusionStatus }),
423
- ...(input.secretsManagerKey != null && { secretsManagerKey: input.secretsManagerKey }),
424
- ...(input.sourceCodeList != null && { sourceCodeList: se_SourceCodeList(input.sourceCodeList, context) }),
425
- ...(input.strategyOption != null && { strategyOption: se_StrategyOption(input.strategyOption, context) }),
426
- });
408
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
409
+ appType: [],
410
+ applicationComponentId: [],
411
+ configureOnly: [],
412
+ inclusionStatus: [],
413
+ secretsManagerKey: [],
414
+ sourceCodeList: (_) => (0, smithy_client_1._json)(_),
415
+ strategyOption: (_) => (0, smithy_client_1._json)(_),
416
+ }));
427
417
  return new protocol_http_1.HttpRequest({
428
418
  protocol,
429
419
  hostname,
@@ -442,10 +432,10 @@ const se_UpdateServerConfigCommand = async (input, context) => {
442
432
  };
443
433
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-server-config";
444
434
  let body;
445
- body = JSON.stringify({
446
- ...(input.serverId != null && { serverId: input.serverId }),
447
- ...(input.strategyOption != null && { strategyOption: se_StrategyOption(input.strategyOption, context) }),
448
- });
435
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
436
+ serverId: [],
437
+ strategyOption: (_) => (0, smithy_client_1._json)(_),
438
+ }));
449
439
  return new protocol_http_1.HttpRequest({
450
440
  protocol,
451
441
  hostname,
@@ -461,22 +451,17 @@ const de_GetApplicationComponentDetailsCommand = async (output, context) => {
461
451
  if (output.statusCode !== 200 && output.statusCode >= 300) {
462
452
  return de_GetApplicationComponentDetailsCommandError(output, context);
463
453
  }
464
- const contents = map({
454
+ const contents = (0, smithy_client_1.map)({
465
455
  $metadata: deserializeMetadata(output),
466
456
  });
467
457
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
468
- if (data.applicationComponentDetail != null) {
469
- contents.applicationComponentDetail = de_ApplicationComponentDetail(data.applicationComponentDetail, context);
470
- }
471
- if (data.associatedApplications != null) {
472
- contents.associatedApplications = de_AssociatedApplications(data.associatedApplications, context);
473
- }
474
- if (data.associatedServerIds != null) {
475
- contents.associatedServerIds = de_AssociatedServerIDs(data.associatedServerIds, context);
476
- }
477
- if (data.moreApplicationResource != null) {
478
- contents.moreApplicationResource = (0, smithy_client_1.expectBoolean)(data.moreApplicationResource);
479
- }
458
+ const doc = (0, smithy_client_1.take)(data, {
459
+ applicationComponentDetail: (_) => de_ApplicationComponentDetail(_, context),
460
+ associatedApplications: smithy_client_1._json,
461
+ associatedServerIds: smithy_client_1._json,
462
+ moreApplicationResource: smithy_client_1.expectBoolean,
463
+ });
464
+ Object.assign(contents, doc);
480
465
  return contents;
481
466
  };
482
467
  exports.de_GetApplicationComponentDetailsCommand = de_GetApplicationComponentDetailsCommand;
@@ -498,10 +483,9 @@ const de_GetApplicationComponentDetailsCommandError = async (output, context) =>
498
483
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
499
484
  default:
500
485
  const parsedBody = parsedOutput.body;
501
- (0, smithy_client_1.throwDefaultError)({
486
+ return throwDefaultError({
502
487
  output,
503
488
  parsedBody,
504
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
505
489
  errorCode,
506
490
  });
507
491
  }
@@ -510,13 +494,14 @@ const de_GetApplicationComponentStrategiesCommand = async (output, context) => {
510
494
  if (output.statusCode !== 200 && output.statusCode >= 300) {
511
495
  return de_GetApplicationComponentStrategiesCommandError(output, context);
512
496
  }
513
- const contents = map({
497
+ const contents = (0, smithy_client_1.map)({
514
498
  $metadata: deserializeMetadata(output),
515
499
  });
516
500
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
517
- if (data.applicationComponentStrategies != null) {
518
- contents.applicationComponentStrategies = de_ApplicationComponentStrategies(data.applicationComponentStrategies, context);
519
- }
501
+ const doc = (0, smithy_client_1.take)(data, {
502
+ applicationComponentStrategies: smithy_client_1._json,
503
+ });
504
+ Object.assign(contents, doc);
520
505
  return contents;
521
506
  };
522
507
  exports.de_GetApplicationComponentStrategiesCommand = de_GetApplicationComponentStrategiesCommand;
@@ -538,10 +523,9 @@ const de_GetApplicationComponentStrategiesCommandError = async (output, context)
538
523
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
539
524
  default:
540
525
  const parsedBody = parsedOutput.body;
541
- (0, smithy_client_1.throwDefaultError)({
526
+ return throwDefaultError({
542
527
  output,
543
528
  parsedBody,
544
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
545
529
  errorCode,
546
530
  });
547
531
  }
@@ -550,19 +534,16 @@ const de_GetAssessmentCommand = async (output, context) => {
550
534
  if (output.statusCode !== 200 && output.statusCode >= 300) {
551
535
  return de_GetAssessmentCommandError(output, context);
552
536
  }
553
- const contents = map({
537
+ const contents = (0, smithy_client_1.map)({
554
538
  $metadata: deserializeMetadata(output),
555
539
  });
556
540
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
557
- if (data.assessmentTargets != null) {
558
- contents.assessmentTargets = de_AssessmentTargets(data.assessmentTargets, context);
559
- }
560
- if (data.dataCollectionDetails != null) {
561
- contents.dataCollectionDetails = de_DataCollectionDetails(data.dataCollectionDetails, context);
562
- }
563
- if (data.id != null) {
564
- contents.id = (0, smithy_client_1.expectString)(data.id);
565
- }
541
+ const doc = (0, smithy_client_1.take)(data, {
542
+ assessmentTargets: smithy_client_1._json,
543
+ dataCollectionDetails: (_) => de_DataCollectionDetails(_, context),
544
+ id: smithy_client_1.expectString,
545
+ });
546
+ Object.assign(contents, doc);
566
547
  return contents;
567
548
  };
568
549
  exports.de_GetAssessmentCommand = de_GetAssessmentCommand;
@@ -587,10 +568,9 @@ const de_GetAssessmentCommandError = async (output, context) => {
587
568
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
588
569
  default:
589
570
  const parsedBody = parsedOutput.body;
590
- (0, smithy_client_1.throwDefaultError)({
571
+ return throwDefaultError({
591
572
  output,
592
573
  parsedBody,
593
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
594
574
  errorCode,
595
575
  });
596
576
  }
@@ -599,43 +579,24 @@ const de_GetImportFileTaskCommand = async (output, context) => {
599
579
  if (output.statusCode !== 200 && output.statusCode >= 300) {
600
580
  return de_GetImportFileTaskCommandError(output, context);
601
581
  }
602
- const contents = map({
582
+ const contents = (0, smithy_client_1.map)({
603
583
  $metadata: deserializeMetadata(output),
604
584
  });
605
585
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
606
- if (data.completionTime != null) {
607
- contents.completionTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.completionTime)));
608
- }
609
- if (data.id != null) {
610
- contents.id = (0, smithy_client_1.expectString)(data.id);
611
- }
612
- if (data.importName != null) {
613
- contents.importName = (0, smithy_client_1.expectString)(data.importName);
614
- }
615
- if (data.inputS3Bucket != null) {
616
- contents.inputS3Bucket = (0, smithy_client_1.expectString)(data.inputS3Bucket);
617
- }
618
- if (data.inputS3Key != null) {
619
- contents.inputS3Key = (0, smithy_client_1.expectString)(data.inputS3Key);
620
- }
621
- if (data.numberOfRecordsFailed != null) {
622
- contents.numberOfRecordsFailed = (0, smithy_client_1.expectInt32)(data.numberOfRecordsFailed);
623
- }
624
- if (data.numberOfRecordsSuccess != null) {
625
- contents.numberOfRecordsSuccess = (0, smithy_client_1.expectInt32)(data.numberOfRecordsSuccess);
626
- }
627
- if (data.startTime != null) {
628
- contents.startTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.startTime)));
629
- }
630
- if (data.status != null) {
631
- contents.status = (0, smithy_client_1.expectString)(data.status);
632
- }
633
- if (data.statusReportS3Bucket != null) {
634
- contents.statusReportS3Bucket = (0, smithy_client_1.expectString)(data.statusReportS3Bucket);
635
- }
636
- if (data.statusReportS3Key != null) {
637
- contents.statusReportS3Key = (0, smithy_client_1.expectString)(data.statusReportS3Key);
638
- }
586
+ const doc = (0, smithy_client_1.take)(data, {
587
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
588
+ id: smithy_client_1.expectString,
589
+ importName: smithy_client_1.expectString,
590
+ inputS3Bucket: smithy_client_1.expectString,
591
+ inputS3Key: smithy_client_1.expectString,
592
+ numberOfRecordsFailed: smithy_client_1.expectInt32,
593
+ numberOfRecordsSuccess: smithy_client_1.expectInt32,
594
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
595
+ status: smithy_client_1.expectString,
596
+ statusReportS3Bucket: smithy_client_1.expectString,
597
+ statusReportS3Key: smithy_client_1.expectString,
598
+ });
599
+ Object.assign(contents, doc);
639
600
  return contents;
640
601
  };
641
602
  exports.de_GetImportFileTaskCommand = de_GetImportFileTaskCommand;
@@ -663,10 +624,9 @@ const de_GetImportFileTaskCommandError = async (output, context) => {
663
624
  throw await de_ValidationExceptionRes(parsedOutput, context);
664
625
  default:
665
626
  const parsedBody = parsedOutput.body;
666
- (0, smithy_client_1.throwDefaultError)({
627
+ return throwDefaultError({
667
628
  output,
668
629
  parsedBody,
669
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
670
630
  errorCode,
671
631
  });
672
632
  }
@@ -675,13 +635,14 @@ const de_GetLatestAssessmentIdCommand = async (output, context) => {
675
635
  if (output.statusCode !== 200 && output.statusCode >= 300) {
676
636
  return de_GetLatestAssessmentIdCommandError(output, context);
677
637
  }
678
- const contents = map({
638
+ const contents = (0, smithy_client_1.map)({
679
639
  $metadata: deserializeMetadata(output),
680
640
  });
681
641
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
682
- if (data.id != null) {
683
- contents.id = (0, smithy_client_1.expectString)(data.id);
684
- }
642
+ const doc = (0, smithy_client_1.take)(data, {
643
+ id: smithy_client_1.expectString,
644
+ });
645
+ Object.assign(contents, doc);
685
646
  return contents;
686
647
  };
687
648
  exports.de_GetLatestAssessmentIdCommand = de_GetLatestAssessmentIdCommand;
@@ -706,10 +667,9 @@ const de_GetLatestAssessmentIdCommandError = async (output, context) => {
706
667
  throw await de_ValidationExceptionRes(parsedOutput, context);
707
668
  default:
708
669
  const parsedBody = parsedOutput.body;
709
- (0, smithy_client_1.throwDefaultError)({
670
+ return throwDefaultError({
710
671
  output,
711
672
  parsedBody,
712
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
713
673
  errorCode,
714
674
  });
715
675
  }
@@ -718,22 +678,17 @@ const de_GetPortfolioPreferencesCommand = async (output, context) => {
718
678
  if (output.statusCode !== 200 && output.statusCode >= 300) {
719
679
  return de_GetPortfolioPreferencesCommandError(output, context);
720
680
  }
721
- const contents = map({
681
+ const contents = (0, smithy_client_1.map)({
722
682
  $metadata: deserializeMetadata(output),
723
683
  });
724
684
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
725
- if (data.applicationMode != null) {
726
- contents.applicationMode = (0, smithy_client_1.expectString)(data.applicationMode);
727
- }
728
- if (data.applicationPreferences != null) {
729
- contents.applicationPreferences = de_ApplicationPreferences(data.applicationPreferences, context);
730
- }
731
- if (data.databasePreferences != null) {
732
- contents.databasePreferences = de_DatabasePreferences(data.databasePreferences, context);
733
- }
734
- if (data.prioritizeBusinessGoals != null) {
735
- contents.prioritizeBusinessGoals = de_PrioritizeBusinessGoals(data.prioritizeBusinessGoals, context);
736
- }
685
+ const doc = (0, smithy_client_1.take)(data, {
686
+ applicationMode: smithy_client_1.expectString,
687
+ applicationPreferences: smithy_client_1._json,
688
+ databasePreferences: smithy_client_1._json,
689
+ prioritizeBusinessGoals: smithy_client_1._json,
690
+ });
691
+ Object.assign(contents, doc);
737
692
  return contents;
738
693
  };
739
694
  exports.de_GetPortfolioPreferencesCommand = de_GetPortfolioPreferencesCommand;
@@ -758,10 +713,9 @@ const de_GetPortfolioPreferencesCommandError = async (output, context) => {
758
713
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
759
714
  default:
760
715
  const parsedBody = parsedOutput.body;
761
- (0, smithy_client_1.throwDefaultError)({
716
+ return throwDefaultError({
762
717
  output,
763
718
  parsedBody,
764
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
765
719
  errorCode,
766
720
  });
767
721
  }
@@ -770,13 +724,14 @@ const de_GetPortfolioSummaryCommand = async (output, context) => {
770
724
  if (output.statusCode !== 200 && output.statusCode >= 300) {
771
725
  return de_GetPortfolioSummaryCommandError(output, context);
772
726
  }
773
- const contents = map({
727
+ const contents = (0, smithy_client_1.map)({
774
728
  $metadata: deserializeMetadata(output),
775
729
  });
776
730
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
777
- if (data.assessmentSummary != null) {
778
- contents.assessmentSummary = de_AssessmentSummary(data.assessmentSummary, context);
779
- }
731
+ const doc = (0, smithy_client_1.take)(data, {
732
+ assessmentSummary: (_) => de_AssessmentSummary(_, context),
733
+ });
734
+ Object.assign(contents, doc);
780
735
  return contents;
781
736
  };
782
737
  exports.de_GetPortfolioSummaryCommand = de_GetPortfolioSummaryCommand;
@@ -798,10 +753,9 @@ const de_GetPortfolioSummaryCommandError = async (output, context) => {
798
753
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
799
754
  default:
800
755
  const parsedBody = parsedOutput.body;
801
- (0, smithy_client_1.throwDefaultError)({
756
+ return throwDefaultError({
802
757
  output,
803
758
  parsedBody,
804
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
805
759
  errorCode,
806
760
  });
807
761
  }
@@ -810,16 +764,15 @@ const de_GetRecommendationReportDetailsCommand = async (output, context) => {
810
764
  if (output.statusCode !== 200 && output.statusCode >= 300) {
811
765
  return de_GetRecommendationReportDetailsCommandError(output, context);
812
766
  }
813
- const contents = map({
767
+ const contents = (0, smithy_client_1.map)({
814
768
  $metadata: deserializeMetadata(output),
815
769
  });
816
770
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
817
- if (data.id != null) {
818
- contents.id = (0, smithy_client_1.expectString)(data.id);
819
- }
820
- if (data.recommendationReportDetails != null) {
821
- contents.recommendationReportDetails = de_RecommendationReportDetails(data.recommendationReportDetails, context);
822
- }
771
+ const doc = (0, smithy_client_1.take)(data, {
772
+ id: smithy_client_1.expectString,
773
+ recommendationReportDetails: (_) => de_RecommendationReportDetails(_, context),
774
+ });
775
+ Object.assign(contents, doc);
823
776
  return contents;
824
777
  };
825
778
  exports.de_GetRecommendationReportDetailsCommand = de_GetRecommendationReportDetailsCommand;
@@ -847,10 +800,9 @@ const de_GetRecommendationReportDetailsCommandError = async (output, context) =>
847
800
  throw await de_ValidationExceptionRes(parsedOutput, context);
848
801
  default:
849
802
  const parsedBody = parsedOutput.body;
850
- (0, smithy_client_1.throwDefaultError)({
803
+ return throwDefaultError({
851
804
  output,
852
805
  parsedBody,
853
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
854
806
  errorCode,
855
807
  });
856
808
  }
@@ -859,19 +811,16 @@ const de_GetServerDetailsCommand = async (output, context) => {
859
811
  if (output.statusCode !== 200 && output.statusCode >= 300) {
860
812
  return de_GetServerDetailsCommandError(output, context);
861
813
  }
862
- const contents = map({
814
+ const contents = (0, smithy_client_1.map)({
863
815
  $metadata: deserializeMetadata(output),
864
816
  });
865
817
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
866
- if (data.associatedApplications != null) {
867
- contents.associatedApplications = de_AssociatedApplications(data.associatedApplications, context);
868
- }
869
- if (data.nextToken != null) {
870
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
871
- }
872
- if (data.serverDetail != null) {
873
- contents.serverDetail = de_ServerDetail(data.serverDetail, context);
874
- }
818
+ const doc = (0, smithy_client_1.take)(data, {
819
+ associatedApplications: smithy_client_1._json,
820
+ nextToken: smithy_client_1.expectString,
821
+ serverDetail: (_) => de_ServerDetail(_, context),
822
+ });
823
+ Object.assign(contents, doc);
875
824
  return contents;
876
825
  };
877
826
  exports.de_GetServerDetailsCommand = de_GetServerDetailsCommand;
@@ -899,10 +848,9 @@ const de_GetServerDetailsCommandError = async (output, context) => {
899
848
  throw await de_ValidationExceptionRes(parsedOutput, context);
900
849
  default:
901
850
  const parsedBody = parsedOutput.body;
902
- (0, smithy_client_1.throwDefaultError)({
851
+ return throwDefaultError({
903
852
  output,
904
853
  parsedBody,
905
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
906
854
  errorCode,
907
855
  });
908
856
  }
@@ -911,13 +859,14 @@ const de_GetServerStrategiesCommand = async (output, context) => {
911
859
  if (output.statusCode !== 200 && output.statusCode >= 300) {
912
860
  return de_GetServerStrategiesCommandError(output, context);
913
861
  }
914
- const contents = map({
862
+ const contents = (0, smithy_client_1.map)({
915
863
  $metadata: deserializeMetadata(output),
916
864
  });
917
865
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
918
- if (data.serverStrategies != null) {
919
- contents.serverStrategies = de_ServerStrategies(data.serverStrategies, context);
920
- }
866
+ const doc = (0, smithy_client_1.take)(data, {
867
+ serverStrategies: smithy_client_1._json,
868
+ });
869
+ Object.assign(contents, doc);
921
870
  return contents;
922
871
  };
923
872
  exports.de_GetServerStrategiesCommand = de_GetServerStrategiesCommand;
@@ -945,10 +894,9 @@ const de_GetServerStrategiesCommandError = async (output, context) => {
945
894
  throw await de_ValidationExceptionRes(parsedOutput, context);
946
895
  default:
947
896
  const parsedBody = parsedOutput.body;
948
- (0, smithy_client_1.throwDefaultError)({
897
+ return throwDefaultError({
949
898
  output,
950
899
  parsedBody,
951
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
952
900
  errorCode,
953
901
  });
954
902
  }
@@ -957,16 +905,15 @@ const de_ListApplicationComponentsCommand = async (output, context) => {
957
905
  if (output.statusCode !== 200 && output.statusCode >= 300) {
958
906
  return de_ListApplicationComponentsCommandError(output, context);
959
907
  }
960
- const contents = map({
908
+ const contents = (0, smithy_client_1.map)({
961
909
  $metadata: deserializeMetadata(output),
962
910
  });
963
911
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
964
- if (data.applicationComponentInfos != null) {
965
- contents.applicationComponentInfos = de_ApplicationComponentDetails(data.applicationComponentInfos, context);
966
- }
967
- if (data.nextToken != null) {
968
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
969
- }
912
+ const doc = (0, smithy_client_1.take)(data, {
913
+ applicationComponentInfos: (_) => de_ApplicationComponentDetails(_, context),
914
+ nextToken: smithy_client_1.expectString,
915
+ });
916
+ Object.assign(contents, doc);
970
917
  return contents;
971
918
  };
972
919
  exports.de_ListApplicationComponentsCommand = de_ListApplicationComponentsCommand;
@@ -991,10 +938,9 @@ const de_ListApplicationComponentsCommandError = async (output, context) => {
991
938
  throw await de_ValidationExceptionRes(parsedOutput, context);
992
939
  default:
993
940
  const parsedBody = parsedOutput.body;
994
- (0, smithy_client_1.throwDefaultError)({
941
+ return throwDefaultError({
995
942
  output,
996
943
  parsedBody,
997
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
998
944
  errorCode,
999
945
  });
1000
946
  }
@@ -1003,16 +949,15 @@ const de_ListCollectorsCommand = async (output, context) => {
1003
949
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1004
950
  return de_ListCollectorsCommandError(output, context);
1005
951
  }
1006
- const contents = map({
952
+ const contents = (0, smithy_client_1.map)({
1007
953
  $metadata: deserializeMetadata(output),
1008
954
  });
1009
955
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1010
- if (data.Collectors != null) {
1011
- contents.Collectors = de_Collectors(data.Collectors, context);
1012
- }
1013
- if (data.nextToken != null) {
1014
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1015
- }
956
+ const doc = (0, smithy_client_1.take)(data, {
957
+ Collectors: smithy_client_1._json,
958
+ nextToken: smithy_client_1.expectString,
959
+ });
960
+ Object.assign(contents, doc);
1016
961
  return contents;
1017
962
  };
1018
963
  exports.de_ListCollectorsCommand = de_ListCollectorsCommand;
@@ -1037,10 +982,9 @@ const de_ListCollectorsCommandError = async (output, context) => {
1037
982
  throw await de_ValidationExceptionRes(parsedOutput, context);
1038
983
  default:
1039
984
  const parsedBody = parsedOutput.body;
1040
- (0, smithy_client_1.throwDefaultError)({
985
+ return throwDefaultError({
1041
986
  output,
1042
987
  parsedBody,
1043
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
1044
988
  errorCode,
1045
989
  });
1046
990
  }
@@ -1049,16 +993,15 @@ const de_ListImportFileTaskCommand = async (output, context) => {
1049
993
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1050
994
  return de_ListImportFileTaskCommandError(output, context);
1051
995
  }
1052
- const contents = map({
996
+ const contents = (0, smithy_client_1.map)({
1053
997
  $metadata: deserializeMetadata(output),
1054
998
  });
1055
999
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1056
- if (data.nextToken != null) {
1057
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1058
- }
1059
- if (data.taskInfos != null) {
1060
- contents.taskInfos = de_ListImportFileTaskInformation(data.taskInfos, context);
1061
- }
1000
+ const doc = (0, smithy_client_1.take)(data, {
1001
+ nextToken: smithy_client_1.expectString,
1002
+ taskInfos: (_) => de_ListImportFileTaskInformation(_, context),
1003
+ });
1004
+ Object.assign(contents, doc);
1062
1005
  return contents;
1063
1006
  };
1064
1007
  exports.de_ListImportFileTaskCommand = de_ListImportFileTaskCommand;
@@ -1083,10 +1026,9 @@ const de_ListImportFileTaskCommandError = async (output, context) => {
1083
1026
  throw await de_ValidationExceptionRes(parsedOutput, context);
1084
1027
  default:
1085
1028
  const parsedBody = parsedOutput.body;
1086
- (0, smithy_client_1.throwDefaultError)({
1029
+ return throwDefaultError({
1087
1030
  output,
1088
1031
  parsedBody,
1089
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
1090
1032
  errorCode,
1091
1033
  });
1092
1034
  }
@@ -1095,16 +1037,15 @@ const de_ListServersCommand = async (output, context) => {
1095
1037
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1096
1038
  return de_ListServersCommandError(output, context);
1097
1039
  }
1098
- const contents = map({
1040
+ const contents = (0, smithy_client_1.map)({
1099
1041
  $metadata: deserializeMetadata(output),
1100
1042
  });
1101
1043
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1102
- if (data.nextToken != null) {
1103
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1104
- }
1105
- if (data.serverInfos != null) {
1106
- contents.serverInfos = de_ServerDetails(data.serverInfos, context);
1107
- }
1044
+ const doc = (0, smithy_client_1.take)(data, {
1045
+ nextToken: smithy_client_1.expectString,
1046
+ serverInfos: (_) => de_ServerDetails(_, context),
1047
+ });
1048
+ Object.assign(contents, doc);
1108
1049
  return contents;
1109
1050
  };
1110
1051
  exports.de_ListServersCommand = de_ListServersCommand;
@@ -1129,10 +1070,9 @@ const de_ListServersCommandError = async (output, context) => {
1129
1070
  throw await de_ValidationExceptionRes(parsedOutput, context);
1130
1071
  default:
1131
1072
  const parsedBody = parsedOutput.body;
1132
- (0, smithy_client_1.throwDefaultError)({
1073
+ return throwDefaultError({
1133
1074
  output,
1134
1075
  parsedBody,
1135
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
1136
1076
  errorCode,
1137
1077
  });
1138
1078
  }
@@ -1141,7 +1081,7 @@ const de_PutPortfolioPreferencesCommand = async (output, context) => {
1141
1081
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1142
1082
  return de_PutPortfolioPreferencesCommandError(output, context);
1143
1083
  }
1144
- const contents = map({
1084
+ const contents = (0, smithy_client_1.map)({
1145
1085
  $metadata: deserializeMetadata(output),
1146
1086
  });
1147
1087
  await collectBody(output.body, context);
@@ -1172,10 +1112,9 @@ const de_PutPortfolioPreferencesCommandError = async (output, context) => {
1172
1112
  throw await de_ValidationExceptionRes(parsedOutput, context);
1173
1113
  default:
1174
1114
  const parsedBody = parsedOutput.body;
1175
- (0, smithy_client_1.throwDefaultError)({
1115
+ return throwDefaultError({
1176
1116
  output,
1177
1117
  parsedBody,
1178
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
1179
1118
  errorCode,
1180
1119
  });
1181
1120
  }
@@ -1184,13 +1123,14 @@ const de_StartAssessmentCommand = async (output, context) => {
1184
1123
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1185
1124
  return de_StartAssessmentCommandError(output, context);
1186
1125
  }
1187
- const contents = map({
1126
+ const contents = (0, smithy_client_1.map)({
1188
1127
  $metadata: deserializeMetadata(output),
1189
1128
  });
1190
1129
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1191
- if (data.assessmentId != null) {
1192
- contents.assessmentId = (0, smithy_client_1.expectString)(data.assessmentId);
1193
- }
1130
+ const doc = (0, smithy_client_1.take)(data, {
1131
+ assessmentId: smithy_client_1.expectString,
1132
+ });
1133
+ Object.assign(contents, doc);
1194
1134
  return contents;
1195
1135
  };
1196
1136
  exports.de_StartAssessmentCommand = de_StartAssessmentCommand;
@@ -1215,10 +1155,9 @@ const de_StartAssessmentCommandError = async (output, context) => {
1215
1155
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1216
1156
  default:
1217
1157
  const parsedBody = parsedOutput.body;
1218
- (0, smithy_client_1.throwDefaultError)({
1158
+ return throwDefaultError({
1219
1159
  output,
1220
1160
  parsedBody,
1221
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
1222
1161
  errorCode,
1223
1162
  });
1224
1163
  }
@@ -1227,13 +1166,14 @@ const de_StartImportFileTaskCommand = async (output, context) => {
1227
1166
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1228
1167
  return de_StartImportFileTaskCommandError(output, context);
1229
1168
  }
1230
- const contents = map({
1169
+ const contents = (0, smithy_client_1.map)({
1231
1170
  $metadata: deserializeMetadata(output),
1232
1171
  });
1233
1172
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1234
- if (data.id != null) {
1235
- contents.id = (0, smithy_client_1.expectString)(data.id);
1236
- }
1173
+ const doc = (0, smithy_client_1.take)(data, {
1174
+ id: smithy_client_1.expectString,
1175
+ });
1176
+ Object.assign(contents, doc);
1237
1177
  return contents;
1238
1178
  };
1239
1179
  exports.de_StartImportFileTaskCommand = de_StartImportFileTaskCommand;
@@ -1261,10 +1201,9 @@ const de_StartImportFileTaskCommandError = async (output, context) => {
1261
1201
  throw await de_ValidationExceptionRes(parsedOutput, context);
1262
1202
  default:
1263
1203
  const parsedBody = parsedOutput.body;
1264
- (0, smithy_client_1.throwDefaultError)({
1204
+ return throwDefaultError({
1265
1205
  output,
1266
1206
  parsedBody,
1267
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
1268
1207
  errorCode,
1269
1208
  });
1270
1209
  }
@@ -1273,13 +1212,14 @@ const de_StartRecommendationReportGenerationCommand = async (output, context) =>
1273
1212
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1274
1213
  return de_StartRecommendationReportGenerationCommandError(output, context);
1275
1214
  }
1276
- const contents = map({
1215
+ const contents = (0, smithy_client_1.map)({
1277
1216
  $metadata: deserializeMetadata(output),
1278
1217
  });
1279
1218
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1280
- if (data.id != null) {
1281
- contents.id = (0, smithy_client_1.expectString)(data.id);
1282
- }
1219
+ const doc = (0, smithy_client_1.take)(data, {
1220
+ id: smithy_client_1.expectString,
1221
+ });
1222
+ Object.assign(contents, doc);
1283
1223
  return contents;
1284
1224
  };
1285
1225
  exports.de_StartRecommendationReportGenerationCommand = de_StartRecommendationReportGenerationCommand;
@@ -1307,10 +1247,9 @@ const de_StartRecommendationReportGenerationCommandError = async (output, contex
1307
1247
  throw await de_ValidationExceptionRes(parsedOutput, context);
1308
1248
  default:
1309
1249
  const parsedBody = parsedOutput.body;
1310
- (0, smithy_client_1.throwDefaultError)({
1250
+ return throwDefaultError({
1311
1251
  output,
1312
1252
  parsedBody,
1313
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
1314
1253
  errorCode,
1315
1254
  });
1316
1255
  }
@@ -1319,7 +1258,7 @@ const de_StopAssessmentCommand = async (output, context) => {
1319
1258
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1320
1259
  return de_StopAssessmentCommandError(output, context);
1321
1260
  }
1322
- const contents = map({
1261
+ const contents = (0, smithy_client_1.map)({
1323
1262
  $metadata: deserializeMetadata(output),
1324
1263
  });
1325
1264
  await collectBody(output.body, context);
@@ -1347,10 +1286,9 @@ const de_StopAssessmentCommandError = async (output, context) => {
1347
1286
  throw await de_ValidationExceptionRes(parsedOutput, context);
1348
1287
  default:
1349
1288
  const parsedBody = parsedOutput.body;
1350
- (0, smithy_client_1.throwDefaultError)({
1289
+ return throwDefaultError({
1351
1290
  output,
1352
1291
  parsedBody,
1353
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
1354
1292
  errorCode,
1355
1293
  });
1356
1294
  }
@@ -1359,7 +1297,7 @@ const de_UpdateApplicationComponentConfigCommand = async (output, context) => {
1359
1297
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1360
1298
  return de_UpdateApplicationComponentConfigCommandError(output, context);
1361
1299
  }
1362
- const contents = map({
1300
+ const contents = (0, smithy_client_1.map)({
1363
1301
  $metadata: deserializeMetadata(output),
1364
1302
  });
1365
1303
  await collectBody(output.body, context);
@@ -1387,10 +1325,9 @@ const de_UpdateApplicationComponentConfigCommandError = async (output, context)
1387
1325
  throw await de_ValidationExceptionRes(parsedOutput, context);
1388
1326
  default:
1389
1327
  const parsedBody = parsedOutput.body;
1390
- (0, smithy_client_1.throwDefaultError)({
1328
+ return throwDefaultError({
1391
1329
  output,
1392
1330
  parsedBody,
1393
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
1394
1331
  errorCode,
1395
1332
  });
1396
1333
  }
@@ -1399,7 +1336,7 @@ const de_UpdateServerConfigCommand = async (output, context) => {
1399
1336
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1400
1337
  return de_UpdateServerConfigCommandError(output, context);
1401
1338
  }
1402
- const contents = map({
1339
+ const contents = (0, smithy_client_1.map)({
1403
1340
  $metadata: deserializeMetadata(output),
1404
1341
  });
1405
1342
  await collectBody(output.body, context);
@@ -1427,21 +1364,21 @@ const de_UpdateServerConfigCommandError = async (output, context) => {
1427
1364
  throw await de_ValidationExceptionRes(parsedOutput, context);
1428
1365
  default:
1429
1366
  const parsedBody = parsedOutput.body;
1430
- (0, smithy_client_1.throwDefaultError)({
1367
+ return throwDefaultError({
1431
1368
  output,
1432
1369
  parsedBody,
1433
- exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
1434
1370
  errorCode,
1435
1371
  });
1436
1372
  }
1437
1373
  };
1438
- const map = smithy_client_1.map;
1374
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException);
1439
1375
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1440
- const contents = map({});
1376
+ const contents = (0, smithy_client_1.map)({});
1441
1377
  const data = parsedOutput.body;
1442
- if (data.message != null) {
1443
- contents.message = (0, smithy_client_1.expectString)(data.message);
1444
- }
1378
+ const doc = (0, smithy_client_1.take)(data, {
1379
+ message: smithy_client_1.expectString,
1380
+ });
1381
+ Object.assign(contents, doc);
1445
1382
  const exception = new models_0_1.AccessDeniedException({
1446
1383
  $metadata: deserializeMetadata(parsedOutput),
1447
1384
  ...contents,
@@ -1449,11 +1386,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1449
1386
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1450
1387
  };
1451
1388
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1452
- const contents = map({});
1389
+ const contents = (0, smithy_client_1.map)({});
1453
1390
  const data = parsedOutput.body;
1454
- if (data.message != null) {
1455
- contents.message = (0, smithy_client_1.expectString)(data.message);
1456
- }
1391
+ const doc = (0, smithy_client_1.take)(data, {
1392
+ message: smithy_client_1.expectString,
1393
+ });
1394
+ Object.assign(contents, doc);
1457
1395
  const exception = new models_0_1.ConflictException({
1458
1396
  $metadata: deserializeMetadata(parsedOutput),
1459
1397
  ...contents,
@@ -1461,11 +1399,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1461
1399
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1462
1400
  };
1463
1401
  const de_DependencyExceptionRes = async (parsedOutput, context) => {
1464
- const contents = map({});
1402
+ const contents = (0, smithy_client_1.map)({});
1465
1403
  const data = parsedOutput.body;
1466
- if (data.message != null) {
1467
- contents.message = (0, smithy_client_1.expectString)(data.message);
1468
- }
1404
+ const doc = (0, smithy_client_1.take)(data, {
1405
+ message: smithy_client_1.expectString,
1406
+ });
1407
+ Object.assign(contents, doc);
1469
1408
  const exception = new models_0_1.DependencyException({
1470
1409
  $metadata: deserializeMetadata(parsedOutput),
1471
1410
  ...contents,
@@ -1473,11 +1412,12 @@ const de_DependencyExceptionRes = async (parsedOutput, context) => {
1473
1412
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1474
1413
  };
1475
1414
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1476
- const contents = map({});
1415
+ const contents = (0, smithy_client_1.map)({});
1477
1416
  const data = parsedOutput.body;
1478
- if (data.message != null) {
1479
- contents.message = (0, smithy_client_1.expectString)(data.message);
1480
- }
1417
+ const doc = (0, smithy_client_1.take)(data, {
1418
+ message: smithy_client_1.expectString,
1419
+ });
1420
+ Object.assign(contents, doc);
1481
1421
  const exception = new models_0_1.InternalServerException({
1482
1422
  $metadata: deserializeMetadata(parsedOutput),
1483
1423
  ...contents,
@@ -1485,11 +1425,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1485
1425
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1486
1426
  };
1487
1427
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1488
- const contents = map({});
1428
+ const contents = (0, smithy_client_1.map)({});
1489
1429
  const data = parsedOutput.body;
1490
- if (data.message != null) {
1491
- contents.message = (0, smithy_client_1.expectString)(data.message);
1492
- }
1430
+ const doc = (0, smithy_client_1.take)(data, {
1431
+ message: smithy_client_1.expectString,
1432
+ });
1433
+ Object.assign(contents, doc);
1493
1434
  const exception = new models_0_1.ResourceNotFoundException({
1494
1435
  $metadata: deserializeMetadata(parsedOutput),
1495
1436
  ...contents,
@@ -1497,11 +1438,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1497
1438
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1498
1439
  };
1499
1440
  const de_ServiceLinkedRoleLockClientExceptionRes = async (parsedOutput, context) => {
1500
- const contents = map({});
1441
+ const contents = (0, smithy_client_1.map)({});
1501
1442
  const data = parsedOutput.body;
1502
- if (data.message != null) {
1503
- contents.message = (0, smithy_client_1.expectString)(data.message);
1504
- }
1443
+ const doc = (0, smithy_client_1.take)(data, {
1444
+ message: smithy_client_1.expectString,
1445
+ });
1446
+ Object.assign(contents, doc);
1505
1447
  const exception = new models_0_1.ServiceLinkedRoleLockClientException({
1506
1448
  $metadata: deserializeMetadata(parsedOutput),
1507
1449
  ...contents,
@@ -1509,11 +1451,12 @@ const de_ServiceLinkedRoleLockClientExceptionRes = async (parsedOutput, context)
1509
1451
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1510
1452
  };
1511
1453
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1512
- const contents = map({});
1454
+ const contents = (0, smithy_client_1.map)({});
1513
1455
  const data = parsedOutput.body;
1514
- if (data.message != null) {
1515
- contents.message = (0, smithy_client_1.expectString)(data.message);
1516
- }
1456
+ const doc = (0, smithy_client_1.take)(data, {
1457
+ message: smithy_client_1.expectString,
1458
+ });
1459
+ Object.assign(contents, doc);
1517
1460
  const exception = new models_0_1.ServiceQuotaExceededException({
1518
1461
  $metadata: deserializeMetadata(parsedOutput),
1519
1462
  ...contents,
@@ -1521,11 +1464,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1521
1464
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1522
1465
  };
1523
1466
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1524
- const contents = map({});
1467
+ const contents = (0, smithy_client_1.map)({});
1525
1468
  const data = parsedOutput.body;
1526
- if (data.message != null) {
1527
- contents.message = (0, smithy_client_1.expectString)(data.message);
1528
- }
1469
+ const doc = (0, smithy_client_1.take)(data, {
1470
+ message: smithy_client_1.expectString,
1471
+ });
1472
+ Object.assign(contents, doc);
1529
1473
  const exception = new models_0_1.ThrottlingException({
1530
1474
  $metadata: deserializeMetadata(parsedOutput),
1531
1475
  ...contents,
@@ -1533,1005 +1477,139 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1533
1477
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1534
1478
  };
1535
1479
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1536
- const contents = map({});
1480
+ const contents = (0, smithy_client_1.map)({});
1537
1481
  const data = parsedOutput.body;
1538
- if (data.message != null) {
1539
- contents.message = (0, smithy_client_1.expectString)(data.message);
1540
- }
1482
+ const doc = (0, smithy_client_1.take)(data, {
1483
+ message: smithy_client_1.expectString,
1484
+ });
1485
+ Object.assign(contents, doc);
1541
1486
  const exception = new models_0_1.ValidationException({
1542
1487
  $metadata: deserializeMetadata(parsedOutput),
1543
1488
  ...contents,
1544
1489
  });
1545
1490
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1546
1491
  };
1547
- const se_ApplicationPreferences = (input, context) => {
1548
- return {
1549
- ...(input.managementPreference != null && {
1550
- managementPreference: se_ManagementPreference(input.managementPreference, context),
1551
- }),
1552
- };
1553
- };
1554
- const se_AssessmentTarget = (input, context) => {
1555
- return {
1556
- ...(input.condition != null && { condition: input.condition }),
1557
- ...(input.name != null && { name: input.name }),
1558
- ...(input.values != null && { values: se_AssessmentTargetValues(input.values, context) }),
1559
- };
1560
- };
1561
- const se_AssessmentTargets = (input, context) => {
1562
- return input
1563
- .filter((e) => e != null)
1564
- .map((entry) => {
1565
- return se_AssessmentTarget(entry, context);
1566
- });
1567
- };
1568
- const se_AssessmentTargetValues = (input, context) => {
1569
- return input
1570
- .filter((e) => e != null)
1571
- .map((entry) => {
1572
- return entry;
1573
- });
1574
- };
1575
- const se_AwsManagedResources = (input, context) => {
1576
- return {
1577
- ...(input.targetDestination != null && {
1578
- targetDestination: se_AwsManagedTargetDestinations(input.targetDestination, context),
1579
- }),
1580
- };
1581
- };
1582
- const se_AwsManagedTargetDestinations = (input, context) => {
1583
- return input
1584
- .filter((e) => e != null)
1585
- .map((entry) => {
1586
- return entry;
1587
- });
1588
- };
1589
- const se_BusinessGoals = (input, context) => {
1590
- return {
1591
- ...(input.licenseCostReduction != null && { licenseCostReduction: input.licenseCostReduction }),
1592
- ...(input.modernizeInfrastructureWithCloudNativeTechnologies != null && {
1593
- modernizeInfrastructureWithCloudNativeTechnologies: input.modernizeInfrastructureWithCloudNativeTechnologies,
1594
- }),
1595
- ...(input.reduceOperationalOverheadWithManagedServices != null && {
1596
- reduceOperationalOverheadWithManagedServices: input.reduceOperationalOverheadWithManagedServices,
1597
- }),
1598
- ...(input.speedOfMigration != null && { speedOfMigration: input.speedOfMigration }),
1599
- };
1600
- };
1601
- const se_DatabaseMigrationPreference = (input, context) => {
1602
- return models_0_1.DatabaseMigrationPreference.visit(input, {
1603
- heterogeneous: (value) => ({ heterogeneous: se_Heterogeneous(value, context) }),
1604
- homogeneous: (value) => ({ homogeneous: se_Homogeneous(value, context) }),
1605
- noPreference: (value) => ({ noPreference: se_NoDatabaseMigrationPreference(value, context) }),
1606
- _: (name, value) => ({ name: value }),
1607
- });
1608
- };
1609
- const se_DatabasePreferences = (input, context) => {
1610
- return {
1611
- ...(input.databaseManagementPreference != null && {
1612
- databaseManagementPreference: input.databaseManagementPreference,
1613
- }),
1614
- ...(input.databaseMigrationPreference != null && {
1615
- databaseMigrationPreference: se_DatabaseMigrationPreference(input.databaseMigrationPreference, context),
1616
- }),
1617
- };
1618
- };
1619
- const se_Group = (input, context) => {
1620
- return {
1621
- ...(input.name != null && { name: input.name }),
1622
- ...(input.value != null && { value: input.value }),
1623
- };
1624
- };
1625
- const se_GroupIds = (input, context) => {
1626
- return input
1627
- .filter((e) => e != null)
1628
- .map((entry) => {
1629
- return se_Group(entry, context);
1630
- });
1631
- };
1632
- const se_Heterogeneous = (input, context) => {
1633
- return {
1634
- ...(input.targetDatabaseEngine != null && {
1635
- targetDatabaseEngine: se_HeterogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
1636
- }),
1637
- };
1638
- };
1639
- const se_HeterogeneousTargetDatabaseEngines = (input, context) => {
1640
- return input
1641
- .filter((e) => e != null)
1642
- .map((entry) => {
1643
- return entry;
1644
- });
1645
- };
1646
- const se_Homogeneous = (input, context) => {
1647
- return {
1648
- ...(input.targetDatabaseEngine != null && {
1649
- targetDatabaseEngine: se_HomogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
1650
- }),
1651
- };
1652
- };
1653
- const se_HomogeneousTargetDatabaseEngines = (input, context) => {
1654
- return input
1655
- .filter((e) => e != null)
1656
- .map((entry) => {
1657
- return entry;
1658
- });
1659
- };
1660
- const se_ManagementPreference = (input, context) => {
1661
- return models_0_1.ManagementPreference.visit(input, {
1662
- awsManagedResources: (value) => ({ awsManagedResources: se_AwsManagedResources(value, context) }),
1663
- noPreference: (value) => ({ noPreference: se_NoManagementPreference(value, context) }),
1664
- selfManageResources: (value) => ({ selfManageResources: se_SelfManageResources(value, context) }),
1665
- _: (name, value) => ({ name: value }),
1666
- });
1667
- };
1668
- const se_NoDatabaseMigrationPreference = (input, context) => {
1669
- return {
1670
- ...(input.targetDatabaseEngine != null && {
1671
- targetDatabaseEngine: se_TargetDatabaseEngines(input.targetDatabaseEngine, context),
1672
- }),
1673
- };
1674
- };
1675
- const se_NoManagementPreference = (input, context) => {
1676
- return {
1677
- ...(input.targetDestination != null && {
1678
- targetDestination: se_NoPreferenceTargetDestinations(input.targetDestination, context),
1679
- }),
1680
- };
1681
- };
1682
- const se_NoPreferenceTargetDestinations = (input, context) => {
1683
- return input
1684
- .filter((e) => e != null)
1685
- .map((entry) => {
1686
- return entry;
1687
- });
1688
- };
1689
- const se_PrioritizeBusinessGoals = (input, context) => {
1690
- return {
1691
- ...(input.businessGoals != null && { businessGoals: se_BusinessGoals(input.businessGoals, context) }),
1692
- };
1693
- };
1694
- const se_SelfManageResources = (input, context) => {
1695
- return {
1696
- ...(input.targetDestination != null && {
1697
- targetDestination: se_SelfManageTargetDestinations(input.targetDestination, context),
1698
- }),
1699
- };
1700
- };
1701
- const se_SelfManageTargetDestinations = (input, context) => {
1702
- return input
1703
- .filter((e) => e != null)
1704
- .map((entry) => {
1705
- return entry;
1706
- });
1707
- };
1708
- const se_SourceCode = (input, context) => {
1709
- return {
1710
- ...(input.location != null && { location: input.location }),
1711
- ...(input.projectName != null && { projectName: input.projectName }),
1712
- ...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
1713
- ...(input.versionControl != null && { versionControl: input.versionControl }),
1714
- };
1715
- };
1716
- const se_SourceCodeList = (input, context) => {
1717
- return input
1718
- .filter((e) => e != null)
1719
- .map((entry) => {
1720
- return se_SourceCode(entry, context);
1721
- });
1722
- };
1723
- const se_StrategyOption = (input, context) => {
1724
- return {
1725
- ...(input.isPreferred != null && { isPreferred: input.isPreferred }),
1726
- ...(input.strategy != null && { strategy: input.strategy }),
1727
- ...(input.targetDestination != null && { targetDestination: input.targetDestination }),
1728
- ...(input.toolName != null && { toolName: input.toolName }),
1729
- };
1730
- };
1731
- const se_TargetDatabaseEngines = (input, context) => {
1732
- return input
1733
- .filter((e) => e != null)
1734
- .map((entry) => {
1735
- return entry;
1736
- });
1737
- };
1738
- const de_AnalysisStatusUnion = (output, context) => {
1739
- if ((0, smithy_client_1.expectString)(output.runtimeAnalysisStatus) !== undefined) {
1740
- return { runtimeAnalysisStatus: (0, smithy_client_1.expectString)(output.runtimeAnalysisStatus) };
1741
- }
1742
- if ((0, smithy_client_1.expectString)(output.srcCodeOrDbAnalysisStatus) !== undefined) {
1743
- return { srcCodeOrDbAnalysisStatus: (0, smithy_client_1.expectString)(output.srcCodeOrDbAnalysisStatus) };
1744
- }
1745
- return { $unknown: Object.entries(output)[0] };
1746
- };
1747
- const de_AnalyzerNameUnion = (output, context) => {
1748
- if ((0, smithy_client_1.expectString)(output.binaryAnalyzerName) !== undefined) {
1749
- return { binaryAnalyzerName: (0, smithy_client_1.expectString)(output.binaryAnalyzerName) };
1750
- }
1751
- if ((0, smithy_client_1.expectString)(output.runTimeAnalyzerName) !== undefined) {
1752
- return { runTimeAnalyzerName: (0, smithy_client_1.expectString)(output.runTimeAnalyzerName) };
1753
- }
1754
- if ((0, smithy_client_1.expectString)(output.sourceCodeAnalyzerName) !== undefined) {
1755
- return { sourceCodeAnalyzerName: (0, smithy_client_1.expectString)(output.sourceCodeAnalyzerName) };
1756
- }
1757
- return { $unknown: Object.entries(output)[0] };
1758
- };
1759
- const de_AntipatternReportResult = (output, context) => {
1760
- return {
1761
- analyzerName: output.analyzerName != null ? de_AnalyzerNameUnion((0, smithy_client_1.expectUnion)(output.analyzerName), context) : undefined,
1762
- antiPatternReportS3Object: output.antiPatternReportS3Object != null ? de_S3Object(output.antiPatternReportS3Object, context) : undefined,
1763
- antipatternReportStatus: (0, smithy_client_1.expectString)(output.antipatternReportStatus),
1764
- antipatternReportStatusMessage: (0, smithy_client_1.expectString)(output.antipatternReportStatusMessage),
1765
- };
1766
- };
1767
- const de_AntipatternReportResultList = (output, context) => {
1768
- const retVal = (output || [])
1769
- .filter((e) => e != null)
1770
- .map((entry) => {
1771
- if (entry === null) {
1772
- return null;
1773
- }
1774
- return de_AntipatternReportResult(entry, context);
1775
- });
1776
- return retVal;
1777
- };
1778
- const de_AntipatternSeveritySummary = (output, context) => {
1779
- return {
1780
- count: (0, smithy_client_1.expectInt32)(output.count),
1781
- severity: (0, smithy_client_1.expectString)(output.severity),
1782
- };
1783
- };
1784
1492
  const de_ApplicationComponentDetail = (output, context) => {
1785
- return {
1786
- analysisStatus: (0, smithy_client_1.expectString)(output.analysisStatus),
1787
- antipatternReportS3Object: output.antipatternReportS3Object != null ? de_S3Object(output.antipatternReportS3Object, context) : undefined,
1788
- antipatternReportStatus: (0, smithy_client_1.expectString)(output.antipatternReportStatus),
1789
- antipatternReportStatusMessage: (0, smithy_client_1.expectString)(output.antipatternReportStatusMessage),
1790
- appType: (0, smithy_client_1.expectString)(output.appType),
1791
- appUnitError: output.appUnitError != null ? de_AppUnitError(output.appUnitError, context) : undefined,
1792
- associatedServerId: (0, smithy_client_1.expectString)(output.associatedServerId),
1793
- databaseConfigDetail: output.databaseConfigDetail != null ? de_DatabaseConfigDetail(output.databaseConfigDetail, context) : undefined,
1794
- id: (0, smithy_client_1.expectString)(output.id),
1795
- inclusionStatus: (0, smithy_client_1.expectString)(output.inclusionStatus),
1796
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
1797
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastAnalyzedTimestamp)))
1798
- : undefined,
1799
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
1800
- ? de_ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
1801
- : undefined,
1802
- moreServerAssociationExists: (0, smithy_client_1.expectBoolean)(output.moreServerAssociationExists),
1803
- name: (0, smithy_client_1.expectString)(output.name),
1804
- osDriver: (0, smithy_client_1.expectString)(output.osDriver),
1805
- osVersion: (0, smithy_client_1.expectString)(output.osVersion),
1806
- recommendationSet: output.recommendationSet != null ? de_RecommendationSet(output.recommendationSet, context) : undefined,
1807
- resourceSubType: (0, smithy_client_1.expectString)(output.resourceSubType),
1808
- resultList: output.resultList != null ? de_ResultList(output.resultList, context) : undefined,
1809
- runtimeStatus: (0, smithy_client_1.expectString)(output.runtimeStatus),
1810
- runtimeStatusMessage: (0, smithy_client_1.expectString)(output.runtimeStatusMessage),
1811
- sourceCodeRepositories: output.sourceCodeRepositories != null
1812
- ? de_SourceCodeRepositories(output.sourceCodeRepositories, context)
1813
- : undefined,
1814
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
1815
- };
1493
+ return (0, smithy_client_1.take)(output, {
1494
+ analysisStatus: smithy_client_1.expectString,
1495
+ antipatternReportS3Object: smithy_client_1._json,
1496
+ antipatternReportStatus: smithy_client_1.expectString,
1497
+ antipatternReportStatusMessage: smithy_client_1.expectString,
1498
+ appType: smithy_client_1.expectString,
1499
+ appUnitError: smithy_client_1._json,
1500
+ associatedServerId: smithy_client_1.expectString,
1501
+ databaseConfigDetail: smithy_client_1._json,
1502
+ id: smithy_client_1.expectString,
1503
+ inclusionStatus: smithy_client_1.expectString,
1504
+ lastAnalyzedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1505
+ listAntipatternSeveritySummary: smithy_client_1._json,
1506
+ moreServerAssociationExists: smithy_client_1.expectBoolean,
1507
+ name: smithy_client_1.expectString,
1508
+ osDriver: smithy_client_1.expectString,
1509
+ osVersion: smithy_client_1.expectString,
1510
+ recommendationSet: smithy_client_1._json,
1511
+ resourceSubType: smithy_client_1.expectString,
1512
+ resultList: smithy_client_1._json,
1513
+ runtimeStatus: smithy_client_1.expectString,
1514
+ runtimeStatusMessage: smithy_client_1.expectString,
1515
+ sourceCodeRepositories: smithy_client_1._json,
1516
+ statusMessage: smithy_client_1.expectString,
1517
+ });
1816
1518
  };
1817
1519
  const de_ApplicationComponentDetails = (output, context) => {
1818
1520
  const retVal = (output || [])
1819
1521
  .filter((e) => e != null)
1820
1522
  .map((entry) => {
1821
- if (entry === null) {
1822
- return null;
1823
- }
1824
1523
  return de_ApplicationComponentDetail(entry, context);
1825
1524
  });
1826
1525
  return retVal;
1827
1526
  };
1828
- const de_ApplicationComponentStatusSummary = (output, context) => {
1829
- return {
1830
- count: (0, smithy_client_1.expectInt32)(output.count),
1831
- srcCodeOrDbAnalysisStatus: (0, smithy_client_1.expectString)(output.srcCodeOrDbAnalysisStatus),
1832
- };
1833
- };
1834
- const de_ApplicationComponentStrategies = (output, context) => {
1835
- const retVal = (output || [])
1836
- .filter((e) => e != null)
1837
- .map((entry) => {
1838
- if (entry === null) {
1839
- return null;
1840
- }
1841
- return de_ApplicationComponentStrategy(entry, context);
1842
- });
1843
- return retVal;
1844
- };
1845
- const de_ApplicationComponentStrategy = (output, context) => {
1846
- return {
1847
- isPreferred: (0, smithy_client_1.expectBoolean)(output.isPreferred),
1848
- recommendation: output.recommendation != null ? de_RecommendationSet(output.recommendation, context) : undefined,
1849
- status: (0, smithy_client_1.expectString)(output.status),
1850
- };
1851
- };
1852
- const de_ApplicationComponentSummary = (output, context) => {
1853
- return {
1854
- appType: (0, smithy_client_1.expectString)(output.appType),
1855
- count: (0, smithy_client_1.expectInt32)(output.count),
1856
- };
1857
- };
1858
- const de_ApplicationPreferences = (output, context) => {
1859
- return {
1860
- managementPreference: output.managementPreference != null
1861
- ? de_ManagementPreference((0, smithy_client_1.expectUnion)(output.managementPreference), context)
1862
- : undefined,
1863
- };
1864
- };
1865
- const de_AppUnitError = (output, context) => {
1866
- return {
1867
- appUnitErrorCategory: (0, smithy_client_1.expectString)(output.appUnitErrorCategory),
1868
- };
1869
- };
1870
1527
  const de_AssessmentSummary = (output, context) => {
1871
- return {
1872
- antipatternReportS3Object: output.antipatternReportS3Object != null ? de_S3Object(output.antipatternReportS3Object, context) : undefined,
1873
- antipatternReportStatus: (0, smithy_client_1.expectString)(output.antipatternReportStatus),
1874
- antipatternReportStatusMessage: (0, smithy_client_1.expectString)(output.antipatternReportStatusMessage),
1875
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
1876
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastAnalyzedTimestamp)))
1877
- : undefined,
1878
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
1879
- ? de_ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
1880
- : undefined,
1881
- listApplicationComponentStatusSummary: output.listApplicationComponentStatusSummary != null
1882
- ? de_ListApplicationComponentStatusSummary(output.listApplicationComponentStatusSummary, context)
1883
- : undefined,
1884
- listApplicationComponentStrategySummary: output.listApplicationComponentStrategySummary != null
1885
- ? de_ListStrategySummary(output.listApplicationComponentStrategySummary, context)
1886
- : undefined,
1887
- listApplicationComponentSummary: output.listApplicationComponentSummary != null
1888
- ? de_ListApplicationComponentSummary(output.listApplicationComponentSummary, context)
1889
- : undefined,
1890
- listServerStatusSummary: output.listServerStatusSummary != null
1891
- ? de_ListServerStatusSummary(output.listServerStatusSummary, context)
1892
- : undefined,
1893
- listServerStrategySummary: output.listServerStrategySummary != null
1894
- ? de_ListStrategySummary(output.listServerStrategySummary, context)
1895
- : undefined,
1896
- listServerSummary: output.listServerSummary != null ? de_ListServerSummary(output.listServerSummary, context) : undefined,
1897
- };
1898
- };
1899
- const de_AssessmentTarget = (output, context) => {
1900
- return {
1901
- condition: (0, smithy_client_1.expectString)(output.condition),
1902
- name: (0, smithy_client_1.expectString)(output.name),
1903
- values: output.values != null ? de_AssessmentTargetValues(output.values, context) : undefined,
1904
- };
1905
- };
1906
- const de_AssessmentTargets = (output, context) => {
1907
- const retVal = (output || [])
1908
- .filter((e) => e != null)
1909
- .map((entry) => {
1910
- if (entry === null) {
1911
- return null;
1912
- }
1913
- return de_AssessmentTarget(entry, context);
1914
- });
1915
- return retVal;
1916
- };
1917
- const de_AssessmentTargetValues = (output, context) => {
1918
- const retVal = (output || [])
1919
- .filter((e) => e != null)
1920
- .map((entry) => {
1921
- if (entry === null) {
1922
- return null;
1923
- }
1924
- return (0, smithy_client_1.expectString)(entry);
1925
- });
1926
- return retVal;
1927
- };
1928
- const de_AssociatedApplication = (output, context) => {
1929
- return {
1930
- id: (0, smithy_client_1.expectString)(output.id),
1931
- name: (0, smithy_client_1.expectString)(output.name),
1932
- };
1933
- };
1934
- const de_AssociatedApplications = (output, context) => {
1935
- const retVal = (output || [])
1936
- .filter((e) => e != null)
1937
- .map((entry) => {
1938
- if (entry === null) {
1939
- return null;
1940
- }
1941
- return de_AssociatedApplication(entry, context);
1942
- });
1943
- return retVal;
1944
- };
1945
- const de_AssociatedServerIDs = (output, context) => {
1946
- const retVal = (output || [])
1947
- .filter((e) => e != null)
1948
- .map((entry) => {
1949
- if (entry === null) {
1950
- return null;
1951
- }
1952
- return (0, smithy_client_1.expectString)(entry);
1953
- });
1954
- return retVal;
1955
- };
1956
- const de_AwsManagedResources = (output, context) => {
1957
- return {
1958
- targetDestination: output.targetDestination != null ? de_AwsManagedTargetDestinations(output.targetDestination, context) : undefined,
1959
- };
1960
- };
1961
- const de_AwsManagedTargetDestinations = (output, context) => {
1962
- const retVal = (output || [])
1963
- .filter((e) => e != null)
1964
- .map((entry) => {
1965
- if (entry === null) {
1966
- return null;
1967
- }
1968
- return (0, smithy_client_1.expectString)(entry);
1969
- });
1970
- return retVal;
1971
- };
1972
- const de_BusinessGoals = (output, context) => {
1973
- return {
1974
- licenseCostReduction: (0, smithy_client_1.expectInt32)(output.licenseCostReduction),
1975
- modernizeInfrastructureWithCloudNativeTechnologies: (0, smithy_client_1.expectInt32)(output.modernizeInfrastructureWithCloudNativeTechnologies),
1976
- reduceOperationalOverheadWithManagedServices: (0, smithy_client_1.expectInt32)(output.reduceOperationalOverheadWithManagedServices),
1977
- speedOfMigration: (0, smithy_client_1.expectInt32)(output.speedOfMigration),
1978
- };
1979
- };
1980
- const de_Collector = (output, context) => {
1981
- return {
1982
- collectorHealth: (0, smithy_client_1.expectString)(output.collectorHealth),
1983
- collectorId: (0, smithy_client_1.expectString)(output.collectorId),
1984
- collectorVersion: (0, smithy_client_1.expectString)(output.collectorVersion),
1985
- configurationSummary: output.configurationSummary != null ? de_ConfigurationSummary(output.configurationSummary, context) : undefined,
1986
- hostName: (0, smithy_client_1.expectString)(output.hostName),
1987
- ipAddress: (0, smithy_client_1.expectString)(output.ipAddress),
1988
- lastActivityTimeStamp: (0, smithy_client_1.expectString)(output.lastActivityTimeStamp),
1989
- registeredTimeStamp: (0, smithy_client_1.expectString)(output.registeredTimeStamp),
1990
- };
1991
- };
1992
- const de_Collectors = (output, context) => {
1993
- const retVal = (output || [])
1994
- .filter((e) => e != null)
1995
- .map((entry) => {
1996
- if (entry === null) {
1997
- return null;
1998
- }
1999
- return de_Collector(entry, context);
1528
+ return (0, smithy_client_1.take)(output, {
1529
+ antipatternReportS3Object: smithy_client_1._json,
1530
+ antipatternReportStatus: smithy_client_1.expectString,
1531
+ antipatternReportStatusMessage: smithy_client_1.expectString,
1532
+ lastAnalyzedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1533
+ listAntipatternSeveritySummary: smithy_client_1._json,
1534
+ listApplicationComponentStatusSummary: smithy_client_1._json,
1535
+ listApplicationComponentStrategySummary: smithy_client_1._json,
1536
+ listApplicationComponentSummary: smithy_client_1._json,
1537
+ listServerStatusSummary: smithy_client_1._json,
1538
+ listServerStrategySummary: smithy_client_1._json,
1539
+ listServerSummary: smithy_client_1._json,
2000
1540
  });
2001
- return retVal;
2002
- };
2003
- const de_ConfigurationSummary = (output, context) => {
2004
- return {
2005
- ipAddressBasedRemoteInfoList: output.ipAddressBasedRemoteInfoList != null
2006
- ? de_IPAddressBasedRemoteInfoList(output.ipAddressBasedRemoteInfoList, context)
2007
- : undefined,
2008
- pipelineInfoList: output.pipelineInfoList != null ? de_PipelineInfoList(output.pipelineInfoList, context) : undefined,
2009
- remoteSourceCodeAnalysisServerInfo: output.remoteSourceCodeAnalysisServerInfo != null
2010
- ? de_RemoteSourceCodeAnalysisServerInfo(output.remoteSourceCodeAnalysisServerInfo, context)
2011
- : undefined,
2012
- vcenterBasedRemoteInfoList: output.vcenterBasedRemoteInfoList != null
2013
- ? de_VcenterBasedRemoteInfoList(output.vcenterBasedRemoteInfoList, context)
2014
- : undefined,
2015
- versionControlInfoList: output.versionControlInfoList != null
2016
- ? de_VersionControlInfoList(output.versionControlInfoList, context)
2017
- : undefined,
2018
- };
2019
- };
2020
- const de_DatabaseConfigDetail = (output, context) => {
2021
- return {
2022
- secretName: (0, smithy_client_1.expectString)(output.secretName),
2023
- };
2024
- };
2025
- const de_DatabaseMigrationPreference = (output, context) => {
2026
- if (output.heterogeneous != null) {
2027
- return {
2028
- heterogeneous: de_Heterogeneous(output.heterogeneous, context),
2029
- };
2030
- }
2031
- if (output.homogeneous != null) {
2032
- return {
2033
- homogeneous: de_Homogeneous(output.homogeneous, context),
2034
- };
2035
- }
2036
- if (output.noPreference != null) {
2037
- return {
2038
- noPreference: de_NoDatabaseMigrationPreference(output.noPreference, context),
2039
- };
2040
- }
2041
- return { $unknown: Object.entries(output)[0] };
2042
- };
2043
- const de_DatabasePreferences = (output, context) => {
2044
- return {
2045
- databaseManagementPreference: (0, smithy_client_1.expectString)(output.databaseManagementPreference),
2046
- databaseMigrationPreference: output.databaseMigrationPreference != null
2047
- ? de_DatabaseMigrationPreference((0, smithy_client_1.expectUnion)(output.databaseMigrationPreference), context)
2048
- : undefined,
2049
- };
2050
1541
  };
2051
1542
  const de_DataCollectionDetails = (output, context) => {
2052
- return {
2053
- completionTime: output.completionTime != null
2054
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completionTime)))
2055
- : undefined,
2056
- failed: (0, smithy_client_1.expectInt32)(output.failed),
2057
- inProgress: (0, smithy_client_1.expectInt32)(output.inProgress),
2058
- servers: (0, smithy_client_1.expectInt32)(output.servers),
2059
- startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2060
- status: (0, smithy_client_1.expectString)(output.status),
2061
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2062
- success: (0, smithy_client_1.expectInt32)(output.success),
2063
- };
2064
- };
2065
- const de_Heterogeneous = (output, context) => {
2066
- return {
2067
- targetDatabaseEngine: output.targetDatabaseEngine != null
2068
- ? de_HeterogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
2069
- : undefined,
2070
- };
2071
- };
2072
- const de_HeterogeneousTargetDatabaseEngines = (output, context) => {
2073
- const retVal = (output || [])
2074
- .filter((e) => e != null)
2075
- .map((entry) => {
2076
- if (entry === null) {
2077
- return null;
2078
- }
2079
- return (0, smithy_client_1.expectString)(entry);
2080
- });
2081
- return retVal;
2082
- };
2083
- const de_Homogeneous = (output, context) => {
2084
- return {
2085
- targetDatabaseEngine: output.targetDatabaseEngine != null
2086
- ? de_HomogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
2087
- : undefined,
2088
- };
2089
- };
2090
- const de_HomogeneousTargetDatabaseEngines = (output, context) => {
2091
- const retVal = (output || [])
2092
- .filter((e) => e != null)
2093
- .map((entry) => {
2094
- if (entry === null) {
2095
- return null;
2096
- }
2097
- return (0, smithy_client_1.expectString)(entry);
1543
+ return (0, smithy_client_1.take)(output, {
1544
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1545
+ failed: smithy_client_1.expectInt32,
1546
+ inProgress: smithy_client_1.expectInt32,
1547
+ servers: smithy_client_1.expectInt32,
1548
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1549
+ status: smithy_client_1.expectString,
1550
+ statusMessage: smithy_client_1.expectString,
1551
+ success: smithy_client_1.expectInt32,
2098
1552
  });
2099
- return retVal;
2100
1553
  };
2101
1554
  const de_ImportFileTaskInformation = (output, context) => {
2102
- return {
2103
- completionTime: output.completionTime != null
2104
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completionTime)))
2105
- : undefined,
2106
- id: (0, smithy_client_1.expectString)(output.id),
2107
- importName: (0, smithy_client_1.expectString)(output.importName),
2108
- inputS3Bucket: (0, smithy_client_1.expectString)(output.inputS3Bucket),
2109
- inputS3Key: (0, smithy_client_1.expectString)(output.inputS3Key),
2110
- numberOfRecordsFailed: (0, smithy_client_1.expectInt32)(output.numberOfRecordsFailed),
2111
- numberOfRecordsSuccess: (0, smithy_client_1.expectInt32)(output.numberOfRecordsSuccess),
2112
- startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2113
- status: (0, smithy_client_1.expectString)(output.status),
2114
- statusReportS3Bucket: (0, smithy_client_1.expectString)(output.statusReportS3Bucket),
2115
- statusReportS3Key: (0, smithy_client_1.expectString)(output.statusReportS3Key),
2116
- };
2117
- };
2118
- const de_IPAddressBasedRemoteInfo = (output, context) => {
2119
- return {
2120
- authType: (0, smithy_client_1.expectString)(output.authType),
2121
- ipAddressConfigurationTimeStamp: (0, smithy_client_1.expectString)(output.ipAddressConfigurationTimeStamp),
2122
- osType: (0, smithy_client_1.expectString)(output.osType),
2123
- };
2124
- };
2125
- const de_IPAddressBasedRemoteInfoList = (output, context) => {
2126
- const retVal = (output || [])
2127
- .filter((e) => e != null)
2128
- .map((entry) => {
2129
- if (entry === null) {
2130
- return null;
2131
- }
2132
- return de_IPAddressBasedRemoteInfo(entry, context);
2133
- });
2134
- return retVal;
2135
- };
2136
- const de_ListAntipatternSeveritySummary = (output, context) => {
2137
- const retVal = (output || [])
2138
- .filter((e) => e != null)
2139
- .map((entry) => {
2140
- if (entry === null) {
2141
- return null;
2142
- }
2143
- return de_AntipatternSeveritySummary(entry, context);
2144
- });
2145
- return retVal;
2146
- };
2147
- const de_ListApplicationComponentStatusSummary = (output, context) => {
2148
- const retVal = (output || [])
2149
- .filter((e) => e != null)
2150
- .map((entry) => {
2151
- if (entry === null) {
2152
- return null;
2153
- }
2154
- return de_ApplicationComponentStatusSummary(entry, context);
2155
- });
2156
- return retVal;
2157
- };
2158
- const de_ListApplicationComponentSummary = (output, context) => {
2159
- const retVal = (output || [])
2160
- .filter((e) => e != null)
2161
- .map((entry) => {
2162
- if (entry === null) {
2163
- return null;
2164
- }
2165
- return de_ApplicationComponentSummary(entry, context);
1555
+ return (0, smithy_client_1.take)(output, {
1556
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1557
+ id: smithy_client_1.expectString,
1558
+ importName: smithy_client_1.expectString,
1559
+ inputS3Bucket: smithy_client_1.expectString,
1560
+ inputS3Key: smithy_client_1.expectString,
1561
+ numberOfRecordsFailed: smithy_client_1.expectInt32,
1562
+ numberOfRecordsSuccess: smithy_client_1.expectInt32,
1563
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1564
+ status: smithy_client_1.expectString,
1565
+ statusReportS3Bucket: smithy_client_1.expectString,
1566
+ statusReportS3Key: smithy_client_1.expectString,
2166
1567
  });
2167
- return retVal;
2168
1568
  };
2169
1569
  const de_ListImportFileTaskInformation = (output, context) => {
2170
1570
  const retVal = (output || [])
2171
1571
  .filter((e) => e != null)
2172
1572
  .map((entry) => {
2173
- if (entry === null) {
2174
- return null;
2175
- }
2176
1573
  return de_ImportFileTaskInformation(entry, context);
2177
1574
  });
2178
1575
  return retVal;
2179
1576
  };
2180
- const de_ListServerStatusSummary = (output, context) => {
2181
- const retVal = (output || [])
2182
- .filter((e) => e != null)
2183
- .map((entry) => {
2184
- if (entry === null) {
2185
- return null;
2186
- }
2187
- return de_ServerStatusSummary(entry, context);
2188
- });
2189
- return retVal;
2190
- };
2191
- const de_ListServerSummary = (output, context) => {
2192
- const retVal = (output || [])
2193
- .filter((e) => e != null)
2194
- .map((entry) => {
2195
- if (entry === null) {
2196
- return null;
2197
- }
2198
- return de_ServerSummary(entry, context);
2199
- });
2200
- return retVal;
2201
- };
2202
- const de_ListStrategySummary = (output, context) => {
2203
- const retVal = (output || [])
2204
- .filter((e) => e != null)
2205
- .map((entry) => {
2206
- if (entry === null) {
2207
- return null;
2208
- }
2209
- return de_StrategySummary(entry, context);
2210
- });
2211
- return retVal;
2212
- };
2213
- const de_ManagementPreference = (output, context) => {
2214
- if (output.awsManagedResources != null) {
2215
- return {
2216
- awsManagedResources: de_AwsManagedResources(output.awsManagedResources, context),
2217
- };
2218
- }
2219
- if (output.noPreference != null) {
2220
- return {
2221
- noPreference: de_NoManagementPreference(output.noPreference, context),
2222
- };
2223
- }
2224
- if (output.selfManageResources != null) {
2225
- return {
2226
- selfManageResources: de_SelfManageResources(output.selfManageResources, context),
2227
- };
2228
- }
2229
- return { $unknown: Object.entries(output)[0] };
2230
- };
2231
- const de_NetworkInfo = (output, context) => {
2232
- return {
2233
- interfaceName: (0, smithy_client_1.expectString)(output.interfaceName),
2234
- ipAddress: (0, smithy_client_1.expectString)(output.ipAddress),
2235
- macAddress: (0, smithy_client_1.expectString)(output.macAddress),
2236
- netMask: (0, smithy_client_1.expectString)(output.netMask),
2237
- };
2238
- };
2239
- const de_NetworkInfoList = (output, context) => {
2240
- const retVal = (output || [])
2241
- .filter((e) => e != null)
2242
- .map((entry) => {
2243
- if (entry === null) {
2244
- return null;
2245
- }
2246
- return de_NetworkInfo(entry, context);
2247
- });
2248
- return retVal;
2249
- };
2250
- const de_NoDatabaseMigrationPreference = (output, context) => {
2251
- return {
2252
- targetDatabaseEngine: output.targetDatabaseEngine != null ? de_TargetDatabaseEngines(output.targetDatabaseEngine, context) : undefined,
2253
- };
2254
- };
2255
- const de_NoManagementPreference = (output, context) => {
2256
- return {
2257
- targetDestination: output.targetDestination != null
2258
- ? de_NoPreferenceTargetDestinations(output.targetDestination, context)
2259
- : undefined,
2260
- };
2261
- };
2262
- const de_NoPreferenceTargetDestinations = (output, context) => {
2263
- const retVal = (output || [])
2264
- .filter((e) => e != null)
2265
- .map((entry) => {
2266
- if (entry === null) {
2267
- return null;
2268
- }
2269
- return (0, smithy_client_1.expectString)(entry);
2270
- });
2271
- return retVal;
2272
- };
2273
- const de_OSInfo = (output, context) => {
2274
- return {
2275
- type: (0, smithy_client_1.expectString)(output.type),
2276
- version: (0, smithy_client_1.expectString)(output.version),
2277
- };
2278
- };
2279
- const de_PipelineInfo = (output, context) => {
2280
- return {
2281
- pipelineConfigurationTimeStamp: (0, smithy_client_1.expectString)(output.pipelineConfigurationTimeStamp),
2282
- pipelineType: (0, smithy_client_1.expectString)(output.pipelineType),
2283
- };
2284
- };
2285
- const de_PipelineInfoList = (output, context) => {
2286
- const retVal = (output || [])
2287
- .filter((e) => e != null)
2288
- .map((entry) => {
2289
- if (entry === null) {
2290
- return null;
2291
- }
2292
- return de_PipelineInfo(entry, context);
2293
- });
2294
- return retVal;
2295
- };
2296
- const de_PrioritizeBusinessGoals = (output, context) => {
2297
- return {
2298
- businessGoals: output.businessGoals != null ? de_BusinessGoals(output.businessGoals, context) : undefined,
2299
- };
2300
- };
2301
1577
  const de_RecommendationReportDetails = (output, context) => {
2302
- return {
2303
- completionTime: output.completionTime != null
2304
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completionTime)))
2305
- : undefined,
2306
- s3Bucket: (0, smithy_client_1.expectString)(output.s3Bucket),
2307
- s3Keys: output.s3Keys != null ? de_S3Keys(output.s3Keys, context) : undefined,
2308
- startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2309
- status: (0, smithy_client_1.expectString)(output.status),
2310
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2311
- };
2312
- };
2313
- const de_RecommendationSet = (output, context) => {
2314
- return {
2315
- strategy: (0, smithy_client_1.expectString)(output.strategy),
2316
- targetDestination: (0, smithy_client_1.expectString)(output.targetDestination),
2317
- transformationTool: output.transformationTool != null ? de_TransformationTool(output.transformationTool, context) : undefined,
2318
- };
2319
- };
2320
- const de_RemoteSourceCodeAnalysisServerInfo = (output, context) => {
2321
- return {
2322
- remoteSourceCodeAnalysisServerConfigurationTimestamp: (0, smithy_client_1.expectString)(output.remoteSourceCodeAnalysisServerConfigurationTimestamp),
2323
- };
2324
- };
2325
- const de_Result = (output, context) => {
2326
- return {
2327
- analysisStatus: output.analysisStatus != null ? de_AnalysisStatusUnion((0, smithy_client_1.expectUnion)(output.analysisStatus), context) : undefined,
2328
- analysisType: (0, smithy_client_1.expectString)(output.analysisType),
2329
- antipatternReportResultList: output.antipatternReportResultList != null
2330
- ? de_AntipatternReportResultList(output.antipatternReportResultList, context)
2331
- : undefined,
2332
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2333
- };
2334
- };
2335
- const de_ResultList = (output, context) => {
2336
- const retVal = (output || [])
2337
- .filter((e) => e != null)
2338
- .map((entry) => {
2339
- if (entry === null) {
2340
- return null;
2341
- }
2342
- return de_Result(entry, context);
2343
- });
2344
- return retVal;
2345
- };
2346
- const de_S3Keys = (output, context) => {
2347
- const retVal = (output || [])
2348
- .filter((e) => e != null)
2349
- .map((entry) => {
2350
- if (entry === null) {
2351
- return null;
2352
- }
2353
- return (0, smithy_client_1.expectString)(entry);
2354
- });
2355
- return retVal;
2356
- };
2357
- const de_S3Object = (output, context) => {
2358
- return {
2359
- s3Bucket: (0, smithy_client_1.expectString)(output.s3Bucket),
2360
- s3key: (0, smithy_client_1.expectString)(output.s3key),
2361
- };
2362
- };
2363
- const de_SelfManageResources = (output, context) => {
2364
- return {
2365
- targetDestination: output.targetDestination != null ? de_SelfManageTargetDestinations(output.targetDestination, context) : undefined,
2366
- };
2367
- };
2368
- const de_SelfManageTargetDestinations = (output, context) => {
2369
- const retVal = (output || [])
2370
- .filter((e) => e != null)
2371
- .map((entry) => {
2372
- if (entry === null) {
2373
- return null;
2374
- }
2375
- return (0, smithy_client_1.expectString)(entry);
1578
+ return (0, smithy_client_1.take)(output, {
1579
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1580
+ s3Bucket: smithy_client_1.expectString,
1581
+ s3Keys: smithy_client_1._json,
1582
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1583
+ status: smithy_client_1.expectString,
1584
+ statusMessage: smithy_client_1.expectString,
2376
1585
  });
2377
- return retVal;
2378
1586
  };
2379
1587
  const de_ServerDetail = (output, context) => {
2380
- return {
2381
- antipatternReportS3Object: output.antipatternReportS3Object != null ? de_S3Object(output.antipatternReportS3Object, context) : undefined,
2382
- antipatternReportStatus: (0, smithy_client_1.expectString)(output.antipatternReportStatus),
2383
- antipatternReportStatusMessage: (0, smithy_client_1.expectString)(output.antipatternReportStatusMessage),
2384
- applicationComponentStrategySummary: output.applicationComponentStrategySummary != null
2385
- ? de_ListStrategySummary(output.applicationComponentStrategySummary, context)
2386
- : undefined,
2387
- dataCollectionStatus: (0, smithy_client_1.expectString)(output.dataCollectionStatus),
2388
- id: (0, smithy_client_1.expectString)(output.id),
2389
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
2390
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastAnalyzedTimestamp)))
2391
- : undefined,
2392
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
2393
- ? de_ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
2394
- : undefined,
2395
- name: (0, smithy_client_1.expectString)(output.name),
2396
- recommendationSet: output.recommendationSet != null ? de_RecommendationSet(output.recommendationSet, context) : undefined,
2397
- serverError: output.serverError != null ? de_ServerError(output.serverError, context) : undefined,
2398
- serverType: (0, smithy_client_1.expectString)(output.serverType),
2399
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2400
- systemInfo: output.systemInfo != null ? de_SystemInfo(output.systemInfo, context) : undefined,
2401
- };
1588
+ return (0, smithy_client_1.take)(output, {
1589
+ antipatternReportS3Object: smithy_client_1._json,
1590
+ antipatternReportStatus: smithy_client_1.expectString,
1591
+ antipatternReportStatusMessage: smithy_client_1.expectString,
1592
+ applicationComponentStrategySummary: smithy_client_1._json,
1593
+ dataCollectionStatus: smithy_client_1.expectString,
1594
+ id: smithy_client_1.expectString,
1595
+ lastAnalyzedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1596
+ listAntipatternSeveritySummary: smithy_client_1._json,
1597
+ name: smithy_client_1.expectString,
1598
+ recommendationSet: smithy_client_1._json,
1599
+ serverError: smithy_client_1._json,
1600
+ serverType: smithy_client_1.expectString,
1601
+ statusMessage: smithy_client_1.expectString,
1602
+ systemInfo: smithy_client_1._json,
1603
+ });
2402
1604
  };
2403
1605
  const de_ServerDetails = (output, context) => {
2404
1606
  const retVal = (output || [])
2405
1607
  .filter((e) => e != null)
2406
1608
  .map((entry) => {
2407
- if (entry === null) {
2408
- return null;
2409
- }
2410
1609
  return de_ServerDetail(entry, context);
2411
1610
  });
2412
1611
  return retVal;
2413
1612
  };
2414
- const de_ServerError = (output, context) => {
2415
- return {
2416
- serverErrorCategory: (0, smithy_client_1.expectString)(output.serverErrorCategory),
2417
- };
2418
- };
2419
- const de_ServerStatusSummary = (output, context) => {
2420
- return {
2421
- count: (0, smithy_client_1.expectInt32)(output.count),
2422
- runTimeAssessmentStatus: (0, smithy_client_1.expectString)(output.runTimeAssessmentStatus),
2423
- };
2424
- };
2425
- const de_ServerStrategies = (output, context) => {
2426
- const retVal = (output || [])
2427
- .filter((e) => e != null)
2428
- .map((entry) => {
2429
- if (entry === null) {
2430
- return null;
2431
- }
2432
- return de_ServerStrategy(entry, context);
2433
- });
2434
- return retVal;
2435
- };
2436
- const de_ServerStrategy = (output, context) => {
2437
- return {
2438
- isPreferred: (0, smithy_client_1.expectBoolean)(output.isPreferred),
2439
- numberOfApplicationComponents: (0, smithy_client_1.expectInt32)(output.numberOfApplicationComponents),
2440
- recommendation: output.recommendation != null ? de_RecommendationSet(output.recommendation, context) : undefined,
2441
- status: (0, smithy_client_1.expectString)(output.status),
2442
- };
2443
- };
2444
- const de_ServerSummary = (output, context) => {
2445
- return {
2446
- ServerOsType: (0, smithy_client_1.expectString)(output.ServerOsType),
2447
- count: (0, smithy_client_1.expectInt32)(output.count),
2448
- };
2449
- };
2450
- const de_SourceCodeRepositories = (output, context) => {
2451
- const retVal = (output || [])
2452
- .filter((e) => e != null)
2453
- .map((entry) => {
2454
- if (entry === null) {
2455
- return null;
2456
- }
2457
- return de_SourceCodeRepository(entry, context);
2458
- });
2459
- return retVal;
2460
- };
2461
- const de_SourceCodeRepository = (output, context) => {
2462
- return {
2463
- branch: (0, smithy_client_1.expectString)(output.branch),
2464
- projectName: (0, smithy_client_1.expectString)(output.projectName),
2465
- repository: (0, smithy_client_1.expectString)(output.repository),
2466
- versionControlType: (0, smithy_client_1.expectString)(output.versionControlType),
2467
- };
2468
- };
2469
- const de_StrategySummary = (output, context) => {
2470
- return {
2471
- count: (0, smithy_client_1.expectInt32)(output.count),
2472
- strategy: (0, smithy_client_1.expectString)(output.strategy),
2473
- };
2474
- };
2475
- const de_SystemInfo = (output, context) => {
2476
- return {
2477
- cpuArchitecture: (0, smithy_client_1.expectString)(output.cpuArchitecture),
2478
- fileSystemType: (0, smithy_client_1.expectString)(output.fileSystemType),
2479
- networkInfoList: output.networkInfoList != null ? de_NetworkInfoList(output.networkInfoList, context) : undefined,
2480
- osInfo: output.osInfo != null ? de_OSInfo(output.osInfo, context) : undefined,
2481
- };
2482
- };
2483
- const de_TargetDatabaseEngines = (output, context) => {
2484
- const retVal = (output || [])
2485
- .filter((e) => e != null)
2486
- .map((entry) => {
2487
- if (entry === null) {
2488
- return null;
2489
- }
2490
- return (0, smithy_client_1.expectString)(entry);
2491
- });
2492
- return retVal;
2493
- };
2494
- const de_TransformationTool = (output, context) => {
2495
- return {
2496
- description: (0, smithy_client_1.expectString)(output.description),
2497
- name: (0, smithy_client_1.expectString)(output.name),
2498
- tranformationToolInstallationLink: (0, smithy_client_1.expectString)(output.tranformationToolInstallationLink),
2499
- };
2500
- };
2501
- const de_VcenterBasedRemoteInfo = (output, context) => {
2502
- return {
2503
- osType: (0, smithy_client_1.expectString)(output.osType),
2504
- vcenterConfigurationTimeStamp: (0, smithy_client_1.expectString)(output.vcenterConfigurationTimeStamp),
2505
- };
2506
- };
2507
- const de_VcenterBasedRemoteInfoList = (output, context) => {
2508
- const retVal = (output || [])
2509
- .filter((e) => e != null)
2510
- .map((entry) => {
2511
- if (entry === null) {
2512
- return null;
2513
- }
2514
- return de_VcenterBasedRemoteInfo(entry, context);
2515
- });
2516
- return retVal;
2517
- };
2518
- const de_VersionControlInfo = (output, context) => {
2519
- return {
2520
- versionControlConfigurationTimeStamp: (0, smithy_client_1.expectString)(output.versionControlConfigurationTimeStamp),
2521
- versionControlType: (0, smithy_client_1.expectString)(output.versionControlType),
2522
- };
2523
- };
2524
- const de_VersionControlInfoList = (output, context) => {
2525
- const retVal = (output || [])
2526
- .filter((e) => e != null)
2527
- .map((entry) => {
2528
- if (entry === null) {
2529
- return null;
2530
- }
2531
- return de_VersionControlInfo(entry, context);
2532
- });
2533
- return retVal;
2534
- };
2535
1613
  const deserializeMetadata = (output) => ({
2536
1614
  httpStatusCode: output.statusCode,
2537
1615
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],