@aws-sdk/client-migrationhubstrategy 3.118.0 → 3.127.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.
@@ -240,16 +240,14 @@ const serializeAws_restJson1ListApplicationComponentsCommand = async (input, con
240
240
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-applicationcomponents";
241
241
  let body;
242
242
  body = JSON.stringify({
243
- ...(input.applicationComponentCriteria !== undefined &&
244
- input.applicationComponentCriteria !== null && {
243
+ ...(input.applicationComponentCriteria != null && {
245
244
  applicationComponentCriteria: input.applicationComponentCriteria,
246
245
  }),
247
- ...(input.filterValue !== undefined && input.filterValue !== null && { filterValue: input.filterValue }),
248
- ...(input.groupIdFilter !== undefined &&
249
- input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
250
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
251
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
252
- ...(input.sort !== undefined && input.sort !== null && { sort: input.sort }),
246
+ ...(input.filterValue != null && { filterValue: input.filterValue }),
247
+ ...(input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
248
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
249
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
250
+ ...(input.sort != null && { sort: input.sort }),
253
251
  });
254
252
  return new protocol_http_1.HttpRequest({
255
253
  protocol,
@@ -312,14 +310,12 @@ const serializeAws_restJson1ListServersCommand = async (input, context) => {
312
310
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-servers";
313
311
  let body;
314
312
  body = JSON.stringify({
315
- ...(input.filterValue !== undefined && input.filterValue !== null && { filterValue: input.filterValue }),
316
- ...(input.groupIdFilter !== undefined &&
317
- input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
318
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
319
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
320
- ...(input.serverCriteria !== undefined &&
321
- input.serverCriteria !== null && { serverCriteria: input.serverCriteria }),
322
- ...(input.sort !== undefined && input.sort !== null && { sort: input.sort }),
313
+ ...(input.filterValue != null && { filterValue: input.filterValue }),
314
+ ...(input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
315
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
316
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
317
+ ...(input.serverCriteria != null && { serverCriteria: input.serverCriteria }),
318
+ ...(input.sort != null && { sort: input.sort }),
323
319
  });
324
320
  return new protocol_http_1.HttpRequest({
325
321
  protocol,
@@ -340,16 +336,13 @@ const serializeAws_restJson1PutPortfolioPreferencesCommand = async (input, conte
340
336
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/put-portfolio-preferences";
341
337
  let body;
342
338
  body = JSON.stringify({
343
- ...(input.applicationPreferences !== undefined &&
344
- input.applicationPreferences !== null && {
339
+ ...(input.applicationPreferences != null && {
345
340
  applicationPreferences: serializeAws_restJson1ApplicationPreferences(input.applicationPreferences, context),
346
341
  }),
347
- ...(input.databasePreferences !== undefined &&
348
- input.databasePreferences !== null && {
342
+ ...(input.databasePreferences != null && {
349
343
  databasePreferences: serializeAws_restJson1DatabasePreferences(input.databasePreferences, context),
350
344
  }),
351
- ...(input.prioritizeBusinessGoals !== undefined &&
352
- input.prioritizeBusinessGoals !== null && {
345
+ ...(input.prioritizeBusinessGoals != null && {
353
346
  prioritizeBusinessGoals: serializeAws_restJson1PrioritizeBusinessGoals(input.prioritizeBusinessGoals, context),
354
347
  }),
355
348
  });
@@ -372,10 +365,8 @@ const serializeAws_restJson1StartAssessmentCommand = async (input, context) => {
372
365
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/start-assessment";
373
366
  let body;
374
367
  body = JSON.stringify({
375
- ...(input.s3bucketForAnalysisData !== undefined &&
376
- input.s3bucketForAnalysisData !== null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData }),
377
- ...(input.s3bucketForReportData !== undefined &&
378
- input.s3bucketForReportData !== null && { s3bucketForReportData: input.s3bucketForReportData }),
368
+ ...(input.s3bucketForAnalysisData != null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData }),
369
+ ...(input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData }),
379
370
  });
380
371
  return new protocol_http_1.HttpRequest({
381
372
  protocol,
@@ -396,15 +387,12 @@ const serializeAws_restJson1StartImportFileTaskCommand = async (input, context)
396
387
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/start-import-file-task";
397
388
  let body;
398
389
  body = JSON.stringify({
399
- ...(input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket }),
400
- ...(input.dataSourceType !== undefined &&
401
- input.dataSourceType !== null && { dataSourceType: input.dataSourceType }),
402
- ...(input.groupId !== undefined &&
403
- input.groupId !== null && { groupId: serializeAws_restJson1GroupIds(input.groupId, context) }),
404
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
405
- ...(input.s3bucketForReportData !== undefined &&
406
- input.s3bucketForReportData !== null && { s3bucketForReportData: input.s3bucketForReportData }),
407
- ...(input.s3key !== undefined && input.s3key !== null && { s3key: input.s3key }),
390
+ ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
391
+ ...(input.dataSourceType != null && { dataSourceType: input.dataSourceType }),
392
+ ...(input.groupId != null && { groupId: serializeAws_restJson1GroupIds(input.groupId, context) }),
393
+ ...(input.name != null && { name: input.name }),
394
+ ...(input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData }),
395
+ ...(input.s3key != null && { s3key: input.s3key }),
408
396
  });
409
397
  return new protocol_http_1.HttpRequest({
410
398
  protocol,
@@ -425,9 +413,8 @@ const serializeAws_restJson1StartRecommendationReportGenerationCommand = async (
425
413
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/start-recommendation-report-generation";
426
414
  let body;
427
415
  body = JSON.stringify({
428
- ...(input.groupIdFilter !== undefined &&
429
- input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
430
- ...(input.outputFormat !== undefined && input.outputFormat !== null && { outputFormat: input.outputFormat }),
416
+ ...(input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
417
+ ...(input.outputFormat != null && { outputFormat: input.outputFormat }),
431
418
  });
432
419
  return new protocol_http_1.HttpRequest({
433
420
  protocol,
@@ -448,7 +435,7 @@ const serializeAws_restJson1StopAssessmentCommand = async (input, context) => {
448
435
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/stop-assessment";
449
436
  let body;
450
437
  body = JSON.stringify({
451
- ...(input.assessmentId !== undefined && input.assessmentId !== null && { assessmentId: input.assessmentId }),
438
+ ...(input.assessmentId != null && { assessmentId: input.assessmentId }),
452
439
  });
453
440
  return new protocol_http_1.HttpRequest({
454
441
  protocol,
@@ -469,18 +456,13 @@ const serializeAws_restJson1UpdateApplicationComponentConfigCommand = async (inp
469
456
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-applicationcomponent-config";
470
457
  let body;
471
458
  body = JSON.stringify({
472
- ...(input.applicationComponentId !== undefined &&
473
- input.applicationComponentId !== null && { applicationComponentId: input.applicationComponentId }),
474
- ...(input.inclusionStatus !== undefined &&
475
- input.inclusionStatus !== null && { inclusionStatus: input.inclusionStatus }),
476
- ...(input.secretsManagerKey !== undefined &&
477
- input.secretsManagerKey !== null && { secretsManagerKey: input.secretsManagerKey }),
478
- ...(input.sourceCodeList !== undefined &&
479
- input.sourceCodeList !== null && {
459
+ ...(input.applicationComponentId != null && { applicationComponentId: input.applicationComponentId }),
460
+ ...(input.inclusionStatus != null && { inclusionStatus: input.inclusionStatus }),
461
+ ...(input.secretsManagerKey != null && { secretsManagerKey: input.secretsManagerKey }),
462
+ ...(input.sourceCodeList != null && {
480
463
  sourceCodeList: serializeAws_restJson1SourceCodeList(input.sourceCodeList, context),
481
464
  }),
482
- ...(input.strategyOption !== undefined &&
483
- input.strategyOption !== null && {
465
+ ...(input.strategyOption != null && {
484
466
  strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
485
467
  }),
486
468
  });
@@ -503,9 +485,8 @@ const serializeAws_restJson1UpdateServerConfigCommand = async (input, context) =
503
485
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-server-config";
504
486
  let body;
505
487
  body = JSON.stringify({
506
- ...(input.serverId !== undefined && input.serverId !== null && { serverId: input.serverId }),
507
- ...(input.strategyOption !== undefined &&
508
- input.strategyOption !== null && {
488
+ ...(input.serverId != null && { serverId: input.serverId }),
489
+ ...(input.strategyOption != null && {
509
490
  strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
510
491
  }),
511
492
  });
@@ -553,8 +534,7 @@ const deserializeAws_restJson1GetApplicationComponentDetailsCommandError = async
553
534
  body: await parseBody(output.body, context),
554
535
  };
555
536
  let response;
556
- let errorCode = "UnknownError";
557
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
537
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
558
538
  switch (errorCode) {
559
539
  case "InternalServerException":
560
540
  case "com.amazonaws.migrationhubstrategy#InternalServerException":
@@ -567,10 +547,12 @@ const deserializeAws_restJson1GetApplicationComponentDetailsCommandError = async
567
547
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
568
548
  default:
569
549
  const parsedBody = parsedOutput.body;
550
+ const $metadata = deserializeMetadata(output);
551
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
570
552
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
571
- name: parsedBody.code || parsedBody.Code || errorCode,
553
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
572
554
  $fault: "client",
573
- $metadata: deserializeMetadata(output),
555
+ $metadata,
574
556
  });
575
557
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
576
558
  }
@@ -596,8 +578,7 @@ const deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = as
596
578
  body: await parseBody(output.body, context),
597
579
  };
598
580
  let response;
599
- let errorCode = "UnknownError";
600
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
581
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
601
582
  switch (errorCode) {
602
583
  case "InternalServerException":
603
584
  case "com.amazonaws.migrationhubstrategy#InternalServerException":
@@ -610,10 +591,12 @@ const deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = as
610
591
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
611
592
  default:
612
593
  const parsedBody = parsedOutput.body;
594
+ const $metadata = deserializeMetadata(output);
595
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
613
596
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
614
- name: parsedBody.code || parsedBody.Code || errorCode,
597
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
615
598
  $fault: "client",
616
- $metadata: deserializeMetadata(output),
599
+ $metadata,
617
600
  });
618
601
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
619
602
  }
@@ -643,8 +626,7 @@ const deserializeAws_restJson1GetAssessmentCommandError = async (output, context
643
626
  body: await parseBody(output.body, context),
644
627
  };
645
628
  let response;
646
- let errorCode = "UnknownError";
647
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
629
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
648
630
  switch (errorCode) {
649
631
  case "AccessDeniedException":
650
632
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -660,10 +642,12 @@ const deserializeAws_restJson1GetAssessmentCommandError = async (output, context
660
642
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
661
643
  default:
662
644
  const parsedBody = parsedOutput.body;
645
+ const $metadata = deserializeMetadata(output);
646
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
663
647
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
664
- name: parsedBody.code || parsedBody.Code || errorCode,
648
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
665
649
  $fault: "client",
666
- $metadata: deserializeMetadata(output),
650
+ $metadata,
667
651
  });
668
652
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
669
653
  }
@@ -729,8 +713,7 @@ const deserializeAws_restJson1GetImportFileTaskCommandError = async (output, con
729
713
  body: await parseBody(output.body, context),
730
714
  };
731
715
  let response;
732
- let errorCode = "UnknownError";
733
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
716
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
734
717
  switch (errorCode) {
735
718
  case "AccessDeniedException":
736
719
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -749,10 +732,12 @@ const deserializeAws_restJson1GetImportFileTaskCommandError = async (output, con
749
732
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
750
733
  default:
751
734
  const parsedBody = parsedOutput.body;
735
+ const $metadata = deserializeMetadata(output);
736
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
752
737
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
753
- name: parsedBody.code || parsedBody.Code || errorCode,
738
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
754
739
  $fault: "client",
755
- $metadata: deserializeMetadata(output),
740
+ $metadata,
756
741
  });
757
742
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
758
743
  }
@@ -786,8 +771,7 @@ const deserializeAws_restJson1GetPortfolioPreferencesCommandError = async (outpu
786
771
  body: await parseBody(output.body, context),
787
772
  };
788
773
  let response;
789
- let errorCode = "UnknownError";
790
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
774
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
791
775
  switch (errorCode) {
792
776
  case "AccessDeniedException":
793
777
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -803,10 +787,12 @@ const deserializeAws_restJson1GetPortfolioPreferencesCommandError = async (outpu
803
787
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
804
788
  default:
805
789
  const parsedBody = parsedOutput.body;
790
+ const $metadata = deserializeMetadata(output);
791
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
806
792
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
807
- name: parsedBody.code || parsedBody.Code || errorCode,
793
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
808
794
  $fault: "client",
809
- $metadata: deserializeMetadata(output),
795
+ $metadata,
810
796
  });
811
797
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
812
798
  }
@@ -832,8 +818,7 @@ const deserializeAws_restJson1GetPortfolioSummaryCommandError = async (output, c
832
818
  body: await parseBody(output.body, context),
833
819
  };
834
820
  let response;
835
- let errorCode = "UnknownError";
836
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
821
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
837
822
  switch (errorCode) {
838
823
  case "AccessDeniedException":
839
824
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -846,10 +831,12 @@ const deserializeAws_restJson1GetPortfolioSummaryCommandError = async (output, c
846
831
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
847
832
  default:
848
833
  const parsedBody = parsedOutput.body;
834
+ const $metadata = deserializeMetadata(output);
835
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
849
836
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
850
- name: parsedBody.code || parsedBody.Code || errorCode,
837
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
851
838
  $fault: "client",
852
- $metadata: deserializeMetadata(output),
839
+ $metadata,
853
840
  });
854
841
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
855
842
  }
@@ -879,8 +866,7 @@ const deserializeAws_restJson1GetRecommendationReportDetailsCommandError = async
879
866
  body: await parseBody(output.body, context),
880
867
  };
881
868
  let response;
882
- let errorCode = "UnknownError";
883
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
869
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
884
870
  switch (errorCode) {
885
871
  case "AccessDeniedException":
886
872
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -899,10 +885,12 @@ const deserializeAws_restJson1GetRecommendationReportDetailsCommandError = async
899
885
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
900
886
  default:
901
887
  const parsedBody = parsedOutput.body;
888
+ const $metadata = deserializeMetadata(output);
889
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
902
890
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
903
- name: parsedBody.code || parsedBody.Code || errorCode,
891
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
904
892
  $fault: "client",
905
- $metadata: deserializeMetadata(output),
893
+ $metadata,
906
894
  });
907
895
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
908
896
  }
@@ -936,8 +924,7 @@ const deserializeAws_restJson1GetServerDetailsCommandError = async (output, cont
936
924
  body: await parseBody(output.body, context),
937
925
  };
938
926
  let response;
939
- let errorCode = "UnknownError";
940
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
927
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
941
928
  switch (errorCode) {
942
929
  case "AccessDeniedException":
943
930
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -956,10 +943,12 @@ const deserializeAws_restJson1GetServerDetailsCommandError = async (output, cont
956
943
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
957
944
  default:
958
945
  const parsedBody = parsedOutput.body;
946
+ const $metadata = deserializeMetadata(output);
947
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
959
948
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
960
- name: parsedBody.code || parsedBody.Code || errorCode,
949
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
961
950
  $fault: "client",
962
- $metadata: deserializeMetadata(output),
951
+ $metadata,
963
952
  });
964
953
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
965
954
  }
@@ -985,8 +974,7 @@ const deserializeAws_restJson1GetServerStrategiesCommandError = async (output, c
985
974
  body: await parseBody(output.body, context),
986
975
  };
987
976
  let response;
988
- let errorCode = "UnknownError";
989
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
977
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
990
978
  switch (errorCode) {
991
979
  case "AccessDeniedException":
992
980
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -1005,10 +993,12 @@ const deserializeAws_restJson1GetServerStrategiesCommandError = async (output, c
1005
993
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1006
994
  default:
1007
995
  const parsedBody = parsedOutput.body;
996
+ const $metadata = deserializeMetadata(output);
997
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1008
998
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1009
- name: parsedBody.code || parsedBody.Code || errorCode,
999
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1010
1000
  $fault: "client",
1011
- $metadata: deserializeMetadata(output),
1001
+ $metadata,
1012
1002
  });
1013
1003
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1014
1004
  }
@@ -1038,8 +1028,7 @@ const deserializeAws_restJson1ListApplicationComponentsCommandError = async (out
1038
1028
  body: await parseBody(output.body, context),
1039
1029
  };
1040
1030
  let response;
1041
- let errorCode = "UnknownError";
1042
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1031
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1043
1032
  switch (errorCode) {
1044
1033
  case "AccessDeniedException":
1045
1034
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -1055,10 +1044,12 @@ const deserializeAws_restJson1ListApplicationComponentsCommandError = async (out
1055
1044
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1056
1045
  default:
1057
1046
  const parsedBody = parsedOutput.body;
1047
+ const $metadata = deserializeMetadata(output);
1048
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1058
1049
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1059
- name: parsedBody.code || parsedBody.Code || errorCode,
1050
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1060
1051
  $fault: "client",
1061
- $metadata: deserializeMetadata(output),
1052
+ $metadata,
1062
1053
  });
1063
1054
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1064
1055
  }
@@ -1088,8 +1079,7 @@ const deserializeAws_restJson1ListCollectorsCommandError = async (output, contex
1088
1079
  body: await parseBody(output.body, context),
1089
1080
  };
1090
1081
  let response;
1091
- let errorCode = "UnknownError";
1092
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1082
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1093
1083
  switch (errorCode) {
1094
1084
  case "AccessDeniedException":
1095
1085
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -1105,10 +1095,12 @@ const deserializeAws_restJson1ListCollectorsCommandError = async (output, contex
1105
1095
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1106
1096
  default:
1107
1097
  const parsedBody = parsedOutput.body;
1098
+ const $metadata = deserializeMetadata(output);
1099
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1108
1100
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1109
- name: parsedBody.code || parsedBody.Code || errorCode,
1101
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1110
1102
  $fault: "client",
1111
- $metadata: deserializeMetadata(output),
1103
+ $metadata,
1112
1104
  });
1113
1105
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1114
1106
  }
@@ -1138,8 +1130,7 @@ const deserializeAws_restJson1ListImportFileTaskCommandError = async (output, co
1138
1130
  body: await parseBody(output.body, context),
1139
1131
  };
1140
1132
  let response;
1141
- let errorCode = "UnknownError";
1142
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1133
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1143
1134
  switch (errorCode) {
1144
1135
  case "AccessDeniedException":
1145
1136
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -1155,10 +1146,12 @@ const deserializeAws_restJson1ListImportFileTaskCommandError = async (output, co
1155
1146
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1156
1147
  default:
1157
1148
  const parsedBody = parsedOutput.body;
1149
+ const $metadata = deserializeMetadata(output);
1150
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1158
1151
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1159
- name: parsedBody.code || parsedBody.Code || errorCode,
1152
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1160
1153
  $fault: "client",
1161
- $metadata: deserializeMetadata(output),
1154
+ $metadata,
1162
1155
  });
1163
1156
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1164
1157
  }
@@ -1188,8 +1181,7 @@ const deserializeAws_restJson1ListServersCommandError = async (output, context)
1188
1181
  body: await parseBody(output.body, context),
1189
1182
  };
1190
1183
  let response;
1191
- let errorCode = "UnknownError";
1192
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1184
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1193
1185
  switch (errorCode) {
1194
1186
  case "AccessDeniedException":
1195
1187
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -1205,10 +1197,12 @@ const deserializeAws_restJson1ListServersCommandError = async (output, context)
1205
1197
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1206
1198
  default:
1207
1199
  const parsedBody = parsedOutput.body;
1200
+ const $metadata = deserializeMetadata(output);
1201
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1208
1202
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1209
- name: parsedBody.code || parsedBody.Code || errorCode,
1203
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1210
1204
  $fault: "client",
1211
- $metadata: deserializeMetadata(output),
1205
+ $metadata,
1212
1206
  });
1213
1207
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1214
1208
  }
@@ -1230,8 +1224,7 @@ const deserializeAws_restJson1PutPortfolioPreferencesCommandError = async (outpu
1230
1224
  body: await parseBody(output.body, context),
1231
1225
  };
1232
1226
  let response;
1233
- let errorCode = "UnknownError";
1234
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1227
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1235
1228
  switch (errorCode) {
1236
1229
  case "AccessDeniedException":
1237
1230
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -1250,10 +1243,12 @@ const deserializeAws_restJson1PutPortfolioPreferencesCommandError = async (outpu
1250
1243
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1251
1244
  default:
1252
1245
  const parsedBody = parsedOutput.body;
1246
+ const $metadata = deserializeMetadata(output);
1247
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1253
1248
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1254
- name: parsedBody.code || parsedBody.Code || errorCode,
1249
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1255
1250
  $fault: "client",
1256
- $metadata: deserializeMetadata(output),
1251
+ $metadata,
1257
1252
  });
1258
1253
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1259
1254
  }
@@ -1279,8 +1274,7 @@ const deserializeAws_restJson1StartAssessmentCommandError = async (output, conte
1279
1274
  body: await parseBody(output.body, context),
1280
1275
  };
1281
1276
  let response;
1282
- let errorCode = "UnknownError";
1283
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1277
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1284
1278
  switch (errorCode) {
1285
1279
  case "AccessDeniedException":
1286
1280
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -1296,10 +1290,12 @@ const deserializeAws_restJson1StartAssessmentCommandError = async (output, conte
1296
1290
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1297
1291
  default:
1298
1292
  const parsedBody = parsedOutput.body;
1293
+ const $metadata = deserializeMetadata(output);
1294
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1299
1295
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1300
- name: parsedBody.code || parsedBody.Code || errorCode,
1296
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1301
1297
  $fault: "client",
1302
- $metadata: deserializeMetadata(output),
1298
+ $metadata,
1303
1299
  });
1304
1300
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1305
1301
  }
@@ -1325,8 +1321,7 @@ const deserializeAws_restJson1StartImportFileTaskCommandError = async (output, c
1325
1321
  body: await parseBody(output.body, context),
1326
1322
  };
1327
1323
  let response;
1328
- let errorCode = "UnknownError";
1329
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1324
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1330
1325
  switch (errorCode) {
1331
1326
  case "AccessDeniedException":
1332
1327
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -1345,10 +1340,12 @@ const deserializeAws_restJson1StartImportFileTaskCommandError = async (output, c
1345
1340
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1346
1341
  default:
1347
1342
  const parsedBody = parsedOutput.body;
1343
+ const $metadata = deserializeMetadata(output);
1344
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1348
1345
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1349
- name: parsedBody.code || parsedBody.Code || errorCode,
1346
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1350
1347
  $fault: "client",
1351
- $metadata: deserializeMetadata(output),
1348
+ $metadata,
1352
1349
  });
1353
1350
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1354
1351
  }
@@ -1374,8 +1371,7 @@ const deserializeAws_restJson1StartRecommendationReportGenerationCommandError =
1374
1371
  body: await parseBody(output.body, context),
1375
1372
  };
1376
1373
  let response;
1377
- let errorCode = "UnknownError";
1378
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1374
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1379
1375
  switch (errorCode) {
1380
1376
  case "AccessDeniedException":
1381
1377
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -1394,10 +1390,12 @@ const deserializeAws_restJson1StartRecommendationReportGenerationCommandError =
1394
1390
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1395
1391
  default:
1396
1392
  const parsedBody = parsedOutput.body;
1393
+ const $metadata = deserializeMetadata(output);
1394
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1397
1395
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1398
- name: parsedBody.code || parsedBody.Code || errorCode,
1396
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1399
1397
  $fault: "client",
1400
- $metadata: deserializeMetadata(output),
1398
+ $metadata,
1401
1399
  });
1402
1400
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1403
1401
  }
@@ -1419,8 +1417,7 @@ const deserializeAws_restJson1StopAssessmentCommandError = async (output, contex
1419
1417
  body: await parseBody(output.body, context),
1420
1418
  };
1421
1419
  let response;
1422
- let errorCode = "UnknownError";
1423
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1420
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1424
1421
  switch (errorCode) {
1425
1422
  case "AccessDeniedException":
1426
1423
  case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
@@ -1436,10 +1433,12 @@ const deserializeAws_restJson1StopAssessmentCommandError = async (output, contex
1436
1433
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1437
1434
  default:
1438
1435
  const parsedBody = parsedOutput.body;
1436
+ const $metadata = deserializeMetadata(output);
1437
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1439
1438
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1440
- name: parsedBody.code || parsedBody.Code || errorCode,
1439
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1441
1440
  $fault: "client",
1442
- $metadata: deserializeMetadata(output),
1441
+ $metadata,
1443
1442
  });
1444
1443
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1445
1444
  }
@@ -1461,8 +1460,7 @@ const deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = asy
1461
1460
  body: await parseBody(output.body, context),
1462
1461
  };
1463
1462
  let response;
1464
- let errorCode = "UnknownError";
1465
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1463
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1466
1464
  switch (errorCode) {
1467
1465
  case "InternalServerException":
1468
1466
  case "com.amazonaws.migrationhubstrategy#InternalServerException":
@@ -1478,10 +1476,12 @@ const deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = asy
1478
1476
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1479
1477
  default:
1480
1478
  const parsedBody = parsedOutput.body;
1479
+ const $metadata = deserializeMetadata(output);
1480
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1481
1481
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1482
- name: parsedBody.code || parsedBody.Code || errorCode,
1482
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1483
1483
  $fault: "client",
1484
- $metadata: deserializeMetadata(output),
1484
+ $metadata,
1485
1485
  });
1486
1486
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1487
1487
  }
@@ -1503,8 +1503,7 @@ const deserializeAws_restJson1UpdateServerConfigCommandError = async (output, co
1503
1503
  body: await parseBody(output.body, context),
1504
1504
  };
1505
1505
  let response;
1506
- let errorCode = "UnknownError";
1507
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1506
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1508
1507
  switch (errorCode) {
1509
1508
  case "InternalServerException":
1510
1509
  case "com.amazonaws.migrationhubstrategy#InternalServerException":
@@ -1520,10 +1519,12 @@ const deserializeAws_restJson1UpdateServerConfigCommandError = async (output, co
1520
1519
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1521
1520
  default:
1522
1521
  const parsedBody = parsedOutput.body;
1522
+ const $metadata = deserializeMetadata(output);
1523
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1523
1524
  response = new MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException({
1524
- name: parsedBody.code || parsedBody.Code || errorCode,
1525
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1525
1526
  $fault: "client",
1526
- $metadata: deserializeMetadata(output),
1527
+ $metadata,
1527
1528
  });
1528
1529
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1529
1530
  }
@@ -1626,16 +1627,14 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1626
1627
  };
1627
1628
  const serializeAws_restJson1ApplicationPreferences = (input, context) => {
1628
1629
  return {
1629
- ...(input.managementPreference !== undefined &&
1630
- input.managementPreference !== null && {
1630
+ ...(input.managementPreference != null && {
1631
1631
  managementPreference: serializeAws_restJson1ManagementPreference(input.managementPreference, context),
1632
1632
  }),
1633
1633
  };
1634
1634
  };
1635
1635
  const serializeAws_restJson1AwsManagedResources = (input, context) => {
1636
1636
  return {
1637
- ...(input.targetDestination !== undefined &&
1638
- input.targetDestination !== null && {
1637
+ ...(input.targetDestination != null && {
1639
1638
  targetDestination: serializeAws_restJson1AwsManagedTargetDestinations(input.targetDestination, context),
1640
1639
  }),
1641
1640
  };
@@ -1652,18 +1651,14 @@ const serializeAws_restJson1AwsManagedTargetDestinations = (input, context) => {
1652
1651
  };
1653
1652
  const serializeAws_restJson1BusinessGoals = (input, context) => {
1654
1653
  return {
1655
- ...(input.licenseCostReduction !== undefined &&
1656
- input.licenseCostReduction !== null && { licenseCostReduction: input.licenseCostReduction }),
1657
- ...(input.modernizeInfrastructureWithCloudNativeTechnologies !== undefined &&
1658
- input.modernizeInfrastructureWithCloudNativeTechnologies !== null && {
1654
+ ...(input.licenseCostReduction != null && { licenseCostReduction: input.licenseCostReduction }),
1655
+ ...(input.modernizeInfrastructureWithCloudNativeTechnologies != null && {
1659
1656
  modernizeInfrastructureWithCloudNativeTechnologies: input.modernizeInfrastructureWithCloudNativeTechnologies,
1660
1657
  }),
1661
- ...(input.reduceOperationalOverheadWithManagedServices !== undefined &&
1662
- input.reduceOperationalOverheadWithManagedServices !== null && {
1658
+ ...(input.reduceOperationalOverheadWithManagedServices != null && {
1663
1659
  reduceOperationalOverheadWithManagedServices: input.reduceOperationalOverheadWithManagedServices,
1664
1660
  }),
1665
- ...(input.speedOfMigration !== undefined &&
1666
- input.speedOfMigration !== null && { speedOfMigration: input.speedOfMigration }),
1661
+ ...(input.speedOfMigration != null && { speedOfMigration: input.speedOfMigration }),
1667
1662
  };
1668
1663
  };
1669
1664
  const serializeAws_restJson1DatabaseMigrationPreference = (input, context) => {
@@ -1676,20 +1671,18 @@ const serializeAws_restJson1DatabaseMigrationPreference = (input, context) => {
1676
1671
  };
1677
1672
  const serializeAws_restJson1DatabasePreferences = (input, context) => {
1678
1673
  return {
1679
- ...(input.databaseManagementPreference !== undefined &&
1680
- input.databaseManagementPreference !== null && {
1674
+ ...(input.databaseManagementPreference != null && {
1681
1675
  databaseManagementPreference: input.databaseManagementPreference,
1682
1676
  }),
1683
- ...(input.databaseMigrationPreference !== undefined &&
1684
- input.databaseMigrationPreference !== null && {
1677
+ ...(input.databaseMigrationPreference != null && {
1685
1678
  databaseMigrationPreference: serializeAws_restJson1DatabaseMigrationPreference(input.databaseMigrationPreference, context),
1686
1679
  }),
1687
1680
  };
1688
1681
  };
1689
1682
  const serializeAws_restJson1Group = (input, context) => {
1690
1683
  return {
1691
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1692
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
1684
+ ...(input.name != null && { name: input.name }),
1685
+ ...(input.value != null && { value: input.value }),
1693
1686
  };
1694
1687
  };
1695
1688
  const serializeAws_restJson1GroupIds = (input, context) => {
@@ -1704,8 +1697,7 @@ const serializeAws_restJson1GroupIds = (input, context) => {
1704
1697
  };
1705
1698
  const serializeAws_restJson1Heterogeneous = (input, context) => {
1706
1699
  return {
1707
- ...(input.targetDatabaseEngine !== undefined &&
1708
- input.targetDatabaseEngine !== null && {
1700
+ ...(input.targetDatabaseEngine != null && {
1709
1701
  targetDatabaseEngine: serializeAws_restJson1HeterogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
1710
1702
  }),
1711
1703
  };
@@ -1722,8 +1714,7 @@ const serializeAws_restJson1HeterogeneousTargetDatabaseEngines = (input, context
1722
1714
  };
1723
1715
  const serializeAws_restJson1Homogeneous = (input, context) => {
1724
1716
  return {
1725
- ...(input.targetDatabaseEngine !== undefined &&
1726
- input.targetDatabaseEngine !== null && {
1717
+ ...(input.targetDatabaseEngine != null && {
1727
1718
  targetDatabaseEngine: serializeAws_restJson1HomogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
1728
1719
  }),
1729
1720
  };
@@ -1752,16 +1743,14 @@ const serializeAws_restJson1ManagementPreference = (input, context) => {
1752
1743
  };
1753
1744
  const serializeAws_restJson1NoDatabaseMigrationPreference = (input, context) => {
1754
1745
  return {
1755
- ...(input.targetDatabaseEngine !== undefined &&
1756
- input.targetDatabaseEngine !== null && {
1746
+ ...(input.targetDatabaseEngine != null && {
1757
1747
  targetDatabaseEngine: serializeAws_restJson1TargetDatabaseEngines(input.targetDatabaseEngine, context),
1758
1748
  }),
1759
1749
  };
1760
1750
  };
1761
1751
  const serializeAws_restJson1NoManagementPreference = (input, context) => {
1762
1752
  return {
1763
- ...(input.targetDestination !== undefined &&
1764
- input.targetDestination !== null && {
1753
+ ...(input.targetDestination != null && {
1765
1754
  targetDestination: serializeAws_restJson1NoPreferenceTargetDestinations(input.targetDestination, context),
1766
1755
  }),
1767
1756
  };
@@ -1778,16 +1767,14 @@ const serializeAws_restJson1NoPreferenceTargetDestinations = (input, context) =>
1778
1767
  };
1779
1768
  const serializeAws_restJson1PrioritizeBusinessGoals = (input, context) => {
1780
1769
  return {
1781
- ...(input.businessGoals !== undefined &&
1782
- input.businessGoals !== null && {
1770
+ ...(input.businessGoals != null && {
1783
1771
  businessGoals: serializeAws_restJson1BusinessGoals(input.businessGoals, context),
1784
1772
  }),
1785
1773
  };
1786
1774
  };
1787
1775
  const serializeAws_restJson1SelfManageResources = (input, context) => {
1788
1776
  return {
1789
- ...(input.targetDestination !== undefined &&
1790
- input.targetDestination !== null && {
1777
+ ...(input.targetDestination != null && {
1791
1778
  targetDestination: serializeAws_restJson1SelfManageTargetDestinations(input.targetDestination, context),
1792
1779
  }),
1793
1780
  };
@@ -1804,10 +1791,9 @@ const serializeAws_restJson1SelfManageTargetDestinations = (input, context) => {
1804
1791
  };
1805
1792
  const serializeAws_restJson1SourceCode = (input, context) => {
1806
1793
  return {
1807
- ...(input.location !== undefined && input.location !== null && { location: input.location }),
1808
- ...(input.sourceVersion !== undefined && input.sourceVersion !== null && { sourceVersion: input.sourceVersion }),
1809
- ...(input.versionControl !== undefined &&
1810
- input.versionControl !== null && { versionControl: input.versionControl }),
1794
+ ...(input.location != null && { location: input.location }),
1795
+ ...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
1796
+ ...(input.versionControl != null && { versionControl: input.versionControl }),
1811
1797
  };
1812
1798
  };
1813
1799
  const serializeAws_restJson1SourceCodeList = (input, context) => {
@@ -1822,11 +1808,10 @@ const serializeAws_restJson1SourceCodeList = (input, context) => {
1822
1808
  };
1823
1809
  const serializeAws_restJson1StrategyOption = (input, context) => {
1824
1810
  return {
1825
- ...(input.isPreferred !== undefined && input.isPreferred !== null && { isPreferred: input.isPreferred }),
1826
- ...(input.strategy !== undefined && input.strategy !== null && { strategy: input.strategy }),
1827
- ...(input.targetDestination !== undefined &&
1828
- input.targetDestination !== null && { targetDestination: input.targetDestination }),
1829
- ...(input.toolName !== undefined && input.toolName !== null && { toolName: input.toolName }),
1811
+ ...(input.isPreferred != null && { isPreferred: input.isPreferred }),
1812
+ ...(input.strategy != null && { strategy: input.strategy }),
1813
+ ...(input.targetDestination != null && { targetDestination: input.targetDestination }),
1814
+ ...(input.toolName != null && { toolName: input.toolName }),
1830
1815
  };
1831
1816
  };
1832
1817
  const serializeAws_restJson1TargetDatabaseEngines = (input, context) => {
@@ -1848,33 +1833,33 @@ const deserializeAws_restJson1AntipatternSeveritySummary = (output, context) =>
1848
1833
  const deserializeAws_restJson1ApplicationComponentDetail = (output, context) => {
1849
1834
  return {
1850
1835
  analysisStatus: (0, smithy_client_1.expectString)(output.analysisStatus),
1851
- antipatternReportS3Object: output.antipatternReportS3Object !== undefined && output.antipatternReportS3Object !== null
1836
+ antipatternReportS3Object: output.antipatternReportS3Object != null
1852
1837
  ? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
1853
1838
  : undefined,
1854
1839
  antipatternReportStatus: (0, smithy_client_1.expectString)(output.antipatternReportStatus),
1855
1840
  antipatternReportStatusMessage: (0, smithy_client_1.expectString)(output.antipatternReportStatusMessage),
1856
1841
  appType: (0, smithy_client_1.expectString)(output.appType),
1857
1842
  associatedServerId: (0, smithy_client_1.expectString)(output.associatedServerId),
1858
- databaseConfigDetail: output.databaseConfigDetail !== undefined && output.databaseConfigDetail !== null
1843
+ databaseConfigDetail: output.databaseConfigDetail != null
1859
1844
  ? deserializeAws_restJson1DatabaseConfigDetail(output.databaseConfigDetail, context)
1860
1845
  : undefined,
1861
1846
  id: (0, smithy_client_1.expectString)(output.id),
1862
1847
  inclusionStatus: (0, smithy_client_1.expectString)(output.inclusionStatus),
1863
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp !== undefined && output.lastAnalyzedTimestamp !== null
1848
+ lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
1864
1849
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastAnalyzedTimestamp)))
1865
1850
  : undefined,
1866
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary !== undefined && output.listAntipatternSeveritySummary !== null
1851
+ listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
1867
1852
  ? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
1868
1853
  : undefined,
1869
1854
  moreServerAssociationExists: (0, smithy_client_1.expectBoolean)(output.moreServerAssociationExists),
1870
1855
  name: (0, smithy_client_1.expectString)(output.name),
1871
1856
  osDriver: (0, smithy_client_1.expectString)(output.osDriver),
1872
1857
  osVersion: (0, smithy_client_1.expectString)(output.osVersion),
1873
- recommendationSet: output.recommendationSet !== undefined && output.recommendationSet !== null
1858
+ recommendationSet: output.recommendationSet != null
1874
1859
  ? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
1875
1860
  : undefined,
1876
1861
  resourceSubType: (0, smithy_client_1.expectString)(output.resourceSubType),
1877
- sourceCodeRepositories: output.sourceCodeRepositories !== undefined && output.sourceCodeRepositories !== null
1862
+ sourceCodeRepositories: output.sourceCodeRepositories != null
1878
1863
  ? deserializeAws_restJson1SourceCodeRepositories(output.sourceCodeRepositories, context)
1879
1864
  : undefined,
1880
1865
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
@@ -1905,7 +1890,7 @@ const deserializeAws_restJson1ApplicationComponentStrategies = (output, context)
1905
1890
  const deserializeAws_restJson1ApplicationComponentStrategy = (output, context) => {
1906
1891
  return {
1907
1892
  isPreferred: (0, smithy_client_1.expectBoolean)(output.isPreferred),
1908
- recommendation: output.recommendation !== undefined && output.recommendation !== null
1893
+ recommendation: output.recommendation != null
1909
1894
  ? deserializeAws_restJson1RecommendationSet(output.recommendation, context)
1910
1895
  : undefined,
1911
1896
  status: (0, smithy_client_1.expectString)(output.status),
@@ -1919,35 +1904,34 @@ const deserializeAws_restJson1ApplicationComponentSummary = (output, context) =>
1919
1904
  };
1920
1905
  const deserializeAws_restJson1ApplicationPreferences = (output, context) => {
1921
1906
  return {
1922
- managementPreference: output.managementPreference !== undefined && output.managementPreference !== null
1907
+ managementPreference: output.managementPreference != null
1923
1908
  ? deserializeAws_restJson1ManagementPreference((0, smithy_client_1.expectUnion)(output.managementPreference), context)
1924
1909
  : undefined,
1925
1910
  };
1926
1911
  };
1927
1912
  const deserializeAws_restJson1AssessmentSummary = (output, context) => {
1928
1913
  return {
1929
- antipatternReportS3Object: output.antipatternReportS3Object !== undefined && output.antipatternReportS3Object !== null
1914
+ antipatternReportS3Object: output.antipatternReportS3Object != null
1930
1915
  ? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
1931
1916
  : undefined,
1932
1917
  antipatternReportStatus: (0, smithy_client_1.expectString)(output.antipatternReportStatus),
1933
1918
  antipatternReportStatusMessage: (0, smithy_client_1.expectString)(output.antipatternReportStatusMessage),
1934
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp !== undefined && output.lastAnalyzedTimestamp !== null
1919
+ lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
1935
1920
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastAnalyzedTimestamp)))
1936
1921
  : undefined,
1937
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary !== undefined && output.listAntipatternSeveritySummary !== null
1922
+ listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
1938
1923
  ? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
1939
1924
  : undefined,
1940
- listApplicationComponentStrategySummary: output.listApplicationComponentStrategySummary !== undefined &&
1941
- output.listApplicationComponentStrategySummary !== null
1925
+ listApplicationComponentStrategySummary: output.listApplicationComponentStrategySummary != null
1942
1926
  ? deserializeAws_restJson1ListStrategySummary(output.listApplicationComponentStrategySummary, context)
1943
1927
  : undefined,
1944
- listApplicationComponentSummary: output.listApplicationComponentSummary !== undefined && output.listApplicationComponentSummary !== null
1928
+ listApplicationComponentSummary: output.listApplicationComponentSummary != null
1945
1929
  ? deserializeAws_restJson1ListApplicationComponentSummary(output.listApplicationComponentSummary, context)
1946
1930
  : undefined,
1947
- listServerStrategySummary: output.listServerStrategySummary !== undefined && output.listServerStrategySummary !== null
1931
+ listServerStrategySummary: output.listServerStrategySummary != null
1948
1932
  ? deserializeAws_restJson1ListStrategySummary(output.listServerStrategySummary, context)
1949
1933
  : undefined,
1950
- listServerSummary: output.listServerSummary !== undefined && output.listServerSummary !== null
1934
+ listServerSummary: output.listServerSummary != null
1951
1935
  ? deserializeAws_restJson1ListServerSummary(output.listServerSummary, context)
1952
1936
  : undefined,
1953
1937
  };
@@ -1982,7 +1966,7 @@ const deserializeAws_restJson1AssociatedServerIDs = (output, context) => {
1982
1966
  };
1983
1967
  const deserializeAws_restJson1AwsManagedResources = (output, context) => {
1984
1968
  return {
1985
- targetDestination: output.targetDestination !== undefined && output.targetDestination !== null
1969
+ targetDestination: output.targetDestination != null
1986
1970
  ? deserializeAws_restJson1AwsManagedTargetDestinations(output.targetDestination, context)
1987
1971
  : undefined,
1988
1972
  };
@@ -2054,29 +2038,27 @@ const deserializeAws_restJson1DatabaseMigrationPreference = (output, context) =>
2054
2038
  const deserializeAws_restJson1DatabasePreferences = (output, context) => {
2055
2039
  return {
2056
2040
  databaseManagementPreference: (0, smithy_client_1.expectString)(output.databaseManagementPreference),
2057
- databaseMigrationPreference: output.databaseMigrationPreference !== undefined && output.databaseMigrationPreference !== null
2041
+ databaseMigrationPreference: output.databaseMigrationPreference != null
2058
2042
  ? deserializeAws_restJson1DatabaseMigrationPreference((0, smithy_client_1.expectUnion)(output.databaseMigrationPreference), context)
2059
2043
  : undefined,
2060
2044
  };
2061
2045
  };
2062
2046
  const deserializeAws_restJson1DataCollectionDetails = (output, context) => {
2063
2047
  return {
2064
- completionTime: output.completionTime !== undefined && output.completionTime !== null
2048
+ completionTime: output.completionTime != null
2065
2049
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completionTime)))
2066
2050
  : undefined,
2067
2051
  failed: (0, smithy_client_1.expectInt32)(output.failed),
2068
2052
  inProgress: (0, smithy_client_1.expectInt32)(output.inProgress),
2069
2053
  servers: (0, smithy_client_1.expectInt32)(output.servers),
2070
- startTime: output.startTime !== undefined && output.startTime !== null
2071
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
2072
- : undefined,
2054
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2073
2055
  status: (0, smithy_client_1.expectString)(output.status),
2074
2056
  success: (0, smithy_client_1.expectInt32)(output.success),
2075
2057
  };
2076
2058
  };
2077
2059
  const deserializeAws_restJson1Heterogeneous = (output, context) => {
2078
2060
  return {
2079
- targetDatabaseEngine: output.targetDatabaseEngine !== undefined && output.targetDatabaseEngine !== null
2061
+ targetDatabaseEngine: output.targetDatabaseEngine != null
2080
2062
  ? deserializeAws_restJson1HeterogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
2081
2063
  : undefined,
2082
2064
  };
@@ -2094,7 +2076,7 @@ const deserializeAws_restJson1HeterogeneousTargetDatabaseEngines = (output, cont
2094
2076
  };
2095
2077
  const deserializeAws_restJson1Homogeneous = (output, context) => {
2096
2078
  return {
2097
- targetDatabaseEngine: output.targetDatabaseEngine !== undefined && output.targetDatabaseEngine !== null
2079
+ targetDatabaseEngine: output.targetDatabaseEngine != null
2098
2080
  ? deserializeAws_restJson1HomogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
2099
2081
  : undefined,
2100
2082
  };
@@ -2112,7 +2094,7 @@ const deserializeAws_restJson1HomogeneousTargetDatabaseEngines = (output, contex
2112
2094
  };
2113
2095
  const deserializeAws_restJson1ImportFileTaskInformation = (output, context) => {
2114
2096
  return {
2115
- completionTime: output.completionTime !== undefined && output.completionTime !== null
2097
+ completionTime: output.completionTime != null
2116
2098
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completionTime)))
2117
2099
  : undefined,
2118
2100
  id: (0, smithy_client_1.expectString)(output.id),
@@ -2121,9 +2103,7 @@ const deserializeAws_restJson1ImportFileTaskInformation = (output, context) => {
2121
2103
  inputS3Key: (0, smithy_client_1.expectString)(output.inputS3Key),
2122
2104
  numberOfRecordsFailed: (0, smithy_client_1.expectInt32)(output.numberOfRecordsFailed),
2123
2105
  numberOfRecordsSuccess: (0, smithy_client_1.expectInt32)(output.numberOfRecordsSuccess),
2124
- startTime: output.startTime !== undefined && output.startTime !== null
2125
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
2126
- : undefined,
2106
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2127
2107
  status: (0, smithy_client_1.expectString)(output.status),
2128
2108
  statusReportS3Bucket: (0, smithy_client_1.expectString)(output.statusReportS3Bucket),
2129
2109
  statusReportS3Key: (0, smithy_client_1.expectString)(output.statusReportS3Key),
@@ -2223,14 +2203,14 @@ const deserializeAws_restJson1NetworkInfoList = (output, context) => {
2223
2203
  };
2224
2204
  const deserializeAws_restJson1NoDatabaseMigrationPreference = (output, context) => {
2225
2205
  return {
2226
- targetDatabaseEngine: output.targetDatabaseEngine !== undefined && output.targetDatabaseEngine !== null
2206
+ targetDatabaseEngine: output.targetDatabaseEngine != null
2227
2207
  ? deserializeAws_restJson1TargetDatabaseEngines(output.targetDatabaseEngine, context)
2228
2208
  : undefined,
2229
2209
  };
2230
2210
  };
2231
2211
  const deserializeAws_restJson1NoManagementPreference = (output, context) => {
2232
2212
  return {
2233
- targetDestination: output.targetDestination !== undefined && output.targetDestination !== null
2213
+ targetDestination: output.targetDestination != null
2234
2214
  ? deserializeAws_restJson1NoPreferenceTargetDestinations(output.targetDestination, context)
2235
2215
  : undefined,
2236
2216
  };
@@ -2254,23 +2234,17 @@ const deserializeAws_restJson1OSInfo = (output, context) => {
2254
2234
  };
2255
2235
  const deserializeAws_restJson1PrioritizeBusinessGoals = (output, context) => {
2256
2236
  return {
2257
- businessGoals: output.businessGoals !== undefined && output.businessGoals !== null
2258
- ? deserializeAws_restJson1BusinessGoals(output.businessGoals, context)
2259
- : undefined,
2237
+ businessGoals: output.businessGoals != null ? deserializeAws_restJson1BusinessGoals(output.businessGoals, context) : undefined,
2260
2238
  };
2261
2239
  };
2262
2240
  const deserializeAws_restJson1RecommendationReportDetails = (output, context) => {
2263
2241
  return {
2264
- completionTime: output.completionTime !== undefined && output.completionTime !== null
2242
+ completionTime: output.completionTime != null
2265
2243
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completionTime)))
2266
2244
  : undefined,
2267
2245
  s3Bucket: (0, smithy_client_1.expectString)(output.s3Bucket),
2268
- s3Keys: output.s3Keys !== undefined && output.s3Keys !== null
2269
- ? deserializeAws_restJson1S3Keys(output.s3Keys, context)
2270
- : undefined,
2271
- startTime: output.startTime !== undefined && output.startTime !== null
2272
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
2273
- : undefined,
2246
+ s3Keys: output.s3Keys != null ? deserializeAws_restJson1S3Keys(output.s3Keys, context) : undefined,
2247
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2274
2248
  status: (0, smithy_client_1.expectString)(output.status),
2275
2249
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2276
2250
  };
@@ -2279,7 +2253,7 @@ const deserializeAws_restJson1RecommendationSet = (output, context) => {
2279
2253
  return {
2280
2254
  strategy: (0, smithy_client_1.expectString)(output.strategy),
2281
2255
  targetDestination: (0, smithy_client_1.expectString)(output.targetDestination),
2282
- transformationTool: output.transformationTool !== undefined && output.transformationTool !== null
2256
+ transformationTool: output.transformationTool != null
2283
2257
  ? deserializeAws_restJson1TransformationTool(output.transformationTool, context)
2284
2258
  : undefined,
2285
2259
  };
@@ -2303,7 +2277,7 @@ const deserializeAws_restJson1S3Object = (output, context) => {
2303
2277
  };
2304
2278
  const deserializeAws_restJson1SelfManageResources = (output, context) => {
2305
2279
  return {
2306
- targetDestination: output.targetDestination !== undefined && output.targetDestination !== null
2280
+ targetDestination: output.targetDestination != null
2307
2281
  ? deserializeAws_restJson1SelfManageTargetDestinations(output.targetDestination, context)
2308
2282
  : undefined,
2309
2283
  };
@@ -2321,31 +2295,29 @@ const deserializeAws_restJson1SelfManageTargetDestinations = (output, context) =
2321
2295
  };
2322
2296
  const deserializeAws_restJson1ServerDetail = (output, context) => {
2323
2297
  return {
2324
- antipatternReportS3Object: output.antipatternReportS3Object !== undefined && output.antipatternReportS3Object !== null
2298
+ antipatternReportS3Object: output.antipatternReportS3Object != null
2325
2299
  ? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
2326
2300
  : undefined,
2327
2301
  antipatternReportStatus: (0, smithy_client_1.expectString)(output.antipatternReportStatus),
2328
2302
  antipatternReportStatusMessage: (0, smithy_client_1.expectString)(output.antipatternReportStatusMessage),
2329
- applicationComponentStrategySummary: output.applicationComponentStrategySummary !== undefined && output.applicationComponentStrategySummary !== null
2303
+ applicationComponentStrategySummary: output.applicationComponentStrategySummary != null
2330
2304
  ? deserializeAws_restJson1ListStrategySummary(output.applicationComponentStrategySummary, context)
2331
2305
  : undefined,
2332
2306
  dataCollectionStatus: (0, smithy_client_1.expectString)(output.dataCollectionStatus),
2333
2307
  id: (0, smithy_client_1.expectString)(output.id),
2334
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp !== undefined && output.lastAnalyzedTimestamp !== null
2308
+ lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
2335
2309
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastAnalyzedTimestamp)))
2336
2310
  : undefined,
2337
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary !== undefined && output.listAntipatternSeveritySummary !== null
2311
+ listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
2338
2312
  ? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
2339
2313
  : undefined,
2340
2314
  name: (0, smithy_client_1.expectString)(output.name),
2341
- recommendationSet: output.recommendationSet !== undefined && output.recommendationSet !== null
2315
+ recommendationSet: output.recommendationSet != null
2342
2316
  ? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
2343
2317
  : undefined,
2344
2318
  serverType: (0, smithy_client_1.expectString)(output.serverType),
2345
2319
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2346
- systemInfo: output.systemInfo !== undefined && output.systemInfo !== null
2347
- ? deserializeAws_restJson1SystemInfo(output.systemInfo, context)
2348
- : undefined,
2320
+ systemInfo: output.systemInfo != null ? deserializeAws_restJson1SystemInfo(output.systemInfo, context) : undefined,
2349
2321
  };
2350
2322
  };
2351
2323
  const deserializeAws_restJson1ServerDetails = (output, context) => {
@@ -2374,7 +2346,7 @@ const deserializeAws_restJson1ServerStrategy = (output, context) => {
2374
2346
  return {
2375
2347
  isPreferred: (0, smithy_client_1.expectBoolean)(output.isPreferred),
2376
2348
  numberOfApplicationComponents: (0, smithy_client_1.expectInt32)(output.numberOfApplicationComponents),
2377
- recommendation: output.recommendation !== undefined && output.recommendation !== null
2349
+ recommendation: output.recommendation != null
2378
2350
  ? deserializeAws_restJson1RecommendationSet(output.recommendation, context)
2379
2351
  : undefined,
2380
2352
  status: (0, smithy_client_1.expectString)(output.status),
@@ -2414,12 +2386,10 @@ const deserializeAws_restJson1SystemInfo = (output, context) => {
2414
2386
  return {
2415
2387
  cpuArchitecture: (0, smithy_client_1.expectString)(output.cpuArchitecture),
2416
2388
  fileSystemType: (0, smithy_client_1.expectString)(output.fileSystemType),
2417
- networkInfoList: output.networkInfoList !== undefined && output.networkInfoList !== null
2389
+ networkInfoList: output.networkInfoList != null
2418
2390
  ? deserializeAws_restJson1NetworkInfoList(output.networkInfoList, context)
2419
2391
  : undefined,
2420
- osInfo: output.osInfo !== undefined && output.osInfo !== null
2421
- ? deserializeAws_restJson1OSInfo(output.osInfo, context)
2422
- : undefined,
2392
+ osInfo: output.osInfo != null ? deserializeAws_restJson1OSInfo(output.osInfo, context) : undefined,
2423
2393
  };
2424
2394
  };
2425
2395
  const deserializeAws_restJson1TargetDatabaseEngines = (output, context) => {
@@ -2489,5 +2459,4 @@ const loadRestJsonErrorCode = (output, data) => {
2489
2459
  if (data["__type"] !== undefined) {
2490
2460
  return sanitizeErrorCode(data["__type"]);
2491
2461
  }
2492
- return "";
2493
2462
  };