@aws-sdk/client-codebuild 3.118.0 → 3.127.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -517,7 +517,7 @@ export var deserializeAws_json1_1BatchDeleteBuildsCommand = function (output, co
517
517
  });
518
518
  }); };
519
519
  var deserializeAws_json1_1BatchDeleteBuildsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
520
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
520
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
521
521
  var _c;
522
522
  return __generator(this, function (_d) {
523
523
  switch (_d.label) {
@@ -527,7 +527,6 @@ var deserializeAws_json1_1BatchDeleteBuildsCommandError = function (output, cont
527
527
  return [4, parseBody(output.body, context)];
528
528
  case 1:
529
529
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
530
- errorCode = "UnknownError";
531
530
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
532
531
  _b = errorCode;
533
532
  switch (_b) {
@@ -539,10 +538,12 @@ var deserializeAws_json1_1BatchDeleteBuildsCommandError = function (output, cont
539
538
  case 3: throw _d.sent();
540
539
  case 4:
541
540
  parsedBody = parsedOutput.body;
541
+ $metadata = deserializeMetadata(output);
542
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
542
543
  response = new __BaseException({
543
- name: parsedBody.code || parsedBody.Code || errorCode,
544
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
544
545
  $fault: "client",
545
- $metadata: deserializeMetadata(output),
546
+ $metadata: $metadata,
546
547
  });
547
548
  throw __decorateServiceException(response, parsedBody);
548
549
  }
@@ -567,7 +568,7 @@ export var deserializeAws_json1_1BatchGetBuildBatchesCommand = function (output,
567
568
  });
568
569
  }); };
569
570
  var deserializeAws_json1_1BatchGetBuildBatchesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
570
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
571
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
571
572
  var _c;
572
573
  return __generator(this, function (_d) {
573
574
  switch (_d.label) {
@@ -577,7 +578,6 @@ var deserializeAws_json1_1BatchGetBuildBatchesCommandError = function (output, c
577
578
  return [4, parseBody(output.body, context)];
578
579
  case 1:
579
580
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
580
- errorCode = "UnknownError";
581
581
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
582
582
  _b = errorCode;
583
583
  switch (_b) {
@@ -589,10 +589,12 @@ var deserializeAws_json1_1BatchGetBuildBatchesCommandError = function (output, c
589
589
  case 3: throw _d.sent();
590
590
  case 4:
591
591
  parsedBody = parsedOutput.body;
592
+ $metadata = deserializeMetadata(output);
593
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
592
594
  response = new __BaseException({
593
- name: parsedBody.code || parsedBody.Code || errorCode,
595
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
594
596
  $fault: "client",
595
- $metadata: deserializeMetadata(output),
597
+ $metadata: $metadata,
596
598
  });
597
599
  throw __decorateServiceException(response, parsedBody);
598
600
  }
@@ -617,7 +619,7 @@ export var deserializeAws_json1_1BatchGetBuildsCommand = function (output, conte
617
619
  });
618
620
  }); };
619
621
  var deserializeAws_json1_1BatchGetBuildsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
620
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
622
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
621
623
  var _c;
622
624
  return __generator(this, function (_d) {
623
625
  switch (_d.label) {
@@ -627,7 +629,6 @@ var deserializeAws_json1_1BatchGetBuildsCommandError = function (output, context
627
629
  return [4, parseBody(output.body, context)];
628
630
  case 1:
629
631
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
630
- errorCode = "UnknownError";
631
632
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
632
633
  _b = errorCode;
633
634
  switch (_b) {
@@ -639,10 +640,12 @@ var deserializeAws_json1_1BatchGetBuildsCommandError = function (output, context
639
640
  case 3: throw _d.sent();
640
641
  case 4:
641
642
  parsedBody = parsedOutput.body;
643
+ $metadata = deserializeMetadata(output);
644
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
642
645
  response = new __BaseException({
643
- name: parsedBody.code || parsedBody.Code || errorCode,
646
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
644
647
  $fault: "client",
645
- $metadata: deserializeMetadata(output),
648
+ $metadata: $metadata,
646
649
  });
647
650
  throw __decorateServiceException(response, parsedBody);
648
651
  }
@@ -667,7 +670,7 @@ export var deserializeAws_json1_1BatchGetProjectsCommand = function (output, con
667
670
  });
668
671
  }); };
669
672
  var deserializeAws_json1_1BatchGetProjectsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
670
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
673
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
671
674
  var _c;
672
675
  return __generator(this, function (_d) {
673
676
  switch (_d.label) {
@@ -677,7 +680,6 @@ var deserializeAws_json1_1BatchGetProjectsCommandError = function (output, conte
677
680
  return [4, parseBody(output.body, context)];
678
681
  case 1:
679
682
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
680
- errorCode = "UnknownError";
681
683
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
682
684
  _b = errorCode;
683
685
  switch (_b) {
@@ -689,10 +691,12 @@ var deserializeAws_json1_1BatchGetProjectsCommandError = function (output, conte
689
691
  case 3: throw _d.sent();
690
692
  case 4:
691
693
  parsedBody = parsedOutput.body;
694
+ $metadata = deserializeMetadata(output);
695
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
692
696
  response = new __BaseException({
693
- name: parsedBody.code || parsedBody.Code || errorCode,
697
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
694
698
  $fault: "client",
695
- $metadata: deserializeMetadata(output),
699
+ $metadata: $metadata,
696
700
  });
697
701
  throw __decorateServiceException(response, parsedBody);
698
702
  }
@@ -717,7 +721,7 @@ export var deserializeAws_json1_1BatchGetReportGroupsCommand = function (output,
717
721
  });
718
722
  }); };
719
723
  var deserializeAws_json1_1BatchGetReportGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
720
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
724
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
721
725
  var _c;
722
726
  return __generator(this, function (_d) {
723
727
  switch (_d.label) {
@@ -727,7 +731,6 @@ var deserializeAws_json1_1BatchGetReportGroupsCommandError = function (output, c
727
731
  return [4, parseBody(output.body, context)];
728
732
  case 1:
729
733
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
730
- errorCode = "UnknownError";
731
734
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
732
735
  _b = errorCode;
733
736
  switch (_b) {
@@ -739,10 +742,12 @@ var deserializeAws_json1_1BatchGetReportGroupsCommandError = function (output, c
739
742
  case 3: throw _d.sent();
740
743
  case 4:
741
744
  parsedBody = parsedOutput.body;
745
+ $metadata = deserializeMetadata(output);
746
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
742
747
  response = new __BaseException({
743
- name: parsedBody.code || parsedBody.Code || errorCode,
748
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
744
749
  $fault: "client",
745
- $metadata: deserializeMetadata(output),
750
+ $metadata: $metadata,
746
751
  });
747
752
  throw __decorateServiceException(response, parsedBody);
748
753
  }
@@ -767,7 +772,7 @@ export var deserializeAws_json1_1BatchGetReportsCommand = function (output, cont
767
772
  });
768
773
  }); };
769
774
  var deserializeAws_json1_1BatchGetReportsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
770
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
775
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
771
776
  var _c;
772
777
  return __generator(this, function (_d) {
773
778
  switch (_d.label) {
@@ -777,7 +782,6 @@ var deserializeAws_json1_1BatchGetReportsCommandError = function (output, contex
777
782
  return [4, parseBody(output.body, context)];
778
783
  case 1:
779
784
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
780
- errorCode = "UnknownError";
781
785
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
782
786
  _b = errorCode;
783
787
  switch (_b) {
@@ -789,10 +793,12 @@ var deserializeAws_json1_1BatchGetReportsCommandError = function (output, contex
789
793
  case 3: throw _d.sent();
790
794
  case 4:
791
795
  parsedBody = parsedOutput.body;
796
+ $metadata = deserializeMetadata(output);
797
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
792
798
  response = new __BaseException({
793
- name: parsedBody.code || parsedBody.Code || errorCode,
799
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
794
800
  $fault: "client",
795
- $metadata: deserializeMetadata(output),
801
+ $metadata: $metadata,
796
802
  });
797
803
  throw __decorateServiceException(response, parsedBody);
798
804
  }
@@ -817,7 +823,7 @@ export var deserializeAws_json1_1CreateProjectCommand = function (output, contex
817
823
  });
818
824
  }); };
819
825
  var deserializeAws_json1_1CreateProjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
820
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
826
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
821
827
  var _c;
822
828
  return __generator(this, function (_d) {
823
829
  switch (_d.label) {
@@ -827,7 +833,6 @@ var deserializeAws_json1_1CreateProjectCommandError = function (output, context)
827
833
  return [4, parseBody(output.body, context)];
828
834
  case 1:
829
835
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
830
- errorCode = "UnknownError";
831
836
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
832
837
  _b = errorCode;
833
838
  switch (_b) {
@@ -847,10 +852,12 @@ var deserializeAws_json1_1CreateProjectCommandError = function (output, context)
847
852
  case 7: throw _d.sent();
848
853
  case 8:
849
854
  parsedBody = parsedOutput.body;
855
+ $metadata = deserializeMetadata(output);
856
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
850
857
  response = new __BaseException({
851
- name: parsedBody.code || parsedBody.Code || errorCode,
858
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
852
859
  $fault: "client",
853
- $metadata: deserializeMetadata(output),
860
+ $metadata: $metadata,
854
861
  });
855
862
  throw __decorateServiceException(response, parsedBody);
856
863
  }
@@ -875,7 +882,7 @@ export var deserializeAws_json1_1CreateReportGroupCommand = function (output, co
875
882
  });
876
883
  }); };
877
884
  var deserializeAws_json1_1CreateReportGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
878
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
885
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
879
886
  var _c;
880
887
  return __generator(this, function (_d) {
881
888
  switch (_d.label) {
@@ -885,7 +892,6 @@ var deserializeAws_json1_1CreateReportGroupCommandError = function (output, cont
885
892
  return [4, parseBody(output.body, context)];
886
893
  case 1:
887
894
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
888
- errorCode = "UnknownError";
889
895
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
896
  _b = errorCode;
891
897
  switch (_b) {
@@ -905,10 +911,12 @@ var deserializeAws_json1_1CreateReportGroupCommandError = function (output, cont
905
911
  case 7: throw _d.sent();
906
912
  case 8:
907
913
  parsedBody = parsedOutput.body;
914
+ $metadata = deserializeMetadata(output);
915
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
908
916
  response = new __BaseException({
909
- name: parsedBody.code || parsedBody.Code || errorCode,
917
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
910
918
  $fault: "client",
911
- $metadata: deserializeMetadata(output),
919
+ $metadata: $metadata,
912
920
  });
913
921
  throw __decorateServiceException(response, parsedBody);
914
922
  }
@@ -933,7 +941,7 @@ export var deserializeAws_json1_1CreateWebhookCommand = function (output, contex
933
941
  });
934
942
  }); };
935
943
  var deserializeAws_json1_1CreateWebhookCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
936
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
944
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
937
945
  var _c;
938
946
  return __generator(this, function (_d) {
939
947
  switch (_d.label) {
@@ -943,7 +951,6 @@ var deserializeAws_json1_1CreateWebhookCommandError = function (output, context)
943
951
  return [4, parseBody(output.body, context)];
944
952
  case 1:
945
953
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
946
- errorCode = "UnknownError";
947
954
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
948
955
  _b = errorCode;
949
956
  switch (_b) {
@@ -967,10 +974,12 @@ var deserializeAws_json1_1CreateWebhookCommandError = function (output, context)
967
974
  case 9: throw _d.sent();
968
975
  case 10:
969
976
  parsedBody = parsedOutput.body;
977
+ $metadata = deserializeMetadata(output);
978
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
970
979
  response = new __BaseException({
971
- name: parsedBody.code || parsedBody.Code || errorCode,
980
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
972
981
  $fault: "client",
973
- $metadata: deserializeMetadata(output),
982
+ $metadata: $metadata,
974
983
  });
975
984
  throw __decorateServiceException(response, parsedBody);
976
985
  }
@@ -995,7 +1004,7 @@ export var deserializeAws_json1_1DeleteBuildBatchCommand = function (output, con
995
1004
  });
996
1005
  }); };
997
1006
  var deserializeAws_json1_1DeleteBuildBatchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
998
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1007
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
999
1008
  var _c;
1000
1009
  return __generator(this, function (_d) {
1001
1010
  switch (_d.label) {
@@ -1005,7 +1014,6 @@ var deserializeAws_json1_1DeleteBuildBatchCommandError = function (output, conte
1005
1014
  return [4, parseBody(output.body, context)];
1006
1015
  case 1:
1007
1016
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1008
- errorCode = "UnknownError";
1009
1017
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1010
1018
  _b = errorCode;
1011
1019
  switch (_b) {
@@ -1017,10 +1025,12 @@ var deserializeAws_json1_1DeleteBuildBatchCommandError = function (output, conte
1017
1025
  case 3: throw _d.sent();
1018
1026
  case 4:
1019
1027
  parsedBody = parsedOutput.body;
1028
+ $metadata = deserializeMetadata(output);
1029
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1020
1030
  response = new __BaseException({
1021
- name: parsedBody.code || parsedBody.Code || errorCode,
1031
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1022
1032
  $fault: "client",
1023
- $metadata: deserializeMetadata(output),
1033
+ $metadata: $metadata,
1024
1034
  });
1025
1035
  throw __decorateServiceException(response, parsedBody);
1026
1036
  }
@@ -1045,7 +1055,7 @@ export var deserializeAws_json1_1DeleteProjectCommand = function (output, contex
1045
1055
  });
1046
1056
  }); };
1047
1057
  var deserializeAws_json1_1DeleteProjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1048
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1058
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1049
1059
  var _c;
1050
1060
  return __generator(this, function (_d) {
1051
1061
  switch (_d.label) {
@@ -1055,7 +1065,6 @@ var deserializeAws_json1_1DeleteProjectCommandError = function (output, context)
1055
1065
  return [4, parseBody(output.body, context)];
1056
1066
  case 1:
1057
1067
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1058
- errorCode = "UnknownError";
1059
1068
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1060
1069
  _b = errorCode;
1061
1070
  switch (_b) {
@@ -1067,10 +1076,12 @@ var deserializeAws_json1_1DeleteProjectCommandError = function (output, context)
1067
1076
  case 3: throw _d.sent();
1068
1077
  case 4:
1069
1078
  parsedBody = parsedOutput.body;
1079
+ $metadata = deserializeMetadata(output);
1080
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1070
1081
  response = new __BaseException({
1071
- name: parsedBody.code || parsedBody.Code || errorCode,
1082
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1072
1083
  $fault: "client",
1073
- $metadata: deserializeMetadata(output),
1084
+ $metadata: $metadata,
1074
1085
  });
1075
1086
  throw __decorateServiceException(response, parsedBody);
1076
1087
  }
@@ -1095,7 +1106,7 @@ export var deserializeAws_json1_1DeleteReportCommand = function (output, context
1095
1106
  });
1096
1107
  }); };
1097
1108
  var deserializeAws_json1_1DeleteReportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1098
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1109
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1099
1110
  var _c;
1100
1111
  return __generator(this, function (_d) {
1101
1112
  switch (_d.label) {
@@ -1105,7 +1116,6 @@ var deserializeAws_json1_1DeleteReportCommandError = function (output, context)
1105
1116
  return [4, parseBody(output.body, context)];
1106
1117
  case 1:
1107
1118
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1108
- errorCode = "UnknownError";
1109
1119
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1110
1120
  _b = errorCode;
1111
1121
  switch (_b) {
@@ -1117,10 +1127,12 @@ var deserializeAws_json1_1DeleteReportCommandError = function (output, context)
1117
1127
  case 3: throw _d.sent();
1118
1128
  case 4:
1119
1129
  parsedBody = parsedOutput.body;
1130
+ $metadata = deserializeMetadata(output);
1131
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1120
1132
  response = new __BaseException({
1121
- name: parsedBody.code || parsedBody.Code || errorCode,
1133
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1122
1134
  $fault: "client",
1123
- $metadata: deserializeMetadata(output),
1135
+ $metadata: $metadata,
1124
1136
  });
1125
1137
  throw __decorateServiceException(response, parsedBody);
1126
1138
  }
@@ -1145,7 +1157,7 @@ export var deserializeAws_json1_1DeleteReportGroupCommand = function (output, co
1145
1157
  });
1146
1158
  }); };
1147
1159
  var deserializeAws_json1_1DeleteReportGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1148
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1160
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1149
1161
  var _c;
1150
1162
  return __generator(this, function (_d) {
1151
1163
  switch (_d.label) {
@@ -1155,7 +1167,6 @@ var deserializeAws_json1_1DeleteReportGroupCommandError = function (output, cont
1155
1167
  return [4, parseBody(output.body, context)];
1156
1168
  case 1:
1157
1169
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1158
- errorCode = "UnknownError";
1159
1170
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1160
1171
  _b = errorCode;
1161
1172
  switch (_b) {
@@ -1167,10 +1178,12 @@ var deserializeAws_json1_1DeleteReportGroupCommandError = function (output, cont
1167
1178
  case 3: throw _d.sent();
1168
1179
  case 4:
1169
1180
  parsedBody = parsedOutput.body;
1181
+ $metadata = deserializeMetadata(output);
1182
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1170
1183
  response = new __BaseException({
1171
- name: parsedBody.code || parsedBody.Code || errorCode,
1184
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1172
1185
  $fault: "client",
1173
- $metadata: deserializeMetadata(output),
1186
+ $metadata: $metadata,
1174
1187
  });
1175
1188
  throw __decorateServiceException(response, parsedBody);
1176
1189
  }
@@ -1195,7 +1208,7 @@ export var deserializeAws_json1_1DeleteResourcePolicyCommand = function (output,
1195
1208
  });
1196
1209
  }); };
1197
1210
  var deserializeAws_json1_1DeleteResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1198
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1211
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1199
1212
  var _c;
1200
1213
  return __generator(this, function (_d) {
1201
1214
  switch (_d.label) {
@@ -1205,7 +1218,6 @@ var deserializeAws_json1_1DeleteResourcePolicyCommandError = function (output, c
1205
1218
  return [4, parseBody(output.body, context)];
1206
1219
  case 1:
1207
1220
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1208
- errorCode = "UnknownError";
1209
1221
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1210
1222
  _b = errorCode;
1211
1223
  switch (_b) {
@@ -1217,10 +1229,12 @@ var deserializeAws_json1_1DeleteResourcePolicyCommandError = function (output, c
1217
1229
  case 3: throw _d.sent();
1218
1230
  case 4:
1219
1231
  parsedBody = parsedOutput.body;
1232
+ $metadata = deserializeMetadata(output);
1233
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1220
1234
  response = new __BaseException({
1221
- name: parsedBody.code || parsedBody.Code || errorCode,
1235
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1222
1236
  $fault: "client",
1223
- $metadata: deserializeMetadata(output),
1237
+ $metadata: $metadata,
1224
1238
  });
1225
1239
  throw __decorateServiceException(response, parsedBody);
1226
1240
  }
@@ -1245,7 +1259,7 @@ export var deserializeAws_json1_1DeleteSourceCredentialsCommand = function (outp
1245
1259
  });
1246
1260
  }); };
1247
1261
  var deserializeAws_json1_1DeleteSourceCredentialsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1248
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1262
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1249
1263
  var _c;
1250
1264
  return __generator(this, function (_d) {
1251
1265
  switch (_d.label) {
@@ -1255,7 +1269,6 @@ var deserializeAws_json1_1DeleteSourceCredentialsCommandError = function (output
1255
1269
  return [4, parseBody(output.body, context)];
1256
1270
  case 1:
1257
1271
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1258
- errorCode = "UnknownError";
1259
1272
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1260
1273
  _b = errorCode;
1261
1274
  switch (_b) {
@@ -1271,10 +1284,12 @@ var deserializeAws_json1_1DeleteSourceCredentialsCommandError = function (output
1271
1284
  case 5: throw _d.sent();
1272
1285
  case 6:
1273
1286
  parsedBody = parsedOutput.body;
1287
+ $metadata = deserializeMetadata(output);
1288
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1274
1289
  response = new __BaseException({
1275
- name: parsedBody.code || parsedBody.Code || errorCode,
1290
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1276
1291
  $fault: "client",
1277
- $metadata: deserializeMetadata(output),
1292
+ $metadata: $metadata,
1278
1293
  });
1279
1294
  throw __decorateServiceException(response, parsedBody);
1280
1295
  }
@@ -1299,7 +1314,7 @@ export var deserializeAws_json1_1DeleteWebhookCommand = function (output, contex
1299
1314
  });
1300
1315
  }); };
1301
1316
  var deserializeAws_json1_1DeleteWebhookCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1302
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1317
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1303
1318
  var _c;
1304
1319
  return __generator(this, function (_d) {
1305
1320
  switch (_d.label) {
@@ -1309,7 +1324,6 @@ var deserializeAws_json1_1DeleteWebhookCommandError = function (output, context)
1309
1324
  return [4, parseBody(output.body, context)];
1310
1325
  case 1:
1311
1326
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1312
- errorCode = "UnknownError";
1313
1327
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1314
1328
  _b = errorCode;
1315
1329
  switch (_b) {
@@ -1329,10 +1343,12 @@ var deserializeAws_json1_1DeleteWebhookCommandError = function (output, context)
1329
1343
  case 7: throw _d.sent();
1330
1344
  case 8:
1331
1345
  parsedBody = parsedOutput.body;
1346
+ $metadata = deserializeMetadata(output);
1347
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1332
1348
  response = new __BaseException({
1333
- name: parsedBody.code || parsedBody.Code || errorCode,
1349
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1334
1350
  $fault: "client",
1335
- $metadata: deserializeMetadata(output),
1351
+ $metadata: $metadata,
1336
1352
  });
1337
1353
  throw __decorateServiceException(response, parsedBody);
1338
1354
  }
@@ -1357,7 +1373,7 @@ export var deserializeAws_json1_1DescribeCodeCoveragesCommand = function (output
1357
1373
  });
1358
1374
  }); };
1359
1375
  var deserializeAws_json1_1DescribeCodeCoveragesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1360
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1376
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1361
1377
  var _c;
1362
1378
  return __generator(this, function (_d) {
1363
1379
  switch (_d.label) {
@@ -1367,7 +1383,6 @@ var deserializeAws_json1_1DescribeCodeCoveragesCommandError = function (output,
1367
1383
  return [4, parseBody(output.body, context)];
1368
1384
  case 1:
1369
1385
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1370
- errorCode = "UnknownError";
1371
1386
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1372
1387
  _b = errorCode;
1373
1388
  switch (_b) {
@@ -1379,10 +1394,12 @@ var deserializeAws_json1_1DescribeCodeCoveragesCommandError = function (output,
1379
1394
  case 3: throw _d.sent();
1380
1395
  case 4:
1381
1396
  parsedBody = parsedOutput.body;
1397
+ $metadata = deserializeMetadata(output);
1398
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1382
1399
  response = new __BaseException({
1383
- name: parsedBody.code || parsedBody.Code || errorCode,
1400
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1384
1401
  $fault: "client",
1385
- $metadata: deserializeMetadata(output),
1402
+ $metadata: $metadata,
1386
1403
  });
1387
1404
  throw __decorateServiceException(response, parsedBody);
1388
1405
  }
@@ -1407,7 +1424,7 @@ export var deserializeAws_json1_1DescribeTestCasesCommand = function (output, co
1407
1424
  });
1408
1425
  }); };
1409
1426
  var deserializeAws_json1_1DescribeTestCasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1410
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1427
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1411
1428
  var _c;
1412
1429
  return __generator(this, function (_d) {
1413
1430
  switch (_d.label) {
@@ -1417,7 +1434,6 @@ var deserializeAws_json1_1DescribeTestCasesCommandError = function (output, cont
1417
1434
  return [4, parseBody(output.body, context)];
1418
1435
  case 1:
1419
1436
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1420
- errorCode = "UnknownError";
1421
1437
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1422
1438
  _b = errorCode;
1423
1439
  switch (_b) {
@@ -1433,10 +1449,12 @@ var deserializeAws_json1_1DescribeTestCasesCommandError = function (output, cont
1433
1449
  case 5: throw _d.sent();
1434
1450
  case 6:
1435
1451
  parsedBody = parsedOutput.body;
1452
+ $metadata = deserializeMetadata(output);
1453
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1436
1454
  response = new __BaseException({
1437
- name: parsedBody.code || parsedBody.Code || errorCode,
1455
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1438
1456
  $fault: "client",
1439
- $metadata: deserializeMetadata(output),
1457
+ $metadata: $metadata,
1440
1458
  });
1441
1459
  throw __decorateServiceException(response, parsedBody);
1442
1460
  }
@@ -1461,7 +1479,7 @@ export var deserializeAws_json1_1GetReportGroupTrendCommand = function (output,
1461
1479
  });
1462
1480
  }); };
1463
1481
  var deserializeAws_json1_1GetReportGroupTrendCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1464
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1482
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1465
1483
  var _c;
1466
1484
  return __generator(this, function (_d) {
1467
1485
  switch (_d.label) {
@@ -1471,7 +1489,6 @@ var deserializeAws_json1_1GetReportGroupTrendCommandError = function (output, co
1471
1489
  return [4, parseBody(output.body, context)];
1472
1490
  case 1:
1473
1491
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1474
- errorCode = "UnknownError";
1475
1492
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1476
1493
  _b = errorCode;
1477
1494
  switch (_b) {
@@ -1487,10 +1504,12 @@ var deserializeAws_json1_1GetReportGroupTrendCommandError = function (output, co
1487
1504
  case 5: throw _d.sent();
1488
1505
  case 6:
1489
1506
  parsedBody = parsedOutput.body;
1507
+ $metadata = deserializeMetadata(output);
1508
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1490
1509
  response = new __BaseException({
1491
- name: parsedBody.code || parsedBody.Code || errorCode,
1510
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1492
1511
  $fault: "client",
1493
- $metadata: deserializeMetadata(output),
1512
+ $metadata: $metadata,
1494
1513
  });
1495
1514
  throw __decorateServiceException(response, parsedBody);
1496
1515
  }
@@ -1515,7 +1534,7 @@ export var deserializeAws_json1_1GetResourcePolicyCommand = function (output, co
1515
1534
  });
1516
1535
  }); };
1517
1536
  var deserializeAws_json1_1GetResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1518
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1537
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1519
1538
  var _c;
1520
1539
  return __generator(this, function (_d) {
1521
1540
  switch (_d.label) {
@@ -1525,7 +1544,6 @@ var deserializeAws_json1_1GetResourcePolicyCommandError = function (output, cont
1525
1544
  return [4, parseBody(output.body, context)];
1526
1545
  case 1:
1527
1546
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1528
- errorCode = "UnknownError";
1529
1547
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1530
1548
  _b = errorCode;
1531
1549
  switch (_b) {
@@ -1541,10 +1559,12 @@ var deserializeAws_json1_1GetResourcePolicyCommandError = function (output, cont
1541
1559
  case 5: throw _d.sent();
1542
1560
  case 6:
1543
1561
  parsedBody = parsedOutput.body;
1562
+ $metadata = deserializeMetadata(output);
1563
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1544
1564
  response = new __BaseException({
1545
- name: parsedBody.code || parsedBody.Code || errorCode,
1565
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1546
1566
  $fault: "client",
1547
- $metadata: deserializeMetadata(output),
1567
+ $metadata: $metadata,
1548
1568
  });
1549
1569
  throw __decorateServiceException(response, parsedBody);
1550
1570
  }
@@ -1569,7 +1589,7 @@ export var deserializeAws_json1_1ImportSourceCredentialsCommand = function (outp
1569
1589
  });
1570
1590
  }); };
1571
1591
  var deserializeAws_json1_1ImportSourceCredentialsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1572
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1592
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1573
1593
  var _c;
1574
1594
  return __generator(this, function (_d) {
1575
1595
  switch (_d.label) {
@@ -1579,7 +1599,6 @@ var deserializeAws_json1_1ImportSourceCredentialsCommandError = function (output
1579
1599
  return [4, parseBody(output.body, context)];
1580
1600
  case 1:
1581
1601
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1582
- errorCode = "UnknownError";
1583
1602
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1584
1603
  _b = errorCode;
1585
1604
  switch (_b) {
@@ -1599,10 +1618,12 @@ var deserializeAws_json1_1ImportSourceCredentialsCommandError = function (output
1599
1618
  case 7: throw _d.sent();
1600
1619
  case 8:
1601
1620
  parsedBody = parsedOutput.body;
1621
+ $metadata = deserializeMetadata(output);
1622
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1602
1623
  response = new __BaseException({
1603
- name: parsedBody.code || parsedBody.Code || errorCode,
1624
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1604
1625
  $fault: "client",
1605
- $metadata: deserializeMetadata(output),
1626
+ $metadata: $metadata,
1606
1627
  });
1607
1628
  throw __decorateServiceException(response, parsedBody);
1608
1629
  }
@@ -1627,7 +1648,7 @@ export var deserializeAws_json1_1InvalidateProjectCacheCommand = function (outpu
1627
1648
  });
1628
1649
  }); };
1629
1650
  var deserializeAws_json1_1InvalidateProjectCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1630
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1651
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1631
1652
  var _c;
1632
1653
  return __generator(this, function (_d) {
1633
1654
  switch (_d.label) {
@@ -1637,7 +1658,6 @@ var deserializeAws_json1_1InvalidateProjectCacheCommandError = function (output,
1637
1658
  return [4, parseBody(output.body, context)];
1638
1659
  case 1:
1639
1660
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1640
- errorCode = "UnknownError";
1641
1661
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1642
1662
  _b = errorCode;
1643
1663
  switch (_b) {
@@ -1653,10 +1673,12 @@ var deserializeAws_json1_1InvalidateProjectCacheCommandError = function (output,
1653
1673
  case 5: throw _d.sent();
1654
1674
  case 6:
1655
1675
  parsedBody = parsedOutput.body;
1676
+ $metadata = deserializeMetadata(output);
1677
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1656
1678
  response = new __BaseException({
1657
- name: parsedBody.code || parsedBody.Code || errorCode,
1679
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1658
1680
  $fault: "client",
1659
- $metadata: deserializeMetadata(output),
1681
+ $metadata: $metadata,
1660
1682
  });
1661
1683
  throw __decorateServiceException(response, parsedBody);
1662
1684
  }
@@ -1681,7 +1703,7 @@ export var deserializeAws_json1_1ListBuildBatchesCommand = function (output, con
1681
1703
  });
1682
1704
  }); };
1683
1705
  var deserializeAws_json1_1ListBuildBatchesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1684
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1706
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1685
1707
  var _c;
1686
1708
  return __generator(this, function (_d) {
1687
1709
  switch (_d.label) {
@@ -1691,7 +1713,6 @@ var deserializeAws_json1_1ListBuildBatchesCommandError = function (output, conte
1691
1713
  return [4, parseBody(output.body, context)];
1692
1714
  case 1:
1693
1715
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1694
- errorCode = "UnknownError";
1695
1716
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1696
1717
  _b = errorCode;
1697
1718
  switch (_b) {
@@ -1703,10 +1724,12 @@ var deserializeAws_json1_1ListBuildBatchesCommandError = function (output, conte
1703
1724
  case 3: throw _d.sent();
1704
1725
  case 4:
1705
1726
  parsedBody = parsedOutput.body;
1727
+ $metadata = deserializeMetadata(output);
1728
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1706
1729
  response = new __BaseException({
1707
- name: parsedBody.code || parsedBody.Code || errorCode,
1730
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1708
1731
  $fault: "client",
1709
- $metadata: deserializeMetadata(output),
1732
+ $metadata: $metadata,
1710
1733
  });
1711
1734
  throw __decorateServiceException(response, parsedBody);
1712
1735
  }
@@ -1731,7 +1754,7 @@ export var deserializeAws_json1_1ListBuildBatchesForProjectCommand = function (o
1731
1754
  });
1732
1755
  }); };
1733
1756
  var deserializeAws_json1_1ListBuildBatchesForProjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1734
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1757
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1735
1758
  var _c;
1736
1759
  return __generator(this, function (_d) {
1737
1760
  switch (_d.label) {
@@ -1741,7 +1764,6 @@ var deserializeAws_json1_1ListBuildBatchesForProjectCommandError = function (out
1741
1764
  return [4, parseBody(output.body, context)];
1742
1765
  case 1:
1743
1766
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1744
- errorCode = "UnknownError";
1745
1767
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1746
1768
  _b = errorCode;
1747
1769
  switch (_b) {
@@ -1757,10 +1779,12 @@ var deserializeAws_json1_1ListBuildBatchesForProjectCommandError = function (out
1757
1779
  case 5: throw _d.sent();
1758
1780
  case 6:
1759
1781
  parsedBody = parsedOutput.body;
1782
+ $metadata = deserializeMetadata(output);
1783
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1760
1784
  response = new __BaseException({
1761
- name: parsedBody.code || parsedBody.Code || errorCode,
1785
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1762
1786
  $fault: "client",
1763
- $metadata: deserializeMetadata(output),
1787
+ $metadata: $metadata,
1764
1788
  });
1765
1789
  throw __decorateServiceException(response, parsedBody);
1766
1790
  }
@@ -1785,7 +1809,7 @@ export var deserializeAws_json1_1ListBuildsCommand = function (output, context)
1785
1809
  });
1786
1810
  }); };
1787
1811
  var deserializeAws_json1_1ListBuildsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1788
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1812
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1789
1813
  var _c;
1790
1814
  return __generator(this, function (_d) {
1791
1815
  switch (_d.label) {
@@ -1795,7 +1819,6 @@ var deserializeAws_json1_1ListBuildsCommandError = function (output, context) {
1795
1819
  return [4, parseBody(output.body, context)];
1796
1820
  case 1:
1797
1821
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1798
- errorCode = "UnknownError";
1799
1822
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1800
1823
  _b = errorCode;
1801
1824
  switch (_b) {
@@ -1807,10 +1830,12 @@ var deserializeAws_json1_1ListBuildsCommandError = function (output, context) {
1807
1830
  case 3: throw _d.sent();
1808
1831
  case 4:
1809
1832
  parsedBody = parsedOutput.body;
1833
+ $metadata = deserializeMetadata(output);
1834
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1810
1835
  response = new __BaseException({
1811
- name: parsedBody.code || parsedBody.Code || errorCode,
1836
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1812
1837
  $fault: "client",
1813
- $metadata: deserializeMetadata(output),
1838
+ $metadata: $metadata,
1814
1839
  });
1815
1840
  throw __decorateServiceException(response, parsedBody);
1816
1841
  }
@@ -1835,7 +1860,7 @@ export var deserializeAws_json1_1ListBuildsForProjectCommand = function (output,
1835
1860
  });
1836
1861
  }); };
1837
1862
  var deserializeAws_json1_1ListBuildsForProjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1838
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1863
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1839
1864
  var _c;
1840
1865
  return __generator(this, function (_d) {
1841
1866
  switch (_d.label) {
@@ -1845,7 +1870,6 @@ var deserializeAws_json1_1ListBuildsForProjectCommandError = function (output, c
1845
1870
  return [4, parseBody(output.body, context)];
1846
1871
  case 1:
1847
1872
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1848
- errorCode = "UnknownError";
1849
1873
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1850
1874
  _b = errorCode;
1851
1875
  switch (_b) {
@@ -1861,10 +1885,12 @@ var deserializeAws_json1_1ListBuildsForProjectCommandError = function (output, c
1861
1885
  case 5: throw _d.sent();
1862
1886
  case 6:
1863
1887
  parsedBody = parsedOutput.body;
1888
+ $metadata = deserializeMetadata(output);
1889
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1864
1890
  response = new __BaseException({
1865
- name: parsedBody.code || parsedBody.Code || errorCode,
1891
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1866
1892
  $fault: "client",
1867
- $metadata: deserializeMetadata(output),
1893
+ $metadata: $metadata,
1868
1894
  });
1869
1895
  throw __decorateServiceException(response, parsedBody);
1870
1896
  }
@@ -1889,7 +1915,7 @@ export var deserializeAws_json1_1ListCuratedEnvironmentImagesCommand = function
1889
1915
  });
1890
1916
  }); };
1891
1917
  var deserializeAws_json1_1ListCuratedEnvironmentImagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1892
- var parsedOutput, _a, response, errorCode, parsedBody;
1918
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1893
1919
  var _b;
1894
1920
  return __generator(this, function (_c) {
1895
1921
  switch (_c.label) {
@@ -1899,15 +1925,16 @@ var deserializeAws_json1_1ListCuratedEnvironmentImagesCommandError = function (o
1899
1925
  return [4, parseBody(output.body, context)];
1900
1926
  case 1:
1901
1927
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1902
- errorCode = "UnknownError";
1903
1928
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1904
1929
  switch (errorCode) {
1905
1930
  default:
1906
1931
  parsedBody = parsedOutput.body;
1932
+ $metadata = deserializeMetadata(output);
1933
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1907
1934
  response = new __BaseException({
1908
- name: parsedBody.code || parsedBody.Code || errorCode,
1935
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1909
1936
  $fault: "client",
1910
- $metadata: deserializeMetadata(output),
1937
+ $metadata: $metadata,
1911
1938
  });
1912
1939
  throw __decorateServiceException(response, parsedBody);
1913
1940
  }
@@ -1934,7 +1961,7 @@ export var deserializeAws_json1_1ListProjectsCommand = function (output, context
1934
1961
  });
1935
1962
  }); };
1936
1963
  var deserializeAws_json1_1ListProjectsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1937
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1964
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1938
1965
  var _c;
1939
1966
  return __generator(this, function (_d) {
1940
1967
  switch (_d.label) {
@@ -1944,7 +1971,6 @@ var deserializeAws_json1_1ListProjectsCommandError = function (output, context)
1944
1971
  return [4, parseBody(output.body, context)];
1945
1972
  case 1:
1946
1973
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1947
- errorCode = "UnknownError";
1948
1974
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1949
1975
  _b = errorCode;
1950
1976
  switch (_b) {
@@ -1956,10 +1982,12 @@ var deserializeAws_json1_1ListProjectsCommandError = function (output, context)
1956
1982
  case 3: throw _d.sent();
1957
1983
  case 4:
1958
1984
  parsedBody = parsedOutput.body;
1985
+ $metadata = deserializeMetadata(output);
1986
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1959
1987
  response = new __BaseException({
1960
- name: parsedBody.code || parsedBody.Code || errorCode,
1988
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1961
1989
  $fault: "client",
1962
- $metadata: deserializeMetadata(output),
1990
+ $metadata: $metadata,
1963
1991
  });
1964
1992
  throw __decorateServiceException(response, parsedBody);
1965
1993
  }
@@ -1984,7 +2012,7 @@ export var deserializeAws_json1_1ListReportGroupsCommand = function (output, con
1984
2012
  });
1985
2013
  }); };
1986
2014
  var deserializeAws_json1_1ListReportGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1987
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2015
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1988
2016
  var _c;
1989
2017
  return __generator(this, function (_d) {
1990
2018
  switch (_d.label) {
@@ -1994,7 +2022,6 @@ var deserializeAws_json1_1ListReportGroupsCommandError = function (output, conte
1994
2022
  return [4, parseBody(output.body, context)];
1995
2023
  case 1:
1996
2024
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1997
- errorCode = "UnknownError";
1998
2025
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1999
2026
  _b = errorCode;
2000
2027
  switch (_b) {
@@ -2006,10 +2033,12 @@ var deserializeAws_json1_1ListReportGroupsCommandError = function (output, conte
2006
2033
  case 3: throw _d.sent();
2007
2034
  case 4:
2008
2035
  parsedBody = parsedOutput.body;
2036
+ $metadata = deserializeMetadata(output);
2037
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2009
2038
  response = new __BaseException({
2010
- name: parsedBody.code || parsedBody.Code || errorCode,
2039
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2011
2040
  $fault: "client",
2012
- $metadata: deserializeMetadata(output),
2041
+ $metadata: $metadata,
2013
2042
  });
2014
2043
  throw __decorateServiceException(response, parsedBody);
2015
2044
  }
@@ -2034,7 +2063,7 @@ export var deserializeAws_json1_1ListReportsCommand = function (output, context)
2034
2063
  });
2035
2064
  }); };
2036
2065
  var deserializeAws_json1_1ListReportsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2037
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2066
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2038
2067
  var _c;
2039
2068
  return __generator(this, function (_d) {
2040
2069
  switch (_d.label) {
@@ -2044,7 +2073,6 @@ var deserializeAws_json1_1ListReportsCommandError = function (output, context) {
2044
2073
  return [4, parseBody(output.body, context)];
2045
2074
  case 1:
2046
2075
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2047
- errorCode = "UnknownError";
2048
2076
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2049
2077
  _b = errorCode;
2050
2078
  switch (_b) {
@@ -2056,10 +2084,12 @@ var deserializeAws_json1_1ListReportsCommandError = function (output, context) {
2056
2084
  case 3: throw _d.sent();
2057
2085
  case 4:
2058
2086
  parsedBody = parsedOutput.body;
2087
+ $metadata = deserializeMetadata(output);
2088
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2059
2089
  response = new __BaseException({
2060
- name: parsedBody.code || parsedBody.Code || errorCode,
2090
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2061
2091
  $fault: "client",
2062
- $metadata: deserializeMetadata(output),
2092
+ $metadata: $metadata,
2063
2093
  });
2064
2094
  throw __decorateServiceException(response, parsedBody);
2065
2095
  }
@@ -2084,7 +2114,7 @@ export var deserializeAws_json1_1ListReportsForReportGroupCommand = function (ou
2084
2114
  });
2085
2115
  }); };
2086
2116
  var deserializeAws_json1_1ListReportsForReportGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2087
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2117
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2088
2118
  var _c;
2089
2119
  return __generator(this, function (_d) {
2090
2120
  switch (_d.label) {
@@ -2094,7 +2124,6 @@ var deserializeAws_json1_1ListReportsForReportGroupCommandError = function (outp
2094
2124
  return [4, parseBody(output.body, context)];
2095
2125
  case 1:
2096
2126
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2097
- errorCode = "UnknownError";
2098
2127
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2099
2128
  _b = errorCode;
2100
2129
  switch (_b) {
@@ -2110,10 +2139,12 @@ var deserializeAws_json1_1ListReportsForReportGroupCommandError = function (outp
2110
2139
  case 5: throw _d.sent();
2111
2140
  case 6:
2112
2141
  parsedBody = parsedOutput.body;
2142
+ $metadata = deserializeMetadata(output);
2143
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2113
2144
  response = new __BaseException({
2114
- name: parsedBody.code || parsedBody.Code || errorCode,
2145
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2115
2146
  $fault: "client",
2116
- $metadata: deserializeMetadata(output),
2147
+ $metadata: $metadata,
2117
2148
  });
2118
2149
  throw __decorateServiceException(response, parsedBody);
2119
2150
  }
@@ -2138,7 +2169,7 @@ export var deserializeAws_json1_1ListSharedProjectsCommand = function (output, c
2138
2169
  });
2139
2170
  }); };
2140
2171
  var deserializeAws_json1_1ListSharedProjectsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2141
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2172
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2142
2173
  var _c;
2143
2174
  return __generator(this, function (_d) {
2144
2175
  switch (_d.label) {
@@ -2148,7 +2179,6 @@ var deserializeAws_json1_1ListSharedProjectsCommandError = function (output, con
2148
2179
  return [4, parseBody(output.body, context)];
2149
2180
  case 1:
2150
2181
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2151
- errorCode = "UnknownError";
2152
2182
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2153
2183
  _b = errorCode;
2154
2184
  switch (_b) {
@@ -2160,10 +2190,12 @@ var deserializeAws_json1_1ListSharedProjectsCommandError = function (output, con
2160
2190
  case 3: throw _d.sent();
2161
2191
  case 4:
2162
2192
  parsedBody = parsedOutput.body;
2193
+ $metadata = deserializeMetadata(output);
2194
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2163
2195
  response = new __BaseException({
2164
- name: parsedBody.code || parsedBody.Code || errorCode,
2196
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2165
2197
  $fault: "client",
2166
- $metadata: deserializeMetadata(output),
2198
+ $metadata: $metadata,
2167
2199
  });
2168
2200
  throw __decorateServiceException(response, parsedBody);
2169
2201
  }
@@ -2188,7 +2220,7 @@ export var deserializeAws_json1_1ListSharedReportGroupsCommand = function (outpu
2188
2220
  });
2189
2221
  }); };
2190
2222
  var deserializeAws_json1_1ListSharedReportGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2191
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2223
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2192
2224
  var _c;
2193
2225
  return __generator(this, function (_d) {
2194
2226
  switch (_d.label) {
@@ -2198,7 +2230,6 @@ var deserializeAws_json1_1ListSharedReportGroupsCommandError = function (output,
2198
2230
  return [4, parseBody(output.body, context)];
2199
2231
  case 1:
2200
2232
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2201
- errorCode = "UnknownError";
2202
2233
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2203
2234
  _b = errorCode;
2204
2235
  switch (_b) {
@@ -2210,10 +2241,12 @@ var deserializeAws_json1_1ListSharedReportGroupsCommandError = function (output,
2210
2241
  case 3: throw _d.sent();
2211
2242
  case 4:
2212
2243
  parsedBody = parsedOutput.body;
2244
+ $metadata = deserializeMetadata(output);
2245
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2213
2246
  response = new __BaseException({
2214
- name: parsedBody.code || parsedBody.Code || errorCode,
2247
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2215
2248
  $fault: "client",
2216
- $metadata: deserializeMetadata(output),
2249
+ $metadata: $metadata,
2217
2250
  });
2218
2251
  throw __decorateServiceException(response, parsedBody);
2219
2252
  }
@@ -2238,7 +2271,7 @@ export var deserializeAws_json1_1ListSourceCredentialsCommand = function (output
2238
2271
  });
2239
2272
  }); };
2240
2273
  var deserializeAws_json1_1ListSourceCredentialsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2241
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2274
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2242
2275
  var _c;
2243
2276
  return __generator(this, function (_d) {
2244
2277
  switch (_d.label) {
@@ -2248,7 +2281,6 @@ var deserializeAws_json1_1ListSourceCredentialsCommandError = function (output,
2248
2281
  return [4, parseBody(output.body, context)];
2249
2282
  case 1:
2250
2283
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2251
- errorCode = "UnknownError";
2252
2284
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2253
2285
  _b = errorCode;
2254
2286
  switch (_b) {
@@ -2260,10 +2292,12 @@ var deserializeAws_json1_1ListSourceCredentialsCommandError = function (output,
2260
2292
  case 3: throw _d.sent();
2261
2293
  case 4:
2262
2294
  parsedBody = parsedOutput.body;
2295
+ $metadata = deserializeMetadata(output);
2296
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2263
2297
  response = new __BaseException({
2264
- name: parsedBody.code || parsedBody.Code || errorCode,
2298
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2265
2299
  $fault: "client",
2266
- $metadata: deserializeMetadata(output),
2300
+ $metadata: $metadata,
2267
2301
  });
2268
2302
  throw __decorateServiceException(response, parsedBody);
2269
2303
  }
@@ -2288,7 +2322,7 @@ export var deserializeAws_json1_1PutResourcePolicyCommand = function (output, co
2288
2322
  });
2289
2323
  }); };
2290
2324
  var deserializeAws_json1_1PutResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2291
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2325
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2292
2326
  var _c;
2293
2327
  return __generator(this, function (_d) {
2294
2328
  switch (_d.label) {
@@ -2298,7 +2332,6 @@ var deserializeAws_json1_1PutResourcePolicyCommandError = function (output, cont
2298
2332
  return [4, parseBody(output.body, context)];
2299
2333
  case 1:
2300
2334
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2301
- errorCode = "UnknownError";
2302
2335
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2303
2336
  _b = errorCode;
2304
2337
  switch (_b) {
@@ -2314,10 +2347,12 @@ var deserializeAws_json1_1PutResourcePolicyCommandError = function (output, cont
2314
2347
  case 5: throw _d.sent();
2315
2348
  case 6:
2316
2349
  parsedBody = parsedOutput.body;
2350
+ $metadata = deserializeMetadata(output);
2351
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2317
2352
  response = new __BaseException({
2318
- name: parsedBody.code || parsedBody.Code || errorCode,
2353
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2319
2354
  $fault: "client",
2320
- $metadata: deserializeMetadata(output),
2355
+ $metadata: $metadata,
2321
2356
  });
2322
2357
  throw __decorateServiceException(response, parsedBody);
2323
2358
  }
@@ -2342,7 +2377,7 @@ export var deserializeAws_json1_1RetryBuildCommand = function (output, context)
2342
2377
  });
2343
2378
  }); };
2344
2379
  var deserializeAws_json1_1RetryBuildCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2345
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2380
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2346
2381
  var _c;
2347
2382
  return __generator(this, function (_d) {
2348
2383
  switch (_d.label) {
@@ -2352,7 +2387,6 @@ var deserializeAws_json1_1RetryBuildCommandError = function (output, context) {
2352
2387
  return [4, parseBody(output.body, context)];
2353
2388
  case 1:
2354
2389
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2355
- errorCode = "UnknownError";
2356
2390
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2357
2391
  _b = errorCode;
2358
2392
  switch (_b) {
@@ -2372,10 +2406,12 @@ var deserializeAws_json1_1RetryBuildCommandError = function (output, context) {
2372
2406
  case 7: throw _d.sent();
2373
2407
  case 8:
2374
2408
  parsedBody = parsedOutput.body;
2409
+ $metadata = deserializeMetadata(output);
2410
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2375
2411
  response = new __BaseException({
2376
- name: parsedBody.code || parsedBody.Code || errorCode,
2412
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2377
2413
  $fault: "client",
2378
- $metadata: deserializeMetadata(output),
2414
+ $metadata: $metadata,
2379
2415
  });
2380
2416
  throw __decorateServiceException(response, parsedBody);
2381
2417
  }
@@ -2400,7 +2436,7 @@ export var deserializeAws_json1_1RetryBuildBatchCommand = function (output, cont
2400
2436
  });
2401
2437
  }); };
2402
2438
  var deserializeAws_json1_1RetryBuildBatchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2403
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2439
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2404
2440
  var _c;
2405
2441
  return __generator(this, function (_d) {
2406
2442
  switch (_d.label) {
@@ -2410,7 +2446,6 @@ var deserializeAws_json1_1RetryBuildBatchCommandError = function (output, contex
2410
2446
  return [4, parseBody(output.body, context)];
2411
2447
  case 1:
2412
2448
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2413
- errorCode = "UnknownError";
2414
2449
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2415
2450
  _b = errorCode;
2416
2451
  switch (_b) {
@@ -2426,10 +2461,12 @@ var deserializeAws_json1_1RetryBuildBatchCommandError = function (output, contex
2426
2461
  case 5: throw _d.sent();
2427
2462
  case 6:
2428
2463
  parsedBody = parsedOutput.body;
2464
+ $metadata = deserializeMetadata(output);
2465
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2429
2466
  response = new __BaseException({
2430
- name: parsedBody.code || parsedBody.Code || errorCode,
2467
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2431
2468
  $fault: "client",
2432
- $metadata: deserializeMetadata(output),
2469
+ $metadata: $metadata,
2433
2470
  });
2434
2471
  throw __decorateServiceException(response, parsedBody);
2435
2472
  }
@@ -2454,7 +2491,7 @@ export var deserializeAws_json1_1StartBuildCommand = function (output, context)
2454
2491
  });
2455
2492
  }); };
2456
2493
  var deserializeAws_json1_1StartBuildCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2457
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2494
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2458
2495
  var _c;
2459
2496
  return __generator(this, function (_d) {
2460
2497
  switch (_d.label) {
@@ -2464,7 +2501,6 @@ var deserializeAws_json1_1StartBuildCommandError = function (output, context) {
2464
2501
  return [4, parseBody(output.body, context)];
2465
2502
  case 1:
2466
2503
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2467
- errorCode = "UnknownError";
2468
2504
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2469
2505
  _b = errorCode;
2470
2506
  switch (_b) {
@@ -2484,10 +2520,12 @@ var deserializeAws_json1_1StartBuildCommandError = function (output, context) {
2484
2520
  case 7: throw _d.sent();
2485
2521
  case 8:
2486
2522
  parsedBody = parsedOutput.body;
2523
+ $metadata = deserializeMetadata(output);
2524
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2487
2525
  response = new __BaseException({
2488
- name: parsedBody.code || parsedBody.Code || errorCode,
2526
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2489
2527
  $fault: "client",
2490
- $metadata: deserializeMetadata(output),
2528
+ $metadata: $metadata,
2491
2529
  });
2492
2530
  throw __decorateServiceException(response, parsedBody);
2493
2531
  }
@@ -2512,7 +2550,7 @@ export var deserializeAws_json1_1StartBuildBatchCommand = function (output, cont
2512
2550
  });
2513
2551
  }); };
2514
2552
  var deserializeAws_json1_1StartBuildBatchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2515
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2553
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2516
2554
  var _c;
2517
2555
  return __generator(this, function (_d) {
2518
2556
  switch (_d.label) {
@@ -2522,7 +2560,6 @@ var deserializeAws_json1_1StartBuildBatchCommandError = function (output, contex
2522
2560
  return [4, parseBody(output.body, context)];
2523
2561
  case 1:
2524
2562
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2525
- errorCode = "UnknownError";
2526
2563
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2527
2564
  _b = errorCode;
2528
2565
  switch (_b) {
@@ -2538,10 +2575,12 @@ var deserializeAws_json1_1StartBuildBatchCommandError = function (output, contex
2538
2575
  case 5: throw _d.sent();
2539
2576
  case 6:
2540
2577
  parsedBody = parsedOutput.body;
2578
+ $metadata = deserializeMetadata(output);
2579
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2541
2580
  response = new __BaseException({
2542
- name: parsedBody.code || parsedBody.Code || errorCode,
2581
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2543
2582
  $fault: "client",
2544
- $metadata: deserializeMetadata(output),
2583
+ $metadata: $metadata,
2545
2584
  });
2546
2585
  throw __decorateServiceException(response, parsedBody);
2547
2586
  }
@@ -2566,7 +2605,7 @@ export var deserializeAws_json1_1StopBuildCommand = function (output, context) {
2566
2605
  });
2567
2606
  }); };
2568
2607
  var deserializeAws_json1_1StopBuildCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2569
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2608
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2570
2609
  var _c;
2571
2610
  return __generator(this, function (_d) {
2572
2611
  switch (_d.label) {
@@ -2576,7 +2615,6 @@ var deserializeAws_json1_1StopBuildCommandError = function (output, context) { r
2576
2615
  return [4, parseBody(output.body, context)];
2577
2616
  case 1:
2578
2617
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2579
- errorCode = "UnknownError";
2580
2618
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2581
2619
  _b = errorCode;
2582
2620
  switch (_b) {
@@ -2592,10 +2630,12 @@ var deserializeAws_json1_1StopBuildCommandError = function (output, context) { r
2592
2630
  case 5: throw _d.sent();
2593
2631
  case 6:
2594
2632
  parsedBody = parsedOutput.body;
2633
+ $metadata = deserializeMetadata(output);
2634
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2595
2635
  response = new __BaseException({
2596
- name: parsedBody.code || parsedBody.Code || errorCode,
2636
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2597
2637
  $fault: "client",
2598
- $metadata: deserializeMetadata(output),
2638
+ $metadata: $metadata,
2599
2639
  });
2600
2640
  throw __decorateServiceException(response, parsedBody);
2601
2641
  }
@@ -2620,7 +2660,7 @@ export var deserializeAws_json1_1StopBuildBatchCommand = function (output, conte
2620
2660
  });
2621
2661
  }); };
2622
2662
  var deserializeAws_json1_1StopBuildBatchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2623
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2663
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2624
2664
  var _c;
2625
2665
  return __generator(this, function (_d) {
2626
2666
  switch (_d.label) {
@@ -2630,7 +2670,6 @@ var deserializeAws_json1_1StopBuildBatchCommandError = function (output, context
2630
2670
  return [4, parseBody(output.body, context)];
2631
2671
  case 1:
2632
2672
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2633
- errorCode = "UnknownError";
2634
2673
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2635
2674
  _b = errorCode;
2636
2675
  switch (_b) {
@@ -2646,10 +2685,12 @@ var deserializeAws_json1_1StopBuildBatchCommandError = function (output, context
2646
2685
  case 5: throw _d.sent();
2647
2686
  case 6:
2648
2687
  parsedBody = parsedOutput.body;
2688
+ $metadata = deserializeMetadata(output);
2689
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2649
2690
  response = new __BaseException({
2650
- name: parsedBody.code || parsedBody.Code || errorCode,
2691
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2651
2692
  $fault: "client",
2652
- $metadata: deserializeMetadata(output),
2693
+ $metadata: $metadata,
2653
2694
  });
2654
2695
  throw __decorateServiceException(response, parsedBody);
2655
2696
  }
@@ -2674,7 +2715,7 @@ export var deserializeAws_json1_1UpdateProjectCommand = function (output, contex
2674
2715
  });
2675
2716
  }); };
2676
2717
  var deserializeAws_json1_1UpdateProjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2677
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2718
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2678
2719
  var _c;
2679
2720
  return __generator(this, function (_d) {
2680
2721
  switch (_d.label) {
@@ -2684,7 +2725,6 @@ var deserializeAws_json1_1UpdateProjectCommandError = function (output, context)
2684
2725
  return [4, parseBody(output.body, context)];
2685
2726
  case 1:
2686
2727
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2687
- errorCode = "UnknownError";
2688
2728
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2689
2729
  _b = errorCode;
2690
2730
  switch (_b) {
@@ -2700,10 +2740,12 @@ var deserializeAws_json1_1UpdateProjectCommandError = function (output, context)
2700
2740
  case 5: throw _d.sent();
2701
2741
  case 6:
2702
2742
  parsedBody = parsedOutput.body;
2743
+ $metadata = deserializeMetadata(output);
2744
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2703
2745
  response = new __BaseException({
2704
- name: parsedBody.code || parsedBody.Code || errorCode,
2746
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2705
2747
  $fault: "client",
2706
- $metadata: deserializeMetadata(output),
2748
+ $metadata: $metadata,
2707
2749
  });
2708
2750
  throw __decorateServiceException(response, parsedBody);
2709
2751
  }
@@ -2728,7 +2770,7 @@ export var deserializeAws_json1_1UpdateProjectVisibilityCommand = function (outp
2728
2770
  });
2729
2771
  }); };
2730
2772
  var deserializeAws_json1_1UpdateProjectVisibilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2731
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2773
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2732
2774
  var _c;
2733
2775
  return __generator(this, function (_d) {
2734
2776
  switch (_d.label) {
@@ -2738,7 +2780,6 @@ var deserializeAws_json1_1UpdateProjectVisibilityCommandError = function (output
2738
2780
  return [4, parseBody(output.body, context)];
2739
2781
  case 1:
2740
2782
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2741
- errorCode = "UnknownError";
2742
2783
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2743
2784
  _b = errorCode;
2744
2785
  switch (_b) {
@@ -2754,10 +2795,12 @@ var deserializeAws_json1_1UpdateProjectVisibilityCommandError = function (output
2754
2795
  case 5: throw _d.sent();
2755
2796
  case 6:
2756
2797
  parsedBody = parsedOutput.body;
2798
+ $metadata = deserializeMetadata(output);
2799
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2757
2800
  response = new __BaseException({
2758
- name: parsedBody.code || parsedBody.Code || errorCode,
2801
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2759
2802
  $fault: "client",
2760
- $metadata: deserializeMetadata(output),
2803
+ $metadata: $metadata,
2761
2804
  });
2762
2805
  throw __decorateServiceException(response, parsedBody);
2763
2806
  }
@@ -2782,7 +2825,7 @@ export var deserializeAws_json1_1UpdateReportGroupCommand = function (output, co
2782
2825
  });
2783
2826
  }); };
2784
2827
  var deserializeAws_json1_1UpdateReportGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2785
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2828
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2786
2829
  var _c;
2787
2830
  return __generator(this, function (_d) {
2788
2831
  switch (_d.label) {
@@ -2792,7 +2835,6 @@ var deserializeAws_json1_1UpdateReportGroupCommandError = function (output, cont
2792
2835
  return [4, parseBody(output.body, context)];
2793
2836
  case 1:
2794
2837
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2795
- errorCode = "UnknownError";
2796
2838
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2797
2839
  _b = errorCode;
2798
2840
  switch (_b) {
@@ -2808,10 +2850,12 @@ var deserializeAws_json1_1UpdateReportGroupCommandError = function (output, cont
2808
2850
  case 5: throw _d.sent();
2809
2851
  case 6:
2810
2852
  parsedBody = parsedOutput.body;
2853
+ $metadata = deserializeMetadata(output);
2854
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2811
2855
  response = new __BaseException({
2812
- name: parsedBody.code || parsedBody.Code || errorCode,
2856
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2813
2857
  $fault: "client",
2814
- $metadata: deserializeMetadata(output),
2858
+ $metadata: $metadata,
2815
2859
  });
2816
2860
  throw __decorateServiceException(response, parsedBody);
2817
2861
  }
@@ -2836,7 +2880,7 @@ export var deserializeAws_json1_1UpdateWebhookCommand = function (output, contex
2836
2880
  });
2837
2881
  }); };
2838
2882
  var deserializeAws_json1_1UpdateWebhookCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2839
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2883
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2840
2884
  var _c;
2841
2885
  return __generator(this, function (_d) {
2842
2886
  switch (_d.label) {
@@ -2846,7 +2890,6 @@ var deserializeAws_json1_1UpdateWebhookCommandError = function (output, context)
2846
2890
  return [4, parseBody(output.body, context)];
2847
2891
  case 1:
2848
2892
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2849
- errorCode = "UnknownError";
2850
2893
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2851
2894
  _b = errorCode;
2852
2895
  switch (_b) {
@@ -2866,10 +2909,12 @@ var deserializeAws_json1_1UpdateWebhookCommandError = function (output, context)
2866
2909
  case 7: throw _d.sent();
2867
2910
  case 8:
2868
2911
  parsedBody = parsedOutput.body;
2912
+ $metadata = deserializeMetadata(output);
2913
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2869
2914
  response = new __BaseException({
2870
- name: parsedBody.code || parsedBody.Code || errorCode,
2915
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2871
2916
  $fault: "client",
2872
- $metadata: deserializeMetadata(output),
2917
+ $metadata: $metadata,
2873
2918
  });
2874
2919
  throw __decorateServiceException(response, parsedBody);
2875
2920
  }
@@ -2921,38 +2966,32 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
2921
2966
  });
2922
2967
  }); };
2923
2968
  var serializeAws_json1_1BatchDeleteBuildsInput = function (input, context) {
2924
- return __assign({}, (input.ids !== undefined && input.ids !== null && { ids: serializeAws_json1_1BuildIds(input.ids, context) }));
2969
+ return __assign({}, (input.ids != null && { ids: serializeAws_json1_1BuildIds(input.ids, context) }));
2925
2970
  };
2926
2971
  var serializeAws_json1_1BatchGetBuildBatchesInput = function (input, context) {
2927
- return __assign({}, (input.ids !== undefined &&
2928
- input.ids !== null && { ids: serializeAws_json1_1BuildBatchIds(input.ids, context) }));
2972
+ return __assign({}, (input.ids != null && { ids: serializeAws_json1_1BuildBatchIds(input.ids, context) }));
2929
2973
  };
2930
2974
  var serializeAws_json1_1BatchGetBuildsInput = function (input, context) {
2931
- return __assign({}, (input.ids !== undefined && input.ids !== null && { ids: serializeAws_json1_1BuildIds(input.ids, context) }));
2975
+ return __assign({}, (input.ids != null && { ids: serializeAws_json1_1BuildIds(input.ids, context) }));
2932
2976
  };
2933
2977
  var serializeAws_json1_1BatchGetProjectsInput = function (input, context) {
2934
- return __assign({}, (input.names !== undefined &&
2935
- input.names !== null && { names: serializeAws_json1_1ProjectNames(input.names, context) }));
2978
+ return __assign({}, (input.names != null && { names: serializeAws_json1_1ProjectNames(input.names, context) }));
2936
2979
  };
2937
2980
  var serializeAws_json1_1BatchGetReportGroupsInput = function (input, context) {
2938
- return __assign({}, (input.reportGroupArns !== undefined &&
2939
- input.reportGroupArns !== null && {
2981
+ return __assign({}, (input.reportGroupArns != null && {
2940
2982
  reportGroupArns: serializeAws_json1_1ReportGroupArns(input.reportGroupArns, context),
2941
2983
  }));
2942
2984
  };
2943
2985
  var serializeAws_json1_1BatchGetReportsInput = function (input, context) {
2944
- return __assign({}, (input.reportArns !== undefined &&
2945
- input.reportArns !== null && { reportArns: serializeAws_json1_1ReportArns(input.reportArns, context) }));
2986
+ return __assign({}, (input.reportArns != null && { reportArns: serializeAws_json1_1ReportArns(input.reportArns, context) }));
2946
2987
  };
2947
2988
  var serializeAws_json1_1BatchRestrictions = function (input, context) {
2948
- return __assign(__assign({}, (input.computeTypesAllowed !== undefined &&
2949
- input.computeTypesAllowed !== null && {
2989
+ return __assign(__assign({}, (input.computeTypesAllowed != null && {
2950
2990
  computeTypesAllowed: serializeAws_json1_1ComputeTypesAllowed(input.computeTypesAllowed, context),
2951
- })), (input.maximumBuildsAllowed !== undefined &&
2952
- input.maximumBuildsAllowed !== null && { maximumBuildsAllowed: input.maximumBuildsAllowed }));
2991
+ })), (input.maximumBuildsAllowed != null && { maximumBuildsAllowed: input.maximumBuildsAllowed }));
2953
2992
  };
2954
2993
  var serializeAws_json1_1BuildBatchFilter = function (input, context) {
2955
- return __assign({}, (input.status !== undefined && input.status !== null && { status: input.status }));
2994
+ return __assign({}, (input.status != null && { status: input.status }));
2956
2995
  };
2957
2996
  var serializeAws_json1_1BuildBatchIds = function (input, context) {
2958
2997
  return input
@@ -2975,10 +3014,10 @@ var serializeAws_json1_1BuildIds = function (input, context) {
2975
3014
  });
2976
3015
  };
2977
3016
  var serializeAws_json1_1BuildStatusConfig = function (input, context) {
2978
- return __assign(__assign({}, (input.context !== undefined && input.context !== null && { context: input.context })), (input.targetUrl !== undefined && input.targetUrl !== null && { targetUrl: input.targetUrl }));
3017
+ return __assign(__assign({}, (input.context != null && { context: input.context })), (input.targetUrl != null && { targetUrl: input.targetUrl }));
2979
3018
  };
2980
3019
  var serializeAws_json1_1CloudWatchLogsConfig = function (input, context) {
2981
- return __assign(__assign(__assign({}, (input.groupName !== undefined && input.groupName !== null && { groupName: input.groupName })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.streamName !== undefined && input.streamName !== null && { streamName: input.streamName }));
3020
+ return __assign(__assign(__assign({}, (input.groupName != null && { groupName: input.groupName })), (input.status != null && { status: input.status })), (input.streamName != null && { streamName: input.streamName }));
2982
3021
  };
2983
3022
  var serializeAws_json1_1ComputeTypesAllowed = function (input, context) {
2984
3023
  return input
@@ -2991,80 +3030,61 @@ var serializeAws_json1_1ComputeTypesAllowed = function (input, context) {
2991
3030
  });
2992
3031
  };
2993
3032
  var serializeAws_json1_1CreateProjectInput = function (input, context) {
2994
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifacts !== undefined &&
2995
- input.artifacts !== null && { artifacts: serializeAws_json1_1ProjectArtifacts(input.artifacts, context) })), (input.badgeEnabled !== undefined && input.badgeEnabled !== null && { badgeEnabled: input.badgeEnabled })), (input.buildBatchConfig !== undefined &&
2996
- input.buildBatchConfig !== null && {
3033
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifacts != null && { artifacts: serializeAws_json1_1ProjectArtifacts(input.artifacts, context) })), (input.badgeEnabled != null && { badgeEnabled: input.badgeEnabled })), (input.buildBatchConfig != null && {
2997
3034
  buildBatchConfig: serializeAws_json1_1ProjectBuildBatchConfig(input.buildBatchConfig, context),
2998
- })), (input.cache !== undefined &&
2999
- input.cache !== null && { cache: serializeAws_json1_1ProjectCache(input.cache, context) })), (input.concurrentBuildLimit !== undefined &&
3000
- input.concurrentBuildLimit !== null && { concurrentBuildLimit: input.concurrentBuildLimit })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.encryptionKey !== undefined && input.encryptionKey !== null && { encryptionKey: input.encryptionKey })), (input.environment !== undefined &&
3001
- input.environment !== null && {
3035
+ })), (input.cache != null && { cache: serializeAws_json1_1ProjectCache(input.cache, context) })), (input.concurrentBuildLimit != null && { concurrentBuildLimit: input.concurrentBuildLimit })), (input.description != null && { description: input.description })), (input.encryptionKey != null && { encryptionKey: input.encryptionKey })), (input.environment != null && {
3002
3036
  environment: serializeAws_json1_1ProjectEnvironment(input.environment, context),
3003
- })), (input.fileSystemLocations !== undefined &&
3004
- input.fileSystemLocations !== null && {
3037
+ })), (input.fileSystemLocations != null && {
3005
3038
  fileSystemLocations: serializeAws_json1_1ProjectFileSystemLocations(input.fileSystemLocations, context),
3006
- })), (input.logsConfig !== undefined &&
3007
- input.logsConfig !== null && { logsConfig: serializeAws_json1_1LogsConfig(input.logsConfig, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.queuedTimeoutInMinutes !== undefined &&
3008
- input.queuedTimeoutInMinutes !== null && { queuedTimeoutInMinutes: input.queuedTimeoutInMinutes })), (input.secondaryArtifacts !== undefined &&
3009
- input.secondaryArtifacts !== null && {
3039
+ })), (input.logsConfig != null && { logsConfig: serializeAws_json1_1LogsConfig(input.logsConfig, context) })), (input.name != null && { name: input.name })), (input.queuedTimeoutInMinutes != null && { queuedTimeoutInMinutes: input.queuedTimeoutInMinutes })), (input.secondaryArtifacts != null && {
3010
3040
  secondaryArtifacts: serializeAws_json1_1ProjectArtifactsList(input.secondaryArtifacts, context),
3011
- })), (input.secondarySourceVersions !== undefined &&
3012
- input.secondarySourceVersions !== null && {
3041
+ })), (input.secondarySourceVersions != null && {
3013
3042
  secondarySourceVersions: serializeAws_json1_1ProjectSecondarySourceVersions(input.secondarySourceVersions, context),
3014
- })), (input.secondarySources !== undefined &&
3015
- input.secondarySources !== null && {
3043
+ })), (input.secondarySources != null && {
3016
3044
  secondarySources: serializeAws_json1_1ProjectSources(input.secondarySources, context),
3017
- })), (input.serviceRole !== undefined && input.serviceRole !== null && { serviceRole: input.serviceRole })), (input.source !== undefined &&
3018
- input.source !== null && { source: serializeAws_json1_1ProjectSource(input.source, context) })), (input.sourceVersion !== undefined && input.sourceVersion !== null && { sourceVersion: input.sourceVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.timeoutInMinutes !== undefined &&
3019
- input.timeoutInMinutes !== null && { timeoutInMinutes: input.timeoutInMinutes })), (input.vpcConfig !== undefined &&
3020
- input.vpcConfig !== null && { vpcConfig: serializeAws_json1_1VpcConfig(input.vpcConfig, context) }));
3045
+ })), (input.serviceRole != null && { serviceRole: input.serviceRole })), (input.source != null && { source: serializeAws_json1_1ProjectSource(input.source, context) })), (input.sourceVersion != null && { sourceVersion: input.sourceVersion })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.timeoutInMinutes != null && { timeoutInMinutes: input.timeoutInMinutes })), (input.vpcConfig != null && { vpcConfig: serializeAws_json1_1VpcConfig(input.vpcConfig, context) }));
3021
3046
  };
