@aws-sdk/client-ecr-public 3.504.0 → 3.509.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/dist-cjs/index.js +89 -723
- package/dist-es/protocols/Aws_json1_1.js +82 -716
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -772,7 +772,7 @@ var se_UploadLayerPartCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
772
772
|
}, "se_UploadLayerPartCommand");
|
|
773
773
|
var de_BatchCheckLayerAvailabilityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
774
774
|
if (output.statusCode >= 300) {
|
|
775
|
-
return
|
|
775
|
+
return de_CommandError(output, context);
|
|
776
776
|
}
|
|
777
777
|
const data = await parseBody(output.body, context);
|
|
778
778
|
let contents = {};
|
|
@@ -783,40 +783,9 @@ var de_BatchCheckLayerAvailabilityCommand = /* @__PURE__ */ __name(async (output
|
|
|
783
783
|
};
|
|
784
784
|
return response;
|
|
785
785
|
}, "de_BatchCheckLayerAvailabilityCommand");
|
|
786
|
-
var de_BatchCheckLayerAvailabilityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
787
|
-
const parsedOutput = {
|
|
788
|
-
...output,
|
|
789
|
-
body: await parseErrorBody(output.body, context)
|
|
790
|
-
};
|
|
791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
|
-
switch (errorCode) {
|
|
793
|
-
case "InvalidParameterException":
|
|
794
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
795
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
796
|
-
case "RegistryNotFoundException":
|
|
797
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
798
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
799
|
-
case "RepositoryNotFoundException":
|
|
800
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
801
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ServerException":
|
|
803
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
804
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
805
|
-
case "UnsupportedCommandException":
|
|
806
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
807
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
808
|
-
default:
|
|
809
|
-
const parsedBody = parsedOutput.body;
|
|
810
|
-
return throwDefaultError({
|
|
811
|
-
output,
|
|
812
|
-
parsedBody,
|
|
813
|
-
errorCode
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
}, "de_BatchCheckLayerAvailabilityCommandError");
|
|
817
786
|
var de_BatchDeleteImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
787
|
if (output.statusCode >= 300) {
|
|
819
|
-
return
|
|
788
|
+
return de_CommandError(output, context);
|
|
820
789
|
}
|
|
821
790
|
const data = await parseBody(output.body, context);
|
|
822
791
|
let contents = {};
|
|
@@ -827,37 +796,9 @@ var de_BatchDeleteImageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
827
796
|
};
|
|
828
797
|
return response;
|
|
829
798
|
}, "de_BatchDeleteImageCommand");
|
|
830
|
-
var de_BatchDeleteImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
831
|
-
const parsedOutput = {
|
|
832
|
-
...output,
|
|
833
|
-
body: await parseErrorBody(output.body, context)
|
|
834
|
-
};
|
|
835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
|
-
switch (errorCode) {
|
|
837
|
-
case "InvalidParameterException":
|
|
838
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
839
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
840
|
-
case "RepositoryNotFoundException":
|
|
841
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
842
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ServerException":
|
|
844
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
845
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
846
|
-
case "UnsupportedCommandException":
|
|
847
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
848
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
849
|
-
default:
|
|
850
|
-
const parsedBody = parsedOutput.body;
|
|
851
|
-
return throwDefaultError({
|
|
852
|
-
output,
|
|
853
|
-
parsedBody,
|
|
854
|
-
errorCode
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
}, "de_BatchDeleteImageCommandError");
|
|
858
799
|
var de_CompleteLayerUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
859
800
|
if (output.statusCode >= 300) {
|
|
860
|
-
return
|
|
801
|
+
return de_CommandError(output, context);
|
|
861
802
|
}
|
|
862
803
|
const data = await parseBody(output.body, context);
|
|
863
804
|
let contents = {};
|
|
@@ -868,55 +809,9 @@ var de_CompleteLayerUploadCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
868
809
|
};
|
|
869
810
|
return response;
|
|
870
811
|
}, "de_CompleteLayerUploadCommand");
|
|
871
|
-
var de_CompleteLayerUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
872
|
-
const parsedOutput = {
|
|
873
|
-
...output,
|
|
874
|
-
body: await parseErrorBody(output.body, context)
|
|
875
|
-
};
|
|
876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
-
switch (errorCode) {
|
|
878
|
-
case "EmptyUploadException":
|
|
879
|
-
case "com.amazonaws.ecrpublic#EmptyUploadException":
|
|
880
|
-
throw await de_EmptyUploadExceptionRes(parsedOutput, context);
|
|
881
|
-
case "InvalidLayerException":
|
|
882
|
-
case "com.amazonaws.ecrpublic#InvalidLayerException":
|
|
883
|
-
throw await de_InvalidLayerExceptionRes(parsedOutput, context);
|
|
884
|
-
case "InvalidParameterException":
|
|
885
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
886
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
887
|
-
case "LayerAlreadyExistsException":
|
|
888
|
-
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException":
|
|
889
|
-
throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
|
|
890
|
-
case "LayerPartTooSmallException":
|
|
891
|
-
case "com.amazonaws.ecrpublic#LayerPartTooSmallException":
|
|
892
|
-
throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
|
|
893
|
-
case "RegistryNotFoundException":
|
|
894
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
895
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
896
|
-
case "RepositoryNotFoundException":
|
|
897
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
898
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ServerException":
|
|
900
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
901
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
902
|
-
case "UnsupportedCommandException":
|
|
903
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
904
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
905
|
-
case "UploadNotFoundException":
|
|
906
|
-
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
907
|
-
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
908
|
-
default:
|
|
909
|
-
const parsedBody = parsedOutput.body;
|
|
910
|
-
return throwDefaultError({
|
|
911
|
-
output,
|
|
912
|
-
parsedBody,
|
|
913
|
-
errorCode
|
|
914
|
-
});
|
|
915
|
-
}
|
|
916
|
-
}, "de_CompleteLayerUploadCommandError");
|
|
917
812
|
var de_CreateRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
918
813
|
if (output.statusCode >= 300) {
|
|
919
|
-
return
|
|
814
|
+
return de_CommandError(output, context);
|
|
920
815
|
}
|
|
921
816
|
const data = await parseBody(output.body, context);
|
|
922
817
|
let contents = {};
|
|
@@ -927,46 +822,9 @@ var de_CreateRepositoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
927
822
|
};
|
|
928
823
|
return response;
|
|
929
824
|
}, "de_CreateRepositoryCommand");
|
|
930
|
-
var de_CreateRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
931
|
-
const parsedOutput = {
|
|
932
|
-
...output,
|
|
933
|
-
body: await parseErrorBody(output.body, context)
|
|
934
|
-
};
|
|
935
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
936
|
-
switch (errorCode) {
|
|
937
|
-
case "InvalidParameterException":
|
|
938
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
939
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
940
|
-
case "InvalidTagParameterException":
|
|
941
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
942
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
943
|
-
case "LimitExceededException":
|
|
944
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
945
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
946
|
-
case "RepositoryAlreadyExistsException":
|
|
947
|
-
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":
|
|
948
|
-
throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
949
|
-
case "ServerException":
|
|
950
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
951
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
952
|
-
case "TooManyTagsException":
|
|
953
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
954
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
955
|
-
case "UnsupportedCommandException":
|
|
956
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
957
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
958
|
-
default:
|
|
959
|
-
const parsedBody = parsedOutput.body;
|
|
960
|
-
return throwDefaultError({
|
|
961
|
-
output,
|
|
962
|
-
parsedBody,
|
|
963
|
-
errorCode
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
}, "de_CreateRepositoryCommandError");
|
|
967
825
|
var de_DeleteRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
968
826
|
if (output.statusCode >= 300) {
|
|
969
|
-
return
|
|
827
|
+
return de_CommandError(output, context);
|
|
970
828
|
}
|
|
971
829
|
const data = await parseBody(output.body, context);
|
|
972
830
|
let contents = {};
|
|
@@ -977,40 +835,9 @@ var de_DeleteRepositoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
977
835
|
};
|
|
978
836
|
return response;
|
|
979
837
|
}, "de_DeleteRepositoryCommand");
|
|
980
|
-
var de_DeleteRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
981
|
-
const parsedOutput = {
|
|
982
|
-
...output,
|
|
983
|
-
body: await parseErrorBody(output.body, context)
|
|
984
|
-
};
|
|
985
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
986
|
-
switch (errorCode) {
|
|
987
|
-
case "InvalidParameterException":
|
|
988
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
989
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
990
|
-
case "RepositoryNotEmptyException":
|
|
991
|
-
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException":
|
|
992
|
-
throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
|
|
993
|
-
case "RepositoryNotFoundException":
|
|
994
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
995
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ServerException":
|
|
997
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
998
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
999
|
-
case "UnsupportedCommandException":
|
|
1000
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1001
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1002
|
-
default:
|
|
1003
|
-
const parsedBody = parsedOutput.body;
|
|
1004
|
-
return throwDefaultError({
|
|
1005
|
-
output,
|
|
1006
|
-
parsedBody,
|
|
1007
|
-
errorCode
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
}, "de_DeleteRepositoryCommandError");
|
|
1011
838
|
var de_DeleteRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1012
839
|
if (output.statusCode >= 300) {
|
|
1013
|
-
return
|
|
840
|
+
return de_CommandError(output, context);
|
|
1014
841
|
}
|
|
1015
842
|
const data = await parseBody(output.body, context);
|
|
1016
843
|
let contents = {};
|
|
@@ -1021,40 +848,9 @@ var de_DeleteRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1021
848
|
};
|
|
1022
849
|
return response;
|
|
1023
850
|
}, "de_DeleteRepositoryPolicyCommand");
|
|
1024
|
-
var de_DeleteRepositoryPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1025
|
-
const parsedOutput = {
|
|
1026
|
-
...output,
|
|
1027
|
-
body: await parseErrorBody(output.body, context)
|
|
1028
|
-
};
|
|
1029
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1030
|
-
switch (errorCode) {
|
|
1031
|
-
case "InvalidParameterException":
|
|
1032
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1033
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "RepositoryNotFoundException":
|
|
1035
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1036
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "RepositoryPolicyNotFoundException":
|
|
1038
|
-
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
1039
|
-
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "ServerException":
|
|
1041
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1042
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "UnsupportedCommandException":
|
|
1044
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1045
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1046
|
-
default:
|
|
1047
|
-
const parsedBody = parsedOutput.body;
|
|
1048
|
-
return throwDefaultError({
|
|
1049
|
-
output,
|
|
1050
|
-
parsedBody,
|
|
1051
|
-
errorCode
|
|
1052
|
-
});
|
|
1053
|
-
}
|
|
1054
|
-
}, "de_DeleteRepositoryPolicyCommandError");
|
|
1055
851
|
var de_DescribeImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1056
852
|
if (output.statusCode >= 300) {
|
|
1057
|
-
return
|
|
853
|
+
return de_CommandError(output, context);
|
|
1058
854
|
}
|
|
1059
855
|
const data = await parseBody(output.body, context);
|
|
1060
856
|
let contents = {};
|
|
@@ -1065,40 +861,9 @@ var de_DescribeImagesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1065
861
|
};
|
|
1066
862
|
return response;
|
|
1067
863
|
}, "de_DescribeImagesCommand");
|
|
1068
|
-
var de_DescribeImagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1069
|
-
const parsedOutput = {
|
|
1070
|
-
...output,
|
|
1071
|
-
body: await parseErrorBody(output.body, context)
|
|
1072
|
-
};
|
|
1073
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1074
|
-
switch (errorCode) {
|
|
1075
|
-
case "ImageNotFoundException":
|
|
1076
|
-
case "com.amazonaws.ecrpublic#ImageNotFoundException":
|
|
1077
|
-
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "InvalidParameterException":
|
|
1079
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1080
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "RepositoryNotFoundException":
|
|
1082
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1083
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "ServerException":
|
|
1085
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1086
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "UnsupportedCommandException":
|
|
1088
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1089
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1090
|
-
default:
|
|
1091
|
-
const parsedBody = parsedOutput.body;
|
|
1092
|
-
return throwDefaultError({
|
|
1093
|
-
output,
|
|
1094
|
-
parsedBody,
|
|
1095
|
-
errorCode
|
|
1096
|
-
});
|
|
1097
|
-
}
|
|
1098
|
-
}, "de_DescribeImagesCommandError");
|
|
1099
864
|
var de_DescribeImageTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1100
865
|
if (output.statusCode >= 300) {
|
|
1101
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
1102
867
|
}
|
|
1103
868
|
const data = await parseBody(output.body, context);
|
|
1104
869
|
let contents = {};
|
|
@@ -1109,37 +874,9 @@ var de_DescribeImageTagsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1109
874
|
};
|
|
1110
875
|
return response;
|
|
1111
876
|
}, "de_DescribeImageTagsCommand");
|
|
1112
|
-
var de_DescribeImageTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1113
|
-
const parsedOutput = {
|
|
1114
|
-
...output,
|
|
1115
|
-
body: await parseErrorBody(output.body, context)
|
|
1116
|
-
};
|
|
1117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
|
-
switch (errorCode) {
|
|
1119
|
-
case "InvalidParameterException":
|
|
1120
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1121
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "RepositoryNotFoundException":
|
|
1123
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1124
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "ServerException":
|
|
1126
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1127
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "UnsupportedCommandException":
|
|
1129
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1130
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1131
|
-
default:
|
|
1132
|
-
const parsedBody = parsedOutput.body;
|
|
1133
|
-
return throwDefaultError({
|
|
1134
|
-
output,
|
|
1135
|
-
parsedBody,
|
|
1136
|
-
errorCode
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
}, "de_DescribeImageTagsCommandError");
|
|
1140
877
|
var de_DescribeRegistriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1141
878
|
if (output.statusCode >= 300) {
|
|
1142
|
-
return
|
|
879
|
+
return de_CommandError(output, context);
|
|
1143
880
|
}
|
|
1144
881
|
const data = await parseBody(output.body, context);
|
|
1145
882
|
let contents = {};
|
|
@@ -1150,34 +887,9 @@ var de_DescribeRegistriesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1150
887
|
};
|
|
1151
888
|
return response;
|
|
1152
889
|
}, "de_DescribeRegistriesCommand");
|
|
1153
|
-
var de_DescribeRegistriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1154
|
-
const parsedOutput = {
|
|
1155
|
-
...output,
|
|
1156
|
-
body: await parseErrorBody(output.body, context)
|
|
1157
|
-
};
|
|
1158
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
|
-
switch (errorCode) {
|
|
1160
|
-
case "InvalidParameterException":
|
|
1161
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1162
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ServerException":
|
|
1164
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1165
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "UnsupportedCommandException":
|
|
1167
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1168
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1169
|
-
default:
|
|
1170
|
-
const parsedBody = parsedOutput.body;
|
|
1171
|
-
return throwDefaultError({
|
|
1172
|
-
output,
|
|
1173
|
-
parsedBody,
|
|
1174
|
-
errorCode
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
}, "de_DescribeRegistriesCommandError");
|
|
1178
890
|
var de_DescribeRepositoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1179
891
|
if (output.statusCode >= 300) {
|
|
1180
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
1181
893
|
}
|
|
1182
894
|
const data = await parseBody(output.body, context);
|
|
1183
895
|
let contents = {};
|
|
@@ -1188,37 +900,9 @@ var de_DescribeRepositoriesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1188
900
|
};
|
|
1189
901
|
return response;
|
|
1190
902
|
}, "de_DescribeRepositoriesCommand");
|
|
1191
|
-
var de_DescribeRepositoriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1192
|
-
const parsedOutput = {
|
|
1193
|
-
...output,
|
|
1194
|
-
body: await parseErrorBody(output.body, context)
|
|
1195
|
-
};
|
|
1196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
-
switch (errorCode) {
|
|
1198
|
-
case "InvalidParameterException":
|
|
1199
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1200
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "RepositoryNotFoundException":
|
|
1202
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1203
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ServerException":
|
|
1205
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1206
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "UnsupportedCommandException":
|
|
1208
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1209
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
}, "de_DescribeRepositoriesCommandError");
|
|
1219
903
|
var de_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1220
904
|
if (output.statusCode >= 300) {
|
|
1221
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
1222
906
|
}
|
|
1223
907
|
const data = await parseBody(output.body, context);
|
|
1224
908
|
let contents = {};
|
|
@@ -1229,34 +913,9 @@ var de_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1229
913
|
};
|
|
1230
914
|
return response;
|
|
1231
915
|
}, "de_GetAuthorizationTokenCommand");
|
|
1232
|
-
var de_GetAuthorizationTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1233
|
-
const parsedOutput = {
|
|
1234
|
-
...output,
|
|
1235
|
-
body: await parseErrorBody(output.body, context)
|
|
1236
|
-
};
|
|
1237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
|
-
switch (errorCode) {
|
|
1239
|
-
case "InvalidParameterException":
|
|
1240
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1241
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ServerException":
|
|
1243
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1244
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "UnsupportedCommandException":
|
|
1246
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1247
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1248
|
-
default:
|
|
1249
|
-
const parsedBody = parsedOutput.body;
|
|
1250
|
-
return throwDefaultError({
|
|
1251
|
-
output,
|
|
1252
|
-
parsedBody,
|
|
1253
|
-
errorCode
|
|
1254
|
-
});
|
|
1255
|
-
}
|
|
1256
|
-
}, "de_GetAuthorizationTokenCommandError");
|
|
1257
916
|
var de_GetRegistryCatalogDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1258
917
|
if (output.statusCode >= 300) {
|
|
1259
|
-
return
|
|
918
|
+
return de_CommandError(output, context);
|
|
1260
919
|
}
|
|
1261
920
|
const data = await parseBody(output.body, context);
|
|
1262
921
|
let contents = {};
|
|
@@ -1267,31 +926,9 @@ var de_GetRegistryCatalogDataCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1267
926
|
};
|
|
1268
927
|
return response;
|
|
1269
928
|
}, "de_GetRegistryCatalogDataCommand");
|
|
1270
|
-
var de_GetRegistryCatalogDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1271
|
-
const parsedOutput = {
|
|
1272
|
-
...output,
|
|
1273
|
-
body: await parseErrorBody(output.body, context)
|
|
1274
|
-
};
|
|
1275
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
|
-
switch (errorCode) {
|
|
1277
|
-
case "ServerException":
|
|
1278
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1279
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "UnsupportedCommandException":
|
|
1281
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1282
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1283
|
-
default:
|
|
1284
|
-
const parsedBody = parsedOutput.body;
|
|
1285
|
-
return throwDefaultError({
|
|
1286
|
-
output,
|
|
1287
|
-
parsedBody,
|
|
1288
|
-
errorCode
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
}, "de_GetRegistryCatalogDataCommandError");
|
|
1292
929
|
var de_GetRepositoryCatalogDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1293
930
|
if (output.statusCode >= 300) {
|
|
1294
|
-
return
|
|
931
|
+
return de_CommandError(output, context);
|
|
1295
932
|
}
|
|
1296
933
|
const data = await parseBody(output.body, context);
|
|
1297
934
|
let contents = {};
|
|
@@ -1302,40 +939,9 @@ var de_GetRepositoryCatalogDataCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1302
939
|
};
|
|
1303
940
|
return response;
|
|
1304
941
|
}, "de_GetRepositoryCatalogDataCommand");
|
|
1305
|
-
var de_GetRepositoryCatalogDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1306
|
-
const parsedOutput = {
|
|
1307
|
-
...output,
|
|
1308
|
-
body: await parseErrorBody(output.body, context)
|
|
1309
|
-
};
|
|
1310
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1311
|
-
switch (errorCode) {
|
|
1312
|
-
case "InvalidParameterException":
|
|
1313
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1314
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "RepositoryCatalogDataNotFoundException":
|
|
1316
|
-
case "com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException":
|
|
1317
|
-
throw await de_RepositoryCatalogDataNotFoundExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "RepositoryNotFoundException":
|
|
1319
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1320
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "ServerException":
|
|
1322
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1323
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "UnsupportedCommandException":
|
|
1325
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1326
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1327
|
-
default:
|
|
1328
|
-
const parsedBody = parsedOutput.body;
|
|
1329
|
-
return throwDefaultError({
|
|
1330
|
-
output,
|
|
1331
|
-
parsedBody,
|
|
1332
|
-
errorCode
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
}, "de_GetRepositoryCatalogDataCommandError");
|
|
1336
942
|
var de_GetRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1337
943
|
if (output.statusCode >= 300) {
|
|
1338
|
-
return
|
|
944
|
+
return de_CommandError(output, context);
|
|
1339
945
|
}
|
|
1340
946
|
const data = await parseBody(output.body, context);
|
|
1341
947
|
let contents = {};
|
|
@@ -1346,40 +952,9 @@ var de_GetRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1346
952
|
};
|
|
1347
953
|
return response;
|
|
1348
954
|
}, "de_GetRepositoryPolicyCommand");
|
|
1349
|
-
var de_GetRepositoryPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
|
-
const parsedOutput = {
|
|
1351
|
-
...output,
|
|
1352
|
-
body: await parseErrorBody(output.body, context)
|
|
1353
|
-
};
|
|
1354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
|
-
switch (errorCode) {
|
|
1356
|
-
case "InvalidParameterException":
|
|
1357
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1358
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "RepositoryNotFoundException":
|
|
1360
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1361
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "RepositoryPolicyNotFoundException":
|
|
1363
|
-
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
1364
|
-
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "ServerException":
|
|
1366
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1367
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "UnsupportedCommandException":
|
|
1369
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1370
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1371
|
-
default:
|
|
1372
|
-
const parsedBody = parsedOutput.body;
|
|
1373
|
-
return throwDefaultError({
|
|
1374
|
-
output,
|
|
1375
|
-
parsedBody,
|
|
1376
|
-
errorCode
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
}, "de_GetRepositoryPolicyCommandError");
|
|
1380
955
|
var de_InitiateLayerUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1381
956
|
if (output.statusCode >= 300) {
|
|
1382
|
-
return
|
|
957
|
+
return de_CommandError(output, context);
|
|
1383
958
|
}
|
|
1384
959
|
const data = await parseBody(output.body, context);
|
|
1385
960
|
let contents = {};
|
|
@@ -1390,81 +965,22 @@ var de_InitiateLayerUploadCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1390
965
|
};
|
|
1391
966
|
return response;
|
|
1392
967
|
}, "de_InitiateLayerUploadCommand");
|
|
1393
|
-
var de_InitiateLayerUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1394
|
-
const parsedOutput = {
|
|
1395
|
-
...output,
|
|
1396
|
-
body: await parseErrorBody(output.body, context)
|
|
1397
|
-
};
|
|
1398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
-
switch (errorCode) {
|
|
1400
|
-
case "InvalidParameterException":
|
|
1401
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1402
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "RegistryNotFoundException":
|
|
1404
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1405
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "RepositoryNotFoundException":
|
|
1407
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1408
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "ServerException":
|
|
1410
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1411
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "UnsupportedCommandException":
|
|
1413
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1414
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1415
|
-
default:
|
|
1416
|
-
const parsedBody = parsedOutput.body;
|
|
1417
|
-
return throwDefaultError({
|
|
1418
|
-
output,
|
|
1419
|
-
parsedBody,
|
|
1420
|
-
errorCode
|
|
1421
|
-
});
|
|
1422
|
-
}
|
|
1423
|
-
}, "de_InitiateLayerUploadCommandError");
|
|
1424
968
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1425
|
-
if (output.statusCode >= 300) {
|
|
1426
|
-
return
|
|
1427
|
-
}
|
|
1428
|
-
const data = await parseBody(output.body, context);
|
|
1429
|
-
let contents = {};
|
|
1430
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1431
|
-
const response = {
|
|
1432
|
-
$metadata: deserializeMetadata(output),
|
|
1433
|
-
...contents
|
|
1434
|
-
};
|
|
1435
|
-
return response;
|
|
1436
|
-
}, "de_ListTagsForResourceCommand");
|
|
1437
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1438
|
-
const parsedOutput = {
|
|
1439
|
-
...output,
|
|
1440
|
-
body: await parseErrorBody(output.body, context)
|
|
1441
|
-
};
|
|
1442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
-
switch (errorCode) {
|
|
1444
|
-
case "InvalidParameterException":
|
|
1445
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1446
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "RepositoryNotFoundException":
|
|
1448
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1449
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "ServerException":
|
|
1451
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1452
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "UnsupportedCommandException":
|
|
1454
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1455
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1456
|
-
default:
|
|
1457
|
-
const parsedBody = parsedOutput.body;
|
|
1458
|
-
return throwDefaultError({
|
|
1459
|
-
output,
|
|
1460
|
-
parsedBody,
|
|
1461
|
-
errorCode
|
|
1462
|
-
});
|
|
969
|
+
if (output.statusCode >= 300) {
|
|
970
|
+
return de_CommandError(output, context);
|
|
1463
971
|
}
|
|
1464
|
-
|
|
972
|
+
const data = await parseBody(output.body, context);
|
|
973
|
+
let contents = {};
|
|
974
|
+
contents = (0, import_smithy_client._json)(data);
|
|
975
|
+
const response = {
|
|
976
|
+
$metadata: deserializeMetadata(output),
|
|
977
|
+
...contents
|
|
978
|
+
};
|
|
979
|
+
return response;
|
|
980
|
+
}, "de_ListTagsForResourceCommand");
|
|
1465
981
|
var de_PutImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1466
982
|
if (output.statusCode >= 300) {
|
|
1467
|
-
return
|
|
983
|
+
return de_CommandError(output, context);
|
|
1468
984
|
}
|
|
1469
985
|
const data = await parseBody(output.body, context);
|
|
1470
986
|
let contents = {};
|
|
@@ -1475,58 +991,9 @@ var de_PutImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1475
991
|
};
|
|
1476
992
|
return response;
|
|
1477
993
|
}, "de_PutImageCommand");
|
|
1478
|
-
var de_PutImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1479
|
-
const parsedOutput = {
|
|
1480
|
-
...output,
|
|
1481
|
-
body: await parseErrorBody(output.body, context)
|
|
1482
|
-
};
|
|
1483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
-
switch (errorCode) {
|
|
1485
|
-
case "ImageAlreadyExistsException":
|
|
1486
|
-
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException":
|
|
1487
|
-
throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "ImageDigestDoesNotMatchException":
|
|
1489
|
-
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":
|
|
1490
|
-
throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "ImageTagAlreadyExistsException":
|
|
1492
|
-
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":
|
|
1493
|
-
throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "InvalidParameterException":
|
|
1495
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1496
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "LayersNotFoundException":
|
|
1498
|
-
case "com.amazonaws.ecrpublic#LayersNotFoundException":
|
|
1499
|
-
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "LimitExceededException":
|
|
1501
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
1502
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "ReferencedImagesNotFoundException":
|
|
1504
|
-
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":
|
|
1505
|
-
throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "RegistryNotFoundException":
|
|
1507
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1508
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "RepositoryNotFoundException":
|
|
1510
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1511
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "ServerException":
|
|
1513
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1514
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "UnsupportedCommandException":
|
|
1516
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1517
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1518
|
-
default:
|
|
1519
|
-
const parsedBody = parsedOutput.body;
|
|
1520
|
-
return throwDefaultError({
|
|
1521
|
-
output,
|
|
1522
|
-
parsedBody,
|
|
1523
|
-
errorCode
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
}, "de_PutImageCommandError");
|
|
1527
994
|
var de_PutRegistryCatalogDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1528
995
|
if (output.statusCode >= 300) {
|
|
1529
|
-
return
|
|
996
|
+
return de_CommandError(output, context);
|
|
1530
997
|
}
|
|
1531
998
|
const data = await parseBody(output.body, context);
|
|
1532
999
|
let contents = {};
|
|
@@ -1537,34 +1004,9 @@ var de_PutRegistryCatalogDataCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1537
1004
|
};
|
|
1538
1005
|
return response;
|
|
1539
1006
|
}, "de_PutRegistryCatalogDataCommand");
|
|
1540
|
-
var de_PutRegistryCatalogDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1541
|
-
const parsedOutput = {
|
|
1542
|
-
...output,
|
|
1543
|
-
body: await parseErrorBody(output.body, context)
|
|
1544
|
-
};
|
|
1545
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1546
|
-
switch (errorCode) {
|
|
1547
|
-
case "InvalidParameterException":
|
|
1548
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1549
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ServerException":
|
|
1551
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1552
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "UnsupportedCommandException":
|
|
1554
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1555
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1556
|
-
default:
|
|
1557
|
-
const parsedBody = parsedOutput.body;
|
|
1558
|
-
return throwDefaultError({
|
|
1559
|
-
output,
|
|
1560
|
-
parsedBody,
|
|
1561
|
-
errorCode
|
|
1562
|
-
});
|
|
1563
|
-
}
|
|
1564
|
-
}, "de_PutRegistryCatalogDataCommandError");
|
|
1565
1007
|
var de_PutRepositoryCatalogDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1566
1008
|
if (output.statusCode >= 300) {
|
|
1567
|
-
return
|
|
1009
|
+
return de_CommandError(output, context);
|
|
1568
1010
|
}
|
|
1569
1011
|
const data = await parseBody(output.body, context);
|
|
1570
1012
|
let contents = {};
|
|
@@ -1575,37 +1017,9 @@ var de_PutRepositoryCatalogDataCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1575
1017
|
};
|
|
1576
1018
|
return response;
|
|
1577
1019
|
}, "de_PutRepositoryCatalogDataCommand");
|
|
1578
|
-
var de_PutRepositoryCatalogDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1579
|
-
const parsedOutput = {
|
|
1580
|
-
...output,
|
|
1581
|
-
body: await parseErrorBody(output.body, context)
|
|
1582
|
-
};
|
|
1583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
|
-
switch (errorCode) {
|
|
1585
|
-
case "InvalidParameterException":
|
|
1586
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1587
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "RepositoryNotFoundException":
|
|
1589
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1590
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "ServerException":
|
|
1592
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1593
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "UnsupportedCommandException":
|
|
1595
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1596
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1597
|
-
default:
|
|
1598
|
-
const parsedBody = parsedOutput.body;
|
|
1599
|
-
return throwDefaultError({
|
|
1600
|
-
output,
|
|
1601
|
-
parsedBody,
|
|
1602
|
-
errorCode
|
|
1603
|
-
});
|
|
1604
|
-
}
|
|
1605
|
-
}, "de_PutRepositoryCatalogDataCommandError");
|
|
1606
1020
|
var de_SetRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1607
1021
|
if (output.statusCode >= 300) {
|
|
1608
|
-
return
|
|
1022
|
+
return de_CommandError(output, context);
|
|
1609
1023
|
}
|
|
1610
1024
|
const data = await parseBody(output.body, context);
|
|
1611
1025
|
let contents = {};
|
|
@@ -1616,37 +1030,9 @@ var de_SetRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1616
1030
|
};
|
|
1617
1031
|
return response;
|
|
1618
1032
|
}, "de_SetRepositoryPolicyCommand");
|
|
1619
|
-
var de_SetRepositoryPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1620
|
-
const parsedOutput = {
|
|
1621
|
-
...output,
|
|
1622
|
-
body: await parseErrorBody(output.body, context)
|
|
1623
|
-
};
|
|
1624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
|
-
switch (errorCode) {
|
|
1626
|
-
case "InvalidParameterException":
|
|
1627
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1628
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1629
|
-
case "RepositoryNotFoundException":
|
|
1630
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1631
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1632
|
-
case "ServerException":
|
|
1633
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1634
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "UnsupportedCommandException":
|
|
1636
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1637
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1638
|
-
default:
|
|
1639
|
-
const parsedBody = parsedOutput.body;
|
|
1640
|
-
return throwDefaultError({
|
|
1641
|
-
output,
|
|
1642
|
-
parsedBody,
|
|
1643
|
-
errorCode
|
|
1644
|
-
});
|
|
1645
|
-
}
|
|
1646
|
-
}, "de_SetRepositoryPolicyCommandError");
|
|
1647
1033
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1648
1034
|
if (output.statusCode >= 300) {
|
|
1649
|
-
return
|
|
1035
|
+
return de_CommandError(output, context);
|
|
1650
1036
|
}
|
|
1651
1037
|
const data = await parseBody(output.body, context);
|
|
1652
1038
|
let contents = {};
|
|
@@ -1657,43 +1043,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1657
1043
|
};
|
|
1658
1044
|
return response;
|
|
1659
1045
|
}, "de_TagResourceCommand");
|
|
1660
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1661
|
-
const parsedOutput = {
|
|
1662
|
-
...output,
|
|
1663
|
-
body: await parseErrorBody(output.body, context)
|
|
1664
|
-
};
|
|
1665
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
|
-
switch (errorCode) {
|
|
1667
|
-
case "InvalidParameterException":
|
|
1668
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1669
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "InvalidTagParameterException":
|
|
1671
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
1672
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "RepositoryNotFoundException":
|
|
1674
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1675
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "ServerException":
|
|
1677
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1678
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "TooManyTagsException":
|
|
1680
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1681
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "UnsupportedCommandException":
|
|
1683
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1684
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1685
|
-
default:
|
|
1686
|
-
const parsedBody = parsedOutput.body;
|
|
1687
|
-
return throwDefaultError({
|
|
1688
|
-
output,
|
|
1689
|
-
parsedBody,
|
|
1690
|
-
errorCode
|
|
1691
|
-
});
|
|
1692
|
-
}
|
|
1693
|
-
}, "de_TagResourceCommandError");
|
|
1694
1046
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1695
1047
|
if (output.statusCode >= 300) {
|
|
1696
|
-
return
|
|
1048
|
+
return de_CommandError(output, context);
|
|
1697
1049
|
}
|
|
1698
1050
|
const data = await parseBody(output.body, context);
|
|
1699
1051
|
let contents = {};
|
|
@@ -1704,43 +1056,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1704
1056
|
};
|
|
1705
1057
|
return response;
|
|
1706
1058
|
}, "de_UntagResourceCommand");
|
|
1707
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1708
|
-
const parsedOutput = {
|
|
1709
|
-
...output,
|
|
1710
|
-
body: await parseErrorBody(output.body, context)
|
|
1711
|
-
};
|
|
1712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
|
-
switch (errorCode) {
|
|
1714
|
-
case "InvalidParameterException":
|
|
1715
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1716
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "InvalidTagParameterException":
|
|
1718
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
1719
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "RepositoryNotFoundException":
|
|
1721
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1722
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "ServerException":
|
|
1724
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1725
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "TooManyTagsException":
|
|
1727
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1728
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1729
|
-
case "UnsupportedCommandException":
|
|
1730
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1731
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1732
|
-
default:
|
|
1733
|
-
const parsedBody = parsedOutput.body;
|
|
1734
|
-
return throwDefaultError({
|
|
1735
|
-
output,
|
|
1736
|
-
parsedBody,
|
|
1737
|
-
errorCode
|
|
1738
|
-
});
|
|
1739
|
-
}
|
|
1740
|
-
}, "de_UntagResourceCommandError");
|
|
1741
1059
|
var de_UploadLayerPartCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1742
1060
|
if (output.statusCode >= 300) {
|
|
1743
|
-
return
|
|
1061
|
+
return de_CommandError(output, context);
|
|
1744
1062
|
}
|
|
1745
1063
|
const data = await parseBody(output.body, context);
|
|
1746
1064
|
let contents = {};
|
|
@@ -1751,22 +1069,16 @@ var de_UploadLayerPartCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1751
1069
|
};
|
|
1752
1070
|
return response;
|
|
1753
1071
|
}, "de_UploadLayerPartCommand");
|
|
1754
|
-
var
|
|
1072
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1755
1073
|
const parsedOutput = {
|
|
1756
1074
|
...output,
|
|
1757
1075
|
body: await parseErrorBody(output.body, context)
|
|
1758
1076
|
};
|
|
1759
1077
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
1078
|
switch (errorCode) {
|
|
1761
|
-
case "InvalidLayerPartException":
|
|
1762
|
-
case "com.amazonaws.ecrpublic#InvalidLayerPartException":
|
|
1763
|
-
throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
|
|
1764
1079
|
case "InvalidParameterException":
|
|
1765
1080
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1766
1081
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "LimitExceededException":
|
|
1768
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
1769
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1770
1082
|
case "RegistryNotFoundException":
|
|
1771
1083
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1772
1084
|
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1779,9 +1091,63 @@ var de_UploadLayerPartCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
1779
1091
|
case "UnsupportedCommandException":
|
|
1780
1092
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1781
1093
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1094
|
+
case "EmptyUploadException":
|
|
1095
|
+
case "com.amazonaws.ecrpublic#EmptyUploadException":
|
|
1096
|
+
throw await de_EmptyUploadExceptionRes(parsedOutput, context);
|
|
1097
|
+
case "InvalidLayerException":
|
|
1098
|
+
case "com.amazonaws.ecrpublic#InvalidLayerException":
|
|
1099
|
+
throw await de_InvalidLayerExceptionRes(parsedOutput, context);
|
|
1100
|
+
case "LayerAlreadyExistsException":
|
|
1101
|
+
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException":
|
|
1102
|
+
throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1103
|
+
case "LayerPartTooSmallException":
|
|
1104
|
+
case "com.amazonaws.ecrpublic#LayerPartTooSmallException":
|
|
1105
|
+
throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
|
|
1782
1106
|
case "UploadNotFoundException":
|
|
1783
1107
|
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
1784
1108
|
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
1109
|
+
case "InvalidTagParameterException":
|
|
1110
|
+
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
1111
|
+
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
1112
|
+
case "LimitExceededException":
|
|
1113
|
+
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
1114
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1115
|
+
case "RepositoryAlreadyExistsException":
|
|
1116
|
+
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":
|
|
1117
|
+
throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1118
|
+
case "TooManyTagsException":
|
|
1119
|
+
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1120
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1121
|
+
case "RepositoryNotEmptyException":
|
|
1122
|
+
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException":
|
|
1123
|
+
throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
|
|
1124
|
+
case "RepositoryPolicyNotFoundException":
|
|
1125
|
+
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
1126
|
+
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1127
|
+
case "ImageNotFoundException":
|
|
1128
|
+
case "com.amazonaws.ecrpublic#ImageNotFoundException":
|
|
1129
|
+
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
1130
|
+
case "RepositoryCatalogDataNotFoundException":
|
|
1131
|
+
case "com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException":
|
|
1132
|
+
throw await de_RepositoryCatalogDataNotFoundExceptionRes(parsedOutput, context);
|
|
1133
|
+
case "ImageAlreadyExistsException":
|
|
1134
|
+
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException":
|
|
1135
|
+
throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1136
|
+
case "ImageDigestDoesNotMatchException":
|
|
1137
|
+
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":
|
|
1138
|
+
throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
|
|
1139
|
+
case "ImageTagAlreadyExistsException":
|
|
1140
|
+
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":
|
|
1141
|
+
throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1142
|
+
case "LayersNotFoundException":
|
|
1143
|
+
case "com.amazonaws.ecrpublic#LayersNotFoundException":
|
|
1144
|
+
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
1145
|
+
case "ReferencedImagesNotFoundException":
|
|
1146
|
+
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":
|
|
1147
|
+
throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
|
|
1148
|
+
case "InvalidLayerPartException":
|
|
1149
|
+
case "com.amazonaws.ecrpublic#InvalidLayerPartException":
|
|
1150
|
+
throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
|
|
1785
1151
|
default:
|
|
1786
1152
|
const parsedBody = parsedOutput.body;
|
|
1787
1153
|
return throwDefaultError({
|
|
@@ -1790,7 +1156,7 @@ var de_UploadLayerPartCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
1790
1156
|
errorCode
|
|
1791
1157
|
});
|
|
1792
1158
|
}
|
|
1793
|
-
}, "
|
|
1159
|
+
}, "de_CommandError");
|
|
1794
1160
|
var de_EmptyUploadExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1795
1161
|
const body = parsedOutput.body;
|
|
1796
1162
|
const deserialized = (0, import_smithy_client._json)(body);
|