@aws-sdk/client-datasync 3.119.0 → 3.128.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.
@@ -466,8 +466,7 @@ const deserializeAws_json1_1CancelTaskExecutionCommandError = async (output, con
466
466
  body: await parseBody(output.body, context),
467
467
  };
468
468
  let response;
469
- let errorCode = "UnknownError";
470
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
469
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
471
470
  switch (errorCode) {
472
471
  case "InternalException":
473
472
  case "com.amazonaws.datasync#InternalException":
@@ -477,10 +476,12 @@ const deserializeAws_json1_1CancelTaskExecutionCommandError = async (output, con
477
476
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
478
477
  default:
479
478
  const parsedBody = parsedOutput.body;
479
+ const $metadata = deserializeMetadata(output);
480
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
480
481
  response = new DataSyncServiceException_1.DataSyncServiceException({
481
- name: parsedBody.code || parsedBody.Code || errorCode,
482
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
482
483
  $fault: "client",
483
- $metadata: deserializeMetadata(output),
484
+ $metadata,
484
485
  });
485
486
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
486
487
  }
@@ -505,8 +506,7 @@ const deserializeAws_json1_1CreateAgentCommandError = async (output, context) =>
505
506
  body: await parseBody(output.body, context),
506
507
  };
507
508
  let response;
508
- let errorCode = "UnknownError";
509
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
509
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
510
510
  switch (errorCode) {
511
511
  case "InternalException":
512
512
  case "com.amazonaws.datasync#InternalException":
@@ -516,10 +516,12 @@ const deserializeAws_json1_1CreateAgentCommandError = async (output, context) =>
516
516
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
517
517
  default:
518
518
  const parsedBody = parsedOutput.body;
519
+ const $metadata = deserializeMetadata(output);
520
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
519
521
  response = new DataSyncServiceException_1.DataSyncServiceException({
520
- name: parsedBody.code || parsedBody.Code || errorCode,
522
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
521
523
  $fault: "client",
522
- $metadata: deserializeMetadata(output),
524
+ $metadata,
523
525
  });
524
526
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
525
527
  }
@@ -544,8 +546,7 @@ const deserializeAws_json1_1CreateLocationEfsCommandError = async (output, conte
544
546
  body: await parseBody(output.body, context),
545
547
  };
546
548
  let response;