3022
3047
  var serializeAws_json1_1CreateReportGroupInput = function (input, context) {
3023
- return __assign(__assign(__assign(__assign({}, (input.exportConfig !== undefined &&
3024
- input.exportConfig !== null && {
3048
+ return __assign(__assign(__assign(__assign({}, (input.exportConfig != null && {
3025
3049
  exportConfig: serializeAws_json1_1ReportExportConfig(input.exportConfig, context),
3026
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type }));
3050
+ })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.type != null && { type: input.type }));
3027
3051
  };
3028
3052
  var serializeAws_json1_1CreateWebhookInput = function (input, context) {
3029
- return __assign(__assign(__assign(__assign({}, (input.branchFilter !== undefined && input.branchFilter !== null && { branchFilter: input.branchFilter })), (input.buildType !== undefined && input.buildType !== null && { buildType: input.buildType })), (input.filterGroups !== undefined &&
3030
- input.filterGroups !== null && { filterGroups: serializeAws_json1_1FilterGroups(input.filterGroups, context) })), (input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName }));
3053
+ return __assign(__assign(__assign(__assign({}, (input.branchFilter != null && { branchFilter: input.branchFilter })), (input.buildType != null && { buildType: input.buildType })), (input.filterGroups != null && { filterGroups: serializeAws_json1_1FilterGroups(input.filterGroups, context) })), (input.projectName != null && { projectName: input.projectName }));
3031
3054
  };
3032
3055
  var serializeAws_json1_1DeleteBuildBatchInput = function (input, context) {
3033
- return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
3056
+ return __assign({}, (input.id != null && { id: input.id }));
3034
3057
  };
3035
3058
  var serializeAws_json1_1DeleteProjectInput = function (input, context) {
3036
- return __assign({}, (input.name !== undefined && input.name !== null && { name: input.name }));
3059
+ return __assign({}, (input.name != null && { name: input.name }));
3037
3060
  };
3038
3061
  var serializeAws_json1_1DeleteReportGroupInput = function (input, context) {
3039
- return __assign(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.deleteReports !== undefined && input.deleteReports !== null && { deleteReports: input.deleteReports }));
3062
+ return __assign(__assign({}, (input.arn != null && { arn: input.arn })), (input.deleteReports != null && { deleteReports: input.deleteReports }));
3040
3063
  };
3041
3064
  var serializeAws_json1_1DeleteReportInput = function (input, context) {
3042
- return __assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn }));
3065
+ return __assign({}, (input.arn != null && { arn: input.arn }));
3043
3066
  };
