@aws-sdk/client-codeartifact 3.503.1 → 3.507.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 +70 -1280
- package/dist-es/protocols/Aws_restJson1.js +61 -1271
- package/package.json +3 -3
|
@@ -641,7 +641,7 @@ export const se_UpdateRepositoryCommand = async (input, context) => {
|
|
|
641
641
|
};
|
|
642
642
|
export const de_AssociateExternalConnectionCommand = async (output, context) => {
|
|
643
643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
|
-
return
|
|
644
|
+
return de_CommandError(output, context);
|
|
645
645
|
}
|
|
646
646
|
const contents = map({
|
|
647
647
|
$metadata: deserializeMetadata(output),
|
|
@@ -653,46 +653,9 @@ export const de_AssociateExternalConnectionCommand = async (output, context) =>
|
|
|
653
653
|
Object.assign(contents, doc);
|
|
654
654
|
return contents;
|
|
655
655
|
};
|
|
656
|
-
const de_AssociateExternalConnectionCommandError = async (output, context) => {
|
|
657
|
-
const parsedOutput = {
|
|
658
|
-
...output,
|
|
659
|
-
body: await parseErrorBody(output.body, context),
|
|
660
|
-
};
|
|
661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
662
|
-
switch (errorCode) {
|
|
663
|
-
case "AccessDeniedException":
|
|
664
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
665
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
666
|
-
case "ConflictException":
|
|
667
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
668
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
669
|
-
case "InternalServerException":
|
|
670
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
671
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
672
|
-
case "ResourceNotFoundException":
|
|
673
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
674
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
675
|
-
case "ServiceQuotaExceededException":
|
|
676
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
677
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ThrottlingException":
|
|
679
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
680
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ValidationException":
|
|
682
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
683
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
684
|
-
default:
|
|
685
|
-
const parsedBody = parsedOutput.body;
|
|
686
|
-
return throwDefaultError({
|
|
687
|
-
output,
|
|
688
|
-
parsedBody,
|
|
689
|
-
errorCode,
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
};
|
|
693
656
|
export const de_CopyPackageVersionsCommand = async (output, context) => {
|
|
694
657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
695
|
-
return
|
|
658
|
+
return de_CommandError(output, context);
|
|
696
659
|
}
|
|
697
660
|
const contents = map({
|
|
698
661
|
$metadata: deserializeMetadata(output),
|
|
@@ -705,46 +668,9 @@ export const de_CopyPackageVersionsCommand = async (output, context) => {
|
|
|
705
668
|
Object.assign(contents, doc);
|
|
706
669
|
return contents;
|
|
707
670
|
};
|
|
708
|
-
const de_CopyPackageVersionsCommandError = async (output, context) => {
|
|
709
|
-
const parsedOutput = {
|
|
710
|
-
...output,
|
|
711
|
-
body: await parseErrorBody(output.body, context),
|
|
712
|
-
};
|
|
713
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
|
-
switch (errorCode) {
|
|
715
|
-
case "AccessDeniedException":
|
|
716
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
717
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ConflictException":
|
|
719
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
720
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
721
|
-
case "InternalServerException":
|
|
722
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
723
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
724
|
-
case "ResourceNotFoundException":
|
|
725
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
726
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ServiceQuotaExceededException":
|
|
728
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
729
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ThrottlingException":
|
|
731
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
732
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
733
|
-
case "ValidationException":
|
|
734
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
735
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
736
|
-
default:
|
|
737
|
-
const parsedBody = parsedOutput.body;
|
|
738
|
-
return throwDefaultError({
|
|
739
|
-
output,
|
|
740
|
-
parsedBody,
|
|
741
|
-
errorCode,
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
};
|
|
745
671
|
export const de_CreateDomainCommand = async (output, context) => {
|
|
746
672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
747
|
-
return
|
|
673
|
+
return de_CommandError(output, context);
|
|
748
674
|
}
|
|
749
675
|
const contents = map({
|
|
750
676
|
$metadata: deserializeMetadata(output),
|
|
@@ -756,46 +682,9 @@ export const de_CreateDomainCommand = async (output, context) => {
|
|
|
756
682
|
Object.assign(contents, doc);
|
|
757
683
|
return contents;
|
|
758
684
|
};
|
|
759
|
-
const de_CreateDomainCommandError = async (output, context) => {
|
|
760
|
-
const parsedOutput = {
|
|
761
|
-
...output,
|
|
762
|
-
body: await parseErrorBody(output.body, context),
|
|
763
|
-
};
|
|
764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
|
-
switch (errorCode) {
|
|
766
|
-
case "AccessDeniedException":
|
|
767
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
768
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
769
|
-
case "ConflictException":
|
|
770
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
771
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
772
|
-
case "InternalServerException":
|
|
773
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
774
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ResourceNotFoundException":
|
|
776
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
777
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ServiceQuotaExceededException":
|
|
779
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
780
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ThrottlingException":
|
|
782
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
783
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
784
|
-
case "ValidationException":
|
|
785
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
786
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
787
|
-
default:
|
|
788
|
-
const parsedBody = parsedOutput.body;
|
|
789
|
-
return throwDefaultError({
|
|
790
|
-
output,
|
|
791
|
-
parsedBody,
|
|
792
|
-
errorCode,
|
|
793
|
-
});
|
|
794
|
-
}
|
|
795
|
-
};
|
|
796
685
|
export const de_CreateRepositoryCommand = async (output, context) => {
|
|
797
686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
798
|
-
return
|
|
687
|
+
return de_CommandError(output, context);
|
|
799
688
|
}
|
|
800
689
|
const contents = map({
|
|
801
690
|
$metadata: deserializeMetadata(output),
|
|
@@ -807,46 +696,9 @@ export const de_CreateRepositoryCommand = async (output, context) => {
|
|
|
807
696
|
Object.assign(contents, doc);
|
|
808
697
|
return contents;
|
|
809
698
|
};
|
|
810
|
-
const de_CreateRepositoryCommandError = async (output, context) => {
|
|
811
|
-
const parsedOutput = {
|
|
812
|
-
...output,
|
|
813
|
-
body: await parseErrorBody(output.body, context),
|
|
814
|
-
};
|
|
815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
|
-
switch (errorCode) {
|
|
817
|
-
case "AccessDeniedException":
|
|
818
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
819
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ConflictException":
|
|
821
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
822
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
823
|
-
case "InternalServerException":
|
|
824
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
825
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
826
|
-
case "ResourceNotFoundException":
|
|
827
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
828
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
829
|
-
case "ServiceQuotaExceededException":
|
|
830
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
831
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
832
|
-
case "ThrottlingException":
|
|
833
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
834
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ValidationException":
|
|
836
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
837
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
838
|
-
default:
|
|
839
|
-
const parsedBody = parsedOutput.body;
|
|
840
|
-
return throwDefaultError({
|
|
841
|
-
output,
|
|
842
|
-
parsedBody,
|
|
843
|
-
errorCode,
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
};
|
|
847
699
|
export const de_DeleteDomainCommand = async (output, context) => {
|
|
848
700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
849
|
-
return
|
|
701
|
+
return de_CommandError(output, context);
|
|
850
702
|
}
|
|
851
703
|
const contents = map({
|
|
852
704
|
$metadata: deserializeMetadata(output),
|
|
@@ -858,40 +710,9 @@ export const de_DeleteDomainCommand = async (output, context) => {
|
|
|
858
710
|
Object.assign(contents, doc);
|
|
859
711
|
return contents;
|
|
860
712
|
};
|
|
861
|
-
const de_DeleteDomainCommandError = async (output, context) => {
|
|
862
|
-
const parsedOutput = {
|
|
863
|
-
...output,
|
|
864
|
-
body: await parseErrorBody(output.body, context),
|
|
865
|
-
};
|
|
866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
867
|
-
switch (errorCode) {
|
|
868
|
-
case "AccessDeniedException":
|
|
869
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
870
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ConflictException":
|
|
872
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
873
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
874
|
-
case "InternalServerException":
|
|
875
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
876
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
877
|
-
case "ThrottlingException":
|
|
878
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
879
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ValidationException":
|
|
881
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
882
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
883
|
-
default:
|
|
884
|
-
const parsedBody = parsedOutput.body;
|
|
885
|
-
return throwDefaultError({
|
|
886
|
-
output,
|
|
887
|
-
parsedBody,
|
|
888
|
-
errorCode,
|
|
889
|
-
});
|
|
890
|
-
}
|
|
891
|
-
};
|
|
892
713
|
export const de_DeleteDomainPermissionsPolicyCommand = async (output, context) => {
|
|
893
714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
|
-
return
|
|
715
|
+
return de_CommandError(output, context);
|
|
895
716
|
}
|
|
896
717
|
const contents = map({
|
|
897
718
|
$metadata: deserializeMetadata(output),
|
|
@@ -903,43 +724,9 @@ export const de_DeleteDomainPermissionsPolicyCommand = async (output, context) =
|
|
|
903
724
|
Object.assign(contents, doc);
|
|
904
725
|
return contents;
|
|
905
726
|
};
|
|
906
|
-
const de_DeleteDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
907
|
-
const parsedOutput = {
|
|
908
|
-
...output,
|
|
909
|
-
body: await parseErrorBody(output.body, context),
|
|
910
|
-
};
|
|
911
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
912
|
-
switch (errorCode) {
|
|
913
|
-
case "AccessDeniedException":
|
|
914
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
915
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
916
|
-
case "ConflictException":
|
|
917
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
918
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
919
|
-
case "InternalServerException":
|
|
920
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
921
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
922
|
-
case "ResourceNotFoundException":
|
|
923
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
924
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
925
|
-
case "ThrottlingException":
|
|
926
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
927
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
928
|
-
case "ValidationException":
|
|
929
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
930
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
931
|
-
default:
|
|
932
|
-
const parsedBody = parsedOutput.body;
|
|
933
|
-
return throwDefaultError({
|
|
934
|
-
output,
|
|
935
|
-
parsedBody,
|
|
936
|
-
errorCode,
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
727
|
export const de_DeletePackageCommand = async (output, context) => {
|
|
941
728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
942
|
-
return
|
|
729
|
+
return de_CommandError(output, context);
|
|
943
730
|
}
|
|
944
731
|
const contents = map({
|
|
945
732
|
$metadata: deserializeMetadata(output),
|
|
@@ -951,43 +738,9 @@ export const de_DeletePackageCommand = async (output, context) => {
|
|
|
951
738
|
Object.assign(contents, doc);
|
|
952
739
|
return contents;
|
|
953
740
|
};
|
|
954
|
-
const de_DeletePackageCommandError = async (output, context) => {
|
|
955
|
-
const parsedOutput = {
|
|
956
|
-
...output,
|
|
957
|
-
body: await parseErrorBody(output.body, context),
|
|
958
|
-
};
|
|
959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
|
-
switch (errorCode) {
|
|
961
|
-
case "AccessDeniedException":
|
|
962
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
963
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ConflictException":
|
|
965
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
966
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
967
|
-
case "InternalServerException":
|
|
968
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
969
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ResourceNotFoundException":
|
|
971
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
972
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
973
|
-
case "ThrottlingException":
|
|
974
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
975
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ValidationException":
|
|
977
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
978
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
979
|
-
default:
|
|
980
|
-
const parsedBody = parsedOutput.body;
|
|
981
|
-
return throwDefaultError({
|
|
982
|
-
output,
|
|
983
|
-
parsedBody,
|
|
984
|
-
errorCode,
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
741
|
export const de_DeletePackageVersionsCommand = async (output, context) => {
|
|
989
742
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
990
|
-
return
|
|
743
|
+
return de_CommandError(output, context);
|
|
991
744
|
}
|
|
992
745
|
const contents = map({
|
|
993
746
|
$metadata: deserializeMetadata(output),
|
|
@@ -1000,43 +753,9 @@ export const de_DeletePackageVersionsCommand = async (output, context) => {
|
|
|
1000
753
|
Object.assign(contents, doc);
|
|
1001
754
|
return contents;
|
|
1002
755
|
};
|
|
1003
|
-
const de_DeletePackageVersionsCommandError = async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context),
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "AccessDeniedException":
|
|
1011
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1012
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "ConflictException":
|
|
1014
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1015
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "InternalServerException":
|
|
1017
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1018
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ResourceNotFoundException":
|
|
1020
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1021
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ThrottlingException":
|
|
1023
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1024
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ValidationException":
|
|
1026
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1027
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode,
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
756
|
export const de_DeleteRepositoryCommand = async (output, context) => {
|
|
1038
757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
758
|
+
return de_CommandError(output, context);
|
|
1040
759
|
}
|
|
1041
760
|
const contents = map({
|
|
1042
761
|
$metadata: deserializeMetadata(output),
|
|
@@ -1048,43 +767,9 @@ export const de_DeleteRepositoryCommand = async (output, context) => {
|
|
|
1048
767
|
Object.assign(contents, doc);
|
|
1049
768
|
return contents;
|
|
1050
769
|
};
|
|
1051
|
-
const de_DeleteRepositoryCommandError = async (output, context) => {
|
|
1052
|
-
const parsedOutput = {
|
|
1053
|
-
...output,
|
|
1054
|
-
body: await parseErrorBody(output.body, context),
|
|
1055
|
-
};
|
|
1056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
-
switch (errorCode) {
|
|
1058
|
-
case "AccessDeniedException":
|
|
1059
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1060
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "ConflictException":
|
|
1062
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1063
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "InternalServerException":
|
|
1065
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1066
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ResourceNotFoundException":
|
|
1068
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1069
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ThrottlingException":
|
|
1071
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1072
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ValidationException":
|
|
1074
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1075
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1076
|
-
default:
|
|
1077
|
-
const parsedBody = parsedOutput.body;
|
|
1078
|
-
return throwDefaultError({
|
|
1079
|
-
output,
|
|
1080
|
-
parsedBody,
|
|
1081
|
-
errorCode,
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
};
|
|
1085
770
|
export const de_DeleteRepositoryPermissionsPolicyCommand = async (output, context) => {
|
|
1086
771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1087
|
-
return
|
|
772
|
+
return de_CommandError(output, context);
|
|
1088
773
|
}
|
|
1089
774
|
const contents = map({
|
|
1090
775
|
$metadata: deserializeMetadata(output),
|
|
@@ -1096,43 +781,9 @@ export const de_DeleteRepositoryPermissionsPolicyCommand = async (output, contex
|
|
|
1096
781
|
Object.assign(contents, doc);
|
|
1097
782
|
return contents;
|
|
1098
783
|
};
|
|
1099
|
-
const de_DeleteRepositoryPermissionsPolicyCommandError = async (output, context) => {
|
|
1100
|
-
const parsedOutput = {
|
|
1101
|
-
...output,
|
|
1102
|
-
body: await parseErrorBody(output.body, context),
|
|
1103
|
-
};
|
|
1104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
|
-
switch (errorCode) {
|
|
1106
|
-
case "AccessDeniedException":
|
|
1107
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1108
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "ConflictException":
|
|
1110
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1111
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "InternalServerException":
|
|
1113
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1114
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ResourceNotFoundException":
|
|
1116
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1117
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ThrottlingException":
|
|
1119
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1120
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ValidationException":
|
|
1122
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1123
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1124
|
-
default:
|
|
1125
|
-
const parsedBody = parsedOutput.body;
|
|
1126
|
-
return throwDefaultError({
|
|
1127
|
-
output,
|
|
1128
|
-
parsedBody,
|
|
1129
|
-
errorCode,
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
};
|
|
1133
784
|
export const de_DescribeDomainCommand = async (output, context) => {
|
|
1134
785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1135
|
-
return
|
|
786
|
+
return de_CommandError(output, context);
|
|
1136
787
|
}
|
|
1137
788
|
const contents = map({
|
|
1138
789
|
$metadata: deserializeMetadata(output),
|
|
@@ -1144,40 +795,9 @@ export const de_DescribeDomainCommand = async (output, context) => {
|
|
|
1144
795
|
Object.assign(contents, doc);
|
|
1145
796
|
return contents;
|
|
1146
797
|
};
|
|
1147
|
-
const de_DescribeDomainCommandError = async (output, context) => {
|
|
1148
|
-
const parsedOutput = {
|
|
1149
|
-
...output,
|
|
1150
|
-
body: await parseErrorBody(output.body, context),
|
|
1151
|
-
};
|
|
1152
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
-
switch (errorCode) {
|
|
1154
|
-
case "AccessDeniedException":
|
|
1155
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1156
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "InternalServerException":
|
|
1158
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1159
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ResourceNotFoundException":
|
|
1161
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1162
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ThrottlingException":
|
|
1164
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1165
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "ValidationException":
|
|
1167
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1168
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1169
|
-
default:
|
|
1170
|
-
const parsedBody = parsedOutput.body;
|
|
1171
|
-
return throwDefaultError({
|
|
1172
|
-
output,
|
|
1173
|
-
parsedBody,
|
|
1174
|
-
errorCode,
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
};
|
|
1178
798
|
export const de_DescribePackageCommand = async (output, context) => {
|
|
1179
799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1180
|
-
return
|
|
800
|
+
return de_CommandError(output, context);
|
|
1181
801
|
}
|
|
1182
802
|
const contents = map({
|
|
1183
803
|
$metadata: deserializeMetadata(output),
|
|
@@ -1189,40 +809,9 @@ export const de_DescribePackageCommand = async (output, context) => {
|
|
|
1189
809
|
Object.assign(contents, doc);
|
|
1190
810
|
return contents;
|
|
1191
811
|
};
|
|
1192
|
-
const de_DescribePackageCommandError = async (output, context) => {
|
|
1193
|
-
const parsedOutput = {
|
|
1194
|
-
...output,
|
|
1195
|
-
body: await parseErrorBody(output.body, context),
|
|
1196
|
-
};
|
|
1197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
|
-
switch (errorCode) {
|
|
1199
|
-
case "AccessDeniedException":
|
|
1200
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1201
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "InternalServerException":
|
|
1203
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1204
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "ResourceNotFoundException":
|
|
1206
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1207
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "ThrottlingException":
|
|
1209
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1210
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "ValidationException":
|
|
1212
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1213
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1214
|
-
default:
|
|
1215
|
-
const parsedBody = parsedOutput.body;
|
|
1216
|
-
return throwDefaultError({
|
|
1217
|
-
output,
|
|
1218
|
-
parsedBody,
|
|
1219
|
-
errorCode,
|
|
1220
|
-
});
|
|
1221
|
-
}
|
|
1222
|
-
};
|
|
1223
812
|
export const de_DescribePackageVersionCommand = async (output, context) => {
|
|
1224
813
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1225
|
-
return
|
|
814
|
+
return de_CommandError(output, context);
|
|
1226
815
|
}
|
|
1227
816
|
const contents = map({
|
|
1228
817
|
$metadata: deserializeMetadata(output),
|
|
@@ -1234,43 +823,9 @@ export const de_DescribePackageVersionCommand = async (output, context) => {
|
|
|
1234
823
|
Object.assign(contents, doc);
|
|
1235
824
|
return contents;
|
|
1236
825
|
};
|
|
1237
|
-
const de_DescribePackageVersionCommandError = async (output, context) => {
|
|
1238
|
-
const parsedOutput = {
|
|
1239
|
-
...output,
|
|
1240
|
-
body: await parseErrorBody(output.body, context),
|
|
1241
|
-
};
|
|
1242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
|
-
switch (errorCode) {
|
|
1244
|
-
case "AccessDeniedException":
|
|
1245
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1246
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "ConflictException":
|
|
1248
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1249
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "InternalServerException":
|
|
1251
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1252
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ResourceNotFoundException":
|
|
1254
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1255
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ThrottlingException":
|
|
1257
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1258
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "ValidationException":
|
|
1260
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1261
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1262
|
-
default:
|
|
1263
|
-
const parsedBody = parsedOutput.body;
|
|
1264
|
-
return throwDefaultError({
|
|
1265
|
-
output,
|
|
1266
|
-
parsedBody,
|
|
1267
|
-
errorCode,
|
|
1268
|
-
});
|
|
1269
|
-
}
|
|
1270
|
-
};
|
|
1271
826
|
export const de_DescribeRepositoryCommand = async (output, context) => {
|
|
1272
827
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1273
|
-
return
|
|
828
|
+
return de_CommandError(output, context);
|
|
1274
829
|
}
|
|
1275
830
|
const contents = map({
|
|
1276
831
|
$metadata: deserializeMetadata(output),
|
|
@@ -1282,40 +837,9 @@ export const de_DescribeRepositoryCommand = async (output, context) => {
|
|
|
1282
837
|
Object.assign(contents, doc);
|
|
1283
838
|
return contents;
|
|
1284
839
|
};
|
|
1285
|
-
const de_DescribeRepositoryCommandError = async (output, context) => {
|
|
1286
|
-
const parsedOutput = {
|
|
1287
|
-
...output,
|
|
1288
|
-
body: await parseErrorBody(output.body, context),
|
|
1289
|
-
};
|
|
1290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1291
|
-
switch (errorCode) {
|
|
1292
|
-
case "AccessDeniedException":
|
|
1293
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1294
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "InternalServerException":
|
|
1296
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1297
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ResourceNotFoundException":
|
|
1299
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1300
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "ThrottlingException":
|
|
1302
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1303
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "ValidationException":
|
|
1305
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1306
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1307
|
-
default:
|
|
1308
|
-
const parsedBody = parsedOutput.body;
|
|
1309
|
-
return throwDefaultError({
|
|
1310
|
-
output,
|
|
1311
|
-
parsedBody,
|
|
1312
|
-
errorCode,
|
|
1313
|
-
});
|
|
1314
|
-
}
|
|
1315
|
-
};
|
|
1316
840
|
export const de_DisassociateExternalConnectionCommand = async (output, context) => {
|
|
1317
841
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1318
|
-
return
|
|
842
|
+
return de_CommandError(output, context);
|
|
1319
843
|
}
|
|
1320
844
|
const contents = map({
|
|
1321
845
|
$metadata: deserializeMetadata(output),
|
|
@@ -1327,46 +851,9 @@ export const de_DisassociateExternalConnectionCommand = async (output, context)
|
|
|
1327
851
|
Object.assign(contents, doc);
|
|
1328
852
|
return contents;
|
|
1329
853
|
};
|
|
1330
|
-
const de_DisassociateExternalConnectionCommandError = async (output, context) => {
|
|
1331
|
-
const parsedOutput = {
|
|
1332
|
-
...output,
|
|
1333
|
-
body: await parseErrorBody(output.body, context),
|
|
1334
|
-
};
|
|
1335
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
|
-
switch (errorCode) {
|
|
1337
|
-
case "AccessDeniedException":
|
|
1338
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1339
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "ConflictException":
|
|
1341
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1342
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "InternalServerException":
|
|
1344
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1345
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ResourceNotFoundException":
|
|
1347
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1348
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "ServiceQuotaExceededException":
|
|
1350
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1351
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "ThrottlingException":
|
|
1353
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1354
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "ValidationException":
|
|
1356
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1357
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1358
|
-
default:
|
|
1359
|
-
const parsedBody = parsedOutput.body;
|
|
1360
|
-
return throwDefaultError({
|
|
1361
|
-
output,
|
|
1362
|
-
parsedBody,
|
|
1363
|
-
errorCode,
|
|
1364
|
-
});
|
|
1365
|
-
}
|
|
1366
|
-
};
|
|
1367
854
|
export const de_DisposePackageVersionsCommand = async (output, context) => {
|
|
1368
855
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1369
|
-
return
|
|
856
|
+
return de_CommandError(output, context);
|
|
1370
857
|
}
|
|
1371
858
|
const contents = map({
|
|
1372
859
|
$metadata: deserializeMetadata(output),
|
|
@@ -1379,43 +866,9 @@ export const de_DisposePackageVersionsCommand = async (output, context) => {
|
|
|
1379
866
|
Object.assign(contents, doc);
|
|
1380
867
|
return contents;
|
|
1381
868
|
};
|
|
1382
|
-
const de_DisposePackageVersionsCommandError = async (output, context) => {
|
|
1383
|
-
const parsedOutput = {
|
|
1384
|
-
...output,
|
|
1385
|
-
body: await parseErrorBody(output.body, context),
|
|
1386
|
-
};
|
|
1387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
|
-
switch (errorCode) {
|
|
1389
|
-
case "AccessDeniedException":
|
|
1390
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1391
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "ConflictException":
|
|
1393
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1394
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "InternalServerException":
|
|
1396
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1397
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "ResourceNotFoundException":
|
|
1399
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1400
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "ThrottlingException":
|
|
1402
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1403
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "ValidationException":
|
|
1405
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1406
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1407
|
-
default:
|
|
1408
|
-
const parsedBody = parsedOutput.body;
|
|
1409
|
-
return throwDefaultError({
|
|
1410
|
-
output,
|
|
1411
|
-
parsedBody,
|
|
1412
|
-
errorCode,
|
|
1413
|
-
});
|
|
1414
|
-
}
|
|
1415
|
-
};
|
|
1416
869
|
export const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
1417
870
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1418
|
-
return
|
|
871
|
+
return de_CommandError(output, context);
|
|
1419
872
|
}
|
|
1420
873
|
const contents = map({
|
|
1421
874
|
$metadata: deserializeMetadata(output),
|
|
@@ -1428,40 +881,9 @@ export const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
|
1428
881
|
Object.assign(contents, doc);
|
|
1429
882
|
return contents;
|
|
1430
883
|
};
|
|
1431
|
-
const de_GetAuthorizationTokenCommandError = async (output, context) => {
|
|
1432
|
-
const parsedOutput = {
|
|
1433
|
-
...output,
|
|
1434
|
-
body: await parseErrorBody(output.body, context),
|
|
1435
|
-
};
|
|
1436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1437
|
-
switch (errorCode) {
|
|
1438
|
-
case "AccessDeniedException":
|
|
1439
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1440
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "InternalServerException":
|
|
1442
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1443
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "ResourceNotFoundException":
|
|
1445
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1446
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "ThrottlingException":
|
|
1448
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1449
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "ValidationException":
|
|
1451
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1452
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1453
|
-
default:
|
|
1454
|
-
const parsedBody = parsedOutput.body;
|
|
1455
|
-
return throwDefaultError({
|
|
1456
|
-
output,
|
|
1457
|
-
parsedBody,
|
|
1458
|
-
errorCode,
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
};
|
|
1462
884
|
export const de_GetDomainPermissionsPolicyCommand = async (output, context) => {
|
|
1463
885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1464
|
-
return
|
|
886
|
+
return de_CommandError(output, context);
|
|
1465
887
|
}
|
|
1466
888
|
const contents = map({
|
|
1467
889
|
$metadata: deserializeMetadata(output),
|
|
@@ -1473,40 +895,9 @@ export const de_GetDomainPermissionsPolicyCommand = async (output, context) => {
|
|
|
1473
895
|
Object.assign(contents, doc);
|
|
1474
896
|
return contents;
|
|
1475
897
|
};
|
|
1476
|
-
const de_GetDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
1477
|
-
const parsedOutput = {
|
|
1478
|
-
...output,
|
|
1479
|
-
body: await parseErrorBody(output.body, context),
|
|
1480
|
-
};
|
|
1481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1482
|
-
switch (errorCode) {
|
|
1483
|
-
case "AccessDeniedException":
|
|
1484
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1485
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "InternalServerException":
|
|
1487
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1488
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "ResourceNotFoundException":
|
|
1490
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1491
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "ThrottlingException":
|
|
1493
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1494
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "ValidationException":
|
|
1496
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1497
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1498
|
-
default:
|
|
1499
|
-
const parsedBody = parsedOutput.body;
|
|
1500
|
-
return throwDefaultError({
|
|
1501
|
-
output,
|
|
1502
|
-
parsedBody,
|
|
1503
|
-
errorCode,
|
|
1504
|
-
});
|
|
1505
|
-
}
|
|
1506
|
-
};
|
|
1507
898
|
export const de_GetPackageVersionAssetCommand = async (output, context) => {
|
|
1508
899
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1509
|
-
return
|
|
900
|
+
return de_CommandError(output, context);
|
|
1510
901
|
}
|
|
1511
902
|
const contents = map({
|
|
1512
903
|
$metadata: deserializeMetadata(output),
|
|
@@ -1519,138 +910,42 @@ export const de_GetPackageVersionAssetCommand = async (output, context) => {
|
|
|
1519
910
|
contents.asset = data;
|
|
1520
911
|
return contents;
|
|
1521
912
|
};
|
|
1522
|
-
const de_GetPackageVersionAssetCommandError = async (output, context) => {
|
|
1523
|
-
const parsedOutput = {
|
|
1524
|
-
...output,
|
|
1525
|
-
body: await parseErrorBody(output.body, context),
|
|
1526
|
-
};
|
|
1527
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1528
|
-
switch (errorCode) {
|
|
1529
|
-
case "AccessDeniedException":
|
|
1530
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1531
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ConflictException":
|
|
1533
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1534
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "InternalServerException":
|
|
1536
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1537
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "ResourceNotFoundException":
|
|
1539
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1540
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "ThrottlingException":
|
|
1542
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1543
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "ValidationException":
|
|
1545
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1546
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1547
|
-
default:
|
|
1548
|
-
const parsedBody = parsedOutput.body;
|
|
1549
|
-
return throwDefaultError({
|
|
1550
|
-
output,
|
|
1551
|
-
parsedBody,
|
|
1552
|
-
errorCode,
|
|
1553
|
-
});
|
|
1554
|
-
}
|
|
1555
|
-
};
|
|
1556
913
|
export const de_GetPackageVersionReadmeCommand = async (output, context) => {
|
|
1557
914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1558
|
-
return
|
|
1559
|
-
}
|
|
1560
|
-
const contents = map({
|
|
1561
|
-
$metadata: deserializeMetadata(output),
|
|
1562
|
-
});
|
|
1563
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1564
|
-
const doc = take(data, {
|
|
1565
|
-
format: __expectString,
|
|
1566
|
-
namespace: __expectString,
|
|
1567
|
-
package: __expectString,
|
|
1568
|
-
readme: __expectString,
|
|
1569
|
-
version: __expectString,
|
|
1570
|
-
versionRevision: __expectString,
|
|
1571
|
-
});
|
|
1572
|
-
Object.assign(contents, doc);
|
|
1573
|
-
return contents;
|
|
1574
|
-
};
|
|
1575
|
-
const de_GetPackageVersionReadmeCommandError = async (output, context) => {
|
|
1576
|
-
const parsedOutput = {
|
|
1577
|
-
...output,
|
|
1578
|
-
body: await parseErrorBody(output.body, context),
|
|
1579
|
-
};
|
|
1580
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1581
|
-
switch (errorCode) {
|
|
1582
|
-
case "AccessDeniedException":
|
|
1583
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1584
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "InternalServerException":
|
|
1586
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1587
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "ResourceNotFoundException":
|
|
1589
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1590
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "ThrottlingException":
|
|
1592
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1593
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "ValidationException":
|
|
1595
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1596
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1597
|
-
default:
|
|
1598
|
-
const parsedBody = parsedOutput.body;
|
|
1599
|
-
return throwDefaultError({
|
|
1600
|
-
output,
|
|
1601
|
-
parsedBody,
|
|
1602
|
-
errorCode,
|
|
1603
|
-
});
|
|
1604
|
-
}
|
|
1605
|
-
};
|
|
1606
|
-
export const de_GetRepositoryEndpointCommand = async (output, context) => {
|
|
1607
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1608
|
-
return de_GetRepositoryEndpointCommandError(output, context);
|
|
915
|
+
return de_CommandError(output, context);
|
|
1609
916
|
}
|
|
1610
917
|
const contents = map({
|
|
1611
918
|
$metadata: deserializeMetadata(output),
|
|
1612
919
|
});
|
|
1613
920
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1614
921
|
const doc = take(data, {
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1629
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "InternalServerException":
|
|
1631
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1632
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "ResourceNotFoundException":
|
|
1634
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1635
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "ThrottlingException":
|
|
1637
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1638
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ValidationException":
|
|
1640
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1641
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1642
|
-
default:
|
|
1643
|
-
const parsedBody = parsedOutput.body;
|
|
1644
|
-
return throwDefaultError({
|
|
1645
|
-
output,
|
|
1646
|
-
parsedBody,
|
|
1647
|
-
errorCode,
|
|
1648
|
-
});
|
|
922
|
+
format: __expectString,
|
|
923
|
+
namespace: __expectString,
|
|
924
|
+
package: __expectString,
|
|
925
|
+
readme: __expectString,
|
|
926
|
+
version: __expectString,
|
|
927
|
+
versionRevision: __expectString,
|
|
928
|
+
});
|
|
929
|
+
Object.assign(contents, doc);
|
|
930
|
+
return contents;
|
|
931
|
+
};
|
|
932
|
+
export const de_GetRepositoryEndpointCommand = async (output, context) => {
|
|
933
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
934
|
+
return de_CommandError(output, context);
|
|
1649
935
|
}
|
|
936
|
+
const contents = map({
|
|
937
|
+
$metadata: deserializeMetadata(output),
|
|
938
|
+
});
|
|
939
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
940
|
+
const doc = take(data, {
|
|
941
|
+
repositoryEndpoint: __expectString,
|
|
942
|
+
});
|
|
943
|
+
Object.assign(contents, doc);
|
|
944
|
+
return contents;
|
|
1650
945
|
};
|
|
1651
946
|
export const de_GetRepositoryPermissionsPolicyCommand = async (output, context) => {
|
|
1652
947
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1653
|
-
return
|
|
948
|
+
return de_CommandError(output, context);
|
|
1654
949
|
}
|
|
1655
950
|
const contents = map({
|
|
1656
951
|
$metadata: deserializeMetadata(output),
|
|
@@ -1662,40 +957,9 @@ export const de_GetRepositoryPermissionsPolicyCommand = async (output, context)
|
|
|
1662
957
|
Object.assign(contents, doc);
|
|
1663
958
|
return contents;
|
|
1664
959
|
};
|
|
1665
|
-
const de_GetRepositoryPermissionsPolicyCommandError = async (output, context) => {
|
|
1666
|
-
const parsedOutput = {
|
|
1667
|
-
...output,
|
|
1668
|
-
body: await parseErrorBody(output.body, context),
|
|
1669
|
-
};
|
|
1670
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1671
|
-
switch (errorCode) {
|
|
1672
|
-
case "AccessDeniedException":
|
|
1673
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1674
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1675
|
-
case "InternalServerException":
|
|
1676
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1677
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "ResourceNotFoundException":
|
|
1679
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1680
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "ThrottlingException":
|
|
1682
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1683
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ValidationException":
|
|
1685
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1686
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1687
|
-
default:
|
|
1688
|
-
const parsedBody = parsedOutput.body;
|
|
1689
|
-
return throwDefaultError({
|
|
1690
|
-
output,
|
|
1691
|
-
parsedBody,
|
|
1692
|
-
errorCode,
|
|
1693
|
-
});
|
|
1694
|
-
}
|
|
1695
|
-
};
|
|
1696
960
|
export const de_ListDomainsCommand = async (output, context) => {
|
|
1697
961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1698
|
-
return
|
|
962
|
+
return de_CommandError(output, context);
|
|
1699
963
|
}
|
|
1700
964
|
const contents = map({
|
|
1701
965
|
$metadata: deserializeMetadata(output),
|
|
@@ -1708,37 +972,9 @@ export const de_ListDomainsCommand = async (output, context) => {
|
|
|
1708
972
|
Object.assign(contents, doc);
|
|
1709
973
|
return contents;
|
|
1710
974
|
};
|
|
1711
|
-
const de_ListDomainsCommandError = async (output, context) => {
|
|
1712
|
-
const parsedOutput = {
|
|
1713
|
-
...output,
|
|
1714
|
-
body: await parseErrorBody(output.body, context),
|
|
1715
|
-
};
|
|
1716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
-
switch (errorCode) {
|
|
1718
|
-
case "AccessDeniedException":
|
|
1719
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1720
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "InternalServerException":
|
|
1722
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1723
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "ThrottlingException":
|
|
1725
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1726
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "ValidationException":
|
|
1728
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1729
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1730
|
-
default:
|
|
1731
|
-
const parsedBody = parsedOutput.body;
|
|
1732
|
-
return throwDefaultError({
|
|
1733
|
-
output,
|
|
1734
|
-
parsedBody,
|
|
1735
|
-
errorCode,
|
|
1736
|
-
});
|
|
1737
|
-
}
|
|
1738
|
-
};
|
|
1739
975
|
export const de_ListPackagesCommand = async (output, context) => {
|
|
1740
976
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1741
|
-
return
|
|
977
|
+
return de_CommandError(output, context);
|
|
1742
978
|
}
|
|
1743
979
|
const contents = map({
|
|
1744
980
|
$metadata: deserializeMetadata(output),
|
|
@@ -1751,40 +987,9 @@ export const de_ListPackagesCommand = async (output, context) => {
|
|
|
1751
987
|
Object.assign(contents, doc);
|
|
1752
988
|
return contents;
|
|
1753
989
|
};
|
|
1754
|
-
const de_ListPackagesCommandError = async (output, context) => {
|
|
1755
|
-
const parsedOutput = {
|
|
1756
|
-
...output,
|
|
1757
|
-
body: await parseErrorBody(output.body, context),
|
|
1758
|
-
};
|
|
1759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
|
-
switch (errorCode) {
|
|
1761
|
-
case "AccessDeniedException":
|
|
1762
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1763
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1764
|
-
case "InternalServerException":
|
|
1765
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1766
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "ResourceNotFoundException":
|
|
1768
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1769
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "ThrottlingException":
|
|
1771
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1772
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "ValidationException":
|
|
1774
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1775
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1776
|
-
default:
|
|
1777
|
-
const parsedBody = parsedOutput.body;
|
|
1778
|
-
return throwDefaultError({
|
|
1779
|
-
output,
|
|
1780
|
-
parsedBody,
|
|
1781
|
-
errorCode,
|
|
1782
|
-
});
|
|
1783
|
-
}
|
|
1784
|
-
};
|
|
1785
990
|
export const de_ListPackageVersionAssetsCommand = async (output, context) => {
|
|
1786
991
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1787
|
-
return
|
|
992
|
+
return de_CommandError(output, context);
|
|
1788
993
|
}
|
|
1789
994
|
const contents = map({
|
|
1790
995
|
$metadata: deserializeMetadata(output),
|
|
@@ -1802,40 +1007,9 @@ export const de_ListPackageVersionAssetsCommand = async (output, context) => {
|
|
|
1802
1007
|
Object.assign(contents, doc);
|
|
1803
1008
|
return contents;
|
|
1804
1009
|
};
|
|
1805
|
-
const de_ListPackageVersionAssetsCommandError = async (output, context) => {
|
|
1806
|
-
const parsedOutput = {
|
|
1807
|
-
...output,
|
|
1808
|
-
body: await parseErrorBody(output.body, context),
|
|
1809
|
-
};
|
|
1810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1811
|
-
switch (errorCode) {
|
|
1812
|
-
case "AccessDeniedException":
|
|
1813
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1814
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1815
|
-
case "InternalServerException":
|
|
1816
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1817
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1818
|
-
case "ResourceNotFoundException":
|
|
1819
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1820
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1821
|
-
case "ThrottlingException":
|
|
1822
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1823
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "ValidationException":
|
|
1825
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1826
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1827
|
-
default:
|
|
1828
|
-
const parsedBody = parsedOutput.body;
|
|
1829
|
-
return throwDefaultError({
|
|
1830
|
-
output,
|
|
1831
|
-
parsedBody,
|
|
1832
|
-
errorCode,
|
|
1833
|
-
});
|
|
1834
|
-
}
|
|
1835
|
-
};
|
|
1836
1010
|
export const de_ListPackageVersionDependenciesCommand = async (output, context) => {
|
|
1837
1011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1838
|
-
return
|
|
1012
|
+
return de_CommandError(output, context);
|
|
1839
1013
|
}
|
|
1840
1014
|
const contents = map({
|
|
1841
1015
|
$metadata: deserializeMetadata(output),
|
|
@@ -1853,40 +1027,9 @@ export const de_ListPackageVersionDependenciesCommand = async (output, context)
|
|
|
1853
1027
|
Object.assign(contents, doc);
|
|
1854
1028
|
return contents;
|
|
1855
1029
|
};
|
|
1856
|
-
const de_ListPackageVersionDependenciesCommandError = async (output, context) => {
|
|
1857
|
-
const parsedOutput = {
|
|
1858
|
-
...output,
|
|
1859
|
-
body: await parseErrorBody(output.body, context),
|
|
1860
|
-
};
|
|
1861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1862
|
-
switch (errorCode) {
|
|
1863
|
-
case "AccessDeniedException":
|
|
1864
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1865
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "InternalServerException":
|
|
1867
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1868
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "ResourceNotFoundException":
|
|
1870
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1871
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "ThrottlingException":
|
|
1873
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1874
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "ValidationException":
|
|
1876
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1877
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1878
|
-
default:
|
|
1879
|
-
const parsedBody = parsedOutput.body;
|
|
1880
|
-
return throwDefaultError({
|
|
1881
|
-
output,
|
|
1882
|
-
parsedBody,
|
|
1883
|
-
errorCode,
|
|
1884
|
-
});
|
|
1885
|
-
}
|
|
1886
|
-
};
|
|
1887
1030
|
export const de_ListPackageVersionsCommand = async (output, context) => {
|
|
1888
1031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1889
|
-
return
|
|
1032
|
+
return de_CommandError(output, context);
|
|
1890
1033
|
}
|
|
1891
1034
|
const contents = map({
|
|
1892
1035
|
$metadata: deserializeMetadata(output),
|
|
@@ -1903,40 +1046,9 @@ export const de_ListPackageVersionsCommand = async (output, context) => {
|
|
|
1903
1046
|
Object.assign(contents, doc);
|
|
1904
1047
|
return contents;
|
|
1905
1048
|
};
|
|
1906
|
-
const de_ListPackageVersionsCommandError = async (output, context) => {
|
|
1907
|
-
const parsedOutput = {
|
|
1908
|
-
...output,
|
|
1909
|
-
body: await parseErrorBody(output.body, context),
|
|
1910
|
-
};
|
|
1911
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
|
-
switch (errorCode) {
|
|
1913
|
-
case "AccessDeniedException":
|
|
1914
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1915
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "InternalServerException":
|
|
1917
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1918
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "ResourceNotFoundException":
|
|
1920
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1921
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "ThrottlingException":
|
|
1923
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1924
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "ValidationException":
|
|
1926
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1927
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1928
|
-
default:
|
|
1929
|
-
const parsedBody = parsedOutput.body;
|
|
1930
|
-
return throwDefaultError({
|
|
1931
|
-
output,
|
|
1932
|
-
parsedBody,
|
|
1933
|
-
errorCode,
|
|
1934
|
-
});
|
|
1935
|
-
}
|
|
1936
|
-
};
|
|
1937
1049
|
export const de_ListRepositoriesCommand = async (output, context) => {
|
|
1938
1050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1939
|
-
return
|
|
1051
|
+
return de_CommandError(output, context);
|
|
1940
1052
|
}
|
|
1941
1053
|
const contents = map({
|
|
1942
1054
|
$metadata: deserializeMetadata(output),
|
|
@@ -1949,37 +1061,9 @@ export const de_ListRepositoriesCommand = async (output, context) => {
|
|
|
1949
1061
|
Object.assign(contents, doc);
|
|
1950
1062
|
return contents;
|
|
1951
1063
|
};
|
|
1952
|
-
const de_ListRepositoriesCommandError = async (output, context) => {
|
|
1953
|
-
const parsedOutput = {
|
|
1954
|
-
...output,
|
|
1955
|
-
body: await parseErrorBody(output.body, context),
|
|
1956
|
-
};
|
|
1957
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
|
-
switch (errorCode) {
|
|
1959
|
-
case "AccessDeniedException":
|
|
1960
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1961
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "InternalServerException":
|
|
1963
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1964
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1965
|
-
case "ThrottlingException":
|
|
1966
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1967
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1968
|
-
case "ValidationException":
|
|
1969
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1970
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1971
|
-
default:
|
|
1972
|
-
const parsedBody = parsedOutput.body;
|
|
1973
|
-
return throwDefaultError({
|
|
1974
|
-
output,
|
|
1975
|
-
parsedBody,
|
|
1976
|
-
errorCode,
|
|
1977
|
-
});
|
|
1978
|
-
}
|
|
1979
|
-
};
|
|
1980
1064
|
export const de_ListRepositoriesInDomainCommand = async (output, context) => {
|
|
1981
1065
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1982
|
-
return
|
|
1066
|
+
return de_CommandError(output, context);
|
|
1983
1067
|
}
|
|
1984
1068
|
const contents = map({
|
|
1985
1069
|
$metadata: deserializeMetadata(output),
|
|
@@ -1990,42 +1074,11 @@ export const de_ListRepositoriesInDomainCommand = async (output, context) => {
|
|
|
1990
1074
|
repositories: (_) => de_RepositorySummaryList(_, context),
|
|
1991
1075
|
});
|
|
1992
1076
|
Object.assign(contents, doc);
|
|
1993
|
-
return contents;
|
|
1994
|
-
};
|
|
1995
|
-
const de_ListRepositoriesInDomainCommandError = async (output, context) => {
|
|
1996
|
-
const parsedOutput = {
|
|
1997
|
-
...output,
|
|
1998
|
-
body: await parseErrorBody(output.body, context),
|
|
1999
|
-
};
|
|
2000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2001
|
-
switch (errorCode) {
|
|
2002
|
-
case "AccessDeniedException":
|
|
2003
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2004
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "InternalServerException":
|
|
2006
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2007
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "ResourceNotFoundException":
|
|
2009
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2010
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "ThrottlingException":
|
|
2012
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2013
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "ValidationException":
|
|
2015
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2016
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2017
|
-
default:
|
|
2018
|
-
const parsedBody = parsedOutput.body;
|
|
2019
|
-
return throwDefaultError({
|
|
2020
|
-
output,
|
|
2021
|
-
parsedBody,
|
|
2022
|
-
errorCode,
|
|
2023
|
-
});
|
|
2024
|
-
}
|
|
1077
|
+
return contents;
|
|
2025
1078
|
};
|
|
2026
1079
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2027
1080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2028
|
-
return
|
|
1081
|
+
return de_CommandError(output, context);
|
|
2029
1082
|
}
|
|
2030
1083
|
const contents = map({
|
|
2031
1084
|
$metadata: deserializeMetadata(output),
|
|
@@ -2037,37 +1090,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2037
1090
|
Object.assign(contents, doc);
|
|
2038
1091
|
return contents;
|
|
2039
1092
|
};
|
|
2040
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2041
|
-
const parsedOutput = {
|
|
2042
|
-
...output,
|
|
2043
|
-
body: await parseErrorBody(output.body, context),
|
|
2044
|
-
};
|
|
2045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
|
-
switch (errorCode) {
|
|
2047
|
-
case "AccessDeniedException":
|
|
2048
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2049
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2050
|
-
case "ResourceNotFoundException":
|
|
2051
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2052
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "ThrottlingException":
|
|
2054
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2055
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "ValidationException":
|
|
2057
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2058
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2059
|
-
default:
|
|
2060
|
-
const parsedBody = parsedOutput.body;
|
|
2061
|
-
return throwDefaultError({
|
|
2062
|
-
output,
|
|
2063
|
-
parsedBody,
|
|
2064
|
-
errorCode,
|
|
2065
|
-
});
|
|
2066
|
-
}
|
|
2067
|
-
};
|
|
2068
1093
|
export const de_PublishPackageVersionCommand = async (output, context) => {
|
|
2069
1094
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2070
|
-
return
|
|
1095
|
+
return de_CommandError(output, context);
|
|
2071
1096
|
}
|
|
2072
1097
|
const contents = map({
|
|
2073
1098
|
$metadata: deserializeMetadata(output),
|
|
@@ -2085,46 +1110,9 @@ export const de_PublishPackageVersionCommand = async (output, context) => {
|
|
|
2085
1110
|
Object.assign(contents, doc);
|
|
2086
1111
|
return contents;
|
|
2087
1112
|
};
|
|
2088
|
-
const de_PublishPackageVersionCommandError = async (output, context) => {
|
|
2089
|
-
const parsedOutput = {
|
|
2090
|
-
...output,
|
|
2091
|
-
body: await parseErrorBody(output.body, context),
|
|
2092
|
-
};
|
|
2093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2094
|
-
switch (errorCode) {
|
|
2095
|
-
case "AccessDeniedException":
|
|
2096
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2097
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2098
|
-
case "ConflictException":
|
|
2099
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2100
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "InternalServerException":
|
|
2102
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2103
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ResourceNotFoundException":
|
|
2105
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2106
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "ServiceQuotaExceededException":
|
|
2108
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2109
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "ThrottlingException":
|
|
2111
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2112
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "ValidationException":
|
|
2114
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2115
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2116
|
-
default:
|
|
2117
|
-
const parsedBody = parsedOutput.body;
|
|
2118
|
-
return throwDefaultError({
|
|
2119
|
-
output,
|
|
2120
|
-
parsedBody,
|
|
2121
|
-
errorCode,
|
|
2122
|
-
});
|
|
2123
|
-
}
|
|
2124
|
-
};
|
|
2125
1113
|
export const de_PutDomainPermissionsPolicyCommand = async (output, context) => {
|
|
2126
1114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2127
|
-
return
|
|
1115
|
+
return de_CommandError(output, context);
|
|
2128
1116
|
}
|
|
2129
1117
|
const contents = map({
|
|
2130
1118
|
$metadata: deserializeMetadata(output),
|
|
@@ -2136,46 +1124,9 @@ export const de_PutDomainPermissionsPolicyCommand = async (output, context) => {
|
|
|
2136
1124
|
Object.assign(contents, doc);
|
|
2137
1125
|
return contents;
|
|
2138
1126
|
};
|
|
2139
|
-
const de_PutDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
2140
|
-
const parsedOutput = {
|
|
2141
|
-
...output,
|
|
2142
|
-
body: await parseErrorBody(output.body, context),
|
|
2143
|
-
};
|
|
2144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2145
|
-
switch (errorCode) {
|
|
2146
|
-
case "AccessDeniedException":
|
|
2147
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2148
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "ConflictException":
|
|
2150
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2151
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "InternalServerException":
|
|
2153
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2154
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "ResourceNotFoundException":
|
|
2156
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2157
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "ServiceQuotaExceededException":
|
|
2159
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2160
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "ThrottlingException":
|
|
2162
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2163
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "ValidationException":
|
|
2165
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2166
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2167
|
-
default:
|
|
2168
|
-
const parsedBody = parsedOutput.body;
|
|
2169
|
-
return throwDefaultError({
|
|
2170
|
-
output,
|
|
2171
|
-
parsedBody,
|
|
2172
|
-
errorCode,
|
|
2173
|
-
});
|
|
2174
|
-
}
|
|
2175
|
-
};
|
|
2176
1127
|
export const de_PutPackageOriginConfigurationCommand = async (output, context) => {
|
|
2177
1128
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2178
|
-
return
|
|
1129
|
+
return de_CommandError(output, context);
|
|
2179
1130
|
}
|
|
2180
1131
|
const contents = map({
|
|
2181
1132
|
$metadata: deserializeMetadata(output),
|
|
@@ -2187,40 +1138,9 @@ export const de_PutPackageOriginConfigurationCommand = async (output, context) =
|
|
|
2187
1138
|
Object.assign(contents, doc);
|
|
2188
1139
|
return contents;
|
|
2189
1140
|
};
|
|
2190
|
-
const de_PutPackageOriginConfigurationCommandError = async (output, context) => {
|
|
2191
|
-
const parsedOutput = {
|
|
2192
|
-
...output,
|
|
2193
|
-
body: await parseErrorBody(output.body, context),
|
|
2194
|
-
};
|
|
2195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2196
|
-
switch (errorCode) {
|
|
2197
|
-
case "AccessDeniedException":
|
|
2198
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2199
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "InternalServerException":
|
|
2201
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2202
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "ResourceNotFoundException":
|
|
2204
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2205
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2206
|
-
case "ThrottlingException":
|
|
2207
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2208
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2209
|
-
case "ValidationException":
|
|
2210
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2211
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2212
|
-
default:
|
|
2213
|
-
const parsedBody = parsedOutput.body;
|
|
2214
|
-
return throwDefaultError({
|
|
2215
|
-
output,
|
|
2216
|
-
parsedBody,
|
|
2217
|
-
errorCode,
|
|
2218
|
-
});
|
|
2219
|
-
}
|
|
2220
|
-
};
|
|
2221
1141
|
export const de_PutRepositoryPermissionsPolicyCommand = async (output, context) => {
|
|
2222
1142
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2223
|
-
return
|
|
1143
|
+
return de_CommandError(output, context);
|
|
2224
1144
|
}
|
|
2225
1145
|
const contents = map({
|
|
2226
1146
|
$metadata: deserializeMetadata(output),
|
|
@@ -2232,46 +1152,9 @@ export const de_PutRepositoryPermissionsPolicyCommand = async (output, context)
|
|
|
2232
1152
|
Object.assign(contents, doc);
|
|
2233
1153
|
return contents;
|
|
2234
1154
|
};
|
|
2235
|
-
const de_PutRepositoryPermissionsPolicyCommandError = async (output, context) => {
|
|
2236
|
-
const parsedOutput = {
|
|
2237
|
-
...output,
|
|
2238
|
-
body: await parseErrorBody(output.body, context),
|
|
2239
|
-
};
|
|
2240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
|
-
switch (errorCode) {
|
|
2242
|
-
case "AccessDeniedException":
|
|
2243
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2244
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "ConflictException":
|
|
2246
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2247
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "InternalServerException":
|
|
2249
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2250
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "ResourceNotFoundException":
|
|
2252
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2253
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "ServiceQuotaExceededException":
|
|
2255
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2256
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "ThrottlingException":
|
|
2258
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2259
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2260
|
-
case "ValidationException":
|
|
2261
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2262
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2263
|
-
default:
|
|
2264
|
-
const parsedBody = parsedOutput.body;
|
|
2265
|
-
return throwDefaultError({
|
|
2266
|
-
output,
|
|
2267
|
-
parsedBody,
|
|
2268
|
-
errorCode,
|
|
2269
|
-
});
|
|
2270
|
-
}
|
|
2271
|
-
};
|
|
2272
1155
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2273
1156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2274
|
-
return
|
|
1157
|
+
return de_CommandError(output, context);
|
|
2275
1158
|
}
|
|
2276
1159
|
const contents = map({
|
|
2277
1160
|
$metadata: deserializeMetadata(output),
|
|
@@ -2279,40 +1162,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2279
1162
|
await collectBody(output.body, context);
|
|
2280
1163
|
return contents;
|
|
2281
1164
|
};
|
|
2282
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2283
|
-
const parsedOutput = {
|
|
2284
|
-
...output,
|
|
2285
|
-
body: await parseErrorBody(output.body, context),
|
|
2286
|
-
};
|
|
2287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2288
|
-
switch (errorCode) {
|
|
2289
|
-
case "AccessDeniedException":
|
|
2290
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2291
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "ResourceNotFoundException":
|
|
2293
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2294
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "ServiceQuotaExceededException":
|
|
2296
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2297
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "ThrottlingException":
|
|
2299
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2300
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2301
|
-
case "ValidationException":
|
|
2302
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2303
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2304
|
-
default:
|
|
2305
|
-
const parsedBody = parsedOutput.body;
|
|
2306
|
-
return throwDefaultError({
|
|
2307
|
-
output,
|
|
2308
|
-
parsedBody,
|
|
2309
|
-
errorCode,
|
|
2310
|
-
});
|
|
2311
|
-
}
|
|
2312
|
-
};
|
|
2313
1165
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2314
1166
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2315
|
-
return
|
|
1167
|
+
return de_CommandError(output, context);
|
|
2316
1168
|
}
|
|
2317
1169
|
const contents = map({
|
|
2318
1170
|
$metadata: deserializeMetadata(output),
|
|
@@ -2320,37 +1172,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2320
1172
|
await collectBody(output.body, context);
|
|
2321
1173
|
return contents;
|
|
2322
1174
|
};
|
|
2323
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2324
|
-
const parsedOutput = {
|
|
2325
|
-
...output,
|
|
2326
|
-
body: await parseErrorBody(output.body, context),
|
|
2327
|
-
};
|
|
2328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2329
|
-
switch (errorCode) {
|
|
2330
|
-
case "AccessDeniedException":
|
|
2331
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2332
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2333
|
-
case "ResourceNotFoundException":
|
|
2334
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2335
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "ThrottlingException":
|
|
2337
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2338
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "ValidationException":
|
|
2340
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2341
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2342
|
-
default:
|
|
2343
|
-
const parsedBody = parsedOutput.body;
|
|
2344
|
-
return throwDefaultError({
|
|
2345
|
-
output,
|
|
2346
|
-
parsedBody,
|
|
2347
|
-
errorCode,
|
|
2348
|
-
});
|
|
2349
|
-
}
|
|
2350
|
-
};
|
|
2351
1175
|
export const de_UpdatePackageVersionsStatusCommand = async (output, context) => {
|
|
2352
1176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2353
|
-
return
|
|
1177
|
+
return de_CommandError(output, context);
|
|
2354
1178
|
}
|
|
2355
1179
|
const contents = map({
|
|
2356
1180
|
$metadata: deserializeMetadata(output),
|
|
@@ -2363,43 +1187,9 @@ export const de_UpdatePackageVersionsStatusCommand = async (output, context) =>
|
|
|
2363
1187
|
Object.assign(contents, doc);
|
|
2364
1188
|
return contents;
|
|
2365
1189
|
};
|
|
2366
|
-
const de_UpdatePackageVersionsStatusCommandError = async (output, context) => {
|
|
2367
|
-
const parsedOutput = {
|
|
2368
|
-
...output,
|
|
2369
|
-
body: await parseErrorBody(output.body, context),
|
|
2370
|
-
};
|
|
2371
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2372
|
-
switch (errorCode) {
|
|
2373
|
-
case "AccessDeniedException":
|
|
2374
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2375
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "ConflictException":
|
|
2377
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2378
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "InternalServerException":
|
|
2380
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2381
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "ResourceNotFoundException":
|
|
2383
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2384
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "ThrottlingException":
|
|
2386
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2387
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "ValidationException":
|
|
2389
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2390
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2391
|
-
default:
|
|
2392
|
-
const parsedBody = parsedOutput.body;
|
|
2393
|
-
return throwDefaultError({
|
|
2394
|
-
output,
|
|
2395
|
-
parsedBody,
|
|
2396
|
-
errorCode,
|
|
2397
|
-
});
|
|
2398
|
-
}
|
|
2399
|
-
};
|
|
2400
1190
|
export const de_UpdateRepositoryCommand = async (output, context) => {
|
|
2401
1191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2402
|
-
return
|
|
1192
|
+
return de_CommandError(output, context);
|
|
2403
1193
|
}
|
|
2404
1194
|
const contents = map({
|
|
2405
1195
|
$metadata: deserializeMetadata(output),
|
|
@@ -2411,7 +1201,7 @@ export const de_UpdateRepositoryCommand = async (output, context) => {
|
|
|
2411
1201
|
Object.assign(contents, doc);
|
|
2412
1202
|
return contents;
|
|
2413
1203
|
};
|
|
2414
|
-
const
|
|
1204
|
+
const de_CommandError = async (output, context) => {
|
|
2415
1205
|
const parsedOutput = {
|
|
2416
1206
|
...output,
|
|
2417
1207
|
body: await parseErrorBody(output.body, context),
|