547
- let errorCode = "UnknownError";
548
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
549
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
549
550
  switch (errorCode) {
550
551
  case "InternalException":
551
552
  case "com.amazonaws.datasync#InternalException":
@@ -555,10 +556,12 @@ const deserializeAws_json1_1CreateLocationEfsCommandError = async (output, conte
555
556
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
556
557
  default:
557
558
  const parsedBody = parsedOutput.body;
559
+ const $metadata = deserializeMetadata(output);
560
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
558
561
  response = new DataSyncServiceException_1.DataSyncServiceException({
559
- name: parsedBody.code || parsedBody.Code || errorCode,
562
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
560
563
  $fault: "client",
561
- $metadata: deserializeMetadata(output),
564
+ $metadata,
562
565
  });
563
566
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
564
567
  }
@@ -583,8 +586,7 @@ const deserializeAws_json1_1CreateLocationFsxLustreCommandError = async (output,
583
586
  body: await parseBody(output.body, context),
584
587
  };
585
588
  let response;
586
- let errorCode = "UnknownError";
587
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
589
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
588
590
  switch (errorCode) {
589
591
  case "InternalException":
590
592
  case "com.amazonaws.datasync#InternalException":
@@ -594,10 +596,12 @@ const deserializeAws_json1_1CreateLocationFsxLustreCommandError = async (output,
594
596
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
595
597
  default:
596
598
  const parsedBody = parsedOutput.body;
599
+ const $metadata = deserializeMetadata(output);
600
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
597
601
  response = new DataSyncServiceException_1.DataSyncServiceException({
598
- name: parsedBody.code || parsedBody.Code || errorCode,
602
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
599
603
  $fault: "client",
600
- $metadata: deserializeMetadata(output),
604
+ $metadata,
601
605
  });
602
606
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
603
607
  }
@@ -622,8 +626,7 @@ const deserializeAws_json1_1CreateLocationFsxOntapCommandError = async (output,
622
626
  body: await parseBody(output.body, context),
623
627
  };
624
628
  let response;
625
- let errorCode = "UnknownError";
626
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
629
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
627
630
  switch (errorCode) {
628
631
  case "InternalException":
629
632
  case "com.amazonaws.datasync#InternalException":
@@ -633,10 +636,12 @@ const deserializeAws_json1_1CreateLocationFsxOntapCommandError = async (output,
633
636
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
634
637
  default:
635
638
  const parsedBody = parsedOutput.body;
639
+ const $metadata = deserializeMetadata(output);
640
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
636
641
  response = new DataSyncServiceException_1.DataSyncServiceException({
637
- name: parsedBody.code || parsedBody.Code || errorCode,
642
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
638
643
  $fault: "client",
639
- $metadata: deserializeMetadata(output),
644
+ $metadata,
640
645
  });
641
646
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
642
647
  }
@@ -661,8 +666,7 @@ const deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = async (output
661
666
  body: await parseBody(output.body, context),
662
667
  };
663
668
  let response;
664
- let errorCode = "UnknownError";
665
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
669
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
666
670
  switch (errorCode) {
667
671
  case "InternalException":
668
672
  case "com.amazonaws.datasync#InternalException":
@@ -672,10 +676,12 @@ const deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = async (output
672
676
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
673
677
  default:
674
678
  const parsedBody = parsedOutput.body;
679
+ const $metadata = deserializeMetadata(output);
680
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
675
681
  response = new DataSyncServiceException_1.DataSyncServiceException({
676
- name: parsedBody.code || parsedBody.Code || errorCode,
682
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
677
683
  $fault: "client",
678
- $metadata: deserializeMetadata(output),
684
+ $metadata,
679
685
  });
680
686
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
681
687
  }
@@ -700,8 +706,7 @@ const deserializeAws_json1_1CreateLocationFsxWindowsCommandError = async (output
700
706
  body: await parseBody(output.body, context),
701
707
  };
702
708
  let response;
703
- let errorCode = "UnknownError";
704
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
709
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
705
710
  switch (errorCode) {
706
711
  case "InternalException":
707
712
  case "com.amazonaws.datasync#InternalException":
@@ -711,10 +716,12 @@ const deserializeAws_json1_1CreateLocationFsxWindowsCommandError = async (output
711
716
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
712
717
  default:
713
718
  const parsedBody = parsedOutput.body;
719
+ const $metadata = deserializeMetadata(output);
720
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
714
721
  response = new DataSyncServiceException_1.DataSyncServiceException({
715
- name: parsedBody.code || parsedBody.Code || errorCode,
722
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
716
723
  $fault: "client",
717
- $metadata: deserializeMetadata(output),
724
+ $metadata,
718
725
  });
719
726
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
720
727
  }
@@ -739,8 +746,7 @@ const deserializeAws_json1_1CreateLocationHdfsCommandError = async (output, cont
739
746
  body: await parseBody(output.body, context),
740
747
  };
741
748
  let response;
742
- let errorCode = "UnknownError";
743
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
749
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
744
750
  switch (errorCode) {
745
751
  case "InternalException":
746
752
  case "com.amazonaws.datasync#InternalException":
@@ -750,10 +756,12 @@ const deserializeAws_json1_1CreateLocationHdfsCommandError = async (output, cont
750
756
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
751
757
  default:
752
758
  const parsedBody = parsedOutput.body;
759
+ const $metadata = deserializeMetadata(output);
760
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
753
761
  response = new DataSyncServiceException_1.DataSyncServiceException({
754
- name: parsedBody.code || parsedBody.Code || errorCode,
762
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
755
763
  $fault: "client",
756
- $metadata: deserializeMetadata(output),
764
+ $metadata,
757
765
  });
758
766
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
759
767
  }
@@ -778,8 +786,7 @@ const deserializeAws_json1_1CreateLocationNfsCommandError = async (output, conte
778
786
  body: await parseBody(output.body, context),
779
787
  };
780
788
  let response;
781
- let errorCode = "UnknownError";
782
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
789
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
783
790
  switch (errorCode) {
784
791
  case "InternalException":
785
792
  case "com.amazonaws.datasync#InternalException":
@@ -789,10 +796,12 @@ const deserializeAws_json1_1CreateLocationNfsCommandError = async (output, conte
789
796
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
790
797
  default:
791
798
  const parsedBody = parsedOutput.body;
799
+ const $metadata = deserializeMetadata(output);
800
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
792
801
  response = new DataSyncServiceException_1.DataSyncServiceException({
793
- name: parsedBody.code || parsedBody.Code || errorCode,
802
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
794
803
  $fault: "client",
795
- $metadata: deserializeMetadata(output),
804
+ $metadata,
796
805
  });
797
806
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
798
807
  }
@@ -817,8 +826,7 @@ const deserializeAws_json1_1CreateLocationObjectStorageCommandError = async (out
817
826
  body: await parseBody(output.body, context),
818
827
  };
819
828
  let response;
820
- let errorCode = "UnknownError";
821
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
829
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
822
830
  switch (errorCode) {
823
831
  case "InternalException":
824
832
  case "com.amazonaws.datasync#InternalException":
@@ -828,10 +836,12 @@ const deserializeAws_json1_1CreateLocationObjectStorageCommandError = async (out
828
836
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
829
837
  default:
830
838
  const parsedBody = parsedOutput.body;
839
+ const $metadata = deserializeMetadata(output);
840
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
831
841
  response = new DataSyncServiceException_1.DataSyncServiceException({
832
- name: parsedBody.code || parsedBody.Code || errorCode,
842
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
833
843
  $fault: "client",
834
- $metadata: deserializeMetadata(output),
844
+ $metadata,
835
845
  });
836
846
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
837
847
  }
@@ -856,8 +866,7 @@ const deserializeAws_json1_1CreateLocationS3CommandError = async (output, contex
856
866
  body: await parseBody(output.body, context),
857
867
  };
858
868
  let response;
859
- let errorCode = "UnknownError";
860
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
869
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
861
870
  switch (errorCode) {
862
871
  case "InternalException":
863
872
  case "com.amazonaws.datasync#InternalException":
@@ -867,10 +876,12 @@ const deserializeAws_json1_1CreateLocationS3CommandError = async (output, contex
867
876
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
868
877
  default:
869
878
  const parsedBody = parsedOutput.body;
879
+ const $metadata = deserializeMetadata(output);
880
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
870
881
  response = new DataSyncServiceException_1.DataSyncServiceException({
871
- name: parsedBody.code || parsedBody.Code || errorCode,
882
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
872
883
  $fault: "client",
873
- $metadata: deserializeMetadata(output),
884
+ $metadata,
874
885
  });
875
886
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
876
887
  }
@@ -895,8 +906,7 @@ const deserializeAws_json1_1CreateLocationSmbCommandError = async (output, conte
895
906
  body: await parseBody(output.body, context),
896
907
  };
897
908
  let response;
898
- let errorCode = "UnknownError";
899
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
909
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
900
910
  switch (errorCode) {
901
911
  case "InternalException":
902
912
  case "com.amazonaws.datasync#InternalException":
@@ -906,10 +916,12 @@ const deserializeAws_json1_1CreateLocationSmbCommandError = async (output, conte
906
916
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
907
917
  default:
908
918
  const parsedBody = parsedOutput.body;
919
+ const $metadata = deserializeMetadata(output);
920
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
909
921
  response = new DataSyncServiceException_1.DataSyncServiceException({
910
- name: parsedBody.code || parsedBody.Code || errorCode,
922
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
911
923
  $fault: "client",
912
- $metadata: deserializeMetadata(output),
924
+ $metadata,
913
925
  });
914
926
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
915
927
  }
@@ -934,8 +946,7 @@ const deserializeAws_json1_1CreateTaskCommandError = async (output, context) =>
934
946
  body: await parseBody(output.body, context),
935
947
  };
936
948
  let response;
937
- let errorCode = "UnknownError";
938
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
949
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
939
950
  switch (errorCode) {
940
951
  case "InternalException":
941
952
  case "com.amazonaws.datasync#InternalException":
@@ -945,10 +956,12 @@ const deserializeAws_json1_1CreateTaskCommandError = async (output, context) =>
945
956
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
946
957
  default:
947
958
  const parsedBody = parsedOutput.body;
959
+ const $metadata = deserializeMetadata(output);
960
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
948
961
  response = new DataSyncServiceException_1.DataSyncServiceException({
949
- name: parsedBody.code || parsedBody.Code || errorCode,
962
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
950
963
  $fault: "client",
951
- $metadata: deserializeMetadata(output),
964
+ $metadata,
952
965
  });
953
966
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
954
967
  }
@@ -973,8 +986,7 @@ const deserializeAws_json1_1DeleteAgentCommandError = async (output, context) =>
973
986
  body: await parseBody(output.body, context),
974
987
  };
975
988
  let response;
976
- let errorCode = "UnknownError";
977
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
989
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
978
990
  switch (errorCode) {
979
991
  case "InternalException":
980
992
  case "com.amazonaws.datasync#InternalException":
@@ -984,10 +996,12 @@ const deserializeAws_json1_1DeleteAgentCommandError = async (output, context) =>
984
996
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
985
997
  default:
986
998
  const parsedBody = parsedOutput.body;
999
+ const $metadata = deserializeMetadata(output);
1000
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
987
1001
  response = new DataSyncServiceException_1.DataSyncServiceException({
988
- name: parsedBody.code || parsedBody.Code || errorCode,
1002
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
989
1003
  $fault: "client",
990
- $metadata: deserializeMetadata(output),
1004
+ $metadata,
991
1005
  });
992
1006
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
993
1007
  }
@@ -1012,8 +1026,7 @@ const deserializeAws_json1_1DeleteLocationCommandError = async (output, context)
1012
1026
  body: await parseBody(output.body, context),
1013
1027
  };
1014
1028
  let response;
1015
- let errorCode = "UnknownError";
1016
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1029
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1017
1030
  switch (errorCode) {
1018
1031
  case "InternalException":
1019
1032
  case "com.amazonaws.datasync#InternalException":
@@ -1023,10 +1036,12 @@ const deserializeAws_json1_1DeleteLocationCommandError = async (output, context)
1023
1036
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1024
1037
  default:
1025
1038
  const parsedBody = parsedOutput.body;
1039
+ const $metadata = deserializeMetadata(output);
1040
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1026
1041
  response = new DataSyncServiceException_1.DataSyncServiceException({
1027
- name: parsedBody.code || parsedBody.Code || errorCode,
1042
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1028
1043
  $fault: "client",
1029
- $metadata: deserializeMetadata(output),
1044
+ $metadata,
1030
1045
  });
1031
1046
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1032
1047
  }
@@ -1051,8 +1066,7 @@ const deserializeAws_json1_1DeleteTaskCommandError = async (output, context) =>
1051
1066
  body: await parseBody(output.body, context),
1052
1067
  };
1053
1068
  let response;
1054
- let errorCode = "UnknownError";
1055
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1069
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1056
1070
  switch (errorCode) {
1057
1071
  case "InternalException":
1058
1072
  case "com.amazonaws.datasync#InternalException":
@@ -1062,10 +1076,12 @@ const deserializeAws_json1_1DeleteTaskCommandError = async (output, context) =>
1062
1076
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1063
1077
  default:
1064
1078
  const parsedBody = parsedOutput.body;
1079
+ const $metadata = deserializeMetadata(output);
1080
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1065
1081
  response = new DataSyncServiceException_1.DataSyncServiceException({
1066
- name: parsedBody.code || parsedBody.Code || errorCode,
1082
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1067
1083
  $fault: "client",
1068
- $metadata: deserializeMetadata(output),
1084
+ $metadata,
1069
1085
  });
1070
1086
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1071
1087
  }
@@ -1090,8 +1106,7 @@ const deserializeAws_json1_1DescribeAgentCommandError = async (output, context)
1090
1106
  body: await parseBody(output.body, context),
1091
1107
  };
1092
1108
  let response;
1093
- let errorCode = "UnknownError";
1094
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1109
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1095
1110
  switch (errorCode) {
1096
1111
  case "InternalException":
1097
1112
  case "com.amazonaws.datasync#InternalException":
@@ -1101,10 +1116,12 @@ const deserializeAws_json1_1DescribeAgentCommandError = async (output, context)
1101
1116
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1102
1117
  default:
1103
1118
  const parsedBody = parsedOutput.body;
1119
+ const $metadata = deserializeMetadata(output);
1120
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1104
1121
  response = new DataSyncServiceException_1.DataSyncServiceException({
1105
- name: parsedBody.code || parsedBody.Code || errorCode,
1122
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1106
1123
  $fault: "client",
1107
- $metadata: deserializeMetadata(output),
1124
+ $metadata,
1108
1125
  });
1109
1126
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1110
1127
  }
@@ -1129,8 +1146,7 @@ const deserializeAws_json1_1DescribeLocationEfsCommandError = async (output, con
1129
1146
  body: await parseBody(output.body, context),
1130
1147
  };
1131
1148
  let response;
1132
- let errorCode = "UnknownError";
1133
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1149
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1134
1150
  switch (errorCode) {
1135
1151
  case "InternalException":
1136
1152
  case "com.amazonaws.datasync#InternalException":
@@ -1140,10 +1156,12 @@ const deserializeAws_json1_1DescribeLocationEfsCommandError = async (output, con
1140
1156
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1141
1157
  default:
1142
1158
  const parsedBody = parsedOutput.body;
1159
+ const $metadata = deserializeMetadata(output);
1160
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1143
1161
  response = new DataSyncServiceException_1.DataSyncServiceException({
1144
- name: parsedBody.code || parsedBody.Code || errorCode,
1162
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1145
1163
  $fault: "client",
1146
- $metadata: deserializeMetadata(output),
1164
+ $metadata,
1147
1165
  });
1148
1166
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1149
1167
  }
@@ -1168,8 +1186,7 @@ const deserializeAws_json1_1DescribeLocationFsxLustreCommandError = async (outpu
1168
1186
  body: await parseBody(output.body, context),
1169
1187
  };
1170
1188
  let response;
1171
- let errorCode = "UnknownError";
1172
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1189
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1173
1190
  switch (errorCode) {
1174
1191
  case "InternalException":
1175
1192
  case "com.amazonaws.datasync#InternalException":
@@ -1179,10 +1196,12 @@ const deserializeAws_json1_1DescribeLocationFsxLustreCommandError = async (outpu
1179
1196
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1180
1197
  default:
1181
1198
  const parsedBody = parsedOutput.body;
1199
+ const $metadata = deserializeMetadata(output);
1200
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1182
1201
  response = new DataSyncServiceException_1.DataSyncServiceException({
1183
- name: parsedBody.code || parsedBody.Code || errorCode,
1202
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1184
1203
  $fault: "client",
1185
- $metadata: deserializeMetadata(output),
1204
+ $metadata,
1186
1205
  });
1187
1206
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1188
1207
  }
@@ -1207,8 +1226,7 @@ const deserializeAws_json1_1DescribeLocationFsxOntapCommandError = async (output
1207
1226
  body: await parseBody(output.body, context),
1208
1227
  };
1209
1228
  let response;
1210
- let errorCode = "UnknownError";
1211
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1229
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1212
1230
  switch (errorCode) {
1213
1231
  case "InternalException":
1214
1232
  case "com.amazonaws.datasync#InternalException":
@@ -1218,10 +1236,12 @@ const deserializeAws_json1_1DescribeLocationFsxOntapCommandError = async (output
1218
1236
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1219
1237
  default:
1220
1238
  const parsedBody = parsedOutput.body;
1239
+ const $metadata = deserializeMetadata(output);
1240
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1221
1241
  response = new DataSyncServiceException_1.DataSyncServiceException({
1222
- name: parsedBody.code || parsedBody.Code || errorCode,
1242
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1223
1243
  $fault: "client",
1224
- $metadata: deserializeMetadata(output),
1244
+ $metadata,
1225
1245
  });
1226
1246
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1227
1247
  }
@@ -1246,8 +1266,7 @@ const deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = async (outp
1246
1266
  body: await parseBody(output.body, context),
1247
1267
  };
1248
1268
  let response;
1249
- let errorCode = "UnknownError";
1250
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1269
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1251
1270
  switch (errorCode) {
1252
1271
  case "InternalException":
1253
1272
  case "com.amazonaws.datasync#InternalException":
@@ -1257,10 +1276,12 @@ const deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = async (outp
1257
1276
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1258
1277
  default:
1259
1278
  const parsedBody = parsedOutput.body;
1279
+ const $metadata = deserializeMetadata(output);
1280
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1260
1281
  response = new DataSyncServiceException_1.DataSyncServiceException({
1261
- name: parsedBody.code || parsedBody.Code || errorCode,
1282
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1262
1283
  $fault: "client",
1263
- $metadata: deserializeMetadata(output),
1284
+ $metadata,
1264
1285
  });
1265
1286
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1266
1287
  }
@@ -1285,8 +1306,7 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = async (outp
1285
1306
  body: await parseBody(output.body, context),
1286
1307
  };
1287
1308
  let response;
1288
- let errorCode = "UnknownError";
1289
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1309
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1290
1310
  switch (errorCode) {
1291
1311
  case "InternalException":
1292
1312
  case "com.amazonaws.datasync#InternalException":
@@ -1296,10 +1316,12 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = async (outp
1296
1316
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1297
1317
  default:
1298
1318
  const parsedBody = parsedOutput.body;
1319
+ const $metadata = deserializeMetadata(output);
1320
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1299
1321
  response = new DataSyncServiceException_1.DataSyncServiceException({
1300
- name: parsedBody.code || parsedBody.Code || errorCode,
1322
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1301
1323
  $fault: "client",
1302
- $metadata: deserializeMetadata(output),
1324
+ $metadata,
1303
1325
  });
1304
1326
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1305
1327
  }
@@ -1324,8 +1346,7 @@ const deserializeAws_json1_1DescribeLocationHdfsCommandError = async (output, co
1324
1346
  body: await parseBody(output.body, context),
1325
1347
  };
1326
1348
  let response;
1327
- let errorCode = "UnknownError";
1328
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1349
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1329
1350
  switch (errorCode) {
1330
1351
  case "InternalException":
1331
1352
  case "com.amazonaws.datasync#InternalException":
@@ -1335,10 +1356,12 @@ const deserializeAws_json1_1DescribeLocationHdfsCommandError = async (output, co
1335
1356
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1336
1357
  default:
1337
1358
  const parsedBody = parsedOutput.body;
1359
+ const $metadata = deserializeMetadata(output);
1360
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1338
1361
  response = new DataSyncServiceException_1.DataSyncServiceException({
1339
- name: parsedBody.code || parsedBody.Code || errorCode,
1362
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1340
1363
  $fault: "client",
1341
- $metadata: deserializeMetadata(output),
1364
+ $metadata,
1342
1365
  });
1343
1366
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1344
1367
  }
@@ -1363,8 +1386,7 @@ const deserializeAws_json1_1DescribeLocationNfsCommandError = async (output, con
1363
1386
  body: await parseBody(output.body, context),
1364
1387
  };
1365
1388
  let response;
1366
- let errorCode = "UnknownError";
1367
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1389
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1368
1390
  switch (errorCode) {
1369
1391
  case "InternalException":
1370
1392
  case "com.amazonaws.datasync#InternalException":
@@ -1374,10 +1396,12 @@ const deserializeAws_json1_1DescribeLocationNfsCommandError = async (output, con
1374
1396
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1375
1397
  default:
1376
1398
  const parsedBody = parsedOutput.body;
1399
+ const $metadata = deserializeMetadata(output);
1400
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1377
1401
  response = new DataSyncServiceException_1.DataSyncServiceException({
1378
- name: parsedBody.code || parsedBody.Code || errorCode,
1402
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1379
1403
  $fault: "client",
1380
- $metadata: deserializeMetadata(output),
1404
+ $metadata,
1381
1405
  });
1382
1406
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1383
1407
  }
@@ -1402,8 +1426,7 @@ const deserializeAws_json1_1DescribeLocationObjectStorageCommandError = async (o
1402
1426
  body: await parseBody(output.body, context),
1403
1427
  };
1404
1428
  let response;
1405
- let errorCode = "UnknownError";
1406
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1429
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1407
1430
  switch (errorCode) {
1408
1431
  case "InternalException":
1409
1432
  case "com.amazonaws.datasync#InternalException":
@@ -1413,10 +1436,12 @@ const deserializeAws_json1_1DescribeLocationObjectStorageCommandError = async (o
1413
1436
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1414
1437
  default:
1415
1438
  const parsedBody = parsedOutput.body;
1439
+ const $metadata = deserializeMetadata(output);
1440
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1416
1441
  response = new DataSyncServiceException_1.DataSyncServiceException({
1417
- name: parsedBody.code || parsedBody.Code || errorCode,
1442
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1418
1443
  $fault: "client",
1419
- $metadata: deserializeMetadata(output),
1444
+ $metadata,
1420
1445
  });
1421
1446
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1422
1447
  }
@@ -1441,8 +1466,7 @@ const deserializeAws_json1_1DescribeLocationS3CommandError = async (output, cont
1441
1466
  body: await parseBody(output.body, context),
1442
1467
  };
1443
1468
  let response;
1444
- let errorCode = "UnknownError";
1445
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1469
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1446
1470
  switch (errorCode) {
1447
1471
  case "InternalException":
1448
1472
  case "com.amazonaws.datasync#InternalException":
@@ -1452,10 +1476,12 @@ const deserializeAws_json1_1DescribeLocationS3CommandError = async (output, cont
1452
1476
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1453
1477
  default:
1454
1478
  const parsedBody = parsedOutput.body;
1479
+ const $metadata = deserializeMetadata(output);
1480
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1455
1481
  response = new DataSyncServiceException_1.DataSyncServiceException({
1456
- name: parsedBody.code || parsedBody.Code || errorCode,
1482
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1457
1483
  $fault: "client",
1458
- $metadata: deserializeMetadata(output),
1484
+ $metadata,
1459
1485
  });
1460
1486
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1461
1487
  }
@@ -1480,8 +1506,7 @@ const deserializeAws_json1_1DescribeLocationSmbCommandError = async (output, con
1480
1506
  body: await parseBody(output.body, context),
1481
1507
  };
1482
1508
  let response;
1483
- let errorCode = "UnknownError";
1484
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1509
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1485
1510
  switch (errorCode) {
1486
1511
  case "InternalException":
1487
1512
  case "com.amazonaws.datasync#InternalException":
@@ -1491,10 +1516,12 @@ const deserializeAws_json1_1DescribeLocationSmbCommandError = async (output, con
1491
1516
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1492
1517
  default:
1493
1518
  const parsedBody = parsedOutput.body;
1519
+ const $metadata = deserializeMetadata(output);
1520
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1494
1521
  response = new DataSyncServiceException_1.DataSyncServiceException({
1495
- name: parsedBody.code || parsedBody.Code || errorCode,
1522
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1496
1523
  $fault: "client",
1497
- $metadata: deserializeMetadata(output),
1524
+ $metadata,
1498
1525
  });
1499
1526
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1500
1527
  }
@@ -1519,8 +1546,7 @@ const deserializeAws_json1_1DescribeTaskCommandError = async (output, context) =
1519
1546
  body: await parseBody(output.body, context),
1520
1547
  };
1521
1548
  let response;
1522
- let errorCode = "UnknownError";
1523
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1549
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1524
1550
  switch (errorCode) {
1525
1551
  case "InternalException":
1526
1552
  case "com.amazonaws.datasync#InternalException":
@@ -1530,10 +1556,12 @@ const deserializeAws_json1_1DescribeTaskCommandError = async (output, context) =
1530
1556
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1531
1557
  default:
1532
1558
  const parsedBody = parsedOutput.body;
1559
+ const $metadata = deserializeMetadata(output);
1560
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1533
1561
  response = new DataSyncServiceException_1.DataSyncServiceException({
1534
- name: parsedBody.code || parsedBody.Code || errorCode,
1562
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1535
1563
  $fault: "client",
1536
- $metadata: deserializeMetadata(output),
1564
+ $metadata,
1537
1565
  });
1538
1566
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1539
1567
  }
@@ -1558,8 +1586,7 @@ const deserializeAws_json1_1DescribeTaskExecutionCommandError = async (output, c
1558
1586
  body: await parseBody(output.body, context),
1559
1587
  };
1560
1588
  let response;
1561
- let errorCode = "UnknownError";
1562
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1589
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1563
1590
  switch (errorCode) {
1564
1591
  case "InternalException":
1565
1592
  case "com.amazonaws.datasync#InternalException":
@@ -1569,10 +1596,12 @@ const deserializeAws_json1_1DescribeTaskExecutionCommandError = async (output, c
1569
1596
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1570
1597
  default:
1571
1598
  const parsedBody = parsedOutput.body;
1599
+ const $metadata = deserializeMetadata(output);
1600
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1572
1601
  response = new DataSyncServiceException_1.DataSyncServiceException({
1573
- name: parsedBody.code || parsedBody.Code || errorCode,
1602
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1574
1603
  $fault: "client",
1575
- $metadata: deserializeMetadata(output),
1604
+ $metadata,
1576
1605
  });
1577
1606
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1578
1607
  }
@@ -1597,8 +1626,7 @@ const deserializeAws_json1_1ListAgentsCommandError = async (output, context) =>
1597
1626
  body: await parseBody(output.body, context),
1598
1627
  };
1599
1628
  let response;
1600
- let errorCode = "UnknownError";
1601
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1629
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1602
1630
  switch (errorCode) {
1603
1631
  case "InternalException":
1604
1632
  case "com.amazonaws.datasync#InternalException":
@@ -1608,10 +1636,12 @@ const deserializeAws_json1_1ListAgentsCommandError = async (output, context) =>
1608
1636
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1609
1637
  default:
1610
1638
  const parsedBody = parsedOutput.body;
1639
+ const $metadata = deserializeMetadata(output);
1640
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1611
1641
  response = new DataSyncServiceException_1.DataSyncServiceException({
1612
- name: parsedBody.code || parsedBody.Code || errorCode,
1642
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1613
1643
  $fault: "client",
1614
- $metadata: deserializeMetadata(output),
1644
+ $metadata,
1615
1645
  });
1616
1646
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1617
1647
  }
@@ -1636,8 +1666,7 @@ const deserializeAws_json1_1ListLocationsCommandError = async (output, context)
1636
1666
  body: await parseBody(output.body, context),
1637
1667
  };
1638
1668
  let response;
1639
- let errorCode = "UnknownError";
1640
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1669
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1641
1670
  switch (errorCode) {
1642
1671
  case "InternalException":
1643
1672
  case "com.amazonaws.datasync#InternalException":
@@ -1647,10 +1676,12 @@ const deserializeAws_json1_1ListLocationsCommandError = async (output, context)
1647
1676
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1648
1677
  default:
1649
1678
  const parsedBody = parsedOutput.body;
1679
+ const $metadata = deserializeMetadata(output);
1680
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1650
1681
  response = new DataSyncServiceException_1.DataSyncServiceException({
1651
- name: parsedBody.code || parsedBody.Code || errorCode,
1682
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1652
1683
  $fault: "client",
1653
- $metadata: deserializeMetadata(output),
1684
+ $metadata,
1654
1685
  });
1655
1686
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1656
1687
  }
@@ -1675,8 +1706,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
1675
1706
  body: await parseBody(output.body, context),
1676
1707
  };
1677
1708
  let response;
1678
- let errorCode = "UnknownError";
1679
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1709
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1680
1710
  switch (errorCode) {
1681
1711
  case "InternalException":
1682
1712
  case "com.amazonaws.datasync#InternalException":
@@ -1686,10 +1716,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
1686
1716
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1687
1717
  default:
1688
1718
  const parsedBody = parsedOutput.body;
1719
+ const $metadata = deserializeMetadata(output);
1720
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1689
1721
  response = new DataSyncServiceException_1.DataSyncServiceException({
1690
- name: parsedBody.code || parsedBody.Code || errorCode,
1722
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1691
1723
  $fault: "client",
1692
- $metadata: deserializeMetadata(output),
1724
+ $metadata,
1693
1725
  });
1694
1726
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1695
1727
  }
@@ -1714,8 +1746,7 @@ const deserializeAws_json1_1ListTaskExecutionsCommandError = async (output, cont
1714
1746
  body: await parseBody(output.body, context),
1715
1747
  };
1716
1748
  let response;
1717
- let errorCode = "UnknownError";
1718
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1749
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1719
1750
  switch (errorCode) {
1720
1751
  case "InternalException":
1721
1752
  case "com.amazonaws.datasync#InternalException":
@@ -1725,10 +1756,12 @@ const deserializeAws_json1_1ListTaskExecutionsCommandError = async (output, cont
1725
1756
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1726
1757
  default:
1727
1758
  const parsedBody = parsedOutput.body;
1759
+ const $metadata = deserializeMetadata(output);
1760
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1728
1761
  response = new DataSyncServiceException_1.DataSyncServiceException({
1729
- name: parsedBody.code || parsedBody.Code || errorCode,
1762
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1730
1763
  $fault: "client",
1731
- $metadata: deserializeMetadata(output),
1764
+ $metadata,
1732
1765
  });
1733
1766
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1734
1767
  }
@@ -1753,8 +1786,7 @@ const deserializeAws_json1_1ListTasksCommandError = async (output, context) => {
1753
1786
  body: await parseBody(output.body, context),
1754
1787
  };
1755
1788
  let response;
1756
- let errorCode = "UnknownError";
1757
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1789
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1758
1790
  switch (errorCode) {
1759
1791
  case "InternalException":
1760
1792
  case "com.amazonaws.datasync#InternalException":
@@ -1764,10 +1796,12 @@ const deserializeAws_json1_1ListTasksCommandError = async (output, context) => {
1764
1796
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1765
1797
  default:
1766
1798
  const parsedBody = parsedOutput.body;
1799
+ const $metadata = deserializeMetadata(output);
1800
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1767
1801
  response = new DataSyncServiceException_1.DataSyncServiceException({
1768
- name: parsedBody.code || parsedBody.Code || errorCode,
1802
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1769
1803
  $fault: "client",
1770
- $metadata: deserializeMetadata(output),
1804
+ $metadata,
1771
1805
  });
1772
1806
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1773
1807
  }
@@ -1792,8 +1826,7 @@ const deserializeAws_json1_1StartTaskExecutionCommandError = async (output, cont
1792
1826
  body: await parseBody(output.body, context),
1793
1827
  };
1794
1828
  let response;
1795
- let errorCode = "UnknownError";
1796
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1829
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1797
1830
  switch (errorCode) {
1798
1831
  case "InternalException":
1799
1832
  case "com.amazonaws.datasync#InternalException":
@@ -1803,10 +1836,12 @@ const deserializeAws_json1_1StartTaskExecutionCommandError = async (output, cont
1803
1836
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1804
1837
  default:
1805
1838
  const parsedBody = parsedOutput.body;
1839
+ const $metadata = deserializeMetadata(output);
1840
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1806
1841
  response = new DataSyncServiceException_1.DataSyncServiceException({
1807
- name: parsedBody.code || parsedBody.Code || errorCode,
1842
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1808
1843
  $fault: "client",
1809
- $metadata: deserializeMetadata(output),
1844
+ $metadata,
1810
1845
  });
1811
1846
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1812
1847
  }
@@ -1831,8 +1866,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
1831
1866
  body: await parseBody(output.body, context),
1832
1867
  };
1833
1868
  let response;
1834
- let errorCode = "UnknownError";
1835
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1869
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1836
1870
  switch (errorCode) {
1837
1871
  case "InternalException":
1838
1872
  case "com.amazonaws.datasync#InternalException":
@@ -1842,10 +1876,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
1842
1876
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1843
1877
  default:
1844
1878
  const parsedBody = parsedOutput.body;
1879
+ const $metadata = deserializeMetadata(output);
1880
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1845
1881
  response = new DataSyncServiceException_1.DataSyncServiceException({
1846
- name: parsedBody.code || parsedBody.Code || errorCode,
1882
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1847
1883
  $fault: "client",
1848
- $metadata: deserializeMetadata(output),
1884
+ $metadata,
1849
1885
  });
1850
1886
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1851
1887
  }
@@ -1870,8 +1906,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
1870
1906
  body: await parseBody(output.body, context),
1871
1907
  };
1872
1908
  let response;
1873
- let errorCode = "UnknownError";
1874
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1909
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1875
1910
  switch (errorCode) {
1876
1911
  case "InternalException":
1877
1912
  case "com.amazonaws.datasync#InternalException":
@@ -1881,10 +1916,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
1881
1916
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1882
1917
  default:
1883
1918
  const parsedBody = parsedOutput.body;
1919
+ const $metadata = deserializeMetadata(output);
1920
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1884
1921
  response = new DataSyncServiceException_1.DataSyncServiceException({
1885
- name: parsedBody.code || parsedBody.Code || errorCode,
1922
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1886
1923
  $fault: "client",
1887
- $metadata: deserializeMetadata(output),
1924
+ $metadata,
1888
1925
  });
1889
1926
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1890
1927
  }
@@ -1909,8 +1946,7 @@ const deserializeAws_json1_1UpdateAgentCommandError = async (output, context) =>
1909
1946
  body: await parseBody(output.body, context),
1910
1947
  };
1911
1948
  let response;
1912
- let errorCode = "UnknownError";
1913
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1949
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1914
1950
  switch (errorCode) {
1915
1951
  case "InternalException":
1916
1952
  case "com.amazonaws.datasync#InternalException":
@@ -1920,10 +1956,12 @@ const deserializeAws_json1_1UpdateAgentCommandError = async (output, context) =>
1920
1956
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1921
1957
  default:
1922
1958
  const parsedBody = parsedOutput.body;
1959
+ const $metadata = deserializeMetadata(output);
1960
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1923
1961
  response = new DataSyncServiceException_1.DataSyncServiceException({
1924
- name: parsedBody.code || parsedBody.Code || errorCode,
1962
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1925
1963
  $fault: "client",
1926
- $metadata: deserializeMetadata(output),
1964
+ $metadata,
1927
1965
  });
1928
1966
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1929
1967
  }
@@ -1948,8 +1986,7 @@ const deserializeAws_json1_1UpdateLocationHdfsCommandError = async (output, cont
1948
1986
  body: await parseBody(output.body, context),
1949
1987
  };
1950
1988
  let response;
1951
- let errorCode = "UnknownError";
1952
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1989
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1953
1990
  switch (errorCode) {
1954
1991
  case "InternalException":
1955
1992
  case "com.amazonaws.datasync#InternalException":
@@ -1959,10 +1996,12 @@ const deserializeAws_json1_1UpdateLocationHdfsCommandError = async (output, cont
1959
1996
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1960
1997
  default:
1961
1998
  const parsedBody = parsedOutput.body;
1999
+ const $metadata = deserializeMetadata(output);
2000
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1962
2001
  response = new DataSyncServiceException_1.DataSyncServiceException({
1963
- name: parsedBody.code || parsedBody.Code || errorCode,
2002
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1964
2003
  $fault: "client",
1965
- $metadata: deserializeMetadata(output),
2004
+ $metadata,
1966
2005
  });
1967
2006
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1968
2007
  }
@@ -1987,8 +2026,7 @@ const deserializeAws_json1_1UpdateLocationNfsCommandError = async (output, conte
1987
2026
  body: await parseBody(output.body, context),
1988
2027
  };
1989
2028
  let response;
1990
- let errorCode = "UnknownError";
1991
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2029
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1992
2030
  switch (errorCode) {
1993
2031
  case "InternalException":
1994
2032
  case "com.amazonaws.datasync#InternalException":
@@ -1998,10 +2036,12 @@ const deserializeAws_json1_1UpdateLocationNfsCommandError = async (output, conte
1998
2036
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1999
2037
  default:
2000
2038
  const parsedBody = parsedOutput.body;
2039
+ const $metadata = deserializeMetadata(output);
2040
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2001
2041
  response = new DataSyncServiceException_1.DataSyncServiceException({
2002
- name: parsedBody.code || parsedBody.Code || errorCode,
2042
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2003
2043
  $fault: "client",
2004
- $metadata: deserializeMetadata(output),
2044
+ $metadata,
2005
2045
  });
2006
2046
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2007
2047
  }
@@ -2026,8 +2066,7 @@ const deserializeAws_json1_1UpdateLocationObjectStorageCommandError = async (out
2026
2066
  body: await parseBody(output.body, context),
2027
2067
  };
2028
2068
  let response;
2029
- let errorCode = "UnknownError";
2030
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2069
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2031
2070
  switch (errorCode) {
2032
2071
  case "InternalException":
2033
2072
  case "com.amazonaws.datasync#InternalException":
@@ -2037,10 +2076,12 @@ const deserializeAws_json1_1UpdateLocationObjectStorageCommandError = async (out
2037
2076
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2038
2077
  default:
2039
2078
  const parsedBody = parsedOutput.body;
2079
+ const $metadata = deserializeMetadata(output);
2080
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2040
2081
  response = new DataSyncServiceException_1.DataSyncServiceException({
2041
- name: parsedBody.code || parsedBody.Code || errorCode,
2082
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2042
2083
  $fault: "client",
2043
- $metadata: deserializeMetadata(output),
2084
+ $metadata,
2044
2085
  });
2045
2086
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2046
2087
  }
@@ -2065,8 +2106,7 @@ const deserializeAws_json1_1UpdateLocationSmbCommandError = async (output, conte
2065
2106
  body: await parseBody(output.body, context),
2066
2107
  };
2067
2108
  let response;
2068
- let errorCode = "UnknownError";
2069
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2109
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2070
2110
  switch (errorCode) {
2071
2111
  case "InternalException":
2072
2112
  case "com.amazonaws.datasync#InternalException":
@@ -2076,10 +2116,12 @@ const deserializeAws_json1_1UpdateLocationSmbCommandError = async (output, conte
2076
2116
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2077
2117
  default:
2078
2118
  const parsedBody = parsedOutput.body;
2119
+ const $metadata = deserializeMetadata(output);
2120
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2079
2121
  response = new DataSyncServiceException_1.DataSyncServiceException({
2080
- name: parsedBody.code || parsedBody.Code || errorCode,
2122
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2081
2123
  $fault: "client",
2082
- $metadata: deserializeMetadata(output),
2124
+ $metadata,
2083
2125
  });
2084
2126
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2085
2127
  }
@@ -2104,8 +2146,7 @@ const deserializeAws_json1_1UpdateTaskCommandError = async (output, context) =>
2104
2146
  body: await parseBody(output.body, context),
2105
2147
  };
2106
2148
  let response;
2107
- let errorCode = "UnknownError";
2108
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2149
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2109
2150
  switch (errorCode) {
2110
2151
  case "InternalException":
2111
2152
  case "com.amazonaws.datasync#InternalException":
@@ -2115,10 +2156,12 @@ const deserializeAws_json1_1UpdateTaskCommandError = async (output, context) =>
2115
2156
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2116
2157
  default:
2117
2158
  const parsedBody = parsedOutput.body;
2159
+ const $metadata = deserializeMetadata(output);
2160
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2118
2161
  response = new DataSyncServiceException_1.DataSyncServiceException({
2119
- name: parsedBody.code || parsedBody.Code || errorCode,
2162
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2120
2163
  $fault: "client",
2121
- $metadata: deserializeMetadata(output),
2164
+ $metadata,
2122
2165
  });
2123
2166
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2124
2167
  }
@@ -2143,8 +2186,7 @@ const deserializeAws_json1_1UpdateTaskExecutionCommandError = async (output, con
2143
2186
  body: await parseBody(output.body, context),
2144
2187
  };
2145
2188
  let response;
2146
- let errorCode = "UnknownError";
2147
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2189
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2148
2190
  switch (errorCode) {
2149
2191
  case "InternalException":
2150
2192
  case "com.amazonaws.datasync#InternalException":
@@ -2154,10 +2196,12 @@ const deserializeAws_json1_1UpdateTaskExecutionCommandError = async (output, con
2154
2196
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2155
2197
  default:
2156
2198
  const parsedBody = parsedOutput.body;
2199
+ const $metadata = deserializeMetadata(output);
2200
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2157
2201
  response = new DataSyncServiceException_1.DataSyncServiceException({
2158
- name: parsedBody.code || parsedBody.Code || errorCode,
2202
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2159
2203
  $fault: "client",
2160
- $metadata: deserializeMetadata(output),
2204
+ $metadata,
2161
2205
  });
2162
2206
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2163
2207
  }
@@ -2192,303 +2236,243 @@ const serializeAws_json1_1AgentArnList = (input, context) => {
2192
2236
  };
2193
2237
  const serializeAws_json1_1CancelTaskExecutionRequest = (input, context) => {
2194
2238
  return {
2195
- ...(input.TaskExecutionArn !== undefined &&
2196
- input.TaskExecutionArn !== null && { TaskExecutionArn: input.TaskExecutionArn }),
2239
+ ...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
2197
2240
  };
2198
2241
  };
2199
2242
  const serializeAws_json1_1CreateAgentRequest = (input, context) => {
2200
2243
  return {
2201
- ...(input.ActivationKey !== undefined && input.ActivationKey !== null && { ActivationKey: input.ActivationKey }),
2202
- ...(input.AgentName !== undefined && input.AgentName !== null && { AgentName: input.AgentName }),
2203
- ...(input.SecurityGroupArns !== undefined &&
2204
- input.SecurityGroupArns !== null && {
2244
+ ...(input.ActivationKey != null && { ActivationKey: input.ActivationKey }),
2245
+ ...(input.AgentName != null && { AgentName: input.AgentName }),
2246
+ ...(input.SecurityGroupArns != null && {
2205
2247
  SecurityGroupArns: serializeAws_json1_1PLSecurityGroupArnList(input.SecurityGroupArns, context),
2206
2248
  }),
2207
- ...(input.SubnetArns !== undefined &&
2208
- input.SubnetArns !== null && { SubnetArns: serializeAws_json1_1PLSubnetArnList(input.SubnetArns, context) }),
2209
- ...(input.Tags !== undefined &&
2210
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2211
- ...(input.VpcEndpointId !== undefined && input.VpcEndpointId !== null && { VpcEndpointId: input.VpcEndpointId }),
2249
+ ...(input.SubnetArns != null && { SubnetArns: serializeAws_json1_1PLSubnetArnList(input.SubnetArns, context) }),
2250
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2251
+ ...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
2212
2252
  };
2213
2253
  };
2214
2254
  const serializeAws_json1_1CreateLocationEfsRequest = (input, context) => {
2215
2255
  return {
2216
- ...(input.AccessPointArn !== undefined &&
2217
- input.AccessPointArn !== null && { AccessPointArn: input.AccessPointArn }),
2218
- ...(input.Ec2Config !== undefined &&
2219
- input.Ec2Config !== null && { Ec2Config: serializeAws_json1_1Ec2Config(input.Ec2Config, context) }),
2220
- ...(input.EfsFilesystemArn !== undefined &&
2221
- input.EfsFilesystemArn !== null && { EfsFilesystemArn: input.EfsFilesystemArn }),
2222
- ...(input.FileSystemAccessRoleArn !== undefined &&
2223
- input.FileSystemAccessRoleArn !== null && { FileSystemAccessRoleArn: input.FileSystemAccessRoleArn }),
2224
- ...(input.InTransitEncryption !== undefined &&
2225
- input.InTransitEncryption !== null && { InTransitEncryption: input.InTransitEncryption }),
2226
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2227
- ...(input.Tags !== undefined &&
2228
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2256
+ ...(input.AccessPointArn != null && { AccessPointArn: input.AccessPointArn }),
2257
+ ...(input.Ec2Config != null && { Ec2Config: serializeAws_json1_1Ec2Config(input.Ec2Config, context) }),
2258
+ ...(input.EfsFilesystemArn != null && { EfsFilesystemArn: input.EfsFilesystemArn }),
2259
+ ...(input.FileSystemAccessRoleArn != null && { FileSystemAccessRoleArn: input.FileSystemAccessRoleArn }),
2260
+ ...(input.InTransitEncryption != null && { InTransitEncryption: input.InTransitEncryption }),
2261
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2262
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2229
2263
  };
2230
2264
  };
2231
2265
  const serializeAws_json1_1CreateLocationFsxLustreRequest = (input, context) => {
2232
2266
  return {
2233
- ...(input.FsxFilesystemArn !== undefined &&
2234
- input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn }),
2235
- ...(input.SecurityGroupArns !== undefined &&
2236
- input.SecurityGroupArns !== null && {
2267
+ ...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
2268
+ ...(input.SecurityGroupArns != null && {
2237
2269
  SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
2238
2270
  }),
2239
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2240
- ...(input.Tags !== undefined &&
2241
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2271
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2272
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2242
2273
  };
2243
2274
  };
2244
2275
  const serializeAws_json1_1CreateLocationFsxOntapRequest = (input, context) => {
2245
2276
  return {
2246
- ...(input.Protocol !== undefined &&
2247
- input.Protocol !== null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) }),
2248
- ...(input.SecurityGroupArns !== undefined &&
2249
- input.SecurityGroupArns !== null && {
2277
+ ...(input.Protocol != null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) }),
2278
+ ...(input.SecurityGroupArns != null && {
2250
2279
  SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
2251
2280
  }),
2252
- ...(input.StorageVirtualMachineArn !== undefined &&
2253
- input.StorageVirtualMachineArn !== null && { StorageVirtualMachineArn: input.StorageVirtualMachineArn }),
2254
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2255
- ...(input.Tags !== undefined &&
2256
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2281
+ ...(input.StorageVirtualMachineArn != null && { StorageVirtualMachineArn: input.StorageVirtualMachineArn }),
2282
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2283
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2257
2284
  };
2258
2285
  };
2259
2286
  const serializeAws_json1_1CreateLocationFsxOpenZfsRequest = (input, context) => {
2260
2287
  return {
2261
- ...(input.FsxFilesystemArn !== undefined &&
2262
- input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn }),
2263
- ...(input.Protocol !== undefined &&
2264
- input.Protocol !== null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) }),
2265
- ...(input.SecurityGroupArns !== undefined &&
2266
- input.SecurityGroupArns !== null && {
2288
+ ...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
2289
+ ...(input.Protocol != null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) }),
2290
+ ...(input.SecurityGroupArns != null && {
2267
2291
  SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
2268
2292
  }),
2269
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2270
- ...(input.Tags !== undefined &&
2271
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2293
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2294
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2272
2295
  };
2273
2296
  };
2274
2297
  const serializeAws_json1_1CreateLocationFsxWindowsRequest = (input, context) => {
2275
2298
  return {
2276
- ...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
2277
- ...(input.FsxFilesystemArn !== undefined &&
2278
- input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn }),
2279
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
2280
- ...(input.SecurityGroupArns !== undefined &&
2281
- input.SecurityGroupArns !== null && {
2299
+ ...(input.Domain != null && { Domain: input.Domain }),
2300
+ ...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
2301
+ ...(input.Password != null && { Password: input.Password }),
2302
+ ...(input.SecurityGroupArns != null && {
2282
2303
  SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
2283
2304
  }),
2284
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2285
- ...(input.Tags !== undefined &&
2286
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2287
- ...(input.User !== undefined && input.User !== null && { User: input.User }),
2305
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2306
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2307
+ ...(input.User != null && { User: input.User }),
2288
2308
  };
2289
2309
  };
2290
2310
  const serializeAws_json1_1CreateLocationHdfsRequest = (input, context) => {
2291
2311
  return {
2292
- ...(input.AgentArns !== undefined &&
2293
- input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2294
- ...(input.AuthenticationType !== undefined &&
2295
- input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
2296
- ...(input.BlockSize !== undefined && input.BlockSize !== null && { BlockSize: input.BlockSize }),
2297
- ...(input.KerberosKeytab !== undefined &&
2298
- input.KerberosKeytab !== null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) }),
2299
- ...(input.KerberosKrb5Conf !== undefined &&
2300
- input.KerberosKrb5Conf !== null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) }),
2301
- ...(input.KerberosPrincipal !== undefined &&
2302
- input.KerberosPrincipal !== null && { KerberosPrincipal: input.KerberosPrincipal }),
2303
- ...(input.KmsKeyProviderUri !== undefined &&
2304
- input.KmsKeyProviderUri !== null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
2305
- ...(input.NameNodes !== undefined &&
2306
- input.NameNodes !== null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) }),
2307
- ...(input.QopConfiguration !== undefined &&
2308
- input.QopConfiguration !== null && {
2312
+ ...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2313
+ ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
2314
+ ...(input.BlockSize != null && { BlockSize: input.BlockSize }),
2315
+ ...(input.KerberosKeytab != null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) }),
2316
+ ...(input.KerberosKrb5Conf != null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) }),
2317
+ ...(input.KerberosPrincipal != null && { KerberosPrincipal: input.KerberosPrincipal }),
2318
+ ...(input.KmsKeyProviderUri != null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
2319
+ ...(input.NameNodes != null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) }),
2320
+ ...(input.QopConfiguration != null && {
2309
2321
  QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
2310
2322
  }),
2311
- ...(input.ReplicationFactor !== undefined &&
2312
- input.ReplicationFactor !== null && { ReplicationFactor: input.ReplicationFactor }),
2313
- ...(input.SimpleUser !== undefined && input.SimpleUser !== null && { SimpleUser: input.SimpleUser }),
2314
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2315
- ...(input.Tags !== undefined &&
2316
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2323
+ ...(input.ReplicationFactor != null && { ReplicationFactor: input.ReplicationFactor }),
2324
+ ...(input.SimpleUser != null && { SimpleUser: input.SimpleUser }),
2325
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2326
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2317
2327
  };
2318
2328
  };
2319
2329
  const serializeAws_json1_1CreateLocationNfsRequest = (input, context) => {
2320
2330
  return {
2321
- ...(input.MountOptions !== undefined &&
2322
- input.MountOptions !== null && {
2331
+ ...(input.MountOptions != null && {
2323
2332
  MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
2324
2333
  }),
2325
- ...(input.OnPremConfig !== undefined &&
2326
- input.OnPremConfig !== null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) }),
2327
- ...(input.ServerHostname !== undefined &&
2328
- input.ServerHostname !== null && { ServerHostname: input.ServerHostname }),
2329
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2330
- ...(input.Tags !== undefined &&
2331
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2334
+ ...(input.OnPremConfig != null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) }),
2335
+ ...(input.ServerHostname != null && { ServerHostname: input.ServerHostname }),
2336
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2337
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2332
2338
  };
2333
2339
  };
2334
2340
  const serializeAws_json1_1CreateLocationObjectStorageRequest = (input, context) => {
2335
2341
  return {
2336
- ...(input.AccessKey !== undefined && input.AccessKey !== null && { AccessKey: input.AccessKey }),
2337
- ...(input.AgentArns !== undefined &&
2338
- input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2339
- ...(input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName }),
2340
- ...(input.SecretKey !== undefined && input.SecretKey !== null && { SecretKey: input.SecretKey }),
2341
- ...(input.ServerHostname !== undefined &&
2342
- input.ServerHostname !== null && { ServerHostname: input.ServerHostname }),
2343
- ...(input.ServerPort !== undefined && input.ServerPort !== null && { ServerPort: input.ServerPort }),
2344
- ...(input.ServerProtocol !== undefined &&
2345
- input.ServerProtocol !== null && { ServerProtocol: input.ServerProtocol }),
2346
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2347
- ...(input.Tags !== undefined &&
2348
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2342
+ ...(input.AccessKey != null && { AccessKey: input.AccessKey }),
2343
+ ...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2344
+ ...(input.BucketName != null && { BucketName: input.BucketName }),
2345
+ ...(input.SecretKey != null && { SecretKey: input.SecretKey }),
2346
+ ...(input.ServerHostname != null && { ServerHostname: input.ServerHostname }),
2347
+ ...(input.ServerPort != null && { ServerPort: input.ServerPort }),
2348
+ ...(input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol }),
2349
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2350
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2349
2351
  };
2350
2352
  };
2351
2353
  const serializeAws_json1_1CreateLocationS3Request = (input, context) => {
2352
2354
  return {
2353
- ...(input.AgentArns !== undefined &&
2354
- input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2355
- ...(input.S3BucketArn !== undefined && input.S3BucketArn !== null && { S3BucketArn: input.S3BucketArn }),
2356
- ...(input.S3Config !== undefined &&
2357
- input.S3Config !== null && { S3Config: serializeAws_json1_1S3Config(input.S3Config, context) }),
2358
- ...(input.S3StorageClass !== undefined &&
2359
- input.S3StorageClass !== null && { S3StorageClass: input.S3StorageClass }),
2360
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2361
- ...(input.Tags !== undefined &&
2362
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2355
+ ...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2356
+ ...(input.S3BucketArn != null && { S3BucketArn: input.S3BucketArn }),
2357
+ ...(input.S3Config != null && { S3Config: serializeAws_json1_1S3Config(input.S3Config, context) }),
2358
+ ...(input.S3StorageClass != null && { S3StorageClass: input.S3StorageClass }),
2359
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2360
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2363
2361
  };
2364
2362
  };
2365
2363
  const serializeAws_json1_1CreateLocationSmbRequest = (input, context) => {
2366
2364
  return {
2367
- ...(input.AgentArns !== undefined &&
2368
- input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2369
- ...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
2370
- ...(input.MountOptions !== undefined &&
2371
- input.MountOptions !== null && {
2365
+ ...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2366
+ ...(input.Domain != null && { Domain: input.Domain }),
2367
+ ...(input.MountOptions != null && {
2372
2368
  MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
2373
2369
  }),
2374
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
2375
- ...(input.ServerHostname !== undefined &&
2376
- input.ServerHostname !== null && { ServerHostname: input.ServerHostname }),
2377
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2378
- ...(input.Tags !== undefined &&
2379
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2380
- ...(input.User !== undefined && input.User !== null && { User: input.User }),
2370
+ ...(input.Password != null && { Password: input.Password }),
2371
+ ...(input.ServerHostname != null && { ServerHostname: input.ServerHostname }),
2372
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2373
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2374
+ ...(input.User != null && { User: input.User }),
2381
2375
  };
2382
2376
  };
2383
2377
  const serializeAws_json1_1CreateTaskRequest = (input, context) => {
2384
2378
  return {
2385
- ...(input.CloudWatchLogGroupArn !== undefined &&
2386
- input.CloudWatchLogGroupArn !== null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn }),
2387
- ...(input.DestinationLocationArn !== undefined &&
2388
- input.DestinationLocationArn !== null && { DestinationLocationArn: input.DestinationLocationArn }),
2389
- ...(input.Excludes !== undefined &&
2390
- input.Excludes !== null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) }),
2391
- ...(input.Includes !== undefined &&
2392
- input.Includes !== null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) }),
2393
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2394
- ...(input.Options !== undefined &&
2395
- input.Options !== null && { Options: serializeAws_json1_1Options(input.Options, context) }),
2396
- ...(input.Schedule !== undefined &&
2397
- input.Schedule !== null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) }),
2398
- ...(input.SourceLocationArn !== undefined &&
2399
- input.SourceLocationArn !== null && { SourceLocationArn: input.SourceLocationArn }),
2400
- ...(input.Tags !== undefined &&
2401
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2379
+ ...(input.CloudWatchLogGroupArn != null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn }),
2380
+ ...(input.DestinationLocationArn != null && { DestinationLocationArn: input.DestinationLocationArn }),
2381
+ ...(input.Excludes != null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) }),
2382
+ ...(input.Includes != null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) }),
2383
+ ...(input.Name != null && { Name: input.Name }),
2384
+ ...(input.Options != null && { Options: serializeAws_json1_1Options(input.Options, context) }),
2385
+ ...(input.Schedule != null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) }),
2386
+ ...(input.SourceLocationArn != null && { SourceLocationArn: input.SourceLocationArn }),
2387
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2402
2388
  };
2403
2389
  };
2404
2390
  const serializeAws_json1_1DeleteAgentRequest = (input, context) => {
2405
2391
  return {
2406
- ...(input.AgentArn !== undefined && input.AgentArn !== null && { AgentArn: input.AgentArn }),
2392
+ ...(input.AgentArn != null && { AgentArn: input.AgentArn }),
2407
2393
  };
2408
2394
  };
2409
2395
  const serializeAws_json1_1DeleteLocationRequest = (input, context) => {
2410
2396
  return {
2411
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2397
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2412
2398
  };
2413
2399
  };
2414
2400
  const serializeAws_json1_1DeleteTaskRequest = (input, context) => {
2415
2401
  return {
2416
- ...(input.TaskArn !== undefined && input.TaskArn !== null && { TaskArn: input.TaskArn }),
2402
+ ...(input.TaskArn != null && { TaskArn: input.TaskArn }),
2417
2403
  };
2418
2404
  };
2419
2405
  const serializeAws_json1_1DescribeAgentRequest = (input, context) => {
2420
2406
  return {
2421
- ...(input.AgentArn !== undefined && input.AgentArn !== null && { AgentArn: input.AgentArn }),
2407
+ ...(input.AgentArn != null && { AgentArn: input.AgentArn }),
2422
2408
  };
2423
2409
  };
2424
2410
  const serializeAws_json1_1DescribeLocationEfsRequest = (input, context) => {
2425
2411
  return {
2426
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2412
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2427
2413
  };
2428
2414
  };
2429
2415
  const serializeAws_json1_1DescribeLocationFsxLustreRequest = (input, context) => {
2430
2416
  return {
2431
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2417
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2432
2418
  };
2433
2419
  };
2434
2420
  const serializeAws_json1_1DescribeLocationFsxOntapRequest = (input, context) => {
2435
2421
  return {
2436
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2422
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2437
2423
  };
2438
2424
  };
2439
2425
  const serializeAws_json1_1DescribeLocationFsxOpenZfsRequest = (input, context) => {
2440
2426
  return {
2441
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2427
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2442
2428
  };
2443
2429
  };
2444
2430
  const serializeAws_json1_1DescribeLocationFsxWindowsRequest = (input, context) => {
2445
2431
  return {
2446
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2432
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2447
2433
  };
2448
2434
  };
2449
2435
  const serializeAws_json1_1DescribeLocationHdfsRequest = (input, context) => {
2450
2436
  return {
2451
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2437
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2452
2438
  };
2453
2439
  };
2454
2440
  const serializeAws_json1_1DescribeLocationNfsRequest = (input, context) => {
2455
2441
  return {
2456
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2442
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2457
2443
  };
2458
2444
  };
2459
2445
  const serializeAws_json1_1DescribeLocationObjectStorageRequest = (input, context) => {
2460
2446
  return {
2461
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2447
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2462
2448
  };
2463
2449
  };
2464
2450
  const serializeAws_json1_1DescribeLocationS3Request = (input, context) => {
2465
2451
  return {
2466
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2452
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2467
2453
  };
2468
2454
  };
2469
2455
  const serializeAws_json1_1DescribeLocationSmbRequest = (input, context) => {
2470
2456
  return {
2471
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2457
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2472
2458
  };
2473
2459
  };
2474
2460
  const serializeAws_json1_1DescribeTaskExecutionRequest = (input, context) => {
2475
2461
  return {
2476
- ...(input.TaskExecutionArn !== undefined &&
2477
- input.TaskExecutionArn !== null && { TaskExecutionArn: input.TaskExecutionArn }),
2462
+ ...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
2478
2463
  };
2479
2464
  };
2480
2465
  const serializeAws_json1_1DescribeTaskRequest = (input, context) => {
2481
2466
  return {
2482
- ...(input.TaskArn !== undefined && input.TaskArn !== null && { TaskArn: input.TaskArn }),
2467
+ ...(input.TaskArn != null && { TaskArn: input.TaskArn }),
2483
2468
  };
2484
2469
  };
2485
2470
  const serializeAws_json1_1Ec2Config = (input, context) => {
2486
2471
  return {
2487
- ...(input.SecurityGroupArns !== undefined &&
2488
- input.SecurityGroupArns !== null && {
2472
+ ...(input.SecurityGroupArns != null && {
2489
2473
  SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
2490
2474
  }),
2491
- ...(input.SubnetArn !== undefined && input.SubnetArn !== null && { SubnetArn: input.SubnetArn }),
2475
+ ...(input.SubnetArn != null && { SubnetArn: input.SubnetArn }),
2492
2476
  };
2493
2477
  };
2494
2478
  const serializeAws_json1_1Ec2SecurityGroupArnList = (input, context) => {
@@ -2513,8 +2497,8 @@ const serializeAws_json1_1FilterList = (input, context) => {
2513
2497
  };
2514
2498
  const serializeAws_json1_1FilterRule = (input, context) => {
2515
2499
  return {
2516
- ...(input.FilterType !== undefined && input.FilterType !== null && { FilterType: input.FilterType }),
2517
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
2500
+ ...(input.FilterType != null && { FilterType: input.FilterType }),
2501
+ ...(input.Value != null && { Value: input.Value }),
2518
2502
  };
2519
2503
  };
2520
2504
  const serializeAws_json1_1FilterValues = (input, context) => {
@@ -2529,35 +2513,31 @@ const serializeAws_json1_1FilterValues = (input, context) => {
2529
2513
  };
2530
2514
  const serializeAws_json1_1FsxProtocol = (input, context) => {
2531
2515
  return {
2532
- ...(input.NFS !== undefined &&
2533
- input.NFS !== null && { NFS: serializeAws_json1_1FsxProtocolNfs(input.NFS, context) }),
2534
- ...(input.SMB !== undefined &&
2535
- input.SMB !== null && { SMB: serializeAws_json1_1FsxProtocolSmb(input.SMB, context) }),
2516
+ ...(input.NFS != null && { NFS: serializeAws_json1_1FsxProtocolNfs(input.NFS, context) }),
2517
+ ...(input.SMB != null && { SMB: serializeAws_json1_1FsxProtocolSmb(input.SMB, context) }),
2536
2518
  };
2537
2519
  };
2538
2520
  const serializeAws_json1_1FsxProtocolNfs = (input, context) => {
2539
2521
  return {
2540
- ...(input.MountOptions !== undefined &&
2541
- input.MountOptions !== null && {
2522
+ ...(input.MountOptions != null && {
2542
2523
  MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
2543
2524
  }),
2544
2525
  };
2545
2526
  };
2546
2527
  const serializeAws_json1_1FsxProtocolSmb = (input, context) => {
2547
2528
  return {
2548
- ...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
2549
- ...(input.MountOptions !== undefined &&
2550
- input.MountOptions !== null && {
2529
+ ...(input.Domain != null && { Domain: input.Domain }),
2530
+ ...(input.MountOptions != null && {
2551
2531
  MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
2552
2532
  }),
2553
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
2554
- ...(input.User !== undefined && input.User !== null && { User: input.User }),
2533
+ ...(input.Password != null && { Password: input.Password }),
2534
+ ...(input.User != null && { User: input.User }),
2555
2535
  };
2556
2536
  };
2557
2537
  const serializeAws_json1_1HdfsNameNode = (input, context) => {
2558
2538
  return {
2559
- ...(input.Hostname !== undefined && input.Hostname !== null && { Hostname: input.Hostname }),
2560
- ...(input.Port !== undefined && input.Port !== null && { Port: input.Port }),
2539
+ ...(input.Hostname != null && { Hostname: input.Hostname }),
2540
+ ...(input.Port != null && { Port: input.Port }),
2561
2541
  };
2562
2542
  };
2563
2543
  const serializeAws_json1_1HdfsNameNodeList = (input, context) => {
@@ -2582,46 +2562,43 @@ const serializeAws_json1_1InputTagList = (input, context) => {
2582
2562
  };
2583
2563
  const serializeAws_json1_1ListAgentsRequest = (input, context) => {
2584
2564
  return {
2585
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2586
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2565
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2566
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2587
2567
  };
2588
2568
  };
2589
2569
  const serializeAws_json1_1ListLocationsRequest = (input, context) => {
2590
2570
  return {
2591
- ...(input.Filters !== undefined &&
2592
- input.Filters !== null && { Filters: serializeAws_json1_1LocationFilters(input.Filters, context) }),
2593
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2594
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2571
+ ...(input.Filters != null && { Filters: serializeAws_json1_1LocationFilters(input.Filters, context) }),
2572
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2573
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2595
2574
  };
2596
2575
  };
2597
2576
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
2598
2577
  return {
2599
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2600
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2601
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
2578
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2579
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2580
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2602
2581
  };
2603
2582
  };
2604
2583
  const serializeAws_json1_1ListTaskExecutionsRequest = (input, context) => {
2605
2584
  return {
2606
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2607
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2608
- ...(input.TaskArn !== undefined && input.TaskArn !== null && { TaskArn: input.TaskArn }),
2585
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2586
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2587
+ ...(input.TaskArn != null && { TaskArn: input.TaskArn }),
2609
2588
  };
2610
2589
  };
2611
2590
  const serializeAws_json1_1ListTasksRequest = (input, context) => {
2612
2591
  return {
2613
- ...(input.Filters !== undefined &&
2614
- input.Filters !== null && { Filters: serializeAws_json1_1TaskFilters(input.Filters, context) }),
2615
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2616
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2592
+ ...(input.Filters != null && { Filters: serializeAws_json1_1TaskFilters(input.Filters, context) }),
2593
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2594
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2617
2595
  };
2618
2596
  };
2619
2597
  const serializeAws_json1_1LocationFilter = (input, context) => {
2620
2598
  return {
2621
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2622
- ...(input.Operator !== undefined && input.Operator !== null && { Operator: input.Operator }),
2623
- ...(input.Values !== undefined &&
2624
- input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }),
2599
+ ...(input.Name != null && { Name: input.Name }),
2600
+ ...(input.Operator != null && { Operator: input.Operator }),
2601
+ ...(input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }),
2625
2602
  };
2626
2603
  };
2627
2604
  const serializeAws_json1_1LocationFilters = (input, context) => {
@@ -2636,37 +2613,33 @@ const serializeAws_json1_1LocationFilters = (input, context) => {
2636
2613
  };
2637
2614
  const serializeAws_json1_1NfsMountOptions = (input, context) => {
2638
2615
  return {
2639
- ...(input.Version !== undefined && input.Version !== null && { Version: input.Version }),
2616
+ ...(input.Version != null && { Version: input.Version }),
2640
2617
  };
2641
2618
  };
2642
2619
  const serializeAws_json1_1OnPremConfig = (input, context) => {
2643
2620
  return {
2644
- ...(input.AgentArns !== undefined &&
2645
- input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2621
+ ...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2646
2622
  };
2647
2623
  };
2648
2624
  const serializeAws_json1_1Options = (input, context) => {
2649
2625
  return {
2650
- ...(input.Atime !== undefined && input.Atime !== null && { Atime: input.Atime }),
2651
- ...(input.BytesPerSecond !== undefined &&
2652
- input.BytesPerSecond !== null && { BytesPerSecond: input.BytesPerSecond }),
2653
- ...(input.Gid !== undefined && input.Gid !== null && { Gid: input.Gid }),
2654
- ...(input.LogLevel !== undefined && input.LogLevel !== null && { LogLevel: input.LogLevel }),
2655
- ...(input.Mtime !== undefined && input.Mtime !== null && { Mtime: input.Mtime }),
2656
- ...(input.ObjectTags !== undefined && input.ObjectTags !== null && { ObjectTags: input.ObjectTags }),
2657
- ...(input.OverwriteMode !== undefined && input.OverwriteMode !== null && { OverwriteMode: input.OverwriteMode }),
2658
- ...(input.PosixPermissions !== undefined &&
2659
- input.PosixPermissions !== null && { PosixPermissions: input.PosixPermissions }),
2660
- ...(input.PreserveDeletedFiles !== undefined &&
2661
- input.PreserveDeletedFiles !== null && { PreserveDeletedFiles: input.PreserveDeletedFiles }),
2662
- ...(input.PreserveDevices !== undefined &&
2663
- input.PreserveDevices !== null && { PreserveDevices: input.PreserveDevices }),
2664
- ...(input.SecurityDescriptorCopyFlags !== undefined &&
2665
- input.SecurityDescriptorCopyFlags !== null && { SecurityDescriptorCopyFlags: input.SecurityDescriptorCopyFlags }),
2666
- ...(input.TaskQueueing !== undefined && input.TaskQueueing !== null && { TaskQueueing: input.TaskQueueing }),
2667
- ...(input.TransferMode !== undefined && input.TransferMode !== null && { TransferMode: input.TransferMode }),
2668
- ...(input.Uid !== undefined && input.Uid !== null && { Uid: input.Uid }),
2669
- ...(input.VerifyMode !== undefined && input.VerifyMode !== null && { VerifyMode: input.VerifyMode }),
2626
+ ...(input.Atime != null && { Atime: input.Atime }),
2627
+ ...(input.BytesPerSecond != null && { BytesPerSecond: input.BytesPerSecond }),
2628
+ ...(input.Gid != null && { Gid: input.Gid }),
2629
+ ...(input.LogLevel != null && { LogLevel: input.LogLevel }),
2630
+ ...(input.Mtime != null && { Mtime: input.Mtime }),
2631
+ ...(input.ObjectTags != null && { ObjectTags: input.ObjectTags }),
2632
+ ...(input.OverwriteMode != null && { OverwriteMode: input.OverwriteMode }),
2633
+ ...(input.PosixPermissions != null && { PosixPermissions: input.PosixPermissions }),
2634
+ ...(input.PreserveDeletedFiles != null && { PreserveDeletedFiles: input.PreserveDeletedFiles }),
2635
+ ...(input.PreserveDevices != null && { PreserveDevices: input.PreserveDevices }),
2636
+ ...(input.SecurityDescriptorCopyFlags != null && {
2637
+ SecurityDescriptorCopyFlags: input.SecurityDescriptorCopyFlags,
2638
+ }),
2639
+ ...(input.TaskQueueing != null && { TaskQueueing: input.TaskQueueing }),
2640
+ ...(input.TransferMode != null && { TransferMode: input.TransferMode }),
2641
+ ...(input.Uid != null && { Uid: input.Uid }),
2642
+ ...(input.VerifyMode != null && { VerifyMode: input.VerifyMode }),
2670
2643
  };
2671
2644
  };
2672
2645
  const serializeAws_json1_1PLSecurityGroupArnList = (input, context) => {
@@ -2691,33 +2664,28 @@ const serializeAws_json1_1PLSubnetArnList = (input, context) => {
2691
2664
  };
2692
2665
  const serializeAws_json1_1QopConfiguration = (input, context) => {
2693
2666
  return {
2694
- ...(input.DataTransferProtection !== undefined &&
2695
- input.DataTransferProtection !== null && { DataTransferProtection: input.DataTransferProtection }),
2696
- ...(input.RpcProtection !== undefined && input.RpcProtection !== null && { RpcProtection: input.RpcProtection }),
2667
+ ...(input.DataTransferProtection != null && { DataTransferProtection: input.DataTransferProtection }),
2668
+ ...(input.RpcProtection != null && { RpcProtection: input.RpcProtection }),
2697
2669
  };
2698
2670
  };
2699
2671
  const serializeAws_json1_1S3Config = (input, context) => {
2700
2672
  return {
2701
- ...(input.BucketAccessRoleArn !== undefined &&
2702
- input.BucketAccessRoleArn !== null && { BucketAccessRoleArn: input.BucketAccessRoleArn }),
2673
+ ...(input.BucketAccessRoleArn != null && { BucketAccessRoleArn: input.BucketAccessRoleArn }),
2703
2674
  };
2704
2675
  };
2705
2676
  const serializeAws_json1_1SmbMountOptions = (input, context) => {
2706
2677
  return {
2707
- ...(input.Version !== undefined && input.Version !== null && { Version: input.Version }),
2678
+ ...(input.Version != null && { Version: input.Version }),
2708
2679
  };
2709
2680
  };
2710
2681
  const serializeAws_json1_1StartTaskExecutionRequest = (input, context) => {
2711
2682
  return {
2712
- ...(input.Excludes !== undefined &&
2713
- input.Excludes !== null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) }),
2714
- ...(input.Includes !== undefined &&
2715
- input.Includes !== null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) }),
2716
- ...(input.OverrideOptions !== undefined &&
2717
- input.OverrideOptions !== null && {
2683
+ ...(input.Excludes != null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) }),
2684
+ ...(input.Includes != null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) }),
2685
+ ...(input.OverrideOptions != null && {
2718
2686
  OverrideOptions: serializeAws_json1_1Options(input.OverrideOptions, context),
2719
2687
  }),
2720
- ...(input.TaskArn !== undefined && input.TaskArn !== null && { TaskArn: input.TaskArn }),
2688
+ ...(input.TaskArn != null && { TaskArn: input.TaskArn }),
2721
2689
  };
2722
2690
  };
2723
2691
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -2732,23 +2700,21 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
2732
2700
  };
2733
2701
  const serializeAws_json1_1TagListEntry = (input, context) => {
2734
2702
  return {
2735
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
2736
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
2703
+ ...(input.Key != null && { Key: input.Key }),
2704
+ ...(input.Value != null && { Value: input.Value }),
2737
2705
  };
2738
2706
  };
2739
2707
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
2740
2708
  return {
2741
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
2742
- ...(input.Tags !== undefined &&
2743
- input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2709
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2710
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
2744
2711
  };
2745
2712
  };
2746
2713
  const serializeAws_json1_1TaskFilter = (input, context) => {
2747
2714
  return {
2748
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2749
- ...(input.Operator !== undefined && input.Operator !== null && { Operator: input.Operator }),
2750
- ...(input.Values !== undefined &&
2751
- input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }),
2715
+ ...(input.Name != null && { Name: input.Name }),
2716
+ ...(input.Operator != null && { Operator: input.Operator }),
2717
+ ...(input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }),
2752
2718
  };
2753
2719
  };
2754
2720
  const serializeAws_json1_1TaskFilters = (input, context) => {
@@ -2763,113 +2729,89 @@ const serializeAws_json1_1TaskFilters = (input, context) => {
2763
2729
  };
2764
2730
  const serializeAws_json1_1TaskSchedule = (input, context) => {
2765
2731
  return {
2766
- ...(input.ScheduleExpression !== undefined &&
2767
- input.ScheduleExpression !== null && { ScheduleExpression: input.ScheduleExpression }),
2732
+ ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
2768
2733
  };
2769
2734
  };
2770
2735
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
2771
2736
  return {
2772
- ...(input.Keys !== undefined &&
2773
- input.Keys !== null && { Keys: serializeAws_json1_1TagKeyList(input.Keys, context) }),
2774
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
2737
+ ...(input.Keys != null && { Keys: serializeAws_json1_1TagKeyList(input.Keys, context) }),
2738
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2775
2739
  };
2776
2740
  };
2777
2741
  const serializeAws_json1_1UpdateAgentRequest = (input, context) => {
2778
2742
  return {
2779
- ...(input.AgentArn !== undefined && input.AgentArn !== null && { AgentArn: input.AgentArn }),
2780
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2743
+ ...(input.AgentArn != null && { AgentArn: input.AgentArn }),
2744
+ ...(input.Name != null && { Name: input.Name }),
2781
2745
  };
2782
2746
  };
2783
2747
  const serializeAws_json1_1UpdateLocationHdfsRequest = (input, context) => {
2784
2748
  return {
2785
- ...(input.AgentArns !== undefined &&
2786
- input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2787
- ...(input.AuthenticationType !== undefined &&
2788
- input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
2789
- ...(input.BlockSize !== undefined && input.BlockSize !== null && { BlockSize: input.BlockSize }),
2790
- ...(input.KerberosKeytab !== undefined &&
2791
- input.KerberosKeytab !== null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) }),
2792
- ...(input.KerberosKrb5Conf !== undefined &&
2793
- input.KerberosKrb5Conf !== null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) }),
2794
- ...(input.KerberosPrincipal !== undefined &&
2795
- input.KerberosPrincipal !== null && { KerberosPrincipal: input.KerberosPrincipal }),
2796
- ...(input.KmsKeyProviderUri !== undefined &&
2797
- input.KmsKeyProviderUri !== null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
2798
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2799
- ...(input.NameNodes !== undefined &&
2800
- input.NameNodes !== null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) }),
2801
- ...(input.QopConfiguration !== undefined &&
2802
- input.QopConfiguration !== null && {
2749
+ ...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2750
+ ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
2751
+ ...(input.BlockSize != null && { BlockSize: input.BlockSize }),
2752
+ ...(input.KerberosKeytab != null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) }),
2753
+ ...(input.KerberosKrb5Conf != null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) }),
2754
+ ...(input.KerberosPrincipal != null && { KerberosPrincipal: input.KerberosPrincipal }),
2755
+ ...(input.KmsKeyProviderUri != null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
2756
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2757
+ ...(input.NameNodes != null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) }),
2758
+ ...(input.QopConfiguration != null && {
2803
2759
  QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
2804
2760
  }),
2805
- ...(input.ReplicationFactor !== undefined &&
2806
- input.ReplicationFactor !== null && { ReplicationFactor: input.ReplicationFactor }),
2807
- ...(input.SimpleUser !== undefined && input.SimpleUser !== null && { SimpleUser: input.SimpleUser }),
2808
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2761
+ ...(input.ReplicationFactor != null && { ReplicationFactor: input.ReplicationFactor }),
2762
+ ...(input.SimpleUser != null && { SimpleUser: input.SimpleUser }),
2763
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2809
2764
  };
2810
2765
  };
2811
2766
  const serializeAws_json1_1UpdateLocationNfsRequest = (input, context) => {
2812
2767
  return {
2813
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2814
- ...(input.MountOptions !== undefined &&
2815
- input.MountOptions !== null && {
2768
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2769
+ ...(input.MountOptions != null && {
2816
2770
  MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
2817
2771
  }),
2818
- ...(input.OnPremConfig !== undefined &&
2819
- input.OnPremConfig !== null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) }),
2820
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2772
+ ...(input.OnPremConfig != null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) }),
2773
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2821
2774
  };
2822
2775
  };