3044
3067
  var serializeAws_json1_1DeleteResourcePolicyInput = function (input, context) {
3045
- return __assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
3068
+ return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
3046
3069
  };
3047
3070
  var serializeAws_json1_1DeleteSourceCredentialsInput = function (input, context) {
3048
- return __assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn }));
3071
+ return __assign({}, (input.arn != null && { arn: input.arn }));
3049
3072
  };
3050
3073
  var serializeAws_json1_1DeleteWebhookInput = function (input, context) {
3051
- return __assign({}, (input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName }));
3074
+ return __assign({}, (input.projectName != null && { projectName: input.projectName }));
3052
3075
  };
3053
3076
  var serializeAws_json1_1DescribeCodeCoveragesInput = function (input, context) {
3054
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.maxLineCoveragePercentage !== undefined &&
3055
- input.maxLineCoveragePercentage !== null && {
3077
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.maxLineCoveragePercentage != null && {
3056
3078
  maxLineCoveragePercentage: __serializeFloat(input.maxLineCoveragePercentage),
3057
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.minLineCoveragePercentage !== undefined &&
3058
- input.minLineCoveragePercentage !== null && {
3079
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.minLineCoveragePercentage != null && {
3059
3080
  minLineCoveragePercentage: __serializeFloat(input.minLineCoveragePercentage),
3060
- })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.reportArn !== undefined && input.reportArn !== null && { reportArn: input.reportArn })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3081
+ })), (input.nextToken != null && { nextToken: input.nextToken })), (input.reportArn != null && { reportArn: input.reportArn })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3061
3082
  };
