@aws-sdk/client-ecr 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.
@@ -473,7 +473,7 @@ export var deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = function (
473
473
  });
474
474
  }); };
475
475
  var deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
476
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
476
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
477
477
  var _c;
478
478
  return __generator(this, function (_d) {
479
479
  switch (_d.label) {
@@ -483,7 +483,6 @@ var deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = function (ou
483
483
  return [4, parseBody(output.body, context)];
484
484
  case 1:
485
485
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
486
- errorCode = "UnknownError";
487
486
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
488
487
  _b = errorCode;
489
488
  switch (_b) {
@@ -503,10 +502,12 @@ var deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = function (ou
503
502
  case 7: throw _d.sent();
504
503
  case 8:
505
504
  parsedBody = parsedOutput.body;
505
+ $metadata = deserializeMetadata(output);
506
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
506
507
  response = new __BaseException({
507
- name: parsedBody.code || parsedBody.Code || errorCode,
508
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
508
509
  $fault: "client",
509
- $metadata: deserializeMetadata(output),
510
+ $metadata: $metadata,
510
511
  });
511
512
  throw __decorateServiceException(response, parsedBody);
512
513
  }
@@ -531,7 +532,7 @@ export var deserializeAws_json1_1BatchDeleteImageCommand = function (output, con
531
532
  });
532
533
  }); };
533
534
  var deserializeAws_json1_1BatchDeleteImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
534
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
535
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
535
536
  var _c;
536
537
  return __generator(this, function (_d) {
537
538
  switch (_d.label) {
@@ -541,7 +542,6 @@ var deserializeAws_json1_1BatchDeleteImageCommandError = function (output, conte
541
542
  return [4, parseBody(output.body, context)];
542
543
  case 1:
543
544
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
544
- errorCode = "UnknownError";
545
545
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
546
546
  _b = errorCode;
547
547
  switch (_b) {
@@ -561,10 +561,12 @@ var deserializeAws_json1_1BatchDeleteImageCommandError = function (output, conte
561
561
  case 7: throw _d.sent();
562
562
  case 8:
563
563
  parsedBody = parsedOutput.body;
564
+ $metadata = deserializeMetadata(output);
565
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
564
566
  response = new __BaseException({
565
- name: parsedBody.code || parsedBody.Code || errorCode,
567
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
566
568
  $fault: "client",
567
- $metadata: deserializeMetadata(output),
569
+ $metadata: $metadata,
568
570
  });
569
571
  throw __decorateServiceException(response, parsedBody);
570
572
  }
@@ -589,7 +591,7 @@ export var deserializeAws_json1_1BatchGetImageCommand = function (output, contex
589
591
  });
590
592
  }); };
591
593
  var deserializeAws_json1_1BatchGetImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
592
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
594
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
593
595
  var _c;
594
596
  return __generator(this, function (_d) {
595
597
  switch (_d.label) {
@@ -599,7 +601,6 @@ var deserializeAws_json1_1BatchGetImageCommandError = function (output, context)
599
601
  return [4, parseBody(output.body, context)];
600
602
  case 1:
601
603
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
602
- errorCode = "UnknownError";
603
604
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
604
605
  _b = errorCode;
605
606
  switch (_b) {
@@ -619,10 +620,12 @@ var deserializeAws_json1_1BatchGetImageCommandError = function (output, context)
619
620
  case 7: throw _d.sent();
620
621
  case 8:
621
622
  parsedBody = parsedOutput.body;
623
+ $metadata = deserializeMetadata(output);
624
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
622
625
  response = new __BaseException({
623
- name: parsedBody.code || parsedBody.Code || errorCode,
626
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
624
627
  $fault: "client",
625
- $metadata: deserializeMetadata(output),
628
+ $metadata: $metadata,
626
629
  });
627
630
  throw __decorateServiceException(response, parsedBody);
628
631
  }
@@ -647,7 +650,7 @@ export var deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand
647
650
  });
648
651
  }); };
649
652
  var deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
650
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
653
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
651
654
  var _c;
652
655
  return __generator(this, function (_d) {
653
656
  switch (_d.label) {
@@ -657,7 +660,6 @@ var deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError =
657
660
  return [4, parseBody(output.body, context)];
658
661
  case 1:
659
662
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
660
- errorCode = "UnknownError";
661
663
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
662
664
  _b = errorCode;
663
665
  switch (_b) {
@@ -681,10 +683,12 @@ var deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError =
681
683
  case 9: throw _d.sent();
682
684
  case 10:
683
685
  parsedBody = parsedOutput.body;
686
+ $metadata = deserializeMetadata(output);
687
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
684
688
  response = new __BaseException({
685
- name: parsedBody.code || parsedBody.Code || errorCode,
689
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
686
690
  $fault: "client",
687
- $metadata: deserializeMetadata(output),
691
+ $metadata: $metadata,
688
692
  });
689
693
  throw __decorateServiceException(response, parsedBody);
690
694
  }
@@ -709,7 +713,7 @@ export var deserializeAws_json1_1CompleteLayerUploadCommand = function (output,
709
713
  });
710
714
  }); };
711
715
  var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
712
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
716
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
713
717
  var _c;
714
718
  return __generator(this, function (_d) {
715
719
  switch (_d.label) {
@@ -719,7 +723,6 @@ var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, co
719
723
  return [4, parseBody(output.body, context)];
720
724
  case 1:
721
725
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
722
- errorCode = "UnknownError";
723
726
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
724
727
  _b = errorCode;
725
728
  switch (_b) {
@@ -763,10 +766,12 @@ var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, co
763
766
  case 19: throw _d.sent();
764
767
  case 20:
765
768
  parsedBody = parsedOutput.body;
769
+ $metadata = deserializeMetadata(output);
770
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
766
771
  response = new __BaseException({
767
- name: parsedBody.code || parsedBody.Code || errorCode,
772
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
768
773
  $fault: "client",
769
- $metadata: deserializeMetadata(output),
774
+ $metadata: $metadata,
770
775
  });
771
776
  throw __decorateServiceException(response, parsedBody);
772
777
  }
@@ -791,7 +796,7 @@ export var deserializeAws_json1_1CreatePullThroughCacheRuleCommand = function (o
791
796
  });
792
797
  }); };
793
798
  var deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
794
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
799
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
795
800
  var _c;
