@aws-sdk/client-transfer 3.118.1 → 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.
@@ -374,7 +374,7 @@ export var deserializeAws_json1_1CreateAccessCommand = function (output, context
374
374
  });
375
375
  }); };
376
376
  var deserializeAws_json1_1CreateAccessCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
377
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
377
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
378
378
  var _c;
379
379
  return __generator(this, function (_d) {
380
380
  switch (_d.label) {
@@ -384,7 +384,6 @@ var deserializeAws_json1_1CreateAccessCommandError = function (output, context)
384
384
  return [4, parseBody(output.body, context)];
385
385
  case 1:
386
386
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
387
- errorCode = "UnknownError";
388
387
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
389
388
  _b = errorCode;
390
389
  switch (_b) {
@@ -412,10 +411,12 @@ var deserializeAws_json1_1CreateAccessCommandError = function (output, context)
412
411
  case 11: throw _d.sent();
413
412
  case 12:
414
413
  parsedBody = parsedOutput.body;
414
+ $metadata = deserializeMetadata(output);
415
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
415
416
  response = new __BaseException({
416
- name: parsedBody.code || parsedBody.Code || errorCode,
417
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
417
418
  $fault: "client",
418
- $metadata: deserializeMetadata(output),
419
+ $metadata: $metadata,
419
420
  });
420
421
  throw __decorateServiceException(response, parsedBody);
421
422
  }
@@ -440,7 +441,7 @@ export var deserializeAws_json1_1CreateServerCommand = function (output, context
440
441
  });
441
442
  }); };
442
443
  var deserializeAws_json1_1CreateServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
443
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
444
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
444
445
  var _c;
445
446
  return __generator(this, function (_d) {
446
447
  switch (_d.label) {
@@ -450,7 +451,6 @@ var deserializeAws_json1_1CreateServerCommandError = function (output, context)
450
451
  return [4, parseBody(output.body, context)];
451
452
  case 1:
452
453
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
453
- errorCode = "UnknownError";
454
454
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
455
455
  _b = errorCode;
456
456
  switch (_b) {
@@ -486,10 +486,12 @@ var deserializeAws_json1_1CreateServerCommandError = function (output, context)
486
486
  case 15: throw _d.sent();
487
487
  case 16:
488
488
  parsedBody = parsedOutput.body;
489
+ $metadata = deserializeMetadata(output);
490
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
489
491
  response = new __BaseException({
490
- name: parsedBody.code || parsedBody.Code || errorCode,
492
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
491
493
  $fault: "client",
492
- $metadata: deserializeMetadata(output),
494
+ $metadata: $metadata,
493
495
  });
494
496
  throw __decorateServiceException(response, parsedBody);
495
497
  }
@@ -514,7 +516,7 @@ export var deserializeAws_json1_1CreateUserCommand = function (output, context)
514
516
  });
515
517
  }); };
516
518
  var deserializeAws_json1_1CreateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
517
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
519
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
518
520
  var _c;
519
521
  return __generator(this, function (_d) {
520
522
  switch (_d.label) {
@@ -524,7 +526,6 @@ var deserializeAws_json1_1CreateUserCommandError = function (output, context) {
524
526
  return [4, parseBody(output.body, context)];
525
527
  case 1:
526
528
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
527
- errorCode = "UnknownError";
528
529
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
529
530
  _b = errorCode;
530
531
  switch (_b) {
@@ -552,10 +553,12 @@ var deserializeAws_json1_1CreateUserCommandError = function (output, context) {
552
553
  case 11: throw _d.sent();
553
554
  case 12:
554
555
  parsedBody = parsedOutput.body;
556
+ $metadata = deserializeMetadata(output);
557
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
555
558
  response = new __BaseException({
556
- name: parsedBody.code || parsedBody.Code || errorCode,
559
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
557
560
  $fault: "client",
558
- $metadata: deserializeMetadata(output),
561
+ $metadata: $metadata,
559
562
  });
560
563
  throw __decorateServiceException(response, parsedBody);
561
564
  }
@@ -580,7 +583,7 @@ export var deserializeAws_json1_1CreateWorkflowCommand = function (output, conte
580
583
  });
581
584
  }); };
582
585
  var deserializeAws_json1_1CreateWorkflowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
583
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
586
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
584
587
  var _c;
585
588
  return __generator(this, function (_d) {
586
589
  switch (_d.label) {
@@ -590,7 +593,6 @@ var deserializeAws_json1_1CreateWorkflowCommandError = function (output, context
590
593
  return [4, parseBody(output.body, context)];
591
594
  case 1:
592
595
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
593
- errorCode = "UnknownError";
594
596
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
595
597
  _b = errorCode;
596
598
  switch (_b) {
@@ -622,10 +624,12 @@ var deserializeAws_json1_1CreateWorkflowCommandError = function (output, context
622
624
  case 13: throw _d.sent();
623
625
  case 14:
624
626
  parsedBody = parsedOutput.body;
627
+ $metadata = deserializeMetadata(output);
628
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
625
629
  response = new __BaseException({
626
- name: parsedBody.code || parsedBody.Code || errorCode,
630
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
627
631
  $fault: "client",
628
- $metadata: deserializeMetadata(output),
632
+ $metadata: $metadata,
629
633
  });
630
634
  throw __decorateServiceException(response, parsedBody);
631
635
  }
@@ -650,7 +654,7 @@ export var deserializeAws_json1_1DeleteAccessCommand = function (output, context
650
654
  });
651
655
  }); };
652
656
  var deserializeAws_json1_1DeleteAccessCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
653
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
657
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
654
658
  var _c;
655
659
  return __generator(this, function (_d) {
656
660
  switch (_d.label) {
@@ -660,7 +664,6 @@ var deserializeAws_json1_1DeleteAccessCommandError = function (output, context)
660
664
  return [4, parseBody(output.body, context)];
661
665
  case 1:
662
666
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
663
- errorCode = "UnknownError";
664
667
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
665
668
  _b = errorCode;
666
669
  switch (_b) {
@@ -684,10 +687,12 @@ var deserializeAws_json1_1DeleteAccessCommandError = function (output, context)
684
687
  case 9: throw _d.sent();
685
688
  case 10:
686
689
  parsedBody = parsedOutput.body;
690
+ $metadata = deserializeMetadata(output);
691
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
687
692
  response = new __BaseException({
688
- name: parsedBody.code || parsedBody.Code || errorCode,
693
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
689
694
  $fault: "client",
690
- $metadata: deserializeMetadata(output),
695
+ $metadata: $metadata,
691
696
  });
692
697
  throw __decorateServiceException(response, parsedBody);
693
698
  }
@@ -712,7 +717,7 @@ export var deserializeAws_json1_1DeleteServerCommand = function (output, context
712
717
  });
713
718
  }); };
714
719
  var deserializeAws_json1_1DeleteServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
715
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
720
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
716
721
  var _c;
717
722
  return __generator(this, function (_d) {
718
723
  switch (_d.label) {
@@ -722,7 +727,6 @@ var deserializeAws_json1_1DeleteServerCommandError = function (output, context)
722
727
  return [4, parseBody(output.body, context)];
723
728
  case 1:
724
729
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
725
- errorCode = "UnknownError";
726
730
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
727
731
  _b = errorCode;
728
732
  switch (_b) {
@@ -750,10 +754,12 @@ var deserializeAws_json1_1DeleteServerCommandError = function (output, context)
750
754
  case 11: throw _d.sent();
751
755
  case 12:
752
756
  parsedBody = parsedOutput.body;
757
+ $metadata = deserializeMetadata(output);
758
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
753
759
  response = new __BaseException({
754
- name: parsedBody.code || parsedBody.Code || errorCode,
760
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
755
761
  $fault: "client",
756
- $metadata: deserializeMetadata(output),
762
+ $metadata: $metadata,
757
763
  });
758
764
  throw __decorateServiceException(response, parsedBody);
759
765
  }
@@ -778,7 +784,7 @@ export var deserializeAws_json1_1DeleteSshPublicKeyCommand = function (output, c
778
784
  });
779
785
  }); };
780
786
  var deserializeAws_json1_1DeleteSshPublicKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
781
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
787
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
782
788
  var _c;
783
789
  return __generator(this, function (_d) {
784
790
  switch (_d.label) {
@@ -788,7 +794,6 @@ var deserializeAws_json1_1DeleteSshPublicKeyCommandError = function (output, con
788
794
  return [4, parseBody(output.body, context)];
789
795
  case 1:
790
796
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
791
- errorCode = "UnknownError";
792
797
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
793
798
  _b = errorCode;
794
799
  switch (_b) {
@@ -816,10 +821,12 @@ var deserializeAws_json1_1DeleteSshPublicKeyCommandError = function (output, con
816
821
  case 11: throw _d.sent();
817
822
  case 12:
818
823
  parsedBody = parsedOutput.body;
824
+ $metadata = deserializeMetadata(output);
825
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
819
826
  response = new __BaseException({
820
- name: parsedBody.code || parsedBody.Code || errorCode,
827
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
821
828
  $fault: "client",
822
- $metadata: deserializeMetadata(output),
829
+ $metadata: $metadata,
823
830
  });
824
831
  throw __decorateServiceException(response, parsedBody);
825
832
  }
@@ -844,7 +851,7 @@ export var deserializeAws_json1_1DeleteUserCommand = function (output, context)
844
851
  });
845
852
  }); };
846
853
  var deserializeAws_json1_1DeleteUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
847
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
854
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
848
855
  var _c;