3062
3083
  var serializeAws_json1_1DescribeTestCasesInput = function (input, context) {
3063
- return __assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3064
- input.filter !== null && { filter: serializeAws_json1_1TestCaseFilter(input.filter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.reportArn !== undefined && input.reportArn !== null && { reportArn: input.reportArn }));
3084
+ return __assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1TestCaseFilter(input.filter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.reportArn != null && { reportArn: input.reportArn }));
3065
3085
  };
3066
3086
  var serializeAws_json1_1EnvironmentVariable = function (input, context) {
3067
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.value !== undefined && input.value !== null && { value: input.value }));
3087
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.type != null && { type: input.type })), (input.value != null && { value: input.value }));
3068
3088
  };
3069
3089
  var serializeAws_json1_1EnvironmentVariables = function (input, context) {
3070
3090
  return input
@@ -3097,77 +3117,63 @@ var serializeAws_json1_1FilterGroups = function (input, context) {
3097
3117
  });
3098
3118
  };
3099
3119
  var serializeAws_json1_1GetReportGroupTrendInput = function (input, context) {
3100
- return __assign(__assign(__assign({}, (input.numOfReports !== undefined && input.numOfReports !== null && { numOfReports: input.numOfReports })), (input.reportGroupArn !== undefined &&
3101
- input.reportGroupArn !== null && { reportGroupArn: input.reportGroupArn })), (input.trendField !== undefined && input.trendField !== null && { trendField: input.trendField }));
3120
+ return __assign(__assign(__assign({}, (input.numOfReports != null && { numOfReports: input.numOfReports })), (input.reportGroupArn != null && { reportGroupArn: input.reportGroupArn })), (input.trendField != null && { trendField: input.trendField }));
3102
3121
  };
3103
3122
  var serializeAws_json1_1GetResourcePolicyInput = function (input, context) {
3104
- return __assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
3123
+ return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
3105
3124
  };
3106
3125
  var serializeAws_json1_1GitSubmodulesConfig = function (input, context) {
3107
- return __assign({}, (input.fetchSubmodules !== undefined &&
3108
- input.fetchSubmodules !== null && { fetchSubmodules: input.fetchSubmodules }));
3126
+ return __assign({}, (input.fetchSubmodules != null && { fetchSubmodules: input.fetchSubmodules }));
3109
3127
  };
3110
3128
  var serializeAws_json1_1ImportSourceCredentialsInput = function (input, context) {
3111
- return __assign(__assign(__assign(__assign(__assign({}, (input.authType !== undefined && input.authType !== null && { authType: input.authType })), (input.serverType !== undefined && input.serverType !== null && { serverType: input.serverType })), (input.shouldOverwrite !== undefined &&
3112
- input.shouldOverwrite !== null && { shouldOverwrite: input.shouldOverwrite })), (input.token !== undefined && input.token !== null && { token: input.token })), (input.username !== undefined && input.username !== null && { username: input.username }));
3129
+ return __assign(__assign(__assign(__assign(__assign({}, (input.authType != null && { authType: input.authType })), (input.serverType != null && { serverType: input.serverType })), (input.shouldOverwrite != null && { shouldOverwrite: input.shouldOverwrite })), (input.token != null && { token: input.token })), (input.username != null && { username: input.username }));
3113
3130
  };
3114
3131
  var serializeAws_json1_1InvalidateProjectCacheInput = function (input, context) {
3115
- return __assign({}, (input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName }));
3132
+ return __assign({}, (input.projectName != null && { projectName: input.projectName }));
3116
3133
  };
3117
3134
  var serializeAws_json1_1ListBuildBatchesForProjectInput = function (input, context) {
3118
- return __assign(__assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3119
- input.filter !== null && { filter: serializeAws_json1_1BuildBatchFilter(input.filter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3135
+ return __assign(__assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1BuildBatchFilter(input.filter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.projectName != null && { projectName: input.projectName })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3120
3136
  };
3121
3137
  var serializeAws_json1_1ListBuildBatchesInput = function (input, context) {
3122
- return __assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3123
- input.filter !== null && { filter: serializeAws_json1_1BuildBatchFilter(input.filter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3138
+ return __assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1BuildBatchFilter(input.filter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3124
3139
  };
3125
3140
  var serializeAws_json1_1ListBuildsForProjectInput = function (input, context) {
3126
- return __assign(__assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3141
+ return __assign(__assign(__assign({}, (input.nextToken != null && { nextToken: input.nextToken })), (input.projectName != null && { projectName: input.projectName })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3127
3142
  };
3128
3143
  var serializeAws_json1_1ListBuildsInput = function (input, context) {
3129
- return __assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3144
+ return __assign(__assign({}, (input.nextToken != null && { nextToken: input.nextToken })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3130
3145
  };
3131
3146
  var serializeAws_json1_1ListCuratedEnvironmentImagesInput = function (input, context) {
3132
3147
  return {};
3133
3148
  };
3134
3149
  var serializeAws_json1_1ListProjectsInput = function (input, context) {
3135
- return __assign(__assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3150
+ return __assign(__assign(__assign({}, (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3136
3151
  };
3137
3152
  var serializeAws_json1_1ListReportGroupsInput = function (input, context) {
3138
- return __assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3153
+ return __assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3139
3154
  };
3140
3155
  var serializeAws_json1_1ListReportsForReportGroupInput = function (input, context) {
3141
- return __assign(__assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3142
- input.filter !== null && { filter: serializeAws_json1_1ReportFilter(input.filter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.reportGroupArn !== undefined &&
3143
- input.reportGroupArn !== null && { reportGroupArn: input.reportGroupArn })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3156
+ return __assign(__assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1ReportFilter(input.filter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.reportGroupArn != null && { reportGroupArn: input.reportGroupArn })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3144
3157
  };
3145
3158
  var serializeAws_json1_1ListReportsInput = function (input, context) {
3146
- return __assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3147
- input.filter !== null && { filter: serializeAws_json1_1ReportFilter(input.filter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3159
+ return __assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1ReportFilter(input.filter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3148
3160
  };
3149
3161
  var serializeAws_json1_1ListSharedProjectsInput = function (input, context) {
3150
- return __assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3162
+ return __assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3151
3163
  };
3152
3164
  var serializeAws_json1_1ListSharedReportGroupsInput = function (input, context) {
3153
- return __assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3165
+ return __assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3154
3166
  };
3155
3167
  var serializeAws_json1_1ListSourceCredentialsInput = function (input, context) {
3156
3168
  return {};
3157
3169
  };
3158
3170
  var serializeAws_json1_1LogsConfig = function (input, context) {
3159
- return __assign(__assign({}, (input.cloudWatchLogs !== undefined &&
3160
- input.cloudWatchLogs !== null && {
3171
+ return __assign(__assign({}, (input.cloudWatchLogs != null && {
3161
3172
  cloudWatchLogs: serializeAws_json1_1CloudWatchLogsConfig(input.cloudWatchLogs, context),
3162
- })), (input.s3Logs !== undefined &&
3163
- input.s3Logs !== null && { s3Logs: serializeAws_json1_1S3LogsConfig(input.s3Logs, context) }));
3173
+ })), (input.s3Logs != null && { s3Logs: serializeAws_json1_1S3LogsConfig(input.s3Logs, context) }));
3164
3174
  };
3165
3175
  var serializeAws_json1_1ProjectArtifacts = function (input, context) {
3166
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifactIdentifier !== undefined &&
3167
- input.artifactIdentifier !== null && { artifactIdentifier: input.artifactIdentifier })), (input.bucketOwnerAccess !== undefined &&
3168
- input.bucketOwnerAccess !== null && { bucketOwnerAccess: input.bucketOwnerAccess })), (input.encryptionDisabled !== undefined &&
3169
- input.encryptionDisabled !== null && { encryptionDisabled: input.encryptionDisabled })), (input.location !== undefined && input.location !== null && { location: input.location })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.namespaceType !== undefined && input.namespaceType !== null && { namespaceType: input.namespaceType })), (input.overrideArtifactName !== undefined &&
3170
- input.overrideArtifactName !== null && { overrideArtifactName: input.overrideArtifactName })), (input.packaging !== undefined && input.packaging !== null && { packaging: input.packaging })), (input.path !== undefined && input.path !== null && { path: input.path })), (input.type !== undefined && input.type !== null && { type: input.type }));
3176
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifactIdentifier != null && { artifactIdentifier: input.artifactIdentifier })), (input.bucketOwnerAccess != null && { bucketOwnerAccess: input.bucketOwnerAccess })), (input.encryptionDisabled != null && { encryptionDisabled: input.encryptionDisabled })), (input.location != null && { location: input.location })), (input.name != null && { name: input.name })), (input.namespaceType != null && { namespaceType: input.namespaceType })), (input.overrideArtifactName != null && { overrideArtifactName: input.overrideArtifactName })), (input.packaging != null && { packaging: input.packaging })), (input.path != null && { path: input.path })), (input.type != null && { type: input.type }));
3171
3177
  };
3172
3178
  var serializeAws_json1_1ProjectArtifactsList = function (input, context) {
3173
3179
  return input
@@ -3180,16 +3186,12 @@ var serializeAws_json1_1ProjectArtifactsList = function (input, context) {
3180
3186
  });
3181
3187
  };
3182
3188
  var serializeAws_json1_1ProjectBuildBatchConfig = function (input, context) {
3183
- return __assign(__assign(__assign(__assign(__assign({}, (input.batchReportMode !== undefined &&
3184
- input.batchReportMode !== null && { batchReportMode: input.batchReportMode })), (input.combineArtifacts !== undefined &&
3185
- input.combineArtifacts !== null && { combineArtifacts: input.combineArtifacts })), (input.restrictions !== undefined &&
3186
- input.restrictions !== null && {
3189
+ return __assign(__assign(__assign(__assign(__assign({}, (input.batchReportMode != null && { batchReportMode: input.batchReportMode })), (input.combineArtifacts != null && { combineArtifacts: input.combineArtifacts })), (input.restrictions != null && {
3187
3190
  restrictions: serializeAws_json1_1BatchRestrictions(input.restrictions, context),
3188
- })), (input.serviceRole !== undefined && input.serviceRole !== null && { serviceRole: input.serviceRole })), (input.timeoutInMins !== undefined && input.timeoutInMins !== null && { timeoutInMins: input.timeoutInMins }));
3191
+ })), (input.serviceRole != null && { serviceRole: input.serviceRole })), (input.timeoutInMins != null && { timeoutInMins: input.timeoutInMins }));
3189
3192
  };
3190
3193
  var serializeAws_json1_1ProjectCache = function (input, context) {
3191
- return __assign(__assign(__assign({}, (input.location !== undefined && input.location !== null && { location: input.location })), (input.modes !== undefined &&
3192
- input.modes !== null && { modes: serializeAws_json1_1ProjectCacheModes(input.modes, context) })), (input.type !== undefined && input.type !== null && { type: input.type }));
3194
+ return __assign(__assign(__assign({}, (input.location != null && { location: input.location })), (input.modes != null && { modes: serializeAws_json1_1ProjectCacheModes(input.modes, context) })), (input.type != null && { type: input.type }));
3193
3195
  };
3194
3196
  var serializeAws_json1_1ProjectCacheModes = function (input, context) {
3195
3197
  return input
@@ -3202,18 +3204,14 @@ var serializeAws_json1_1ProjectCacheModes = function (input, context) {
3202
3204
  });
3203
3205
  };
3204
3206
  var serializeAws_json1_1ProjectEnvironment = function (input, context) {
3205
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.certificate !== undefined && input.certificate !== null && { certificate: input.certificate })), (input.computeType !== undefined && input.computeType !== null && { computeType: input.computeType })), (input.environmentVariables !== undefined &&
3206
- input.environmentVariables !== null && {
3207
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.certificate != null && { certificate: input.certificate })), (input.computeType != null && { computeType: input.computeType })), (input.environmentVariables != null && {
3207
3208
  environmentVariables: serializeAws_json1_1EnvironmentVariables(input.environmentVariables, context),
3208
- })), (input.image !== undefined && input.image !== null && { image: input.image })), (input.imagePullCredentialsType !== undefined &&
3209
- input.imagePullCredentialsType !== null && { imagePullCredentialsType: input.imagePullCredentialsType })), (input.privilegedMode !== undefined &&
3210
- input.privilegedMode !== null && { privilegedMode: input.privilegedMode })), (input.registryCredential !== undefined &&
3211
- input.registryCredential !== null && {
3209
+ })), (input.image != null && { image: input.image })), (input.imagePullCredentialsType != null && { imagePullCredentialsType: input.imagePullCredentialsType })), (input.privilegedMode != null && { privilegedMode: input.privilegedMode })), (input.registryCredential != null && {
3212
3210
  registryCredential: serializeAws_json1_1RegistryCredential(input.registryCredential, context),
3213
- })), (input.type !== undefined && input.type !== null && { type: input.type }));
3211
+ })), (input.type != null && { type: input.type }));
3214
3212
  };
3215
3213
  var serializeAws_json1_1ProjectFileSystemLocation = function (input, context) {
3216
- return __assign(__assign(__assign(__assign(__assign({}, (input.identifier !== undefined && input.identifier !== null && { identifier: input.identifier })), (input.location !== undefined && input.location !== null && { location: input.location })), (input.mountOptions !== undefined && input.mountOptions !== null && { mountOptions: input.mountOptions })), (input.mountPoint !== undefined && input.mountPoint !== null && { mountPoint: input.mountPoint })), (input.type !== undefined && input.type !== null && { type: input.type }));
3214
+ return __assign(__assign(__assign(__assign(__assign({}, (input.identifier != null && { identifier: input.identifier })), (input.location != null && { location: input.location })), (input.mountOptions != null && { mountOptions: input.mountOptions })), (input.mountPoint != null && { mountPoint: input.mountPoint })), (input.type != null && { type: input.type }));
3217
3215
  };
3218
3216
  var serializeAws_json1_1ProjectFileSystemLocations = function (input, context) {
3219
3217
  return input
@@ -3246,16 +3244,11 @@ var serializeAws_json1_1ProjectSecondarySourceVersions = function (input, contex
3246
3244
  });
3247
3245
  };
3248
3246
  var serializeAws_json1_1ProjectSource = function (input, context) {
3249
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.auth !== undefined &&
3250
- input.auth !== null && { auth: serializeAws_json1_1SourceAuth(input.auth, context) })), (input.buildStatusConfig !== undefined &&
3251
- input.buildStatusConfig !== null && {
3247
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.auth != null && { auth: serializeAws_json1_1SourceAuth(input.auth, context) })), (input.buildStatusConfig != null && {
3252
3248
  buildStatusConfig: serializeAws_json1_1BuildStatusConfig(input.buildStatusConfig, context),
3253
- })), (input.buildspec !== undefined && input.buildspec !== null && { buildspec: input.buildspec })), (input.gitCloneDepth !== undefined && input.gitCloneDepth !== null && { gitCloneDepth: input.gitCloneDepth })), (input.gitSubmodulesConfig !== undefined &&
3254
- input.gitSubmodulesConfig !== null && {
3249
+ })), (input.buildspec != null && { buildspec: input.buildspec })), (input.gitCloneDepth != null && { gitCloneDepth: input.gitCloneDepth })), (input.gitSubmodulesConfig != null && {
3255
3250
  gitSubmodulesConfig: serializeAws_json1_1GitSubmodulesConfig(input.gitSubmodulesConfig, context),
3256
- })), (input.insecureSsl !== undefined && input.insecureSsl !== null && { insecureSsl: input.insecureSsl })), (input.location !== undefined && input.location !== null && { location: input.location })), (input.reportBuildStatus !== undefined &&
3257
- input.reportBuildStatus !== null && { reportBuildStatus: input.reportBuildStatus })), (input.sourceIdentifier !== undefined &&
3258
- input.sourceIdentifier !== null && { sourceIdentifier: input.sourceIdentifier })), (input.type !== undefined && input.type !== null && { type: input.type }));
3251
+ })), (input.insecureSsl != null && { insecureSsl: input.insecureSsl })), (input.location != null && { location: input.location })), (input.reportBuildStatus != null && { reportBuildStatus: input.reportBuildStatus })), (input.sourceIdentifier != null && { sourceIdentifier: input.sourceIdentifier })), (input.type != null && { type: input.type }));
3259
3252
  };