2823
2776
  const serializeAws_json1_1UpdateLocationObjectStorageRequest = (input, context) => {
2824
2777
  return {
2825
- ...(input.AccessKey !== undefined && input.AccessKey !== null && { AccessKey: input.AccessKey }),
2826
- ...(input.AgentArns !== undefined &&
2827
- input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2828
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2829
- ...(input.SecretKey !== undefined && input.SecretKey !== null && { SecretKey: input.SecretKey }),
2830
- ...(input.ServerPort !== undefined && input.ServerPort !== null && { ServerPort: input.ServerPort }),
2831
- ...(input.ServerProtocol !== undefined &&
2832
- input.ServerProtocol !== null && { ServerProtocol: input.ServerProtocol }),
2833
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2778
+ ...(input.AccessKey != null && { AccessKey: input.AccessKey }),
2779
+ ...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2780
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2781
+ ...(input.SecretKey != null && { SecretKey: input.SecretKey }),
2782
+ ...(input.ServerPort != null && { ServerPort: input.ServerPort }),
2783
+ ...(input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol }),
2784
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2834
2785
  };
2835
2786
  };
2836
2787
  const serializeAws_json1_1UpdateLocationSmbRequest = (input, context) => {
2837
2788
  return {
2838
- ...(input.AgentArns !== undefined &&
2839
- input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2840
- ...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
2841
- ...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
2842
- ...(input.MountOptions !== undefined &&
2843
- input.MountOptions !== null && {
2789
+ ...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
2790
+ ...(input.Domain != null && { Domain: input.Domain }),
2791
+ ...(input.LocationArn != null && { LocationArn: input.LocationArn }),
2792
+ ...(input.MountOptions != null && {
2844
2793
  MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
2845
2794
  }),
2846
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
2847
- ...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
2848
- ...(input.User !== undefined && input.User !== null && { User: input.User }),
2795
+ ...(input.Password != null && { Password: input.Password }),
2796
+ ...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
2797
+ ...(input.User != null && { User: input.User }),
2849
2798
  };
2850
2799
  };
2851
2800
  const serializeAws_json1_1UpdateTaskExecutionRequest = (input, context) => {
2852
2801
  return {
2853
- ...(input.Options !== undefined &&
2854
- input.Options !== null && { Options: serializeAws_json1_1Options(input.Options, context) }),
2855
- ...(input.TaskExecutionArn !== undefined &&
2856
- input.TaskExecutionArn !== null && { TaskExecutionArn: input.TaskExecutionArn }),
2802
+ ...(input.Options != null && { Options: serializeAws_json1_1Options(input.Options, context) }),
2803
+ ...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
2857
2804
  };
2858
2805
  };
2859
2806
  const serializeAws_json1_1UpdateTaskRequest = (input, context) => {
2860
2807
  return {
2861
- ...(input.CloudWatchLogGroupArn !== undefined &&
2862
- input.CloudWatchLogGroupArn !== null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn }),
2863
- ...(input.Excludes !== undefined &&
2864
- input.Excludes !== null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) }),
2865
- ...(input.Includes !== undefined &&
2866
- input.Includes !== null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) }),
2867
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2868
- ...(input.Options !== undefined &&
2869
- input.Options !== null && { Options: serializeAws_json1_1Options(input.Options, context) }),
2870
- ...(input.Schedule !== undefined &&
2871
- input.Schedule !== null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) }),
2872
- ...(input.TaskArn !== undefined && input.TaskArn !== null && { TaskArn: input.TaskArn }),
2808
+ ...(input.CloudWatchLogGroupArn != null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn }),
2809
+ ...(input.Excludes != null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) }),
2810
+ ...(input.Includes != null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) }),
2811
+ ...(input.Name != null && { Name: input.Name }),
2812
+ ...(input.Options != null && { Options: serializeAws_json1_1Options(input.Options, context) }),
2813
+ ...(input.Schedule != null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) }),
2814
+ ...(input.TaskArn != null && { TaskArn: input.TaskArn }),
2873
2815
  };