849
856
  return __generator(this, function (_d) {
850
857
  switch (_d.label) {
@@ -854,7 +861,6 @@ var deserializeAws_json1_1DeleteUserCommandError = function (output, context) {
854
861
  return [4, parseBody(output.body, context)];
855
862
  case 1:
856
863
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
857
- errorCode = "UnknownError";
858
864
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
859
865
  _b = errorCode;
860
866
  switch (_b) {
@@ -878,10 +884,12 @@ var deserializeAws_json1_1DeleteUserCommandError = function (output, context) {
878
884
  case 9: throw _d.sent();
879
885
  case 10:
880
886
  parsedBody = parsedOutput.body;
887
+ $metadata = deserializeMetadata(output);
888
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
881
889
  response = new __BaseException({
882
- name: parsedBody.code || parsedBody.Code || errorCode,
890
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
883
891
  $fault: "client",
884
- $metadata: deserializeMetadata(output),
892
+ $metadata: $metadata,
885
893
  });
886
894
  throw __decorateServiceException(response, parsedBody);
887
895
  }
@@ -906,7 +914,7 @@ export var deserializeAws_json1_1DeleteWorkflowCommand = function (output, conte
906
914
  });
907
915
  }); };
908
916
  var deserializeAws_json1_1DeleteWorkflowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
909
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
917
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
910
918
  var _c;
911
919
  return __generator(this, function (_d) {
912
920
  switch (_d.label) {
@@ -916,7 +924,6 @@ var deserializeAws_json1_1DeleteWorkflowCommandError = function (output, context
916
924
  return [4, parseBody(output.body, context)];
917
925
  case 1:
918
926
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
919
- errorCode = "UnknownError";
920
927
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
921
928
  _b = errorCode;
922
929
  switch (_b) {
@@ -944,10 +951,12 @@ var deserializeAws_json1_1DeleteWorkflowCommandError = function (output, context
944
951
  case 11: throw _d.sent();
945
952
  case 12:
946
953
  parsedBody = parsedOutput.body;
954
+ $metadata = deserializeMetadata(output);
955
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
947
956
  response = new __BaseException({
948
- name: parsedBody.code || parsedBody.Code || errorCode,
957
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
949
958
  $fault: "client",
950
- $metadata: deserializeMetadata(output),
959
+ $metadata: $metadata,
951
960
  });
952
961
  throw __decorateServiceException(response, parsedBody);
953
962
  }
@@ -972,7 +981,7 @@ export var deserializeAws_json1_1DescribeAccessCommand = function (output, conte
972
981
  });
973
982
  }); };
974
983
  var deserializeAws_json1_1DescribeAccessCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
975
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
984
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
976
985
  var _c;
977
986
  return __generator(this, function (_d) {
978
987
  switch (_d.label) {
@@ -982,7 +991,6 @@ var deserializeAws_json1_1DescribeAccessCommandError = function (output, context
982
991
  return [4, parseBody(output.body, context)];
983
992
  case 1:
984
993
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
985
- errorCode = "UnknownError";
986
994
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
987
995
  _b = errorCode;
988
996
  switch (_b) {
@@ -1006,10 +1014,12 @@ var deserializeAws_json1_1DescribeAccessCommandError = function (output, context
1006
1014
  case 9: throw _d.sent();
1007
1015
  case 10:
1008
1016
  parsedBody = parsedOutput.body;
1017
+ $metadata = deserializeMetadata(output);
1018
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1009
1019
  response = new __BaseException({
1010
- name: parsedBody.code || parsedBody.Code || errorCode,
1020
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1011
1021
  $fault: "client",
1012
- $metadata: deserializeMetadata(output),
1022
+ $metadata: $metadata,
1013
1023
  });
1014
1024
  throw __decorateServiceException(response, parsedBody);
1015
1025
  }
@@ -1034,7 +1044,7 @@ export var deserializeAws_json1_1DescribeExecutionCommand = function (output, co
1034
1044
  });
1035
1045
  }); };
1036
1046
  var deserializeAws_json1_1DescribeExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1037
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1047
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1038
1048
  var _c;
1039
1049
  return __generator(this, function (_d) {
1040
1050
  switch (_d.label) {
@@ -1044,7 +1054,6 @@ var deserializeAws_json1_1DescribeExecutionCommandError = function (output, cont
1044
1054
  return [4, parseBody(output.body, context)];
1045
1055
  case 1:
1046
1056
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1047
- errorCode = "UnknownError";
1048
1057
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1049
1058
  _b = errorCode;
1050
1059
  switch (_b) {
@@ -1068,10 +1077,12 @@ var deserializeAws_json1_1DescribeExecutionCommandError = function (output, cont
1068
1077
  case 9: throw _d.sent();
1069
1078
  case 10:
1070
1079
  parsedBody = parsedOutput.body;
1080
+ $metadata = deserializeMetadata(output);
1081
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1071
1082
  response = new __BaseException({
1072
- name: parsedBody.code || parsedBody.Code || errorCode,
1083
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1073
1084
  $fault: "client",
1074
- $metadata: deserializeMetadata(output),
1085
+ $metadata: $metadata,
1075
1086
  });
1076
1087
  throw __decorateServiceException(response, parsedBody);
1077
1088
  }
@@ -1096,7 +1107,7 @@ export var deserializeAws_json1_1DescribeSecurityPolicyCommand = function (outpu
1096
1107
  });
1097
1108
  }); };
1098
1109
  var deserializeAws_json1_1DescribeSecurityPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1099
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1110
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1100
1111
  var _c;
1101
1112
  return __generator(this, function (_d) {
1102
1113
  switch (_d.label) {
@@ -1106,7 +1117,6 @@ var deserializeAws_json1_1DescribeSecurityPolicyCommandError = function (output,
1106
1117
  return [4, parseBody(output.body, context)];
1107
1118
  case 1:
1108
1119
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1109
- errorCode = "UnknownError";
1110
1120
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1111
1121
  _b = errorCode;
1112
1122
  switch (_b) {
@@ -1130,10 +1140,12 @@ var deserializeAws_json1_1DescribeSecurityPolicyCommandError = function (output,
1130
1140
  case 9: throw _d.sent();
1131
1141
  case 10:
1132
1142
  parsedBody = parsedOutput.body;
1143
+ $metadata = deserializeMetadata(output);
1144
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1133
1145
  response = new __BaseException({
1134
- name: parsedBody.code || parsedBody.Code || errorCode,
1146
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1135
1147
  $fault: "client",
1136
- $metadata: deserializeMetadata(output),
1148
+ $metadata: $metadata,
1137
1149
  });
1138
1150
  throw __decorateServiceException(response, parsedBody);
1139
1151
  }
@@ -1158,7 +1170,7 @@ export var deserializeAws_json1_1DescribeServerCommand = function (output, conte
1158
1170
  });
1159
1171
  }); };
1160
1172
  var deserializeAws_json1_1DescribeServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1161
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1173
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1162
1174
  var _c;
1163
1175
  return __generator(this, function (_d) {
1164
1176
  switch (_d.label) {
@@ -1168,7 +1180,6 @@ var deserializeAws_json1_1DescribeServerCommandError = function (output, context
1168
1180
  return [4, parseBody(output.body, context)];
1169
1181
  case 1:
1170
1182
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1171
- errorCode = "UnknownError";
1172
1183
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1173
1184
  _b = errorCode;
1174
1185
  switch (_b) {
@@ -1192,10 +1203,12 @@ var deserializeAws_json1_1DescribeServerCommandError = function (output, context
1192
1203
  case 9: throw _d.sent();
1193
1204
  case 10:
1194
1205
  parsedBody = parsedOutput.body;
1206
+ $metadata = deserializeMetadata(output);
1207
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1195
1208
  response = new __BaseException({
1196
- name: parsedBody.code || parsedBody.Code || errorCode,
1209
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1197
1210
  $fault: "client",
1198
- $metadata: deserializeMetadata(output),
1211
+ $metadata: $metadata,
1199
1212
  });
1200
1213
  throw __decorateServiceException(response, parsedBody);
1201
1214
  }
@@ -1220,7 +1233,7 @@ export var deserializeAws_json1_1DescribeUserCommand = function (output, context
1220
1233
  });
1221
1234
  }); };
1222
1235
  var deserializeAws_json1_1DescribeUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1223
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1236
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1224
1237
  var _c;
1225
1238
  return __generator(this, function (_d) {
1226
1239
  switch (_d.label) {
@@ -1230,7 +1243,6 @@ var deserializeAws_json1_1DescribeUserCommandError = function (output, context)
1230
1243
  return [4, parseBody(output.body, context)];
1231
1244
  case 1:
1232
1245
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1233
- errorCode = "UnknownError";
1234
1246
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1235
1247
  _b = errorCode;
1236
1248
  switch (_b) {
@@ -1254,10 +1266,12 @@ var deserializeAws_json1_1DescribeUserCommandError = function (output, context)
1254
1266
  case 9: throw _d.sent();
1255
1267
  case 10:
1256
1268
  parsedBody = parsedOutput.body;
1269
+ $metadata = deserializeMetadata(output);
1270
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1257
1271
  response = new __BaseException({
1258
- name: parsedBody.code || parsedBody.Code || errorCode,
1272
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1259
1273
  $fault: "client",
1260
- $metadata: deserializeMetadata(output),
1274
+ $metadata: $metadata,
1261
1275
  });
1262
1276
  throw __decorateServiceException(response, parsedBody);
1263
1277
  }
@@ -1282,7 +1296,7 @@ export var deserializeAws_json1_1DescribeWorkflowCommand = function (output, con
1282
1296
  });
1283
1297
  }); };
1284
1298
  var deserializeAws_json1_1DescribeWorkflowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1285
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1299
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1286
1300
  var _c;
1287
1301
  return __generator(this, function (_d) {
1288
1302
  switch (_d.label) {
@@ -1292,7 +1306,6 @@ var deserializeAws_json1_1DescribeWorkflowCommandError = function (output, conte
1292
1306
  return [4, parseBody(output.body, context)];
1293
1307
  case 1:
1294
1308
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1295
- errorCode = "UnknownError";
1296
1309
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1297
1310
  _b = errorCode;
1298
1311
  switch (_b) {
@@ -1316,10 +1329,12 @@ var deserializeAws_json1_1DescribeWorkflowCommandError = function (output, conte
1316
1329
  case 9: throw _d.sent();
1317
1330
  case 10:
1318
1331
  parsedBody = parsedOutput.body;
1332
+ $metadata = deserializeMetadata(output);
1333
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1319
1334
  response = new __BaseException({
1320
- name: parsedBody.code || parsedBody.Code || errorCode,
1335
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1321
1336
  $fault: "client",
1322
- $metadata: deserializeMetadata(output),
1337
+ $metadata: $metadata,
1323
1338
  });
1324
1339
  throw __decorateServiceException(response, parsedBody);
1325
1340
  }
@@ -1344,7 +1359,7 @@ export var deserializeAws_json1_1ImportSshPublicKeyCommand = function (output, c
1344
1359
  });
1345
1360
  }); };
1346
1361
  var deserializeAws_json1_1ImportSshPublicKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1347
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1362
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1348
1363
  var _c;
1349
1364
  return __generator(this, function (_d) {
1350
1365
  switch (_d.label) {
@@ -1354,7 +1369,6 @@ var deserializeAws_json1_1ImportSshPublicKeyCommandError = function (output, con
1354
1369
  return [4, parseBody(output.body, context)];
1355
1370
  case 1:
1356
1371
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1357
- errorCode = "UnknownError";
1358
1372
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1359
1373
  _b = errorCode;
1360
1374
  switch (_b) {
@@ -1386,10 +1400,12 @@ var deserializeAws_json1_1ImportSshPublicKeyCommandError = function (output, con
1386
1400
  case 13: throw _d.sent();
1387
1401
  case 14:
1388
1402
  parsedBody = parsedOutput.body;
1403
+ $metadata = deserializeMetadata(output);
1404
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1389
1405
  response = new __BaseException({
1390
- name: parsedBody.code || parsedBody.Code || errorCode,
1406
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1391
1407
  $fault: "client",
1392
- $metadata: deserializeMetadata(output),
1408
+ $metadata: $metadata,
1393
1409
  });
1394
1410
  throw __decorateServiceException(response, parsedBody);
1395
1411
  }
@@ -1414,7 +1430,7 @@ export var deserializeAws_json1_1ListAccessesCommand = function (output, context
1414
1430
  });
1415
1431
  }); };
1416
1432
  var deserializeAws_json1_1ListAccessesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1417
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1433
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1418
1434
  var _c;
1419
1435
  return __generator(this, function (_d) {
1420
1436
  switch (_d.label) {
@@ -1424,7 +1440,6 @@ var deserializeAws_json1_1ListAccessesCommandError = function (output, context)
1424
1440
  return [4, parseBody(output.body, context)];
1425
1441
  case 1:
1426
1442
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1427
- errorCode = "UnknownError";
1428
1443
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1429
1444
  _b = errorCode;
1430
1445
  switch (_b) {
@@ -1452,10 +1467,12 @@ var deserializeAws_json1_1ListAccessesCommandError = function (output, context)
1452
1467
  case 11: throw _d.sent();
1453
1468
  case 12:
1454
1469
  parsedBody = parsedOutput.body;
1470
+ $metadata = deserializeMetadata(output);
1471
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1455
1472
  response = new __BaseException({
1456
- name: parsedBody.code || parsedBody.Code || errorCode,
1473
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1457
1474
  $fault: "client",
1458
- $metadata: deserializeMetadata(output),
1475
+ $metadata: $metadata,
1459
1476
  });
1460
1477
  throw __decorateServiceException(response, parsedBody);
1461
1478
  }
@@ -1480,7 +1497,7 @@ export var deserializeAws_json1_1ListExecutionsCommand = function (output, conte
1480
1497
  });
1481
1498
  }); };
1482
1499
  var deserializeAws_json1_1ListExecutionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1483
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1500
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1484
1501
  var _c;
1485
1502
  return __generator(this, function (_d) {
1486
1503
  switch (_d.label) {
@@ -1490,7 +1507,6 @@ var deserializeAws_json1_1ListExecutionsCommandError = function (output, context
1490
1507
  return [4, parseBody(output.body, context)];
1491
1508
  case 1:
1492
1509
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1493
- errorCode = "UnknownError";
1494
1510
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1495
1511
  _b = errorCode;
1496
1512
  switch (_b) {
@@ -1518,10 +1534,12 @@ var deserializeAws_json1_1ListExecutionsCommandError = function (output, context
1518
1534
  case 11: throw _d.sent();
1519
1535
  case 12:
1520
1536
  parsedBody = parsedOutput.body;
1537
+ $metadata = deserializeMetadata(output);
1538
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1521
1539
  response = new __BaseException({
1522
- name: parsedBody.code || parsedBody.Code || errorCode,
1540
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1523
1541
  $fault: "client",
1524
- $metadata: deserializeMetadata(output),
1542
+ $metadata: $metadata,
1525
1543
  });
1526
1544
  throw __decorateServiceException(response, parsedBody);
1527
1545
  }
@@ -1546,7 +1564,7 @@ export var deserializeAws_json1_1ListSecurityPoliciesCommand = function (output,
1546
1564
  });
1547
1565
  }); };
1548
1566
  var deserializeAws_json1_1ListSecurityPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1549
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1567
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1550
1568
  var _c;
1551
1569
  return __generator(this, function (_d) {
1552
1570
  switch (_d.label) {
@@ -1556,7 +1574,6 @@ var deserializeAws_json1_1ListSecurityPoliciesCommandError = function (output, c
1556
1574
  return [4, parseBody(output.body, context)];
1557
1575
  case 1:
1558
1576
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1559
- errorCode = "UnknownError";
1560
1577
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1561
1578
  _b = errorCode;
1562
1579
  switch (_b) {
@@ -1580,10 +1597,12 @@ var deserializeAws_json1_1ListSecurityPoliciesCommandError = function (output, c
1580
1597
  case 9: throw _d.sent();
1581
1598
  case 10:
1582
1599
  parsedBody = parsedOutput.body;
1600
+ $metadata = deserializeMetadata(output);
1601
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1583
1602
  response = new __BaseException({
1584
- name: parsedBody.code || parsedBody.Code || errorCode,
1603
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1585
1604
  $fault: "client",
1586
- $metadata: deserializeMetadata(output),
1605
+ $metadata: $metadata,
1587
1606
  });
1588
1607
  throw __decorateServiceException(response, parsedBody);
1589
1608
  }
@@ -1608,7 +1627,7 @@ export var deserializeAws_json1_1ListServersCommand = function (output, context)
1608
1627
  });
1609
1628
  }); };
1610
1629
  var deserializeAws_json1_1ListServersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1611
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1630
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1612
1631
  var _c;
1613
1632
  return __generator(this, function (_d) {
1614
1633
  switch (_d.label) {
@@ -1618,7 +1637,6 @@ var deserializeAws_json1_1ListServersCommandError = function (output, context) {
1618
1637
  return [4, parseBody(output.body, context)];
1619
1638
  case 1:
1620
1639
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1621
- errorCode = "UnknownError";
1622
1640
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1623
1641
  _b = errorCode;
1624
1642
  switch (_b) {
@@ -1642,10 +1660,12 @@ var deserializeAws_json1_1ListServersCommandError = function (output, context) {
1642
1660
  case 9: throw _d.sent();
1643
1661
  case 10:
1644
1662
  parsedBody = parsedOutput.body;
1663
+ $metadata = deserializeMetadata(output);
1664
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1645
1665
  response = new __BaseException({
1646
- name: parsedBody.code || parsedBody.Code || errorCode,
1666
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1647
1667
  $fault: "client",
1648
- $metadata: deserializeMetadata(output),
1668
+ $metadata: $metadata,
1649
1669
  });
1650
1670
  throw __decorateServiceException(response, parsedBody);
1651
1671
  }
@@ -1670,7 +1690,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
1670
1690
  });
1671
1691
  }); };
1672
1692
  var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1673
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1693
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1674
1694
  var _c;
1675
1695
  return __generator(this, function (_d) {
1676
1696
  switch (_d.label) {
@@ -1680,7 +1700,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
1680
1700
  return [4, parseBody(output.body, context)];
1681
1701
  case 1:
1682
1702
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1683
- errorCode = "UnknownError";
1684
1703
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1685
1704
  _b = errorCode;
1686
1705
  switch (_b) {
@@ -1704,10 +1723,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
1704
1723
  case 9: throw _d.sent();
1705
1724
  case 10:
1706
1725
  parsedBody = parsedOutput.body;
1726
+ $metadata = deserializeMetadata(output);
1727
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1707
1728
  response = new __BaseException({
1708
- name: parsedBody.code || parsedBody.Code || errorCode,
1729
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1709
1730
  $fault: "client",
1710
- $metadata: deserializeMetadata(output),
1731
+ $metadata: $metadata,
1711
1732
  });
1712
1733
  throw __decorateServiceException(response, parsedBody);
1713
1734
  }
@@ -1732,7 +1753,7 @@ export var deserializeAws_json1_1ListUsersCommand = function (output, context) {
1732
1753
  });
1733
1754
  }); };
1734
1755
  var deserializeAws_json1_1ListUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1735
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1756
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1736
1757
  var _c;
1737
1758
  return __generator(this, function (_d) {
1738
1759
  switch (_d.label) {
@@ -1742,7 +1763,6 @@ var deserializeAws_json1_1ListUsersCommandError = function (output, context) { r
1742
1763
  return [4, parseBody(output.body, context)];
1743
1764
  case 1:
1744
1765
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1745
- errorCode = "UnknownError";
1746
1766
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1747
1767
  _b = errorCode;
1748
1768
  switch (_b) {
@@ -1770,10 +1790,12 @@ var deserializeAws_json1_1ListUsersCommandError = function (output, context) { r
1770
1790
  case 11: throw _d.sent();
1771
1791
  case 12:
1772
1792
  parsedBody = parsedOutput.body;
1793
+ $metadata = deserializeMetadata(output);
1794
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1773
1795
  response = new __BaseException({
1774
- name: parsedBody.code || parsedBody.Code || errorCode,
1796
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1775
1797
  $fault: "client",
1776
- $metadata: deserializeMetadata(output),
1798
+ $metadata: $metadata,
1777
1799
  });
1778
1800
  throw __decorateServiceException(response, parsedBody);
1779
1801
  }
@@ -1798,7 +1820,7 @@ export var deserializeAws_json1_1ListWorkflowsCommand = function (output, contex
1798
1820
  });
1799
1821
  }); };
1800
1822
  var deserializeAws_json1_1ListWorkflowsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1801
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1823
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1802
1824
  var _c;
1803
1825
  return __generator(this, function (_d) {
1804
1826
  switch (_d.label) {
@@ -1808,7 +1830,6 @@ var deserializeAws_json1_1ListWorkflowsCommandError = function (output, context)
1808
1830
  return [4, parseBody(output.body, context)];
1809
1831
  case 1:
1810
1832
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1811
- errorCode = "UnknownError";
1812
1833
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1813
1834
  _b = errorCode;
1814
1835
  switch (_b) {
@@ -1832,10 +1853,12 @@ var deserializeAws_json1_1ListWorkflowsCommandError = function (output, context)
1832
1853
  case 9: throw _d.sent();
1833
1854
  case 10:
1834
1855
  parsedBody = parsedOutput.body;
1856
+ $metadata = deserializeMetadata(output);
1857
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1835
1858
  response = new __BaseException({
1836
- name: parsedBody.code || parsedBody.Code || errorCode,
1859
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1837
1860
  $fault: "client",
1838
- $metadata: deserializeMetadata(output),
1861
+ $metadata: $metadata,
1839
1862
  });
1840
1863
  throw __decorateServiceException(response, parsedBody);
1841
1864
  }
@@ -1860,7 +1883,7 @@ export var deserializeAws_json1_1SendWorkflowStepStateCommand = function (output
1860
1883
  });
1861
1884
  }); };
1862
1885
  var deserializeAws_json1_1SendWorkflowStepStateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1863
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1886
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1864
1887
  var _c;
1865
1888
  return __generator(this, function (_d) {
1866
1889
  switch (_d.label) {
@@ -1870,7 +1893,6 @@ var deserializeAws_json1_1SendWorkflowStepStateCommandError = function (output,
1870
1893
  return [4, parseBody(output.body, context)];
1871
1894
  case 1:
1872
1895
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1873
- errorCode = "UnknownError";
1874
1896
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1875
1897
  _b = errorCode;
1876
1898
  switch (_b) {
@@ -1902,10 +1924,12 @@ var deserializeAws_json1_1SendWorkflowStepStateCommandError = function (output,
1902
1924
  case 13: throw _d.sent();
1903
1925
  case 14:
1904
1926
  parsedBody = parsedOutput.body;
1927
+ $metadata = deserializeMetadata(output);
1928
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1905
1929
  response = new __BaseException({
1906
- name: parsedBody.code || parsedBody.Code || errorCode,
1930
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1907
1931
  $fault: "client",
1908
- $metadata: deserializeMetadata(output),
1932
+ $metadata: $metadata,
1909
1933
  });
1910
1934
  throw __decorateServiceException(response, parsedBody);
1911
1935
  }
@@ -1930,7 +1954,7 @@ export var deserializeAws_json1_1StartServerCommand = function (output, context)
1930
1954
  });
1931
1955
  }); };
1932
1956
  var deserializeAws_json1_1StartServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1933
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1957
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1934
1958
  var _c;
1935
1959
  return __generator(this, function (_d) {
1936
1960
  switch (_d.label) {
@@ -1940,7 +1964,6 @@ var deserializeAws_json1_1StartServerCommandError = function (output, context) {
1940
1964
  return [4, parseBody(output.body, context)];
1941
1965
  case 1:
1942
1966
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1943
- errorCode = "UnknownError";
1944
1967
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1945
1968
  _b = errorCode;
1946
1969
  switch (_b) {
@@ -1968,10 +1991,12 @@ var deserializeAws_json1_1StartServerCommandError = function (output, context) {
1968
1991
  case 11: throw _d.sent();
1969
1992
  case 12:
1970
1993
  parsedBody = parsedOutput.body;
1994
+ $metadata = deserializeMetadata(output);
1995
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1971
1996
  response = new __BaseException({
1972
- name: parsedBody.code || parsedBody.Code || errorCode,
1997
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1973
1998
  $fault: "client",
1974
- $metadata: deserializeMetadata(output),
1999
+ $metadata: $metadata,
1975
2000
  });
1976
2001
  throw __decorateServiceException(response, parsedBody);
1977
2002
  }
@@ -1996,7 +2021,7 @@ export var deserializeAws_json1_1StopServerCommand = function (output, context)
1996
2021
  });
1997
2022
  }); };
1998
2023
  var deserializeAws_json1_1StopServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1999
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2024
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2000
2025
  var _c;
2001
2026
  return __generator(this, function (_d) {
2002
2027
  switch (_d.label) {
@@ -2006,7 +2031,6 @@ var deserializeAws_json1_1StopServerCommandError = function (output, context) {
2006
2031
  return [4, parseBody(output.body, context)];
2007
2032
  case 1:
2008
2033
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2009
- errorCode = "UnknownError";
2010
2034
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2011
2035
  _b = errorCode;
2012
2036
  switch (_b) {
@@ -2034,10 +2058,12 @@ var deserializeAws_json1_1StopServerCommandError = function (output, context) {
2034
2058
  case 11: throw _d.sent();
2035
2059
  case 12:
2036
2060
  parsedBody = parsedOutput.body;
2061
+ $metadata = deserializeMetadata(output);
2062
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2037
2063
  response = new __BaseException({
2038
- name: parsedBody.code || parsedBody.Code || errorCode,
2064
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2039
2065
  $fault: "client",
2040
- $metadata: deserializeMetadata(output),
2066
+ $metadata: $metadata,
2041
2067
  });
2042
2068
  throw __decorateServiceException(response, parsedBody);
2043
2069
  }
@@ -2062,7 +2088,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
2062
2088
  });
2063
2089
  }); };
2064
2090
  var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2065
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2091
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2066
2092
  var _c;
2067
2093
  return __generator(this, function (_d) {
2068
2094
  switch (_d.label) {
@@ -2072,7 +2098,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
2072
2098
  return [4, parseBody(output.body, context)];
2073
2099
  case 1:
2074
2100
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2075
- errorCode = "UnknownError";
2076
2101
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2077
2102
  _b = errorCode;
2078
2103
  switch (_b) {
@@ -2096,10 +2121,12 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
2096
2121
  case 9: throw _d.sent();
2097
2122
  case 10:
2098
2123
  parsedBody = parsedOutput.body;
2124
+ $metadata = deserializeMetadata(output);
2125
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2099
2126
  response = new __BaseException({
2100
- name: parsedBody.code || parsedBody.Code || errorCode,
2127
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2101
2128
  $fault: "client",
2102
- $metadata: deserializeMetadata(output),
2129
+ $metadata: $metadata,
2103
2130
  });
2104
2131
  throw __decorateServiceException(response, parsedBody);
2105
2132
  }
@@ -2124,7 +2151,7 @@ export var deserializeAws_json1_1TestIdentityProviderCommand = function (output,
2124
2151
  });
2125
2152
  }); };
2126
2153
  var deserializeAws_json1_1TestIdentityProviderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2127
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2154
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2128
2155
  var _c;
2129
2156
  return __generator(this, function (_d) {
2130
2157
  switch (_d.label) {
@@ -2134,7 +2161,6 @@ var deserializeAws_json1_1TestIdentityProviderCommandError = function (output, c
2134
2161
  return [4, parseBody(output.body, context)];
2135
2162
  case 1:
2136
2163
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2137
- errorCode = "UnknownError";
2138
2164
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2139
2165
  _b = errorCode;
2140
2166
  switch (_b) {
@@ -2158,10 +2184,12 @@ var deserializeAws_json1_1TestIdentityProviderCommandError = function (output, c
2158
2184
  case 9: throw _d.sent();
2159
2185
  case 10:
2160
2186
  parsedBody = parsedOutput.body;
2187
+ $metadata = deserializeMetadata(output);
2188
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2161
2189
  response = new __BaseException({
2162
- name: parsedBody.code || parsedBody.Code || errorCode,
2190
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2163
2191
  $fault: "client",
2164
- $metadata: deserializeMetadata(output),
2192
+ $metadata: $metadata,
2165
2193
  });
2166
2194
  throw __decorateServiceException(response, parsedBody);
2167
2195
  }
@@ -2186,7 +2214,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
2186
2214
  });
2187
2215
  }); };
2188
2216
  var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2189
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2217
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2190
2218
  var _c;
2191
2219
  return __generator(this, function (_d) {
2192
2220
  switch (_d.label) {
@@ -2196,7 +2224,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
2196
2224
  return [4, parseBody(output.body, context)];
2197
2225
  case 1:
2198
2226
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2199
- errorCode = "UnknownError";
2200
2227
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2201
2228
  _b = errorCode;
2202
2229
  switch (_b) {
@@ -2220,10 +2247,12 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
2220
2247
  case 9: throw _d.sent();
2221
2248
  case 10:
2222
2249
  parsedBody = parsedOutput.body;
2250
+ $metadata = deserializeMetadata(output);
2251
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2223
2252
  response = new __BaseException({
2224
- name: parsedBody.code || parsedBody.Code || errorCode,
2253
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2225
2254
  $fault: "client",
2226
- $metadata: deserializeMetadata(output),
2255
+ $metadata: $metadata,
2227
2256
  });
2228
2257
  throw __decorateServiceException(response, parsedBody);
2229
2258
  }
@@ -2248,7 +2277,7 @@ export var deserializeAws_json1_1UpdateAccessCommand = function (output, context
2248
2277
  });
2249
2278
  }); };
2250
2279
  var deserializeAws_json1_1UpdateAccessCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2251
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2280
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2252
2281
  var _c;
2253
2282
  return __generator(this, function (_d) {
2254
2283
  switch (_d.label) {
@@ -2258,7 +2287,6 @@ var deserializeAws_json1_1UpdateAccessCommandError = function (output, context)
2258
2287
  return [4, parseBody(output.body, context)];
2259
2288
  case 1:
2260
2289
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2261
- errorCode = "UnknownError";
2262
2290
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2263
2291
  _b = errorCode;
2264
2292
  switch (_b) {
@@ -2286,10 +2314,12 @@ var deserializeAws_json1_1UpdateAccessCommandError = function (output, context)
2286
2314
  case 11: throw _d.sent();
2287
2315
  case 12:
2288
2316
  parsedBody = parsedOutput.body;
2317
+ $metadata = deserializeMetadata(output);
2318
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2289
2319
  response = new __BaseException({
2290
- name: parsedBody.code || parsedBody.Code || errorCode,
2320
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2291
2321
  $fault: "client",
2292
- $metadata: deserializeMetadata(output),
2322
+ $metadata: $metadata,
2293
2323
  });
2294
2324
  throw __decorateServiceException(response, parsedBody);
2295
2325
  }
@@ -2314,7 +2344,7 @@ export var deserializeAws_json1_1UpdateServerCommand = function (output, context
2314
2344
  });
2315
2345
  }); };
2316
2346
  var deserializeAws_json1_1UpdateServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2317
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2347
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2318
2348
  var _c;
2319
2349
  return __generator(this, function (_d) {
2320
2350
  switch (_d.label) {
@@ -2324,7 +2354,6 @@ var deserializeAws_json1_1UpdateServerCommandError = function (output, context)
2324
2354
  return [4, parseBody(output.body, context)];
2325
2355
  case 1:
2326
2356
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2327
- errorCode = "UnknownError";
2328
2357
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2329
2358
  _b = errorCode;
2330
2359
  switch (_b) {
@@ -2364,10 +2393,12 @@ var deserializeAws_json1_1UpdateServerCommandError = function (output, context)
2364
2393
  case 17: throw _d.sent();
2365
2394
  case 18:
2366
2395
  parsedBody = parsedOutput.body;
2396
+ $metadata = deserializeMetadata(output);
2397
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2367
2398
  response = new __BaseException({
2368
- name: parsedBody.code || parsedBody.Code || errorCode,
2399
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2369
2400
  $fault: "client",
2370
- $metadata: deserializeMetadata(output),
2401
+ $metadata: $metadata,
2371
2402
  });
2372
2403
  throw __decorateServiceException(response, parsedBody);
2373
2404
  }
@@ -2392,7 +2423,7 @@ export var deserializeAws_json1_1UpdateUserCommand = function (output, context)
2392
2423
  });
2393
2424
  }); };
2394
2425
  var deserializeAws_json1_1UpdateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2395
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2426
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2396
2427
  var _c;
2397
2428
  return __generator(this, function (_d) {
2398
2429
  switch (_d.label) {
@@ -2402,7 +2433,6 @@ var deserializeAws_json1_1UpdateUserCommandError = function (output, context) {
2402
2433
  return [4, parseBody(output.body, context)];
2403
2434
  case 1:
2404
2435
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2405
- errorCode = "UnknownError";
2406
2436
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2407
2437
  _b = errorCode;
2408
2438
  switch (_b) {
@@ -2430,10 +2460,12 @@ var deserializeAws_json1_1UpdateUserCommandError = function (output, context) {
2430
2460
  case 11: throw _d.sent();
2431
2461
  case 12:
2432
2462
  parsedBody = parsedOutput.body;
2463
+ $metadata = deserializeMetadata(output);
2464
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2433
2465
  response = new __BaseException({
2434
- name: parsedBody.code || parsedBody.Code || errorCode,
2466
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2435
2467
  $fault: "client",
2436
- $metadata: deserializeMetadata(output),
2468
+ $metadata: $metadata,
2437
2469
  });
2438
2470
  throw __decorateServiceException(response, parsedBody);
2439
2471
  }
@@ -2531,120 +2563,91 @@ var serializeAws_json1_1AddressAllocationIds = function (input, context) {
2531
2563
  });
2532
2564
  };
2533
2565
  var serializeAws_json1_1CopyStepDetails = function (input, context) {
2534
- return __assign(__assign(__assign(__assign({}, (input.DestinationFileLocation !== undefined &&
2535
- input.DestinationFileLocation !== null && {
2566
+ return __assign(__assign(__assign(__assign({}, (input.DestinationFileLocation != null && {
2536
2567
  DestinationFileLocation: serializeAws_json1_1InputFileLocation(input.DestinationFileLocation, context),
2537
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.OverwriteExisting !== undefined &&
2538
- input.OverwriteExisting !== null && { OverwriteExisting: input.OverwriteExisting })), (input.SourceFileLocation !== undefined &&
2539
- input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }));
2568
+ })), (input.Name != null && { Name: input.Name })), (input.OverwriteExisting != null && { OverwriteExisting: input.OverwriteExisting })), (input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }));
2540
2569
  };
2541
2570
  var serializeAws_json1_1CreateAccessRequest = function (input, context) {
2542
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId })), (input.HomeDirectory !== undefined && input.HomeDirectory !== null && { HomeDirectory: input.HomeDirectory })), (input.HomeDirectoryMappings !== undefined &&
2543
- input.HomeDirectoryMappings !== null && {
2571
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExternalId != null && { ExternalId: input.ExternalId })), (input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory })), (input.HomeDirectoryMappings != null && {
2544
2572
  HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
2545
- })), (input.HomeDirectoryType !== undefined &&
2546
- input.HomeDirectoryType !== null && { HomeDirectoryType: input.HomeDirectoryType })), (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })), (input.PosixProfile !== undefined &&
2547
- input.PosixProfile !== null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) })), (input.Role !== undefined && input.Role !== null && { Role: input.Role })), (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }));
2573
+ })), (input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType })), (input.Policy != null && { Policy: input.Policy })), (input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) })), (input.Role != null && { Role: input.Role })), (input.ServerId != null && { ServerId: input.ServerId }));
2548
2574
  };