3260
3253
  var serializeAws_json1_1ProjectSources = function (input, context) {
3261
3254
  return input
@@ -3268,15 +3261,13 @@ var serializeAws_json1_1ProjectSources = function (input, context) {
3268
3261
  });
3269
3262
  };
3270
3263
  var serializeAws_json1_1ProjectSourceVersion = function (input, context) {
3271
- return __assign(__assign({}, (input.sourceIdentifier !== undefined &&
3272
- input.sourceIdentifier !== null && { sourceIdentifier: input.sourceIdentifier })), (input.sourceVersion !== undefined && input.sourceVersion !== null && { sourceVersion: input.sourceVersion }));
3264
+ return __assign(__assign({}, (input.sourceIdentifier != null && { sourceIdentifier: input.sourceIdentifier })), (input.sourceVersion != null && { sourceVersion: input.sourceVersion }));
3273
3265
  };
3274
3266
  var serializeAws_json1_1PutResourcePolicyInput = function (input, context) {
3275
- return __assign(__assign({}, (input.policy !== undefined && input.policy !== null && { policy: input.policy })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
3267
+ return __assign(__assign({}, (input.policy != null && { policy: input.policy })), (input.resourceArn != null && { resourceArn: input.resourceArn }));
3276
3268
  };
3277
3269
  var serializeAws_json1_1RegistryCredential = function (input, context) {
3278
- return __assign(__assign({}, (input.credential !== undefined && input.credential !== null && { credential: input.credential })), (input.credentialProvider !== undefined &&
3279
- input.credentialProvider !== null && { credentialProvider: input.credentialProvider }));
3270
+ return __assign(__assign({}, (input.credential != null && { credential: input.credential })), (input.credentialProvider != null && { credentialProvider: input.credentialProvider }));
3280
3271
  };
3281
3272
  var serializeAws_json1_1ReportArns = function (input, context) {
3282
3273
  return input
@@ -3289,14 +3280,12 @@ var serializeAws_json1_1ReportArns = function (input, context) {
3289
3280
  });
3290
3281
  };
3291
3282
  var serializeAws_json1_1ReportExportConfig = function (input, context) {
3292
- return __assign(__assign({}, (input.exportConfigType !== undefined &&
3293
- input.exportConfigType !== null && { exportConfigType: input.exportConfigType })), (input.s3Destination !== undefined &&
3294
- input.s3Destination !== null && {
3283
+ return __assign(__assign({}, (input.exportConfigType != null && { exportConfigType: input.exportConfigType })), (input.s3Destination != null && {
3295
3284
  s3Destination: serializeAws_json1_1S3ReportExportConfig(input.s3Destination, context),
3296
3285
  }));
3297
3286
  };
3298
3287
  var serializeAws_json1_1ReportFilter = function (input, context) {
3299
- return __assign({}, (input.status !== undefined && input.status !== null && { status: input.status }));
3288
+ return __assign({}, (input.status != null && { status: input.status }));
3300
3289
  };
3301
3290
  var serializeAws_json1_1ReportGroupArns = function (input, context) {
3302
3291
  return input
@@ -3309,21 +3298,16 @@ var serializeAws_json1_1ReportGroupArns = function (input, context) {
3309
3298
  });
3310
3299
  };
3311
3300
  var serializeAws_json1_1RetryBuildBatchInput = function (input, context) {
3312
- return __assign(__assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.idempotencyToken !== undefined &&
3313
- input.idempotencyToken !== null && { idempotencyToken: input.idempotencyToken })), (input.retryType !== undefined && input.retryType !== null && { retryType: input.retryType }));
3301
+ return __assign(__assign(__assign({}, (input.id != null && { id: input.id })), (input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken })), (input.retryType != null && { retryType: input.retryType }));
3314
3302
  };
3315
3303
  var serializeAws_json1_1RetryBuildInput = function (input, context) {
3316
- return __assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.idempotencyToken !== undefined &&
3317
- input.idempotencyToken !== null && { idempotencyToken: input.idempotencyToken }));
3304
+ return __assign(__assign({}, (input.id != null && { id: input.id })), (input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken }));
3318
3305
  };
3319
3306
  var serializeAws_json1_1S3LogsConfig = function (input, context) {
3320
- return __assign(__assign(__assign(__assign({}, (input.bucketOwnerAccess !== undefined &&
3321
- input.bucketOwnerAccess !== null && { bucketOwnerAccess: input.bucketOwnerAccess })), (input.encryptionDisabled !== undefined &&
3322
- input.encryptionDisabled !== null && { encryptionDisabled: input.encryptionDisabled })), (input.location !== undefined && input.location !== null && { location: input.location })), (input.status !== undefined && input.status !== null && { status: input.status }));
3307
+ return __assign(__assign(__assign(__assign({}, (input.bucketOwnerAccess != null && { bucketOwnerAccess: input.bucketOwnerAccess })), (input.encryptionDisabled != null && { encryptionDisabled: input.encryptionDisabled })), (input.location != null && { location: input.location })), (input.status != null && { status: input.status }));
3323
3308
  };
3324
3309
  var serializeAws_json1_1S3ReportExportConfig = function (input, context) {
3325
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket })), (input.bucketOwner !== undefined && input.bucketOwner !== null && { bucketOwner: input.bucketOwner })), (input.encryptionDisabled !== undefined &&
3326
- input.encryptionDisabled !== null && { encryptionDisabled: input.encryptionDisabled })), (input.encryptionKey !== undefined && input.encryptionKey !== null && { encryptionKey: input.encryptionKey })), (input.packaging !== undefined && input.packaging !== null && { packaging: input.packaging })), (input.path !== undefined && input.path !== null && { path: input.path }));
3310
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.bucketOwner != null && { bucketOwner: input.bucketOwner })), (input.encryptionDisabled != null && { encryptionDisabled: input.encryptionDisabled })), (input.encryptionKey != null && { encryptionKey: input.encryptionKey })), (input.packaging != null && { packaging: input.packaging })), (input.path != null && { path: input.path }));
3327
3311
  };
3328
3312
  var serializeAws_json1_1SecurityGroupIds = function (input, context) {
3329
3313
  return input
@@ -3336,131 +3320,75 @@ var serializeAws_json1_1SecurityGroupIds = function (input, context) {
3336
3320
  });
3337
3321
  };
3338
3322
  var serializeAws_json1_1SourceAuth = function (input, context) {
3339
- return __assign(__assign({}, (input.resource !== undefined && input.resource !== null && { resource: input.resource })), (input.type !== undefined && input.type !== null && { type: input.type }));
3323
+ return __assign(__assign({}, (input.resource != null && { resource: input.resource })), (input.type != null && { type: input.type }));
3340
3324
  };
3341
3325
  var serializeAws_json1_1StartBuildBatchInput = function (input, context) {
3342
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifactsOverride !== undefined &&
3343
- input.artifactsOverride !== null && {
3326
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifactsOverride != null && {
3344
3327
  artifactsOverride: serializeAws_json1_1ProjectArtifacts(input.artifactsOverride, context),
3345
- })), (input.buildBatchConfigOverride !== undefined &&
3346
- input.buildBatchConfigOverride !== null && {
3328
+ })), (input.buildBatchConfigOverride != null && {
3347
3329
  buildBatchConfigOverride: serializeAws_json1_1ProjectBuildBatchConfig(input.buildBatchConfigOverride, context),
3348
- })), (input.buildTimeoutInMinutesOverride !== undefined &&
3349
- input.buildTimeoutInMinutesOverride !== null && {
3330
+ })), (input.buildTimeoutInMinutesOverride != null && {
3350
3331
  buildTimeoutInMinutesOverride: input.buildTimeoutInMinutesOverride,
3351
- })), (input.buildspecOverride !== undefined &&
3352
- input.buildspecOverride !== null && { buildspecOverride: input.buildspecOverride })), (input.cacheOverride !== undefined &&
3353
- input.cacheOverride !== null && {
3332
+ })), (input.buildspecOverride != null && { buildspecOverride: input.buildspecOverride })), (input.cacheOverride != null && {
3354
3333
  cacheOverride: serializeAws_json1_1ProjectCache(input.cacheOverride, context),
3355
- })), (input.certificateOverride !== undefined &&
3356
- input.certificateOverride !== null && { certificateOverride: input.certificateOverride })), (input.computeTypeOverride !== undefined &&
3357
- input.computeTypeOverride !== null && { computeTypeOverride: input.computeTypeOverride })), (input.debugSessionEnabled !== undefined &&
3358
- input.debugSessionEnabled !== null && { debugSessionEnabled: input.debugSessionEnabled })), (input.encryptionKeyOverride !== undefined &&
3359
- input.encryptionKeyOverride !== null && { encryptionKeyOverride: input.encryptionKeyOverride })), (input.environmentTypeOverride !== undefined &&
3360
- input.environmentTypeOverride !== null && { environmentTypeOverride: input.environmentTypeOverride })), (input.environmentVariablesOverride !== undefined &&
3361
- input.environmentVariablesOverride !== null && {
3334
+ })), (input.certificateOverride != null && { certificateOverride: input.certificateOverride })), (input.computeTypeOverride != null && { computeTypeOverride: input.computeTypeOverride })), (input.debugSessionEnabled != null && { debugSessionEnabled: input.debugSessionEnabled })), (input.encryptionKeyOverride != null && { encryptionKeyOverride: input.encryptionKeyOverride })), (input.environmentTypeOverride != null && { environmentTypeOverride: input.environmentTypeOverride })), (input.environmentVariablesOverride != null && {
3362
3335
  environmentVariablesOverride: serializeAws_json1_1EnvironmentVariables(input.environmentVariablesOverride, context),
3363
- })), (input.gitCloneDepthOverride !== undefined &&
3364
- input.gitCloneDepthOverride !== null && { gitCloneDepthOverride: input.gitCloneDepthOverride })), (input.gitSubmodulesConfigOverride !== undefined &&
3365
- input.gitSubmodulesConfigOverride !== null && {
3336
+ })), (input.gitCloneDepthOverride != null && { gitCloneDepthOverride: input.gitCloneDepthOverride })), (input.gitSubmodulesConfigOverride != null && {
3366
3337
  gitSubmodulesConfigOverride: serializeAws_json1_1GitSubmodulesConfig(input.gitSubmodulesConfigOverride, context),
3367
- })), (input.idempotencyToken !== undefined &&
3368
- input.idempotencyToken !== null && { idempotencyToken: input.idempotencyToken })), (input.imageOverride !== undefined && input.imageOverride !== null && { imageOverride: input.imageOverride })), (input.imagePullCredentialsTypeOverride !== undefined &&
3369
- input.imagePullCredentialsTypeOverride !== null && {
3338
+ })), (input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken })), (input.imageOverride != null && { imageOverride: input.imageOverride })), (input.imagePullCredentialsTypeOverride != null && {
3370
3339
  imagePullCredentialsTypeOverride: input.imagePullCredentialsTypeOverride,
3371
- })), (input.insecureSslOverride !== undefined &&
3372
- input.insecureSslOverride !== null && { insecureSslOverride: input.insecureSslOverride })), (input.logsConfigOverride !== undefined &&
3373
- input.logsConfigOverride !== null && {
3340
+ })), (input.insecureSslOverride != null && { insecureSslOverride: input.insecureSslOverride })), (input.logsConfigOverride != null && {
3374
3341
  logsConfigOverride: serializeAws_json1_1LogsConfig(input.logsConfigOverride, context),
3375
- })), (input.privilegedModeOverride !== undefined &&
3376
- input.privilegedModeOverride !== null && { privilegedModeOverride: input.privilegedModeOverride })), (input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName })), (input.queuedTimeoutInMinutesOverride !== undefined &&
3377
- input.queuedTimeoutInMinutesOverride !== null && {
3342
+ })), (input.privilegedModeOverride != null && { privilegedModeOverride: input.privilegedModeOverride })), (input.projectName != null && { projectName: input.projectName })), (input.queuedTimeoutInMinutesOverride != null && {
3378
3343
  queuedTimeoutInMinutesOverride: input.queuedTimeoutInMinutesOverride,
3379
- })), (input.registryCredentialOverride !== undefined &&
3380
- input.registryCredentialOverride !== null && {
3344
+ })), (input.registryCredentialOverride != null && {
3381
3345
  registryCredentialOverride: serializeAws_json1_1RegistryCredential(input.registryCredentialOverride, context),
3382
- })), (input.reportBuildBatchStatusOverride !== undefined &&
3383
- input.reportBuildBatchStatusOverride !== null && {
3346
+ })), (input.reportBuildBatchStatusOverride != null && {
3384
3347
  reportBuildBatchStatusOverride: input.reportBuildBatchStatusOverride,
3385
- })), (input.secondaryArtifactsOverride !== undefined &&
3386
- input.secondaryArtifactsOverride !== null && {
3348
+ })), (input.secondaryArtifactsOverride != null && {
3387
3349
  secondaryArtifactsOverride: serializeAws_json1_1ProjectArtifactsList(input.secondaryArtifactsOverride, context),
3388
- })), (input.secondarySourcesOverride !== undefined &&
3389
- input.secondarySourcesOverride !== null && {
3350
+ })), (input.secondarySourcesOverride != null && {
3390
3351
  secondarySourcesOverride: serializeAws_json1_1ProjectSources(input.secondarySourcesOverride, context),
3391
- })), (input.secondarySourcesVersionOverride !== undefined &&
3392
- input.secondarySourcesVersionOverride !== null && {
3352
+ })), (input.secondarySourcesVersionOverride != null && {
3393
3353
  secondarySourcesVersionOverride: serializeAws_json1_1ProjectSecondarySourceVersions(input.secondarySourcesVersionOverride, context),
3394
- })), (input.serviceRoleOverride !== undefined &&
3395
- input.serviceRoleOverride !== null && { serviceRoleOverride: input.serviceRoleOverride })), (input.sourceAuthOverride !== undefined &&
3396
- input.sourceAuthOverride !== null && {
3354
+ })), (input.serviceRoleOverride != null && { serviceRoleOverride: input.serviceRoleOverride })), (input.sourceAuthOverride != null && {
3397
3355
  sourceAuthOverride: serializeAws_json1_1SourceAuth(input.sourceAuthOverride, context),
3398
- })), (input.sourceLocationOverride !== undefined &&
3399
- input.sourceLocationOverride !== null && { sourceLocationOverride: input.sourceLocationOverride })), (input.sourceTypeOverride !== undefined &&
3400
- input.sourceTypeOverride !== null && { sourceTypeOverride: input.sourceTypeOverride })), (input.sourceVersion !== undefined && input.sourceVersion !== null && { sourceVersion: input.sourceVersion }));
3356
+ })), (input.sourceLocationOverride != null && { sourceLocationOverride: input.sourceLocationOverride })), (input.sourceTypeOverride != null && { sourceTypeOverride: input.sourceTypeOverride })), (input.sourceVersion != null && { sourceVersion: input.sourceVersion }));
3401
3357
  };
3402
3358
  var serializeAws_json1_1StartBuildInput = function (input, context) {
3403
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifactsOverride !== undefined &&
3404
- input.artifactsOverride !== null && {
3359
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifactsOverride != null && {
3405
3360
  artifactsOverride: serializeAws_json1_1ProjectArtifacts(input.artifactsOverride, context),
3406
- })), (input.buildStatusConfigOverride !== undefined &&
3407
- input.buildStatusConfigOverride !== null && {
3361
+ })), (input.buildStatusConfigOverride != null && {
3408
3362
  buildStatusConfigOverride: serializeAws_json1_1BuildStatusConfig(input.buildStatusConfigOverride, context),
3409
- })), (input.buildspecOverride !== undefined &&
3410
- input.buildspecOverride !== null && { buildspecOverride: input.buildspecOverride })), (input.cacheOverride !== undefined &&
3411
- input.cacheOverride !== null && {
3363
+ })), (input.buildspecOverride != null && { buildspecOverride: input.buildspecOverride })), (input.cacheOverride != null && {
3412
3364
  cacheOverride: serializeAws_json1_1ProjectCache(input.cacheOverride, context),
3413
- })), (input.certificateOverride !== undefined &&
3414
- input.certificateOverride !== null && { certificateOverride: input.certificateOverride })), (input.computeTypeOverride !== undefined &&
3415
- input.computeTypeOverride !== null && { computeTypeOverride: input.computeTypeOverride })), (input.debugSessionEnabled !== undefined &&
3416
- input.debugSessionEnabled !== null && { debugSessionEnabled: input.debugSessionEnabled })), (input.encryptionKeyOverride !== undefined &&
3417
- input.encryptionKeyOverride !== null && { encryptionKeyOverride: input.encryptionKeyOverride })), (input.environmentTypeOverride !== undefined &&
3418
- input.environmentTypeOverride !== null && { environmentTypeOverride: input.environmentTypeOverride })), (input.environmentVariablesOverride !== undefined &&
3419
- input.environmentVariablesOverride !== null && {
3365
+ })), (input.certificateOverride != null && { certificateOverride: input.certificateOverride })), (input.computeTypeOverride != null && { computeTypeOverride: input.computeTypeOverride })), (input.debugSessionEnabled != null && { debugSessionEnabled: input.debugSessionEnabled })), (input.encryptionKeyOverride != null && { encryptionKeyOverride: input.encryptionKeyOverride })), (input.environmentTypeOverride != null && { environmentTypeOverride: input.environmentTypeOverride })), (input.environmentVariablesOverride != null && {
3420
3366
  environmentVariablesOverride: serializeAws_json1_1EnvironmentVariables(input.environmentVariablesOverride, context),
3421
- })), (input.gitCloneDepthOverride !== undefined &&
3422
- input.gitCloneDepthOverride !== null && { gitCloneDepthOverride: input.gitCloneDepthOverride })), (input.gitSubmodulesConfigOverride !== undefined &&
3423
- input.gitSubmodulesConfigOverride !== null && {
3367
+ })), (input.gitCloneDepthOverride != null && { gitCloneDepthOverride: input.gitCloneDepthOverride })), (input.gitSubmodulesConfigOverride != null && {
3424
3368
  gitSubmodulesConfigOverride: serializeAws_json1_1GitSubmodulesConfig(input.gitSubmodulesConfigOverride, context),
3425
- })), (input.idempotencyToken !== undefined &&
3426
- input.idempotencyToken !== null && { idempotencyToken: input.idempotencyToken })), (input.imageOverride !== undefined && input.imageOverride !== null && { imageOverride: input.imageOverride })), (input.imagePullCredentialsTypeOverride !== undefined &&
3427
- input.imagePullCredentialsTypeOverride !== null && {
3369
+ })), (input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken })), (input.imageOverride != null && { imageOverride: input.imageOverride })), (input.imagePullCredentialsTypeOverride != null && {
3428
3370
  imagePullCredentialsTypeOverride: input.imagePullCredentialsTypeOverride,
3429
- })), (input.insecureSslOverride !== undefined &&
3430
- input.insecureSslOverride !== null && { insecureSslOverride: input.insecureSslOverride })), (input.logsConfigOverride !== undefined &&
3431
- input.logsConfigOverride !== null && {
3371
+ })), (input.insecureSslOverride != null && { insecureSslOverride: input.insecureSslOverride })), (input.logsConfigOverride != null && {
3432
3372
  logsConfigOverride: serializeAws_json1_1LogsConfig(input.logsConfigOverride, context),
3433
- })), (input.privilegedModeOverride !== undefined &&
3434
- input.privilegedModeOverride !== null && { privilegedModeOverride: input.privilegedModeOverride })), (input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName })), (input.queuedTimeoutInMinutesOverride !== undefined &&
3435
- input.queuedTimeoutInMinutesOverride !== null && {
3373
+ })), (input.privilegedModeOverride != null && { privilegedModeOverride: input.privilegedModeOverride })), (input.projectName != null && { projectName: input.projectName })), (input.queuedTimeoutInMinutesOverride != null && {
3436
3374
  queuedTimeoutInMinutesOverride: input.queuedTimeoutInMinutesOverride,
3437
- })), (input.registryCredentialOverride !== undefined &&
3438
- input.registryCredentialOverride !== null && {
3375
+ })), (input.registryCredentialOverride != null && {
3439
3376
  registryCredentialOverride: serializeAws_json1_1RegistryCredential(input.registryCredentialOverride, context),
3440
- })), (input.reportBuildStatusOverride !== undefined &&
3441
- input.reportBuildStatusOverride !== null && { reportBuildStatusOverride: input.reportBuildStatusOverride })), (input.secondaryArtifactsOverride !== undefined &&
3442
- input.secondaryArtifactsOverride !== null && {
3377
+ })), (input.reportBuildStatusOverride != null && { reportBuildStatusOverride: input.reportBuildStatusOverride })), (input.secondaryArtifactsOverride != null && {
3443
3378
  secondaryArtifactsOverride: serializeAws_json1_1ProjectArtifactsList(input.secondaryArtifactsOverride, context),
3444
- })), (input.secondarySourcesOverride !== undefined &&
3445
- input.secondarySourcesOverride !== null && {
3379
+ })), (input.secondarySourcesOverride != null && {
3446
3380
  secondarySourcesOverride: serializeAws_json1_1ProjectSources(input.secondarySourcesOverride, context),
3447
- })), (input.secondarySourcesVersionOverride !== undefined &&
3448
- input.secondarySourcesVersionOverride !== null && {
3381
+ })), (input.secondarySourcesVersionOverride != null && {
3449
3382
  secondarySourcesVersionOverride: serializeAws_json1_1ProjectSecondarySourceVersions(input.secondarySourcesVersionOverride, context),
3450
- })), (input.serviceRoleOverride !== undefined &&
3451
- input.serviceRoleOverride !== null && { serviceRoleOverride: input.serviceRoleOverride })), (input.sourceAuthOverride !== undefined &&
3452
- input.sourceAuthOverride !== null && {
3383
+ })), (input.serviceRoleOverride != null && { serviceRoleOverride: input.serviceRoleOverride })), (input.sourceAuthOverride != null && {
3453
3384
  sourceAuthOverride: serializeAws_json1_1SourceAuth(input.sourceAuthOverride, context),
3454
- })), (input.sourceLocationOverride !== undefined &&
3455
- input.sourceLocationOverride !== null && { sourceLocationOverride: input.sourceLocationOverride })), (input.sourceTypeOverride !== undefined &&
3456
- input.sourceTypeOverride !== null && { sourceTypeOverride: input.sourceTypeOverride })), (input.sourceVersion !== undefined && input.sourceVersion !== null && { sourceVersion: input.sourceVersion })), (input.timeoutInMinutesOverride !== undefined &&
3457
- input.timeoutInMinutesOverride !== null && { timeoutInMinutesOverride: input.timeoutInMinutesOverride }));
3385
+ })), (input.sourceLocationOverride != null && { sourceLocationOverride: input.sourceLocationOverride })), (input.sourceTypeOverride != null && { sourceTypeOverride: input.sourceTypeOverride })), (input.sourceVersion != null && { sourceVersion: input.sourceVersion })), (input.timeoutInMinutesOverride != null && { timeoutInMinutesOverride: input.timeoutInMinutesOverride }));
3458
3386
  };
