@aws-sdk/client-ecr 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +428 -534
- package/dist-es/protocols/Aws_json1_1.js +350 -456
- package/package.json +27 -27
|
@@ -436,8 +436,7 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
436
436
|
body: await parseBody(output.body, context),
|
|
437
437
|
};
|
|
438
438
|
let response;
|
|
439
|
-
|
|
440
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
439
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
440
|
switch (errorCode) {
|
|
442
441
|
case "InvalidParameterException":
|
|
443
442
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -450,10 +449,12 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
450
449
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
451
450
|
default:
|
|
452
451
|
const parsedBody = parsedOutput.body;
|
|
452
|
+
const $metadata = deserializeMetadata(output);
|
|
453
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
453
454
|
response = new ECRServiceException_1.ECRServiceException({
|
|
454
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
455
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
455
456
|
$fault: "client",
|
|
456
|
-
$metadata
|
|
457
|
+
$metadata,
|
|
457
458
|
});
|
|
458
459
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
459
460
|
}
|
|
@@ -478,8 +479,7 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
478
479
|
body: await parseBody(output.body, context),
|
|
479
480
|
};
|
|
480
481
|
let response;
|
|
481
|
-
|
|
482
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
482
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
483
|
switch (errorCode) {
|
|
484
484
|
case "InvalidParameterException":
|
|
485
485
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -492,10 +492,12 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
492
492
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
493
493
|
default:
|
|
494
494
|
const parsedBody = parsedOutput.body;
|
|
495
|
+
const $metadata = deserializeMetadata(output);
|
|
496
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
495
497
|
response = new ECRServiceException_1.ECRServiceException({
|
|
496
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
498
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
497
499
|
$fault: "client",
|
|
498
|
-
$metadata
|
|
500
|
+
$metadata,
|
|
499
501
|
});
|
|
500
502
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
501
503
|
}
|
|
@@ -520,8 +522,7 @@ const deserializeAws_json1_1BatchGetImageCommandError = async (output, context)
|
|
|
520
522
|
body: await parseBody(output.body, context),
|
|
521
523
|
};
|
|
522
524
|
let response;
|
|
523
|
-
|
|
524
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
526
|
switch (errorCode) {
|
|
526
527
|
case "InvalidParameterException":
|
|
527
528
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -534,10 +535,12 @@ const deserializeAws_json1_1BatchGetImageCommandError = async (output, context)
|
|
|
534
535
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
535
536
|
default:
|
|
536
537
|
const parsedBody = parsedOutput.body;
|
|
538
|
+
const $metadata = deserializeMetadata(output);
|
|
539
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
537
540
|
response = new ECRServiceException_1.ECRServiceException({
|
|
538
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
541
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
539
542
|
$fault: "client",
|
|
540
|
-
$metadata
|
|
543
|
+
$metadata,
|
|
541
544
|
});
|
|
542
545
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
543
546
|
}
|
|
@@ -562,8 +565,7 @@ const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError
|
|
|
562
565
|
body: await parseBody(output.body, context),
|
|
563
566
|
};
|
|
564
567
|
let response;
|
|
565
|
-
|
|
566
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
567
569
|
switch (errorCode) {
|
|
568
570
|
case "InvalidParameterException":
|
|
569
571
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -579,10 +581,12 @@ const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError
|
|
|
579
581
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
580
582
|
default:
|
|
581
583
|
const parsedBody = parsedOutput.body;
|
|
584
|
+
const $metadata = deserializeMetadata(output);
|
|
585
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
582
586
|
response = new ECRServiceException_1.ECRServiceException({
|
|
583
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
587
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
584
588
|
$fault: "client",
|
|
585
|
-
$metadata
|
|
589
|
+
$metadata,
|
|
586
590
|
});
|
|
587
591
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
588
592
|
}
|
|
@@ -607,8 +611,7 @@ const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, con
|
|
|
607
611
|
body: await parseBody(output.body, context),
|
|
608
612
|
};
|
|
609
613
|
let response;
|
|
610
|
-
|
|
611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
615
|
switch (errorCode) {
|
|
613
616
|
case "EmptyUploadException":
|
|
614
617
|
case "com.amazonaws.ecr#EmptyUploadException":
|
|
@@ -639,10 +642,12 @@ const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, con
|
|
|
639
642
|
throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context);
|
|
640
643
|
default:
|
|
641
644
|
const parsedBody = parsedOutput.body;
|
|
645
|
+
const $metadata = deserializeMetadata(output);
|
|
646
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
642
647
|
response = new ECRServiceException_1.ECRServiceException({
|
|
643
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
644
649
|
$fault: "client",
|
|
645
|
-
$metadata
|
|
650
|
+
$metadata,
|
|
646
651
|
});
|
|
647
652
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
648
653
|
}
|
|
@@ -667,8 +672,7 @@ const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = async (outp
|
|
|
667
672
|
body: await parseBody(output.body, context),
|
|
668
673
|
};
|
|
669
674
|
let response;
|
|
670
|
-
|
|
671
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
675
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
676
|
switch (errorCode) {
|
|
673
677
|
case "InvalidParameterException":
|
|
674
678
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -690,10 +694,12 @@ const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = async (outp
|
|
|
690
694
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
691
695
|
default:
|
|
692
696
|
const parsedBody = parsedOutput.body;
|
|
697
|
+
const $metadata = deserializeMetadata(output);
|
|
698
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
693
699
|
response = new ECRServiceException_1.ECRServiceException({
|
|
694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
700
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
695
701
|
$fault: "client",
|
|
696
|
-
$metadata
|
|
702
|
+
$metadata,
|
|
697
703
|
});
|
|
698
704
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
699
705
|
}
|
|
@@ -718,8 +724,7 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
718
724
|
body: await parseBody(output.body, context),
|
|
719
725
|
};
|
|
720
726
|
let response;
|
|
721
|
-
|
|
722
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
727
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
728
|
switch (errorCode) {
|
|
724
729
|
case "InvalidParameterException":
|
|
725
730
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -744,10 +749,12 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
744
749
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
745
750
|
default:
|
|
746
751
|
const parsedBody = parsedOutput.body;
|
|
752
|
+
const $metadata = deserializeMetadata(output);
|
|
753
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
747
754
|
response = new ECRServiceException_1.ECRServiceException({
|
|
748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
755
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
749
756
|
$fault: "client",
|
|
750
|
-
$metadata
|
|
757
|
+
$metadata,
|
|
751
758
|
});
|
|
752
759
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
753
760
|
}
|
|
@@ -772,8 +779,7 @@ const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, c
|
|
|
772
779
|
body: await parseBody(output.body, context),
|
|
773
780
|
};
|
|
774
781
|
let response;
|
|
775
|
-
|
|
776
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
783
|
switch (errorCode) {
|
|
778
784
|
case "InvalidParameterException":
|
|
779
785
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -789,10 +795,12 @@ const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, c
|
|
|
789
795
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
790
796
|
default:
|
|
791
797
|
const parsedBody = parsedOutput.body;
|
|
798
|
+
const $metadata = deserializeMetadata(output);
|
|
799
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
792
800
|
response = new ECRServiceException_1.ECRServiceException({
|
|
793
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
794
802
|
$fault: "client",
|
|
795
|
-
$metadata
|
|
803
|
+
$metadata,
|
|
796
804
|
});
|
|
797
805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
798
806
|
}
|
|
@@ -817,8 +825,7 @@ const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = async (outp
|
|
|
817
825
|
body: await parseBody(output.body, context),
|
|
818
826
|
};
|
|
819
827
|
let response;
|
|
820
|
-
|
|
821
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
822
829
|
switch (errorCode) {
|
|
823
830
|
case "InvalidParameterException":
|
|
824
831
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -834,10 +841,12 @@ const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = async (outp
|
|
|
834
841
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
835
842
|
default:
|
|
836
843
|
const parsedBody = parsedOutput.body;
|
|
844
|
+
const $metadata = deserializeMetadata(output);
|
|
845
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
837
846
|
response = new ECRServiceException_1.ECRServiceException({
|
|
838
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
847
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
839
848
|
$fault: "client",
|
|
840
|
-
$metadata
|
|
849
|
+
$metadata,
|
|
841
850
|
});
|
|
842
851
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
843
852
|
}
|
|
@@ -862,8 +871,7 @@ const deserializeAws_json1_1DeleteRegistryPolicyCommandError = async (output, co
|
|
|
862
871
|
body: await parseBody(output.body, context),
|
|
863
872
|
};
|
|
864
873
|
let response;
|
|
865
|
-
|
|
866
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
867
875
|
switch (errorCode) {
|
|
868
876
|
case "InvalidParameterException":
|
|
869
877
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -879,10 +887,12 @@ const deserializeAws_json1_1DeleteRegistryPolicyCommandError = async (output, co
|
|
|
879
887
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
880
888
|
default:
|
|
881
889
|
const parsedBody = parsedOutput.body;
|
|
890
|
+
const $metadata = deserializeMetadata(output);
|
|
891
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
882
892
|
response = new ECRServiceException_1.ECRServiceException({
|
|
883
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
893
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
884
894
|
$fault: "client",
|
|
885
|
-
$metadata
|
|
895
|
+
$metadata,
|
|
886
896
|
});
|
|
887
897
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
888
898
|
}
|
|
@@ -907,8 +917,7 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
907
917
|
body: await parseBody(output.body, context),
|
|
908
918
|
};
|
|
909
919
|
let response;
|
|
910
|
-
|
|
911
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
912
921
|
switch (errorCode) {
|
|
913
922
|
case "InvalidParameterException":
|
|
914
923
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -927,10 +936,12 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
927
936
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
928
937
|
default:
|
|
929
938
|
const parsedBody = parsedOutput.body;
|
|
939
|
+
const $metadata = deserializeMetadata(output);
|
|
940
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
930
941
|
response = new ECRServiceException_1.ECRServiceException({
|
|
931
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
942
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
932
943
|
$fault: "client",
|
|
933
|
-
$metadata
|
|
944
|
+
$metadata,
|
|
934
945
|
});
|
|
935
946
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
936
947
|
}
|
|
@@ -955,8 +966,7 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
955
966
|
body: await parseBody(output.body, context),
|
|
956
967
|
};
|
|
957
968
|
let response;
|
|
958
|
-
|
|
959
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
970
|
switch (errorCode) {
|
|
961
971
|
case "InvalidParameterException":
|
|
962
972
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -972,10 +982,12 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
972
982
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
973
983
|
default:
|
|
974
984
|
const parsedBody = parsedOutput.body;
|
|
985
|
+
const $metadata = deserializeMetadata(output);
|
|
986
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
975
987
|
response = new ECRServiceException_1.ECRServiceException({
|
|
976
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
988
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
977
989
|
$fault: "client",
|
|
978
|
-
$metadata
|
|
990
|
+
$metadata,
|
|
979
991
|
});
|
|
980
992
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
981
993
|
}
|
|
@@ -1000,8 +1012,7 @@ const deserializeAws_json1_1DescribeImageReplicationStatusCommandError = async (
|
|
|
1000
1012
|
body: await parseBody(output.body, context),
|
|
1001
1013
|
};
|
|
1002
1014
|
let response;
|
|
1003
|
-
|
|
1004
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
1016
|
switch (errorCode) {
|
|
1006
1017
|
case "ImageNotFoundException":
|
|
1007
1018
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
@@ -1020,10 +1031,12 @@ const deserializeAws_json1_1DescribeImageReplicationStatusCommandError = async (
|
|
|
1020
1031
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1021
1032
|
default:
|
|
1022
1033
|
const parsedBody = parsedOutput.body;
|
|
1034
|
+
const $metadata = deserializeMetadata(output);
|
|
1035
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1023
1036
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1024
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1037
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1025
1038
|
$fault: "client",
|
|
1026
|
-
$metadata
|
|
1039
|
+
$metadata,
|
|
1027
1040
|
});
|
|
1028
1041
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1029
1042
|
}
|
|
@@ -1048,8 +1061,7 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
1048
1061
|
body: await parseBody(output.body, context),
|
|
1049
1062
|
};
|
|
1050
1063
|
let response;
|
|
1051
|
-
|
|
1052
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
1065
|
switch (errorCode) {
|
|
1054
1066
|
case "ImageNotFoundException":
|
|
1055
1067
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
@@ -1065,10 +1077,12 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
1065
1077
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1066
1078
|
default:
|
|
1067
1079
|
const parsedBody = parsedOutput.body;
|
|
1080
|
+
const $metadata = deserializeMetadata(output);
|
|
1081
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1068
1082
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1069
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1070
1084
|
$fault: "client",
|
|
1071
|
-
$metadata
|
|
1085
|
+
$metadata,
|
|
1072
1086
|
});
|
|
1073
1087
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1074
1088
|
}
|
|
@@ -1093,8 +1107,7 @@ const deserializeAws_json1_1DescribeImageScanFindingsCommandError = async (outpu
|
|
|
1093
1107
|
body: await parseBody(output.body, context),
|
|
1094
1108
|
};
|
|
1095
1109
|
let response;
|
|
1096
|
-
|
|
1097
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
1111
|
switch (errorCode) {
|
|
1099
1112
|
case "ImageNotFoundException":
|
|
1100
1113
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
@@ -1116,10 +1129,12 @@ const deserializeAws_json1_1DescribeImageScanFindingsCommandError = async (outpu
|
|
|
1116
1129
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1117
1130
|
default:
|
|
1118
1131
|
const parsedBody = parsedOutput.body;
|
|
1132
|
+
const $metadata = deserializeMetadata(output);
|
|
1133
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1119
1134
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1120
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1135
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1121
1136
|
$fault: "client",
|
|
1122
|
-
$metadata
|
|
1137
|
+
$metadata,
|
|
1123
1138
|
});
|
|
1124
1139
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1125
1140
|
}
|
|
@@ -1144,8 +1159,7 @@ const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = async (o
|
|
|
1144
1159
|
body: await parseBody(output.body, context),
|
|
1145
1160
|
};
|
|
1146
1161
|
let response;
|
|
1147
|
-
|
|
1148
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
1163
|
switch (errorCode) {
|
|
1150
1164
|
case "InvalidParameterException":
|
|
1151
1165
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1161,10 +1175,12 @@ const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = async (o
|
|
|
1161
1175
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1162
1176
|
default:
|
|
1163
1177
|
const parsedBody = parsedOutput.body;
|
|
1178
|
+
const $metadata = deserializeMetadata(output);
|
|
1179
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1164
1180
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1165
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1181
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1166
1182
|
$fault: "client",
|
|
1167
|
-
$metadata
|
|
1183
|
+
$metadata,
|
|
1168
1184
|
});
|
|
1169
1185
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1170
1186
|
}
|
|
@@ -1189,8 +1205,7 @@ const deserializeAws_json1_1DescribeRegistryCommandError = async (output, contex
|
|
|
1189
1205
|
body: await parseBody(output.body, context),
|
|
1190
1206
|
};
|
|
1191
1207
|
let response;
|
|
1192
|
-
|
|
1193
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1209
|
switch (errorCode) {
|
|
1195
1210
|
case "InvalidParameterException":
|
|
1196
1211
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1203,10 +1218,12 @@ const deserializeAws_json1_1DescribeRegistryCommandError = async (output, contex
|
|
|
1203
1218
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1204
1219
|
default:
|
|
1205
1220
|
const parsedBody = parsedOutput.body;
|
|
1221
|
+
const $metadata = deserializeMetadata(output);
|
|
1222
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1206
1223
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1207
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1224
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1208
1225
|
$fault: "client",
|
|
1209
|
-
$metadata
|
|
1226
|
+
$metadata,
|
|
1210
1227
|
});
|
|
1211
1228
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1212
1229
|
}
|
|
@@ -1231,8 +1248,7 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
1231
1248
|
body: await parseBody(output.body, context),
|
|
1232
1249
|
};
|
|
1233
1250
|
let response;
|
|
1234
|
-
|
|
1235
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
1252
|
switch (errorCode) {
|
|
1237
1253
|
case "InvalidParameterException":
|
|
1238
1254
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1245,10 +1261,12 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
1245
1261
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1246
1262
|
default:
|
|
1247
1263
|
const parsedBody = parsedOutput.body;
|
|
1264
|
+
const $metadata = deserializeMetadata(output);
|
|
1265
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1248
1266
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1249
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1267
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1250
1268
|
$fault: "client",
|
|
1251
|
-
$metadata
|
|
1269
|
+
$metadata,
|
|
1252
1270
|
});
|
|
1253
1271
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1254
1272
|
}
|
|
@@ -1273,8 +1291,7 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
1273
1291
|
body: await parseBody(output.body, context),
|
|
1274
1292
|
};
|
|
1275
1293
|
let response;
|
|
1276
|
-
|
|
1277
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
1295
|
switch (errorCode) {
|
|
1279
1296
|
case "InvalidParameterException":
|
|
1280
1297
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1284,10 +1301,12 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
1284
1301
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1285
1302
|
default:
|
|
1286
1303
|
const parsedBody = parsedOutput.body;
|
|
1304
|
+
const $metadata = deserializeMetadata(output);
|
|
1305
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1287
1306
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1288
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1307
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1289
1308
|
$fault: "client",
|
|
1290
|
-
$metadata
|
|
1309
|
+
$metadata,
|
|
1291
1310
|
});
|
|
1292
1311
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1293
1312
|
}
|
|
@@ -1312,8 +1331,7 @@ const deserializeAws_json1_1GetDownloadUrlForLayerCommandError = async (output,
|
|
|
1312
1331
|
body: await parseBody(output.body, context),
|
|
1313
1332
|
};
|
|
1314
1333
|
let response;
|
|
1315
|
-
|
|
1316
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1317
1335
|
switch (errorCode) {
|
|
1318
1336
|
case "InvalidParameterException":
|
|
1319
1337
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1332,10 +1350,12 @@ const deserializeAws_json1_1GetDownloadUrlForLayerCommandError = async (output,
|
|
|
1332
1350
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1333
1351
|
default:
|
|
1334
1352
|
const parsedBody = parsedOutput.body;
|
|
1353
|
+
const $metadata = deserializeMetadata(output);
|
|
1354
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1335
1355
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1336
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1337
1357
|
$fault: "client",
|
|
1338
|
-
$metadata
|
|
1358
|
+
$metadata,
|
|
1339
1359
|
});
|
|
1340
1360
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1341
1361
|
}
|
|
@@ -1360,8 +1380,7 @@ const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, cont
|
|
|
1360
1380
|
body: await parseBody(output.body, context),
|
|
1361
1381
|
};
|
|
1362
1382
|
let response;
|
|
1363
|
-
|
|
1364
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
1384
|
switch (errorCode) {
|
|
1366
1385
|
case "InvalidParameterException":
|
|
1367
1386
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1377,10 +1396,12 @@ const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, cont
|
|
|
1377
1396
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1378
1397
|
default:
|
|
1379
1398
|
const parsedBody = parsedOutput.body;
|
|
1399
|
+
const $metadata = deserializeMetadata(output);
|
|
1400
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1380
1401
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1381
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1402
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1382
1403
|
$fault: "client",
|
|
1383
|
-
$metadata
|
|
1404
|
+
$metadata,
|
|
1384
1405
|
});
|
|
1385
1406
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1386
1407
|
}
|
|
@@ -1405,8 +1426,7 @@ const deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = async (outpu
|
|
|
1405
1426
|
body: await parseBody(output.body, context),
|
|
1406
1427
|
};
|
|
1407
1428
|
let response;
|
|
1408
|
-
|
|
1409
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
1430
|
switch (errorCode) {
|
|
1411
1431
|
case "InvalidParameterException":
|
|
1412
1432
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1422,10 +1442,12 @@ const deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = async (outpu
|
|
|
1422
1442
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1423
1443
|
default:
|
|
1424
1444
|
const parsedBody = parsedOutput.body;
|
|
1445
|
+
const $metadata = deserializeMetadata(output);
|
|
1446
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1425
1447
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1426
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1448
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1427
1449
|
$fault: "client",
|
|
1428
|
-
$metadata
|
|
1450
|
+
$metadata,
|
|
1429
1451
|
});
|
|
1430
1452
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1431
1453
|
}
|
|
@@ -1450,8 +1472,7 @@ const deserializeAws_json1_1GetRegistryPolicyCommandError = async (output, conte
|
|
|
1450
1472
|
body: await parseBody(output.body, context),
|
|
1451
1473
|
};
|
|
1452
1474
|
let response;
|
|
1453
|
-
|
|
1454
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
1476
|
switch (errorCode) {
|
|
1456
1477
|
case "InvalidParameterException":
|
|
1457
1478
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1467,10 +1488,12 @@ const deserializeAws_json1_1GetRegistryPolicyCommandError = async (output, conte
|
|
|
1467
1488
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1468
1489
|
default:
|
|
1469
1490
|
const parsedBody = parsedOutput.body;
|
|
1491
|
+
const $metadata = deserializeMetadata(output);
|
|
1492
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1470
1493
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1471
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1494
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1472
1495
|
$fault: "client",
|
|
1473
|
-
$metadata
|
|
1496
|
+
$metadata,
|
|
1474
1497
|
});
|
|
1475
1498
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1476
1499
|
}
|
|
@@ -1495,8 +1518,7 @@ const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = async
|
|
|
1495
1518
|
body: await parseBody(output.body, context),
|
|
1496
1519
|
};
|
|
1497
1520
|
let response;
|
|
1498
|
-
|
|
1499
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1521
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
1522
|
switch (errorCode) {
|
|
1501
1523
|
case "InvalidParameterException":
|
|
1502
1524
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1509,10 +1531,12 @@ const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = async
|
|
|
1509
1531
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1510
1532
|
default:
|
|
1511
1533
|
const parsedBody = parsedOutput.body;
|
|
1534
|
+
const $metadata = deserializeMetadata(output);
|
|
1535
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1512
1536
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1513
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1537
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1514
1538
|
$fault: "client",
|
|
1515
|
-
$metadata
|
|
1539
|
+
$metadata,
|
|
1516
1540
|
});
|
|
1517
1541
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1518
1542
|
}
|
|
@@ -1537,8 +1561,7 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
1537
1561
|
body: await parseBody(output.body, context),
|
|
1538
1562
|
};
|
|
1539
1563
|
let response;
|
|
1540
|
-
|
|
1541
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1542
1565
|
switch (errorCode) {
|
|
1543
1566
|
case "InvalidParameterException":
|
|
1544
1567
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1554,10 +1577,12 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
1554
1577
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1555
1578
|
default:
|
|
1556
1579
|
const parsedBody = parsedOutput.body;
|
|
1580
|
+
const $metadata = deserializeMetadata(output);
|
|
1581
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1557
1582
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1558
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1583
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1559
1584
|
$fault: "client",
|
|
1560
|
-
$metadata
|
|
1585
|
+
$metadata,
|
|
1561
1586
|
});
|
|
1562
1587
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1563
1588
|
}
|
|
@@ -1582,8 +1607,7 @@ const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, con
|
|
|
1582
1607
|
body: await parseBody(output.body, context),
|
|
1583
1608
|
};
|
|
1584
1609
|
let response;
|
|
1585
|
-
|
|
1586
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
1611
|
switch (errorCode) {
|
|
1588
1612
|
case "InvalidParameterException":
|
|
1589
1613
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1599,10 +1623,12 @@ const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, con
|
|
|
1599
1623
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1600
1624
|
default:
|
|
1601
1625
|
const parsedBody = parsedOutput.body;
|
|
1626
|
+
const $metadata = deserializeMetadata(output);
|
|
1627
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1602
1628
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1603
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1629
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1604
1630
|
$fault: "client",
|
|
1605
|
-
$metadata
|
|
1631
|
+
$metadata,
|
|
1606
1632
|
});
|
|
1607
1633
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1608
1634
|
}
|
|
@@ -1627,8 +1653,7 @@ const deserializeAws_json1_1ListImagesCommandError = async (output, context) =>
|
|
|
1627
1653
|
body: await parseBody(output.body, context),
|
|
1628
1654
|
};
|
|
1629
1655
|
let response;
|
|
1630
|
-
|
|
1631
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
1657
|
switch (errorCode) {
|
|
1633
1658
|
case "InvalidParameterException":
|
|
1634
1659
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1641,10 +1666,12 @@ const deserializeAws_json1_1ListImagesCommandError = async (output, context) =>
|
|
|
1641
1666
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1642
1667
|
default:
|
|
1643
1668
|
const parsedBody = parsedOutput.body;
|
|
1669
|
+
const $metadata = deserializeMetadata(output);
|
|
1670
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1644
1671
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1645
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1672
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1646
1673
|
$fault: "client",
|
|
1647
|
-
$metadata
|
|
1674
|
+
$metadata,
|
|
1648
1675
|
});
|
|
1649
1676
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1650
1677
|
}
|
|
@@ -1669,8 +1696,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1669
1696
|
body: await parseBody(output.body, context),
|
|
1670
1697
|
};
|
|
1671
1698
|
let response;
|
|
1672
|
-
|
|
1673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1700
|
switch (errorCode) {
|
|
1675
1701
|
case "InvalidParameterException":
|
|
1676
1702
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1683,10 +1709,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1683
1709
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1684
1710
|
default:
|
|
1685
1711
|
const parsedBody = parsedOutput.body;
|
|
1712
|
+
const $metadata = deserializeMetadata(output);
|
|
1713
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1686
1714
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1687
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1715
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1688
1716
|
$fault: "client",
|
|
1689
|
-
$metadata
|
|
1717
|
+
$metadata,
|
|
1690
1718
|
});
|
|
1691
1719
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1692
1720
|
}
|
|
@@ -1711,8 +1739,7 @@ const deserializeAws_json1_1PutImageCommandError = async (output, context) => {
|
|
|
1711
1739
|
body: await parseBody(output.body, context),
|
|
1712
1740
|
};
|
|
1713
1741
|
let response;
|
|
1714
|
-
|
|
1715
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1716
1743
|
switch (errorCode) {
|
|
1717
1744
|
case "ImageAlreadyExistsException":
|
|
1718
1745
|
case "com.amazonaws.ecr#ImageAlreadyExistsException":
|
|
@@ -1746,10 +1773,12 @@ const deserializeAws_json1_1PutImageCommandError = async (output, context) => {
|
|
|
1746
1773
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1747
1774
|
default:
|
|
1748
1775
|
const parsedBody = parsedOutput.body;
|
|
1776
|
+
const $metadata = deserializeMetadata(output);
|
|
1777
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1749
1778
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1750
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1779
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1751
1780
|
$fault: "client",
|
|
1752
|
-
$metadata
|
|
1781
|
+
$metadata,
|
|
1753
1782
|
});
|
|
1754
1783
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1755
1784
|
}
|
|
@@ -1774,8 +1803,7 @@ const deserializeAws_json1_1PutImageScanningConfigurationCommandError = async (o
|
|
|
1774
1803
|
body: await parseBody(output.body, context),
|
|
1775
1804
|
};
|
|
1776
1805
|
let response;
|
|
1777
|
-
|
|
1778
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1779
1807
|
switch (errorCode) {
|
|
1780
1808
|
case "InvalidParameterException":
|
|
1781
1809
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1791,10 +1819,12 @@ const deserializeAws_json1_1PutImageScanningConfigurationCommandError = async (o
|
|
|
1791
1819
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1792
1820
|
default:
|
|
1793
1821
|
const parsedBody = parsedOutput.body;
|
|
1822
|
+
const $metadata = deserializeMetadata(output);
|
|
1823
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1794
1824
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1795
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1825
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1796
1826
|
$fault: "client",
|
|
1797
|
-
$metadata
|
|
1827
|
+
$metadata,
|
|
1798
1828
|
});
|
|
1799
1829
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1800
1830
|
}
|
|
@@ -1819,8 +1849,7 @@ const deserializeAws_json1_1PutImageTagMutabilityCommandError = async (output, c
|
|
|
1819
1849
|
body: await parseBody(output.body, context),
|
|
1820
1850
|
};
|
|
1821
1851
|
let response;
|
|
1822
|
-
|
|
1823
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1824
1853
|
switch (errorCode) {
|
|
1825
1854
|
case "InvalidParameterException":
|
|
1826
1855
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1833,10 +1862,12 @@ const deserializeAws_json1_1PutImageTagMutabilityCommandError = async (output, c
|
|
|
1833
1862
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1834
1863
|
default:
|
|
1835
1864
|
const parsedBody = parsedOutput.body;
|
|
1865
|
+
const $metadata = deserializeMetadata(output);
|
|
1866
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1836
1867
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1837
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1868
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1838
1869
|
$fault: "client",
|
|
1839
|
-
$metadata
|
|
1870
|
+
$metadata,
|
|
1840
1871
|
});
|
|
1841
1872
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1842
1873
|
}
|
|
@@ -1861,8 +1892,7 @@ const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, cont
|
|
|
1861
1892
|
body: await parseBody(output.body, context),
|
|
1862
1893
|
};
|
|
1863
1894
|
let response;
|
|
1864
|
-
|
|
1865
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
1896
|
switch (errorCode) {
|
|
1867
1897
|
case "InvalidParameterException":
|
|
1868
1898
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1875,10 +1905,12 @@ const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, cont
|
|
|
1875
1905
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1876
1906
|
default:
|
|
1877
1907
|
const parsedBody = parsedOutput.body;
|
|
1908
|
+
const $metadata = deserializeMetadata(output);
|
|
1909
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1878
1910
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1879
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1911
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1880
1912
|
$fault: "client",
|
|
1881
|
-
$metadata
|
|
1913
|
+
$metadata,
|
|
1882
1914
|
});
|
|
1883
1915
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1884
1916
|
}
|
|
@@ -1903,8 +1935,7 @@ const deserializeAws_json1_1PutRegistryPolicyCommandError = async (output, conte
|
|
|
1903
1935
|
body: await parseBody(output.body, context),
|
|
1904
1936
|
};
|
|
1905
1937
|
let response;
|
|
1906
|
-
|
|
1907
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1938
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1908
1939
|
switch (errorCode) {
|
|
1909
1940
|
case "InvalidParameterException":
|
|
1910
1941
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1917,10 +1948,12 @@ const deserializeAws_json1_1PutRegistryPolicyCommandError = async (output, conte
|
|
|
1917
1948
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1918
1949
|
default:
|
|
1919
1950
|
const parsedBody = parsedOutput.body;
|
|
1951
|
+
const $metadata = deserializeMetadata(output);
|
|
1952
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1920
1953
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1921
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1954
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1922
1955
|
$fault: "client",
|
|
1923
|
-
$metadata
|
|
1956
|
+
$metadata,
|
|
1924
1957
|
});
|
|
1925
1958
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1926
1959
|
}
|
|
@@ -1945,8 +1978,7 @@ const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = async
|
|
|
1945
1978
|
body: await parseBody(output.body, context),
|
|
1946
1979
|
};
|
|
1947
1980
|
let response;
|
|
1948
|
-
|
|
1949
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
1982
|
switch (errorCode) {
|
|
1951
1983
|
case "InvalidParameterException":
|
|
1952
1984
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -1959,10 +1991,12 @@ const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = async
|
|
|
1959
1991
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1960
1992
|
default:
|
|
1961
1993
|
const parsedBody = parsedOutput.body;
|
|
1994
|
+
const $metadata = deserializeMetadata(output);
|
|
1995
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1962
1996
|
response = new ECRServiceException_1.ECRServiceException({
|
|
1963
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1997
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1964
1998
|
$fault: "client",
|
|
1965
|
-
$metadata
|
|
1999
|
+
$metadata,
|
|
1966
2000
|
});
|
|
1967
2001
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1968
2002
|
}
|
|
@@ -1987,8 +2021,7 @@ const deserializeAws_json1_1PutReplicationConfigurationCommandError = async (out
|
|
|
1987
2021
|
body: await parseBody(output.body, context),
|
|
1988
2022
|
};
|
|
1989
2023
|
let response;
|
|
1990
|
-
|
|
1991
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
2025
|
switch (errorCode) {
|
|
1993
2026
|
case "InvalidParameterException":
|
|
1994
2027
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -2001,10 +2034,12 @@ const deserializeAws_json1_1PutReplicationConfigurationCommandError = async (out
|
|
|
2001
2034
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2002
2035
|
default:
|
|
2003
2036
|
const parsedBody = parsedOutput.body;
|
|
2037
|
+
const $metadata = deserializeMetadata(output);
|
|
2038
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2004
2039
|
response = new ECRServiceException_1.ECRServiceException({
|
|
2005
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2040
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2006
2041
|
$fault: "client",
|
|
2007
|
-
$metadata
|
|
2042
|
+
$metadata,
|
|
2008
2043
|
});
|
|
2009
2044
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2010
2045
|
}
|
|
@@ -2029,8 +2064,7 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
2029
2064
|
body: await parseBody(output.body, context),
|
|
2030
2065
|
};
|
|
2031
2066
|
let response;
|
|
2032
|
-
|
|
2033
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2067
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2034
2068
|
switch (errorCode) {
|
|
2035
2069
|
case "InvalidParameterException":
|
|
2036
2070
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -2043,10 +2077,12 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
2043
2077
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2044
2078
|
default:
|
|
2045
2079
|
const parsedBody = parsedOutput.body;
|
|
2080
|
+
const $metadata = deserializeMetadata(output);
|
|
2081
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2046
2082
|
response = new ECRServiceException_1.ECRServiceException({
|
|
2047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2048
2084
|
$fault: "client",
|
|
2049
|
-
$metadata
|
|
2085
|
+
$metadata,
|
|
2050
2086
|
});
|
|
2051
2087
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2052
2088
|
}
|
|
@@ -2071,8 +2107,7 @@ const deserializeAws_json1_1StartImageScanCommandError = async (output, context)
|
|
|
2071
2107
|
body: await parseBody(output.body, context),
|
|
2072
2108
|
};
|
|
2073
2109
|
let response;
|
|
2074
|
-
|
|
2075
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
2111
|
switch (errorCode) {
|
|
2077
2112
|
case "ImageNotFoundException":
|
|
2078
2113
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
@@ -2097,10 +2132,12 @@ const deserializeAws_json1_1StartImageScanCommandError = async (output, context)
|
|
|
2097
2132
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2098
2133
|
default:
|
|
2099
2134
|
const parsedBody = parsedOutput.body;
|
|
2135
|
+
const $metadata = deserializeMetadata(output);
|
|
2136
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2100
2137
|
response = new ECRServiceException_1.ECRServiceException({
|
|
2101
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2138
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2102
2139
|
$fault: "client",
|
|
2103
|
-
$metadata
|
|
2140
|
+
$metadata,
|
|
2104
2141
|
});
|
|
2105
2142
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2106
2143
|
}
|
|
@@ -2125,8 +2162,7 @@ const deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = async (out
|
|
|
2125
2162
|
body: await parseBody(output.body, context),
|
|
2126
2163
|
};
|
|
2127
2164
|
let response;
|
|
2128
|
-
|
|
2129
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2165
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2130
2166
|
switch (errorCode) {
|
|
2131
2167
|
case "InvalidParameterException":
|
|
2132
2168
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -2145,10 +2181,12 @@ const deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = async (out
|
|
|
2145
2181
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2146
2182
|
default:
|
|
2147
2183
|
const parsedBody = parsedOutput.body;
|
|
2184
|
+
const $metadata = deserializeMetadata(output);
|
|
2185
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2148
2186
|
response = new ECRServiceException_1.ECRServiceException({
|
|
2149
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2187
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2150
2188
|
$fault: "client",
|
|
2151
|
-
$metadata
|
|
2189
|
+
$metadata,
|
|
2152
2190
|
});
|
|
2153
2191
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2154
2192
|
}
|
|
@@ -2173,8 +2211,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2173
2211
|
body: await parseBody(output.body, context),
|
|
2174
2212
|
};
|
|
2175
2213
|
let response;
|
|
2176
|
-
|
|
2177
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2178
2215
|
switch (errorCode) {
|
|
2179
2216
|
case "InvalidParameterException":
|
|
2180
2217
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -2193,10 +2230,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2193
2230
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2194
2231
|
default:
|
|
2195
2232
|
const parsedBody = parsedOutput.body;
|
|
2233
|
+
const $metadata = deserializeMetadata(output);
|
|
2234
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2196
2235
|
response = new ECRServiceException_1.ECRServiceException({
|
|
2197
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2236
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2198
2237
|
$fault: "client",
|
|
2199
|
-
$metadata
|
|
2238
|
+
$metadata,
|
|
2200
2239
|
});
|
|
2201
2240
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2202
2241
|
}
|
|
@@ -2221,8 +2260,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2221
2260
|
body: await parseBody(output.body, context),
|
|
2222
2261
|
};
|
|
2223
2262
|
let response;
|
|
2224
|
-
|
|
2225
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2263
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2226
2264
|
switch (errorCode) {
|
|
2227
2265
|
case "InvalidParameterException":
|
|
2228
2266
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -2241,10 +2279,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2241
2279
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2242
2280
|
default:
|
|
2243
2281
|
const parsedBody = parsedOutput.body;
|
|
2282
|
+
const $metadata = deserializeMetadata(output);
|
|
2283
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2244
2284
|
response = new ECRServiceException_1.ECRServiceException({
|
|
2245
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2285
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2246
2286
|
$fault: "client",
|
|
2247
|
-
$metadata
|
|
2287
|
+
$metadata,
|
|
2248
2288
|
});
|
|
2249
2289
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2250
2290
|
}
|
|
@@ -2269,8 +2309,7 @@ const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context
|
|
|
2269
2309
|
body: await parseBody(output.body, context),
|
|
2270
2310
|
};
|
|
2271
2311
|
let response;
|
|
2272
|
-
|
|
2273
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2312
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2274
2313
|
switch (errorCode) {
|
|
2275
2314
|
case "InvalidLayerPartException":
|
|
2276
2315
|
case "com.amazonaws.ecr#InvalidLayerPartException":
|
|
@@ -2295,10 +2334,12 @@ const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context
|
|
|
2295
2334
|
throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context);
|
|
2296
2335
|
default:
|
|
2297
2336
|
const parsedBody = parsedOutput.body;
|
|
2337
|
+
const $metadata = deserializeMetadata(output);
|
|
2338
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2298
2339
|
response = new ECRServiceException_1.ECRServiceException({
|
|
2299
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2340
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2300
2341
|
$fault: "client",
|
|
2301
|
-
$metadata
|
|
2342
|
+
$metadata,
|
|
2302
2343
|
});
|
|
2303
2344
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2304
2345
|
}
|
|
@@ -2602,22 +2643,18 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
|
|
|
2602
2643
|
};
|
|
2603
2644
|
const serializeAws_json1_1BatchCheckLayerAvailabilityRequest = (input, context) => {
|
|
2604
2645
|
return {
|
|
2605
|
-
...(input.layerDigests
|
|
2606
|
-
input.layerDigests !== null && {
|
|
2646
|
+
...(input.layerDigests != null && {
|
|
2607
2647
|
layerDigests: serializeAws_json1_1BatchedOperationLayerDigestList(input.layerDigests, context),
|
|
2608
2648
|
}),
|
|
2609
|
-
...(input.registryId
|
|
2610
|
-
...(input.repositoryName
|
|
2611
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2649
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2650
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2612
2651
|
};
|
|
2613
2652
|
};
|
|
2614
2653
|
const serializeAws_json1_1BatchDeleteImageRequest = (input, context) => {
|
|
2615
2654
|
return {
|
|
2616
|
-
...(input.imageIds
|
|
2617
|
-
|
|
2618
|
-
...(input.
|
|
2619
|
-
...(input.repositoryName !== undefined &&
|
|
2620
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2655
|
+
...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
|
|
2656
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2657
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2621
2658
|
};
|
|
2622
2659
|
};
|
|
2623
2660
|
const serializeAws_json1_1BatchedOperationLayerDigestList = (input, context) => {
|
|
@@ -2632,76 +2669,62 @@ const serializeAws_json1_1BatchedOperationLayerDigestList = (input, context) =>
|
|
|
2632
2669
|
};
|
|
2633
2670
|
const serializeAws_json1_1BatchGetImageRequest = (input, context) => {
|
|
2634
2671
|
return {
|
|
2635
|
-
...(input.acceptedMediaTypes
|
|
2636
|
-
input.acceptedMediaTypes !== null && {
|
|
2672
|
+
...(input.acceptedMediaTypes != null && {
|
|
2637
2673
|
acceptedMediaTypes: serializeAws_json1_1MediaTypeList(input.acceptedMediaTypes, context),
|
|
2638
2674
|
}),
|
|
2639
|
-
...(input.imageIds
|
|
2640
|
-
|
|
2641
|
-
...(input.
|
|
2642
|
-
...(input.repositoryName !== undefined &&
|
|
2643
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2675
|
+
...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
|
|
2676
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2677
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2644
2678
|
};
|
|
2645
2679
|
};
|
|
2646
2680
|
const serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest = (input, context) => {
|
|
2647
2681
|
return {
|
|
2648
|
-
...(input.repositoryNames
|
|
2649
|
-
input.repositoryNames !== null && {
|
|
2682
|
+
...(input.repositoryNames != null && {
|
|
2650
2683
|
repositoryNames: serializeAws_json1_1ScanningConfigurationRepositoryNameList(input.repositoryNames, context),
|
|
2651
2684
|
}),
|
|
2652
2685
|
};
|
|
2653
2686
|
};
|
|
2654
2687
|
const serializeAws_json1_1CompleteLayerUploadRequest = (input, context) => {
|
|
2655
2688
|
return {
|
|
2656
|
-
...(input.layerDigests
|
|
2657
|
-
input.layerDigests !== null && {
|
|
2689
|
+
...(input.layerDigests != null && {
|
|
2658
2690
|
layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context),
|
|
2659
2691
|
}),
|
|
2660
|
-
...(input.registryId
|
|
2661
|
-
...(input.repositoryName
|
|
2662
|
-
|
|
2663
|
-
...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
|
|
2692
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2693
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2694
|
+
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
2664
2695
|
};
|
|
2665
2696
|
};
|
|
2666
2697
|
const serializeAws_json1_1CreatePullThroughCacheRuleRequest = (input, context) => {
|
|
2667
2698
|
return {
|
|
2668
|
-
...(input.ecrRepositoryPrefix
|
|
2669
|
-
|
|
2670
|
-
...(input.
|
|
2671
|
-
...(input.upstreamRegistryUrl !== undefined &&
|
|
2672
|
-
input.upstreamRegistryUrl !== null && { upstreamRegistryUrl: input.upstreamRegistryUrl }),
|
|
2699
|
+
...(input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
|
|
2700
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2701
|
+
...(input.upstreamRegistryUrl != null && { upstreamRegistryUrl: input.upstreamRegistryUrl }),
|
|
2673
2702
|
};
|
|
2674
2703
|
};
|
|
2675
2704
|
const serializeAws_json1_1CreateRepositoryRequest = (input, context) => {
|
|
2676
2705
|
return {
|
|
2677
|
-
...(input.encryptionConfiguration
|
|
2678
|
-
input.encryptionConfiguration !== null && {
|
|
2706
|
+
...(input.encryptionConfiguration != null && {
|
|
2679
2707
|
encryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.encryptionConfiguration, context),
|
|
2680
2708
|
}),
|
|
2681
|
-
...(input.imageScanningConfiguration
|
|
2682
|
-
input.imageScanningConfiguration !== null && {
|
|
2709
|
+
...(input.imageScanningConfiguration != null && {
|
|
2683
2710
|
imageScanningConfiguration: serializeAws_json1_1ImageScanningConfiguration(input.imageScanningConfiguration, context),
|
|
2684
2711
|
}),
|
|
2685
|
-
...(input.imageTagMutability
|
|
2686
|
-
|
|
2687
|
-
...(input.
|
|
2688
|
-
...(input.
|
|
2689
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2690
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2712
|
+
...(input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability }),
|
|
2713
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2714
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2715
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2691
2716
|
};
|
|
2692
2717
|
};
|
|
2693
2718
|
const serializeAws_json1_1DeleteLifecyclePolicyRequest = (input, context) => {
|
|
2694
2719
|
return {
|
|
2695
|
-
...(input.registryId
|
|
2696
|
-
...(input.repositoryName
|
|
2697
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2720
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2721
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2698
2722
|
};
|
|
2699
2723
|
};
|
|
2700
2724
|
const serializeAws_json1_1DeletePullThroughCacheRuleRequest = (input, context) => {
|
|
2701
2725
|
return {
|
|
2702
|
-
...(input.ecrRepositoryPrefix
|
|
2703
|
-
|
|
2704
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2726
|
+
...(input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
|
|
2727
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2705
2728
|
};
|
|
2706
2729
|
};
|
|
2707
2730
|
const serializeAws_json1_1DeleteRegistryPolicyRequest = (input, context) => {
|
|
@@ -2709,66 +2732,56 @@ const serializeAws_json1_1DeleteRegistryPolicyRequest = (input, context) => {
|
|
|
2709
2732
|
};
|
|
2710
2733
|
const serializeAws_json1_1DeleteRepositoryPolicyRequest = (input, context) => {
|
|
2711
2734
|
return {
|
|
2712
|
-
...(input.registryId
|
|
2713
|
-
...(input.repositoryName
|
|
2714
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2735
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2736
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2715
2737
|
};
|
|
2716
2738
|
};
|
|
2717
2739
|
const serializeAws_json1_1DeleteRepositoryRequest = (input, context) => {
|
|
2718
2740
|
return {
|
|
2719
|
-
...(input.force
|
|
2720
|
-
...(input.registryId
|
|
2721
|
-
...(input.repositoryName
|
|
2722
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2741
|
+
...(input.force != null && { force: input.force }),
|
|
2742
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2743
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2723
2744
|
};
|
|
2724
2745
|
};
|
|
2725
2746
|
const serializeAws_json1_1DescribeImageReplicationStatusRequest = (input, context) => {
|
|
2726
2747
|
return {
|
|
2727
|
-
...(input.imageId
|
|
2728
|
-
|
|
2729
|
-
...(input.
|
|
2730
|
-
...(input.repositoryName !== undefined &&
|
|
2731
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2748
|
+
...(input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
|
|
2749
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2750
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2732
2751
|
};
|
|
2733
2752
|
};
|
|
2734
2753
|
const serializeAws_json1_1DescribeImageScanFindingsRequest = (input, context) => {
|
|
2735
2754
|
return {
|
|
2736
|
-
...(input.imageId
|
|
2737
|
-
|
|
2738
|
-
...(input.
|
|
2739
|
-
...(input.
|
|
2740
|
-
...(input.
|
|
2741
|
-
...(input.repositoryName !== undefined &&
|
|
2742
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2755
|
+
...(input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
|
|
2756
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2757
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2758
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2759
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2743
2760
|
};
|
|
2744
2761
|
};
|
|
2745
2762
|
const serializeAws_json1_1DescribeImagesFilter = (input, context) => {
|
|
2746
2763
|
return {
|
|
2747
|
-
...(input.tagStatus
|
|
2764
|
+
...(input.tagStatus != null && { tagStatus: input.tagStatus }),
|
|
2748
2765
|
};
|
|
2749
2766
|
};
|
|
2750
2767
|
const serializeAws_json1_1DescribeImagesRequest = (input, context) => {
|
|
2751
2768
|
return {
|
|
2752
|
-
...(input.filter
|
|
2753
|
-
|
|
2754
|
-
...(input.
|
|
2755
|
-
|
|
2756
|
-
...(input.
|
|
2757
|
-
...(input.
|
|
2758
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2759
|
-
...(input.repositoryName !== undefined &&
|
|
2760
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2769
|
+
...(input.filter != null && { filter: serializeAws_json1_1DescribeImagesFilter(input.filter, context) }),
|
|
2770
|
+
...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
|
|
2771
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2772
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2773
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2774
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2761
2775
|
};
|
|
2762
2776
|
};
|
|
2763
2777
|
const serializeAws_json1_1DescribePullThroughCacheRulesRequest = (input, context) => {
|
|
2764
2778
|
return {
|
|
2765
|
-
...(input.ecrRepositoryPrefixes
|
|
2766
|
-
input.ecrRepositoryPrefixes !== null && {
|
|
2779
|
+
...(input.ecrRepositoryPrefixes != null && {
|
|
2767
2780
|
ecrRepositoryPrefixes: serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList(input.ecrRepositoryPrefixes, context),
|
|
2768
2781
|
}),
|
|
2769
|
-
...(input.maxResults
|
|
2770
|
-
...(input.nextToken
|
|
2771
|
-
...(input.registryId
|
|
2782
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2783
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2784
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2772
2785
|
};
|
|
2773
2786
|
};
|
|
2774
2787
|
const serializeAws_json1_1DescribeRegistryRequest = (input, context) => {
|
|
@@ -2776,20 +2789,18 @@ const serializeAws_json1_1DescribeRegistryRequest = (input, context) => {
|
|
|
2776
2789
|
};
|
|
2777
2790
|
const serializeAws_json1_1DescribeRepositoriesRequest = (input, context) => {
|
|
2778
2791
|
return {
|
|
2779
|
-
...(input.maxResults
|
|
2780
|
-
...(input.nextToken
|
|
2781
|
-
...(input.registryId
|
|
2782
|
-
...(input.repositoryNames
|
|
2783
|
-
input.repositoryNames !== null && {
|
|
2792
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2793
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2794
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2795
|
+
...(input.repositoryNames != null && {
|
|
2784
2796
|
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
2785
2797
|
}),
|
|
2786
2798
|
};
|
|
2787
2799
|
};
|
|
2788
2800
|
const serializeAws_json1_1EncryptionConfiguration = (input, context) => {
|
|
2789
2801
|
return {
|
|
2790
|
-
...(input.encryptionType
|
|
2791
|
-
|
|
2792
|
-
...(input.kmsKey !== undefined && input.kmsKey !== null && { kmsKey: input.kmsKey }),
|
|
2802
|
+
...(input.encryptionType != null && { encryptionType: input.encryptionType }),
|
|
2803
|
+
...(input.kmsKey != null && { kmsKey: input.kmsKey }),
|
|
2793
2804
|
};
|
|
2794
2805
|
};
|
|
2795
2806
|
const serializeAws_json1_1GetAuthorizationTokenRegistryIdList = (input, context) => {
|
|
@@ -2804,38 +2815,32 @@ const serializeAws_json1_1GetAuthorizationTokenRegistryIdList = (input, context)
|
|
|
2804
2815
|
};
|
|
2805
2816
|
const serializeAws_json1_1GetAuthorizationTokenRequest = (input, context) => {
|
|
2806
2817
|
return {
|
|
2807
|
-
...(input.registryIds
|
|
2808
|
-
input.registryIds !== null && {
|
|
2818
|
+
...(input.registryIds != null && {
|
|
2809
2819
|
registryIds: serializeAws_json1_1GetAuthorizationTokenRegistryIdList(input.registryIds, context),
|
|
2810
2820
|
}),
|
|
2811
2821
|
};
|
|
2812
2822
|
};
|
|
2813
2823
|
const serializeAws_json1_1GetDownloadUrlForLayerRequest = (input, context) => {
|
|
2814
2824
|
return {
|
|
2815
|
-
...(input.layerDigest
|
|
2816
|
-
...(input.registryId
|
|
2817
|
-
...(input.repositoryName
|
|
2818
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2825
|
+
...(input.layerDigest != null && { layerDigest: input.layerDigest }),
|
|
2826
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2827
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2819
2828
|
};
|
|
2820
2829
|
};
|
|
2821
2830
|
const serializeAws_json1_1GetLifecyclePolicyPreviewRequest = (input, context) => {
|
|
2822
2831
|
return {
|
|
2823
|
-
...(input.filter
|
|
2824
|
-
|
|
2825
|
-
...(input.
|
|
2826
|
-
|
|
2827
|
-
...(input.
|
|
2828
|
-
...(input.
|
|
2829
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2830
|
-
...(input.repositoryName !== undefined &&
|
|
2831
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2832
|
+
...(input.filter != null && { filter: serializeAws_json1_1LifecyclePolicyPreviewFilter(input.filter, context) }),
|
|
2833
|
+
...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
|
|
2834
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2835
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2836
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2837
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2832
2838
|
};
|
|
2833
2839
|
};
|
|
2834
2840
|
const serializeAws_json1_1GetLifecyclePolicyRequest = (input, context) => {
|
|
2835
2841
|
return {
|
|
2836
|
-
...(input.registryId
|
|
2837
|
-
...(input.repositoryName
|
|
2838
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2842
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2843
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2839
2844
|
};
|
|
2840
2845
|
};
|
|
2841
2846
|
const serializeAws_json1_1GetRegistryPolicyRequest = (input, context) => {
|
|
@@ -2846,15 +2851,14 @@ const serializeAws_json1_1GetRegistryScanningConfigurationRequest = (input, cont
|
|
|
2846
2851
|
};
|
|
2847
2852
|
const serializeAws_json1_1GetRepositoryPolicyRequest = (input, context) => {
|
|
2848
2853
|
return {
|
|
2849
|
-
...(input.registryId
|
|
2850
|
-
...(input.repositoryName
|
|
2851
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2854
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2855
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2852
2856
|
};
|
|
2853
2857
|
};
|
|
2854
2858
|
const serializeAws_json1_1ImageIdentifier = (input, context) => {
|
|
2855
2859
|
return {
|
|
2856
|
-
...(input.imageDigest
|
|
2857
|
-
...(input.imageTag
|
|
2860
|
+
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
2861
|
+
...(input.imageTag != null && { imageTag: input.imageTag }),
|
|
2858
2862
|
};
|
|
2859
2863
|
};
|
|
2860
2864
|
const serializeAws_json1_1ImageIdentifierList = (input, context) => {
|
|
@@ -2869,14 +2873,13 @@ const serializeAws_json1_1ImageIdentifierList = (input, context) => {
|
|
|
2869
2873
|
};
|
|
2870
2874
|
const serializeAws_json1_1ImageScanningConfiguration = (input, context) => {
|
|
2871
2875
|
return {
|
|
2872
|
-
...(input.scanOnPush
|
|
2876
|
+
...(input.scanOnPush != null && { scanOnPush: input.scanOnPush }),
|
|
2873
2877
|
};
|
|
2874
2878
|
};
|
|
2875
2879
|
const serializeAws_json1_1InitiateLayerUploadRequest = (input, context) => {
|
|
2876
2880
|
return {
|
|
2877
|
-
...(input.registryId
|
|
2878
|
-
...(input.repositoryName
|
|
2879
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2881
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2882
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2880
2883
|
};
|
|
2881
2884
|
};
|
|
2882
2885
|
const serializeAws_json1_1LayerDigestList = (input, context) => {
|
|
@@ -2891,28 +2894,26 @@ const serializeAws_json1_1LayerDigestList = (input, context) => {
|
|
|
2891
2894
|
};
|
|
2892
2895
|
const serializeAws_json1_1LifecyclePolicyPreviewFilter = (input, context) => {
|
|
2893
2896
|
return {
|
|
2894
|
-
...(input.tagStatus
|
|
2897
|
+
...(input.tagStatus != null && { tagStatus: input.tagStatus }),
|
|
2895
2898
|
};
|
|
2896
2899
|
};
|
|
2897
2900
|
const serializeAws_json1_1ListImagesFilter = (input, context) => {
|
|
2898
2901
|
return {
|
|
2899
|
-
...(input.tagStatus
|
|
2902
|
+
...(input.tagStatus != null && { tagStatus: input.tagStatus }),
|
|
2900
2903
|
};
|
|
2901
2904
|
};
|
|
2902
2905
|
const serializeAws_json1_1ListImagesRequest = (input, context) => {
|
|
2903
2906
|
return {
|
|
2904
|
-
...(input.filter
|
|
2905
|
-
|
|
2906
|
-
...(input.
|
|
2907
|
-
...(input.
|
|
2908
|
-
...(input.
|
|
2909
|
-
...(input.repositoryName !== undefined &&
|
|
2910
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2907
|
+
...(input.filter != null && { filter: serializeAws_json1_1ListImagesFilter(input.filter, context) }),
|
|
2908
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2909
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2910
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2911
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2911
2912
|
};
|
|
2912
2913
|
};
|
|
2913
2914
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2914
2915
|
return {
|
|
2915
|
-
...(input.resourceArn
|
|
2916
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2916
2917
|
};
|
|
2917
2918
|
};
|
|
2918
2919
|
const serializeAws_json1_1MediaTypeList = (input, context) => {
|
|
@@ -2937,72 +2938,61 @@ const serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList = (input, con
|
|
|
2937
2938
|
};
|
|
2938
2939
|
const serializeAws_json1_1PutImageRequest = (input, context) => {
|
|
2939
2940
|
return {
|
|
2940
|
-
...(input.imageDigest
|
|
2941
|
-
...(input.imageManifest
|
|
2942
|
-
...(input.imageManifestMediaType
|
|
2943
|
-
|
|
2944
|
-
...(input.
|
|
2945
|
-
...(input.
|
|
2946
|
-
...(input.repositoryName !== undefined &&
|
|
2947
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2941
|
+
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
2942
|
+
...(input.imageManifest != null && { imageManifest: input.imageManifest }),
|
|
2943
|
+
...(input.imageManifestMediaType != null && { imageManifestMediaType: input.imageManifestMediaType }),
|
|
2944
|
+
...(input.imageTag != null && { imageTag: input.imageTag }),
|
|
2945
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2946
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2948
2947
|
};
|
|
2949
2948
|
};
|
|
2950
2949
|
const serializeAws_json1_1PutImageScanningConfigurationRequest = (input, context) => {
|
|
2951
2950
|
return {
|
|
2952
|
-
...(input.imageScanningConfiguration
|
|
2953
|
-
input.imageScanningConfiguration !== null && {
|
|
2951
|
+
...(input.imageScanningConfiguration != null && {
|
|
2954
2952
|
imageScanningConfiguration: serializeAws_json1_1ImageScanningConfiguration(input.imageScanningConfiguration, context),
|
|
2955
2953
|
}),
|
|
2956
|
-
...(input.registryId
|
|
2957
|
-
...(input.repositoryName
|
|
2958
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2954
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2955
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2959
2956
|
};
|
|
2960
2957
|
};
|
|
2961
2958
|
const serializeAws_json1_1PutImageTagMutabilityRequest = (input, context) => {
|
|
2962
2959
|
return {
|
|
2963
|
-
...(input.imageTagMutability
|
|
2964
|
-
|
|
2965
|
-
...(input.
|
|
2966
|
-
...(input.repositoryName !== undefined &&
|
|
2967
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2960
|
+
...(input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability }),
|
|
2961
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2962
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2968
2963
|
};
|
|
2969
2964
|
};
|
|
2970
2965
|
const serializeAws_json1_1PutLifecyclePolicyRequest = (input, context) => {
|
|
2971
2966
|
return {
|
|
2972
|
-
...(input.lifecyclePolicyText
|
|
2973
|
-
|
|
2974
|
-
...(input.
|
|
2975
|
-
...(input.repositoryName !== undefined &&
|
|
2976
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2967
|
+
...(input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText }),
|
|
2968
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
2969
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2977
2970
|
};
|
|
2978
2971
|
};
|
|
2979
2972
|
const serializeAws_json1_1PutRegistryPolicyRequest = (input, context) => {
|
|
2980
2973
|
return {
|
|
2981
|
-
...(input.policyText
|
|
2974
|
+
...(input.policyText != null && { policyText: input.policyText }),
|
|
2982
2975
|
};
|
|
2983
2976
|
};
|
|
2984
2977
|
const serializeAws_json1_1PutRegistryScanningConfigurationRequest = (input, context) => {
|
|
2985
2978
|
return {
|
|
2986
|
-
...(input.rules
|
|
2987
|
-
|
|
2988
|
-
...(input.scanType !== undefined && input.scanType !== null && { scanType: input.scanType }),
|
|
2979
|
+
...(input.rules != null && { rules: serializeAws_json1_1RegistryScanningRuleList(input.rules, context) }),
|
|
2980
|
+
...(input.scanType != null && { scanType: input.scanType }),
|
|
2989
2981
|
};
|
|
2990
2982
|
};
|
|
2991
2983
|
const serializeAws_json1_1PutReplicationConfigurationRequest = (input, context) => {
|
|
2992
2984
|
return {
|
|
2993
|
-
...(input.replicationConfiguration
|
|
2994
|
-
input.replicationConfiguration !== null && {
|
|
2985
|
+
...(input.replicationConfiguration != null && {
|
|
2995
2986
|
replicationConfiguration: serializeAws_json1_1ReplicationConfiguration(input.replicationConfiguration, context),
|
|
2996
2987
|
}),
|
|
2997
2988
|
};
|
|
2998
2989
|
};
|
|
2999
2990
|
const serializeAws_json1_1RegistryScanningRule = (input, context) => {
|
|
3000
2991
|
return {
|
|
3001
|
-
...(input.repositoryFilters
|
|
3002
|
-
input.repositoryFilters !== null && {
|
|
2992
|
+
...(input.repositoryFilters != null && {
|
|
3003
2993
|
repositoryFilters: serializeAws_json1_1ScanningRepositoryFilterList(input.repositoryFilters, context),
|
|
3004
2994
|
}),
|
|
3005
|
-
...(input.scanFrequency
|
|
2995
|
+
...(input.scanFrequency != null && { scanFrequency: input.scanFrequency }),
|
|
3006
2996
|
};
|
|
3007
2997
|
};
|
|
3008
2998
|
const serializeAws_json1_1RegistryScanningRuleList = (input, context) => {
|
|
@@ -3017,14 +3007,13 @@ const serializeAws_json1_1RegistryScanningRuleList = (input, context) => {
|
|
|
3017
3007
|
};
|
|
3018
3008
|
const serializeAws_json1_1ReplicationConfiguration = (input, context) => {
|
|
3019
3009
|
return {
|
|
3020
|
-
...(input.rules
|
|
3021
|
-
input.rules !== null && { rules: serializeAws_json1_1ReplicationRuleList(input.rules, context) }),
|
|
3010
|
+
...(input.rules != null && { rules: serializeAws_json1_1ReplicationRuleList(input.rules, context) }),
|
|
3022
3011
|
};
|
|
3023
3012
|
};
|
|
3024
3013
|
const serializeAws_json1_1ReplicationDestination = (input, context) => {
|
|
3025
3014
|
return {
|
|
3026
|
-
...(input.region
|
|
3027
|
-
...(input.registryId
|
|
3015
|
+
...(input.region != null && { region: input.region }),
|
|
3016
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
3028
3017
|
};
|
|
3029
3018
|
};
|
|
3030
3019
|
const serializeAws_json1_1ReplicationDestinationList = (input, context) => {
|
|
@@ -3039,12 +3028,10 @@ const serializeAws_json1_1ReplicationDestinationList = (input, context) => {
|
|
|
3039
3028
|
};
|
|
3040
3029
|
const serializeAws_json1_1ReplicationRule = (input, context) => {
|
|
3041
3030
|
return {
|
|
3042
|
-
...(input.destinations
|
|
3043
|
-
input.destinations !== null && {
|
|
3031
|
+
...(input.destinations != null && {
|
|
3044
3032
|
destinations: serializeAws_json1_1ReplicationDestinationList(input.destinations, context),
|
|
3045
3033
|
}),
|
|
3046
|
-
...(input.repositoryFilters
|
|
3047
|
-
input.repositoryFilters !== null && {
|
|
3034
|
+
...(input.repositoryFilters != null && {
|
|
3048
3035
|
repositoryFilters: serializeAws_json1_1RepositoryFilterList(input.repositoryFilters, context),
|
|
3049
3036
|
}),
|
|
3050
3037
|
};
|
|
@@ -3061,8 +3048,8 @@ const serializeAws_json1_1ReplicationRuleList = (input, context) => {
|
|
|
3061
3048
|
};
|
|
3062
3049
|
const serializeAws_json1_1RepositoryFilter = (input, context) => {
|
|
3063
3050
|
return {
|
|
3064
|
-
...(input.filter
|
|
3065
|
-
...(input.filterType
|
|
3051
|
+
...(input.filter != null && { filter: input.filter }),
|
|
3052
|
+
...(input.filterType != null && { filterType: input.filterType }),
|
|
3066
3053
|
};
|
|
3067
3054
|
};
|
|
3068
3055
|
const serializeAws_json1_1RepositoryFilterList = (input, context) => {
|
|
@@ -3097,8 +3084,8 @@ const serializeAws_json1_1ScanningConfigurationRepositoryNameList = (input, cont
|
|
|
3097
3084
|
};
|
|
3098
3085
|
const serializeAws_json1_1ScanningRepositoryFilter = (input, context) => {
|
|
3099
3086
|
return {
|
|
3100
|
-
...(input.filter
|
|
3101
|
-
...(input.filterType
|
|
3087
|
+
...(input.filter != null && { filter: input.filter }),
|
|
3088
|
+
...(input.filterType != null && { filterType: input.filterType }),
|
|
3102
3089
|
};
|
|
3103
3090
|
};
|
|
3104
3091
|
const serializeAws_json1_1ScanningRepositoryFilterList = (input, context) => {
|
|
@@ -3113,35 +3100,30 @@ const serializeAws_json1_1ScanningRepositoryFilterList = (input, context) => {
|
|
|
3113
3100
|
};
|
|
3114
3101
|
const serializeAws_json1_1SetRepositoryPolicyRequest = (input, context) => {
|
|
3115
3102
|
return {
|
|
3116
|
-
...(input.force
|
|
3117
|
-
...(input.policyText
|
|
3118
|
-
...(input.registryId
|
|
3119
|
-
...(input.repositoryName
|
|
3120
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
3103
|
+
...(input.force != null && { force: input.force }),
|
|
3104
|
+
...(input.policyText != null && { policyText: input.policyText }),
|
|
3105
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
3106
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
3121
3107
|
};
|
|
3122
3108
|
};
|
|
3123
3109
|
const serializeAws_json1_1StartImageScanRequest = (input, context) => {
|
|
3124
3110
|
return {
|
|
3125
|
-
...(input.imageId
|
|
3126
|
-
|
|
3127
|
-
...(input.
|
|
3128
|
-
...(input.repositoryName !== undefined &&
|
|
3129
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
3111
|
+
...(input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
|
|
3112
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
3113
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
3130
3114
|
};
|
|
3131
3115
|
};
|
|
3132
3116
|
const serializeAws_json1_1StartLifecyclePolicyPreviewRequest = (input, context) => {
|
|
3133
3117
|
return {
|
|
3134
|
-
...(input.lifecyclePolicyText
|
|
3135
|
-
|
|
3136
|
-
...(input.
|
|
3137
|
-
...(input.repositoryName !== undefined &&
|
|
3138
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
3118
|
+
...(input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText }),
|
|
3119
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
3120
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
3139
3121
|
};
|
|
3140
3122
|
};
|
|
3141
3123
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
3142
3124
|
return {
|
|
3143
|
-
...(input.Key
|
|
3144
|
-
...(input.Value
|
|
3125
|
+
...(input.Key != null && { Key: input.Key }),
|
|
3126
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3145
3127
|
};
|
|
3146
3128
|
};
|
|
3147
3129
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -3166,27 +3148,24 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
3166
3148
|
};
|
|
3167
3149
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
3168
3150
|
return {
|
|
3169
|
-
...(input.resourceArn
|
|
3170
|
-
...(input.tags
|
|
3151
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
3152
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3171
3153
|
};
|
|
3172
3154
|
};
|
|
3173
3155
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
3174
3156
|
return {
|
|
3175
|
-
...(input.resourceArn
|
|
3176
|
-
...(input.tagKeys
|
|
3177
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
3157
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
3158
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
3178
3159
|
};
|
|
3179
3160
|
};
|
|
3180
3161
|
const serializeAws_json1_1UploadLayerPartRequest = (input, context) => {
|
|
3181
3162
|
return {
|
|
3182
|
-
...(input.layerPartBlob
|
|
3183
|
-
|
|
3184
|
-
...(input.
|
|
3185
|
-
...(input.
|
|
3186
|
-
...(input.
|
|
3187
|
-
...(input.
|
|
3188
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
3189
|
-
...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
|
|
3163
|
+
...(input.layerPartBlob != null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }),
|
|
3164
|
+
...(input.partFirstByte != null && { partFirstByte: input.partFirstByte }),
|
|
3165
|
+
...(input.partLastByte != null && { partLastByte: input.partLastByte }),
|
|
3166
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
3167
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
3168
|
+
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
3190
3169
|
};
|
|
3191
3170
|
};
|
|
3192
3171
|
const deserializeAws_json1_1Attribute = (output, context) => {
|
|
@@ -3209,9 +3188,7 @@ const deserializeAws_json1_1AttributeList = (output, context) => {
|
|
|
3209
3188
|
const deserializeAws_json1_1AuthorizationData = (output, context) => {
|
|
3210
3189
|
return {
|
|
3211
3190
|
authorizationToken: (0, smithy_client_1.expectString)(output.authorizationToken),
|
|
3212
|
-
expiresAt: output.expiresAt
|
|
3213
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiresAt)))
|
|
3214
|
-
: undefined,
|
|
3191
|
+
expiresAt: output.expiresAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiresAt))) : undefined,
|
|
3215
3192
|
proxyEndpoint: (0, smithy_client_1.expectString)(output.proxyEndpoint),
|
|
3216
3193
|
};
|
|
3217
3194
|
};
|
|
@@ -3231,53 +3208,37 @@ const deserializeAws_json1_1AwsEcrContainerImageDetails = (output, context) => {
|
|
|
3231
3208
|
architecture: (0, smithy_client_1.expectString)(output.architecture),
|
|
3232
3209
|
author: (0, smithy_client_1.expectString)(output.author),
|
|
3233
3210
|
imageHash: (0, smithy_client_1.expectString)(output.imageHash),
|
|
3234
|
-
imageTags: output.imageTags
|
|
3235
|
-
? deserializeAws_json1_1ImageTagsList(output.imageTags, context)
|
|
3236
|
-
: undefined,
|
|
3211
|
+
imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagsList(output.imageTags, context) : undefined,
|
|
3237
3212
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
3238
|
-
pushedAt: output.pushedAt
|
|
3239
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pushedAt)))
|
|
3240
|
-
: undefined,
|
|
3213
|
+
pushedAt: output.pushedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pushedAt))) : undefined,
|
|
3241
3214
|
registry: (0, smithy_client_1.expectString)(output.registry),
|
|
3242
3215
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
3243
3216
|
};
|
|
3244
3217
|
};
|
|
3245
3218
|
const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = (output, context) => {
|
|
3246
3219
|
return {
|
|
3247
|
-
failures: output.failures
|
|
3248
|
-
|
|
3249
|
-
: undefined,
|
|
3250
|
-
layers: output.layers !== undefined && output.layers !== null
|
|
3251
|
-
? deserializeAws_json1_1LayerList(output.layers, context)
|
|
3252
|
-
: undefined,
|
|
3220
|
+
failures: output.failures != null ? deserializeAws_json1_1LayerFailureList(output.failures, context) : undefined,
|
|
3221
|
+
layers: output.layers != null ? deserializeAws_json1_1LayerList(output.layers, context) : undefined,
|
|
3253
3222
|
};
|
|
3254
3223
|
};
|
|
3255
3224
|
const deserializeAws_json1_1BatchDeleteImageResponse = (output, context) => {
|
|
3256
3225
|
return {
|
|
3257
|
-
failures: output.failures
|
|
3258
|
-
|
|
3259
|
-
: undefined,
|
|
3260
|
-
imageIds: output.imageIds !== undefined && output.imageIds !== null
|
|
3261
|
-
? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
|
|
3262
|
-
: undefined,
|
|
3226
|
+
failures: output.failures != null ? deserializeAws_json1_1ImageFailureList(output.failures, context) : undefined,
|
|
3227
|
+
imageIds: output.imageIds != null ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) : undefined,
|
|
3263
3228
|
};
|
|
3264
3229
|
};
|
|
3265
3230
|
const deserializeAws_json1_1BatchGetImageResponse = (output, context) => {
|
|
3266
3231
|
return {
|
|
3267
|
-
failures: output.failures
|
|
3268
|
-
|
|
3269
|
-
: undefined,
|
|
3270
|
-
images: output.images !== undefined && output.images !== null
|
|
3271
|
-
? deserializeAws_json1_1ImageList(output.images, context)
|
|
3272
|
-
: undefined,
|
|
3232
|
+
failures: output.failures != null ? deserializeAws_json1_1ImageFailureList(output.failures, context) : undefined,
|
|
3233
|
+
images: output.images != null ? deserializeAws_json1_1ImageList(output.images, context) : undefined,
|
|
3273
3234
|
};
|
|
3274
3235
|
};
|
|
3275
3236
|
const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse = (output, context) => {
|
|
3276
3237
|
return {
|
|
3277
|
-
failures: output.failures
|
|
3238
|
+
failures: output.failures != null
|
|
3278
3239
|
? deserializeAws_json1_1RepositoryScanningConfigurationFailureList(output.failures, context)
|
|
3279
3240
|
: undefined,
|
|
3280
|
-
scanningConfigurations: output.scanningConfigurations
|
|
3241
|
+
scanningConfigurations: output.scanningConfigurations != null
|
|
3281
3242
|
? deserializeAws_json1_1RepositoryScanningConfigurationList(output.scanningConfigurations, context)
|
|
3282
3243
|
: undefined,
|
|
3283
3244
|
};
|
|
@@ -3292,9 +3253,7 @@ const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => {
|
|
|
3292
3253
|
};
|
|
3293
3254
|
const deserializeAws_json1_1CreatePullThroughCacheRuleResponse = (output, context) => {
|
|
3294
3255
|
return {
|
|
3295
|
-
createdAt: output.createdAt
|
|
3296
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
3297
|
-
: undefined,
|
|
3256
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
3298
3257
|
ecrRepositoryPrefix: (0, smithy_client_1.expectString)(output.ecrRepositoryPrefix),
|
|
3299
3258
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
3300
3259
|
upstreamRegistryUrl: (0, smithy_client_1.expectString)(output.upstreamRegistryUrl),
|
|
@@ -3302,9 +3261,7 @@ const deserializeAws_json1_1CreatePullThroughCacheRuleResponse = (output, contex
|
|
|
3302
3261
|
};
|
|
3303
3262
|
const deserializeAws_json1_1CreateRepositoryResponse = (output, context) => {
|
|
3304
3263
|
return {
|
|
3305
|
-
repository: output.repository
|
|
3306
|
-
? deserializeAws_json1_1Repository(output.repository, context)
|
|
3307
|
-
: undefined,
|
|
3264
|
+
repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
|
|
3308
3265
|
};
|
|
3309
3266
|
};
|
|
3310
3267
|
const deserializeAws_json1_1CvssScore = (output, context) => {
|
|
@@ -3334,7 +3291,7 @@ const deserializeAws_json1_1CvssScoreAdjustmentList = (output, context) => {
|
|
|
3334
3291
|
};
|
|
3335
3292
|
const deserializeAws_json1_1CvssScoreDetails = (output, context) => {
|
|
3336
3293
|
return {
|
|
3337
|
-
adjustments: output.adjustments
|
|
3294
|
+
adjustments: output.adjustments != null
|
|
3338
3295
|
? deserializeAws_json1_1CvssScoreAdjustmentList(output.adjustments, context)
|
|
3339
3296
|
: undefined,
|
|
3340
3297
|
score: (0, smithy_client_1.limitedParseDouble)(output.score),
|
|
@@ -3356,7 +3313,7 @@ const deserializeAws_json1_1CvssScoreList = (output, context) => {
|
|
|
3356
3313
|
};
|
|
3357
3314
|
const deserializeAws_json1_1DeleteLifecyclePolicyResponse = (output, context) => {
|
|
3358
3315
|
return {
|
|
3359
|
-
lastEvaluatedAt: output.lastEvaluatedAt
|
|
3316
|
+
lastEvaluatedAt: output.lastEvaluatedAt != null
|
|
3360
3317
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastEvaluatedAt)))
|
|
3361
3318
|
: undefined,
|
|
3362
3319
|
lifecyclePolicyText: (0, smithy_client_1.expectString)(output.lifecyclePolicyText),
|
|
@@ -3366,9 +3323,7 @@ const deserializeAws_json1_1DeleteLifecyclePolicyResponse = (output, context) =>
|
|
|
3366
3323
|
};
|
|
3367
3324
|
const deserializeAws_json1_1DeletePullThroughCacheRuleResponse = (output, context) => {
|
|
3368
3325
|
return {
|
|
3369
|
-
createdAt: output.createdAt
|
|
3370
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
3371
|
-
: undefined,
|
|
3326
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
3372
3327
|
ecrRepositoryPrefix: (0, smithy_client_1.expectString)(output.ecrRepositoryPrefix),
|
|
3373
3328
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
3374
3329
|
upstreamRegistryUrl: (0, smithy_client_1.expectString)(output.upstreamRegistryUrl),
|
|
@@ -3389,17 +3344,13 @@ const deserializeAws_json1_1DeleteRepositoryPolicyResponse = (output, context) =
|
|
|
3389
3344
|
};
|
|
3390
3345
|
const deserializeAws_json1_1DeleteRepositoryResponse = (output, context) => {
|
|
3391
3346
|
return {
|
|
3392
|
-
repository: output.repository
|
|
3393
|
-
? deserializeAws_json1_1Repository(output.repository, context)
|
|
3394
|
-
: undefined,
|
|
3347
|
+
repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
|
|
3395
3348
|
};
|
|
3396
3349
|
};
|
|
3397
3350
|
const deserializeAws_json1_1DescribeImageReplicationStatusResponse = (output, context) => {
|
|
3398
3351
|
return {
|
|
3399
|
-
imageId: output.imageId
|
|
3400
|
-
|
|
3401
|
-
: undefined,
|
|
3402
|
-
replicationStatuses: output.replicationStatuses !== undefined && output.replicationStatuses !== null
|
|
3352
|
+
imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
|
|
3353
|
+
replicationStatuses: output.replicationStatuses != null
|
|
3403
3354
|
? deserializeAws_json1_1ImageReplicationStatusList(output.replicationStatuses, context)
|
|
3404
3355
|
: undefined,
|
|
3405
3356
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
@@ -3407,13 +3358,11 @@ const deserializeAws_json1_1DescribeImageReplicationStatusResponse = (output, co
|
|
|
3407
3358
|
};
|
|
3408
3359
|
const deserializeAws_json1_1DescribeImageScanFindingsResponse = (output, context) => {
|
|
3409
3360
|
return {
|
|
3410
|
-
imageId: output.imageId
|
|
3411
|
-
|
|
3412
|
-
: undefined,
|
|
3413
|
-
imageScanFindings: output.imageScanFindings !== undefined && output.imageScanFindings !== null
|
|
3361
|
+
imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
|
|
3362
|
+
imageScanFindings: output.imageScanFindings != null
|
|
3414
3363
|
? deserializeAws_json1_1ImageScanFindings(output.imageScanFindings, context)
|
|
3415
3364
|
: undefined,
|
|
3416
|
-
imageScanStatus: output.imageScanStatus
|
|
3365
|
+
imageScanStatus: output.imageScanStatus != null
|
|
3417
3366
|
? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
|
|
3418
3367
|
: undefined,
|
|
3419
3368
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -3423,16 +3372,14 @@ const deserializeAws_json1_1DescribeImageScanFindingsResponse = (output, context
|
|
|
3423
3372
|
};
|
|
3424
3373
|
const deserializeAws_json1_1DescribeImagesResponse = (output, context) => {
|
|
3425
3374
|
return {
|
|
3426
|
-
imageDetails: output.imageDetails
|
|
3427
|
-
? deserializeAws_json1_1ImageDetailList(output.imageDetails, context)
|
|
3428
|
-
: undefined,
|
|
3375
|
+
imageDetails: output.imageDetails != null ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context) : undefined,
|
|
3429
3376
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3430
3377
|
};
|
|
3431
3378
|
};
|
|
3432
3379
|
const deserializeAws_json1_1DescribePullThroughCacheRulesResponse = (output, context) => {
|
|
3433
3380
|
return {
|
|
3434
3381
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3435
|
-
pullThroughCacheRules: output.pullThroughCacheRules
|
|
3382
|
+
pullThroughCacheRules: output.pullThroughCacheRules != null
|
|
3436
3383
|
? deserializeAws_json1_1PullThroughCacheRuleList(output.pullThroughCacheRules, context)
|
|
3437
3384
|
: undefined,
|
|
3438
3385
|
};
|
|
@@ -3440,7 +3387,7 @@ const deserializeAws_json1_1DescribePullThroughCacheRulesResponse = (output, con
|
|
|
3440
3387
|
const deserializeAws_json1_1DescribeRegistryResponse = (output, context) => {
|
|
3441
3388
|
return {
|
|
3442
3389
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
3443
|
-
replicationConfiguration: output.replicationConfiguration
|
|
3390
|
+
replicationConfiguration: output.replicationConfiguration != null
|
|
3444
3391
|
? deserializeAws_json1_1ReplicationConfiguration(output.replicationConfiguration, context)
|
|
3445
3392
|
: undefined,
|
|
3446
3393
|
};
|
|
@@ -3448,9 +3395,7 @@ const deserializeAws_json1_1DescribeRegistryResponse = (output, context) => {
|
|
|
3448
3395
|
const deserializeAws_json1_1DescribeRepositoriesResponse = (output, context) => {
|
|
3449
3396
|
return {
|
|
3450
3397
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3451
|
-
repositories: output.repositories
|
|
3452
|
-
? deserializeAws_json1_1RepositoryList(output.repositories, context)
|
|
3453
|
-
: undefined,
|
|
3398
|
+
repositories: output.repositories != null ? deserializeAws_json1_1RepositoryList(output.repositories, context) : undefined,
|
|
3454
3399
|
};
|
|
3455
3400
|
};
|
|
3456
3401
|
const deserializeAws_json1_1EmptyUploadException = (output, context) => {
|
|
@@ -3469,32 +3414,24 @@ const deserializeAws_json1_1EnhancedImageScanFinding = (output, context) => {
|
|
|
3469
3414
|
awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
|
|
3470
3415
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3471
3416
|
findingArn: (0, smithy_client_1.expectString)(output.findingArn),
|
|
3472
|
-
firstObservedAt: output.firstObservedAt
|
|
3417
|
+
firstObservedAt: output.firstObservedAt != null
|
|
3473
3418
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.firstObservedAt)))
|
|
3474
3419
|
: undefined,
|
|
3475
|
-
lastObservedAt: output.lastObservedAt
|
|
3420
|
+
lastObservedAt: output.lastObservedAt != null
|
|
3476
3421
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastObservedAt)))
|
|
3477
3422
|
: undefined,
|
|
3478
|
-
packageVulnerabilityDetails: output.packageVulnerabilityDetails
|
|
3423
|
+
packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
|
|
3479
3424
|
? deserializeAws_json1_1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
|
|
3480
3425
|
: undefined,
|
|
3481
|
-
remediation: output.remediation
|
|
3482
|
-
|
|
3483
|
-
: undefined,
|
|
3484
|
-
resources: output.resources !== undefined && output.resources !== null
|
|
3485
|
-
? deserializeAws_json1_1ResourceList(output.resources, context)
|
|
3486
|
-
: undefined,
|
|
3426
|
+
remediation: output.remediation != null ? deserializeAws_json1_1Remediation(output.remediation, context) : undefined,
|
|
3427
|
+
resources: output.resources != null ? deserializeAws_json1_1ResourceList(output.resources, context) : undefined,
|
|
3487
3428
|
score: (0, smithy_client_1.limitedParseDouble)(output.score),
|
|
3488
|
-
scoreDetails: output.scoreDetails
|
|
3489
|
-
? deserializeAws_json1_1ScoreDetails(output.scoreDetails, context)
|
|
3490
|
-
: undefined,
|
|
3429
|
+
scoreDetails: output.scoreDetails != null ? deserializeAws_json1_1ScoreDetails(output.scoreDetails, context) : undefined,
|
|
3491
3430
|
severity: (0, smithy_client_1.expectString)(output.severity),
|
|
3492
3431
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3493
3432
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
3494
3433
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3495
|
-
updatedAt: output.updatedAt
|
|
3496
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
3497
|
-
: undefined,
|
|
3434
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
3498
3435
|
};
|
|
3499
3436
|
};
|
|
3500
3437
|
const deserializeAws_json1_1EnhancedImageScanFindingList = (output, context) => {
|
|
@@ -3521,7 +3458,7 @@ const deserializeAws_json1_1FindingSeverityCounts = (output, context) => {
|
|
|
3521
3458
|
};
|
|
3522
3459
|
const deserializeAws_json1_1GetAuthorizationTokenResponse = (output, context) => {
|
|
3523
3460
|
return {
|
|
3524
|
-
authorizationData: output.authorizationData
|
|
3461
|
+
authorizationData: output.authorizationData != null
|
|
3525
3462
|
? deserializeAws_json1_1AuthorizationDataList(output.authorizationData, context)
|
|
3526
3463
|
: undefined,
|
|
3527
3464
|
};
|
|
@@ -3536,20 +3473,18 @@ const deserializeAws_json1_1GetLifecyclePolicyPreviewResponse = (output, context
|
|
|
3536
3473
|
return {
|
|
3537
3474
|
lifecyclePolicyText: (0, smithy_client_1.expectString)(output.lifecyclePolicyText),
|
|
3538
3475
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3539
|
-
previewResults: output.previewResults
|
|
3476
|
+
previewResults: output.previewResults != null
|
|
3540
3477
|
? deserializeAws_json1_1LifecyclePolicyPreviewResultList(output.previewResults, context)
|
|
3541
3478
|
: undefined,
|
|
3542
3479
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
3543
3480
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
3544
3481
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3545
|
-
summary: output.summary
|
|
3546
|
-
? deserializeAws_json1_1LifecyclePolicyPreviewSummary(output.summary, context)
|
|
3547
|
-
: undefined,
|
|
3482
|
+
summary: output.summary != null ? deserializeAws_json1_1LifecyclePolicyPreviewSummary(output.summary, context) : undefined,
|
|
3548
3483
|
};
|
|
3549
3484
|
};
|
|
3550
3485
|
const deserializeAws_json1_1GetLifecyclePolicyResponse = (output, context) => {
|
|
3551
3486
|
return {
|
|
3552
|
-
lastEvaluatedAt: output.lastEvaluatedAt
|
|
3487
|
+
lastEvaluatedAt: output.lastEvaluatedAt != null
|
|
3553
3488
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastEvaluatedAt)))
|
|
3554
3489
|
: undefined,
|
|
3555
3490
|
lifecyclePolicyText: (0, smithy_client_1.expectString)(output.lifecyclePolicyText),
|
|
@@ -3566,7 +3501,7 @@ const deserializeAws_json1_1GetRegistryPolicyResponse = (output, context) => {
|
|
|
3566
3501
|
const deserializeAws_json1_1GetRegistryScanningConfigurationResponse = (output, context) => {
|
|
3567
3502
|
return {
|
|
3568
3503
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
3569
|
-
scanningConfiguration: output.scanningConfiguration
|
|
3504
|
+
scanningConfiguration: output.scanningConfiguration != null
|
|
3570
3505
|
? deserializeAws_json1_1RegistryScanningConfiguration(output.scanningConfiguration, context)
|
|
3571
3506
|
: undefined,
|
|
3572
3507
|
};
|
|
@@ -3580,9 +3515,7 @@ const deserializeAws_json1_1GetRepositoryPolicyResponse = (output, context) => {
|
|
|
3580
3515
|
};
|
|
3581
3516
|
const deserializeAws_json1_1Image = (output, context) => {
|
|
3582
3517
|
return {
|
|
3583
|
-
imageId: output.imageId
|
|
3584
|
-
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
3585
|
-
: undefined,
|
|
3518
|
+
imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
|
|
3586
3519
|
imageManifest: (0, smithy_client_1.expectString)(output.imageManifest),
|
|
3587
3520
|
imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
|
|
3588
3521
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
@@ -3599,20 +3532,18 @@ const deserializeAws_json1_1ImageDetail = (output, context) => {
|
|
|
3599
3532
|
artifactMediaType: (0, smithy_client_1.expectString)(output.artifactMediaType),
|
|
3600
3533
|
imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
|
|
3601
3534
|
imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
|
|
3602
|
-
imagePushedAt: output.imagePushedAt
|
|
3535
|
+
imagePushedAt: output.imagePushedAt != null
|
|
3603
3536
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imagePushedAt)))
|
|
3604
3537
|
: undefined,
|
|
3605
|
-
imageScanFindingsSummary: output.imageScanFindingsSummary
|
|
3538
|
+
imageScanFindingsSummary: output.imageScanFindingsSummary != null
|
|
3606
3539
|
? deserializeAws_json1_1ImageScanFindingsSummary(output.imageScanFindingsSummary, context)
|
|
3607
3540
|
: undefined,
|
|
3608
|
-
imageScanStatus: output.imageScanStatus
|
|
3541
|
+
imageScanStatus: output.imageScanStatus != null
|
|
3609
3542
|
? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
|
|
3610
3543
|
: undefined,
|
|
3611
3544
|
imageSizeInBytes: (0, smithy_client_1.expectLong)(output.imageSizeInBytes),
|
|
3612
|
-
imageTags: output.imageTags
|
|
3613
|
-
|
|
3614
|
-
: undefined,
|
|
3615
|
-
lastRecordedPullTime: output.lastRecordedPullTime !== undefined && output.lastRecordedPullTime !== null
|
|
3545
|
+
imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) : undefined,
|
|
3546
|
+
lastRecordedPullTime: output.lastRecordedPullTime != null
|
|
3616
3547
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRecordedPullTime)))
|
|
3617
3548
|
: undefined,
|
|
3618
3549
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
@@ -3639,9 +3570,7 @@ const deserializeAws_json1_1ImageFailure = (output, context) => {
|
|
|
3639
3570
|
return {
|
|
3640
3571
|
failureCode: (0, smithy_client_1.expectString)(output.failureCode),
|
|
3641
3572
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
3642
|
-
imageId: output.imageId
|
|
3643
|
-
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
3644
|
-
: undefined,
|
|
3573
|
+
imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
|
|
3645
3574
|
};
|
|
3646
3575
|
};
|
|
3647
3576
|
const deserializeAws_json1_1ImageFailureList = (output, context) => {
|
|
@@ -3709,9 +3638,7 @@ const deserializeAws_json1_1ImageReplicationStatusList = (output, context) => {
|
|
|
3709
3638
|
};
|
|
3710
3639
|
const deserializeAws_json1_1ImageScanFinding = (output, context) => {
|
|
3711
3640
|
return {
|
|
3712
|
-
attributes: output.attributes
|
|
3713
|
-
? deserializeAws_json1_1AttributeList(output.attributes, context)
|
|
3714
|
-
: undefined,
|
|
3641
|
+
attributes: output.attributes != null ? deserializeAws_json1_1AttributeList(output.attributes, context) : undefined,
|
|
3715
3642
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3716
3643
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3717
3644
|
severity: (0, smithy_client_1.expectString)(output.severity),
|
|
@@ -3731,32 +3658,30 @@ const deserializeAws_json1_1ImageScanFindingList = (output, context) => {
|
|
|
3731
3658
|
};
|
|
3732
3659
|
const deserializeAws_json1_1ImageScanFindings = (output, context) => {
|
|
3733
3660
|
return {
|
|
3734
|
-
enhancedFindings: output.enhancedFindings
|
|
3661
|
+
enhancedFindings: output.enhancedFindings != null
|
|
3735
3662
|
? deserializeAws_json1_1EnhancedImageScanFindingList(output.enhancedFindings, context)
|
|
3736
3663
|
: undefined,
|
|
3737
|
-
findingSeverityCounts: output.findingSeverityCounts
|
|
3664
|
+
findingSeverityCounts: output.findingSeverityCounts != null
|
|
3738
3665
|
? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context)
|
|
3739
3666
|
: undefined,
|
|
3740
|
-
findings: output.findings
|
|
3741
|
-
|
|
3742
|
-
: undefined,
|
|
3743
|
-
imageScanCompletedAt: output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null
|
|
3667
|
+
findings: output.findings != null ? deserializeAws_json1_1ImageScanFindingList(output.findings, context) : undefined,
|
|
3668
|
+
imageScanCompletedAt: output.imageScanCompletedAt != null
|
|
3744
3669
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imageScanCompletedAt)))
|
|
3745
3670
|
: undefined,
|
|
3746
|
-
vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt
|
|
3671
|
+
vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt != null
|
|
3747
3672
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vulnerabilitySourceUpdatedAt)))
|
|
3748
3673
|
: undefined,
|
|
3749
3674
|
};
|
|
3750
3675
|
};
|
|
3751
3676
|
const deserializeAws_json1_1ImageScanFindingsSummary = (output, context) => {
|
|
3752
3677
|
return {
|
|
3753
|
-
findingSeverityCounts: output.findingSeverityCounts
|
|
3678
|
+
findingSeverityCounts: output.findingSeverityCounts != null
|
|
3754
3679
|
? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context)
|
|
3755
3680
|
: undefined,
|
|
3756
|
-
imageScanCompletedAt: output.imageScanCompletedAt
|
|
3681
|
+
imageScanCompletedAt: output.imageScanCompletedAt != null
|
|
3757
3682
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imageScanCompletedAt)))
|
|
3758
3683
|
: undefined,
|
|
3759
|
-
vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt
|
|
3684
|
+
vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt != null
|
|
3760
3685
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vulnerabilitySourceUpdatedAt)))
|
|
3761
3686
|
: undefined,
|
|
3762
3687
|
};
|
|
@@ -3909,17 +3834,13 @@ const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException = (output, c
|
|
|
3909
3834
|
};
|
|
3910
3835
|
const deserializeAws_json1_1LifecyclePolicyPreviewResult = (output, context) => {
|
|
3911
3836
|
return {
|
|
3912
|
-
action: output.action
|
|
3913
|
-
? deserializeAws_json1_1LifecyclePolicyRuleAction(output.action, context)
|
|
3914
|
-
: undefined,
|
|
3837
|
+
action: output.action != null ? deserializeAws_json1_1LifecyclePolicyRuleAction(output.action, context) : undefined,
|
|
3915
3838
|
appliedRulePriority: (0, smithy_client_1.expectInt32)(output.appliedRulePriority),
|
|
3916
3839
|
imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
|
|
3917
|
-
imagePushedAt: output.imagePushedAt
|
|
3840
|
+
imagePushedAt: output.imagePushedAt != null
|
|
3918
3841
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imagePushedAt)))
|
|
3919
3842
|
: undefined,
|
|
3920
|
-
imageTags: output.imageTags
|
|
3921
|
-
? deserializeAws_json1_1ImageTagList(output.imageTags, context)
|
|
3922
|
-
: undefined,
|
|
3843
|
+
imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) : undefined,
|
|
3923
3844
|
};
|
|
3924
3845
|
};
|
|
3925
3846
|
const deserializeAws_json1_1LifecyclePolicyPreviewResultList = (output, context) => {
|
|
@@ -3950,50 +3871,40 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
3950
3871
|
};
|
|
3951
3872
|
const deserializeAws_json1_1ListImagesResponse = (output, context) => {
|
|
3952
3873
|
return {
|
|
3953
|
-
imageIds: output.imageIds
|
|
3954
|
-
? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
|
|
3955
|
-
: undefined,
|
|
3874
|
+
imageIds: output.imageIds != null ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) : undefined,
|
|
3956
3875
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3957
3876
|
};
|
|
3958
3877
|
};
|
|
3959
3878
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
3960
3879
|
return {
|
|
3961
|
-
tags: output.tags
|
|
3962
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
3963
|
-
: undefined,
|
|
3880
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
3964
3881
|
};
|
|
3965
3882
|
};
|
|
3966
3883
|
const deserializeAws_json1_1PackageVulnerabilityDetails = (output, context) => {
|
|
3967
3884
|
return {
|
|
3968
|
-
cvss: output.cvss
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
|
|
3972
|
-
? deserializeAws_json1_1ReferenceUrlsList(output.referenceUrls, context)
|
|
3973
|
-
: undefined,
|
|
3974
|
-
relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
|
|
3885
|
+
cvss: output.cvss != null ? deserializeAws_json1_1CvssScoreList(output.cvss, context) : undefined,
|
|
3886
|
+
referenceUrls: output.referenceUrls != null ? deserializeAws_json1_1ReferenceUrlsList(output.referenceUrls, context) : undefined,
|
|
3887
|
+
relatedVulnerabilities: output.relatedVulnerabilities != null
|
|
3975
3888
|
? deserializeAws_json1_1RelatedVulnerabilitiesList(output.relatedVulnerabilities, context)
|
|
3976
3889
|
: undefined,
|
|
3977
3890
|
source: (0, smithy_client_1.expectString)(output.source),
|
|
3978
3891
|
sourceUrl: (0, smithy_client_1.expectString)(output.sourceUrl),
|
|
3979
|
-
vendorCreatedAt: output.vendorCreatedAt
|
|
3892
|
+
vendorCreatedAt: output.vendorCreatedAt != null
|
|
3980
3893
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorCreatedAt)))
|
|
3981
3894
|
: undefined,
|
|
3982
3895
|
vendorSeverity: (0, smithy_client_1.expectString)(output.vendorSeverity),
|
|
3983
|
-
vendorUpdatedAt: output.vendorUpdatedAt
|
|
3896
|
+
vendorUpdatedAt: output.vendorUpdatedAt != null
|
|
3984
3897
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorUpdatedAt)))
|
|
3985
3898
|
: undefined,
|
|
3986
3899
|
vulnerabilityId: (0, smithy_client_1.expectString)(output.vulnerabilityId),
|
|
3987
|
-
vulnerablePackages: output.vulnerablePackages
|
|
3900
|
+
vulnerablePackages: output.vulnerablePackages != null
|
|
3988
3901
|
? deserializeAws_json1_1VulnerablePackagesList(output.vulnerablePackages, context)
|
|
3989
3902
|
: undefined,
|
|
3990
3903
|
};
|
|
3991
3904
|
};
|
|
3992
3905
|
const deserializeAws_json1_1PullThroughCacheRule = (output, context) => {
|
|
3993
3906
|
return {
|
|
3994
|
-
createdAt: output.createdAt
|
|
3995
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
3996
|
-
: undefined,
|
|
3907
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
3997
3908
|
ecrRepositoryPrefix: (0, smithy_client_1.expectString)(output.ecrRepositoryPrefix),
|
|
3998
3909
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
3999
3910
|
upstreamRegistryUrl: (0, smithy_client_1.expectString)(output.upstreamRegistryUrl),
|
|
@@ -4022,14 +3933,12 @@ const deserializeAws_json1_1PullThroughCacheRuleNotFoundException = (output, con
|
|
|
4022
3933
|
};
|
|
4023
3934
|
const deserializeAws_json1_1PutImageResponse = (output, context) => {
|
|
4024
3935
|
return {
|
|
4025
|
-
image: output.image
|
|
4026
|
-
? deserializeAws_json1_1Image(output.image, context)
|
|
4027
|
-
: undefined,
|
|
3936
|
+
image: output.image != null ? deserializeAws_json1_1Image(output.image, context) : undefined,
|
|
4028
3937
|
};
|
|
4029
3938
|
};
|
|
4030
3939
|
const deserializeAws_json1_1PutImageScanningConfigurationResponse = (output, context) => {
|
|
4031
3940
|
return {
|
|
4032
|
-
imageScanningConfiguration: output.imageScanningConfiguration
|
|
3941
|
+
imageScanningConfiguration: output.imageScanningConfiguration != null
|
|
4033
3942
|
? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context)
|
|
4034
3943
|
: undefined,
|
|
4035
3944
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
@@ -4058,14 +3967,14 @@ const deserializeAws_json1_1PutRegistryPolicyResponse = (output, context) => {
|
|
|
4058
3967
|
};
|
|
4059
3968
|
const deserializeAws_json1_1PutRegistryScanningConfigurationResponse = (output, context) => {
|
|
4060
3969
|
return {
|
|
4061
|
-
registryScanningConfiguration: output.registryScanningConfiguration
|
|
3970
|
+
registryScanningConfiguration: output.registryScanningConfiguration != null
|
|
4062
3971
|
? deserializeAws_json1_1RegistryScanningConfiguration(output.registryScanningConfiguration, context)
|
|
4063
3972
|
: undefined,
|
|
4064
3973
|
};
|
|
4065
3974
|
};
|
|
4066
3975
|
const deserializeAws_json1_1PutReplicationConfigurationResponse = (output, context) => {
|
|
4067
3976
|
return {
|
|
4068
|
-
replicationConfiguration: output.replicationConfiguration
|
|
3977
|
+
replicationConfiguration: output.replicationConfiguration != null
|
|
4069
3978
|
? deserializeAws_json1_1ReplicationConfiguration(output.replicationConfiguration, context)
|
|
4070
3979
|
: undefined,
|
|
4071
3980
|
};
|
|
@@ -4099,15 +4008,13 @@ const deserializeAws_json1_1RegistryPolicyNotFoundException = (output, context)
|
|
|
4099
4008
|
};
|
|
4100
4009
|
const deserializeAws_json1_1RegistryScanningConfiguration = (output, context) => {
|
|
4101
4010
|
return {
|
|
4102
|
-
rules: output.rules
|
|
4103
|
-
? deserializeAws_json1_1RegistryScanningRuleList(output.rules, context)
|
|
4104
|
-
: undefined,
|
|
4011
|
+
rules: output.rules != null ? deserializeAws_json1_1RegistryScanningRuleList(output.rules, context) : undefined,
|
|
4105
4012
|
scanType: (0, smithy_client_1.expectString)(output.scanType),
|
|
4106
4013
|
};
|
|
4107
4014
|
};
|
|
4108
4015
|
const deserializeAws_json1_1RegistryScanningRule = (output, context) => {
|
|
4109
4016
|
return {
|
|
4110
|
-
repositoryFilters: output.repositoryFilters
|
|
4017
|
+
repositoryFilters: output.repositoryFilters != null
|
|
4111
4018
|
? deserializeAws_json1_1ScanningRepositoryFilterList(output.repositoryFilters, context)
|
|
4112
4019
|
: undefined,
|
|
4113
4020
|
scanFrequency: (0, smithy_client_1.expectString)(output.scanFrequency),
|
|
@@ -4137,16 +4044,12 @@ const deserializeAws_json1_1RelatedVulnerabilitiesList = (output, context) => {
|
|
|
4137
4044
|
};
|
|
4138
4045
|
const deserializeAws_json1_1Remediation = (output, context) => {
|
|
4139
4046
|
return {
|
|
4140
|
-
recommendation: output.recommendation
|
|
4141
|
-
? deserializeAws_json1_1Recommendation(output.recommendation, context)
|
|
4142
|
-
: undefined,
|
|
4047
|
+
recommendation: output.recommendation != null ? deserializeAws_json1_1Recommendation(output.recommendation, context) : undefined,
|
|
4143
4048
|
};
|
|
4144
4049
|
};
|
|
4145
4050
|
const deserializeAws_json1_1ReplicationConfiguration = (output, context) => {
|
|
4146
4051
|
return {
|
|
4147
|
-
rules: output.rules
|
|
4148
|
-
? deserializeAws_json1_1ReplicationRuleList(output.rules, context)
|
|
4149
|
-
: undefined,
|
|
4052
|
+
rules: output.rules != null ? deserializeAws_json1_1ReplicationRuleList(output.rules, context) : undefined,
|
|
4150
4053
|
};
|
|
4151
4054
|
};
|
|
4152
4055
|
const deserializeAws_json1_1ReplicationDestination = (output, context) => {
|
|
@@ -4168,10 +4071,10 @@ const deserializeAws_json1_1ReplicationDestinationList = (output, context) => {
|
|
|
4168
4071
|
};
|
|
4169
4072
|
const deserializeAws_json1_1ReplicationRule = (output, context) => {
|
|
4170
4073
|
return {
|
|
4171
|
-
destinations: output.destinations
|
|
4074
|
+
destinations: output.destinations != null
|
|
4172
4075
|
? deserializeAws_json1_1ReplicationDestinationList(output.destinations, context)
|
|
4173
4076
|
: undefined,
|
|
4174
|
-
repositoryFilters: output.repositoryFilters
|
|
4077
|
+
repositoryFilters: output.repositoryFilters != null
|
|
4175
4078
|
? deserializeAws_json1_1RepositoryFilterList(output.repositoryFilters, context)
|
|
4176
4079
|
: undefined,
|
|
4177
4080
|
};
|
|
@@ -4189,13 +4092,11 @@ const deserializeAws_json1_1ReplicationRuleList = (output, context) => {
|
|
|
4189
4092
|
};
|
|
4190
4093
|
const deserializeAws_json1_1Repository = (output, context) => {
|
|
4191
4094
|
return {
|
|
4192
|
-
createdAt: output.createdAt
|
|
4193
|
-
|
|
4194
|
-
: undefined,
|
|
4195
|
-
encryptionConfiguration: output.encryptionConfiguration !== undefined && output.encryptionConfiguration !== null
|
|
4095
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
4096
|
+
encryptionConfiguration: output.encryptionConfiguration != null
|
|
4196
4097
|
? deserializeAws_json1_1EncryptionConfiguration(output.encryptionConfiguration, context)
|
|
4197
4098
|
: undefined,
|
|
4198
|
-
imageScanningConfiguration: output.imageScanningConfiguration
|
|
4099
|
+
imageScanningConfiguration: output.imageScanningConfiguration != null
|
|
4199
4100
|
? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context)
|
|
4200
4101
|
: undefined,
|
|
4201
4102
|
imageTagMutability: (0, smithy_client_1.expectString)(output.imageTagMutability),
|
|
@@ -4255,7 +4156,7 @@ const deserializeAws_json1_1RepositoryPolicyNotFoundException = (output, context
|
|
|
4255
4156
|
};
|
|
4256
4157
|
const deserializeAws_json1_1RepositoryScanningConfiguration = (output, context) => {
|
|
4257
4158
|
return {
|
|
4258
|
-
appliedScanFilters: output.appliedScanFilters
|
|
4159
|
+
appliedScanFilters: output.appliedScanFilters != null
|
|
4259
4160
|
? deserializeAws_json1_1ScanningRepositoryFilterList(output.appliedScanFilters, context)
|
|
4260
4161
|
: undefined,
|
|
4261
4162
|
repositoryArn: (0, smithy_client_1.expectString)(output.repositoryArn),
|
|
@@ -4295,17 +4196,15 @@ const deserializeAws_json1_1RepositoryScanningConfigurationList = (output, conte
|
|
|
4295
4196
|
};
|
|
4296
4197
|
const deserializeAws_json1_1Resource = (output, context) => {
|
|
4297
4198
|
return {
|
|
4298
|
-
details: output.details
|
|
4299
|
-
? deserializeAws_json1_1ResourceDetails(output.details, context)
|
|
4300
|
-
: undefined,
|
|
4199
|
+
details: output.details != null ? deserializeAws_json1_1ResourceDetails(output.details, context) : undefined,
|
|
4301
4200
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
4302
|
-
tags: output.tags
|
|
4201
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
4303
4202
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
4304
4203
|
};
|
|
4305
4204
|
};
|
|
4306
4205
|
const deserializeAws_json1_1ResourceDetails = (output, context) => {
|
|
4307
4206
|
return {
|
|
4308
|
-
awsEcrContainerImage: output.awsEcrContainerImage
|
|
4207
|
+
awsEcrContainerImage: output.awsEcrContainerImage != null
|
|
4309
4208
|
? deserializeAws_json1_1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
|
|
4310
4209
|
: undefined,
|
|
4311
4210
|
};
|
|
@@ -4345,9 +4244,7 @@ const deserializeAws_json1_1ScanNotFoundException = (output, context) => {
|
|
|
4345
4244
|
};
|
|
4346
4245
|
const deserializeAws_json1_1ScoreDetails = (output, context) => {
|
|
4347
4246
|
return {
|
|
4348
|
-
cvss: output.cvss
|
|
4349
|
-
? deserializeAws_json1_1CvssScoreDetails(output.cvss, context)
|
|
4350
|
-
: undefined,
|
|
4247
|
+
cvss: output.cvss != null ? deserializeAws_json1_1CvssScoreDetails(output.cvss, context) : undefined,
|
|
4351
4248
|
};
|
|
4352
4249
|
};
|
|
4353
4250
|
const deserializeAws_json1_1ServerException = (output, context) => {
|
|
@@ -4364,10 +4261,8 @@ const deserializeAws_json1_1SetRepositoryPolicyResponse = (output, context) => {
|
|
|
4364
4261
|
};
|
|
4365
4262
|
const deserializeAws_json1_1StartImageScanResponse = (output, context) => {
|
|
4366
4263
|
return {
|
|
4367
|
-
imageId: output.imageId
|
|
4368
|
-
|
|
4369
|
-
: undefined,
|
|
4370
|
-
imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
|
|
4264
|
+
imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
|
|
4265
|
+
imageScanStatus: output.imageScanStatus != null
|
|
4371
4266
|
? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
|
|
4372
4267
|
: undefined,
|
|
4373
4268
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
@@ -4534,5 +4429,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4534
4429
|
if (data["__type"] !== undefined) {
|
|
4535
4430
|
return sanitizeErrorCode(data["__type"]);
|
|
4536
4431
|
}
|
|
4537
|
-
return "";
|
|
4538
4432
|
};
|