2549
2575
  var serializeAws_json1_1CreateServerRequest = function (input, context) {
2550
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate })), (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.EndpointDetails !== undefined &&
2551
- input.EndpointDetails !== null && {
2576
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Certificate != null && { Certificate: input.Certificate })), (input.Domain != null && { Domain: input.Domain })), (input.EndpointDetails != null && {
2552
2577
  EndpointDetails: serializeAws_json1_1EndpointDetails(input.EndpointDetails, context),
2553
- })), (input.EndpointType !== undefined && input.EndpointType !== null && { EndpointType: input.EndpointType })), (input.HostKey !== undefined && input.HostKey !== null && { HostKey: input.HostKey })), (input.IdentityProviderDetails !== undefined &&
2554
- input.IdentityProviderDetails !== null && {
2578
+ })), (input.EndpointType != null && { EndpointType: input.EndpointType })), (input.HostKey != null && { HostKey: input.HostKey })), (input.IdentityProviderDetails != null && {
2555
2579
  IdentityProviderDetails: serializeAws_json1_1IdentityProviderDetails(input.IdentityProviderDetails, context),
2556
- })), (input.IdentityProviderType !== undefined &&
2557
- input.IdentityProviderType !== null && { IdentityProviderType: input.IdentityProviderType })), (input.LoggingRole !== undefined && input.LoggingRole !== null && { LoggingRole: input.LoggingRole })), (input.PostAuthenticationLoginBanner !== undefined &&
2558
- input.PostAuthenticationLoginBanner !== null && {
2580
+ })), (input.IdentityProviderType != null && { IdentityProviderType: input.IdentityProviderType })), (input.LoggingRole != null && { LoggingRole: input.LoggingRole })), (input.PostAuthenticationLoginBanner != null && {
2559
2581
  PostAuthenticationLoginBanner: input.PostAuthenticationLoginBanner,
2560
- })), (input.PreAuthenticationLoginBanner !== undefined &&
2561
- input.PreAuthenticationLoginBanner !== null && {
2582
+ })), (input.PreAuthenticationLoginBanner != null && {
2562
2583
  PreAuthenticationLoginBanner: input.PreAuthenticationLoginBanner,
2563
- })), (input.ProtocolDetails !== undefined &&
2564
- input.ProtocolDetails !== null && {
2584
+ })), (input.ProtocolDetails != null && {
2565
2585
  ProtocolDetails: serializeAws_json1_1ProtocolDetails(input.ProtocolDetails, context),
2566
- })), (input.Protocols !== undefined &&
2567
- input.Protocols !== null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) })), (input.SecurityPolicyName !== undefined &&
2568
- input.SecurityPolicyName !== null && { SecurityPolicyName: input.SecurityPolicyName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.WorkflowDetails !== undefined &&
2569
- input.WorkflowDetails !== null && {
2586
+ })), (input.Protocols != null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) })), (input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.WorkflowDetails != null && {
2570
2587
  WorkflowDetails: serializeAws_json1_1WorkflowDetails(input.WorkflowDetails, context),
2571
2588
  }));