2874
2816
  };
2875
2817
  const deserializeAws_json1_1AgentArnList = (output, context) => {
@@ -2976,15 +2918,15 @@ const deserializeAws_json1_1DeleteTaskResponse = (output, context) => {
2976
2918
  const deserializeAws_json1_1DescribeAgentResponse = (output, context) => {
2977
2919
  return {
2978
2920
  AgentArn: (0, smithy_client_1.expectString)(output.AgentArn),
2979
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
2921
+ CreationTime: output.CreationTime != null
2980
2922
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
2981
2923
  : undefined,
2982
2924
  EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
2983
- LastConnectionTime: output.LastConnectionTime !== undefined && output.LastConnectionTime !== null
2925
+ LastConnectionTime: output.LastConnectionTime != null
2984
2926
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastConnectionTime)))
2985
2927
  : undefined,
2986
2928
  Name: (0, smithy_client_1.expectString)(output.Name),
2987
- PrivateLinkConfig: output.PrivateLinkConfig !== undefined && output.PrivateLinkConfig !== null
2929
+ PrivateLinkConfig: output.PrivateLinkConfig != null
2988
2930
  ? deserializeAws_json1_1PrivateLinkConfig(output.PrivateLinkConfig, context)
2989
2931
  : undefined,
2990
2932
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -2993,12 +2935,10 @@ const deserializeAws_json1_1DescribeAgentResponse = (output, context) => {
2993
2935
  const deserializeAws_json1_1DescribeLocationEfsResponse = (output, context) => {
2994
2936
  return {
2995
2937
  AccessPointArn: (0, smithy_client_1.expectString)(output.AccessPointArn),
2996
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
2938
+ CreationTime: output.CreationTime != null
2997
2939
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
2998
2940
  : undefined,
2999
- Ec2Config: output.Ec2Config !== undefined && output.Ec2Config !== null
3000
- ? deserializeAws_json1_1Ec2Config(output.Ec2Config, context)
3001
- : undefined,
2941
+ Ec2Config: output.Ec2Config != null ? deserializeAws_json1_1Ec2Config(output.Ec2Config, context) : undefined,
3002
2942
  FileSystemAccessRoleArn: (0, smithy_client_1.expectString)(output.FileSystemAccessRoleArn),
3003
2943
  InTransitEncryption: (0, smithy_client_1.expectString)(output.InTransitEncryption),
3004
2944
  LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
@@ -3007,28 +2947,26 @@ const deserializeAws_json1_1DescribeLocationEfsResponse = (output, context) => {
3007
2947
  };
3008
2948
  const deserializeAws_json1_1DescribeLocationFsxLustreResponse = (output, context) => {
3009
2949
  return {
3010
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
2950
+ CreationTime: output.CreationTime != null
3011
2951
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3012
2952
  : undefined,
3013
2953
  LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
3014
2954
  LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
3015
- SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
2955
+ SecurityGroupArns: output.SecurityGroupArns != null
3016
2956
  ? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
3017
2957
  : undefined,
3018
2958
  };
3019
2959
  };
3020
2960
  const deserializeAws_json1_1DescribeLocationFsxOntapResponse = (output, context) => {
3021
2961
  return {
3022
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
2962
+ CreationTime: output.CreationTime != null
3023
2963
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3024
2964
  : undefined,
3025
2965
  FsxFilesystemArn: (0, smithy_client_1.expectString)(output.FsxFilesystemArn),
3026
2966
  LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
3027
2967
  LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
3028
- Protocol: output.Protocol !== undefined && output.Protocol !== null
3029
- ? deserializeAws_json1_1FsxProtocol(output.Protocol, context)
3030
- : undefined,
3031
- SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
2968
+ Protocol: output.Protocol != null ? deserializeAws_json1_1FsxProtocol(output.Protocol, context) : undefined,
2969
+ SecurityGroupArns: output.SecurityGroupArns != null
3032
2970
  ? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
3033
2971
  : undefined,
3034
2972
  StorageVirtualMachineArn: (0, smithy_client_1.expectString)(output.StorageVirtualMachineArn),
@@ -3036,28 +2974,26 @@ const deserializeAws_json1_1DescribeLocationFsxOntapResponse = (output, context)
3036
2974
  };
3037
2975
  const deserializeAws_json1_1DescribeLocationFsxOpenZfsResponse = (output, context) => {
3038
2976
  return {
3039
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
2977
+ CreationTime: output.CreationTime != null
3040
2978
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3041
2979
  : undefined,
3042
2980
  LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
3043
2981
  LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
3044
- Protocol: output.Protocol !== undefined && output.Protocol !== null
3045
- ? deserializeAws_json1_1FsxProtocol(output.Protocol, context)
3046
- : undefined,
3047
- SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
2982
+ Protocol: output.Protocol != null ? deserializeAws_json1_1FsxProtocol(output.Protocol, context) : undefined,
2983
+ SecurityGroupArns: output.SecurityGroupArns != null
3048
2984
  ? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
3049
2985
  : undefined,
3050
2986
  };
3051
2987
  };
3052
2988
  const deserializeAws_json1_1DescribeLocationFsxWindowsResponse = (output, context) => {
3053
2989
  return {
3054
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
2990
+ CreationTime: output.CreationTime != null
3055
2991
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3056
2992
  : undefined,
3057
2993
  Domain: (0, smithy_client_1.expectString)(output.Domain),
3058
2994
  LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
3059
2995
  LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
3060
- SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
2996
+ SecurityGroupArns: output.SecurityGroupArns != null
3061
2997
  ? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
3062
2998
  : undefined,
3063
2999
  User: (0, smithy_client_1.expectString)(output.User),
@@ -3065,22 +3001,18 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsResponse = (output, contex
3065
3001
  };
3066
3002
  const deserializeAws_json1_1DescribeLocationHdfsResponse = (output, context) => {
3067
3003
  return {
3068
- AgentArns: output.AgentArns !== undefined && output.AgentArns !== null
3069
- ? deserializeAws_json1_1AgentArnList(output.AgentArns, context)
3070
- : undefined,
3004
+ AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
3071
3005
  AuthenticationType: (0, smithy_client_1.expectString)(output.AuthenticationType),
3072
3006
  BlockSize: (0, smithy_client_1.expectInt32)(output.BlockSize),
3073
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3007
+ CreationTime: output.CreationTime != null
3074
3008
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3075
3009
  : undefined,
3076
3010
  KerberosPrincipal: (0, smithy_client_1.expectString)(output.KerberosPrincipal),
3077
3011
  KmsKeyProviderUri: (0, smithy_client_1.expectString)(output.KmsKeyProviderUri),
3078
3012
  LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
3079
3013
  LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
3080
- NameNodes: output.NameNodes !== undefined && output.NameNodes !== null
3081
- ? deserializeAws_json1_1HdfsNameNodeList(output.NameNodes, context)
3082
- : undefined,
3083
- QopConfiguration: output.QopConfiguration !== undefined && output.QopConfiguration !== null
3014
+ NameNodes: output.NameNodes != null ? deserializeAws_json1_1HdfsNameNodeList(output.NameNodes, context) : undefined,
3015
+ QopConfiguration: output.QopConfiguration != null
3084
3016
  ? deserializeAws_json1_1QopConfiguration(output.QopConfiguration, context)
3085
3017
  : undefined,
3086
3018
  ReplicationFactor: (0, smithy_client_1.expectInt32)(output.ReplicationFactor),
@@ -3089,26 +3021,20 @@ const deserializeAws_json1_1DescribeLocationHdfsResponse = (output, context) =>
3089
3021
  };
3090
3022
  const deserializeAws_json1_1DescribeLocationNfsResponse = (output, context) => {
3091
3023
  return {
3092
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3024
+ CreationTime: output.CreationTime != null
3093
3025
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3094
3026
  : undefined,
3095
3027
  LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
3096
3028
  LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
3097
- MountOptions: output.MountOptions !== undefined && output.MountOptions !== null
3098
- ? deserializeAws_json1_1NfsMountOptions(output.MountOptions, context)
3099
- : undefined,
3100
- OnPremConfig: output.OnPremConfig !== undefined && output.OnPremConfig !== null
3101
- ? deserializeAws_json1_1OnPremConfig(output.OnPremConfig, context)
3102
- : undefined,
3029
+ MountOptions: output.MountOptions != null ? deserializeAws_json1_1NfsMountOptions(output.MountOptions, context) : undefined,
3030
+ OnPremConfig: output.OnPremConfig != null ? deserializeAws_json1_1OnPremConfig(output.OnPremConfig, context) : undefined,
3103
3031
  };
3104
3032
  };
3105
3033
  const deserializeAws_json1_1DescribeLocationObjectStorageResponse = (output, context) => {
3106
3034
  return {
3107
3035
  AccessKey: (0, smithy_client_1.expectString)(output.AccessKey),
3108
- AgentArns: output.AgentArns !== undefined && output.AgentArns !== null
3109
- ? deserializeAws_json1_1AgentArnList(output.AgentArns, context)
3110
- : undefined,
3111
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3036
+ AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
3037
+ CreationTime: output.CreationTime != null
3112
3038
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3113
3039
  : undefined,
3114
3040
  LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
@@ -3119,34 +3045,26 @@ const deserializeAws_json1_1DescribeLocationObjectStorageResponse = (output, con
3119
3045
  };
3120
3046
  const deserializeAws_json1_1DescribeLocationS3Response = (output, context) => {
3121
3047
  return {
3122
- AgentArns: output.AgentArns !== undefined && output.AgentArns !== null
3123
- ? deserializeAws_json1_1AgentArnList(output.AgentArns, context)
3124
- : undefined,
3125
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3048
+ AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
3049
+ CreationTime: output.CreationTime != null
3126
3050
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3127
3051
  : undefined,
3128
3052
  LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
3129
3053
  LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
3130
- S3Config: output.S3Config !== undefined && output.S3Config !== null
3131
- ? deserializeAws_json1_1S3Config(output.S3Config, context)
3132
- : undefined,
3054
+ S3Config: output.S3Config != null ? deserializeAws_json1_1S3Config(output.S3Config, context) : undefined,
3133
3055
  S3StorageClass: (0, smithy_client_1.expectString)(output.S3StorageClass),
3134
3056
  };
3135
3057
  };
3136
3058
  const deserializeAws_json1_1DescribeLocationSmbResponse = (output, context) => {
3137
3059
  return {
3138
- AgentArns: output.AgentArns !== undefined && output.AgentArns !== null
3139
- ? deserializeAws_json1_1AgentArnList(output.AgentArns, context)
3140
- : undefined,
3141
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3060
+ AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
3061
+ CreationTime: output.CreationTime != null
3142
3062
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3143
3063
  : undefined,
3144
3064
  Domain: (0, smithy_client_1.expectString)(output.Domain),
3145
3065
  LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
3146
3066
  LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
3147
- MountOptions: output.MountOptions !== undefined && output.MountOptions !== null
3148
- ? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context)
3149
- : undefined,
3067
+ MountOptions: output.MountOptions != null ? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context) : undefined,
3150
3068
  User: (0, smithy_client_1.expectString)(output.User),
3151
3069
  };
3152
3070
  };
@@ -3156,22 +3074,12 @@ const deserializeAws_json1_1DescribeTaskExecutionResponse = (output, context) =>
3156
3074
  BytesWritten: (0, smithy_client_1.expectLong)(output.BytesWritten),
3157
3075
  EstimatedBytesToTransfer: (0, smithy_client_1.expectLong)(output.EstimatedBytesToTransfer),
3158
3076
  EstimatedFilesToTransfer: (0, smithy_client_1.expectLong)(output.EstimatedFilesToTransfer),
3159
- Excludes: output.Excludes !== undefined && output.Excludes !== null
3160
- ? deserializeAws_json1_1FilterList(output.Excludes, context)
3161
- : undefined,
3077
+ Excludes: output.Excludes != null ? deserializeAws_json1_1FilterList(output.Excludes, context) : undefined,
3162
3078
  FilesTransferred: (0, smithy_client_1.expectLong)(output.FilesTransferred),
3163
- Includes: output.Includes !== undefined && output.Includes !== null
3164
- ? deserializeAws_json1_1FilterList(output.Includes, context)
3165
- : undefined,
3166
- Options: output.Options !== undefined && output.Options !== null
3167
- ? deserializeAws_json1_1Options(output.Options, context)
3168
- : undefined,
3169
- Result: output.Result !== undefined && output.Result !== null
3170
- ? deserializeAws_json1_1TaskExecutionResultDetail(output.Result, context)
3171
- : undefined,
3172
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3173
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
3174
- : undefined,
3079
+ Includes: output.Includes != null ? deserializeAws_json1_1FilterList(output.Includes, context) : undefined,
3080
+ Options: output.Options != null ? deserializeAws_json1_1Options(output.Options, context) : undefined,
3081
+ Result: output.Result != null ? deserializeAws_json1_1TaskExecutionResultDetail(output.Result, context) : undefined,
3082
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3175
3083
  Status: (0, smithy_client_1.expectString)(output.Status),
3176
3084
  TaskExecutionArn: (0, smithy_client_1.expectString)(output.TaskExecutionArn),
3177
3085
  };
@@ -3179,31 +3087,23 @@ const deserializeAws_json1_1DescribeTaskExecutionResponse = (output, context) =>
3179
3087
  const deserializeAws_json1_1DescribeTaskResponse = (output, context) => {
3180
3088
  return {
3181
3089
  CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn),
3182
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3090
+ CreationTime: output.CreationTime != null
3183
3091
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3184
3092
  : undefined,
3185
3093
  CurrentTaskExecutionArn: (0, smithy_client_1.expectString)(output.CurrentTaskExecutionArn),
3186
3094
  DestinationLocationArn: (0, smithy_client_1.expectString)(output.DestinationLocationArn),
3187
- DestinationNetworkInterfaceArns: output.DestinationNetworkInterfaceArns !== undefined && output.DestinationNetworkInterfaceArns !== null
3095
+ DestinationNetworkInterfaceArns: output.DestinationNetworkInterfaceArns != null
3188
3096
  ? deserializeAws_json1_1DestinationNetworkInterfaceArns(output.DestinationNetworkInterfaceArns, context)
3189
3097
  : undefined,
3190
3098
  ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
3191
3099
  ErrorDetail: (0, smithy_client_1.expectString)(output.ErrorDetail),
3192
- Excludes: output.Excludes !== undefined && output.Excludes !== null
3193
- ? deserializeAws_json1_1FilterList(output.Excludes, context)
3194
- : undefined,
3195
- Includes: output.Includes !== undefined && output.Includes !== null
3196
- ? deserializeAws_json1_1FilterList(output.Includes, context)
3197
- : undefined,
3100
+ Excludes: output.Excludes != null ? deserializeAws_json1_1FilterList(output.Excludes, context) : undefined,
3101
+ Includes: output.Includes != null ? deserializeAws_json1_1FilterList(output.Includes, context) : undefined,
3198
3102
  Name: (0, smithy_client_1.expectString)(output.Name),
3199
- Options: output.Options !== undefined && output.Options !== null
3200
- ? deserializeAws_json1_1Options(output.Options, context)
3201
- : undefined,
3202
- Schedule: output.Schedule !== undefined && output.Schedule !== null
3203
- ? deserializeAws_json1_1TaskSchedule(output.Schedule, context)
3204
- : undefined,
3103
+ Options: output.Options != null ? deserializeAws_json1_1Options(output.Options, context) : undefined,
3104
+ Schedule: output.Schedule != null ? deserializeAws_json1_1TaskSchedule(output.Schedule, context) : undefined,
3205
3105
  SourceLocationArn: (0, smithy_client_1.expectString)(output.SourceLocationArn),
3206
- SourceNetworkInterfaceArns: output.SourceNetworkInterfaceArns !== undefined && output.SourceNetworkInterfaceArns !== null
3106
+ SourceNetworkInterfaceArns: output.SourceNetworkInterfaceArns != null
3207
3107
  ? deserializeAws_json1_1SourceNetworkInterfaceArns(output.SourceNetworkInterfaceArns, context)
3208
3108
  : undefined,
3209
3109
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -3223,7 +3123,7 @@ const deserializeAws_json1_1DestinationNetworkInterfaceArns = (output, context)
3223
3123
  };
3224
3124
  const deserializeAws_json1_1Ec2Config = (output, context) => {
3225
3125
  return {
3226
- SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
3126
+ SecurityGroupArns: output.SecurityGroupArns != null
3227
3127
  ? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
3228
3128
  : undefined,
3229
3129
  SubnetArn: (0, smithy_client_1.expectString)(output.SubnetArn),
@@ -3259,27 +3159,19 @@ const deserializeAws_json1_1FilterRule = (output, context) => {
3259
3159
  };
3260
3160
  const deserializeAws_json1_1FsxProtocol = (output, context) => {
3261
3161
  return {
3262
- NFS: output.NFS !== undefined && output.NFS !== null
3263
- ? deserializeAws_json1_1FsxProtocolNfs(output.NFS, context)
3264
- : undefined,
3265
- SMB: output.SMB !== undefined && output.SMB !== null
3266
- ? deserializeAws_json1_1FsxProtocolSmb(output.SMB, context)
3267
- : undefined,
3162
+ NFS: output.NFS != null ? deserializeAws_json1_1FsxProtocolNfs(output.NFS, context) : undefined,
3163
+ SMB: output.SMB != null ? deserializeAws_json1_1FsxProtocolSmb(output.SMB, context) : undefined,
3268
3164
  };
3269
3165
  };
3270
3166
  const deserializeAws_json1_1FsxProtocolNfs = (output, context) => {
3271
3167
  return {
3272
- MountOptions: output.MountOptions !== undefined && output.MountOptions !== null
3273
- ? deserializeAws_json1_1NfsMountOptions(output.MountOptions, context)
3274
- : undefined,
3168
+ MountOptions: output.MountOptions != null ? deserializeAws_json1_1NfsMountOptions(output.MountOptions, context) : undefined,
3275
3169
  };
3276
3170
  };
3277
3171
  const deserializeAws_json1_1FsxProtocolSmb = (output, context) => {
3278
3172
  return {
3279
3173
  Domain: (0, smithy_client_1.expectString)(output.Domain),
3280
- MountOptions: output.MountOptions !== undefined && output.MountOptions !== null
3281
- ? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context)
3282
- : undefined,
3174
+ MountOptions: output.MountOptions != null ? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context) : undefined,
3283
3175
  Password: (0, smithy_client_1.expectString)(output.Password),
3284
3176
  User: (0, smithy_client_1.expectString)(output.User),
3285
3177
  };
@@ -3316,32 +3208,26 @@ const deserializeAws_json1_1InvalidRequestException = (output, context) => {
3316
3208
  };
3317
3209
  const deserializeAws_json1_1ListAgentsResponse = (output, context) => {
3318
3210
  return {
3319
- Agents: output.Agents !== undefined && output.Agents !== null
3320
- ? deserializeAws_json1_1AgentList(output.Agents, context)
3321
- : undefined,
3211
+ Agents: output.Agents != null ? deserializeAws_json1_1AgentList(output.Agents, context) : undefined,
3322
3212
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3323
3213
  };
3324
3214
  };
3325
3215
  const deserializeAws_json1_1ListLocationsResponse = (output, context) => {
3326
3216
  return {
3327
- Locations: output.Locations !== undefined && output.Locations !== null
3328
- ? deserializeAws_json1_1LocationList(output.Locations, context)
3329
- : undefined,
3217
+ Locations: output.Locations != null ? deserializeAws_json1_1LocationList(output.Locations, context) : undefined,
3330
3218
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3331
3219
  };
3332
3220
  };
3333
3221
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
3334
3222
  return {
3335
3223
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3336
- Tags: output.Tags !== undefined && output.Tags !== null
3337
- ? deserializeAws_json1_1OutputTagList(output.Tags, context)
3338
- : undefined,
3224
+ Tags: output.Tags != null ? deserializeAws_json1_1OutputTagList(output.Tags, context) : undefined,
3339
3225
  };
3340
3226
  };
3341
3227
  const deserializeAws_json1_1ListTaskExecutionsResponse = (output, context) => {
3342
3228
  return {
3343
3229
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3344
- TaskExecutions: output.TaskExecutions !== undefined && output.TaskExecutions !== null
3230
+ TaskExecutions: output.TaskExecutions != null
3345
3231
  ? deserializeAws_json1_1TaskExecutionList(output.TaskExecutions, context)
3346
3232
  : undefined,
3347
3233
  };
@@ -3349,9 +3235,7 @@ const deserializeAws_json1_1ListTaskExecutionsResponse = (output, context) => {
3349
3235
  const deserializeAws_json1_1ListTasksResponse = (output, context) => {
3350
3236
  return {
3351
3237
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3352
- Tasks: output.Tasks !== undefined && output.Tasks !== null
3353
- ? deserializeAws_json1_1TaskList(output.Tasks, context)
3354
- : undefined,
3238
+ Tasks: output.Tasks != null ? deserializeAws_json1_1TaskList(output.Tasks, context) : undefined,
3355
3239
  };
3356
3240
  };
3357
3241
  const deserializeAws_json1_1LocationList = (output, context) => {
@@ -3378,9 +3262,7 @@ const deserializeAws_json1_1NfsMountOptions = (output, context) => {
3378
3262
  };
3379
3263
  const deserializeAws_json1_1OnPremConfig = (output, context) => {
3380
3264
  return {
3381
- AgentArns: output.AgentArns !== undefined && output.AgentArns !== null
3382
- ? deserializeAws_json1_1AgentArnList(output.AgentArns, context)
3383
- : undefined,
3265
+ AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
3384
3266
  };
3385
3267
  };
3386
3268
  const deserializeAws_json1_1Options = (output, context) => {
@@ -3438,12 +3320,10 @@ const deserializeAws_json1_1PLSubnetArnList = (output, context) => {
3438
3320
  const deserializeAws_json1_1PrivateLinkConfig = (output, context) => {
3439
3321
  return {
3440
3322
  PrivateLinkEndpoint: (0, smithy_client_1.expectString)(output.PrivateLinkEndpoint),
3441
- SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
3323
+ SecurityGroupArns: output.SecurityGroupArns != null
3442
3324
  ? deserializeAws_json1_1PLSecurityGroupArnList(output.SecurityGroupArns, context)
3443
3325
  : undefined,
3444
- SubnetArns: output.SubnetArns !== undefined && output.SubnetArns !== null
3445
- ? deserializeAws_json1_1PLSubnetArnList(output.SubnetArns, context)
3446
- : undefined,
3326
+ SubnetArns: output.SubnetArns != null ? deserializeAws_json1_1PLSubnetArnList(output.SubnetArns, context) : undefined,
3447
3327
  VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
3448
3328
  };
3449
3329
  };
@@ -3627,5 +3507,4 @@ const loadRestJsonErrorCode = (output, data) => {
3627
3507
  if (data["__type"] !== undefined) {
3628
3508
  return sanitizeErrorCode(data["__type"]);
3629
3509
  }
3630
- return "";
3631
3510
  };