3459
3387
  var serializeAws_json1_1StopBuildBatchInput = function (input, context) {
3460
- return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
3388
+ return __assign({}, (input.id != null && { id: input.id }));
3461
3389
  };
3462
3390
  var serializeAws_json1_1StopBuildInput = function (input, context) {
3463
- return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
3391
+ return __assign({}, (input.id != null && { id: input.id }));
3464
3392
  };
3465
3393
  var serializeAws_json1_1Subnets = function (input, context) {
3466
3394
  return input
@@ -3473,7 +3401,7 @@ var serializeAws_json1_1Subnets = function (input, context) {
3473
3401
  });
3474
3402
  };
3475
3403
  var serializeAws_json1_1Tag = function (input, context) {
3476
- return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
3404
+ return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
3477
3405
  };
3478
3406
  var serializeAws_json1_1TagList = function (input, context) {
3479
3407
  return input
@@ -3486,62 +3414,41 @@ var serializeAws_json1_1TagList = function (input, context) {
3486
3414
  });
3487
3415
  };
3488
3416
  var serializeAws_json1_1TestCaseFilter = function (input, context) {
3489
- return __assign(__assign({}, (input.keyword !== undefined && input.keyword !== null && { keyword: input.keyword })), (input.status !== undefined && input.status !== null && { status: input.status }));
3417
+ return __assign(__assign({}, (input.keyword != null && { keyword: input.keyword })), (input.status != null && { status: input.status }));
3490
3418
  };
3491
3419
  var serializeAws_json1_1UpdateProjectInput = function (input, context) {
3492
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifacts !== undefined &&
3493
- input.artifacts !== null && { artifacts: serializeAws_json1_1ProjectArtifacts(input.artifacts, context) })), (input.badgeEnabled !== undefined && input.badgeEnabled !== null && { badgeEnabled: input.badgeEnabled })), (input.buildBatchConfig !== undefined &&
3494
- input.buildBatchConfig !== null && {
3420
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifacts != null && { artifacts: serializeAws_json1_1ProjectArtifacts(input.artifacts, context) })), (input.badgeEnabled != null && { badgeEnabled: input.badgeEnabled })), (input.buildBatchConfig != null && {
3495
3421
  buildBatchConfig: serializeAws_json1_1ProjectBuildBatchConfig(input.buildBatchConfig, context),
3496
- })), (input.cache !== undefined &&
3497
- input.cache !== null && { cache: serializeAws_json1_1ProjectCache(input.cache, context) })), (input.concurrentBuildLimit !== undefined &&
3498
- input.concurrentBuildLimit !== null && { concurrentBuildLimit: input.concurrentBuildLimit })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.encryptionKey !== undefined && input.encryptionKey !== null && { encryptionKey: input.encryptionKey })), (input.environment !== undefined &&
3499
- input.environment !== null && {
3422
+ })), (input.cache != null && { cache: serializeAws_json1_1ProjectCache(input.cache, context) })), (input.concurrentBuildLimit != null && { concurrentBuildLimit: input.concurrentBuildLimit })), (input.description != null && { description: input.description })), (input.encryptionKey != null && { encryptionKey: input.encryptionKey })), (input.environment != null && {
3500
3423
  environment: serializeAws_json1_1ProjectEnvironment(input.environment, context),
3501
- })), (input.fileSystemLocations !== undefined &&
3502
- input.fileSystemLocations !== null && {
3424
+ })), (input.fileSystemLocations != null && {
3503
3425
  fileSystemLocations: serializeAws_json1_1ProjectFileSystemLocations(input.fileSystemLocations, context),
3504
- })), (input.logsConfig !== undefined &&
3505
- input.logsConfig !== null && { logsConfig: serializeAws_json1_1LogsConfig(input.logsConfig, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.queuedTimeoutInMinutes !== undefined &&
3506
- input.queuedTimeoutInMinutes !== null && { queuedTimeoutInMinutes: input.queuedTimeoutInMinutes })), (input.secondaryArtifacts !== undefined &&
3507
- input.secondaryArtifacts !== null && {
3426
+ })), (input.logsConfig != null && { logsConfig: serializeAws_json1_1LogsConfig(input.logsConfig, context) })), (input.name != null && { name: input.name })), (input.queuedTimeoutInMinutes != null && { queuedTimeoutInMinutes: input.queuedTimeoutInMinutes })), (input.secondaryArtifacts != null && {
3508
3427
  secondaryArtifacts: serializeAws_json1_1ProjectArtifactsList(input.secondaryArtifacts, context),
3509
- })), (input.secondarySourceVersions !== undefined &&
3510
- input.secondarySourceVersions !== null && {
3428
+ })), (input.secondarySourceVersions != null && {
3511
3429
  secondarySourceVersions: serializeAws_json1_1ProjectSecondarySourceVersions(input.secondarySourceVersions, context),
3512
- })), (input.secondarySources !== undefined &&
3513
- input.secondarySources !== null && {
3430
+ })), (input.secondarySources != null && {
3514
3431
  secondarySources: serializeAws_json1_1ProjectSources(input.secondarySources, context),
3515
- })), (input.serviceRole !== undefined && input.serviceRole !== null && { serviceRole: input.serviceRole })), (input.source !== undefined &&
3516
- input.source !== null && { source: serializeAws_json1_1ProjectSource(input.source, context) })), (input.sourceVersion !== undefined && input.sourceVersion !== null && { sourceVersion: input.sourceVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.timeoutInMinutes !== undefined &&
3517
- input.timeoutInMinutes !== null && { timeoutInMinutes: input.timeoutInMinutes })), (input.vpcConfig !== undefined &&
3518
- input.vpcConfig !== null && { vpcConfig: serializeAws_json1_1VpcConfig(input.vpcConfig, context) }));
3432
+ })), (input.serviceRole != null && { serviceRole: input.serviceRole })), (input.source != null && { source: serializeAws_json1_1ProjectSource(input.source, context) })), (input.sourceVersion != null && { sourceVersion: input.sourceVersion })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.timeoutInMinutes != null && { timeoutInMinutes: input.timeoutInMinutes })), (input.vpcConfig != null && { vpcConfig: serializeAws_json1_1VpcConfig(input.vpcConfig, context) }));
3519
3433
  };
3520
3434
  var serializeAws_json1_1UpdateProjectVisibilityInput = function (input, context) {
3521
- return __assign(__assign(__assign({}, (input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn })), (input.projectVisibility !== undefined &&
3522
- input.projectVisibility !== null && { projectVisibility: input.projectVisibility })), (input.resourceAccessRole !== undefined &&
3523
- input.resourceAccessRole !== null && { resourceAccessRole: input.resourceAccessRole }));
3435
+ return __assign(__assign(__assign({}, (input.projectArn != null && { projectArn: input.projectArn })), (input.projectVisibility != null && { projectVisibility: input.projectVisibility })), (input.resourceAccessRole != null && { resourceAccessRole: input.resourceAccessRole }));
3524
3436
  };