2572
2589
  };
2573
2590
  var serializeAws_json1_1CreateUserRequest = function (input, context) {
2574
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.HomeDirectory !== undefined && input.HomeDirectory !== null && { HomeDirectory: input.HomeDirectory })), (input.HomeDirectoryMappings !== undefined &&
2575
- input.HomeDirectoryMappings !== null && {
2591
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory })), (input.HomeDirectoryMappings != null && {
2576
2592
  HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
2577
- })), (input.HomeDirectoryType !== undefined &&
2578
- input.HomeDirectoryType !== null && { HomeDirectoryType: input.HomeDirectoryType })), (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })), (input.PosixProfile !== undefined &&
2579
- input.PosixProfile !== null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) })), (input.Role !== undefined && input.Role !== null && { Role: input.Role })), (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId })), (input.SshPublicKeyBody !== undefined &&
2580
- input.SshPublicKeyBody !== null && { SshPublicKeyBody: input.SshPublicKeyBody })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
2593
+ })), (input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType })), (input.Policy != null && { Policy: input.Policy })), (input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) })), (input.Role != null && { Role: input.Role })), (input.ServerId != null && { ServerId: input.ServerId })), (input.SshPublicKeyBody != null && { SshPublicKeyBody: input.SshPublicKeyBody })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.UserName != null && { UserName: input.UserName }));
2581
2594
  };
2582
2595
  var serializeAws_json1_1CreateWorkflowRequest = function (input, context) {
2583
- return __assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.OnExceptionSteps !== undefined &&
2584
- input.OnExceptionSteps !== null && {
2596
+ return __assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.OnExceptionSteps != null && {
2585
2597
  OnExceptionSteps: serializeAws_json1_1WorkflowSteps(input.OnExceptionSteps, context),
2586
- })), (input.Steps !== undefined &&
2587
- input.Steps !== null && { Steps: serializeAws_json1_1WorkflowSteps(input.Steps, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
2598
+ })), (input.Steps != null && { Steps: serializeAws_json1_1WorkflowSteps(input.Steps, context) })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
2588
2599
  };
2589
2600
  var serializeAws_json1_1CustomStepDetails = function (input, context) {
2590
- return __assign(__assign(__assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SourceFileLocation !== undefined &&
2591
- input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation })), (input.Target !== undefined && input.Target !== null && { Target: input.Target })), (input.TimeoutSeconds !== undefined &&
2592
- input.TimeoutSeconds !== null && { TimeoutSeconds: input.TimeoutSeconds }));
2601
+ return __assign(__assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation })), (input.Target != null && { Target: input.Target })), (input.TimeoutSeconds != null && { TimeoutSeconds: input.TimeoutSeconds }));
2593
2602
  };
2594
2603
  var serializeAws_json1_1DeleteAccessRequest = function (input, context) {
2595
- return __assign(__assign({}, (input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId })), (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }));
2604
+ return __assign(__assign({}, (input.ExternalId != null && { ExternalId: input.ExternalId })), (input.ServerId != null && { ServerId: input.ServerId }));
2596
2605
  };