796
801
  return __generator(this, function (_d) {
797
802
  switch (_d.label) {
@@ -801,7 +806,6 @@ var deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = function (out
801
806
  return [4, parseBody(output.body, context)];
802
807
  case 1:
803
808
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
804
- errorCode = "UnknownError";
805
809
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
806
810
  _b = errorCode;
807
811
  switch (_b) {
@@ -833,10 +837,12 @@ var deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = function (out
833
837
  case 13: throw _d.sent();
834
838
  case 14:
835
839
  parsedBody = parsedOutput.body;
840
+ $metadata = deserializeMetadata(output);
841
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
836
842
  response = new __BaseException({
837
- name: parsedBody.code || parsedBody.Code || errorCode,
843
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
838
844
  $fault: "client",
839
- $metadata: deserializeMetadata(output),
845
+ $metadata: $metadata,
840
846
  });
841
847
  throw __decorateServiceException(response, parsedBody);
842
848
  }
@@ -861,7 +867,7 @@ export var deserializeAws_json1_1CreateRepositoryCommand = function (output, con
861
867
  });
862
868
  }); };
863
869
  var deserializeAws_json1_1CreateRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
864
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
870
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
865
871
  var _c;
866
872
  return __generator(this, function (_d) {
867
873
  switch (_d.label) {
@@ -871,7 +877,6 @@ var deserializeAws_json1_1CreateRepositoryCommandError = function (output, conte
871
877
  return [4, parseBody(output.body, context)];
872
878
  case 1:
873
879
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
874
- errorCode = "UnknownError";
875
880
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
876
881
  _b = errorCode;
877
882
  switch (_b) {
@@ -907,10 +912,12 @@ var deserializeAws_json1_1CreateRepositoryCommandError = function (output, conte
907
912
  case 15: throw _d.sent();
908
913
  case 16:
909
914
  parsedBody = parsedOutput.body;
915
+ $metadata = deserializeMetadata(output);
916
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
910
917
  response = new __BaseException({
911
- name: parsedBody.code || parsedBody.Code || errorCode,
918
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
912
919
  $fault: "client",
913
- $metadata: deserializeMetadata(output),
920
+ $metadata: $metadata,
914
921
  });
915
922
  throw __decorateServiceException(response, parsedBody);
916
923
  }
@@ -935,7 +942,7 @@ export var deserializeAws_json1_1DeleteLifecyclePolicyCommand = function (output
935
942
  });
936
943
  }); };
937
944
  var deserializeAws_json1_1DeleteLifecyclePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
938
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
945
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
939
946
  var _c;
940
947
  return __generator(this, function (_d) {
941
948
  switch (_d.label) {
@@ -945,7 +952,6 @@ var deserializeAws_json1_1DeleteLifecyclePolicyCommandError = function (output,
945
952
  return [4, parseBody(output.body, context)];
946
953
  case 1:
947
954
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
948
- errorCode = "UnknownError";
949
955
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
950
956
  _b = errorCode;
951
957
  switch (_b) {
@@ -969,10 +975,12 @@ var deserializeAws_json1_1DeleteLifecyclePolicyCommandError = function (output,
969
975
  case 9: throw _d.sent();
970
976
  case 10:
971
977
  parsedBody = parsedOutput.body;
978
+ $metadata = deserializeMetadata(output);
979
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
972
980
  response = new __BaseException({
973
- name: parsedBody.code || parsedBody.Code || errorCode,
981
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
974
982
  $fault: "client",
975
- $metadata: deserializeMetadata(output),
983
+ $metadata: $metadata,
976
984
  });
977
985
  throw __decorateServiceException(response, parsedBody);
978
986
  }
@@ -997,7 +1005,7 @@ export var deserializeAws_json1_1DeletePullThroughCacheRuleCommand = function (o
997
1005
  });
998
1006
  }); };
999
1007
  var deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1000
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1008
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1001
1009
  var _c;
1002
1010
  return __generator(this, function (_d) {
1003
1011
  switch (_d.label) {
@@ -1007,7 +1015,6 @@ var deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = function (out
1007
1015
  return [4, parseBody(output.body, context)];
1008
1016
  case 1:
1009
1017
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1010
- errorCode = "UnknownError";
1011
1018
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1012
1019
  _b = errorCode;
1013
1020
  switch (_b) {
@@ -1031,10 +1038,12 @@ var deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = function (out
1031
1038
  case 9: throw _d.sent();
1032
1039
  case 10:
1033
1040
  parsedBody = parsedOutput.body;
1041
+ $metadata = deserializeMetadata(output);
1042
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1034
1043
  response = new __BaseException({
1035
- name: parsedBody.code || parsedBody.Code || errorCode,
1044
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1036
1045
  $fault: "client",
1037
- $metadata: deserializeMetadata(output),
1046
+ $metadata: $metadata,
1038
1047
  });
1039
1048
  throw __decorateServiceException(response, parsedBody);
1040
1049
  }
@@ -1059,7 +1068,7 @@ export var deserializeAws_json1_1DeleteRegistryPolicyCommand = function (output,
1059
1068
  });
1060
1069
  }); };
1061
1070
  var deserializeAws_json1_1DeleteRegistryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1062
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1071
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1063
1072
  var _c;
1064
1073
  return __generator(this, function (_d) {
1065
1074
  switch (_d.label) {
@@ -1069,7 +1078,6 @@ var deserializeAws_json1_1DeleteRegistryPolicyCommandError = function (output, c
1069
1078
  return [4, parseBody(output.body, context)];
1070
1079
  case 1:
1071
1080
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1072
- errorCode = "UnknownError";
1073
1081
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1074
1082
  _b = errorCode;
1075
1083
  switch (_b) {
@@ -1093,10 +1101,12 @@ var deserializeAws_json1_1DeleteRegistryPolicyCommandError = function (output, c
1093
1101
  case 9: throw _d.sent();
1094
1102
  case 10:
1095
1103
  parsedBody = parsedOutput.body;
1104
+ $metadata = deserializeMetadata(output);
1105
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1096
1106
  response = new __BaseException({
1097
- name: parsedBody.code || parsedBody.Code || errorCode,
1107
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1098
1108
  $fault: "client",
1099
- $metadata: deserializeMetadata(output),
1109
+ $metadata: $metadata,
1100
1110
  });
1101
1111
  throw __decorateServiceException(response, parsedBody);
1102
1112
  }
@@ -1121,7 +1131,7 @@ export var deserializeAws_json1_1DeleteRepositoryCommand = function (output, con
1121
1131
  });
1122
1132
  }); };
1123
1133
  var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1124
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1134
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1125
1135
  var _c;
1126
1136
  return __generator(this, function (_d) {
1127
1137
  switch (_d.label) {
@@ -1131,7 +1141,6 @@ var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, conte
1131
1141
  return [4, parseBody(output.body, context)];
1132
1142
  case 1:
1133
1143
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1134
- errorCode = "UnknownError";
1135
1144
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1136
1145
  _b = errorCode;
1137
1146
  switch (_b) {
@@ -1159,10 +1168,12 @@ var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, conte
1159
1168
  case 11: throw _d.sent();
1160
1169
  case 12:
1161
1170
  parsedBody = parsedOutput.body;
1171
+ $metadata = deserializeMetadata(output);
1172
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1162
1173
  response = new __BaseException({
1163
- name: parsedBody.code || parsedBody.Code || errorCode,
1174
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1164
1175
  $fault: "client",
1165
- $metadata: deserializeMetadata(output),
1176
+ $metadata: $metadata,
1166
1177
  });
1167
1178
  throw __decorateServiceException(response, parsedBody);
1168
1179
  }
@@ -1187,7 +1198,7 @@ export var deserializeAws_json1_1DeleteRepositoryPolicyCommand = function (outpu
1187
1198
  });
1188
1199
  }); };
1189
1200
  var deserializeAws_json1_1DeleteRepositoryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1190
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1201
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1191
1202
  var _c;
1192
1203
  return __generator(this, function (_d) {
1193
1204
  switch (_d.label) {
@@ -1197,7 +1208,6 @@ var deserializeAws_json1_1DeleteRepositoryPolicyCommandError = function (output,
1197
1208
  return [4, parseBody(output.body, context)];
1198
1209
  case 1:
1199
1210
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1200
- errorCode = "UnknownError";
1201
1211
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1202
1212
  _b = errorCode;
1203
1213
  switch (_b) {
@@ -1221,10 +1231,12 @@ var deserializeAws_json1_1DeleteRepositoryPolicyCommandError = function (output,
1221
1231
  case 9: throw _d.sent();
1222
1232
  case 10:
1223
1233
  parsedBody = parsedOutput.body;
1234
+ $metadata = deserializeMetadata(output);
1235
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1224
1236
  response = new __BaseException({
1225
- name: parsedBody.code || parsedBody.Code || errorCode,
1237
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1226
1238
  $fault: "client",
1227
- $metadata: deserializeMetadata(output),
1239
+ $metadata: $metadata,
1228
1240
  });
1229
1241
  throw __decorateServiceException(response, parsedBody);
1230
1242
  }
@@ -1249,7 +1261,7 @@ export var deserializeAws_json1_1DescribeImageReplicationStatusCommand = functio
1249
1261
  });
1250
1262
  }); };
1251
1263
  var deserializeAws_json1_1DescribeImageReplicationStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1252
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1264
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1253
1265
  var _c;
1254
1266
  return __generator(this, function (_d) {
1255
1267
  switch (_d.label) {
@@ -1259,7 +1271,6 @@ var deserializeAws_json1_1DescribeImageReplicationStatusCommandError = function
1259
1271
  return [4, parseBody(output.body, context)];
1260
1272
  case 1:
1261
1273
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1262
- errorCode = "UnknownError";
1263
1274
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1264
1275
  _b = errorCode;
1265
1276
  switch (_b) {
@@ -1287,10 +1298,12 @@ var deserializeAws_json1_1DescribeImageReplicationStatusCommandError = function
1287
1298
  case 11: throw _d.sent();
1288
1299
  case 12:
1289
1300
  parsedBody = parsedOutput.body;
1301
+ $metadata = deserializeMetadata(output);
1302
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1290
1303
  response = new __BaseException({
1291
- name: parsedBody.code || parsedBody.Code || errorCode,
1304
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1292
1305
  $fault: "client",
1293
- $metadata: deserializeMetadata(output),
1306
+ $metadata: $metadata,
1294
1307
  });
1295
1308
  throw __decorateServiceException(response, parsedBody);
1296
1309
  }
@@ -1315,7 +1328,7 @@ export var deserializeAws_json1_1DescribeImagesCommand = function (output, conte
1315
1328
  });
1316
1329
  }); };
1317
1330
  var deserializeAws_json1_1DescribeImagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1318
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1331
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1319
1332
  var _c;
1320
1333
  return __generator(this, function (_d) {
1321
1334
  switch (_d.label) {
@@ -1325,7 +1338,6 @@ var deserializeAws_json1_1DescribeImagesCommandError = function (output, context
1325
1338
  return [4, parseBody(output.body, context)];
1326
1339
  case 1:
1327
1340
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1328
- errorCode = "UnknownError";
1329
1341
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1330
1342
  _b = errorCode;
1331
1343
  switch (_b) {
@@ -1349,10 +1361,12 @@ var deserializeAws_json1_1DescribeImagesCommandError = function (output, context
1349
1361
  case 9: throw _d.sent();
1350
1362
  case 10:
1351
1363
  parsedBody = parsedOutput.body;
1364
+ $metadata = deserializeMetadata(output);
1365
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1352
1366
  response = new __BaseException({
1353
- name: parsedBody.code || parsedBody.Code || errorCode,
1367
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1354
1368
  $fault: "client",
1355
- $metadata: deserializeMetadata(output),
1369
+ $metadata: $metadata,
1356
1370
  });
1357
1371
  throw __decorateServiceException(response, parsedBody);
1358
1372
  }
@@ -1377,7 +1391,7 @@ export var deserializeAws_json1_1DescribeImageScanFindingsCommand = function (ou
1377
1391
  });
1378
1392
  }); };
1379
1393
  var deserializeAws_json1_1DescribeImageScanFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1380
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1394
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1381
1395
  var _c;
1382
1396
  return __generator(this, function (_d) {
1383
1397
  switch (_d.label) {
@@ -1387,7 +1401,6 @@ var deserializeAws_json1_1DescribeImageScanFindingsCommandError = function (outp
1387
1401
  return [4, parseBody(output.body, context)];
1388
1402
  case 1:
1389
1403
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1390
- errorCode = "UnknownError";
1391
1404
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1392
1405
  _b = errorCode;
1393
1406
  switch (_b) {
@@ -1419,10 +1432,12 @@ var deserializeAws_json1_1DescribeImageScanFindingsCommandError = function (outp
1419
1432
  case 13: throw _d.sent();
1420
1433
  case 14:
1421
1434
  parsedBody = parsedOutput.body;
1435
+ $metadata = deserializeMetadata(output);
1436
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1422
1437
  response = new __BaseException({
1423
- name: parsedBody.code || parsedBody.Code || errorCode,
1438
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1424
1439
  $fault: "client",
1425
- $metadata: deserializeMetadata(output),
1440
+ $metadata: $metadata,
1426
1441
  });
1427
1442
  throw __decorateServiceException(response, parsedBody);
1428
1443
  }
@@ -1447,7 +1462,7 @@ export var deserializeAws_json1_1DescribePullThroughCacheRulesCommand = function
1447
1462
  });
1448
1463
  }); };
1449
1464
  var deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1450
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1465
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1451
1466
  var _c;
1452
1467
  return __generator(this, function (_d) {
1453
1468
  switch (_d.label) {
@@ -1457,7 +1472,6 @@ var deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = function (
1457
1472
  return [4, parseBody(output.body, context)];
1458
1473
  case 1:
1459
1474
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1460
- errorCode = "UnknownError";
1461
1475
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1462
1476
  _b = errorCode;
1463
1477
  switch (_b) {
@@ -1481,10 +1495,12 @@ var deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = function (
1481
1495
  case 9: throw _d.sent();
1482
1496
  case 10:
1483
1497
  parsedBody = parsedOutput.body;
1498
+ $metadata = deserializeMetadata(output);
1499
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1484
1500
  response = new __BaseException({
1485
- name: parsedBody.code || parsedBody.Code || errorCode,
1501
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1486
1502
  $fault: "client",
1487
- $metadata: deserializeMetadata(output),
1503
+ $metadata: $metadata,
1488
1504
  });
1489
1505
  throw __decorateServiceException(response, parsedBody);
1490
1506
  }
@@ -1509,7 +1525,7 @@ export var deserializeAws_json1_1DescribeRegistryCommand = function (output, con
1509
1525
  });
1510
1526
  }); };
1511
1527
  var deserializeAws_json1_1DescribeRegistryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1512
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1528
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1513
1529
  var _c;
1514
1530
  return __generator(this, function (_d) {
1515
1531
  switch (_d.label) {
@@ -1519,7 +1535,6 @@ var deserializeAws_json1_1DescribeRegistryCommandError = function (output, conte
1519
1535
  return [4, parseBody(output.body, context)];
1520
1536
  case 1:
1521
1537
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1522
- errorCode = "UnknownError";
1523
1538
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1524
1539
  _b = errorCode;
1525
1540
  switch (_b) {
@@ -1539,10 +1554,12 @@ var deserializeAws_json1_1DescribeRegistryCommandError = function (output, conte
1539
1554
  case 7: throw _d.sent();
1540
1555
  case 8:
1541
1556
  parsedBody = parsedOutput.body;
1557
+ $metadata = deserializeMetadata(output);
1558
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1542
1559
  response = new __BaseException({
1543
- name: parsedBody.code || parsedBody.Code || errorCode,
1560
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1544
1561
  $fault: "client",
1545
- $metadata: deserializeMetadata(output),
1562
+ $metadata: $metadata,
1546
1563
  });
1547
1564
  throw __decorateServiceException(response, parsedBody);
1548
1565
  }
@@ -1567,7 +1584,7 @@ export var deserializeAws_json1_1DescribeRepositoriesCommand = function (output,
1567
1584
  });
1568
1585
  }); };
1569
1586
  var deserializeAws_json1_1DescribeRepositoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1570
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1587
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1571
1588
  var _c;
1572
1589
  return __generator(this, function (_d) {
1573
1590
  switch (_d.label) {
@@ -1577,7 +1594,6 @@ var deserializeAws_json1_1DescribeRepositoriesCommandError = function (output, c
1577
1594
  return [4, parseBody(output.body, context)];
1578
1595
  case 1:
1579
1596
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1580
- errorCode = "UnknownError";
1581
1597
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1582
1598
  _b = errorCode;
1583
1599
  switch (_b) {
@@ -1597,10 +1613,12 @@ var deserializeAws_json1_1DescribeRepositoriesCommandError = function (output, c
1597
1613
  case 7: throw _d.sent();
1598
1614
  case 8:
1599
1615
  parsedBody = parsedOutput.body;
1616
+ $metadata = deserializeMetadata(output);
1617
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1600
1618
  response = new __BaseException({
1601
- name: parsedBody.code || parsedBody.Code || errorCode,
1619
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1602
1620
  $fault: "client",
1603
- $metadata: deserializeMetadata(output),
1621
+ $metadata: $metadata,
1604
1622
  });
1605
1623
  throw __decorateServiceException(response, parsedBody);
1606
1624
  }
@@ -1625,7 +1643,7 @@ export var deserializeAws_json1_1GetAuthorizationTokenCommand = function (output
1625
1643
  });
1626
1644
  }); };
1627
1645
  var deserializeAws_json1_1GetAuthorizationTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1628
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1646
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1629
1647
  var _c;
1630
1648
  return __generator(this, function (_d) {
1631
1649
  switch (_d.label) {
@@ -1635,7 +1653,6 @@ var deserializeAws_json1_1GetAuthorizationTokenCommandError = function (output,
1635
1653
  return [4, parseBody(output.body, context)];
1636
1654
  case 1:
1637
1655
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1638
- errorCode = "UnknownError";
1639
1656
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1640
1657
  _b = errorCode;
1641
1658
  switch (_b) {
@@ -1651,10 +1668,12 @@ var deserializeAws_json1_1GetAuthorizationTokenCommandError = function (output,
1651
1668
  case 5: throw _d.sent();
1652
1669
  case 6:
1653
1670
  parsedBody = parsedOutput.body;
1671
+ $metadata = deserializeMetadata(output);
1672
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1654
1673
  response = new __BaseException({
1655
- name: parsedBody.code || parsedBody.Code || errorCode,
1674
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1656
1675
  $fault: "client",
1657
- $metadata: deserializeMetadata(output),
1676
+ $metadata: $metadata,
1658
1677
  });
1659
1678
  throw __decorateServiceException(response, parsedBody);
1660
1679
  }
@@ -1679,7 +1698,7 @@ export var deserializeAws_json1_1GetDownloadUrlForLayerCommand = function (outpu
1679
1698
  });
1680
1699
  }); };
1681
1700
  var deserializeAws_json1_1GetDownloadUrlForLayerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1682
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1701
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1683
1702
  var _c;
1684
1703
  return __generator(this, function (_d) {
1685
1704
  switch (_d.label) {
@@ -1689,7 +1708,6 @@ var deserializeAws_json1_1GetDownloadUrlForLayerCommandError = function (output,
1689
1708
  return [4, parseBody(output.body, context)];
1690
1709
  case 1:
1691
1710
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1692
- errorCode = "UnknownError";
1693
1711
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1694
1712
  _b = errorCode;
1695
1713
  switch (_b) {
@@ -1717,10 +1735,12 @@ var deserializeAws_json1_1GetDownloadUrlForLayerCommandError = function (output,
1717
1735
  case 11: throw _d.sent();
1718
1736
  case 12:
1719
1737
  parsedBody = parsedOutput.body;
1738
+ $metadata = deserializeMetadata(output);
1739
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1720
1740
  response = new __BaseException({
1721
- name: parsedBody.code || parsedBody.Code || errorCode,
1741
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1722
1742
  $fault: "client",
1723
- $metadata: deserializeMetadata(output),
1743
+ $metadata: $metadata,
1724
1744
  });
1725
1745
  throw __decorateServiceException(response, parsedBody);
1726
1746
  }
@@ -1745,7 +1765,7 @@ export var deserializeAws_json1_1GetLifecyclePolicyCommand = function (output, c
1745
1765
  });
1746
1766
  }); };
1747
1767
  var deserializeAws_json1_1GetLifecyclePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1748
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1768
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1749
1769
  var _c;
1750
1770
  return __generator(this, function (_d) {
1751
1771
  switch (_d.label) {
@@ -1755,7 +1775,6 @@ var deserializeAws_json1_1GetLifecyclePolicyCommandError = function (output, con
1755
1775
  return [4, parseBody(output.body, context)];
1756
1776
  case 1:
1757
1777
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1758
- errorCode = "UnknownError";
1759
1778
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1760
1779
  _b = errorCode;
1761
1780
  switch (_b) {
@@ -1779,10 +1798,12 @@ var deserializeAws_json1_1GetLifecyclePolicyCommandError = function (output, con
1779
1798
  case 9: throw _d.sent();
1780
1799
  case 10:
1781
1800
  parsedBody = parsedOutput.body;
1801
+ $metadata = deserializeMetadata(output);
1802
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1782
1803
  response = new __BaseException({
1783
- name: parsedBody.code || parsedBody.Code || errorCode,
1804
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1784
1805
  $fault: "client",
1785
- $metadata: deserializeMetadata(output),
1806
+ $metadata: $metadata,
1786
1807
  });
1787
1808
  throw __decorateServiceException(response, parsedBody);
1788
1809
  }
@@ -1807,7 +1828,7 @@ export var deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = function (ou
1807
1828
  });
1808
1829
  }); };
1809
1830
  var deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1810
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1831
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1811
1832
  var _c;
1812
1833
  return __generator(this, function (_d) {
1813
1834
  switch (_d.label) {
@@ -1817,7 +1838,6 @@ var deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = function (outp
1817
1838
  return [4, parseBody(output.body, context)];
1818
1839
  case 1:
1819
1840
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1820
- errorCode = "UnknownError";
1821
1841
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1822
1842
  _b = errorCode;
1823
1843
  switch (_b) {
@@ -1841,10 +1861,12 @@ var deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = function (outp
1841
1861
  case 9: throw _d.sent();
1842
1862
  case 10:
1843
1863
  parsedBody = parsedOutput.body;
1864
+ $metadata = deserializeMetadata(output);
1865
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1844
1866
  response = new __BaseException({
1845
- name: parsedBody.code || parsedBody.Code || errorCode,
1867
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1846
1868
  $fault: "client",
1847
- $metadata: deserializeMetadata(output),
1869
+ $metadata: $metadata,
1848
1870
  });
1849
1871
  throw __decorateServiceException(response, parsedBody);
1850
1872
  }
@@ -1869,7 +1891,7 @@ export var deserializeAws_json1_1GetRegistryPolicyCommand = function (output, co
1869
1891
  });
1870
1892
  }); };
1871
1893
  var deserializeAws_json1_1GetRegistryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1872
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1894
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1873
1895
  var _c;
1874
1896
  return __generator(this, function (_d) {
1875
1897
  switch (_d.label) {
@@ -1879,7 +1901,6 @@ var deserializeAws_json1_1GetRegistryPolicyCommandError = function (output, cont
1879
1901
  return [4, parseBody(output.body, context)];
1880
1902
  case 1:
1881
1903
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1882
- errorCode = "UnknownError";
1883
1904
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1884
1905
  _b = errorCode;
1885
1906
  switch (_b) {
@@ -1903,10 +1924,12 @@ var deserializeAws_json1_1GetRegistryPolicyCommandError = function (output, cont
1903
1924
  case 9: throw _d.sent();
1904
1925
  case 10:
1905
1926
  parsedBody = parsedOutput.body;
1927
+ $metadata = deserializeMetadata(output);
1928
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1906
1929
  response = new __BaseException({
1907
- name: parsedBody.code || parsedBody.Code || errorCode,
1930
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1908
1931
  $fault: "client",
1909
- $metadata: deserializeMetadata(output),
1932
+ $metadata: $metadata,
1910
1933
  });
1911
1934
  throw __decorateServiceException(response, parsedBody);
1912
1935
  }
@@ -1931,7 +1954,7 @@ export var deserializeAws_json1_1GetRegistryScanningConfigurationCommand = funct
1931
1954
  });
1932
1955
  }); };
1933
1956
  var deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1934
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1957
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1935
1958
  var _c;
1936
1959
  return __generator(this, function (_d) {
1937
1960
  switch (_d.label) {
@@ -1941,7 +1964,6 @@ var deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = functio
1941
1964
  return [4, parseBody(output.body, context)];
1942
1965
  case 1:
1943
1966
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1944
- errorCode = "UnknownError";
1945
1967
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1946
1968
  _b = errorCode;
1947
1969
  switch (_b) {
@@ -1961,10 +1983,12 @@ var deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = functio
1961
1983
  case 7: throw _d.sent();
1962
1984
  case 8:
1963
1985
  parsedBody = parsedOutput.body;
1986
+ $metadata = deserializeMetadata(output);
1987
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1964
1988
  response = new __BaseException({
1965
- name: parsedBody.code || parsedBody.Code || errorCode,
1989
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1966
1990
  $fault: "client",
1967
- $metadata: deserializeMetadata(output),
1991
+ $metadata: $metadata,
1968
1992
  });
1969
1993
  throw __decorateServiceException(response, parsedBody);
1970
1994
  }
@@ -1989,7 +2013,7 @@ export var deserializeAws_json1_1GetRepositoryPolicyCommand = function (output,
1989
2013
  });
1990
2014
  }); };
1991
2015
  var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1992
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2016
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1993
2017
  var _c;
1994
2018
  return __generator(this, function (_d) {
1995
2019
  switch (_d.label) {
@@ -1999,7 +2023,6 @@ var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, co
1999
2023
  return [4, parseBody(output.body, context)];
2000
2024
  case 1:
2001
2025
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2002
- errorCode = "UnknownError";
2003
2026
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2004
2027
  _b = errorCode;
2005
2028
  switch (_b) {
@@ -2023,10 +2046,12 @@ var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, co
2023
2046
  case 9: throw _d.sent();
2024
2047
  case 10:
2025
2048
  parsedBody = parsedOutput.body;
2049
+ $metadata = deserializeMetadata(output);
2050
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2026
2051
  response = new __BaseException({
2027
- name: parsedBody.code || parsedBody.Code || errorCode,
2052
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2028
2053
  $fault: "client",
2029
- $metadata: deserializeMetadata(output),
2054
+ $metadata: $metadata,
2030
2055
  });
2031
2056
  throw __decorateServiceException(response, parsedBody);
2032
2057
  }
@@ -2051,7 +2076,7 @@ export var deserializeAws_json1_1InitiateLayerUploadCommand = function (output,
2051
2076
  });
2052
2077
  }); };
2053
2078
  var deserializeAws_json1_1InitiateLayerUploadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2054
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2079
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2055
2080
  var _c;
2056
2081
  return __generator(this, function (_d) {
2057
2082
  switch (_d.label) {
@@ -2061,7 +2086,6 @@ var deserializeAws_json1_1InitiateLayerUploadCommandError = function (output, co
2061
2086
  return [4, parseBody(output.body, context)];
2062
2087
  case 1:
2063
2088
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2064
- errorCode = "UnknownError";
2065
2089
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2066
2090
  _b = errorCode;
2067
2091
  switch (_b) {
@@ -2085,10 +2109,12 @@ var deserializeAws_json1_1InitiateLayerUploadCommandError = function (output, co
2085
2109
  case 9: throw _d.sent();
2086
2110
  case 10:
2087
2111
  parsedBody = parsedOutput.body;
2112
+ $metadata = deserializeMetadata(output);
2113
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2088
2114
  response = new __BaseException({
2089
- name: parsedBody.code || parsedBody.Code || errorCode,
2115
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2090
2116
  $fault: "client",
2091
- $metadata: deserializeMetadata(output),
2117
+ $metadata: $metadata,
2092
2118
  });
2093
2119
  throw __decorateServiceException(response, parsedBody);
2094
2120
  }
@@ -2113,7 +2139,7 @@ export var deserializeAws_json1_1ListImagesCommand = function (output, context)
2113
2139
  });
2114
2140
  }); };
2115
2141
  var deserializeAws_json1_1ListImagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2116
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2142
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2117
2143
  var _c;
2118
2144
  return __generator(this, function (_d) {
2119
2145
  switch (_d.label) {
@@ -2123,7 +2149,6 @@ var deserializeAws_json1_1ListImagesCommandError = function (output, context) {
2123
2149
  return [4, parseBody(output.body, context)];
2124
2150
  case 1:
2125
2151
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2126
- errorCode = "UnknownError";
2127
2152
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2128
2153
  _b = errorCode;
2129
2154
  switch (_b) {
@@ -2143,10 +2168,12 @@ var deserializeAws_json1_1ListImagesCommandError = function (output, context) {
2143
2168
  case 7: throw _d.sent();
2144
2169
  case 8:
2145
2170
  parsedBody = parsedOutput.body;
2171
+ $metadata = deserializeMetadata(output);
2172
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2146
2173
  response = new __BaseException({
2147
- name: parsedBody.code || parsedBody.Code || errorCode,
2174
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2148
2175
  $fault: "client",
2149
- $metadata: deserializeMetadata(output),
2176
+ $metadata: $metadata,
2150
2177
  });
2151
2178
  throw __decorateServiceException(response, parsedBody);
2152
2179
  }
@@ -2171,7 +2198,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
2171
2198
  });
2172
2199
  }); };
2173
2200
  var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2174
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2201
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2175
2202
  var _c;
2176
2203
  return __generator(this, function (_d) {
2177
2204
  switch (_d.label) {
@@ -2181,7 +2208,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
2181
2208
  return [4, parseBody(output.body, context)];
2182
2209
  case 1:
2183
2210
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2184
- errorCode = "UnknownError";
2185
2211
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2186
2212
  _b = errorCode;
2187
2213
  switch (_b) {
@@ -2201,10 +2227,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
2201
2227
  case 7: throw _d.sent();
2202
2228
  case 8:
2203
2229
  parsedBody = parsedOutput.body;
2230
+ $metadata = deserializeMetadata(output);
2231
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2204
2232
  response = new __BaseException({
2205
- name: parsedBody.code || parsedBody.Code || errorCode,
2233
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2206
2234
  $fault: "client",
2207
- $metadata: deserializeMetadata(output),
2235
+ $metadata: $metadata,
2208
2236
  });
2209
2237
  throw __decorateServiceException(response, parsedBody);
2210
2238
  }
@@ -2229,7 +2257,7 @@ export var deserializeAws_json1_1PutImageCommand = function (output, context) {
2229
2257
  });
2230
2258
  }); };
2231
2259
  var deserializeAws_json1_1PutImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2232
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2260
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2233
2261
  var _c;
2234
2262
  return __generator(this, function (_d) {
2235
2263
  switch (_d.label) {
@@ -2239,7 +2267,6 @@ var deserializeAws_json1_1PutImageCommandError = function (output, context) { re
2239
2267
  return [4, parseBody(output.body, context)];
2240
2268
  case 1:
2241
2269
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2242
- errorCode = "UnknownError";
2243
2270
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2244
2271
  _b = errorCode;
2245
2272
  switch (_b) {
@@ -2287,10 +2314,12 @@ var deserializeAws_json1_1PutImageCommandError = function (output, context) { re
2287
2314
  case 21: throw _d.sent();
2288
2315
  case 22:
2289
2316
  parsedBody = parsedOutput.body;
2317
+ $metadata = deserializeMetadata(output);
2318
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2290
2319
  response = new __BaseException({
2291
- name: parsedBody.code || parsedBody.Code || errorCode,
2320
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2292
2321
  $fault: "client",
2293
- $metadata: deserializeMetadata(output),
2322
+ $metadata: $metadata,
2294
2323
  });
2295
2324
  throw __decorateServiceException(response, parsedBody);
2296
2325
  }
@@ -2315,7 +2344,7 @@ export var deserializeAws_json1_1PutImageScanningConfigurationCommand = function
2315
2344
  });
2316
2345
  }); };
2317
2346
  var deserializeAws_json1_1PutImageScanningConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2318
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2347
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2319
2348
  var _c;
2320
2349
  return __generator(this, function (_d) {
2321
2350
  switch (_d.label) {
@@ -2325,7 +2354,6 @@ var deserializeAws_json1_1PutImageScanningConfigurationCommandError = function (
2325
2354
  return [4, parseBody(output.body, context)];
2326
2355
  case 1:
2327
2356
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2328
- errorCode = "UnknownError";
2329
2357
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2330
2358
  _b = errorCode;
2331
2359
  switch (_b) {
@@ -2349,10 +2377,12 @@ var deserializeAws_json1_1PutImageScanningConfigurationCommandError = function (
2349
2377
  case 9: throw _d.sent();
2350
2378
  case 10:
2351
2379
  parsedBody = parsedOutput.body;
2380
+ $metadata = deserializeMetadata(output);
2381
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2352
2382
  response = new __BaseException({
2353
- name: parsedBody.code || parsedBody.Code || errorCode,
2383
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2354
2384
  $fault: "client",
2355
- $metadata: deserializeMetadata(output),
2385
+ $metadata: $metadata,
2356
2386
  });
2357
2387
  throw __decorateServiceException(response, parsedBody);
2358
2388
  }
@@ -2377,7 +2407,7 @@ export var deserializeAws_json1_1PutImageTagMutabilityCommand = function (output
2377
2407
  });
2378
2408
  }); };
2379
2409
  var deserializeAws_json1_1PutImageTagMutabilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2380
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2410
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2381
2411
  var _c;
2382
2412
  return __generator(this, function (_d) {
2383
2413
  switch (_d.label) {
@@ -2387,7 +2417,6 @@ var deserializeAws_json1_1PutImageTagMutabilityCommandError = function (output,
2387
2417
  return [4, parseBody(output.body, context)];
2388
2418
  case 1:
2389
2419
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2390
- errorCode = "UnknownError";
2391
2420
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2392
2421
  _b = errorCode;
2393
2422
  switch (_b) {
@@ -2407,10 +2436,12 @@ var deserializeAws_json1_1PutImageTagMutabilityCommandError = function (output,
2407
2436
  case 7: throw _d.sent();
2408
2437
  case 8:
2409
2438
  parsedBody = parsedOutput.body;
2439
+ $metadata = deserializeMetadata(output);
2440
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2410
2441
  response = new __BaseException({
2411
- name: parsedBody.code || parsedBody.Code || errorCode,
2442
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2412
2443
  $fault: "client",
2413
- $metadata: deserializeMetadata(output),
2444
+ $metadata: $metadata,
2414
2445
  });
2415
2446
  throw __decorateServiceException(response, parsedBody);
2416
2447
  }
@@ -2435,7 +2466,7 @@ export var deserializeAws_json1_1PutLifecyclePolicyCommand = function (output, c
2435
2466
  });
2436
2467
  }); };
2437
2468
  var deserializeAws_json1_1PutLifecyclePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2438
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2469
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2439
2470
  var _c;
2440
2471
  return __generator(this, function (_d) {
2441
2472
  switch (_d.label) {
@@ -2445,7 +2476,6 @@ var deserializeAws_json1_1PutLifecyclePolicyCommandError = function (output, con
2445
2476
  return [4, parseBody(output.body, context)];
2446
2477
  case 1:
2447
2478
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2448
- errorCode = "UnknownError";
2449
2479
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2450
2480
  _b = errorCode;
2451
2481
  switch (_b) {
@@ -2465,10 +2495,12 @@ var deserializeAws_json1_1PutLifecyclePolicyCommandError = function (output, con
2465
2495
  case 7: throw _d.sent();
2466
2496
  case 8:
2467
2497
  parsedBody = parsedOutput.body;
2498
+ $metadata = deserializeMetadata(output);
2499
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2468
2500
  response = new __BaseException({
2469
- name: parsedBody.code || parsedBody.Code || errorCode,
2501
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2470
2502
  $fault: "client",
2471
- $metadata: deserializeMetadata(output),
2503
+ $metadata: $metadata,
2472
2504
  });
2473
2505
  throw __decorateServiceException(response, parsedBody);
2474
2506
  }
@@ -2493,7 +2525,7 @@ export var deserializeAws_json1_1PutRegistryPolicyCommand = function (output, co
2493
2525
  });
2494
2526
  }); };
2495
2527
  var deserializeAws_json1_1PutRegistryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2496
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2528
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2497
2529
  var _c;
2498
2530
  return __generator(this, function (_d) {
2499
2531
  switch (_d.label) {
@@ -2503,7 +2535,6 @@ var deserializeAws_json1_1PutRegistryPolicyCommandError = function (output, cont
2503
2535
  return [4, parseBody(output.body, context)];
2504
2536
  case 1:
2505
2537
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2506
- errorCode = "UnknownError";
2507
2538
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2508
2539
  _b = errorCode;
2509
2540
  switch (_b) {
@@ -2523,10 +2554,12 @@ var deserializeAws_json1_1PutRegistryPolicyCommandError = function (output, cont
2523
2554
  case 7: throw _d.sent();
2524
2555
  case 8:
2525
2556
  parsedBody = parsedOutput.body;
2557
+ $metadata = deserializeMetadata(output);
2558
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2526
2559
  response = new __BaseException({
2527
- name: parsedBody.code || parsedBody.Code || errorCode,
2560
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2528
2561
  $fault: "client",
2529
- $metadata: deserializeMetadata(output),
2562
+ $metadata: $metadata,
2530
2563
  });
2531
2564
  throw __decorateServiceException(response, parsedBody);
2532
2565
  }
@@ -2551,7 +2584,7 @@ export var deserializeAws_json1_1PutRegistryScanningConfigurationCommand = funct
2551
2584
  });
2552
2585
  }); };
2553
2586
  var deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2554
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2587
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2555
2588
  var _c;
2556
2589
  return __generator(this, function (_d) {
2557
2590
  switch (_d.label) {
@@ -2561,7 +2594,6 @@ var deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = functio
2561
2594
  return [4, parseBody(output.body, context)];
2562
2595
  case 1:
2563
2596
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2564
- errorCode = "UnknownError";
2565
2597
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2566
2598
  _b = errorCode;
2567
2599
  switch (_b) {
@@ -2581,10 +2613,12 @@ var deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = functio
2581
2613
  case 7: throw _d.sent();
2582
2614
  case 8:
2583
2615
  parsedBody = parsedOutput.body;
2616
+ $metadata = deserializeMetadata(output);
2617
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2584
2618
  response = new __BaseException({
2585
- name: parsedBody.code || parsedBody.Code || errorCode,
2619
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2586
2620
  $fault: "client",
2587
- $metadata: deserializeMetadata(output),
2621
+ $metadata: $metadata,
2588
2622
  });
2589
2623
  throw __decorateServiceException(response, parsedBody);
2590
2624
  }
@@ -2609,7 +2643,7 @@ export var deserializeAws_json1_1PutReplicationConfigurationCommand = function (
2609
2643
  });
2610
2644
  }); };
2611
2645
  var deserializeAws_json1_1PutReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2612
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2646
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2613
2647
  var _c;
2614
2648
  return __generator(this, function (_d) {
2615
2649
  switch (_d.label) {
@@ -2619,7 +2653,6 @@ var deserializeAws_json1_1PutReplicationConfigurationCommandError = function (ou
2619
2653
  return [4, parseBody(output.body, context)];
2620
2654
  case 1:
2621
2655
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2622
- errorCode = "UnknownError";
2623
2656
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2624
2657
  _b = errorCode;
2625
2658
  switch (_b) {
@@ -2639,10 +2672,12 @@ var deserializeAws_json1_1PutReplicationConfigurationCommandError = function (ou
2639
2672
  case 7: throw _d.sent();
2640
2673
  case 8:
2641
2674
  parsedBody = parsedOutput.body;
2675
+ $metadata = deserializeMetadata(output);
2676
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2642
2677
  response = new __BaseException({
2643
- name: parsedBody.code || parsedBody.Code || errorCode,
2678
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2644
2679
  $fault: "client",
2645
- $metadata: deserializeMetadata(output),
2680
+ $metadata: $metadata,
2646
2681
  });
2647
2682
  throw __decorateServiceException(response, parsedBody);
2648
2683
  }
@@ -2667,7 +2702,7 @@ export var deserializeAws_json1_1SetRepositoryPolicyCommand = function (output,
2667
2702
  });
2668
2703
  }); };
2669
2704
  var deserializeAws_json1_1SetRepositoryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2670
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2705
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2671
2706
  var _c;
2672
2707
  return __generator(this, function (_d) {
2673
2708
  switch (_d.label) {
@@ -2677,7 +2712,6 @@ var deserializeAws_json1_1SetRepositoryPolicyCommandError = function (output, co
2677
2712
  return [4, parseBody(output.body, context)];
2678
2713
  case 1:
2679
2714
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2680
- errorCode = "UnknownError";
2681
2715
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2682
2716
  _b = errorCode;
2683
2717
  switch (_b) {
@@ -2697,10 +2731,12 @@ var deserializeAws_json1_1SetRepositoryPolicyCommandError = function (output, co
2697
2731
  case 7: throw _d.sent();
2698
2732
  case 8:
2699
2733
  parsedBody = parsedOutput.body;
2734
+ $metadata = deserializeMetadata(output);
2735
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2700
2736
  response = new __BaseException({
2701
- name: parsedBody.code || parsedBody.Code || errorCode,
2737
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2702
2738
  $fault: "client",
2703
- $metadata: deserializeMetadata(output),
2739
+ $metadata: $metadata,
2704
2740
  });
2705
2741
  throw __decorateServiceException(response, parsedBody);
2706
2742
  }
@@ -2725,7 +2761,7 @@ export var deserializeAws_json1_1StartImageScanCommand = function (output, conte
2725
2761
  });
2726
2762
  }); };
2727
2763
  var deserializeAws_json1_1StartImageScanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2728
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2764
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2729
2765
  var _c;
2730
2766
  return __generator(this, function (_d) {
2731
2767
  switch (_d.label) {
@@ -2735,7 +2771,6 @@ var deserializeAws_json1_1StartImageScanCommandError = function (output, context
2735
2771
  return [4, parseBody(output.body, context)];
2736
2772
  case 1:
2737
2773
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2738
- errorCode = "UnknownError";
2739
2774
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2740
2775
  _b = errorCode;
2741
2776
  switch (_b) {
@@ -2771,10 +2806,12 @@ var deserializeAws_json1_1StartImageScanCommandError = function (output, context
2771
2806
  case 15: throw _d.sent();
2772
2807
  case 16:
2773
2808
  parsedBody = parsedOutput.body;
2809
+ $metadata = deserializeMetadata(output);
2810
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2774
2811
  response = new __BaseException({
2775
- name: parsedBody.code || parsedBody.Code || errorCode,
2812
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2776
2813
  $fault: "client",
2777
- $metadata: deserializeMetadata(output),
2814
+ $metadata: $metadata,
2778
2815
  });
2779
2816
  throw __decorateServiceException(response, parsedBody);
2780
2817
  }
@@ -2799,7 +2836,7 @@ export var deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = function (
2799
2836
  });
2800
2837
  }); };
2801
2838
  var deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2802
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2839
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2803
2840
  var _c;
2804
2841
  return __generator(this, function (_d) {
2805
2842
  switch (_d.label) {
@@ -2809,7 +2846,6 @@ var deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = function (ou
2809
2846
  return [4, parseBody(output.body, context)];
2810
2847
  case 1:
2811
2848
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2812
- errorCode = "UnknownError";
2813
2849
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2814
2850
  _b = errorCode;
2815
2851
  switch (_b) {
@@ -2837,10 +2873,12 @@ var deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = function (ou
2837
2873
  case 11: throw _d.sent();
2838
2874
  case 12:
2839
2875
  parsedBody = parsedOutput.body;
2876
+ $metadata = deserializeMetadata(output);
2877
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2840
2878
  response = new __BaseException({
2841
- name: parsedBody.code || parsedBody.Code || errorCode,
2879
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2842
2880
  $fault: "client",
2843
- $metadata: deserializeMetadata(output),
2881
+ $metadata: $metadata,
2844
2882
  });
2845
2883
  throw __decorateServiceException(response, parsedBody);
2846
2884
  }
@@ -2865,7 +2903,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
2865
2903
  });
2866
2904
  }); };
2867
2905
  var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2868
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2906
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2869
2907
  var _c;
2870
2908
  return __generator(this, function (_d) {
2871
2909
  switch (_d.label) {
@@ -2875,7 +2913,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
2875
2913
  return [4, parseBody(output.body, context)];
2876
2914
  case 1:
2877
2915
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2878
- errorCode = "UnknownError";
2879
2916
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2880
2917
  _b = errorCode;
2881
2918
  switch (_b) {
@@ -2903,10 +2940,12 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
2903
2940
  case 11: throw _d.sent();
2904
2941
  case 12:
2905
2942
  parsedBody = parsedOutput.body;
2943
+ $metadata = deserializeMetadata(output);
2944
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2906
2945
  response = new __BaseException({
2907
- name: parsedBody.code || parsedBody.Code || errorCode,
2946
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2908
2947
  $fault: "client",
2909
- $metadata: deserializeMetadata(output),
2948
+ $metadata: $metadata,
2910
2949
  });
2911
2950
  throw __decorateServiceException(response, parsedBody);
2912
2951
  }
@@ -2931,7 +2970,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
2931
2970
  });
2932
2971
  }); };
2933
2972
  var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2934
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2973
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2935
2974
  var _c;
2936
2975
  return __generator(this, function (_d) {
2937
2976
  switch (_d.label) {
@@ -2941,7 +2980,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
2941
2980
  return [4, parseBody(output.body, context)];
2942
2981
  case 1:
2943
2982
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2944
- errorCode = "UnknownError";
2945
2983
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2946
2984
  _b = errorCode;
2947
2985
  switch (_b) {
@@ -2969,10 +3007,12 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
2969
3007
  case 11: throw _d.sent();
2970
3008
  case 12:
2971
3009
  parsedBody = parsedOutput.body;
3010
+ $metadata = deserializeMetadata(output);
3011
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2972
3012
  response = new __BaseException({
2973
- name: parsedBody.code || parsedBody.Code || errorCode,
3013
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2974
3014
  $fault: "client",
2975
- $metadata: deserializeMetadata(output),
3015
+ $metadata: $metadata,
2976
3016
  });
2977
3017
  throw __decorateServiceException(response, parsedBody);
2978
3018
  }
@@ -2997,7 +3037,7 @@ export var deserializeAws_json1_1UploadLayerPartCommand = function (output, cont
2997
3037
  });
2998
3038
  }); };
2999
3039
  var deserializeAws_json1_1UploadLayerPartCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3000
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3040
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3001
3041
  var _c;
3002
3042
  return __generator(this, function (_d) {
3003
3043
  switch (_d.label) {
@@ -3007,7 +3047,6 @@ var deserializeAws_json1_1UploadLayerPartCommandError = function (output, contex
3007
3047
  return [4, parseBody(output.body, context)];
3008
3048
  case 1:
3009
3049
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3010
- errorCode = "UnknownError";
3011
3050
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3012
3051
  _b = errorCode;
3013
3052
  switch (_b) {
@@ -3043,10 +3082,12 @@ var deserializeAws_json1_1UploadLayerPartCommandError = function (output, contex
3043
3082
  case 15: throw _d.sent();
3044
3083
  case 16:
3045
3084
  parsedBody = parsedOutput.body;
3085
+ $metadata = deserializeMetadata(output);
3086
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3046
3087
  response = new __BaseException({
3047
- name: parsedBody.code || parsedBody.Code || errorCode,
3088
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3048
3089
  $fault: "client",
3049
- $metadata: deserializeMetadata(output),
3090
+ $metadata: $metadata,
3050
3091
  });
3051
3092
  throw __decorateServiceException(response, parsedBody);
3052
3093
  }
@@ -3350,16 +3391,12 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
3350
3391
  });
3351
3392
  }); };
3352
3393
  var serializeAws_json1_1BatchCheckLayerAvailabilityRequest = function (input, context) {
3353
- return __assign(__assign(__assign({}, (input.layerDigests !== undefined &&
3354
- input.layerDigests !== null && {
3394
+ return __assign(__assign(__assign({}, (input.layerDigests != null && {
3355
3395
  layerDigests: serializeAws_json1_1BatchedOperationLayerDigestList(input.layerDigests, context),
3356
- })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3357
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3396
+ })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3358
3397
  };
3359
3398
  var serializeAws_json1_1BatchDeleteImageRequest = function (input, context) {
3360
- return __assign(__assign(__assign({}, (input.imageIds !== undefined &&
3361
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3362
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3399
+ return __assign(__assign(__assign({}, (input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3363
3400
  };
3364
3401
  var serializeAws_json1_1BatchedOperationLayerDigestList = function (input, context) {
3365
3402
  return input
@@ -3372,98 +3409,72 @@ var serializeAws_json1_1BatchedOperationLayerDigestList = function (input, conte
3372
3409
  });
3373
3410
  };
3374
3411
  var serializeAws_json1_1BatchGetImageRequest = function (input, context) {
3375
- return __assign(__assign(__assign(__assign({}, (input.acceptedMediaTypes !== undefined &&
3376
- input.acceptedMediaTypes !== null && {
3412
+ return __assign(__assign(__assign(__assign({}, (input.acceptedMediaTypes != null && {
3377
3413
  acceptedMediaTypes: serializeAws_json1_1MediaTypeList(input.acceptedMediaTypes, context),
3378
- })), (input.imageIds !== undefined &&
3379
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3380
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3414
+ })), (input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3381
3415
  };
3382
3416
  var serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest = function (input, context) {
3383
- return __assign({}, (input.repositoryNames !== undefined &&
3384
- input.repositoryNames !== null && {
3417
+ return __assign({}, (input.repositoryNames != null && {
3385
3418
  repositoryNames: serializeAws_json1_1ScanningConfigurationRepositoryNameList(input.repositoryNames, context),
3386
3419
  }));
3387
3420
  };
3388
3421
  var serializeAws_json1_1CompleteLayerUploadRequest = function (input, context) {
3389
- return __assign(__assign(__assign(__assign({}, (input.layerDigests !== undefined &&
3390
- input.layerDigests !== null && {
3422
+ return __assign(__assign(__assign(__assign({}, (input.layerDigests != null && {
3391
3423
  layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context),
3392
- })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3393
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }));
3424
+ })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.uploadId != null && { uploadId: input.uploadId }));
3394
3425
  };
3395
3426
  var serializeAws_json1_1CreatePullThroughCacheRuleRequest = function (input, context) {
3396
- return __assign(__assign(__assign({}, (input.ecrRepositoryPrefix !== undefined &&
3397
- input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.upstreamRegistryUrl !== undefined &&
3398
- input.upstreamRegistryUrl !== null && { upstreamRegistryUrl: input.upstreamRegistryUrl }));
3427
+ return __assign(__assign(__assign({}, (input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix })), (input.registryId != null && { registryId: input.registryId })), (input.upstreamRegistryUrl != null && { upstreamRegistryUrl: input.upstreamRegistryUrl }));
3399
3428
  };
3400
3429
  var serializeAws_json1_1CreateRepositoryRequest = function (input, context) {
3401
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.encryptionConfiguration !== undefined &&
3402
- input.encryptionConfiguration !== null && {
3430
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.encryptionConfiguration != null && {
3403
3431
  encryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.encryptionConfiguration, context),
3404
- })), (input.imageScanningConfiguration !== undefined &&
3405
- input.imageScanningConfiguration !== null && {
3432
+ })), (input.imageScanningConfiguration != null && {
3406
3433
  imageScanningConfiguration: serializeAws_json1_1ImageScanningConfiguration(input.imageScanningConfiguration, context),
3407
- })), (input.imageTagMutability !== undefined &&
3408
- input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3409
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3434
+ })), (input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3410
3435
  };
3411
3436
  var serializeAws_json1_1DeleteLifecyclePolicyRequest = function (input, context) {
3412
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3413
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3437
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3414
3438
  };
3415
3439
  var serializeAws_json1_1DeletePullThroughCacheRuleRequest = function (input, context) {
3416
- return __assign(__assign({}, (input.ecrRepositoryPrefix !== undefined &&
3417
- input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }));
3440
+ return __assign(__assign({}, (input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix })), (input.registryId != null && { registryId: input.registryId }));
3418
3441
  };
3419
3442
  var serializeAws_json1_1DeleteRegistryPolicyRequest = function (input, context) {
3420
3443
  return {};
3421
3444
  };
3422
3445
  var serializeAws_json1_1DeleteRepositoryPolicyRequest = function (input, context) {
3423
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3424
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3446
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3425
3447
  };
3426
3448
  var serializeAws_json1_1DeleteRepositoryRequest = function (input, context) {
3427
- return __assign(__assign(__assign({}, (input.force !== undefined && input.force !== null && { force: input.force })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3428
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3449
+ return __assign(__assign(__assign({}, (input.force != null && { force: input.force })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3429
3450
  };
3430
3451
  var serializeAws_json1_1DescribeImageReplicationStatusRequest = function (input, context) {
3431
- return __assign(__assign(__assign({}, (input.imageId !== undefined &&
3432
- input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3433
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3452
+ return __assign(__assign(__assign({}, (input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3434
3453
  };
3435
3454
  var serializeAws_json1_1DescribeImageScanFindingsRequest = function (input, context) {
3436
- return __assign(__assign(__assign(__assign(__assign({}, (input.imageId !== undefined &&
3437
- input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3438
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3455
+ return __assign(__assign(__assign(__assign(__assign({}, (input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3439
3456
  };
3440
3457
  var serializeAws_json1_1DescribeImagesFilter = function (input, context) {
3441
- return __assign({}, (input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }));
3458
+ return __assign({}, (input.tagStatus != null && { tagStatus: input.tagStatus }));
3442
3459
  };
3443
3460
  var serializeAws_json1_1DescribeImagesRequest = function (input, context) {
3444
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3445
- input.filter !== null && { filter: serializeAws_json1_1DescribeImagesFilter(input.filter, context) })), (input.imageIds !== undefined &&
3446
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3447
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3461
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1DescribeImagesFilter(input.filter, context) })), (input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3448
3462
  };
3449
3463
  var serializeAws_json1_1DescribePullThroughCacheRulesRequest = function (input, context) {
3450
- return __assign(__assign(__assign(__assign({}, (input.ecrRepositoryPrefixes !== undefined &&
3451
- input.ecrRepositoryPrefixes !== null && {
3464
+ return __assign(__assign(__assign(__assign({}, (input.ecrRepositoryPrefixes != null && {
3452
3465
  ecrRepositoryPrefixes: serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList(input.ecrRepositoryPrefixes, context),
3453
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }));
3466
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId }));
3454
3467
  };
3455
3468
  var serializeAws_json1_1DescribeRegistryRequest = function (input, context) {
3456
3469
  return {};
3457
3470
  };
3458
3471
  var serializeAws_json1_1DescribeRepositoriesRequest = function (input, context) {
3459
- return __assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryNames !== undefined &&
3460
- input.repositoryNames !== null && {
3472
+ return __assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryNames != null && {
3461
3473
  repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
3462
3474
  }));
3463
3475
  };
3464
3476
  var serializeAws_json1_1EncryptionConfiguration = function (input, context) {
3465
- return __assign(__assign({}, (input.encryptionType !== undefined &&
3466
- input.encryptionType !== null && { encryptionType: input.encryptionType })), (input.kmsKey !== undefined && input.kmsKey !== null && { kmsKey: input.kmsKey }));
3477
+ return __assign(__assign({}, (input.encryptionType != null && { encryptionType: input.encryptionType })), (input.kmsKey != null && { kmsKey: input.kmsKey }));
3467
3478
  };
3468
3479
  var serializeAws_json1_1GetAuthorizationTokenRegistryIdList = function (input, context) {
3469
3480
  return input
@@ -3476,24 +3487,18 @@ var serializeAws_json1_1GetAuthorizationTokenRegistryIdList = function (input, c
3476
3487
  });
3477
3488
  };
3478
3489
  var serializeAws_json1_1GetAuthorizationTokenRequest = function (input, context) {
3479
- return __assign({}, (input.registryIds !== undefined &&
3480
- input.registryIds !== null && {
3490
+ return __assign({}, (input.registryIds != null && {
3481
3491
  registryIds: serializeAws_json1_1GetAuthorizationTokenRegistryIdList(input.registryIds, context),
3482
3492
  }));
3483
3493
  };
3484
3494
  var serializeAws_json1_1GetDownloadUrlForLayerRequest = function (input, context) {
3485
- return __assign(__assign(__assign({}, (input.layerDigest !== undefined && input.layerDigest !== null && { layerDigest: input.layerDigest })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3486
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3495
+ return __assign(__assign(__assign({}, (input.layerDigest != null && { layerDigest: input.layerDigest })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3487
3496
  };
3488
3497
  var serializeAws_json1_1GetLifecyclePolicyPreviewRequest = function (input, context) {
3489
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3490
- input.filter !== null && { filter: serializeAws_json1_1LifecyclePolicyPreviewFilter(input.filter, context) })), (input.imageIds !== undefined &&
3491
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3492
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3498
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1LifecyclePolicyPreviewFilter(input.filter, context) })), (input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3493
3499
  };
3494
3500
  var serializeAws_json1_1GetLifecyclePolicyRequest = function (input, context) {
3495
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3496
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3501
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3497
3502
  };
3498
3503
  var serializeAws_json1_1GetRegistryPolicyRequest = function (input, context) {
3499
3504
  return {};
@@ -3502,11 +3507,10 @@ var serializeAws_json1_1GetRegistryScanningConfigurationRequest = function (inpu
3502
3507
  return {};
3503
3508
  };
3504
3509
  var serializeAws_json1_1GetRepositoryPolicyRequest = function (input, context) {
3505
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3506
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3510
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3507
3511
  };
3508
3512
  var serializeAws_json1_1ImageIdentifier = function (input, context) {
3509
- return __assign(__assign({}, (input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest })), (input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }));
3513
+ return __assign(__assign({}, (input.imageDigest != null && { imageDigest: input.imageDigest })), (input.imageTag != null && { imageTag: input.imageTag }));
3510
3514
  };
3511
3515
  var serializeAws_json1_1ImageIdentifierList = function (input, context) {
3512
3516
  return input
@@ -3519,11 +3523,10 @@ var serializeAws_json1_1ImageIdentifierList = function (input, context) {
3519
3523
  });
3520
3524
  };
3521
3525
  var serializeAws_json1_1ImageScanningConfiguration = function (input, context) {
3522
- return __assign({}, (input.scanOnPush !== undefined && input.scanOnPush !== null && { scanOnPush: input.scanOnPush }));
3526
+ return __assign({}, (input.scanOnPush != null && { scanOnPush: input.scanOnPush }));
3523
3527
  };
3524
3528
  var serializeAws_json1_1InitiateLayerUploadRequest = function (input, context) {
3525
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3526
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3529
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3527
3530
  };
3528
3531
  var serializeAws_json1_1LayerDigestList = function (input, context) {
3529
3532
  return input
@@ -3536,18 +3539,16 @@ var serializeAws_json1_1LayerDigestList = function (input, context) {
3536
3539
  });
3537
3540
  };
3538
3541
  var serializeAws_json1_1LifecyclePolicyPreviewFilter = function (input, context) {
3539
- return __assign({}, (input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }));
3542
+ return __assign({}, (input.tagStatus != null && { tagStatus: input.tagStatus }));
3540
3543
  };
3541
3544
  var serializeAws_json1_1ListImagesFilter = function (input, context) {
3542
- return __assign({}, (input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }));
3545
+ return __assign({}, (input.tagStatus != null && { tagStatus: input.tagStatus }));
3543
3546
  };
3544
3547
  var serializeAws_json1_1ListImagesRequest = function (input, context) {
3545
- return __assign(__assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3546
- input.filter !== null && { filter: serializeAws_json1_1ListImagesFilter(input.filter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3547
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3548
+ return __assign(__assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1ListImagesFilter(input.filter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3548
3549
  };
3549
3550
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
3550
- return __assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
3551
+ return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
3551
3552
  };
3552
3553
  var serializeAws_json1_1MediaTypeList = function (input, context) {
3553
3554
  return input
@@ -3570,45 +3571,34 @@ var serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList = function (inp
3570
3571
  });
3571
3572
  };
3572
3573
  var serializeAws_json1_1PutImageRequest = function (input, context) {
3573
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest })), (input.imageManifest !== undefined && input.imageManifest !== null && { imageManifest: input.imageManifest })), (input.imageManifestMediaType !== undefined &&
3574
- input.imageManifestMediaType !== null && { imageManifestMediaType: input.imageManifestMediaType })), (input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3575
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3574
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.imageDigest != null && { imageDigest: input.imageDigest })), (input.imageManifest != null && { imageManifest: input.imageManifest })), (input.imageManifestMediaType != null && { imageManifestMediaType: input.imageManifestMediaType })), (input.imageTag != null && { imageTag: input.imageTag })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3576
3575
  };
3577
3576
  var serializeAws_json1_1PutImageScanningConfigurationRequest = function (input, context) {
3578
- return __assign(__assign(__assign({}, (input.imageScanningConfiguration !== undefined &&
3579
- input.imageScanningConfiguration !== null && {
3577
+ return __assign(__assign(__assign({}, (input.imageScanningConfiguration != null && {
3580
3578
  imageScanningConfiguration: serializeAws_json1_1ImageScanningConfiguration(input.imageScanningConfiguration, context),
3581
- })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3582
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3579
+ })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3583
3580
  };
3584
3581
  var serializeAws_json1_1PutImageTagMutabilityRequest = function (input, context) {
3585
- return __assign(__assign(__assign({}, (input.imageTagMutability !== undefined &&
3586
- input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3587
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3582
+ return __assign(__assign(__assign({}, (input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3588
3583
  };
3589
3584
  var serializeAws_json1_1PutLifecyclePolicyRequest = function (input, context) {
3590
- return __assign(__assign(__assign({}, (input.lifecyclePolicyText !== undefined &&
3591
- input.lifecyclePolicyText !== null && { lifecyclePolicyText: input.lifecyclePolicyText })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3592
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3585
+ return __assign(__assign(__assign({}, (input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3593
3586
  };
3594
3587
  var serializeAws_json1_1PutRegistryPolicyRequest = function (input, context) {
3595
- return __assign({}, (input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText }));
3588
+ return __assign({}, (input.policyText != null && { policyText: input.policyText }));
3596
3589
  };
3597
3590
  var serializeAws_json1_1PutRegistryScanningConfigurationRequest = function (input, context) {
3598
- return __assign(__assign({}, (input.rules !== undefined &&
3599
- input.rules !== null && { rules: serializeAws_json1_1RegistryScanningRuleList(input.rules, context) })), (input.scanType !== undefined && input.scanType !== null && { scanType: input.scanType }));
3591
+ return __assign(__assign({}, (input.rules != null && { rules: serializeAws_json1_1RegistryScanningRuleList(input.rules, context) })), (input.scanType != null && { scanType: input.scanType }));
3600
3592
  };
3601
3593
  var serializeAws_json1_1PutReplicationConfigurationRequest = function (input, context) {
3602
- return __assign({}, (input.replicationConfiguration !== undefined &&
3603
- input.replicationConfiguration !== null && {
3594
+ return __assign({}, (input.replicationConfiguration != null && {
3604
3595
  replicationConfiguration: serializeAws_json1_1ReplicationConfiguration(input.replicationConfiguration, context),
3605
3596
  }));
3606
3597
  };
3607
3598
  var serializeAws_json1_1RegistryScanningRule = function (input, context) {
3608
- return __assign(__assign({}, (input.repositoryFilters !== undefined &&
3609
- input.repositoryFilters !== null && {
3599
+ return __assign(__assign({}, (input.repositoryFilters != null && {
3610
3600
  repositoryFilters: serializeAws_json1_1ScanningRepositoryFilterList(input.repositoryFilters, context),
3611
- })), (input.scanFrequency !== undefined && input.scanFrequency !== null && { scanFrequency: input.scanFrequency }));
3601
+ })), (input.scanFrequency != null && { scanFrequency: input.scanFrequency }));
3612
3602
  };
3613
3603
  var serializeAws_json1_1RegistryScanningRuleList = function (input, context) {
3614
3604
  return input
@@ -3621,11 +3611,10 @@ var serializeAws_json1_1RegistryScanningRuleList = function (input, context) {
3621
3611
  });
3622
3612
  };
3623
3613
  var serializeAws_json1_1ReplicationConfiguration = function (input, context) {
3624
- return __assign({}, (input.rules !== undefined &&
3625
- input.rules !== null && { rules: serializeAws_json1_1ReplicationRuleList(input.rules, context) }));
3614
+ return __assign({}, (input.rules != null && { rules: serializeAws_json1_1ReplicationRuleList(input.rules, context) }));
3626
3615
  };
3627
3616
  var serializeAws_json1_1ReplicationDestination = function (input, context) {
3628
- return __assign(__assign({}, (input.region !== undefined && input.region !== null && { region: input.region })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }));
3617
+ return __assign(__assign({}, (input.region != null && { region: input.region })), (input.registryId != null && { registryId: input.registryId }));
3629
3618
  };
3630
3619
  var serializeAws_json1_1ReplicationDestinationList = function (input, context) {
3631
3620
  return input
@@ -3638,11 +3627,9 @@ var serializeAws_json1_1ReplicationDestinationList = function (input, context) {
3638
3627
  });
3639
3628
  };
3640
3629
  var serializeAws_json1_1ReplicationRule = function (input, context) {
3641
- return __assign(__assign({}, (input.destinations !== undefined &&
3642
- input.destinations !== null && {
3630
+ return __assign(__assign({}, (input.destinations != null && {
3643
3631
  destinations: serializeAws_json1_1ReplicationDestinationList(input.destinations, context),
3644
- })), (input.repositoryFilters !== undefined &&
3645
- input.repositoryFilters !== null && {
3632
+ })), (input.repositoryFilters != null && {
3646
3633
  repositoryFilters: serializeAws_json1_1RepositoryFilterList(input.repositoryFilters, context),
3647
3634
  }));
3648
3635
  };
@@ -3657,7 +3644,7 @@ var serializeAws_json1_1ReplicationRuleList = function (input, context) {
3657
3644
  });
3658
3645
  };
3659
3646
  var serializeAws_json1_1RepositoryFilter = function (input, context) {
3660
- return __assign(__assign({}, (input.filter !== undefined && input.filter !== null && { filter: input.filter })), (input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }));
3647
+ return __assign(__assign({}, (input.filter != null && { filter: input.filter })), (input.filterType != null && { filterType: input.filterType }));
3661
3648
  };
3662
3649
  var serializeAws_json1_1RepositoryFilterList = function (input, context) {
3663
3650
  return input
@@ -3690,7 +3677,7 @@ var serializeAws_json1_1ScanningConfigurationRepositoryNameList = function (inpu
3690
3677
  });
3691
3678
  };
3692
3679
  var serializeAws_json1_1ScanningRepositoryFilter = function (input, context) {
3693
- return __assign(__assign({}, (input.filter !== undefined && input.filter !== null && { filter: input.filter })), (input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }));
3680
+ return __assign(__assign({}, (input.filter != null && { filter: input.filter })), (input.filterType != null && { filterType: input.filterType }));
3694
3681
  };
3695
3682
  var serializeAws_json1_1ScanningRepositoryFilterList = function (input, context) {
3696
3683
  return input
@@ -3703,21 +3690,16 @@ var serializeAws_json1_1ScanningRepositoryFilterList = function (input, context)
3703
3690
  });
3704
3691
  };
3705
3692
  var serializeAws_json1_1SetRepositoryPolicyRequest = function (input, context) {
3706
- return __assign(__assign(__assign(__assign({}, (input.force !== undefined && input.force !== null && { force: input.force })), (input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3707
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3693
+ return __assign(__assign(__assign(__assign({}, (input.force != null && { force: input.force })), (input.policyText != null && { policyText: input.policyText })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3708
3694
  };
3709
3695
  var serializeAws_json1_1StartImageScanRequest = function (input, context) {
3710
- return __assign(__assign(__assign({}, (input.imageId !== undefined &&
3711
- input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3712
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3696
+ return __assign(__assign(__assign({}, (input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3713
3697
  };
3714
3698
  var serializeAws_json1_1StartLifecyclePolicyPreviewRequest = function (input, context) {
3715
- return __assign(__assign(__assign({}, (input.lifecyclePolicyText !== undefined &&
3716
- input.lifecyclePolicyText !== null && { lifecyclePolicyText: input.lifecyclePolicyText })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3717
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3699
+ return __assign(__assign(__assign({}, (input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3718
3700
  };
3719
3701
  var serializeAws_json1_1Tag = function (input, context) {
3720
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
3702
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
3721
3703
  };
3722
3704
  var serializeAws_json1_1TagKeyList = function (input, context) {
3723
3705
  return input
@@ -3740,16 +3722,13 @@ var serializeAws_json1_1TagList = function (input, context) {
3740
3722
  });
3741
3723
  };
3742
3724
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
3743
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3725
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3744
3726
  };
3745
3727
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
3746
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
3747
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
3728
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
3748
3729
  };
3749
3730
  var serializeAws_json1_1UploadLayerPartRequest = function (input, context) {
3750
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.layerPartBlob !== undefined &&
3751
- input.layerPartBlob !== null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) })), (input.partFirstByte !== undefined && input.partFirstByte !== null && { partFirstByte: input.partFirstByte })), (input.partLastByte !== undefined && input.partLastByte !== null && { partLastByte: input.partLastByte })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3752
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }));
3731
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.layerPartBlob != null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) })), (input.partFirstByte != null && { partFirstByte: input.partFirstByte })), (input.partLastByte != null && { partLastByte: input.partLastByte })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.uploadId != null && { uploadId: input.uploadId }));
3753
3732
  };
3754
3733
  var deserializeAws_json1_1Attribute = function (output, context) {
3755
3734
  return {
@@ -3771,9 +3750,7 @@ var deserializeAws_json1_1AttributeList = function (output, context) {
3771
3750
  var deserializeAws_json1_1AuthorizationData = function (output, context) {
3772
3751
  return {
3773
3752
  authorizationToken: __expectString(output.authorizationToken),
3774
- expiresAt: output.expiresAt !== undefined && output.expiresAt !== null
3775
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt)))
3776
- : undefined,
3753
+ expiresAt: output.expiresAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt))) : undefined,
3777
3754
  proxyEndpoint: __expectString(output.proxyEndpoint),
3778
3755
  };
3779
3756
  };
@@ -3793,53 +3770,37 @@ var deserializeAws_json1_1AwsEcrContainerImageDetails = function (output, contex
3793
3770
  architecture: __expectString(output.architecture),
3794
3771
  author: __expectString(output.author),
3795
3772
  imageHash: __expectString(output.imageHash),
3796
- imageTags: output.imageTags !== undefined && output.imageTags !== null
3797
- ? deserializeAws_json1_1ImageTagsList(output.imageTags, context)
3798
- : undefined,
3773
+ imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagsList(output.imageTags, context) : undefined,
3799
3774
  platform: __expectString(output.platform),
3800
- pushedAt: output.pushedAt !== undefined && output.pushedAt !== null
3801
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt)))
3802
- : undefined,
3775
+ pushedAt: output.pushedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt))) : undefined,
3803
3776
  registry: __expectString(output.registry),
3804
3777
  repositoryName: __expectString(output.repositoryName),
3805
3778
  };
3806
3779
  };
3807
3780
  var deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = function (output, context) {
3808
3781
  return {
3809
- failures: output.failures !== undefined && output.failures !== null
3810
- ? deserializeAws_json1_1LayerFailureList(output.failures, context)
3811
- : undefined,
3812
- layers: output.layers !== undefined && output.layers !== null
3813
- ? deserializeAws_json1_1LayerList(output.layers, context)
3814
- : undefined,
3782
+ failures: output.failures != null ? deserializeAws_json1_1LayerFailureList(output.failures, context) : undefined,
3783
+ layers: output.layers != null ? deserializeAws_json1_1LayerList(output.layers, context) : undefined,
3815
3784
  };
3816
3785
  };
3817
3786
  var deserializeAws_json1_1BatchDeleteImageResponse = function (output, context) {
3818
3787
  return {
3819
- failures: output.failures !== undefined && output.failures !== null
3820
- ? deserializeAws_json1_1ImageFailureList(output.failures, context)
3821
- : undefined,
3822
- imageIds: output.imageIds !== undefined && output.imageIds !== null
3823
- ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
3824
- : undefined,
3788
+ failures: output.failures != null ? deserializeAws_json1_1ImageFailureList(output.failures, context) : undefined,
3789
+ imageIds: output.imageIds != null ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) : undefined,
3825
3790
  };
3826
3791
  };
3827
3792
  var deserializeAws_json1_1BatchGetImageResponse = function (output, context) {
3828
3793
  return {
3829
- failures: output.failures !== undefined && output.failures !== null
3830
- ? deserializeAws_json1_1ImageFailureList(output.failures, context)
3831
- : undefined,
3832
- images: output.images !== undefined && output.images !== null
3833
- ? deserializeAws_json1_1ImageList(output.images, context)
3834
- : undefined,
3794
+ failures: output.failures != null ? deserializeAws_json1_1ImageFailureList(output.failures, context) : undefined,
3795
+ images: output.images != null ? deserializeAws_json1_1ImageList(output.images, context) : undefined,
3835
3796
  };
3836
3797
  };
3837
3798
  var deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse = function (output, context) {
3838
3799
  return {
3839
- failures: output.failures !== undefined && output.failures !== null
3800
+ failures: output.failures != null
3840
3801
  ? deserializeAws_json1_1RepositoryScanningConfigurationFailureList(output.failures, context)
3841
3802
  : undefined,
3842
- scanningConfigurations: output.scanningConfigurations !== undefined && output.scanningConfigurations !== null
3803
+ scanningConfigurations: output.scanningConfigurations != null
3843
3804
  ? deserializeAws_json1_1RepositoryScanningConfigurationList(output.scanningConfigurations, context)
3844
3805
  : undefined,
3845
3806
  };
@@ -3854,9 +3815,7 @@ var deserializeAws_json1_1CompleteLayerUploadResponse = function (output, contex
3854
3815
  };
3855
3816
  var deserializeAws_json1_1CreatePullThroughCacheRuleResponse = function (output, context) {
3856
3817
  return {
3857
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3858
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3859
- : undefined,
3818
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3860
3819
  ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
3861
3820
  registryId: __expectString(output.registryId),
3862
3821
  upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
@@ -3864,9 +3823,7 @@ var deserializeAws_json1_1CreatePullThroughCacheRuleResponse = function (output,
3864
3823
  };
3865
3824
  var deserializeAws_json1_1CreateRepositoryResponse = function (output, context) {
3866
3825
  return {
3867
- repository: output.repository !== undefined && output.repository !== null
3868
- ? deserializeAws_json1_1Repository(output.repository, context)
3869
- : undefined,
3826
+ repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
3870
3827
  };
3871
3828
  };
3872
3829
  var deserializeAws_json1_1CvssScore = function (output, context) {
@@ -3896,7 +3853,7 @@ var deserializeAws_json1_1CvssScoreAdjustmentList = function (output, context) {
3896
3853
  };
3897
3854
  var deserializeAws_json1_1CvssScoreDetails = function (output, context) {
3898
3855
  return {
3899
- adjustments: output.adjustments !== undefined && output.adjustments !== null
3856
+ adjustments: output.adjustments != null
3900
3857
  ? deserializeAws_json1_1CvssScoreAdjustmentList(output.adjustments, context)
3901
3858
  : undefined,
3902
3859
  score: __limitedParseDouble(output.score),
@@ -3918,7 +3875,7 @@ var deserializeAws_json1_1CvssScoreList = function (output, context) {
3918
3875
  };
3919
3876
  var deserializeAws_json1_1DeleteLifecyclePolicyResponse = function (output, context) {
3920
3877
  return {
3921
- lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
3878
+ lastEvaluatedAt: output.lastEvaluatedAt != null
3922
3879
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastEvaluatedAt)))
3923
3880
  : undefined,
3924
3881
  lifecyclePolicyText: __expectString(output.lifecyclePolicyText),
@@ -3928,9 +3885,7 @@ var deserializeAws_json1_1DeleteLifecyclePolicyResponse = function (output, cont
3928
3885
  };
3929
3886
  var deserializeAws_json1_1DeletePullThroughCacheRuleResponse = function (output, context) {
3930
3887
  return {
3931
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3932
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3933
- : undefined,
3888
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3934
3889
  ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
3935
3890
  registryId: __expectString(output.registryId),
3936
3891
  upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
@@ -3951,17 +3906,13 @@ var deserializeAws_json1_1DeleteRepositoryPolicyResponse = function (output, con
3951
3906
  };
3952
3907
  var deserializeAws_json1_1DeleteRepositoryResponse = function (output, context) {
3953
3908
  return {
3954
- repository: output.repository !== undefined && output.repository !== null
3955
- ? deserializeAws_json1_1Repository(output.repository, context)
3956
- : undefined,
3909
+ repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
3957
3910
  };
3958
3911
  };
3959
3912
  var deserializeAws_json1_1DescribeImageReplicationStatusResponse = function (output, context) {
3960
3913
  return {
3961
- imageId: output.imageId !== undefined && output.imageId !== null
3962
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
3963
- : undefined,
3964
- replicationStatuses: output.replicationStatuses !== undefined && output.replicationStatuses !== null
3914
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
3915
+ replicationStatuses: output.replicationStatuses != null
3965
3916
  ? deserializeAws_json1_1ImageReplicationStatusList(output.replicationStatuses, context)
3966
3917
  : undefined,
3967
3918
  repositoryName: __expectString(output.repositoryName),
@@ -3969,13 +3920,11 @@ var deserializeAws_json1_1DescribeImageReplicationStatusResponse = function (out
3969
3920
  };
3970
3921
  var deserializeAws_json1_1DescribeImageScanFindingsResponse = function (output, context) {
3971
3922
  return {
3972
- imageId: output.imageId !== undefined && output.imageId !== null
3973
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
3974
- : undefined,
3975
- imageScanFindings: output.imageScanFindings !== undefined && output.imageScanFindings !== null
3923
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
3924
+ imageScanFindings: output.imageScanFindings != null
3976
3925
  ? deserializeAws_json1_1ImageScanFindings(output.imageScanFindings, context)
3977
3926
  : undefined,
3978
- imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
3927
+ imageScanStatus: output.imageScanStatus != null
3979
3928
  ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
3980
3929
  : undefined,
3981
3930
  nextToken: __expectString(output.nextToken),
@@ -3985,16 +3934,14 @@ var deserializeAws_json1_1DescribeImageScanFindingsResponse = function (output,
3985
3934
  };
3986
3935
  var deserializeAws_json1_1DescribeImagesResponse = function (output, context) {
3987
3936
  return {
3988
- imageDetails: output.imageDetails !== undefined && output.imageDetails !== null
3989
- ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context)
3990
- : undefined,
3937
+ imageDetails: output.imageDetails != null ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context) : undefined,
3991
3938
  nextToken: __expectString(output.nextToken),
3992
3939
  };
3993
3940
  };
3994
3941
  var deserializeAws_json1_1DescribePullThroughCacheRulesResponse = function (output, context) {
3995
3942
  return {
3996
3943
  nextToken: __expectString(output.nextToken),
3997
- pullThroughCacheRules: output.pullThroughCacheRules !== undefined && output.pullThroughCacheRules !== null
3944
+ pullThroughCacheRules: output.pullThroughCacheRules != null
3998
3945
  ? deserializeAws_json1_1PullThroughCacheRuleList(output.pullThroughCacheRules, context)
3999
3946
  : undefined,
4000
3947
  };
@@ -4002,7 +3949,7 @@ var deserializeAws_json1_1DescribePullThroughCacheRulesResponse = function (outp
4002
3949
  var deserializeAws_json1_1DescribeRegistryResponse = function (output, context) {
4003
3950
  return {
4004
3951
  registryId: __expectString(output.registryId),
4005
- replicationConfiguration: output.replicationConfiguration !== undefined && output.replicationConfiguration !== null
3952
+ replicationConfiguration: output.replicationConfiguration != null
4006
3953
  ? deserializeAws_json1_1ReplicationConfiguration(output.replicationConfiguration, context)
4007
3954
  : undefined,
4008
3955
  };
@@ -4010,9 +3957,7 @@ var deserializeAws_json1_1DescribeRegistryResponse = function (output, context)
4010
3957
  var deserializeAws_json1_1DescribeRepositoriesResponse = function (output, context) {
4011
3958
  return {
4012
3959
  nextToken: __expectString(output.nextToken),
4013
- repositories: output.repositories !== undefined && output.repositories !== null
4014
- ? deserializeAws_json1_1RepositoryList(output.repositories, context)
4015
- : undefined,
3960
+ repositories: output.repositories != null ? deserializeAws_json1_1RepositoryList(output.repositories, context) : undefined,
4016
3961
  };
4017
3962
  };
4018
3963
  var deserializeAws_json1_1EmptyUploadException = function (output, context) {
@@ -4031,32 +3976,24 @@ var deserializeAws_json1_1EnhancedImageScanFinding = function (output, context)
4031
3976
  awsAccountId: __expectString(output.awsAccountId),
4032
3977
  description: __expectString(output.description),
4033
3978
  findingArn: __expectString(output.findingArn),
4034
- firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
3979
+ firstObservedAt: output.firstObservedAt != null
4035
3980
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstObservedAt)))
4036
3981
  : undefined,
4037
- lastObservedAt: output.lastObservedAt !== undefined && output.lastObservedAt !== null
3982
+ lastObservedAt: output.lastObservedAt != null
4038
3983
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastObservedAt)))
4039
3984
  : undefined,
4040
- packageVulnerabilityDetails: output.packageVulnerabilityDetails !== undefined && output.packageVulnerabilityDetails !== null
3985
+ packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
4041
3986
  ? deserializeAws_json1_1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
4042
3987
  : undefined,
4043
- remediation: output.remediation !== undefined && output.remediation !== null
4044
- ? deserializeAws_json1_1Remediation(output.remediation, context)
4045
- : undefined,
4046
- resources: output.resources !== undefined && output.resources !== null
4047
- ? deserializeAws_json1_1ResourceList(output.resources, context)
4048
- : undefined,
3988
+ remediation: output.remediation != null ? deserializeAws_json1_1Remediation(output.remediation, context) : undefined,
3989
+ resources: output.resources != null ? deserializeAws_json1_1ResourceList(output.resources, context) : undefined,
4049
3990
  score: __limitedParseDouble(output.score),
4050
- scoreDetails: output.scoreDetails !== undefined && output.scoreDetails !== null
4051
- ? deserializeAws_json1_1ScoreDetails(output.scoreDetails, context)
4052
- : undefined,
3991
+ scoreDetails: output.scoreDetails != null ? deserializeAws_json1_1ScoreDetails(output.scoreDetails, context) : undefined,
4053
3992
  severity: __expectString(output.severity),
4054
3993
  status: __expectString(output.status),
4055
3994
  title: __expectString(output.title),
4056
3995
  type: __expectString(output.type),
4057
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
4058
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
4059
- : undefined,
3996
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
4060
3997
  };
4061
3998
  };
4062
3999
  var deserializeAws_json1_1EnhancedImageScanFindingList = function (output, context) {
@@ -4082,7 +4019,7 @@ var deserializeAws_json1_1FindingSeverityCounts = function (output, context) {
4082
4019
  };
4083
4020
  var deserializeAws_json1_1GetAuthorizationTokenResponse = function (output, context) {
4084
4021
  return {
4085
- authorizationData: output.authorizationData !== undefined && output.authorizationData !== null
4022
+ authorizationData: output.authorizationData != null
4086
4023
  ? deserializeAws_json1_1AuthorizationDataList(output.authorizationData, context)
4087
4024
  : undefined,
4088
4025
  };
@@ -4097,20 +4034,18 @@ var deserializeAws_json1_1GetLifecyclePolicyPreviewResponse = function (output,
4097
4034
  return {
4098
4035
  lifecyclePolicyText: __expectString(output.lifecyclePolicyText),
4099
4036
  nextToken: __expectString(output.nextToken),
4100
- previewResults: output.previewResults !== undefined && output.previewResults !== null
4037
+ previewResults: output.previewResults != null
4101
4038
  ? deserializeAws_json1_1LifecyclePolicyPreviewResultList(output.previewResults, context)
4102
4039
  : undefined,
4103
4040
  registryId: __expectString(output.registryId),
4104
4041
  repositoryName: __expectString(output.repositoryName),
4105
4042
  status: __expectString(output.status),
4106
- summary: output.summary !== undefined && output.summary !== null
4107
- ? deserializeAws_json1_1LifecyclePolicyPreviewSummary(output.summary, context)
4108
- : undefined,
4043
+ summary: output.summary != null ? deserializeAws_json1_1LifecyclePolicyPreviewSummary(output.summary, context) : undefined,
4109
4044
  };
4110
4045
  };
4111
4046
  var deserializeAws_json1_1GetLifecyclePolicyResponse = function (output, context) {
4112
4047
  return {
4113
- lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
4048
+ lastEvaluatedAt: output.lastEvaluatedAt != null
4114
4049
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastEvaluatedAt)))
4115
4050
  : undefined,
4116
4051
  lifecyclePolicyText: __expectString(output.lifecyclePolicyText),
@@ -4127,7 +4062,7 @@ var deserializeAws_json1_1GetRegistryPolicyResponse = function (output, context)
4127
4062
  var deserializeAws_json1_1GetRegistryScanningConfigurationResponse = function (output, context) {
4128
4063
  return {
4129
4064
  registryId: __expectString(output.registryId),
4130
- scanningConfiguration: output.scanningConfiguration !== undefined && output.scanningConfiguration !== null
4065
+ scanningConfiguration: output.scanningConfiguration != null
4131
4066
  ? deserializeAws_json1_1RegistryScanningConfiguration(output.scanningConfiguration, context)
4132
4067
  : undefined,
4133
4068
  };
@@ -4141,9 +4076,7 @@ var deserializeAws_json1_1GetRepositoryPolicyResponse = function (output, contex
4141
4076
  };
4142
4077
  var deserializeAws_json1_1Image = function (output, context) {
4143
4078
  return {
4144
- imageId: output.imageId !== undefined && output.imageId !== null
4145
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
4146
- : undefined,
4079
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
4147
4080
  imageManifest: __expectString(output.imageManifest),
4148
4081
  imageManifestMediaType: __expectString(output.imageManifestMediaType),
4149
4082
  registryId: __expectString(output.registryId),
@@ -4160,20 +4093,18 @@ var deserializeAws_json1_1ImageDetail = function (output, context) {
4160
4093
  artifactMediaType: __expectString(output.artifactMediaType),
4161
4094
  imageDigest: __expectString(output.imageDigest),
4162
4095
  imageManifestMediaType: __expectString(output.imageManifestMediaType),
4163
- imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null
4096
+ imagePushedAt: output.imagePushedAt != null
4164
4097
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
4165
4098
  : undefined,
4166
- imageScanFindingsSummary: output.imageScanFindingsSummary !== undefined && output.imageScanFindingsSummary !== null
4099
+ imageScanFindingsSummary: output.imageScanFindingsSummary != null
4167
4100
  ? deserializeAws_json1_1ImageScanFindingsSummary(output.imageScanFindingsSummary, context)
4168
4101
  : undefined,
4169
- imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
4102
+ imageScanStatus: output.imageScanStatus != null
4170
4103
  ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
4171
4104
  : undefined,
4172
4105
  imageSizeInBytes: __expectLong(output.imageSizeInBytes),
4173
- imageTags: output.imageTags !== undefined && output.imageTags !== null
4174
- ? deserializeAws_json1_1ImageTagList(output.imageTags, context)
4175
- : undefined,
4176
- lastRecordedPullTime: output.lastRecordedPullTime !== undefined && output.lastRecordedPullTime !== null
4106
+ imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) : undefined,
4107
+ lastRecordedPullTime: output.lastRecordedPullTime != null
4177
4108
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRecordedPullTime)))
4178
4109
  : undefined,
4179
4110
  registryId: __expectString(output.registryId),
@@ -4200,9 +4131,7 @@ var deserializeAws_json1_1ImageFailure = function (output, context) {
4200
4131
  return {
4201
4132
  failureCode: __expectString(output.failureCode),
4202
4133
  failureReason: __expectString(output.failureReason),
4203
- imageId: output.imageId !== undefined && output.imageId !== null
4204
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
4205
- : undefined,
4134
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
4206
4135
  };
4207
4136
  };
4208
4137
  var deserializeAws_json1_1ImageFailureList = function (output, context) {
@@ -4270,9 +4199,7 @@ var deserializeAws_json1_1ImageReplicationStatusList = function (output, context
4270
4199
  };
4271
4200
  var deserializeAws_json1_1ImageScanFinding = function (output, context) {
4272
4201
  return {
4273
- attributes: output.attributes !== undefined && output.attributes !== null
4274
- ? deserializeAws_json1_1AttributeList(output.attributes, context)
4275
- : undefined,
4202
+ attributes: output.attributes != null ? deserializeAws_json1_1AttributeList(output.attributes, context) : undefined,
4276
4203
  description: __expectString(output.description),
4277
4204
  name: __expectString(output.name),
4278
4205
  severity: __expectString(output.severity),
@@ -4292,32 +4219,30 @@ var deserializeAws_json1_1ImageScanFindingList = function (output, context) {
4292
4219
  };
4293
4220
  var deserializeAws_json1_1ImageScanFindings = function (output, context) {
4294
4221
  return {
4295
- enhancedFindings: output.enhancedFindings !== undefined && output.enhancedFindings !== null
4222
+ enhancedFindings: output.enhancedFindings != null
4296
4223
  ? deserializeAws_json1_1EnhancedImageScanFindingList(output.enhancedFindings, context)
4297
4224
  : undefined,
4298
- findingSeverityCounts: output.findingSeverityCounts !== undefined && output.findingSeverityCounts !== null
4225
+ findingSeverityCounts: output.findingSeverityCounts != null
4299
4226
  ? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context)
4300
4227
  : undefined,
4301
- findings: output.findings !== undefined && output.findings !== null
4302
- ? deserializeAws_json1_1ImageScanFindingList(output.findings, context)
4303
- : undefined,
4304
- imageScanCompletedAt: output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null
4228
+ findings: output.findings != null ? deserializeAws_json1_1ImageScanFindingList(output.findings, context) : undefined,
4229
+ imageScanCompletedAt: output.imageScanCompletedAt != null
4305
4230
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imageScanCompletedAt)))
4306
4231
  : undefined,
4307
- vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null
4232
+ vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt != null
4308
4233
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vulnerabilitySourceUpdatedAt)))
4309
4234
  : undefined,
4310
4235
  };
4311
4236
  };
4312
4237
  var deserializeAws_json1_1ImageScanFindingsSummary = function (output, context) {
4313
4238
  return {
4314
- findingSeverityCounts: output.findingSeverityCounts !== undefined && output.findingSeverityCounts !== null
4239
+ findingSeverityCounts: output.findingSeverityCounts != null
4315
4240
  ? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context)
4316
4241
  : undefined,
4317
- imageScanCompletedAt: output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null
4242
+ imageScanCompletedAt: output.imageScanCompletedAt != null
4318
4243
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imageScanCompletedAt)))
4319
4244
  : undefined,
4320
- vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null
4245
+ vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt != null
4321
4246
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vulnerabilitySourceUpdatedAt)))
4322
4247
  : undefined,
4323
4248
  };
@@ -4470,17 +4395,13 @@ var deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException = function (ou
4470
4395
  };
4471
4396
  var deserializeAws_json1_1LifecyclePolicyPreviewResult = function (output, context) {
4472
4397
  return {
4473
- action: output.action !== undefined && output.action !== null
4474
- ? deserializeAws_json1_1LifecyclePolicyRuleAction(output.action, context)
4475
- : undefined,
4398
+ action: output.action != null ? deserializeAws_json1_1LifecyclePolicyRuleAction(output.action, context) : undefined,
4476
4399
  appliedRulePriority: __expectInt32(output.appliedRulePriority),
4477
4400
  imageDigest: __expectString(output.imageDigest),
4478
- imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null
4401
+ imagePushedAt: output.imagePushedAt != null
4479
4402
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
4480
4403
  : undefined,
4481
- imageTags: output.imageTags !== undefined && output.imageTags !== null
4482
- ? deserializeAws_json1_1ImageTagList(output.imageTags, context)
4483
- : undefined,
4404
+ imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) : undefined,
4484
4405
  };
4485
4406
  };
4486
4407
  var deserializeAws_json1_1LifecyclePolicyPreviewResultList = function (output, context) {
@@ -4511,50 +4432,40 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
4511
4432
  };
4512
4433
  var deserializeAws_json1_1ListImagesResponse = function (output, context) {
4513
4434
  return {
4514
- imageIds: output.imageIds !== undefined && output.imageIds !== null
4515
- ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
4516
- : undefined,
4435
+ imageIds: output.imageIds != null ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) : undefined,
4517
4436
  nextToken: __expectString(output.nextToken),
4518
4437
  };
4519
4438
  };
4520
4439
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
4521
4440
  return {
4522
- tags: output.tags !== undefined && output.tags !== null
4523
- ? deserializeAws_json1_1TagList(output.tags, context)
4524
- : undefined,
4441
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4525
4442
  };
4526
4443
  };
4527
4444
  var deserializeAws_json1_1PackageVulnerabilityDetails = function (output, context) {
4528
4445
  return {
4529
- cvss: output.cvss !== undefined && output.cvss !== null
4530
- ? deserializeAws_json1_1CvssScoreList(output.cvss, context)
4531
- : undefined,
4532
- referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
4533
- ? deserializeAws_json1_1ReferenceUrlsList(output.referenceUrls, context)
4534
- : undefined,
4535
- relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
4446
+ cvss: output.cvss != null ? deserializeAws_json1_1CvssScoreList(output.cvss, context) : undefined,
4447
+ referenceUrls: output.referenceUrls != null ? deserializeAws_json1_1ReferenceUrlsList(output.referenceUrls, context) : undefined,
4448
+ relatedVulnerabilities: output.relatedVulnerabilities != null
4536
4449
  ? deserializeAws_json1_1RelatedVulnerabilitiesList(output.relatedVulnerabilities, context)
4537
4450
  : undefined,
4538
4451
  source: __expectString(output.source),
4539
4452
  sourceUrl: __expectString(output.sourceUrl),
4540
- vendorCreatedAt: output.vendorCreatedAt !== undefined && output.vendorCreatedAt !== null
4453
+ vendorCreatedAt: output.vendorCreatedAt != null
4541
4454
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorCreatedAt)))
4542
4455
  : undefined,
4543
4456
  vendorSeverity: __expectString(output.vendorSeverity),
4544
- vendorUpdatedAt: output.vendorUpdatedAt !== undefined && output.vendorUpdatedAt !== null
4457
+ vendorUpdatedAt: output.vendorUpdatedAt != null
4545
4458
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorUpdatedAt)))
4546
4459
  : undefined,
4547
4460
  vulnerabilityId: __expectString(output.vulnerabilityId),
4548
- vulnerablePackages: output.vulnerablePackages !== undefined && output.vulnerablePackages !== null
4461
+ vulnerablePackages: output.vulnerablePackages != null
4549
4462
  ? deserializeAws_json1_1VulnerablePackagesList(output.vulnerablePackages, context)
4550
4463
  : undefined,
4551
4464
  };
4552
4465
  };
4553
4466
  var deserializeAws_json1_1PullThroughCacheRule = function (output, context) {
4554
4467
  return {
4555
- createdAt: output.createdAt !== undefined && output.createdAt !== null
4556
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
4557
- : undefined,
4468
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
4558
4469
  ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
4559
4470
  registryId: __expectString(output.registryId),
4560
4471
  upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
@@ -4583,14 +4494,12 @@ var deserializeAws_json1_1PullThroughCacheRuleNotFoundException = function (outp
4583
4494
  };
4584
4495
  var deserializeAws_json1_1PutImageResponse = function (output, context) {
4585
4496
  return {
4586
- image: output.image !== undefined && output.image !== null
4587
- ? deserializeAws_json1_1Image(output.image, context)
4588
- : undefined,
4497
+ image: output.image != null ? deserializeAws_json1_1Image(output.image, context) : undefined,
4589
4498
  };
4590
4499
  };
4591
4500
  var deserializeAws_json1_1PutImageScanningConfigurationResponse = function (output, context) {
4592
4501
  return {
4593
- imageScanningConfiguration: output.imageScanningConfiguration !== undefined && output.imageScanningConfiguration !== null
4502
+ imageScanningConfiguration: output.imageScanningConfiguration != null
4594
4503
  ? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context)
4595
4504
  : undefined,
4596
4505
  registryId: __expectString(output.registryId),
@@ -4619,14 +4528,14 @@ var deserializeAws_json1_1PutRegistryPolicyResponse = function (output, context)
4619
4528
  };
4620
4529
  var deserializeAws_json1_1PutRegistryScanningConfigurationResponse = function (output, context) {
4621
4530
  return {
4622
- registryScanningConfiguration: output.registryScanningConfiguration !== undefined && output.registryScanningConfiguration !== null
4531
+ registryScanningConfiguration: output.registryScanningConfiguration != null
4623
4532
  ? deserializeAws_json1_1RegistryScanningConfiguration(output.registryScanningConfiguration, context)
4624
4533
  : undefined,
4625
4534
  };
4626
4535
  };
4627
4536
  var deserializeAws_json1_1PutReplicationConfigurationResponse = function (output, context) {
4628
4537
  return {
4629
- replicationConfiguration: output.replicationConfiguration !== undefined && output.replicationConfiguration !== null
4538
+ replicationConfiguration: output.replicationConfiguration != null
4630
4539
  ? deserializeAws_json1_1ReplicationConfiguration(output.replicationConfiguration, context)
4631
4540
  : undefined,
4632
4541
  };
@@ -4660,15 +4569,13 @@ var deserializeAws_json1_1RegistryPolicyNotFoundException = function (output, co
4660
4569
  };
4661
4570
  var deserializeAws_json1_1RegistryScanningConfiguration = function (output, context) {
4662
4571
  return {
4663
- rules: output.rules !== undefined && output.rules !== null
4664
- ? deserializeAws_json1_1RegistryScanningRuleList(output.rules, context)
4665
- : undefined,
4572
+ rules: output.rules != null ? deserializeAws_json1_1RegistryScanningRuleList(output.rules, context) : undefined,
4666
4573
  scanType: __expectString(output.scanType),
4667
4574
  };
4668
4575
  };
4669
4576
  var deserializeAws_json1_1RegistryScanningRule = function (output, context) {
4670
4577
  return {
4671
- repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null
4578
+ repositoryFilters: output.repositoryFilters != null
4672
4579
  ? deserializeAws_json1_1ScanningRepositoryFilterList(output.repositoryFilters, context)
4673
4580
  : undefined,
4674
4581
  scanFrequency: __expectString(output.scanFrequency),
@@ -4698,16 +4605,12 @@ var deserializeAws_json1_1RelatedVulnerabilitiesList = function (output, context
4698
4605
  };
4699
4606
  var deserializeAws_json1_1Remediation = function (output, context) {
4700
4607
  return {
4701
- recommendation: output.recommendation !== undefined && output.recommendation !== null
4702
- ? deserializeAws_json1_1Recommendation(output.recommendation, context)
4703
- : undefined,
4608
+ recommendation: output.recommendation != null ? deserializeAws_json1_1Recommendation(output.recommendation, context) : undefined,
4704
4609
  };
4705
4610
  };
4706
4611
  var deserializeAws_json1_1ReplicationConfiguration = function (output, context) {
4707
4612
  return {
4708
- rules: output.rules !== undefined && output.rules !== null
4709
- ? deserializeAws_json1_1ReplicationRuleList(output.rules, context)
4710
- : undefined,
4613
+ rules: output.rules != null ? deserializeAws_json1_1ReplicationRuleList(output.rules, context) : undefined,
4711
4614
  };
4712
4615
  };
4713
4616
  var deserializeAws_json1_1ReplicationDestination = function (output, context) {
@@ -4729,10 +4632,10 @@ var deserializeAws_json1_1ReplicationDestinationList = function (output, context
4729
4632
  };
4730
4633
  var deserializeAws_json1_1ReplicationRule = function (output, context) {
4731
4634
  return {
4732
- destinations: output.destinations !== undefined && output.destinations !== null
4635
+ destinations: output.destinations != null
4733
4636
  ? deserializeAws_json1_1ReplicationDestinationList(output.destinations, context)
4734
4637
  : undefined,
4735
- repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null
4638
+ repositoryFilters: output.repositoryFilters != null
4736
4639
  ? deserializeAws_json1_1RepositoryFilterList(output.repositoryFilters, context)
4737
4640
  : undefined,
4738
4641
  };
@@ -4750,13 +4653,11 @@ var deserializeAws_json1_1ReplicationRuleList = function (output, context) {
4750
4653
  };
4751
4654
  var deserializeAws_json1_1Repository = function (output, context) {
4752
4655
  return {
4753
- createdAt: output.createdAt !== undefined && output.createdAt !== null
4754
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
4755
- : undefined,
4756
- encryptionConfiguration: output.encryptionConfiguration !== undefined && output.encryptionConfiguration !== null
4656
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
4657
+ encryptionConfiguration: output.encryptionConfiguration != null
4757
4658
  ? deserializeAws_json1_1EncryptionConfiguration(output.encryptionConfiguration, context)
4758
4659
  : undefined,
4759
- imageScanningConfiguration: output.imageScanningConfiguration !== undefined && output.imageScanningConfiguration !== null
4660
+ imageScanningConfiguration: output.imageScanningConfiguration != null
4760
4661
  ? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context)
4761
4662
  : undefined,
4762
4663
  imageTagMutability: __expectString(output.imageTagMutability),
@@ -4816,7 +4717,7 @@ var deserializeAws_json1_1RepositoryPolicyNotFoundException = function (output,
4816
4717
  };
4817
4718
  var deserializeAws_json1_1RepositoryScanningConfiguration = function (output, context) {
4818
4719
  return {
4819
- appliedScanFilters: output.appliedScanFilters !== undefined && output.appliedScanFilters !== null
4720
+ appliedScanFilters: output.appliedScanFilters != null
4820
4721
  ? deserializeAws_json1_1ScanningRepositoryFilterList(output.appliedScanFilters, context)
4821
4722
  : undefined,
4822
4723
  repositoryArn: __expectString(output.repositoryArn),
@@ -4856,17 +4757,15 @@ var deserializeAws_json1_1RepositoryScanningConfigurationList = function (output
4856
4757
  };
4857
4758
  var deserializeAws_json1_1Resource = function (output, context) {
4858
4759
  return {
4859
- details: output.details !== undefined && output.details !== null
4860
- ? deserializeAws_json1_1ResourceDetails(output.details, context)
4861
- : undefined,
4760
+ details: output.details != null ? deserializeAws_json1_1ResourceDetails(output.details, context) : undefined,
4862
4761
  id: __expectString(output.id),
4863
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
4762
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
4864
4763
  type: __expectString(output.type),
4865
4764
  };
4866
4765
  };
4867
4766
  var deserializeAws_json1_1ResourceDetails = function (output, context) {
4868
4767
  return {
4869
- awsEcrContainerImage: output.awsEcrContainerImage !== undefined && output.awsEcrContainerImage !== null
4768
+ awsEcrContainerImage: output.awsEcrContainerImage != null
4870
4769
  ? deserializeAws_json1_1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
4871
4770
  : undefined,
4872
4771
  };
@@ -4906,9 +4805,7 @@ var deserializeAws_json1_1ScanNotFoundException = function (output, context) {
4906
4805
  };
4907
4806
  var deserializeAws_json1_1ScoreDetails = function (output, context) {
4908
4807
  return {
4909
- cvss: output.cvss !== undefined && output.cvss !== null
4910
- ? deserializeAws_json1_1CvssScoreDetails(output.cvss, context)
4911
- : undefined,
4808
+ cvss: output.cvss != null ? deserializeAws_json1_1CvssScoreDetails(output.cvss, context) : undefined,
4912
4809
  };
4913
4810
  };
4914
4811
  var deserializeAws_json1_1ServerException = function (output, context) {
@@ -4925,10 +4822,8 @@ var deserializeAws_json1_1SetRepositoryPolicyResponse = function (output, contex
4925
4822
  };
4926
4823
  var deserializeAws_json1_1StartImageScanResponse = function (output, context) {
4927
4824
  return {
4928
- imageId: output.imageId !== undefined && output.imageId !== null
4929
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
4930
- : undefined,
4931
- imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
4825
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
4826
+ imageScanStatus: output.imageScanStatus != null
4932
4827
  ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
4933
4828
  : undefined,
4934
4829
  registryId: __expectString(output.registryId),
@@ -5106,5 +5001,4 @@ var loadRestJsonErrorCode = function (output, data) {
5106
5001
  if (data["__type"] !== undefined) {
5107
5002
  return sanitizeErrorCode(data["__type"]);
5108
5003
  }
5109
- return "";
5110
5004
  };