3525
3437
  var serializeAws_json1_1UpdateReportGroupInput = function (input, context) {
3526
- return __assign(__assign(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.exportConfig !== undefined &&
3527
- input.exportConfig !== null && {
3438
+ return __assign(__assign(__assign({}, (input.arn != null && { arn: input.arn })), (input.exportConfig != null && {
3528
3439
  exportConfig: serializeAws_json1_1ReportExportConfig(input.exportConfig, context),
3529
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3440
+ })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3530
3441
  };
3531
3442
  var serializeAws_json1_1UpdateWebhookInput = function (input, context) {
3532
- return __assign(__assign(__assign(__assign(__assign({}, (input.branchFilter !== undefined && input.branchFilter !== null && { branchFilter: input.branchFilter })), (input.buildType !== undefined && input.buildType !== null && { buildType: input.buildType })), (input.filterGroups !== undefined &&
3533
- input.filterGroups !== null && { filterGroups: serializeAws_json1_1FilterGroups(input.filterGroups, context) })), (input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName })), (input.rotateSecret !== undefined && input.rotateSecret !== null && { rotateSecret: input.rotateSecret }));
3443
+ return __assign(__assign(__assign(__assign(__assign({}, (input.branchFilter != null && { branchFilter: input.branchFilter })), (input.buildType != null && { buildType: input.buildType })), (input.filterGroups != null && { filterGroups: serializeAws_json1_1FilterGroups(input.filterGroups, context) })), (input.projectName != null && { projectName: input.projectName })), (input.rotateSecret != null && { rotateSecret: input.rotateSecret }));
3534
3444
  };
3535
3445
  var serializeAws_json1_1VpcConfig = function (input, context) {
3536
- return __assign(__assign(__assign({}, (input.securityGroupIds !== undefined &&
3537
- input.securityGroupIds !== null && {
3446
+ return __assign(__assign(__assign({}, (input.securityGroupIds != null && {
3538
3447
  securityGroupIds: serializeAws_json1_1SecurityGroupIds(input.securityGroupIds, context),
3539
- })), (input.subnets !== undefined &&
3540
- input.subnets !== null && { subnets: serializeAws_json1_1Subnets(input.subnets, context) })), (input.vpcId !== undefined && input.vpcId !== null && { vpcId: input.vpcId }));
3448
+ })), (input.subnets != null && { subnets: serializeAws_json1_1Subnets(input.subnets, context) })), (input.vpcId != null && { vpcId: input.vpcId }));
3541
3449
  };
3542
3450
  var serializeAws_json1_1WebhookFilter = function (input, context) {
3543
- return __assign(__assign(__assign({}, (input.excludeMatchedPattern !== undefined &&
3544
- input.excludeMatchedPattern !== null && { excludeMatchedPattern: input.excludeMatchedPattern })), (input.pattern !== undefined && input.pattern !== null && { pattern: input.pattern })), (input.type !== undefined && input.type !== null && { type: input.type }));
3451
+ return __assign(__assign(__assign({}, (input.excludeMatchedPattern != null && { excludeMatchedPattern: input.excludeMatchedPattern })), (input.pattern != null && { pattern: input.pattern })), (input.type != null && { type: input.type }));
3545
3452
  };
3546
3453
  var deserializeAws_json1_1AccountLimitExceededException = function (output, context) {
3547
3454
  return {
@@ -3550,67 +3457,51 @@ var deserializeAws_json1_1AccountLimitExceededException = function (output, cont
3550
3457
  };
3551
3458
  var deserializeAws_json1_1BatchDeleteBuildsOutput = function (output, context) {
3552
3459
  return {
3553
- buildsDeleted: output.buildsDeleted !== undefined && output.buildsDeleted !== null
3554
- ? deserializeAws_json1_1BuildIds(output.buildsDeleted, context)
3555
- : undefined,
3556
- buildsNotDeleted: output.buildsNotDeleted !== undefined && output.buildsNotDeleted !== null
3460
+ buildsDeleted: output.buildsDeleted != null ? deserializeAws_json1_1BuildIds(output.buildsDeleted, context) : undefined,
3461
+ buildsNotDeleted: output.buildsNotDeleted != null
3557
3462
  ? deserializeAws_json1_1BuildsNotDeleted(output.buildsNotDeleted, context)
3558
3463
  : undefined,
3559
3464
  };
3560
3465
  };
3561
3466
  var deserializeAws_json1_1BatchGetBuildBatchesOutput = function (output, context) {
3562
3467
  return {
3563
- buildBatches: output.buildBatches !== undefined && output.buildBatches !== null
3564
- ? deserializeAws_json1_1BuildBatches(output.buildBatches, context)
3565
- : undefined,
3566
- buildBatchesNotFound: output.buildBatchesNotFound !== undefined && output.buildBatchesNotFound !== null
3468
+ buildBatches: output.buildBatches != null ? deserializeAws_json1_1BuildBatches(output.buildBatches, context) : undefined,
3469
+ buildBatchesNotFound: output.buildBatchesNotFound != null
3567
3470
  ? deserializeAws_json1_1BuildBatchIds(output.buildBatchesNotFound, context)
3568
3471
  : undefined,
3569
3472
  };
3570
3473
  };
3571
3474
  var deserializeAws_json1_1BatchGetBuildsOutput = function (output, context) {
3572
3475
  return {
3573
- builds: output.builds !== undefined && output.builds !== null
3574
- ? deserializeAws_json1_1Builds(output.builds, context)
3575
- : undefined,
3576
- buildsNotFound: output.buildsNotFound !== undefined && output.buildsNotFound !== null
3577
- ? deserializeAws_json1_1BuildIds(output.buildsNotFound, context)
3578
- : undefined,
3476
+ builds: output.builds != null ? deserializeAws_json1_1Builds(output.builds, context) : undefined,
3477
+ buildsNotFound: output.buildsNotFound != null ? deserializeAws_json1_1BuildIds(output.buildsNotFound, context) : undefined,
3579
3478
  };
3580
3479
  };
3581
3480
  var deserializeAws_json1_1BatchGetProjectsOutput = function (output, context) {
3582
3481
  return {
3583
- projects: output.projects !== undefined && output.projects !== null
3584
- ? deserializeAws_json1_1Projects(output.projects, context)
3585
- : undefined,
3586
- projectsNotFound: output.projectsNotFound !== undefined && output.projectsNotFound !== null
3482
+ projects: output.projects != null ? deserializeAws_json1_1Projects(output.projects, context) : undefined,
3483
+ projectsNotFound: output.projectsNotFound != null
3587
3484
  ? deserializeAws_json1_1ProjectNames(output.projectsNotFound, context)
3588
3485
  : undefined,
3589
3486
  };
3590
3487
  };
3591
3488
  var deserializeAws_json1_1BatchGetReportGroupsOutput = function (output, context) {
3592
3489
  return {
3593
- reportGroups: output.reportGroups !== undefined && output.reportGroups !== null
3594
- ? deserializeAws_json1_1ReportGroups(output.reportGroups, context)
3595
- : undefined,
3596
- reportGroupsNotFound: output.reportGroupsNotFound !== undefined && output.reportGroupsNotFound !== null
3490
+ reportGroups: output.reportGroups != null ? deserializeAws_json1_1ReportGroups(output.reportGroups, context) : undefined,
3491
+ reportGroupsNotFound: output.reportGroupsNotFound != null
3597
3492
  ? deserializeAws_json1_1ReportGroupArns(output.reportGroupsNotFound, context)
3598
3493
  : undefined,
3599
3494
  };
3600
3495
  };
3601
3496
  var deserializeAws_json1_1BatchGetReportsOutput = function (output, context) {
3602
3497
  return {
3603
- reports: output.reports !== undefined && output.reports !== null
3604
- ? deserializeAws_json1_1Reports(output.reports, context)
3605
- : undefined,
3606
- reportsNotFound: output.reportsNotFound !== undefined && output.reportsNotFound !== null
3607
- ? deserializeAws_json1_1ReportArns(output.reportsNotFound, context)
3608
- : undefined,
3498
+ reports: output.reports != null ? deserializeAws_json1_1Reports(output.reports, context) : undefined,
3499
+ reportsNotFound: output.reportsNotFound != null ? deserializeAws_json1_1ReportArns(output.reportsNotFound, context) : undefined,
3609
3500
  };
3610
3501
  };
3611
3502
  var deserializeAws_json1_1BatchRestrictions = function (output, context) {
3612
3503
  return {
3613
- computeTypesAllowed: output.computeTypesAllowed !== undefined && output.computeTypesAllowed !== null
3504
+ computeTypesAllowed: output.computeTypesAllowed != null
3614
3505
  ? deserializeAws_json1_1ComputeTypesAllowed(output.computeTypesAllowed, context)
3615
3506
  : undefined,
3616
3507
  maximumBuildsAllowed: __expectInt32(output.maximumBuildsAllowed),
@@ -3619,71 +3510,49 @@ var deserializeAws_json1_1BatchRestrictions = function (output, context) {
3619
3510
  var deserializeAws_json1_1Build = function (output, context) {
3620
3511
  return {
3621
3512
  arn: __expectString(output.arn),
3622
- artifacts: output.artifacts !== undefined && output.artifacts !== null
3623
- ? deserializeAws_json1_1BuildArtifacts(output.artifacts, context)
3624
- : undefined,
3513
+ artifacts: output.artifacts != null ? deserializeAws_json1_1BuildArtifacts(output.artifacts, context) : undefined,
3625
3514
  buildBatchArn: __expectString(output.buildBatchArn),
3626
3515
  buildComplete: __expectBoolean(output.buildComplete),
3627
3516
  buildNumber: __expectLong(output.buildNumber),
3628
3517
  buildStatus: __expectString(output.buildStatus),
3629
- cache: output.cache !== undefined && output.cache !== null
3630
- ? deserializeAws_json1_1ProjectCache(output.cache, context)
3631
- : undefined,
3518
+ cache: output.cache != null ? deserializeAws_json1_1ProjectCache(output.cache, context) : undefined,
3632
3519
  currentPhase: __expectString(output.currentPhase),
3633
- debugSession: output.debugSession !== undefined && output.debugSession !== null
3634
- ? deserializeAws_json1_1DebugSession(output.debugSession, context)
3635
- : undefined,
3520
+ debugSession: output.debugSession != null ? deserializeAws_json1_1DebugSession(output.debugSession, context) : undefined,
3636
3521
  encryptionKey: __expectString(output.encryptionKey),
3637
- endTime: output.endTime !== undefined && output.endTime !== null
3638
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
3639
- : undefined,
3640
- environment: output.environment !== undefined && output.environment !== null
3641
- ? deserializeAws_json1_1ProjectEnvironment(output.environment, context)
3642
- : undefined,
3643
- exportedEnvironmentVariables: output.exportedEnvironmentVariables !== undefined && output.exportedEnvironmentVariables !== null
3522
+ endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
3523
+ environment: output.environment != null ? deserializeAws_json1_1ProjectEnvironment(output.environment, context) : undefined,
3524
+ exportedEnvironmentVariables: output.exportedEnvironmentVariables != null
3644
3525
  ? deserializeAws_json1_1ExportedEnvironmentVariables(output.exportedEnvironmentVariables, context)
3645
3526
  : undefined,
3646
- fileSystemLocations: output.fileSystemLocations !== undefined && output.fileSystemLocations !== null
3527
+ fileSystemLocations: output.fileSystemLocations != null
3647
3528
  ? deserializeAws_json1_1ProjectFileSystemLocations(output.fileSystemLocations, context)
3648
3529
  : undefined,
3649
3530
  id: __expectString(output.id),
3650
3531
  initiator: __expectString(output.initiator),
3651
- logs: output.logs !== undefined && output.logs !== null
3652
- ? deserializeAws_json1_1LogsLocation(output.logs, context)
3653
- : undefined,
3654
- networkInterface: output.networkInterface !== undefined && output.networkInterface !== null
3532
+ logs: output.logs != null ? deserializeAws_json1_1LogsLocation(output.logs, context) : undefined,
3533
+ networkInterface: output.networkInterface != null
3655
3534
  ? deserializeAws_json1_1NetworkInterface(output.networkInterface, context)
3656
3535
  : undefined,
3657
- phases: output.phases !== undefined && output.phases !== null
3658
- ? deserializeAws_json1_1BuildPhases(output.phases, context)
3659
- : undefined,
3536
+ phases: output.phases != null ? deserializeAws_json1_1BuildPhases(output.phases, context) : undefined,
3660
3537
  projectName: __expectString(output.projectName),
3661
3538
  queuedTimeoutInMinutes: __expectInt32(output.queuedTimeoutInMinutes),
3662
- reportArns: output.reportArns !== undefined && output.reportArns !== null
3663
- ? deserializeAws_json1_1BuildReportArns(output.reportArns, context)
3664
- : undefined,
3539
+ reportArns: output.reportArns != null ? deserializeAws_json1_1BuildReportArns(output.reportArns, context) : undefined,
3665
3540
  resolvedSourceVersion: __expectString(output.resolvedSourceVersion),
3666
- secondaryArtifacts: output.secondaryArtifacts !== undefined && output.secondaryArtifacts !== null
3541
+ secondaryArtifacts: output.secondaryArtifacts != null
3667
3542
  ? deserializeAws_json1_1BuildArtifactsList(output.secondaryArtifacts, context)
3668
3543
  : undefined,
3669
- secondarySourceVersions: output.secondarySourceVersions !== undefined && output.secondarySourceVersions !== null
3544
+ secondarySourceVersions: output.secondarySourceVersions != null
3670
3545
  ? deserializeAws_json1_1ProjectSecondarySourceVersions(output.secondarySourceVersions, context)
3671
3546
  : undefined,
3672
- secondarySources: output.secondarySources !== undefined && output.secondarySources !== null
3547
+ secondarySources: output.secondarySources != null
3673
3548
  ? deserializeAws_json1_1ProjectSources(output.secondarySources, context)
3674
3549
  : undefined,
3675
3550
  serviceRole: __expectString(output.serviceRole),
3676
- source: output.source !== undefined && output.source !== null
3677
- ? deserializeAws_json1_1ProjectSource(output.source, context)
3678
- : undefined,
3551
+ source: output.source != null ? deserializeAws_json1_1ProjectSource(output.source, context) : undefined,
3679
3552
  sourceVersion: __expectString(output.sourceVersion),
3680
- startTime: output.startTime !== undefined && output.startTime !== null
3681
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
3682
- : undefined,
3553
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
3683
3554
  timeoutInMinutes: __expectInt32(output.timeoutInMinutes),
3684
- vpcConfig: output.vpcConfig !== undefined && output.vpcConfig !== null
3685
- ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context)
3686
- : undefined,
3555
+ vpcConfig: output.vpcConfig != null ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context) : undefined,
3687
3556
  };
3688
3557
  };
3689
3558
  var deserializeAws_json1_1BuildArtifacts = function (output, context) {
@@ -3711,65 +3580,45 @@ var deserializeAws_json1_1BuildArtifactsList = function (output, context) {
3711
3580
  var deserializeAws_json1_1BuildBatch = function (output, context) {
3712
3581
  return {
3713
3582
  arn: __expectString(output.arn),
3714
- artifacts: output.artifacts !== undefined && output.artifacts !== null
3715
- ? deserializeAws_json1_1BuildArtifacts(output.artifacts, context)
3716
- : undefined,
3717
- buildBatchConfig: output.buildBatchConfig !== undefined && output.buildBatchConfig !== null
3583
+ artifacts: output.artifacts != null ? deserializeAws_json1_1BuildArtifacts(output.artifacts, context) : undefined,
3584
+ buildBatchConfig: output.buildBatchConfig != null
3718
3585
  ? deserializeAws_json1_1ProjectBuildBatchConfig(output.buildBatchConfig, context)
3719
3586
  : undefined,
3720
3587
  buildBatchNumber: __expectLong(output.buildBatchNumber),
3721
3588
  buildBatchStatus: __expectString(output.buildBatchStatus),
3722
- buildGroups: output.buildGroups !== undefined && output.buildGroups !== null
3723
- ? deserializeAws_json1_1BuildGroups(output.buildGroups, context)
3724
- : undefined,
3589
+ buildGroups: output.buildGroups != null ? deserializeAws_json1_1BuildGroups(output.buildGroups, context) : undefined,
3725
3590
  buildTimeoutInMinutes: __expectInt32(output.buildTimeoutInMinutes),
3726
- cache: output.cache !== undefined && output.cache !== null
3727
- ? deserializeAws_json1_1ProjectCache(output.cache, context)
3728
- : undefined,
3591
+ cache: output.cache != null ? deserializeAws_json1_1ProjectCache(output.cache, context) : undefined,
3729
3592
  complete: __expectBoolean(output.complete),
3730
3593
  currentPhase: __expectString(output.currentPhase),
3731
3594
  debugSessionEnabled: __expectBoolean(output.debugSessionEnabled),
3732
3595
  encryptionKey: __expectString(output.encryptionKey),
3733
- endTime: output.endTime !== undefined && output.endTime !== null
3734
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
3735
- : undefined,
3736
- environment: output.environment !== undefined && output.environment !== null
3737
- ? deserializeAws_json1_1ProjectEnvironment(output.environment, context)
3738
- : undefined,
3739
- fileSystemLocations: output.fileSystemLocations !== undefined && output.fileSystemLocations !== null
3596
+ endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
3597
+ environment: output.environment != null ? deserializeAws_json1_1ProjectEnvironment(output.environment, context) : undefined,
3598
+ fileSystemLocations: output.fileSystemLocations != null
3740
3599
  ? deserializeAws_json1_1ProjectFileSystemLocations(output.fileSystemLocations, context)
3741
3600
  : undefined,
3742
3601
  id: __expectString(output.id),
3743
3602
  initiator: __expectString(output.initiator),
3744
- logConfig: output.logConfig !== undefined && output.logConfig !== null
3745
- ? deserializeAws_json1_1LogsConfig(output.logConfig, context)
3746
- : undefined,
3747
- phases: output.phases !== undefined && output.phases !== null
3748
- ? deserializeAws_json1_1BuildBatchPhases(output.phases, context)
3749
- : undefined,
3603
+ logConfig: output.logConfig != null ? deserializeAws_json1_1LogsConfig(output.logConfig, context) : undefined,
3604
+ phases: output.phases != null ? deserializeAws_json1_1BuildBatchPhases(output.phases, context) : undefined,
3750
3605
  projectName: __expectString(output.projectName),
3751
3606
  queuedTimeoutInMinutes: __expectInt32(output.queuedTimeoutInMinutes),
3752
3607
  resolvedSourceVersion: __expectString(output.resolvedSourceVersion),
3753
- secondaryArtifacts: output.secondaryArtifacts !== undefined && output.secondaryArtifacts !== null
3608
+ secondaryArtifacts: output.secondaryArtifacts != null
3754
3609
  ? deserializeAws_json1_1BuildArtifactsList(output.secondaryArtifacts, context)
3755
3610
  : undefined,
3756
- secondarySourceVersions: output.secondarySourceVersions !== undefined && output.secondarySourceVersions !== null
3611
+ secondarySourceVersions: output.secondarySourceVersions != null
3757
3612
  ? deserializeAws_json1_1ProjectSecondarySourceVersions(output.secondarySourceVersions, context)
3758
3613
  : undefined,
3759
- secondarySources: output.secondarySources !== undefined && output.secondarySources !== null
3614
+ secondarySources: output.secondarySources != null
3760
3615
  ? deserializeAws_json1_1ProjectSources(output.secondarySources, context)
3761
3616
  : undefined,
3762
3617
  serviceRole: __expectString(output.serviceRole),
3763
- source: output.source !== undefined && output.source !== null
3764
- ? deserializeAws_json1_1ProjectSource(output.source, context)
3765
- : undefined,
3618
+ source: output.source != null ? deserializeAws_json1_1ProjectSource(output.source, context) : undefined,
3766
3619
  sourceVersion: __expectString(output.sourceVersion),
3767
- startTime: output.startTime !== undefined && output.startTime !== null
3768
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
3769
- : undefined,
3770
- vpcConfig: output.vpcConfig !== undefined && output.vpcConfig !== null
3771
- ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context)
3772
- : undefined,
3620
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
3621
+ vpcConfig: output.vpcConfig != null ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context) : undefined,
3773
3622
  };
3774
3623
  };
3775
3624
  var deserializeAws_json1_1BuildBatches = function (output, context) {
@@ -3796,18 +3645,12 @@ var deserializeAws_json1_1BuildBatchIds = function (output, context) {
3796
3645
  };
3797
3646
  var deserializeAws_json1_1BuildBatchPhase = function (output, context) {
3798
3647
  return {
3799
- contexts: output.contexts !== undefined && output.contexts !== null
3800
- ? deserializeAws_json1_1PhaseContexts(output.contexts, context)
3801
- : undefined,
3648
+ contexts: output.contexts != null ? deserializeAws_json1_1PhaseContexts(output.contexts, context) : undefined,
3802
3649
  durationInSeconds: __expectLong(output.durationInSeconds),
3803
- endTime: output.endTime !== undefined && output.endTime !== null
3804
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
3805
- : undefined,
3650
+ endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
3806
3651
  phaseStatus: __expectString(output.phaseStatus),
3807
3652
  phaseType: __expectString(output.phaseType),
3808
- startTime: output.startTime !== undefined && output.startTime !== null
3809
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
3810
- : undefined,
3653
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
3811
3654
  };
3812
3655
  };
3813
3656
  var deserializeAws_json1_1BuildBatchPhases = function (output, context) {
@@ -3823,15 +3666,13 @@ var deserializeAws_json1_1BuildBatchPhases = function (output, context) {
3823
3666
  };
3824
3667
  var deserializeAws_json1_1BuildGroup = function (output, context) {
3825
3668
  return {
3826
- currentBuildSummary: output.currentBuildSummary !== undefined && output.currentBuildSummary !== null
3669
+ currentBuildSummary: output.currentBuildSummary != null
3827
3670
  ? deserializeAws_json1_1BuildSummary(output.currentBuildSummary, context)
3828
3671
  : undefined,
3829
- dependsOn: output.dependsOn !== undefined && output.dependsOn !== null
3830
- ? deserializeAws_json1_1Identifiers(output.dependsOn, context)
3831
- : undefined,
3672
+ dependsOn: output.dependsOn != null ? deserializeAws_json1_1Identifiers(output.dependsOn, context) : undefined,
3832
3673
  identifier: __expectString(output.identifier),
3833
3674
  ignoreFailure: __expectBoolean(output.ignoreFailure),
3834
- priorBuildSummaryList: output.priorBuildSummaryList !== undefined && output.priorBuildSummaryList !== null
3675
+ priorBuildSummaryList: output.priorBuildSummaryList != null
3835
3676
  ? deserializeAws_json1_1BuildSummaries(output.priorBuildSummaryList, context)
3836
3677
  : undefined,
3837
3678
  };
@@ -3866,18 +3707,12 @@ var deserializeAws_json1_1BuildNotDeleted = function (output, context) {
3866
3707
  };
3867
3708
  var deserializeAws_json1_1BuildPhase = function (output, context) {
3868
3709
  return {
3869
- contexts: output.contexts !== undefined && output.contexts !== null
3870
- ? deserializeAws_json1_1PhaseContexts(output.contexts, context)
3871
- : undefined,
3710
+ contexts: output.contexts != null ? deserializeAws_json1_1PhaseContexts(output.contexts, context) : undefined,
3872
3711
  durationInSeconds: __expectLong(output.durationInSeconds),
3873
- endTime: output.endTime !== undefined && output.endTime !== null
3874
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
3875
- : undefined,
3712
+ endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
3876
3713
  phaseStatus: __expectString(output.phaseStatus),
3877
3714
  phaseType: __expectString(output.phaseType),
3878
- startTime: output.startTime !== undefined && output.startTime !== null
3879
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
3880
- : undefined,
3715
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
3881
3716
  };
3882
3717
  };
3883
3718
  var deserializeAws_json1_1BuildPhases = function (output, context) {
@@ -3945,13 +3780,13 @@ var deserializeAws_json1_1BuildSummary = function (output, context) {
3945
3780
  return {
3946
3781
  arn: __expectString(output.arn),
3947
3782
  buildStatus: __expectString(output.buildStatus),
3948
- primaryArtifact: output.primaryArtifact !== undefined && output.primaryArtifact !== null
3783
+ primaryArtifact: output.primaryArtifact != null
3949
3784
  ? deserializeAws_json1_1ResolvedArtifact(output.primaryArtifact, context)
3950
3785
  : undefined,
3951
- requestedOn: output.requestedOn !== undefined && output.requestedOn !== null
3786
+ requestedOn: output.requestedOn != null
3952
3787
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.requestedOn)))
3953
3788
  : undefined,
3954
- secondaryArtifacts: output.secondaryArtifacts !== undefined && output.secondaryArtifacts !== null
3789
+ secondaryArtifacts: output.secondaryArtifacts != null
3955
3790
  ? deserializeAws_json1_1ResolvedSecondaryArtifacts(output.secondaryArtifacts, context)
3956
3791
  : undefined,
3957
3792
  };
@@ -3968,9 +3803,7 @@ var deserializeAws_json1_1CodeCoverage = function (output, context) {
3968
3803
  branchCoveragePercentage: __limitedParseDouble(output.branchCoveragePercentage),
3969
3804
  branchesCovered: __expectInt32(output.branchesCovered),
3970
3805
  branchesMissed: __expectInt32(output.branchesMissed),
3971
- expired: output.expired !== undefined && output.expired !== null
3972
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expired)))
3973
- : undefined,
3806
+ expired: output.expired != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expired))) : undefined,
3974
3807
  filePath: __expectString(output.filePath),
3975
3808
  id: __expectString(output.id),
3976
3809
  lineCoveragePercentage: __limitedParseDouble(output.lineCoveragePercentage),
@@ -4013,23 +3846,17 @@ var deserializeAws_json1_1ComputeTypesAllowed = function (output, context) {
4013
3846
  };
4014
3847
  var deserializeAws_json1_1CreateProjectOutput = function (output, context) {
4015
3848
  return {
4016
- project: output.project !== undefined && output.project !== null
4017
- ? deserializeAws_json1_1Project(output.project, context)
4018
- : undefined,
3849
+ project: output.project != null ? deserializeAws_json1_1Project(output.project, context) : undefined,
4019
3850
  };
4020
3851
  };
4021
3852
  var deserializeAws_json1_1CreateReportGroupOutput = function (output, context) {
4022
3853
  return {
4023
- reportGroup: output.reportGroup !== undefined && output.reportGroup !== null
4024
- ? deserializeAws_json1_1ReportGroup(output.reportGroup, context)
4025
- : undefined,
3854
+ reportGroup: output.reportGroup != null ? deserializeAws_json1_1ReportGroup(output.reportGroup, context) : undefined,
4026
3855
  };
4027
3856
  };
4028
3857
  var deserializeAws_json1_1CreateWebhookOutput = function (output, context) {
4029
3858
  return {
4030
- webhook: output.webhook !== undefined && output.webhook !== null
4031
- ? deserializeAws_json1_1Webhook(output.webhook, context)
4032
- : undefined,
3859
+ webhook: output.webhook != null ? deserializeAws_json1_1Webhook(output.webhook, context) : undefined,
4033
3860
  };
4034
3861
  };
4035
3862
  var deserializeAws_json1_1DebugSession = function (output, context) {
@@ -4040,10 +3867,8 @@ var deserializeAws_json1_1DebugSession = function (output, context) {
4040
3867
  };
4041
3868
  var deserializeAws_json1_1DeleteBuildBatchOutput = function (output, context) {
4042
3869
  return {
4043
- buildsDeleted: output.buildsDeleted !== undefined && output.buildsDeleted !== null
4044
- ? deserializeAws_json1_1BuildIds(output.buildsDeleted, context)
4045
- : undefined,
4046
- buildsNotDeleted: output.buildsNotDeleted !== undefined && output.buildsNotDeleted !== null
3870
+ buildsDeleted: output.buildsDeleted != null ? deserializeAws_json1_1BuildIds(output.buildsDeleted, context) : undefined,
3871
+ buildsNotDeleted: output.buildsNotDeleted != null
4047
3872
  ? deserializeAws_json1_1BuildsNotDeleted(output.buildsNotDeleted, context)
4048
3873
  : undefined,
4049
3874
  statusCode: __expectString(output.statusCode),
@@ -4071,27 +3896,21 @@ var deserializeAws_json1_1DeleteWebhookOutput = function (output, context) {
4071
3896
  };
4072
3897
  var deserializeAws_json1_1DescribeCodeCoveragesOutput = function (output, context) {
4073
3898
  return {
4074
- codeCoverages: output.codeCoverages !== undefined && output.codeCoverages !== null
4075
- ? deserializeAws_json1_1CodeCoverages(output.codeCoverages, context)
4076
- : undefined,
3899
+ codeCoverages: output.codeCoverages != null ? deserializeAws_json1_1CodeCoverages(output.codeCoverages, context) : undefined,
4077
3900
  nextToken: __expectString(output.nextToken),
4078
3901
  };
4079
3902
  };
4080
3903
  var deserializeAws_json1_1DescribeTestCasesOutput = function (output, context) {
4081
3904
  return {
4082
3905
  nextToken: __expectString(output.nextToken),
4083
- testCases: output.testCases !== undefined && output.testCases !== null
4084
- ? deserializeAws_json1_1TestCases(output.testCases, context)
4085
- : undefined,
3906
+ testCases: output.testCases != null ? deserializeAws_json1_1TestCases(output.testCases, context) : undefined,
4086
3907
  };
4087
3908
  };
4088
3909
  var deserializeAws_json1_1EnvironmentImage = function (output, context) {
4089
3910
  return {
4090
3911
  description: __expectString(output.description),
4091
3912
  name: __expectString(output.name),
4092
- versions: output.versions !== undefined && output.versions !== null
4093
- ? deserializeAws_json1_1ImageVersions(output.versions, context)
4094
- : undefined,
3913
+ versions: output.versions != null ? deserializeAws_json1_1ImageVersions(output.versions, context) : undefined,
4095
3914
  };
4096
3915
  };
4097
3916
  var deserializeAws_json1_1EnvironmentImages = function (output, context) {
@@ -4107,9 +3926,7 @@ var deserializeAws_json1_1EnvironmentImages = function (output, context) {
4107
3926
  };
4108
3927
  var deserializeAws_json1_1EnvironmentLanguage = function (output, context) {
4109
3928
  return {
4110
- images: output.images !== undefined && output.images !== null
4111
- ? deserializeAws_json1_1EnvironmentImages(output.images, context)
4112
- : undefined,
3929
+ images: output.images != null ? deserializeAws_json1_1EnvironmentImages(output.images, context) : undefined,
4113
3930
  language: __expectString(output.language),
4114
3931
  };
4115
3932
  };
@@ -4126,9 +3943,7 @@ var deserializeAws_json1_1EnvironmentLanguages = function (output, context) {
4126
3943
  };
4127
3944
  var deserializeAws_json1_1EnvironmentPlatform = function (output, context) {
4128
3945
  return {
4129
- languages: output.languages !== undefined && output.languages !== null
4130
- ? deserializeAws_json1_1EnvironmentLanguages(output.languages, context)
4131
- : undefined,
3946
+ languages: output.languages != null ? deserializeAws_json1_1EnvironmentLanguages(output.languages, context) : undefined,
4132
3947
  platform: __expectString(output.platform),
4133
3948
  };
4134
3949
  };
@@ -4202,12 +4017,8 @@ var deserializeAws_json1_1FilterGroups = function (output, context) {
4202
4017
  };
4203
4018
  var deserializeAws_json1_1GetReportGroupTrendOutput = function (output, context) {
4204
4019
  return {
4205
- rawData: output.rawData !== undefined && output.rawData !== null
4206
- ? deserializeAws_json1_1ReportGroupTrendRawDataList(output.rawData, context)
4207
- : undefined,
4208
- stats: output.stats !== undefined && output.stats !== null
4209
- ? deserializeAws_json1_1ReportGroupTrendStats(output.stats, context)
4210
- : undefined,
4020
+ rawData: output.rawData != null ? deserializeAws_json1_1ReportGroupTrendRawDataList(output.rawData, context) : undefined,
4021
+ stats: output.stats != null ? deserializeAws_json1_1ReportGroupTrendStats(output.stats, context) : undefined,
4211
4022
  };
4212
4023
  };
4213
4024
  var deserializeAws_json1_1GetResourcePolicyOutput = function (output, context) {
@@ -4257,116 +4068,94 @@ var deserializeAws_json1_1InvalidInputException = function (output, context) {
4257
4068
  };
4258
4069
  var deserializeAws_json1_1ListBuildBatchesForProjectOutput = function (output, context) {
4259
4070
  return {
4260
- ids: output.ids !== undefined && output.ids !== null
4261
- ? deserializeAws_json1_1BuildBatchIds(output.ids, context)
4262
- : undefined,
4071
+ ids: output.ids != null ? deserializeAws_json1_1BuildBatchIds(output.ids, context) : undefined,
4263
4072
  nextToken: __expectString(output.nextToken),
4264
4073
  };
4265
4074
  };
4266
4075
  var deserializeAws_json1_1ListBuildBatchesOutput = function (output, context) {
4267
4076
  return {
4268
- ids: output.ids !== undefined && output.ids !== null
4269
- ? deserializeAws_json1_1BuildBatchIds(output.ids, context)
4270
- : undefined,
4077
+ ids: output.ids != null ? deserializeAws_json1_1BuildBatchIds(output.ids, context) : undefined,
4271
4078
  nextToken: __expectString(output.nextToken),
4272
4079
  };
4273
4080
  };
4274
4081
  var deserializeAws_json1_1ListBuildsForProjectOutput = function (output, context) {
4275
4082
  return {
4276
- ids: output.ids !== undefined && output.ids !== null ? deserializeAws_json1_1BuildIds(output.ids, context) : undefined,
4083
+ ids: output.ids != null ? deserializeAws_json1_1BuildIds(output.ids, context) : undefined,
4277
4084
  nextToken: __expectString(output.nextToken),
4278
4085
  };
4279
4086
  };
4280
4087
  var deserializeAws_json1_1ListBuildsOutput = function (output, context) {
4281
4088
  return {
4282
- ids: output.ids !== undefined && output.ids !== null ? deserializeAws_json1_1BuildIds(output.ids, context) : undefined,
4089
+ ids: output.ids != null ? deserializeAws_json1_1BuildIds(output.ids, context) : undefined,
4283
4090
  nextToken: __expectString(output.nextToken),
4284
4091
  };
4285
4092
  };
4286
4093
  var deserializeAws_json1_1ListCuratedEnvironmentImagesOutput = function (output, context) {
4287
4094
  return {
4288
- platforms: output.platforms !== undefined && output.platforms !== null
4289
- ? deserializeAws_json1_1EnvironmentPlatforms(output.platforms, context)
4290
- : undefined,
4095
+ platforms: output.platforms != null ? deserializeAws_json1_1EnvironmentPlatforms(output.platforms, context) : undefined,
4291
4096
  };
4292
4097
  };
4293
4098
  var deserializeAws_json1_1ListProjectsOutput = function (output, context) {
4294
4099
  return {
4295
4100
  nextToken: __expectString(output.nextToken),
4296
- projects: output.projects !== undefined && output.projects !== null
4297
- ? deserializeAws_json1_1ProjectNames(output.projects, context)
4298
- : undefined,
4101
+ projects: output.projects != null ? deserializeAws_json1_1ProjectNames(output.projects, context) : undefined,
4299
4102
  };
4300
4103
  };
4301
4104
  var deserializeAws_json1_1ListReportGroupsOutput = function (output, context) {
4302
4105
  return {
4303
4106
  nextToken: __expectString(output.nextToken),
4304
- reportGroups: output.reportGroups !== undefined && output.reportGroups !== null
4305
- ? deserializeAws_json1_1ReportGroupArns(output.reportGroups, context)
4306
- : undefined,
4107
+ reportGroups: output.reportGroups != null ? deserializeAws_json1_1ReportGroupArns(output.reportGroups, context) : undefined,
4307
4108
  };
4308
4109
  };
4309
4110
  var deserializeAws_json1_1ListReportsForReportGroupOutput = function (output, context) {
4310
4111
  return {
4311
4112
  nextToken: __expectString(output.nextToken),
4312
- reports: output.reports !== undefined && output.reports !== null
4313
- ? deserializeAws_json1_1ReportArns(output.reports, context)
4314
- : undefined,
4113
+ reports: output.reports != null ? deserializeAws_json1_1ReportArns(output.reports, context) : undefined,
4315
4114
  };
4316
4115
  };
4317
4116
  var deserializeAws_json1_1ListReportsOutput = function (output, context) {
4318
4117
  return {
4319
4118
  nextToken: __expectString(output.nextToken),
4320
- reports: output.reports !== undefined && output.reports !== null
4321
- ? deserializeAws_json1_1ReportArns(output.reports, context)
4322
- : undefined,
4119
+ reports: output.reports != null ? deserializeAws_json1_1ReportArns(output.reports, context) : undefined,
4323
4120
  };
4324
4121
  };
4325
4122
  var deserializeAws_json1_1ListSharedProjectsOutput = function (output, context) {
4326
4123
  return {
4327
4124
  nextToken: __expectString(output.nextToken),
4328
- projects: output.projects !== undefined && output.projects !== null
4329
- ? deserializeAws_json1_1ProjectArns(output.projects, context)
4330
- : undefined,
4125
+ projects: output.projects != null ? deserializeAws_json1_1ProjectArns(output.projects, context) : undefined,
4331
4126
  };
4332
4127
  };
4333
4128
  var deserializeAws_json1_1ListSharedReportGroupsOutput = function (output, context) {
4334
4129
  return {
4335
4130
  nextToken: __expectString(output.nextToken),
4336
- reportGroups: output.reportGroups !== undefined && output.reportGroups !== null
4337
- ? deserializeAws_json1_1ReportGroupArns(output.reportGroups, context)
4338
- : undefined,
4131
+ reportGroups: output.reportGroups != null ? deserializeAws_json1_1ReportGroupArns(output.reportGroups, context) : undefined,
4339
4132
  };
4340
4133
  };
4341
4134
  var deserializeAws_json1_1ListSourceCredentialsOutput = function (output, context) {
4342
4135
  return {
4343
- sourceCredentialsInfos: output.sourceCredentialsInfos !== undefined && output.sourceCredentialsInfos !== null
4136
+ sourceCredentialsInfos: output.sourceCredentialsInfos != null
4344
4137
  ? deserializeAws_json1_1SourceCredentialsInfos(output.sourceCredentialsInfos, context)
4345
4138
  : undefined,
4346
4139
  };
4347
4140
  };
4348
4141
  var deserializeAws_json1_1LogsConfig = function (output, context) {
4349
4142
  return {
4350
- cloudWatchLogs: output.cloudWatchLogs !== undefined && output.cloudWatchLogs !== null
4143
+ cloudWatchLogs: output.cloudWatchLogs != null
4351
4144
  ? deserializeAws_json1_1CloudWatchLogsConfig(output.cloudWatchLogs, context)
4352
4145
  : undefined,
4353
- s3Logs: output.s3Logs !== undefined && output.s3Logs !== null
4354
- ? deserializeAws_json1_1S3LogsConfig(output.s3Logs, context)
4355
- : undefined,
4146
+ s3Logs: output.s3Logs != null ? deserializeAws_json1_1S3LogsConfig(output.s3Logs, context) : undefined,
4356
4147
  };
4357
4148
  };
4358
4149
  var deserializeAws_json1_1LogsLocation = function (output, context) {
4359
4150
  return {
4360
- cloudWatchLogs: output.cloudWatchLogs !== undefined && output.cloudWatchLogs !== null
4151
+ cloudWatchLogs: output.cloudWatchLogs != null
4361
4152
  ? deserializeAws_json1_1CloudWatchLogsConfig(output.cloudWatchLogs, context)
4362
4153
  : undefined,
4363
4154
  cloudWatchLogsArn: __expectString(output.cloudWatchLogsArn),
4364
4155
  deepLink: __expectString(output.deepLink),
4365
4156
  groupName: __expectString(output.groupName),
4366
4157
  s3DeepLink: __expectString(output.s3DeepLink),
4367
- s3Logs: output.s3Logs !== undefined && output.s3Logs !== null
4368
- ? deserializeAws_json1_1S3LogsConfig(output.s3Logs, context)
4369
- : undefined,
4158
+ s3Logs: output.s3Logs != null ? deserializeAws_json1_1S3LogsConfig(output.s3Logs, context) : undefined,
4370
4159
  s3LogsArn: __expectString(output.s3LogsArn),
4371
4160
  streamName: __expectString(output.streamName),
4372
4161
  };
@@ -4402,65 +4191,45 @@ var deserializeAws_json1_1PhaseContexts = function (output, context) {
4402
4191
  var deserializeAws_json1_1Project = function (output, context) {
4403
4192
  return {
4404
4193
  arn: __expectString(output.arn),
4405
- artifacts: output.artifacts !== undefined && output.artifacts !== null
4406
- ? deserializeAws_json1_1ProjectArtifacts(output.artifacts, context)
4407
- : undefined,
4408
- badge: output.badge !== undefined && output.badge !== null
4409
- ? deserializeAws_json1_1ProjectBadge(output.badge, context)
4410
- : undefined,
4411
- buildBatchConfig: output.buildBatchConfig !== undefined && output.buildBatchConfig !== null
4194
+ artifacts: output.artifacts != null ? deserializeAws_json1_1ProjectArtifacts(output.artifacts, context) : undefined,
4195
+ badge: output.badge != null ? deserializeAws_json1_1ProjectBadge(output.badge, context) : undefined,
4196
+ buildBatchConfig: output.buildBatchConfig != null
4412
4197
  ? deserializeAws_json1_1ProjectBuildBatchConfig(output.buildBatchConfig, context)
4413
4198
  : undefined,
4414
- cache: output.cache !== undefined && output.cache !== null
4415
- ? deserializeAws_json1_1ProjectCache(output.cache, context)
4416
- : undefined,
4199
+ cache: output.cache != null ? deserializeAws_json1_1ProjectCache(output.cache, context) : undefined,
4417
4200
  concurrentBuildLimit: __expectInt32(output.concurrentBuildLimit),
4418
- created: output.created !== undefined && output.created !== null
4419
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
4420
- : undefined,
4201
+ created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
4421
4202
  description: __expectString(output.description),
4422
4203
  encryptionKey: __expectString(output.encryptionKey),
4423
- environment: output.environment !== undefined && output.environment !== null
4424
- ? deserializeAws_json1_1ProjectEnvironment(output.environment, context)
4425
- : undefined,
4426
- fileSystemLocations: output.fileSystemLocations !== undefined && output.fileSystemLocations !== null
4204
+ environment: output.environment != null ? deserializeAws_json1_1ProjectEnvironment(output.environment, context) : undefined,
4205
+ fileSystemLocations: output.fileSystemLocations != null
4427
4206
  ? deserializeAws_json1_1ProjectFileSystemLocations(output.fileSystemLocations, context)
4428
4207
  : undefined,
4429
- lastModified: output.lastModified !== undefined && output.lastModified !== null
4208
+ lastModified: output.lastModified != null
4430
4209
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModified)))
4431
4210
  : undefined,
4432
- logsConfig: output.logsConfig !== undefined && output.logsConfig !== null
4433
- ? deserializeAws_json1_1LogsConfig(output.logsConfig, context)
4434
- : undefined,
4211
+ logsConfig: output.logsConfig != null ? deserializeAws_json1_1LogsConfig(output.logsConfig, context) : undefined,
4435
4212
  name: __expectString(output.name),
4436
4213
  projectVisibility: __expectString(output.projectVisibility),
4437
4214
  publicProjectAlias: __expectString(output.publicProjectAlias),
4438
4215
  queuedTimeoutInMinutes: __expectInt32(output.queuedTimeoutInMinutes),
4439
4216
  resourceAccessRole: __expectString(output.resourceAccessRole),
4440
- secondaryArtifacts: output.secondaryArtifacts !== undefined && output.secondaryArtifacts !== null
4217
+ secondaryArtifacts: output.secondaryArtifacts != null
4441
4218
  ? deserializeAws_json1_1ProjectArtifactsList(output.secondaryArtifacts, context)
4442
4219
  : undefined,
4443
- secondarySourceVersions: output.secondarySourceVersions !== undefined && output.secondarySourceVersions !== null
4220
+ secondarySourceVersions: output.secondarySourceVersions != null
4444
4221
  ? deserializeAws_json1_1ProjectSecondarySourceVersions(output.secondarySourceVersions, context)
4445
4222
  : undefined,
4446
- secondarySources: output.secondarySources !== undefined && output.secondarySources !== null
4223
+ secondarySources: output.secondarySources != null
4447
4224
  ? deserializeAws_json1_1ProjectSources(output.secondarySources, context)
4448
4225
  : undefined,
4449
4226
  serviceRole: __expectString(output.serviceRole),
4450
- source: output.source !== undefined && output.source !== null
4451
- ? deserializeAws_json1_1ProjectSource(output.source, context)
4452
- : undefined,
4227
+ source: output.source != null ? deserializeAws_json1_1ProjectSource(output.source, context) : undefined,
4453
4228
  sourceVersion: __expectString(output.sourceVersion),
4454
- tags: output.tags !== undefined && output.tags !== null
4455
- ? deserializeAws_json1_1TagList(output.tags, context)
4456
- : undefined,
4229
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4457
4230
  timeoutInMinutes: __expectInt32(output.timeoutInMinutes),
4458
- vpcConfig: output.vpcConfig !== undefined && output.vpcConfig !== null
4459
- ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context)
4460
- : undefined,
4461
- webhook: output.webhook !== undefined && output.webhook !== null
4462
- ? deserializeAws_json1_1Webhook(output.webhook, context)
4463
- : undefined,
4231
+ vpcConfig: output.vpcConfig != null ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context) : undefined,
4232
+ webhook: output.webhook != null ? deserializeAws_json1_1Webhook(output.webhook, context) : undefined,
4464
4233
  };
4465
4234
  };
4466
4235
  var deserializeAws_json1_1ProjectArns = function (output, context) {
@@ -4509,9 +4278,7 @@ var deserializeAws_json1_1ProjectBuildBatchConfig = function (output, context) {
4509
4278
  return {
4510
4279
  batchReportMode: __expectString(output.batchReportMode),
4511
4280
  combineArtifacts: __expectBoolean(output.combineArtifacts),
4512
- restrictions: output.restrictions !== undefined && output.restrictions !== null
4513
- ? deserializeAws_json1_1BatchRestrictions(output.restrictions, context)
4514
- : undefined,
4281
+ restrictions: output.restrictions != null ? deserializeAws_json1_1BatchRestrictions(output.restrictions, context) : undefined,
4515
4282
  serviceRole: __expectString(output.serviceRole),
4516
4283
  timeoutInMins: __expectInt32(output.timeoutInMins),
4517
4284
  };
@@ -4519,9 +4286,7 @@ var deserializeAws_json1_1ProjectBuildBatchConfig = function (output, context) {
4519
4286
  var deserializeAws_json1_1ProjectCache = function (output, context) {
4520
4287
  return {
4521
4288
  location: __expectString(output.location),
4522
- modes: output.modes !== undefined && output.modes !== null
4523
- ? deserializeAws_json1_1ProjectCacheModes(output.modes, context)
4524
- : undefined,
4289
+ modes: output.modes != null ? deserializeAws_json1_1ProjectCacheModes(output.modes, context) : undefined,
4525
4290
  type: __expectString(output.type),
4526
4291
  };
4527
4292
  };
@@ -4540,13 +4305,13 @@ var deserializeAws_json1_1ProjectEnvironment = function (output, context) {
4540
4305
  return {
4541
4306
  certificate: __expectString(output.certificate),
4542
4307
  computeType: __expectString(output.computeType),
4543
- environmentVariables: output.environmentVariables !== undefined && output.environmentVariables !== null
4308
+ environmentVariables: output.environmentVariables != null
4544
4309
  ? deserializeAws_json1_1EnvironmentVariables(output.environmentVariables, context)
4545
4310
  : undefined,
4546
4311
  image: __expectString(output.image),
4547
4312
  imagePullCredentialsType: __expectString(output.imagePullCredentialsType),
4548
4313
  privilegedMode: __expectBoolean(output.privilegedMode),
4549
- registryCredential: output.registryCredential !== undefined && output.registryCredential !== null
4314
+ registryCredential: output.registryCredential != null
4550
4315
  ? deserializeAws_json1_1RegistryCredential(output.registryCredential, context)
4551
4316
  : undefined,
4552
4317
  type: __expectString(output.type),
@@ -4607,15 +4372,13 @@ var deserializeAws_json1_1ProjectSecondarySourceVersions = function (output, con
4607
4372
  };
4608
4373
  var deserializeAws_json1_1ProjectSource = function (output, context) {
4609
4374
  return {
4610
- auth: output.auth !== undefined && output.auth !== null
4611
- ? deserializeAws_json1_1SourceAuth(output.auth, context)
4612
- : undefined,
4613
- buildStatusConfig: output.buildStatusConfig !== undefined && output.buildStatusConfig !== null
4375
+ auth: output.auth != null ? deserializeAws_json1_1SourceAuth(output.auth, context) : undefined,
4376
+ buildStatusConfig: output.buildStatusConfig != null
4614
4377
  ? deserializeAws_json1_1BuildStatusConfig(output.buildStatusConfig, context)
4615
4378
  : undefined,
4616
4379
  buildspec: __expectString(output.buildspec),
4617
4380
  gitCloneDepth: __expectInt32(output.gitCloneDepth),
4618
- gitSubmodulesConfig: output.gitSubmodulesConfig !== undefined && output.gitSubmodulesConfig !== null
4381
+ gitSubmodulesConfig: output.gitSubmodulesConfig != null
4619
4382
  ? deserializeAws_json1_1GitSubmodulesConfig(output.gitSubmodulesConfig, context)
4620
4383
  : undefined,
4621
4384
  insecureSsl: __expectBoolean(output.insecureSsl),
@@ -4656,25 +4419,17 @@ var deserializeAws_json1_1RegistryCredential = function (output, context) {
4656
4419
  var deserializeAws_json1_1Report = function (output, context) {
4657
4420
  return {
4658
4421
  arn: __expectString(output.arn),
4659
- codeCoverageSummary: output.codeCoverageSummary !== undefined && output.codeCoverageSummary !== null
4422
+ codeCoverageSummary: output.codeCoverageSummary != null
4660
4423
  ? deserializeAws_json1_1CodeCoverageReportSummary(output.codeCoverageSummary, context)
4661
4424
  : undefined,
4662
- created: output.created !== undefined && output.created !== null
4663
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
4664
- : undefined,
4425
+ created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
4665
4426
  executionId: __expectString(output.executionId),
4666
- expired: output.expired !== undefined && output.expired !== null
4667
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expired)))
4668
- : undefined,
4669
- exportConfig: output.exportConfig !== undefined && output.exportConfig !== null
4670
- ? deserializeAws_json1_1ReportExportConfig(output.exportConfig, context)
4671
- : undefined,
4427
+ expired: output.expired != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expired))) : undefined,
4428
+ exportConfig: output.exportConfig != null ? deserializeAws_json1_1ReportExportConfig(output.exportConfig, context) : undefined,
4672
4429
  name: __expectString(output.name),
4673
4430
  reportGroupArn: __expectString(output.reportGroupArn),
4674
4431
  status: __expectString(output.status),
4675
- testSummary: output.testSummary !== undefined && output.testSummary !== null
4676
- ? deserializeAws_json1_1TestReportSummary(output.testSummary, context)
4677
- : undefined,
4432
+ testSummary: output.testSummary != null ? deserializeAws_json1_1TestReportSummary(output.testSummary, context) : undefined,
4678
4433
  truncated: __expectBoolean(output.truncated),
4679
4434
  type: __expectString(output.type),
4680
4435
  };
@@ -4693,7 +4448,7 @@ var deserializeAws_json1_1ReportArns = function (output, context) {
4693
4448
  var deserializeAws_json1_1ReportExportConfig = function (output, context) {
4694
4449
  return {
4695
4450
  exportConfigType: __expectString(output.exportConfigType),
4696
- s3Destination: output.s3Destination !== undefined && output.s3Destination !== null
4451
+ s3Destination: output.s3Destination != null
4697
4452
  ? deserializeAws_json1_1S3ReportExportConfig(output.s3Destination, context)
4698
4453
  : undefined,
4699
4454
  };
@@ -4701,20 +4456,14 @@ var deserializeAws_json1_1ReportExportConfig = function (output, context) {
4701
4456
  var deserializeAws_json1_1ReportGroup = function (output, context) {
4702
4457
  return {
4703
4458
  arn: __expectString(output.arn),
4704
- created: output.created !== undefined && output.created !== null
4705
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
4706
- : undefined,
4707
- exportConfig: output.exportConfig !== undefined && output.exportConfig !== null
4708
- ? deserializeAws_json1_1ReportExportConfig(output.exportConfig, context)
4709
- : undefined,
4710
- lastModified: output.lastModified !== undefined && output.lastModified !== null
4459
+ created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
4460
+ exportConfig: output.exportConfig != null ? deserializeAws_json1_1ReportExportConfig(output.exportConfig, context) : undefined,
4461
+ lastModified: output.lastModified != null
4711
4462
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModified)))
4712
4463
  : undefined,
4713
4464
  name: __expectString(output.name),
4714
4465
  status: __expectString(output.status),
4715
- tags: output.tags !== undefined && output.tags !== null
4716
- ? deserializeAws_json1_1TagList(output.tags, context)
4717
- : undefined,
4466
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4718
4467
  type: __expectString(output.type),
4719
4468
  };
4720
4469
  };
@@ -4815,16 +4564,12 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
4815
4564
  };
4816
4565
  var deserializeAws_json1_1RetryBuildBatchOutput = function (output, context) {
4817
4566
  return {
4818
- buildBatch: output.buildBatch !== undefined && output.buildBatch !== null
4819
- ? deserializeAws_json1_1BuildBatch(output.buildBatch, context)
4820
- : undefined,
4567
+ buildBatch: output.buildBatch != null ? deserializeAws_json1_1BuildBatch(output.buildBatch, context) : undefined,
4821
4568
  };
4822
4569
  };
4823
4570
  var deserializeAws_json1_1RetryBuildOutput = function (output, context) {
4824
4571
  return {
4825
- build: output.build !== undefined && output.build !== null
4826
- ? deserializeAws_json1_1Build(output.build, context)
4827
- : undefined,
4572
+ build: output.build != null ? deserializeAws_json1_1Build(output.build, context) : undefined,
4828
4573
  };
4829
4574
  };
4830
4575
  var deserializeAws_json1_1S3LogsConfig = function (output, context) {
@@ -4882,30 +4627,22 @@ var deserializeAws_json1_1SourceCredentialsInfos = function (output, context) {
4882
4627
  };
4883
4628
  var deserializeAws_json1_1StartBuildBatchOutput = function (output, context) {
4884
4629
  return {
4885
- buildBatch: output.buildBatch !== undefined && output.buildBatch !== null
4886
- ? deserializeAws_json1_1BuildBatch(output.buildBatch, context)
4887
- : undefined,
4630
+ buildBatch: output.buildBatch != null ? deserializeAws_json1_1BuildBatch(output.buildBatch, context) : undefined,
4888
4631
  };
4889
4632
  };
4890
4633
  var deserializeAws_json1_1StartBuildOutput = function (output, context) {
4891
4634
  return {
4892
- build: output.build !== undefined && output.build !== null
4893
- ? deserializeAws_json1_1Build(output.build, context)
4894
- : undefined,
4635
+ build: output.build != null ? deserializeAws_json1_1Build(output.build, context) : undefined,
4895
4636
  };
4896
4637
  };
4897
4638
  var deserializeAws_json1_1StopBuildBatchOutput = function (output, context) {
4898
4639
  return {
4899
- buildBatch: output.buildBatch !== undefined && output.buildBatch !== null
4900
- ? deserializeAws_json1_1BuildBatch(output.buildBatch, context)
4901
- : undefined,
4640
+ buildBatch: output.buildBatch != null ? deserializeAws_json1_1BuildBatch(output.buildBatch, context) : undefined,
4902
4641
  };
4903
4642
  };
4904
4643
  var deserializeAws_json1_1StopBuildOutput = function (output, context) {
4905
4644
  return {
4906
- build: output.build !== undefined && output.build !== null
4907
- ? deserializeAws_json1_1Build(output.build, context)
4908
- : undefined,
4645
+ build: output.build != null ? deserializeAws_json1_1Build(output.build, context) : undefined,
4909
4646
  };
4910
4647
  };
4911
4648
  var deserializeAws_json1_1Subnets = function (output, context) {
@@ -4939,9 +4676,7 @@ var deserializeAws_json1_1TagList = function (output, context) {
4939
4676
  var deserializeAws_json1_1TestCase = function (output, context) {
4940
4677
  return {
4941
4678
  durationInNanoSeconds: __expectLong(output.durationInNanoSeconds),
4942
- expired: output.expired !== undefined && output.expired !== null
4943
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expired)))
4944
- : undefined,
4679
+ expired: output.expired != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expired))) : undefined,
4945
4680
  message: __expectString(output.message),
4946
4681
  name: __expectString(output.name),
4947
4682
  prefix: __expectString(output.prefix),
@@ -4964,17 +4699,13 @@ var deserializeAws_json1_1TestCases = function (output, context) {
4964
4699
  var deserializeAws_json1_1TestReportSummary = function (output, context) {
4965
4700
  return {
4966
4701
  durationInNanoSeconds: __expectLong(output.durationInNanoSeconds),
4967
- statusCounts: output.statusCounts !== undefined && output.statusCounts !== null
4968
- ? deserializeAws_json1_1ReportStatusCounts(output.statusCounts, context)
4969
- : undefined,
4702
+ statusCounts: output.statusCounts != null ? deserializeAws_json1_1ReportStatusCounts(output.statusCounts, context) : undefined,
4970
4703
  total: __expectInt32(output.total),
4971
4704
  };
4972
4705
  };
4973
4706
  var deserializeAws_json1_1UpdateProjectOutput = function (output, context) {
4974
4707
  return {
4975
- project: output.project !== undefined && output.project !== null
4976
- ? deserializeAws_json1_1Project(output.project, context)
4977
- : undefined,
4708
+ project: output.project != null ? deserializeAws_json1_1Project(output.project, context) : undefined,
4978
4709
  };
4979
4710
  };
4980
4711
  var deserializeAws_json1_1UpdateProjectVisibilityOutput = function (output, context) {
@@ -4986,26 +4717,20 @@ var deserializeAws_json1_1UpdateProjectVisibilityOutput = function (output, cont
4986
4717
  };
4987
4718
  var deserializeAws_json1_1UpdateReportGroupOutput = function (output, context) {
4988
4719
  return {
4989
- reportGroup: output.reportGroup !== undefined && output.reportGroup !== null
4990
- ? deserializeAws_json1_1ReportGroup(output.reportGroup, context)
4991
- : undefined,
4720
+ reportGroup: output.reportGroup != null ? deserializeAws_json1_1ReportGroup(output.reportGroup, context) : undefined,
4992
4721
  };
4993
4722
  };
4994
4723
  var deserializeAws_json1_1UpdateWebhookOutput = function (output, context) {
4995
4724
  return {
4996
- webhook: output.webhook !== undefined && output.webhook !== null
4997
- ? deserializeAws_json1_1Webhook(output.webhook, context)
4998
- : undefined,
4725
+ webhook: output.webhook != null ? deserializeAws_json1_1Webhook(output.webhook, context) : undefined,
4999
4726
  };
5000
4727
  };
5001
4728
  var deserializeAws_json1_1VpcConfig = function (output, context) {
5002
4729
  return {
5003
- securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
4730
+ securityGroupIds: output.securityGroupIds != null
5004
4731
  ? deserializeAws_json1_1SecurityGroupIds(output.securityGroupIds, context)
5005
4732
  : undefined,
5006
- subnets: output.subnets !== undefined && output.subnets !== null
5007
- ? deserializeAws_json1_1Subnets(output.subnets, context)
5008
- : undefined,
4733
+ subnets: output.subnets != null ? deserializeAws_json1_1Subnets(output.subnets, context) : undefined,
5009
4734
  vpcId: __expectString(output.vpcId),
5010
4735
  };
5011
4736
  };
@@ -5013,10 +4738,8 @@ var deserializeAws_json1_1Webhook = function (output, context) {
5013
4738
  return {
5014
4739
  branchFilter: __expectString(output.branchFilter),
5015
4740
  buildType: __expectString(output.buildType),
5016
- filterGroups: output.filterGroups !== undefined && output.filterGroups !== null
5017
- ? deserializeAws_json1_1FilterGroups(output.filterGroups, context)
5018
- : undefined,
5019
- lastModifiedSecret: output.lastModifiedSecret !== undefined && output.lastModifiedSecret !== null
4741
+ filterGroups: output.filterGroups != null ? deserializeAws_json1_1FilterGroups(output.filterGroups, context) : undefined,
4742
+ lastModifiedSecret: output.lastModifiedSecret != null
5020
4743
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedSecret)))
5021
4744
  : undefined,
5022
4745
  payloadUrl: __expectString(output.payloadUrl),
@@ -5105,5 +4828,4 @@ var loadRestJsonErrorCode = function (output, data) {
5105
4828
  if (data["__type"] !== undefined) {
5106
4829
  return sanitizeErrorCode(data["__type"]);
5107
4830
  }
5108
- return "";
5109
4831
  };