2597
2606
  var serializeAws_json1_1DeleteServerRequest = function (input, context) {
2598
- return __assign({}, (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }));
2607
+ return __assign({}, (input.ServerId != null && { ServerId: input.ServerId }));
2599
2608
  };
2600
2609
  var serializeAws_json1_1DeleteSshPublicKeyRequest = function (input, context) {
2601
- return __assign(__assign(__assign({}, (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId })), (input.SshPublicKeyId !== undefined &&
2602
- input.SshPublicKeyId !== null && { SshPublicKeyId: input.SshPublicKeyId })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
2610
+ return __assign(__assign(__assign({}, (input.ServerId != null && { ServerId: input.ServerId })), (input.SshPublicKeyId != null && { SshPublicKeyId: input.SshPublicKeyId })), (input.UserName != null && { UserName: input.UserName }));
2603
2611
  };
2604
2612
  var serializeAws_json1_1DeleteStepDetails = function (input, context) {
2605
- return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SourceFileLocation !== undefined &&
2606
- input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }));
2613
+ return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }));
2607
2614
  };
2608
2615
  var serializeAws_json1_1DeleteUserRequest = function (input, context) {
2609
- return __assign(__assign({}, (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
2616
+ return __assign(__assign({}, (input.ServerId != null && { ServerId: input.ServerId })), (input.UserName != null && { UserName: input.UserName }));
2610
2617
  };
2611
2618
  var serializeAws_json1_1DeleteWorkflowRequest = function (input, context) {
2612
- return __assign({}, (input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }));
2619
+ return __assign({}, (input.WorkflowId != null && { WorkflowId: input.WorkflowId }));
2613
2620
  };
2614
2621
  var serializeAws_json1_1DescribeAccessRequest = function (input, context) {
2615
- return __assign(__assign({}, (input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId })), (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }));
2622
+ return __assign(__assign({}, (input.ExternalId != null && { ExternalId: input.ExternalId })), (input.ServerId != null && { ServerId: input.ServerId }));
2616
2623
  };
2617
2624
  var serializeAws_json1_1DescribeExecutionRequest = function (input, context) {
2618
- return __assign(__assign({}, (input.ExecutionId !== undefined && input.ExecutionId !== null && { ExecutionId: input.ExecutionId })), (input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }));
2625
+ return __assign(__assign({}, (input.ExecutionId != null && { ExecutionId: input.ExecutionId })), (input.WorkflowId != null && { WorkflowId: input.WorkflowId }));
2619
2626
  };
2620
2627
  var serializeAws_json1_1DescribeSecurityPolicyRequest = function (input, context) {
2621
- return __assign({}, (input.SecurityPolicyName !== undefined &&
2622
- input.SecurityPolicyName !== null && { SecurityPolicyName: input.SecurityPolicyName }));
2628
+ return __assign({}, (input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }));
2623
2629
  };
2624
2630
  var serializeAws_json1_1DescribeServerRequest = function (input, context) {
2625
- return __assign({}, (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }));
2631
+ return __assign({}, (input.ServerId != null && { ServerId: input.ServerId }));
2626
2632
  };
2627
2633
  var serializeAws_json1_1DescribeUserRequest = function (input, context) {
2628
- return __assign(__assign({}, (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
2634
+ return __assign(__assign({}, (input.ServerId != null && { ServerId: input.ServerId })), (input.UserName != null && { UserName: input.UserName }));
2629
2635
  };
2630
2636
  var serializeAws_json1_1DescribeWorkflowRequest = function (input, context) {
2631
- return __assign({}, (input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }));
2637
+ return __assign({}, (input.WorkflowId != null && { WorkflowId: input.WorkflowId }));
2632
2638
  };
2633
2639
  var serializeAws_json1_1EfsFileLocation = function (input, context) {
2634
- return __assign(__assign({}, (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId })), (input.Path !== undefined && input.Path !== null && { Path: input.Path }));
2640
+ return __assign(__assign({}, (input.FileSystemId != null && { FileSystemId: input.FileSystemId })), (input.Path != null && { Path: input.Path }));
2635
2641
  };
2636
2642
  var serializeAws_json1_1EndpointDetails = function (input, context) {
2637
- return __assign(__assign(__assign(__assign(__assign({}, (input.AddressAllocationIds !== undefined &&
2638
- input.AddressAllocationIds !== null && {
2643
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AddressAllocationIds != null && {
2639
2644
  AddressAllocationIds: serializeAws_json1_1AddressAllocationIds(input.AddressAllocationIds, context),
2640
- })), (input.SecurityGroupIds !== undefined &&
2641
- input.SecurityGroupIds !== null && {
2645
+ })), (input.SecurityGroupIds != null && {
2642
2646
  SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context),
2643
- })), (input.SubnetIds !== undefined &&
2644
- input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) })), (input.VpcEndpointId !== undefined && input.VpcEndpointId !== null && { VpcEndpointId: input.VpcEndpointId })), (input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }));
2647
+ })), (input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) })), (input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId })), (input.VpcId != null && { VpcId: input.VpcId }));
2645
2648
  };
2646
2649
  var serializeAws_json1_1HomeDirectoryMapEntry = function (input, context) {
2647
- return __assign(__assign({}, (input.Entry !== undefined && input.Entry !== null && { Entry: input.Entry })), (input.Target !== undefined && input.Target !== null && { Target: input.Target }));
2650
+ return __assign(__assign({}, (input.Entry != null && { Entry: input.Entry })), (input.Target != null && { Target: input.Target }));
2648
2651
  };
2649
2652
  var serializeAws_json1_1HomeDirectoryMappings = function (input, context) {
2650
2653
  return input
@@ -2657,42 +2660,38 @@ var serializeAws_json1_1HomeDirectoryMappings = function (input, context) {
2657
2660
  });
2658
2661
  };
2659
2662
  var serializeAws_json1_1IdentityProviderDetails = function (input, context) {
2660
- return __assign(__assign(__assign(__assign({}, (input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId })), (input.Function !== undefined && input.Function !== null && { Function: input.Function })), (input.InvocationRole !== undefined &&
2661
- input.InvocationRole !== null && { InvocationRole: input.InvocationRole })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
2663
+ return __assign(__assign(__assign(__assign({}, (input.DirectoryId != null && { DirectoryId: input.DirectoryId })), (input.Function != null && { Function: input.Function })), (input.InvocationRole != null && { InvocationRole: input.InvocationRole })), (input.Url != null && { Url: input.Url }));
2662
2664
  };
2663
2665
  var serializeAws_json1_1ImportSshPublicKeyRequest = function (input, context) {
2664
- return __assign(__assign(__assign({}, (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId })), (input.SshPublicKeyBody !== undefined &&
2665
- input.SshPublicKeyBody !== null && { SshPublicKeyBody: input.SshPublicKeyBody })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
2666
+ return __assign(__assign(__assign({}, (input.ServerId != null && { ServerId: input.ServerId })), (input.SshPublicKeyBody != null && { SshPublicKeyBody: input.SshPublicKeyBody })), (input.UserName != null && { UserName: input.UserName }));
2666
2667
  };
2667
2668
  var serializeAws_json1_1InputFileLocation = function (input, context) {
2668
- return __assign(__assign({}, (input.EfsFileLocation !== undefined &&
2669
- input.EfsFileLocation !== null && {
2669
+ return __assign(__assign({}, (input.EfsFileLocation != null && {
2670
2670
  EfsFileLocation: serializeAws_json1_1EfsFileLocation(input.EfsFileLocation, context),
2671
- })), (input.S3FileLocation !== undefined &&
2672
- input.S3FileLocation !== null && {
2671
+ })), (input.S3FileLocation != null && {
2673
2672
  S3FileLocation: serializeAws_json1_1S3InputFileLocation(input.S3FileLocation, context),
2674
2673
  }));
2675
2674
  };
2676
2675
  var serializeAws_json1_1ListAccessesRequest = function (input, context) {
2677
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }));
2676
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ServerId != null && { ServerId: input.ServerId }));
2678
2677
  };
2679
2678
  var serializeAws_json1_1ListExecutionsRequest = function (input, context) {
2680
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }));
2679
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.WorkflowId != null && { WorkflowId: input.WorkflowId }));
2681
2680
  };
2682
2681
  var serializeAws_json1_1ListSecurityPoliciesRequest = function (input, context) {
2683
- return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2682
+ return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2684
2683
  };
2685
2684
  var serializeAws_json1_1ListServersRequest = function (input, context) {
2686
- return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2685
+ return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2687
2686
  };
2688
2687
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
2689
- return __assign(__assign(__assign({}, (input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2688
+ return __assign(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2690
2689
  };
2691
2690
  var serializeAws_json1_1ListUsersRequest = function (input, context) {
2692
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }));
2691
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ServerId != null && { ServerId: input.ServerId }));
2693
2692
  };
2694
2693
  var serializeAws_json1_1ListWorkflowsRequest = function (input, context) {
2695
- return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2694
+ return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2696
2695
  };
2697
2696
  var serializeAws_json1_1OnUploadWorkflowDetails = function (input, context) {
2698
2697
  return input
@@ -2705,14 +2704,12 @@ var serializeAws_json1_1OnUploadWorkflowDetails = function (input, context) {
2705
2704
  });
2706
2705
  };
2707
2706
  var serializeAws_json1_1PosixProfile = function (input, context) {
2708
- return __assign(__assign(__assign({}, (input.Gid !== undefined && input.Gid !== null && { Gid: input.Gid })), (input.SecondaryGids !== undefined &&
2709
- input.SecondaryGids !== null && {
2707
+ return __assign(__assign(__assign({}, (input.Gid != null && { Gid: input.Gid })), (input.SecondaryGids != null && {
2710
2708
  SecondaryGids: serializeAws_json1_1SecondaryGids(input.SecondaryGids, context),
2711
- })), (input.Uid !== undefined && input.Uid !== null && { Uid: input.Uid }));
2709
+ })), (input.Uid != null && { Uid: input.Uid }));
2712
2710
  };
2713
2711
  var serializeAws_json1_1ProtocolDetails = function (input, context) {
2714
- return __assign(__assign(__assign({}, (input.PassiveIp !== undefined && input.PassiveIp !== null && { PassiveIp: input.PassiveIp })), (input.SetStatOption !== undefined && input.SetStatOption !== null && { SetStatOption: input.SetStatOption })), (input.TlsSessionResumptionMode !== undefined &&
2715
- input.TlsSessionResumptionMode !== null && { TlsSessionResumptionMode: input.TlsSessionResumptionMode }));
2712
+ return __assign(__assign(__assign({}, (input.PassiveIp != null && { PassiveIp: input.PassiveIp })), (input.SetStatOption != null && { SetStatOption: input.SetStatOption })), (input.TlsSessionResumptionMode != null && { TlsSessionResumptionMode: input.TlsSessionResumptionMode }));
2716
2713
  };
2717
2714
  var serializeAws_json1_1Protocols = function (input, context) {
2718
2715
  return input
@@ -2725,10 +2722,10 @@ var serializeAws_json1_1Protocols = function (input, context) {
2725
2722
  });
2726
2723
  };
2727
2724
  var serializeAws_json1_1S3InputFileLocation = function (input, context) {
2728
- return __assign(__assign({}, (input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket })), (input.Key !== undefined && input.Key !== null && { Key: input.Key }));
2725
+ return __assign(__assign({}, (input.Bucket != null && { Bucket: input.Bucket })), (input.Key != null && { Key: input.Key }));
2729
2726
  };
2730
2727
  var serializeAws_json1_1S3Tag = function (input, context) {
2731
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
2728
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
2732
2729
  };
2733
2730
  var serializeAws_json1_1S3Tags = function (input, context) {
2734
2731
  return input
@@ -2761,13 +2758,13 @@ var serializeAws_json1_1SecurityGroupIds = function (input, context) {
2761
2758
  });
2762
2759
  };
2763
2760
  var serializeAws_json1_1SendWorkflowStepStateRequest = function (input, context) {
2764
- return __assign(__assign(__assign(__assign({}, (input.ExecutionId !== undefined && input.ExecutionId !== null && { ExecutionId: input.ExecutionId })), (input.Status !== undefined && input.Status !== null && { Status: input.Status })), (input.Token !== undefined && input.Token !== null && { Token: input.Token })), (input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }));
2761
+ return __assign(__assign(__assign(__assign({}, (input.ExecutionId != null && { ExecutionId: input.ExecutionId })), (input.Status != null && { Status: input.Status })), (input.Token != null && { Token: input.Token })), (input.WorkflowId != null && { WorkflowId: input.WorkflowId }));
2765
2762
  };
2766
2763
  var serializeAws_json1_1StartServerRequest = function (input, context) {
2767
- return __assign({}, (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }));
2764
+ return __assign({}, (input.ServerId != null && { ServerId: input.ServerId }));
2768
2765
  };
2769
2766
  var serializeAws_json1_1StopServerRequest = function (input, context) {
2770
- return __assign({}, (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }));
2767
+ return __assign({}, (input.ServerId != null && { ServerId: input.ServerId }));
2771
2768
  };
2772
2769
  var serializeAws_json1_1SubnetIds = function (input, context) {
2773
2770
  return input
@@ -2780,7 +2777,7 @@ var serializeAws_json1_1SubnetIds = function (input, context) {
2780
2777
  });
2781
2778
  };
2782
2779
  var serializeAws_json1_1Tag = function (input, context) {
2783
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
2780
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
2784
2781
  };
2785
2782
  var serializeAws_json1_1TagKeys = function (input, context) {
2786
2783
  return input
@@ -2793,7 +2790,7 @@ var serializeAws_json1_1TagKeys = function (input, context) {
2793
2790
  });
2794
2791
  };
2795
2792
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
2796
- return __assign(__assign({}, (input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
2793
+ return __assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
2797
2794
  };
2798
2795
  var serializeAws_json1_1Tags = function (input, context) {
2799
2796
  return input
@@ -2806,77 +2803,55 @@ var serializeAws_json1_1Tags = function (input, context) {
2806
2803
  });
2807
2804
  };
2808
2805
  var serializeAws_json1_1TagStepDetails = function (input, context) {
2809
- return __assign(__assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SourceFileLocation !== undefined &&
2810
- input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1S3Tags(input.Tags, context) }));
2806
+ return __assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation })), (input.Tags != null && { Tags: serializeAws_json1_1S3Tags(input.Tags, context) }));
2811
2807
  };
2812
2808
  var serializeAws_json1_1TestIdentityProviderRequest = function (input, context) {
2813
- return __assign(__assign(__assign(__assign(__assign({}, (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId })), (input.ServerProtocol !== undefined &&
2814
- input.ServerProtocol !== null && { ServerProtocol: input.ServerProtocol })), (input.SourceIp !== undefined && input.SourceIp !== null && { SourceIp: input.SourceIp })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName })), (input.UserPassword !== undefined && input.UserPassword !== null && { UserPassword: input.UserPassword }));
2809
+ return __assign(__assign(__assign(__assign(__assign({}, (input.ServerId != null && { ServerId: input.ServerId })), (input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol })), (input.SourceIp != null && { SourceIp: input.SourceIp })), (input.UserName != null && { UserName: input.UserName })), (input.UserPassword != null && { UserPassword: input.UserPassword }));
2815
2810
  };
2816
2811
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
2817
- return __assign(__assign({}, (input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn })), (input.TagKeys !== undefined &&
2818
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }));
2812
+ return __assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }));
2819
2813
  };
2820
2814
  var serializeAws_json1_1UpdateAccessRequest = function (input, context) {
2821
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId })), (input.HomeDirectory !== undefined && input.HomeDirectory !== null && { HomeDirectory: input.HomeDirectory })), (input.HomeDirectoryMappings !== undefined &&
2822
- input.HomeDirectoryMappings !== null && {
2815
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExternalId != null && { ExternalId: input.ExternalId })), (input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory })), (input.HomeDirectoryMappings != null && {
2823
2816
  HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
2824
- })), (input.HomeDirectoryType !== undefined &&
2825
- input.HomeDirectoryType !== null && { HomeDirectoryType: input.HomeDirectoryType })), (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })), (input.PosixProfile !== undefined &&
2826
- input.PosixProfile !== null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) })), (input.Role !== undefined && input.Role !== null && { Role: input.Role })), (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }));
2817
+ })), (input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType })), (input.Policy != null && { Policy: input.Policy })), (input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) })), (input.Role != null && { Role: input.Role })), (input.ServerId != null && { ServerId: input.ServerId }));
2827
2818
  };
2828
2819
  var serializeAws_json1_1UpdateServerRequest = function (input, context) {
2829
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate })), (input.EndpointDetails !== undefined &&
2830
- input.EndpointDetails !== null && {
2820
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Certificate != null && { Certificate: input.Certificate })), (input.EndpointDetails != null && {
2831
2821
  EndpointDetails: serializeAws_json1_1EndpointDetails(input.EndpointDetails, context),
2832
- })), (input.EndpointType !== undefined && input.EndpointType !== null && { EndpointType: input.EndpointType })), (input.HostKey !== undefined && input.HostKey !== null && { HostKey: input.HostKey })), (input.IdentityProviderDetails !== undefined &&
2833
- input.IdentityProviderDetails !== null && {
2822
+ })), (input.EndpointType != null && { EndpointType: input.EndpointType })), (input.HostKey != null && { HostKey: input.HostKey })), (input.IdentityProviderDetails != null && {
2834
2823
  IdentityProviderDetails: serializeAws_json1_1IdentityProviderDetails(input.IdentityProviderDetails, context),
2835
- })), (input.LoggingRole !== undefined && input.LoggingRole !== null && { LoggingRole: input.LoggingRole })), (input.PostAuthenticationLoginBanner !== undefined &&
2836
- input.PostAuthenticationLoginBanner !== null && {
2824
+ })), (input.LoggingRole != null && { LoggingRole: input.LoggingRole })), (input.PostAuthenticationLoginBanner != null && {
2837
2825
  PostAuthenticationLoginBanner: input.PostAuthenticationLoginBanner,
2838
- })), (input.PreAuthenticationLoginBanner !== undefined &&
2839
- input.PreAuthenticationLoginBanner !== null && {
2826
+ })), (input.PreAuthenticationLoginBanner != null && {
2840
2827
  PreAuthenticationLoginBanner: input.PreAuthenticationLoginBanner,
2841
- })), (input.ProtocolDetails !== undefined &&
2842
- input.ProtocolDetails !== null && {
2828
+ })), (input.ProtocolDetails != null && {
2843
2829
  ProtocolDetails: serializeAws_json1_1ProtocolDetails(input.ProtocolDetails, context),
2844
- })), (input.Protocols !== undefined &&
2845
- input.Protocols !== null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) })), (input.SecurityPolicyName !== undefined &&
2846
- input.SecurityPolicyName !== null && { SecurityPolicyName: input.SecurityPolicyName })), (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId })), (input.WorkflowDetails !== undefined &&
2847
- input.WorkflowDetails !== null && {
2830
+ })), (input.Protocols != null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) })), (input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName })), (input.ServerId != null && { ServerId: input.ServerId })), (input.WorkflowDetails != null && {
2848
2831
  WorkflowDetails: serializeAws_json1_1WorkflowDetails(input.WorkflowDetails, context),
2849
2832
  }));
2850
2833
  };
2851
2834
  var serializeAws_json1_1UpdateUserRequest = function (input, context) {
2852
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.HomeDirectory !== undefined && input.HomeDirectory !== null && { HomeDirectory: input.HomeDirectory })), (input.HomeDirectoryMappings !== undefined &&
2853
- input.HomeDirectoryMappings !== null && {
2835
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory })), (input.HomeDirectoryMappings != null && {
2854
2836
  HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
2855
- })), (input.HomeDirectoryType !== undefined &&
2856
- input.HomeDirectoryType !== null && { HomeDirectoryType: input.HomeDirectoryType })), (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })), (input.PosixProfile !== undefined &&
2857
- input.PosixProfile !== null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) })), (input.Role !== undefined && input.Role !== null && { Role: input.Role })), (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
2837
+ })), (input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType })), (input.Policy != null && { Policy: input.Policy })), (input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) })), (input.Role != null && { Role: input.Role })), (input.ServerId != null && { ServerId: input.ServerId })), (input.UserName != null && { UserName: input.UserName }));
2858
2838
  };
2859
2839
  var serializeAws_json1_1WorkflowDetail = function (input, context) {
2860
- return __assign(__assign({}, (input.ExecutionRole !== undefined && input.ExecutionRole !== null && { ExecutionRole: input.ExecutionRole })), (input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }));
2840
+ return __assign(__assign({}, (input.ExecutionRole != null && { ExecutionRole: input.ExecutionRole })), (input.WorkflowId != null && { WorkflowId: input.WorkflowId }));
2861
2841
  };
2862
2842
  var serializeAws_json1_1WorkflowDetails = function (input, context) {
2863
- return __assign({}, (input.OnUpload !== undefined &&
2864
- input.OnUpload !== null && { OnUpload: serializeAws_json1_1OnUploadWorkflowDetails(input.OnUpload, context) }));
2843
+ return __assign({}, (input.OnUpload != null && { OnUpload: serializeAws_json1_1OnUploadWorkflowDetails(input.OnUpload, context) }));
2865
2844
  };
2866
2845
  var serializeAws_json1_1WorkflowStep = function (input, context) {
2867
- return __assign(__assign(__assign(__assign(__assign({}, (input.CopyStepDetails !== undefined &&
2868
- input.CopyStepDetails !== null && {
2846
+ return __assign(__assign(__assign(__assign(__assign({}, (input.CopyStepDetails != null && {
2869
2847
  CopyStepDetails: serializeAws_json1_1CopyStepDetails(input.CopyStepDetails, context),
2870
- })), (input.CustomStepDetails !== undefined &&
2871
- input.CustomStepDetails !== null && {
2848
+ })), (input.CustomStepDetails != null && {
2872
2849
  CustomStepDetails: serializeAws_json1_1CustomStepDetails(input.CustomStepDetails, context),
2873
- })), (input.DeleteStepDetails !== undefined &&
2874
- input.DeleteStepDetails !== null && {
2850
+ })), (input.DeleteStepDetails != null && {
2875
2851
  DeleteStepDetails: serializeAws_json1_1DeleteStepDetails(input.DeleteStepDetails, context),
2876
- })), (input.TagStepDetails !== undefined &&
2877
- input.TagStepDetails !== null && {
2852
+ })), (input.TagStepDetails != null && {
2878
2853
  TagStepDetails: serializeAws_json1_1TagStepDetails(input.TagStepDetails, context),
2879
- })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2854
+ })), (input.Type != null && { Type: input.Type }));
2880
2855
  };
2881
2856
  var serializeAws_json1_1WorkflowSteps = function (input, context) {
2882
2857
  return input
@@ -2911,7 +2886,7 @@ var deserializeAws_json1_1ConflictException = function (output, context) {
2911
2886
  };
2912
2887
  var deserializeAws_json1_1CopyStepDetails = function (output, context) {
2913
2888
  return {
2914
- DestinationFileLocation: output.DestinationFileLocation !== undefined && output.DestinationFileLocation !== null
2889
+ DestinationFileLocation: output.DestinationFileLocation != null
2915
2890
  ? deserializeAws_json1_1InputFileLocation(output.DestinationFileLocation, context)
2916
2891
  : undefined,
2917
2892
  Name: __expectString(output.Name),
@@ -2957,9 +2932,7 @@ var deserializeAws_json1_1DeleteStepDetails = function (output, context) {
2957
2932
  };
2958
2933
  var deserializeAws_json1_1DescribeAccessResponse = function (output, context) {
2959
2934
  return {
2960
- Access: output.Access !== undefined && output.Access !== null
2961
- ? deserializeAws_json1_1DescribedAccess(output.Access, context)
2962
- : undefined,
2935
+ Access: output.Access != null ? deserializeAws_json1_1DescribedAccess(output.Access, context) : undefined,
2963
2936
  ServerId: __expectString(output.ServerId),
2964
2937
  };
2965
2938
  };
@@ -2967,14 +2940,12 @@ var deserializeAws_json1_1DescribedAccess = function (output, context) {
2967
2940
  return {
2968
2941
  ExternalId: __expectString(output.ExternalId),
2969
2942
  HomeDirectory: __expectString(output.HomeDirectory),
2970
- HomeDirectoryMappings: output.HomeDirectoryMappings !== undefined && output.HomeDirectoryMappings !== null
2943
+ HomeDirectoryMappings: output.HomeDirectoryMappings != null
2971
2944
  ? deserializeAws_json1_1HomeDirectoryMappings(output.HomeDirectoryMappings, context)
2972
2945
  : undefined,
2973
2946
  HomeDirectoryType: __expectString(output.HomeDirectoryType),
2974
2947
  Policy: __expectString(output.Policy),
2975
- PosixProfile: output.PosixProfile !== undefined && output.PosixProfile !== null
2976
- ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context)
2977
- : undefined,
2948
+ PosixProfile: output.PosixProfile != null ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context) : undefined,
2978
2949
  Role: __expectString(output.Role),
2979
2950
  };
2980
2951
  };
@@ -2982,19 +2953,15 @@ var deserializeAws_json1_1DescribedExecution = function (output, context) {
2982
2953
  return {
2983
2954
  ExecutionId: __expectString(output.ExecutionId),
2984
2955
  ExecutionRole: __expectString(output.ExecutionRole),
2985
- InitialFileLocation: output.InitialFileLocation !== undefined && output.InitialFileLocation !== null
2956
+ InitialFileLocation: output.InitialFileLocation != null
2986
2957
  ? deserializeAws_json1_1FileLocation(output.InitialFileLocation, context)
2987
2958
  : undefined,
2988
- LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
2959
+ LoggingConfiguration: output.LoggingConfiguration != null
2989
2960
  ? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
2990
2961
  : undefined,
2991
- PosixProfile: output.PosixProfile !== undefined && output.PosixProfile !== null
2992
- ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context)
2993
- : undefined,
2994
- Results: output.Results !== undefined && output.Results !== null
2995
- ? deserializeAws_json1_1ExecutionResults(output.Results, context)
2996
- : undefined,
2997
- ServiceMetadata: output.ServiceMetadata !== undefined && output.ServiceMetadata !== null
2962
+ PosixProfile: output.PosixProfile != null ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context) : undefined,
2963
+ Results: output.Results != null ? deserializeAws_json1_1ExecutionResults(output.Results, context) : undefined,
2964
+ ServiceMetadata: output.ServiceMetadata != null
2998
2965
  ? deserializeAws_json1_1ServiceMetadata(output.ServiceMetadata, context)
2999
2966
  : undefined,
3000
2967
  Status: __expectString(output.Status),
@@ -3004,18 +2971,10 @@ var deserializeAws_json1_1DescribedSecurityPolicy = function (output, context) {
3004
2971
  return {
3005
2972
  Fips: __expectBoolean(output.Fips),
3006
2973
  SecurityPolicyName: __expectString(output.SecurityPolicyName),
3007
- SshCiphers: output.SshCiphers !== undefined && output.SshCiphers !== null
3008
- ? deserializeAws_json1_1SecurityPolicyOptions(output.SshCiphers, context)
3009
- : undefined,
3010
- SshKexs: output.SshKexs !== undefined && output.SshKexs !== null
3011
- ? deserializeAws_json1_1SecurityPolicyOptions(output.SshKexs, context)
3012
- : undefined,
3013
- SshMacs: output.SshMacs !== undefined && output.SshMacs !== null
3014
- ? deserializeAws_json1_1SecurityPolicyOptions(output.SshMacs, context)
3015
- : undefined,
3016
- TlsCiphers: output.TlsCiphers !== undefined && output.TlsCiphers !== null
3017
- ? deserializeAws_json1_1SecurityPolicyOptions(output.TlsCiphers, context)
3018
- : undefined,
2974
+ SshCiphers: output.SshCiphers != null ? deserializeAws_json1_1SecurityPolicyOptions(output.SshCiphers, context) : undefined,
2975
+ SshKexs: output.SshKexs != null ? deserializeAws_json1_1SecurityPolicyOptions(output.SshKexs, context) : undefined,
2976
+ SshMacs: output.SshMacs != null ? deserializeAws_json1_1SecurityPolicyOptions(output.SshMacs, context) : undefined,
2977
+ TlsCiphers: output.TlsCiphers != null ? deserializeAws_json1_1SecurityPolicyOptions(output.TlsCiphers, context) : undefined,
3019
2978
  };
3020
2979
  };
3021
2980
  var deserializeAws_json1_1DescribedServer = function (output, context) {
@@ -3023,30 +2982,28 @@ var deserializeAws_json1_1DescribedServer = function (output, context) {
3023
2982
  Arn: __expectString(output.Arn),
3024
2983
  Certificate: __expectString(output.Certificate),
3025
2984
  Domain: __expectString(output.Domain),
3026
- EndpointDetails: output.EndpointDetails !== undefined && output.EndpointDetails !== null
2985
+ EndpointDetails: output.EndpointDetails != null
3027
2986
  ? deserializeAws_json1_1EndpointDetails(output.EndpointDetails, context)
3028
2987
  : undefined,
3029
2988
  EndpointType: __expectString(output.EndpointType),
3030
2989
  HostKeyFingerprint: __expectString(output.HostKeyFingerprint),
3031
- IdentityProviderDetails: output.IdentityProviderDetails !== undefined && output.IdentityProviderDetails !== null
2990
+ IdentityProviderDetails: output.IdentityProviderDetails != null
3032
2991
  ? deserializeAws_json1_1IdentityProviderDetails(output.IdentityProviderDetails, context)
3033
2992
  : undefined,
3034
2993
  IdentityProviderType: __expectString(output.IdentityProviderType),
3035
2994
  LoggingRole: __expectString(output.LoggingRole),
3036
2995
  PostAuthenticationLoginBanner: __expectString(output.PostAuthenticationLoginBanner),
3037
2996
  PreAuthenticationLoginBanner: __expectString(output.PreAuthenticationLoginBanner),
3038
- ProtocolDetails: output.ProtocolDetails !== undefined && output.ProtocolDetails !== null
2997
+ ProtocolDetails: output.ProtocolDetails != null
3039
2998
  ? deserializeAws_json1_1ProtocolDetails(output.ProtocolDetails, context)
3040
2999
  : undefined,
3041
- Protocols: output.Protocols !== undefined && output.Protocols !== null
3042
- ? deserializeAws_json1_1Protocols(output.Protocols, context)
3043
- : undefined,
3000
+ Protocols: output.Protocols != null ? deserializeAws_json1_1Protocols(output.Protocols, context) : undefined,
3044
3001
  SecurityPolicyName: __expectString(output.SecurityPolicyName),
3045
3002
  ServerId: __expectString(output.ServerId),
3046
3003
  State: __expectString(output.State),
3047
- Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3004
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3048
3005
  UserCount: __expectInt32(output.UserCount),
3049
- WorkflowDetails: output.WorkflowDetails !== undefined && output.WorkflowDetails !== null
3006
+ WorkflowDetails: output.WorkflowDetails != null
3050
3007
  ? deserializeAws_json1_1WorkflowDetails(output.WorkflowDetails, context)
3051
3008
  : undefined,
3052
3009
  };
@@ -3055,19 +3012,15 @@ var deserializeAws_json1_1DescribedUser = function (output, context) {
3055
3012
  return {
3056
3013
  Arn: __expectString(output.Arn),
3057
3014
  HomeDirectory: __expectString(output.HomeDirectory),
3058
- HomeDirectoryMappings: output.HomeDirectoryMappings !== undefined && output.HomeDirectoryMappings !== null
3015
+ HomeDirectoryMappings: output.HomeDirectoryMappings != null
3059
3016
  ? deserializeAws_json1_1HomeDirectoryMappings(output.HomeDirectoryMappings, context)
3060
3017
  : undefined,
3061
3018
  HomeDirectoryType: __expectString(output.HomeDirectoryType),
3062
3019
  Policy: __expectString(output.Policy),
3063
- PosixProfile: output.PosixProfile !== undefined && output.PosixProfile !== null
3064
- ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context)
3065
- : undefined,
3020
+ PosixProfile: output.PosixProfile != null ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context) : undefined,
3066
3021
  Role: __expectString(output.Role),
3067
- SshPublicKeys: output.SshPublicKeys !== undefined && output.SshPublicKeys !== null
3068
- ? deserializeAws_json1_1SshPublicKeys(output.SshPublicKeys, context)
3069
- : undefined,
3070
- Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3022
+ SshPublicKeys: output.SshPublicKeys != null ? deserializeAws_json1_1SshPublicKeys(output.SshPublicKeys, context) : undefined,
3023
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3071
3024
  UserName: __expectString(output.UserName),
3072
3025
  };
3073
3026
  };
@@ -3075,51 +3028,41 @@ var deserializeAws_json1_1DescribedWorkflow = function (output, context) {
3075
3028
  return {
3076
3029
  Arn: __expectString(output.Arn),
3077
3030
  Description: __expectString(output.Description),
3078
- OnExceptionSteps: output.OnExceptionSteps !== undefined && output.OnExceptionSteps !== null
3031
+ OnExceptionSteps: output.OnExceptionSteps != null
3079
3032
  ? deserializeAws_json1_1WorkflowSteps(output.OnExceptionSteps, context)
3080
3033
  : undefined,
3081
- Steps: output.Steps !== undefined && output.Steps !== null
3082
- ? deserializeAws_json1_1WorkflowSteps(output.Steps, context)
3083
- : undefined,
3084
- Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3034
+ Steps: output.Steps != null ? deserializeAws_json1_1WorkflowSteps(output.Steps, context) : undefined,
3035
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3085
3036
  WorkflowId: __expectString(output.WorkflowId),
3086
3037
  };
3087
3038
  };
3088
3039
  var deserializeAws_json1_1DescribeExecutionResponse = function (output, context) {
3089
3040
  return {
3090
- Execution: output.Execution !== undefined && output.Execution !== null
3091
- ? deserializeAws_json1_1DescribedExecution(output.Execution, context)
3092
- : undefined,
3041
+ Execution: output.Execution != null ? deserializeAws_json1_1DescribedExecution(output.Execution, context) : undefined,
3093
3042
  WorkflowId: __expectString(output.WorkflowId),
3094
3043
  };
3095
3044
  };
3096
3045
  var deserializeAws_json1_1DescribeSecurityPolicyResponse = function (output, context) {
3097
3046
  return {
3098
- SecurityPolicy: output.SecurityPolicy !== undefined && output.SecurityPolicy !== null
3047
+ SecurityPolicy: output.SecurityPolicy != null
3099
3048
  ? deserializeAws_json1_1DescribedSecurityPolicy(output.SecurityPolicy, context)
3100
3049
  : undefined,
3101
3050
  };
3102
3051
  };
3103
3052
  var deserializeAws_json1_1DescribeServerResponse = function (output, context) {
3104
3053
  return {
3105
- Server: output.Server !== undefined && output.Server !== null
3106
- ? deserializeAws_json1_1DescribedServer(output.Server, context)
3107
- : undefined,
3054
+ Server: output.Server != null ? deserializeAws_json1_1DescribedServer(output.Server, context) : undefined,
3108
3055
  };
3109
3056
  };
3110
3057
  var deserializeAws_json1_1DescribeUserResponse = function (output, context) {
3111
3058
  return {
3112
3059
  ServerId: __expectString(output.ServerId),
3113
- User: output.User !== undefined && output.User !== null
3114
- ? deserializeAws_json1_1DescribedUser(output.User, context)
3115
- : undefined,
3060
+ User: output.User != null ? deserializeAws_json1_1DescribedUser(output.User, context) : undefined,
3116
3061
  };
3117
3062
  };
3118
3063
  var deserializeAws_json1_1DescribeWorkflowResponse = function (output, context) {
3119
3064
  return {
3120
- Workflow: output.Workflow !== undefined && output.Workflow !== null
3121
- ? deserializeAws_json1_1DescribedWorkflow(output.Workflow, context)
3122
- : undefined,
3065
+ Workflow: output.Workflow != null ? deserializeAws_json1_1DescribedWorkflow(output.Workflow, context) : undefined,
3123
3066
  };
3124
3067
  };
3125
3068
  var deserializeAws_json1_1EfsFileLocation = function (output, context) {
@@ -3130,15 +3073,13 @@ var deserializeAws_json1_1EfsFileLocation = function (output, context) {
3130
3073
  };
3131
3074
  var deserializeAws_json1_1EndpointDetails = function (output, context) {
3132
3075
  return {
3133
- AddressAllocationIds: output.AddressAllocationIds !== undefined && output.AddressAllocationIds !== null
3076
+ AddressAllocationIds: output.AddressAllocationIds != null
3134
3077
  ? deserializeAws_json1_1AddressAllocationIds(output.AddressAllocationIds, context)
3135
3078
  : undefined,
3136
- SecurityGroupIds: output.SecurityGroupIds !== undefined && output.SecurityGroupIds !== null
3079
+ SecurityGroupIds: output.SecurityGroupIds != null
3137
3080
  ? deserializeAws_json1_1SecurityGroupIds(output.SecurityGroupIds, context)
3138
3081
  : undefined,
3139
- SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
3140
- ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context)
3141
- : undefined,
3082
+ SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
3142
3083
  VpcEndpointId: __expectString(output.VpcEndpointId),
3143
3084
  VpcId: __expectString(output.VpcId),
3144
3085
  };
@@ -3151,19 +3092,15 @@ var deserializeAws_json1_1ExecutionError = function (output, context) {
3151
3092
  };
3152
3093
  var deserializeAws_json1_1ExecutionResults = function (output, context) {
3153
3094
  return {
3154
- OnExceptionSteps: output.OnExceptionSteps !== undefined && output.OnExceptionSteps !== null
3095
+ OnExceptionSteps: output.OnExceptionSteps != null
3155
3096
  ? deserializeAws_json1_1ExecutionStepResults(output.OnExceptionSteps, context)
3156
3097
  : undefined,
3157
- Steps: output.Steps !== undefined && output.Steps !== null
3158
- ? deserializeAws_json1_1ExecutionStepResults(output.Steps, context)
3159
- : undefined,
3098
+ Steps: output.Steps != null ? deserializeAws_json1_1ExecutionStepResults(output.Steps, context) : undefined,
3160
3099
  };
3161
3100
  };
3162
3101
  var deserializeAws_json1_1ExecutionStepResult = function (output, context) {
3163
3102
  return {
3164
- Error: output.Error !== undefined && output.Error !== null
3165
- ? deserializeAws_json1_1ExecutionError(output.Error, context)
3166
- : undefined,
3103
+ Error: output.Error != null ? deserializeAws_json1_1ExecutionError(output.Error, context) : undefined,
3167
3104
  Outputs: __expectString(output.Outputs),
3168
3105
  StepType: __expectString(output.StepType),
3169
3106
  };
@@ -3181,12 +3118,10 @@ var deserializeAws_json1_1ExecutionStepResults = function (output, context) {
3181
3118
  };
3182
3119
  var deserializeAws_json1_1FileLocation = function (output, context) {
3183
3120
  return {
3184
- EfsFileLocation: output.EfsFileLocation !== undefined && output.EfsFileLocation !== null
3121
+ EfsFileLocation: output.EfsFileLocation != null
3185
3122
  ? deserializeAws_json1_1EfsFileLocation(output.EfsFileLocation, context)
3186
3123
  : undefined,
3187
- S3FileLocation: output.S3FileLocation !== undefined && output.S3FileLocation !== null
3188
- ? deserializeAws_json1_1S3FileLocation(output.S3FileLocation, context)
3189
- : undefined,
3124
+ S3FileLocation: output.S3FileLocation != null ? deserializeAws_json1_1S3FileLocation(output.S3FileLocation, context) : undefined,
3190
3125
  };
3191
3126
  };
3192
3127
  var deserializeAws_json1_1HomeDirectoryMapEntry = function (output, context) {
@@ -3223,10 +3158,10 @@ var deserializeAws_json1_1ImportSshPublicKeyResponse = function (output, context
3223
3158
  };
3224
3159
  var deserializeAws_json1_1InputFileLocation = function (output, context) {
3225
3160
  return {
3226
- EfsFileLocation: output.EfsFileLocation !== undefined && output.EfsFileLocation !== null
3161
+ EfsFileLocation: output.EfsFileLocation != null
3227
3162
  ? deserializeAws_json1_1EfsFileLocation(output.EfsFileLocation, context)
3228
3163
  : undefined,
3229
- S3FileLocation: output.S3FileLocation !== undefined && output.S3FileLocation !== null
3164
+ S3FileLocation: output.S3FileLocation != null
3230
3165
  ? deserializeAws_json1_1S3InputFileLocation(output.S3FileLocation, context)
3231
3166
  : undefined,
3232
3167
  };
@@ -3248,9 +3183,7 @@ var deserializeAws_json1_1InvalidRequestException = function (output, context) {
3248
3183
  };
3249
3184
  var deserializeAws_json1_1ListAccessesResponse = function (output, context) {
3250
3185
  return {
3251
- Accesses: output.Accesses !== undefined && output.Accesses !== null
3252
- ? deserializeAws_json1_1ListedAccesses(output.Accesses, context)
3253
- : undefined,
3186
+ Accesses: output.Accesses != null ? deserializeAws_json1_1ListedAccesses(output.Accesses, context) : undefined,
3254
3187
  NextToken: __expectString(output.NextToken),
3255
3188
  ServerId: __expectString(output.ServerId),
3256
3189
  };
@@ -3277,10 +3210,10 @@ var deserializeAws_json1_1ListedAccesses = function (output, context) {
3277
3210
  var deserializeAws_json1_1ListedExecution = function (output, context) {
3278
3211
  return {
3279
3212
  ExecutionId: __expectString(output.ExecutionId),
3280
- InitialFileLocation: output.InitialFileLocation !== undefined && output.InitialFileLocation !== null
3213
+ InitialFileLocation: output.InitialFileLocation != null
3281
3214
  ? deserializeAws_json1_1FileLocation(output.InitialFileLocation, context)
3282
3215
  : undefined,
3283
- ServiceMetadata: output.ServiceMetadata !== undefined && output.ServiceMetadata !== null
3216
+ ServiceMetadata: output.ServiceMetadata != null
3284
3217
  ? deserializeAws_json1_1ServiceMetadata(output.ServiceMetadata, context)
3285
3218
  : undefined,
3286
3219
  Status: __expectString(output.Status),
@@ -3361,9 +3294,7 @@ var deserializeAws_json1_1ListedWorkflows = function (output, context) {
3361
3294
  };
3362
3295
  var deserializeAws_json1_1ListExecutionsResponse = function (output, context) {
3363
3296
  return {
3364
- Executions: output.Executions !== undefined && output.Executions !== null
3365
- ? deserializeAws_json1_1ListedExecutions(output.Executions, context)
3366
- : undefined,
3297
+ Executions: output.Executions != null ? deserializeAws_json1_1ListedExecutions(output.Executions, context) : undefined,
3367
3298
  NextToken: __expectString(output.NextToken),
3368
3299
  WorkflowId: __expectString(output.WorkflowId),
3369
3300
  };
@@ -3371,7 +3302,7 @@ var deserializeAws_json1_1ListExecutionsResponse = function (output, context) {
3371
3302
  var deserializeAws_json1_1ListSecurityPoliciesResponse = function (output, context) {
3372
3303
  return {
3373
3304
  NextToken: __expectString(output.NextToken),
3374
- SecurityPolicyNames: output.SecurityPolicyNames !== undefined && output.SecurityPolicyNames !== null
3305
+ SecurityPolicyNames: output.SecurityPolicyNames != null
3375
3306
  ? deserializeAws_json1_1SecurityPolicyNames(output.SecurityPolicyNames, context)
3376
3307
  : undefined,
3377
3308
  };
@@ -3379,33 +3310,27 @@ var deserializeAws_json1_1ListSecurityPoliciesResponse = function (output, conte
3379
3310
  var deserializeAws_json1_1ListServersResponse = function (output, context) {
3380
3311
  return {
3381
3312
  NextToken: __expectString(output.NextToken),
3382
- Servers: output.Servers !== undefined && output.Servers !== null
3383
- ? deserializeAws_json1_1ListedServers(output.Servers, context)
3384
- : undefined,
3313
+ Servers: output.Servers != null ? deserializeAws_json1_1ListedServers(output.Servers, context) : undefined,
3385
3314
  };
3386
3315
  };
3387
3316
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
3388
3317
  return {
3389
3318
  Arn: __expectString(output.Arn),
3390
3319
  NextToken: __expectString(output.NextToken),
3391
- Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3320
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3392
3321
  };
3393
3322
  };
3394
3323
  var deserializeAws_json1_1ListUsersResponse = function (output, context) {
3395
3324
  return {
3396
3325
  NextToken: __expectString(output.NextToken),
3397
3326
  ServerId: __expectString(output.ServerId),
3398
- Users: output.Users !== undefined && output.Users !== null
3399
- ? deserializeAws_json1_1ListedUsers(output.Users, context)
3400
- : undefined,
3327
+ Users: output.Users != null ? deserializeAws_json1_1ListedUsers(output.Users, context) : undefined,
3401
3328
  };
3402
3329
  };
3403
3330
  var deserializeAws_json1_1ListWorkflowsResponse = function (output, context) {
3404
3331
  return {
3405
3332
  NextToken: __expectString(output.NextToken),
3406
- Workflows: output.Workflows !== undefined && output.Workflows !== null
3407
- ? deserializeAws_json1_1ListedWorkflows(output.Workflows, context)
3408
- : undefined,
3333
+ Workflows: output.Workflows != null ? deserializeAws_json1_1ListedWorkflows(output.Workflows, context) : undefined,
3409
3334
  };
3410
3335
  };
3411
3336
  var deserializeAws_json1_1LoggingConfiguration = function (output, context) {
@@ -3428,9 +3353,7 @@ var deserializeAws_json1_1OnUploadWorkflowDetails = function (output, context) {
3428
3353
  var deserializeAws_json1_1PosixProfile = function (output, context) {
3429
3354
  return {
3430
3355
  Gid: __expectLong(output.Gid),
3431
- SecondaryGids: output.SecondaryGids !== undefined && output.SecondaryGids !== null
3432
- ? deserializeAws_json1_1SecondaryGids(output.SecondaryGids, context)
3433
- : undefined,
3356
+ SecondaryGids: output.SecondaryGids != null ? deserializeAws_json1_1SecondaryGids(output.SecondaryGids, context) : undefined,
3434
3357
  Uid: __expectLong(output.Uid),
3435
3358
  };
3436
3359
  };
@@ -3546,9 +3469,7 @@ var deserializeAws_json1_1SendWorkflowStepStateResponse = function (output, cont
3546
3469
  };
3547
3470
  var deserializeAws_json1_1ServiceMetadata = function (output, context) {
3548
3471
  return {
3549
- UserDetails: output.UserDetails !== undefined && output.UserDetails !== null
3550
- ? deserializeAws_json1_1UserDetails(output.UserDetails, context)
3551
- : undefined,
3472
+ UserDetails: output.UserDetails != null ? deserializeAws_json1_1UserDetails(output.UserDetails, context) : undefined,
3552
3473
  };
3553
3474
  };
3554
3475
  var deserializeAws_json1_1ServiceUnavailableException = function (output, context) {
@@ -3558,7 +3479,7 @@ var deserializeAws_json1_1ServiceUnavailableException = function (output, contex
3558
3479
  };
3559
3480
  var deserializeAws_json1_1SshPublicKey = function (output, context) {
3560
3481
  return {
3561
- DateImported: output.DateImported !== undefined && output.DateImported !== null
3482
+ DateImported: output.DateImported != null
3562
3483
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateImported)))
3563
3484
  : undefined,
3564
3485
  SshPublicKeyBody: __expectString(output.SshPublicKeyBody),
@@ -3608,9 +3529,7 @@ var deserializeAws_json1_1TagStepDetails = function (output, context) {
3608
3529
  return {
3609
3530
  Name: __expectString(output.Name),
3610
3531
  SourceFileLocation: __expectString(output.SourceFileLocation),
3611
- Tags: output.Tags !== undefined && output.Tags !== null
3612
- ? deserializeAws_json1_1S3Tags(output.Tags, context)
3613
- : undefined,
3532
+ Tags: output.Tags != null ? deserializeAws_json1_1S3Tags(output.Tags, context) : undefined,
3614
3533
  };
3615
3534
  };
3616
3535
  var deserializeAws_json1_1TestIdentityProviderResponse = function (output, context) {
@@ -3658,25 +3577,21 @@ var deserializeAws_json1_1WorkflowDetail = function (output, context) {
3658
3577
  };
3659
3578
  var deserializeAws_json1_1WorkflowDetails = function (output, context) {
3660
3579
  return {
3661
- OnUpload: output.OnUpload !== undefined && output.OnUpload !== null
3662
- ? deserializeAws_json1_1OnUploadWorkflowDetails(output.OnUpload, context)
3663
- : undefined,
3580
+ OnUpload: output.OnUpload != null ? deserializeAws_json1_1OnUploadWorkflowDetails(output.OnUpload, context) : undefined,
3664
3581
  };
3665
3582
  };
3666
3583
  var deserializeAws_json1_1WorkflowStep = function (output, context) {
3667
3584
  return {
3668
- CopyStepDetails: output.CopyStepDetails !== undefined && output.CopyStepDetails !== null
3585
+ CopyStepDetails: output.CopyStepDetails != null
3669
3586
  ? deserializeAws_json1_1CopyStepDetails(output.CopyStepDetails, context)
3670
3587
  : undefined,
3671
- CustomStepDetails: output.CustomStepDetails !== undefined && output.CustomStepDetails !== null
3588
+ CustomStepDetails: output.CustomStepDetails != null
3672
3589
  ? deserializeAws_json1_1CustomStepDetails(output.CustomStepDetails, context)
3673
3590
  : undefined,
3674
- DeleteStepDetails: output.DeleteStepDetails !== undefined && output.DeleteStepDetails !== null
3591
+ DeleteStepDetails: output.DeleteStepDetails != null
3675
3592
  ? deserializeAws_json1_1DeleteStepDetails(output.DeleteStepDetails, context)
3676
3593
  : undefined,
3677
- TagStepDetails: output.TagStepDetails !== undefined && output.TagStepDetails !== null
3678
- ? deserializeAws_json1_1TagStepDetails(output.TagStepDetails, context)
3679
- : undefined,
3594
+ TagStepDetails: output.TagStepDetails != null ? deserializeAws_json1_1TagStepDetails(output.TagStepDetails, context) : undefined,
3680
3595
  Type: __expectString(output.Type),
3681
3596
  };
3682
3597
  };
@@ -3765,5 +3680,4 @@ var loadRestJsonErrorCode = function (output, data) {
3765
3680
  if (data["__type"] !== undefined) {
3766
3681
  return sanitizeErrorCode(data["__type"]);
3767
3682
  }
3768
- return "";
3769
3683
  };