@aws-sdk/client-kafka 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 +80 -1739
- package/dist-es/protocols/Aws_restJson1.js +73 -1732
- package/package.json +3 -3
|
@@ -686,7 +686,7 @@ export const se_UpdateStorageCommand = async (input, context) => {
|
|
|
686
686
|
};
|
|
687
687
|
export const de_BatchAssociateScramSecretCommand = async (output, context) => {
|
|
688
688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
689
|
-
return
|
|
689
|
+
return de_CommandError(output, context);
|
|
690
690
|
}
|
|
691
691
|
const contents = map({
|
|
692
692
|
$metadata: deserializeMetadata(output),
|
|
@@ -699,46 +699,9 @@ export const de_BatchAssociateScramSecretCommand = async (output, context) => {
|
|
|
699
699
|
Object.assign(contents, doc);
|
|
700
700
|
return contents;
|
|
701
701
|
};
|
|
702
|
-
const de_BatchAssociateScramSecretCommandError = async (output, context) => {
|
|
703
|
-
const parsedOutput = {
|
|
704
|
-
...output,
|
|
705
|
-
body: await parseErrorBody(output.body, context),
|
|
706
|
-
};
|
|
707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
708
|
-
switch (errorCode) {
|
|
709
|
-
case "BadRequestException":
|
|
710
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
711
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ForbiddenException":
|
|
713
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
714
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
715
|
-
case "InternalServerErrorException":
|
|
716
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
717
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
718
|
-
case "NotFoundException":
|
|
719
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
720
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ServiceUnavailableException":
|
|
722
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
723
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
724
|
-
case "TooManyRequestsException":
|
|
725
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
726
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
727
|
-
case "UnauthorizedException":
|
|
728
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
729
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
730
|
-
default:
|
|
731
|
-
const parsedBody = parsedOutput.body;
|
|
732
|
-
return throwDefaultError({
|
|
733
|
-
output,
|
|
734
|
-
parsedBody,
|
|
735
|
-
errorCode,
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
702
|
export const de_BatchDisassociateScramSecretCommand = async (output, context) => {
|
|
740
703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
741
|
-
return
|
|
704
|
+
return de_CommandError(output, context);
|
|
742
705
|
}
|
|
743
706
|
const contents = map({
|
|
744
707
|
$metadata: deserializeMetadata(output),
|
|
@@ -751,46 +714,9 @@ export const de_BatchDisassociateScramSecretCommand = async (output, context) =>
|
|
|
751
714
|
Object.assign(contents, doc);
|
|
752
715
|
return contents;
|
|
753
716
|
};
|
|
754
|
-
const de_BatchDisassociateScramSecretCommandError = async (output, context) => {
|
|
755
|
-
const parsedOutput = {
|
|
756
|
-
...output,
|
|
757
|
-
body: await parseErrorBody(output.body, context),
|
|
758
|
-
};
|
|
759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
|
-
switch (errorCode) {
|
|
761
|
-
case "BadRequestException":
|
|
762
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
763
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
764
|
-
case "ForbiddenException":
|
|
765
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
766
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
767
|
-
case "InternalServerErrorException":
|
|
768
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
769
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
770
|
-
case "NotFoundException":
|
|
771
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
772
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ServiceUnavailableException":
|
|
774
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
775
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
776
|
-
case "TooManyRequestsException":
|
|
777
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
778
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
779
|
-
case "UnauthorizedException":
|
|
780
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
781
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
782
|
-
default:
|
|
783
|
-
const parsedBody = parsedOutput.body;
|
|
784
|
-
return throwDefaultError({
|
|
785
|
-
output,
|
|
786
|
-
parsedBody,
|
|
787
|
-
errorCode,
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
717
|
export const de_CreateClusterCommand = async (output, context) => {
|
|
792
718
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
793
|
-
return
|
|
719
|
+
return de_CommandError(output, context);
|
|
794
720
|
}
|
|
795
721
|
const contents = map({
|
|
796
722
|
$metadata: deserializeMetadata(output),
|
|
@@ -804,46 +730,9 @@ export const de_CreateClusterCommand = async (output, context) => {
|
|
|
804
730
|
Object.assign(contents, doc);
|
|
805
731
|
return contents;
|
|
806
732
|
};
|
|
807
|
-
const de_CreateClusterCommandError = async (output, context) => {
|
|
808
|
-
const parsedOutput = {
|
|
809
|
-
...output,
|
|
810
|
-
body: await parseErrorBody(output.body, context),
|
|
811
|
-
};
|
|
812
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
|
-
switch (errorCode) {
|
|
814
|
-
case "BadRequestException":
|
|
815
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
816
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ConflictException":
|
|
818
|
-
case "com.amazonaws.kafka#ConflictException":
|
|
819
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ForbiddenException":
|
|
821
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
822
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
823
|
-
case "InternalServerErrorException":
|
|
824
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
825
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
826
|
-
case "ServiceUnavailableException":
|
|
827
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
828
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
829
|
-
case "TooManyRequestsException":
|
|
830
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
831
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
832
|
-
case "UnauthorizedException":
|
|
833
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
834
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
835
|
-
default:
|
|
836
|
-
const parsedBody = parsedOutput.body;
|
|
837
|
-
return throwDefaultError({
|
|
838
|
-
output,
|
|
839
|
-
parsedBody,
|
|
840
|
-
errorCode,
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
733
|
export const de_CreateClusterV2Command = async (output, context) => {
|
|
845
734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
-
return
|
|
735
|
+
return de_CommandError(output, context);
|
|
847
736
|
}
|
|
848
737
|
const contents = map({
|
|
849
738
|
$metadata: deserializeMetadata(output),
|
|
@@ -858,46 +747,9 @@ export const de_CreateClusterV2Command = async (output, context) => {
|
|
|
858
747
|
Object.assign(contents, doc);
|
|
859
748
|
return contents;
|
|
860
749
|
};
|
|
861
|
-
const de_CreateClusterV2CommandError = 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 "BadRequestException":
|
|
869
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
870
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ConflictException":
|
|
872
|
-
case "com.amazonaws.kafka#ConflictException":
|
|
873
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
874
|
-
case "ForbiddenException":
|
|
875
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
876
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
877
|
-
case "InternalServerErrorException":
|
|
878
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
879
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ServiceUnavailableException":
|
|
881
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
882
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
883
|
-
case "TooManyRequestsException":
|
|
884
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
885
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
886
|
-
case "UnauthorizedException":
|
|
887
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
888
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
889
|
-
default:
|
|
890
|
-
const parsedBody = parsedOutput.body;
|
|
891
|
-
return throwDefaultError({
|
|
892
|
-
output,
|
|
893
|
-
parsedBody,
|
|
894
|
-
errorCode,
|
|
895
|
-
});
|
|
896
|
-
}
|
|
897
|
-
};
|
|
898
750
|
export const de_CreateConfigurationCommand = async (output, context) => {
|
|
899
751
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
900
|
-
return
|
|
752
|
+
return de_CommandError(output, context);
|
|
901
753
|
}
|
|
902
754
|
const contents = map({
|
|
903
755
|
$metadata: deserializeMetadata(output),
|
|
@@ -913,46 +765,9 @@ export const de_CreateConfigurationCommand = async (output, context) => {
|
|
|
913
765
|
Object.assign(contents, doc);
|
|
914
766
|
return contents;
|
|
915
767
|
};
|
|
916
|
-
const de_CreateConfigurationCommandError = async (output, context) => {
|
|
917
|
-
const parsedOutput = {
|
|
918
|
-
...output,
|
|
919
|
-
body: await parseErrorBody(output.body, context),
|
|
920
|
-
};
|
|
921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
|
-
switch (errorCode) {
|
|
923
|
-
case "BadRequestException":
|
|
924
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
925
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
926
|
-
case "ConflictException":
|
|
927
|
-
case "com.amazonaws.kafka#ConflictException":
|
|
928
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ForbiddenException":
|
|
930
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
931
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
932
|
-
case "InternalServerErrorException":
|
|
933
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
934
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
935
|
-
case "ServiceUnavailableException":
|
|
936
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
937
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
938
|
-
case "TooManyRequestsException":
|
|
939
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
940
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
941
|
-
case "UnauthorizedException":
|
|
942
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
943
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
944
|
-
default:
|
|
945
|
-
const parsedBody = parsedOutput.body;
|
|
946
|
-
return throwDefaultError({
|
|
947
|
-
output,
|
|
948
|
-
parsedBody,
|
|
949
|
-
errorCode,
|
|
950
|
-
});
|
|
951
|
-
}
|
|
952
|
-
};
|
|
953
768
|
export const de_CreateReplicatorCommand = async (output, context) => {
|
|
954
769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
955
|
-
return
|
|
770
|
+
return de_CommandError(output, context);
|
|
956
771
|
}
|
|
957
772
|
const contents = map({
|
|
958
773
|
$metadata: deserializeMetadata(output),
|
|
@@ -966,49 +781,9 @@ export const de_CreateReplicatorCommand = async (output, context) => {
|
|
|
966
781
|
Object.assign(contents, doc);
|
|
967
782
|
return contents;
|
|
968
783
|
};
|
|
969
|
-
const de_CreateReplicatorCommandError = async (output, context) => {
|
|
970
|
-
const parsedOutput = {
|
|
971
|
-
...output,
|
|
972
|
-
body: await parseErrorBody(output.body, context),
|
|
973
|
-
};
|
|
974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
|
-
switch (errorCode) {
|
|
976
|
-
case "BadRequestException":
|
|
977
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
978
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ConflictException":
|
|
980
|
-
case "com.amazonaws.kafka#ConflictException":
|
|
981
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ForbiddenException":
|
|
983
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
984
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
985
|
-
case "InternalServerErrorException":
|
|
986
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
987
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
988
|
-
case "NotFoundException":
|
|
989
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
990
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
991
|
-
case "ServiceUnavailableException":
|
|
992
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
993
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
994
|
-
case "TooManyRequestsException":
|
|
995
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
996
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
997
|
-
case "UnauthorizedException":
|
|
998
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
999
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1000
|
-
default:
|
|
1001
|
-
const parsedBody = parsedOutput.body;
|
|
1002
|
-
return throwDefaultError({
|
|
1003
|
-
output,
|
|
1004
|
-
parsedBody,
|
|
1005
|
-
errorCode,
|
|
1006
|
-
});
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1009
784
|
export const de_CreateVpcConnectionCommand = async (output, context) => {
|
|
1010
785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
|
-
return
|
|
786
|
+
return de_CommandError(output, context);
|
|
1012
787
|
}
|
|
1013
788
|
const contents = map({
|
|
1014
789
|
$metadata: deserializeMetadata(output),
|
|
@@ -1027,43 +802,9 @@ export const de_CreateVpcConnectionCommand = async (output, context) => {
|
|
|
1027
802
|
Object.assign(contents, doc);
|
|
1028
803
|
return contents;
|
|
1029
804
|
};
|
|
1030
|
-
const de_CreateVpcConnectionCommandError = async (output, context) => {
|
|
1031
|
-
const parsedOutput = {
|
|
1032
|
-
...output,
|
|
1033
|
-
body: await parseErrorBody(output.body, context),
|
|
1034
|
-
};
|
|
1035
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
|
-
switch (errorCode) {
|
|
1037
|
-
case "BadRequestException":
|
|
1038
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1039
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "ForbiddenException":
|
|
1041
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1042
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "InternalServerErrorException":
|
|
1044
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1045
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "ServiceUnavailableException":
|
|
1047
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1048
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "TooManyRequestsException":
|
|
1050
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1051
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "UnauthorizedException":
|
|
1053
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1054
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1055
|
-
default:
|
|
1056
|
-
const parsedBody = parsedOutput.body;
|
|
1057
|
-
return throwDefaultError({
|
|
1058
|
-
output,
|
|
1059
|
-
parsedBody,
|
|
1060
|
-
errorCode,
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
};
|
|
1064
805
|
export const de_DeleteClusterCommand = async (output, context) => {
|
|
1065
806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1066
|
-
return
|
|
807
|
+
return de_CommandError(output, context);
|
|
1067
808
|
}
|
|
1068
809
|
const contents = map({
|
|
1069
810
|
$metadata: deserializeMetadata(output),
|
|
@@ -1076,37 +817,9 @@ export const de_DeleteClusterCommand = async (output, context) => {
|
|
|
1076
817
|
Object.assign(contents, doc);
|
|
1077
818
|
return contents;
|
|
1078
819
|
};
|
|
1079
|
-
const de_DeleteClusterCommandError = async (output, context) => {
|
|
1080
|
-
const parsedOutput = {
|
|
1081
|
-
...output,
|
|
1082
|
-
body: await parseErrorBody(output.body, context),
|
|
1083
|
-
};
|
|
1084
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
|
-
switch (errorCode) {
|
|
1086
|
-
case "BadRequestException":
|
|
1087
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1088
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1089
|
-
case "ForbiddenException":
|
|
1090
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1091
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "InternalServerErrorException":
|
|
1093
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1094
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "NotFoundException":
|
|
1096
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1097
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1098
|
-
default:
|
|
1099
|
-
const parsedBody = parsedOutput.body;
|
|
1100
|
-
return throwDefaultError({
|
|
1101
|
-
output,
|
|
1102
|
-
parsedBody,
|
|
1103
|
-
errorCode,
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
};
|
|
1107
820
|
export const de_DeleteClusterPolicyCommand = async (output, context) => {
|
|
1108
821
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1109
|
-
return
|
|
822
|
+
return de_CommandError(output, context);
|
|
1110
823
|
}
|
|
1111
824
|
const contents = map({
|
|
1112
825
|
$metadata: deserializeMetadata(output),
|
|
@@ -1114,37 +827,9 @@ export const de_DeleteClusterPolicyCommand = async (output, context) => {
|
|
|
1114
827
|
await collectBody(output.body, context);
|
|
1115
828
|
return contents;
|
|
1116
829
|
};
|
|
1117
|
-
const de_DeleteClusterPolicyCommandError = async (output, context) => {
|
|
1118
|
-
const parsedOutput = {
|
|
1119
|
-
...output,
|
|
1120
|
-
body: await parseErrorBody(output.body, context),
|
|
1121
|
-
};
|
|
1122
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
|
-
switch (errorCode) {
|
|
1124
|
-
case "BadRequestException":
|
|
1125
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1126
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "ForbiddenException":
|
|
1128
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1129
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "InternalServerErrorException":
|
|
1131
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1132
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "NotFoundException":
|
|
1134
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1135
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode,
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
};
|
|
1145
830
|
export const de_DeleteConfigurationCommand = async (output, context) => {
|
|
1146
831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
832
|
+
return de_CommandError(output, context);
|
|
1148
833
|
}
|
|
1149
834
|
const contents = map({
|
|
1150
835
|
$metadata: deserializeMetadata(output),
|
|
@@ -1157,37 +842,9 @@ export const de_DeleteConfigurationCommand = async (output, context) => {
|
|
|
1157
842
|
Object.assign(contents, doc);
|
|
1158
843
|
return contents;
|
|
1159
844
|
};
|
|
1160
|
-
const de_DeleteConfigurationCommandError = async (output, context) => {
|
|
1161
|
-
const parsedOutput = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseErrorBody(output.body, context),
|
|
1164
|
-
};
|
|
1165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
switch (errorCode) {
|
|
1167
|
-
case "BadRequestException":
|
|
1168
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1169
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ForbiddenException":
|
|
1171
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1172
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "InternalServerErrorException":
|
|
1174
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1175
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "NotFoundException":
|
|
1177
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1178
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1179
|
-
default:
|
|
1180
|
-
const parsedBody = parsedOutput.body;
|
|
1181
|
-
return throwDefaultError({
|
|
1182
|
-
output,
|
|
1183
|
-
parsedBody,
|
|
1184
|
-
errorCode,
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
845
|
export const de_DeleteReplicatorCommand = async (output, context) => {
|
|
1189
846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1190
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
1191
848
|
}
|
|
1192
849
|
const contents = map({
|
|
1193
850
|
$metadata: deserializeMetadata(output),
|
|
@@ -1200,46 +857,9 @@ export const de_DeleteReplicatorCommand = async (output, context) => {
|
|
|
1200
857
|
Object.assign(contents, doc);
|
|
1201
858
|
return contents;
|
|
1202
859
|
};
|
|
1203
|
-
const de_DeleteReplicatorCommandError = async (output, context) => {
|
|
1204
|
-
const parsedOutput = {
|
|
1205
|
-
...output,
|
|
1206
|
-
body: await parseErrorBody(output.body, context),
|
|
1207
|
-
};
|
|
1208
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
|
-
switch (errorCode) {
|
|
1210
|
-
case "BadRequestException":
|
|
1211
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1212
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "ForbiddenException":
|
|
1214
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1215
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "InternalServerErrorException":
|
|
1217
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1218
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "NotFoundException":
|
|
1220
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1221
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "ServiceUnavailableException":
|
|
1223
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1224
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "TooManyRequestsException":
|
|
1226
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1227
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "UnauthorizedException":
|
|
1229
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1230
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1231
|
-
default:
|
|
1232
|
-
const parsedBody = parsedOutput.body;
|
|
1233
|
-
return throwDefaultError({
|
|
1234
|
-
output,
|
|
1235
|
-
parsedBody,
|
|
1236
|
-
errorCode,
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
};
|
|
1240
860
|
export const de_DeleteVpcConnectionCommand = async (output, context) => {
|
|
1241
861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1242
|
-
return
|
|
862
|
+
return de_CommandError(output, context);
|
|
1243
863
|
}
|
|
1244
864
|
const contents = map({
|
|
1245
865
|
$metadata: deserializeMetadata(output),
|
|
@@ -1252,37 +872,9 @@ export const de_DeleteVpcConnectionCommand = async (output, context) => {
|
|
|
1252
872
|
Object.assign(contents, doc);
|
|
1253
873
|
return contents;
|
|
1254
874
|
};
|
|
1255
|
-
const de_DeleteVpcConnectionCommandError = async (output, context) => {
|
|
1256
|
-
const parsedOutput = {
|
|
1257
|
-
...output,
|
|
1258
|
-
body: await parseErrorBody(output.body, context),
|
|
1259
|
-
};
|
|
1260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
-
switch (errorCode) {
|
|
1262
|
-
case "BadRequestException":
|
|
1263
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1264
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "ForbiddenException":
|
|
1266
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1267
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "InternalServerErrorException":
|
|
1269
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1270
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "NotFoundException":
|
|
1272
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1273
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1274
|
-
default:
|
|
1275
|
-
const parsedBody = parsedOutput.body;
|
|
1276
|
-
return throwDefaultError({
|
|
1277
|
-
output,
|
|
1278
|
-
parsedBody,
|
|
1279
|
-
errorCode,
|
|
1280
|
-
});
|
|
1281
|
-
}
|
|
1282
|
-
};
|
|
1283
875
|
export const de_DescribeClusterCommand = async (output, context) => {
|
|
1284
876
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1285
|
-
return
|
|
877
|
+
return de_CommandError(output, context);
|
|
1286
878
|
}
|
|
1287
879
|
const contents = map({
|
|
1288
880
|
$metadata: deserializeMetadata(output),
|
|
@@ -1294,40 +886,9 @@ export const de_DescribeClusterCommand = async (output, context) => {
|
|
|
1294
886
|
Object.assign(contents, doc);
|
|
1295
887
|
return contents;
|
|
1296
888
|
};
|
|
1297
|
-
const de_DescribeClusterCommandError = async (output, context) => {
|
|
1298
|
-
const parsedOutput = {
|
|
1299
|
-
...output,
|
|
1300
|
-
body: await parseErrorBody(output.body, context),
|
|
1301
|
-
};
|
|
1302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1303
|
-
switch (errorCode) {
|
|
1304
|
-
case "BadRequestException":
|
|
1305
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1306
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "ForbiddenException":
|
|
1308
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1309
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "InternalServerErrorException":
|
|
1311
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1312
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "NotFoundException":
|
|
1314
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1315
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "UnauthorizedException":
|
|
1317
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1318
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1319
|
-
default:
|
|
1320
|
-
const parsedBody = parsedOutput.body;
|
|
1321
|
-
return throwDefaultError({
|
|
1322
|
-
output,
|
|
1323
|
-
parsedBody,
|
|
1324
|
-
errorCode,
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
};
|
|
1328
889
|
export const de_DescribeClusterOperationCommand = async (output, context) => {
|
|
1329
890
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1330
|
-
return
|
|
891
|
+
return de_CommandError(output, context);
|
|
1331
892
|
}
|
|
1332
893
|
const contents = map({
|
|
1333
894
|
$metadata: deserializeMetadata(output),
|
|
@@ -1339,40 +900,9 @@ export const de_DescribeClusterOperationCommand = async (output, context) => {
|
|
|
1339
900
|
Object.assign(contents, doc);
|
|
1340
901
|
return contents;
|
|
1341
902
|
};
|
|
1342
|
-
const de_DescribeClusterOperationCommandError = async (output, context) => {
|
|
1343
|
-
const parsedOutput = {
|
|
1344
|
-
...output,
|
|
1345
|
-
body: await parseErrorBody(output.body, context),
|
|
1346
|
-
};
|
|
1347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1348
|
-
switch (errorCode) {
|
|
1349
|
-
case "BadRequestException":
|
|
1350
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1351
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "ForbiddenException":
|
|
1353
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1354
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "InternalServerErrorException":
|
|
1356
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1357
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "NotFoundException":
|
|
1359
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1360
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1361
|
-
case "UnauthorizedException":
|
|
1362
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1363
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1364
|
-
default:
|
|
1365
|
-
const parsedBody = parsedOutput.body;
|
|
1366
|
-
return throwDefaultError({
|
|
1367
|
-
output,
|
|
1368
|
-
parsedBody,
|
|
1369
|
-
errorCode,
|
|
1370
|
-
});
|
|
1371
|
-
}
|
|
1372
|
-
};
|
|
1373
903
|
export const de_DescribeClusterOperationV2Command = async (output, context) => {
|
|
1374
904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1375
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
1376
906
|
}
|
|
1377
907
|
const contents = map({
|
|
1378
908
|
$metadata: deserializeMetadata(output),
|
|
@@ -1384,46 +914,9 @@ export const de_DescribeClusterOperationV2Command = async (output, context) => {
|
|
|
1384
914
|
Object.assign(contents, doc);
|
|
1385
915
|
return contents;
|
|
1386
916
|
};
|
|
1387
|
-
const de_DescribeClusterOperationV2CommandError = async (output, context) => {
|
|
1388
|
-
const parsedOutput = {
|
|
1389
|
-
...output,
|
|
1390
|
-
body: await parseErrorBody(output.body, context),
|
|
1391
|
-
};
|
|
1392
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1393
|
-
switch (errorCode) {
|
|
1394
|
-
case "BadRequestException":
|
|
1395
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1396
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1397
|
-
case "ForbiddenException":
|
|
1398
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1399
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "InternalServerErrorException":
|
|
1401
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1402
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "NotFoundException":
|
|
1404
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1405
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "ServiceUnavailableException":
|
|
1407
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1408
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "TooManyRequestsException":
|
|
1410
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1411
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "UnauthorizedException":
|
|
1413
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1414
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1415
|
-
default:
|
|
1416
|
-
const parsedBody = parsedOutput.body;
|
|
1417
|
-
return throwDefaultError({
|
|
1418
|
-
output,
|
|
1419
|
-
parsedBody,
|
|
1420
|
-
errorCode,
|
|
1421
|
-
});
|
|
1422
|
-
}
|
|
1423
|
-
};
|
|
1424
917
|
export const de_DescribeClusterV2Command = async (output, context) => {
|
|
1425
918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1426
|
-
return
|
|
919
|
+
return de_CommandError(output, context);
|
|
1427
920
|
}
|
|
1428
921
|
const contents = map({
|
|
1429
922
|
$metadata: deserializeMetadata(output),
|
|
@@ -1435,40 +928,9 @@ export const de_DescribeClusterV2Command = async (output, context) => {
|
|
|
1435
928
|
Object.assign(contents, doc);
|
|
1436
929
|
return contents;
|
|
1437
930
|
};
|
|
1438
|
-
const de_DescribeClusterV2CommandError = async (output, context) => {
|
|
1439
|
-
const parsedOutput = {
|
|
1440
|
-
...output,
|
|
1441
|
-
body: await parseErrorBody(output.body, context),
|
|
1442
|
-
};
|
|
1443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1444
|
-
switch (errorCode) {
|
|
1445
|
-
case "BadRequestException":
|
|
1446
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1447
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "ForbiddenException":
|
|
1449
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1450
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "InternalServerErrorException":
|
|
1452
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1453
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "NotFoundException":
|
|
1455
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1456
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "UnauthorizedException":
|
|
1458
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1459
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1460
|
-
default:
|
|
1461
|
-
const parsedBody = parsedOutput.body;
|
|
1462
|
-
return throwDefaultError({
|
|
1463
|
-
output,
|
|
1464
|
-
parsedBody,
|
|
1465
|
-
errorCode,
|
|
1466
|
-
});
|
|
1467
|
-
}
|
|
1468
|
-
};
|
|
1469
931
|
export const de_DescribeConfigurationCommand = async (output, context) => {
|
|
1470
932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1471
|
-
return
|
|
933
|
+
return de_CommandError(output, context);
|
|
1472
934
|
}
|
|
1473
935
|
const contents = map({
|
|
1474
936
|
$metadata: deserializeMetadata(output),
|
|
@@ -1486,43 +948,9 @@ export const de_DescribeConfigurationCommand = async (output, context) => {
|
|
|
1486
948
|
Object.assign(contents, doc);
|
|
1487
949
|
return contents;
|
|
1488
950
|
};
|
|
1489
|
-
const de_DescribeConfigurationCommandError = async (output, context) => {
|
|
1490
|
-
const parsedOutput = {
|
|
1491
|
-
...output,
|
|
1492
|
-
body: await parseErrorBody(output.body, context),
|
|
1493
|
-
};
|
|
1494
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
|
-
switch (errorCode) {
|
|
1496
|
-
case "BadRequestException":
|
|
1497
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1498
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ForbiddenException":
|
|
1500
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1501
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "InternalServerErrorException":
|
|
1503
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1504
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "NotFoundException":
|
|
1506
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1507
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "ServiceUnavailableException":
|
|
1509
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1510
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "UnauthorizedException":
|
|
1512
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1513
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1514
|
-
default:
|
|
1515
|
-
const parsedBody = parsedOutput.body;
|
|
1516
|
-
return throwDefaultError({
|
|
1517
|
-
output,
|
|
1518
|
-
parsedBody,
|
|
1519
|
-
errorCode,
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
};
|
|
1523
951
|
export const de_DescribeConfigurationRevisionCommand = async (output, context) => {
|
|
1524
952
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1525
|
-
return
|
|
953
|
+
return de_CommandError(output, context);
|
|
1526
954
|
}
|
|
1527
955
|
const contents = map({
|
|
1528
956
|
$metadata: deserializeMetadata(output),
|
|
@@ -1538,43 +966,9 @@ export const de_DescribeConfigurationRevisionCommand = async (output, context) =
|
|
|
1538
966
|
Object.assign(contents, doc);
|
|
1539
967
|
return contents;
|
|
1540
968
|
};
|
|
1541
|
-
const de_DescribeConfigurationRevisionCommandError = async (output, context) => {
|
|
1542
|
-
const parsedOutput = {
|
|
1543
|
-
...output,
|
|
1544
|
-
body: await parseErrorBody(output.body, context),
|
|
1545
|
-
};
|
|
1546
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
|
-
switch (errorCode) {
|
|
1548
|
-
case "BadRequestException":
|
|
1549
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1550
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1551
|
-
case "ForbiddenException":
|
|
1552
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1553
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "InternalServerErrorException":
|
|
1555
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1556
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "NotFoundException":
|
|
1558
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1559
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ServiceUnavailableException":
|
|
1561
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1562
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "UnauthorizedException":
|
|
1564
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1565
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1566
|
-
default:
|
|
1567
|
-
const parsedBody = parsedOutput.body;
|
|
1568
|
-
return throwDefaultError({
|
|
1569
|
-
output,
|
|
1570
|
-
parsedBody,
|
|
1571
|
-
errorCode,
|
|
1572
|
-
});
|
|
1573
|
-
}
|
|
1574
|
-
};
|
|
1575
969
|
export const de_DescribeReplicatorCommand = async (output, context) => {
|
|
1576
970
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1577
|
-
return
|
|
971
|
+
return de_CommandError(output, context);
|
|
1578
972
|
}
|
|
1579
973
|
const contents = map({
|
|
1580
974
|
$metadata: deserializeMetadata(output),
|
|
@@ -1598,46 +992,9 @@ export const de_DescribeReplicatorCommand = async (output, context) => {
|
|
|
1598
992
|
Object.assign(contents, doc);
|
|
1599
993
|
return contents;
|
|
1600
994
|
};
|
|
1601
|
-
const de_DescribeReplicatorCommandError = async (output, context) => {
|
|
1602
|
-
const parsedOutput = {
|
|
1603
|
-
...output,
|
|
1604
|
-
body: await parseErrorBody(output.body, context),
|
|
1605
|
-
};
|
|
1606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1607
|
-
switch (errorCode) {
|
|
1608
|
-
case "BadRequestException":
|
|
1609
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1610
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "ForbiddenException":
|
|
1612
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1613
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "InternalServerErrorException":
|
|
1615
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1616
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "NotFoundException":
|
|
1618
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1619
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "ServiceUnavailableException":
|
|
1621
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1622
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "TooManyRequestsException":
|
|
1624
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1625
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1626
|
-
case "UnauthorizedException":
|
|
1627
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1628
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1629
|
-
default:
|
|
1630
|
-
const parsedBody = parsedOutput.body;
|
|
1631
|
-
return throwDefaultError({
|
|
1632
|
-
output,
|
|
1633
|
-
parsedBody,
|
|
1634
|
-
errorCode,
|
|
1635
|
-
});
|
|
1636
|
-
}
|
|
1637
|
-
};
|
|
1638
995
|
export const de_DescribeVpcConnectionCommand = async (output, context) => {
|
|
1639
996
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1640
|
-
return
|
|
997
|
+
return de_CommandError(output, context);
|
|
1641
998
|
}
|
|
1642
999
|
const contents = map({
|
|
1643
1000
|
$metadata: deserializeMetadata(output),
|
|
@@ -1657,43 +1014,9 @@ export const de_DescribeVpcConnectionCommand = async (output, context) => {
|
|
|
1657
1014
|
Object.assign(contents, doc);
|
|
1658
1015
|
return contents;
|
|
1659
1016
|
};
|
|
1660
|
-
const de_DescribeVpcConnectionCommandError = 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 "BadRequestException":
|
|
1668
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1669
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ForbiddenException":
|
|
1671
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1672
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "InternalServerErrorException":
|
|
1674
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1675
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "NotFoundException":
|
|
1677
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1678
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "ServiceUnavailableException":
|
|
1680
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1681
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "UnauthorizedException":
|
|
1683
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1684
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1685
|
-
default:
|
|
1686
|
-
const parsedBody = parsedOutput.body;
|
|
1687
|
-
return throwDefaultError({
|
|
1688
|
-
output,
|
|
1689
|
-
parsedBody,
|
|
1690
|
-
errorCode,
|
|
1691
|
-
});
|
|
1692
|
-
}
|
|
1693
|
-
};
|
|
1694
1017
|
export const de_GetBootstrapBrokersCommand = async (output, context) => {
|
|
1695
1018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1696
|
-
return
|
|
1019
|
+
return de_CommandError(output, context);
|
|
1697
1020
|
}
|
|
1698
1021
|
const contents = map({
|
|
1699
1022
|
$metadata: deserializeMetadata(output),
|
|
@@ -1714,40 +1037,9 @@ export const de_GetBootstrapBrokersCommand = async (output, context) => {
|
|
|
1714
1037
|
Object.assign(contents, doc);
|
|
1715
1038
|
return contents;
|
|
1716
1039
|
};
|
|
1717
|
-
const de_GetBootstrapBrokersCommandError = async (output, context) => {
|
|
1718
|
-
const parsedOutput = {
|
|
1719
|
-
...output,
|
|
1720
|
-
body: await parseErrorBody(output.body, context),
|
|
1721
|
-
};
|
|
1722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
-
switch (errorCode) {
|
|
1724
|
-
case "BadRequestException":
|
|
1725
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1726
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "ConflictException":
|
|
1728
|
-
case "com.amazonaws.kafka#ConflictException":
|
|
1729
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ForbiddenException":
|
|
1731
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1732
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "InternalServerErrorException":
|
|
1734
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1735
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "UnauthorizedException":
|
|
1737
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1738
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1739
|
-
default:
|
|
1740
|
-
const parsedBody = parsedOutput.body;
|
|
1741
|
-
return throwDefaultError({
|
|
1742
|
-
output,
|
|
1743
|
-
parsedBody,
|
|
1744
|
-
errorCode,
|
|
1745
|
-
});
|
|
1746
|
-
}
|
|
1747
|
-
};
|
|
1748
1040
|
export const de_GetClusterPolicyCommand = async (output, context) => {
|
|
1749
1041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1750
|
-
return
|
|
1042
|
+
return de_CommandError(output, context);
|
|
1751
1043
|
}
|
|
1752
1044
|
const contents = map({
|
|
1753
1045
|
$metadata: deserializeMetadata(output),
|
|
@@ -1760,37 +1052,9 @@ export const de_GetClusterPolicyCommand = async (output, context) => {
|
|
|
1760
1052
|
Object.assign(contents, doc);
|
|
1761
1053
|
return contents;
|
|
1762
1054
|
};
|
|
1763
|
-
const de_GetClusterPolicyCommandError = async (output, context) => {
|
|
1764
|
-
const parsedOutput = {
|
|
1765
|
-
...output,
|
|
1766
|
-
body: await parseErrorBody(output.body, context),
|
|
1767
|
-
};
|
|
1768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
|
-
switch (errorCode) {
|
|
1770
|
-
case "BadRequestException":
|
|
1771
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1772
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "ForbiddenException":
|
|
1774
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1775
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "InternalServerErrorException":
|
|
1777
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1778
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "NotFoundException":
|
|
1780
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1781
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1782
|
-
default:
|
|
1783
|
-
const parsedBody = parsedOutput.body;
|
|
1784
|
-
return throwDefaultError({
|
|
1785
|
-
output,
|
|
1786
|
-
parsedBody,
|
|
1787
|
-
errorCode,
|
|
1788
|
-
});
|
|
1789
|
-
}
|
|
1790
|
-
};
|
|
1791
1055
|
export const de_GetCompatibleKafkaVersionsCommand = async (output, context) => {
|
|
1792
1056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1793
|
-
return
|
|
1057
|
+
return de_CommandError(output, context);
|
|
1794
1058
|
}
|
|
1795
1059
|
const contents = map({
|
|
1796
1060
|
$metadata: deserializeMetadata(output),
|
|
@@ -1802,46 +1066,9 @@ export const de_GetCompatibleKafkaVersionsCommand = async (output, context) => {
|
|
|
1802
1066
|
Object.assign(contents, doc);
|
|
1803
1067
|
return contents;
|
|
1804
1068
|
};
|
|
1805
|
-
const de_GetCompatibleKafkaVersionsCommandError = 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 "BadRequestException":
|
|
1813
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1814
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1815
|
-
case "ForbiddenException":
|
|
1816
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1817
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1818
|
-
case "InternalServerErrorException":
|
|
1819
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1820
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1821
|
-
case "NotFoundException":
|
|
1822
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1823
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "ServiceUnavailableException":
|
|
1825
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1826
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "TooManyRequestsException":
|
|
1828
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1829
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1830
|
-
case "UnauthorizedException":
|
|
1831
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1832
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1833
|
-
default:
|
|
1834
|
-
const parsedBody = parsedOutput.body;
|
|
1835
|
-
return throwDefaultError({
|
|
1836
|
-
output,
|
|
1837
|
-
parsedBody,
|
|
1838
|
-
errorCode,
|
|
1839
|
-
});
|
|
1840
|
-
}
|
|
1841
|
-
};
|
|
1842
1069
|
export const de_ListClientVpcConnectionsCommand = async (output, context) => {
|
|
1843
1070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1844
|
-
return
|
|
1071
|
+
return de_CommandError(output, context);
|
|
1845
1072
|
}
|
|
1846
1073
|
const contents = map({
|
|
1847
1074
|
$metadata: deserializeMetadata(output),
|
|
@@ -1854,40 +1081,9 @@ export const de_ListClientVpcConnectionsCommand = async (output, context) => {
|
|
|
1854
1081
|
Object.assign(contents, doc);
|
|
1855
1082
|
return contents;
|
|
1856
1083
|
};
|
|
1857
|
-
const de_ListClientVpcConnectionsCommandError = async (output, context) => {
|
|
1858
|
-
const parsedOutput = {
|
|
1859
|
-
...output,
|
|
1860
|
-
body: await parseErrorBody(output.body, context),
|
|
1861
|
-
};
|
|
1862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1863
|
-
switch (errorCode) {
|
|
1864
|
-
case "BadRequestException":
|
|
1865
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1866
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1867
|
-
case "ForbiddenException":
|
|
1868
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1869
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1870
|
-
case "InternalServerErrorException":
|
|
1871
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1872
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "ServiceUnavailableException":
|
|
1874
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1875
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "UnauthorizedException":
|
|
1877
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1878
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1879
|
-
default:
|
|
1880
|
-
const parsedBody = parsedOutput.body;
|
|
1881
|
-
return throwDefaultError({
|
|
1882
|
-
output,
|
|
1883
|
-
parsedBody,
|
|
1884
|
-
errorCode,
|
|
1885
|
-
});
|
|
1886
|
-
}
|
|
1887
|
-
};
|
|
1888
1084
|
export const de_ListClusterOperationsCommand = async (output, context) => {
|
|
1889
1085
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1890
|
-
return
|
|
1086
|
+
return de_CommandError(output, context);
|
|
1891
1087
|
}
|
|
1892
1088
|
const contents = map({
|
|
1893
1089
|
$metadata: deserializeMetadata(output),
|
|
@@ -1900,37 +1096,9 @@ export const de_ListClusterOperationsCommand = async (output, context) => {
|
|
|
1900
1096
|
Object.assign(contents, doc);
|
|
1901
1097
|
return contents;
|
|
1902
1098
|
};
|
|
1903
|
-
const de_ListClusterOperationsCommandError = async (output, context) => {
|
|
1904
|
-
const parsedOutput = {
|
|
1905
|
-
...output,
|
|
1906
|
-
body: await parseErrorBody(output.body, context),
|
|
1907
|
-
};
|
|
1908
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1909
|
-
switch (errorCode) {
|
|
1910
|
-
case "BadRequestException":
|
|
1911
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1912
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1913
|
-
case "ForbiddenException":
|
|
1914
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1915
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "InternalServerErrorException":
|
|
1917
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1918
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "UnauthorizedException":
|
|
1920
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1921
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1922
|
-
default:
|
|
1923
|
-
const parsedBody = parsedOutput.body;
|
|
1924
|
-
return throwDefaultError({
|
|
1925
|
-
output,
|
|
1926
|
-
parsedBody,
|
|
1927
|
-
errorCode,
|
|
1928
|
-
});
|
|
1929
|
-
}
|
|
1930
|
-
};
|
|
1931
1099
|
export const de_ListClusterOperationsV2Command = async (output, context) => {
|
|
1932
1100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1933
|
-
return
|
|
1101
|
+
return de_CommandError(output, context);
|
|
1934
1102
|
}
|
|
1935
1103
|
const contents = map({
|
|
1936
1104
|
$metadata: deserializeMetadata(output),
|
|
@@ -1943,46 +1111,9 @@ export const de_ListClusterOperationsV2Command = async (output, context) => {
|
|
|
1943
1111
|
Object.assign(contents, doc);
|
|
1944
1112
|
return contents;
|
|
1945
1113
|
};
|
|
1946
|
-
const de_ListClusterOperationsV2CommandError = async (output, context) => {
|
|
1947
|
-
const parsedOutput = {
|
|
1948
|
-
...output,
|
|
1949
|
-
body: await parseErrorBody(output.body, context),
|
|
1950
|
-
};
|
|
1951
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1952
|
-
switch (errorCode) {
|
|
1953
|
-
case "BadRequestException":
|
|
1954
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1955
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1956
|
-
case "ForbiddenException":
|
|
1957
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1958
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1959
|
-
case "InternalServerErrorException":
|
|
1960
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1961
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "NotFoundException":
|
|
1963
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1964
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1965
|
-
case "ServiceUnavailableException":
|
|
1966
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1967
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1968
|
-
case "TooManyRequestsException":
|
|
1969
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1970
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1971
|
-
case "UnauthorizedException":
|
|
1972
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1973
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1974
|
-
default:
|
|
1975
|
-
const parsedBody = parsedOutput.body;
|
|
1976
|
-
return throwDefaultError({
|
|
1977
|
-
output,
|
|
1978
|
-
parsedBody,
|
|
1979
|
-
errorCode,
|
|
1980
|
-
});
|
|
1981
|
-
}
|
|
1982
|
-
};
|
|
1983
1114
|
export const de_ListClustersCommand = async (output, context) => {
|
|
1984
1115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1985
|
-
return
|
|
1116
|
+
return de_CommandError(output, context);
|
|
1986
1117
|
}
|
|
1987
1118
|
const contents = map({
|
|
1988
1119
|
$metadata: deserializeMetadata(output),
|
|
@@ -1995,37 +1126,9 @@ export const de_ListClustersCommand = async (output, context) => {
|
|
|
1995
1126
|
Object.assign(contents, doc);
|
|
1996
1127
|
return contents;
|
|
1997
1128
|
};
|
|
1998
|
-
const de_ListClustersCommandError = async (output, context) => {
|
|
1999
|
-
const parsedOutput = {
|
|
2000
|
-
...output,
|
|
2001
|
-
body: await parseErrorBody(output.body, context),
|
|
2002
|
-
};
|
|
2003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2004
|
-
switch (errorCode) {
|
|
2005
|
-
case "BadRequestException":
|
|
2006
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2007
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "ForbiddenException":
|
|
2009
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2010
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "InternalServerErrorException":
|
|
2012
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2013
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "UnauthorizedException":
|
|
2015
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2016
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2017
|
-
default:
|
|
2018
|
-
const parsedBody = parsedOutput.body;
|
|
2019
|
-
return throwDefaultError({
|
|
2020
|
-
output,
|
|
2021
|
-
parsedBody,
|
|
2022
|
-
errorCode,
|
|
2023
|
-
});
|
|
2024
|
-
}
|
|
2025
|
-
};
|
|
2026
1129
|
export const de_ListClustersV2Command = async (output, context) => {
|
|
2027
1130
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2028
|
-
return
|
|
1131
|
+
return de_CommandError(output, context);
|
|
2029
1132
|
}
|
|
2030
1133
|
const contents = map({
|
|
2031
1134
|
$metadata: deserializeMetadata(output),
|
|
@@ -2038,37 +1141,9 @@ export const de_ListClustersV2Command = async (output, context) => {
|
|
|
2038
1141
|
Object.assign(contents, doc);
|
|
2039
1142
|
return contents;
|
|
2040
1143
|
};
|
|
2041
|
-
const de_ListClustersV2CommandError = async (output, context) => {
|
|
2042
|
-
const parsedOutput = {
|
|
2043
|
-
...output,
|
|
2044
|
-
body: await parseErrorBody(output.body, context),
|
|
2045
|
-
};
|
|
2046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2047
|
-
switch (errorCode) {
|
|
2048
|
-
case "BadRequestException":
|
|
2049
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2050
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "ForbiddenException":
|
|
2052
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2053
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2054
|
-
case "InternalServerErrorException":
|
|
2055
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2056
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "UnauthorizedException":
|
|
2058
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2059
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2060
|
-
default:
|
|
2061
|
-
const parsedBody = parsedOutput.body;
|
|
2062
|
-
return throwDefaultError({
|
|
2063
|
-
output,
|
|
2064
|
-
parsedBody,
|
|
2065
|
-
errorCode,
|
|
2066
|
-
});
|
|
2067
|
-
}
|
|
2068
|
-
};
|
|
2069
1144
|
export const de_ListConfigurationRevisionsCommand = async (output, context) => {
|
|
2070
1145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2071
|
-
return
|
|
1146
|
+
return de_CommandError(output, context);
|
|
2072
1147
|
}
|
|
2073
1148
|
const contents = map({
|
|
2074
1149
|
$metadata: deserializeMetadata(output),
|
|
@@ -2081,43 +1156,9 @@ export const de_ListConfigurationRevisionsCommand = async (output, context) => {
|
|
|
2081
1156
|
Object.assign(contents, doc);
|
|
2082
1157
|
return contents;
|
|
2083
1158
|
};
|
|
2084
|
-
const de_ListConfigurationRevisionsCommandError = async (output, context) => {
|
|
2085
|
-
const parsedOutput = {
|
|
2086
|
-
...output,
|
|
2087
|
-
body: await parseErrorBody(output.body, context),
|
|
2088
|
-
};
|
|
2089
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2090
|
-
switch (errorCode) {
|
|
2091
|
-
case "BadRequestException":
|
|
2092
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2093
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2094
|
-
case "ForbiddenException":
|
|
2095
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2096
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2097
|
-
case "InternalServerErrorException":
|
|
2098
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2099
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2100
|
-
case "NotFoundException":
|
|
2101
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2102
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "ServiceUnavailableException":
|
|
2104
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2105
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "UnauthorizedException":
|
|
2107
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2108
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2109
|
-
default:
|
|
2110
|
-
const parsedBody = parsedOutput.body;
|
|
2111
|
-
return throwDefaultError({
|
|
2112
|
-
output,
|
|
2113
|
-
parsedBody,
|
|
2114
|
-
errorCode,
|
|
2115
|
-
});
|
|
2116
|
-
}
|
|
2117
|
-
};
|
|
2118
1159
|
export const de_ListConfigurationsCommand = async (output, context) => {
|
|
2119
1160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2120
|
-
return
|
|
1161
|
+
return de_CommandError(output, context);
|
|
2121
1162
|
}
|
|
2122
1163
|
const contents = map({
|
|
2123
1164
|
$metadata: deserializeMetadata(output),
|
|
@@ -2130,40 +1171,9 @@ export const de_ListConfigurationsCommand = async (output, context) => {
|
|
|
2130
1171
|
Object.assign(contents, doc);
|
|
2131
1172
|
return contents;
|
|
2132
1173
|
};
|
|
2133
|
-
const de_ListConfigurationsCommandError = async (output, context) => {
|
|
2134
|
-
const parsedOutput = {
|
|
2135
|
-
...output,
|
|
2136
|
-
body: await parseErrorBody(output.body, context),
|
|
2137
|
-
};
|
|
2138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2139
|
-
switch (errorCode) {
|
|
2140
|
-
case "BadRequestException":
|
|
2141
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2142
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ForbiddenException":
|
|
2144
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2145
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "InternalServerErrorException":
|
|
2147
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2148
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "ServiceUnavailableException":
|
|
2150
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2151
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "UnauthorizedException":
|
|
2153
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2154
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2155
|
-
default:
|
|
2156
|
-
const parsedBody = parsedOutput.body;
|
|
2157
|
-
return throwDefaultError({
|
|
2158
|
-
output,
|
|
2159
|
-
parsedBody,
|
|
2160
|
-
errorCode,
|
|
2161
|
-
});
|
|
2162
|
-
}
|
|
2163
|
-
};
|
|
2164
1174
|
export const de_ListKafkaVersionsCommand = async (output, context) => {
|
|
2165
1175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2166
|
-
return
|
|
1176
|
+
return de_CommandError(output, context);
|
|
2167
1177
|
}
|
|
2168
1178
|
const contents = map({
|
|
2169
1179
|
$metadata: deserializeMetadata(output),
|
|
@@ -2176,37 +1186,9 @@ export const de_ListKafkaVersionsCommand = async (output, context) => {
|
|
|
2176
1186
|
Object.assign(contents, doc);
|
|
2177
1187
|
return contents;
|
|
2178
1188
|
};
|
|
2179
|
-
const de_ListKafkaVersionsCommandError = async (output, context) => {
|
|
2180
|
-
const parsedOutput = {
|
|
2181
|
-
...output,
|
|
2182
|
-
body: await parseErrorBody(output.body, context),
|
|
2183
|
-
};
|
|
2184
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2185
|
-
switch (errorCode) {
|
|
2186
|
-
case "BadRequestException":
|
|
2187
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2188
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "ForbiddenException":
|
|
2190
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2191
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "InternalServerErrorException":
|
|
2193
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2194
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "UnauthorizedException":
|
|
2196
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2197
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2198
|
-
default:
|
|
2199
|
-
const parsedBody = parsedOutput.body;
|
|
2200
|
-
return throwDefaultError({
|
|
2201
|
-
output,
|
|
2202
|
-
parsedBody,
|
|
2203
|
-
errorCode,
|
|
2204
|
-
});
|
|
2205
|
-
}
|
|
2206
|
-
};
|
|
2207
1189
|
export const de_ListNodesCommand = async (output, context) => {
|
|
2208
1190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2209
|
-
return
|
|
1191
|
+
return de_CommandError(output, context);
|
|
2210
1192
|
}
|
|
2211
1193
|
const contents = map({
|
|
2212
1194
|
$metadata: deserializeMetadata(output),
|
|
@@ -2219,37 +1201,9 @@ export const de_ListNodesCommand = async (output, context) => {
|
|
|
2219
1201
|
Object.assign(contents, doc);
|
|
2220
1202
|
return contents;
|
|
2221
1203
|
};
|
|
2222
|
-
const de_ListNodesCommandError = async (output, context) => {
|
|
2223
|
-
const parsedOutput = {
|
|
2224
|
-
...output,
|
|
2225
|
-
body: await parseErrorBody(output.body, context),
|
|
2226
|
-
};
|
|
2227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2228
|
-
switch (errorCode) {
|
|
2229
|
-
case "BadRequestException":
|
|
2230
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2231
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "ForbiddenException":
|
|
2233
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2234
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "InternalServerErrorException":
|
|
2236
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2237
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "NotFoundException":
|
|
2239
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2240
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2241
|
-
default:
|
|
2242
|
-
const parsedBody = parsedOutput.body;
|
|
2243
|
-
return throwDefaultError({
|
|
2244
|
-
output,
|
|
2245
|
-
parsedBody,
|
|
2246
|
-
errorCode,
|
|
2247
|
-
});
|
|
2248
|
-
}
|
|
2249
|
-
};
|
|
2250
1204
|
export const de_ListReplicatorsCommand = async (output, context) => {
|
|
2251
1205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2252
|
-
return
|
|
1206
|
+
return de_CommandError(output, context);
|
|
2253
1207
|
}
|
|
2254
1208
|
const contents = map({
|
|
2255
1209
|
$metadata: deserializeMetadata(output),
|
|
@@ -2262,46 +1216,9 @@ export const de_ListReplicatorsCommand = async (output, context) => {
|
|
|
2262
1216
|
Object.assign(contents, doc);
|
|
2263
1217
|
return contents;
|
|
2264
1218
|
};
|
|
2265
|
-
const de_ListReplicatorsCommandError = async (output, context) => {
|
|
2266
|
-
const parsedOutput = {
|
|
2267
|
-
...output,
|
|
2268
|
-
body: await parseErrorBody(output.body, context),
|
|
2269
|
-
};
|
|
2270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2271
|
-
switch (errorCode) {
|
|
2272
|
-
case "BadRequestException":
|
|
2273
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2274
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2275
|
-
case "ForbiddenException":
|
|
2276
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2277
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2278
|
-
case "InternalServerErrorException":
|
|
2279
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2280
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2281
|
-
case "NotFoundException":
|
|
2282
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2283
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "ServiceUnavailableException":
|
|
2285
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2286
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "TooManyRequestsException":
|
|
2288
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2289
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "UnauthorizedException":
|
|
2291
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2292
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2293
|
-
default:
|
|
2294
|
-
const parsedBody = parsedOutput.body;
|
|
2295
|
-
return throwDefaultError({
|
|
2296
|
-
output,
|
|
2297
|
-
parsedBody,
|
|
2298
|
-
errorCode,
|
|
2299
|
-
});
|
|
2300
|
-
}
|
|
2301
|
-
};
|
|
2302
1219
|
export const de_ListScramSecretsCommand = async (output, context) => {
|
|
2303
1220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2304
|
-
return
|
|
1221
|
+
return de_CommandError(output, context);
|
|
2305
1222
|
}
|
|
2306
1223
|
const contents = map({
|
|
2307
1224
|
$metadata: deserializeMetadata(output),
|
|
@@ -2314,46 +1231,9 @@ export const de_ListScramSecretsCommand = async (output, context) => {
|
|
|
2314
1231
|
Object.assign(contents, doc);
|
|
2315
1232
|
return contents;
|
|
2316
1233
|
};
|
|
2317
|
-
const de_ListScramSecretsCommandError = async (output, context) => {
|
|
2318
|
-
const parsedOutput = {
|
|
2319
|
-
...output,
|
|
2320
|
-
body: await parseErrorBody(output.body, context),
|
|
2321
|
-
};
|
|
2322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
|
-
switch (errorCode) {
|
|
2324
|
-
case "BadRequestException":
|
|
2325
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2326
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "ForbiddenException":
|
|
2328
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2329
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "InternalServerErrorException":
|
|
2331
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2332
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2333
|
-
case "NotFoundException":
|
|
2334
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2335
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "ServiceUnavailableException":
|
|
2337
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2338
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "TooManyRequestsException":
|
|
2340
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2341
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "UnauthorizedException":
|
|
2343
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2344
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2345
|
-
default:
|
|
2346
|
-
const parsedBody = parsedOutput.body;
|
|
2347
|
-
return throwDefaultError({
|
|
2348
|
-
output,
|
|
2349
|
-
parsedBody,
|
|
2350
|
-
errorCode,
|
|
2351
|
-
});
|
|
2352
|
-
}
|
|
2353
|
-
};
|
|
2354
1234
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2355
1235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2356
|
-
return
|
|
1236
|
+
return de_CommandError(output, context);
|
|
2357
1237
|
}
|
|
2358
1238
|
const contents = map({
|
|
2359
1239
|
$metadata: deserializeMetadata(output),
|
|
@@ -2365,34 +1245,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2365
1245
|
Object.assign(contents, doc);
|
|
2366
1246
|
return contents;
|
|
2367
1247
|
};
|
|
2368
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2369
|
-
const parsedOutput = {
|
|
2370
|
-
...output,
|
|
2371
|
-
body: await parseErrorBody(output.body, context),
|
|
2372
|
-
};
|
|
2373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2374
|
-
switch (errorCode) {
|
|
2375
|
-
case "BadRequestException":
|
|
2376
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2377
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2378
|
-
case "InternalServerErrorException":
|
|
2379
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2380
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2381
|
-
case "NotFoundException":
|
|
2382
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2383
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2384
|
-
default:
|
|
2385
|
-
const parsedBody = parsedOutput.body;
|
|
2386
|
-
return throwDefaultError({
|
|
2387
|
-
output,
|
|
2388
|
-
parsedBody,
|
|
2389
|
-
errorCode,
|
|
2390
|
-
});
|
|
2391
|
-
}
|
|
2392
|
-
};
|
|
2393
1248
|
export const de_ListVpcConnectionsCommand = async (output, context) => {
|
|
2394
1249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2395
|
-
return
|
|
1250
|
+
return de_CommandError(output, context);
|
|
2396
1251
|
}
|
|
2397
1252
|
const contents = map({
|
|
2398
1253
|
$metadata: deserializeMetadata(output),
|
|
@@ -2405,40 +1260,9 @@ export const de_ListVpcConnectionsCommand = async (output, context) => {
|
|
|
2405
1260
|
Object.assign(contents, doc);
|
|
2406
1261
|
return contents;
|
|
2407
1262
|
};
|
|
2408
|
-
const de_ListVpcConnectionsCommandError = async (output, context) => {
|
|
2409
|
-
const parsedOutput = {
|
|
2410
|
-
...output,
|
|
2411
|
-
body: await parseErrorBody(output.body, context),
|
|
2412
|
-
};
|
|
2413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2414
|
-
switch (errorCode) {
|
|
2415
|
-
case "BadRequestException":
|
|
2416
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2417
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "ForbiddenException":
|
|
2419
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2420
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "InternalServerErrorException":
|
|
2422
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2423
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "ServiceUnavailableException":
|
|
2425
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2426
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "UnauthorizedException":
|
|
2428
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2429
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2430
|
-
default:
|
|
2431
|
-
const parsedBody = parsedOutput.body;
|
|
2432
|
-
return throwDefaultError({
|
|
2433
|
-
output,
|
|
2434
|
-
parsedBody,
|
|
2435
|
-
errorCode,
|
|
2436
|
-
});
|
|
2437
|
-
}
|
|
2438
|
-
};
|
|
2439
1263
|
export const de_PutClusterPolicyCommand = async (output, context) => {
|
|
2440
1264
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2441
|
-
return
|
|
1265
|
+
return de_CommandError(output, context);
|
|
2442
1266
|
}
|
|
2443
1267
|
const contents = map({
|
|
2444
1268
|
$metadata: deserializeMetadata(output),
|
|
@@ -2450,34 +1274,9 @@ export const de_PutClusterPolicyCommand = async (output, context) => {
|
|
|
2450
1274
|
Object.assign(contents, doc);
|
|
2451
1275
|
return contents;
|
|
2452
1276
|
};
|
|
2453
|
-
const de_PutClusterPolicyCommandError = async (output, context) => {
|
|
2454
|
-
const parsedOutput = {
|
|
2455
|
-
...output,
|
|
2456
|
-
body: await parseErrorBody(output.body, context),
|
|
2457
|
-
};
|
|
2458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2459
|
-
switch (errorCode) {
|
|
2460
|
-
case "BadRequestException":
|
|
2461
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2462
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2463
|
-
case "ForbiddenException":
|
|
2464
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2465
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2466
|
-
case "InternalServerErrorException":
|
|
2467
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2468
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2469
|
-
default:
|
|
2470
|
-
const parsedBody = parsedOutput.body;
|
|
2471
|
-
return throwDefaultError({
|
|
2472
|
-
output,
|
|
2473
|
-
parsedBody,
|
|
2474
|
-
errorCode,
|
|
2475
|
-
});
|
|
2476
|
-
}
|
|
2477
|
-
};
|
|
2478
1277
|
export const de_RebootBrokerCommand = async (output, context) => {
|
|
2479
1278
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2480
|
-
return
|
|
1279
|
+
return de_CommandError(output, context);
|
|
2481
1280
|
}
|
|
2482
1281
|
const contents = map({
|
|
2483
1282
|
$metadata: deserializeMetadata(output),
|
|
@@ -2490,46 +1289,9 @@ export const de_RebootBrokerCommand = async (output, context) => {
|
|
|
2490
1289
|
Object.assign(contents, doc);
|
|
2491
1290
|
return contents;
|
|
2492
1291
|
};
|
|
2493
|
-
const de_RebootBrokerCommandError = async (output, context) => {
|
|
2494
|
-
const parsedOutput = {
|
|
2495
|
-
...output,
|
|
2496
|
-
body: await parseErrorBody(output.body, context),
|
|
2497
|
-
};
|
|
2498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2499
|
-
switch (errorCode) {
|
|
2500
|
-
case "BadRequestException":
|
|
2501
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2502
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "ForbiddenException":
|
|
2504
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2505
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2506
|
-
case "InternalServerErrorException":
|
|
2507
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2508
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2509
|
-
case "NotFoundException":
|
|
2510
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2511
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2512
|
-
case "ServiceUnavailableException":
|
|
2513
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2514
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2515
|
-
case "TooManyRequestsException":
|
|
2516
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2517
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2518
|
-
case "UnauthorizedException":
|
|
2519
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2520
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2521
|
-
default:
|
|
2522
|
-
const parsedBody = parsedOutput.body;
|
|
2523
|
-
return throwDefaultError({
|
|
2524
|
-
output,
|
|
2525
|
-
parsedBody,
|
|
2526
|
-
errorCode,
|
|
2527
|
-
});
|
|
2528
|
-
}
|
|
2529
|
-
};
|
|
2530
1292
|
export const de_RejectClientVpcConnectionCommand = async (output, context) => {
|
|
2531
1293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2532
|
-
return
|
|
1294
|
+
return de_CommandError(output, context);
|
|
2533
1295
|
}
|
|
2534
1296
|
const contents = map({
|
|
2535
1297
|
$metadata: deserializeMetadata(output),
|
|
@@ -2537,40 +1299,9 @@ export const de_RejectClientVpcConnectionCommand = async (output, context) => {
|
|
|
2537
1299
|
await collectBody(output.body, context);
|
|
2538
1300
|
return contents;
|
|
2539
1301
|
};
|
|
2540
|
-
const de_RejectClientVpcConnectionCommandError = async (output, context) => {
|
|
2541
|
-
const parsedOutput = {
|
|
2542
|
-
...output,
|
|
2543
|
-
body: await parseErrorBody(output.body, context),
|
|
2544
|
-
};
|
|
2545
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2546
|
-
switch (errorCode) {
|
|
2547
|
-
case "BadRequestException":
|
|
2548
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2549
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2550
|
-
case "ForbiddenException":
|
|
2551
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2552
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2553
|
-
case "InternalServerErrorException":
|
|
2554
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2555
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2556
|
-
case "ServiceUnavailableException":
|
|
2557
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2558
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2559
|
-
case "UnauthorizedException":
|
|
2560
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2561
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2562
|
-
default:
|
|
2563
|
-
const parsedBody = parsedOutput.body;
|
|
2564
|
-
return throwDefaultError({
|
|
2565
|
-
output,
|
|
2566
|
-
parsedBody,
|
|
2567
|
-
errorCode,
|
|
2568
|
-
});
|
|
2569
|
-
}
|
|
2570
|
-
};
|
|
2571
1302
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2572
1303
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2573
|
-
return
|
|
1304
|
+
return de_CommandError(output, context);
|
|
2574
1305
|
}
|
|
2575
1306
|
const contents = map({
|
|
2576
1307
|
$metadata: deserializeMetadata(output),
|
|
@@ -2578,34 +1309,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2578
1309
|
await collectBody(output.body, context);
|
|
2579
1310
|
return contents;
|
|
2580
1311
|
};
|
|
2581
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2582
|
-
const parsedOutput = {
|
|
2583
|
-
...output,
|
|
2584
|
-
body: await parseErrorBody(output.body, context),
|
|
2585
|
-
};
|
|
2586
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2587
|
-
switch (errorCode) {
|
|
2588
|
-
case "BadRequestException":
|
|
2589
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2590
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2591
|
-
case "InternalServerErrorException":
|
|
2592
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2593
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2594
|
-
case "NotFoundException":
|
|
2595
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2596
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2597
|
-
default:
|
|
2598
|
-
const parsedBody = parsedOutput.body;
|
|
2599
|
-
return throwDefaultError({
|
|
2600
|
-
output,
|
|
2601
|
-
parsedBody,
|
|
2602
|
-
errorCode,
|
|
2603
|
-
});
|
|
2604
|
-
}
|
|
2605
|
-
};
|
|
2606
1312
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2607
1313
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2608
|
-
return
|
|
1314
|
+
return de_CommandError(output, context);
|
|
2609
1315
|
}
|
|
2610
1316
|
const contents = map({
|
|
2611
1317
|
$metadata: deserializeMetadata(output),
|
|
@@ -2613,34 +1319,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2613
1319
|
await collectBody(output.body, context);
|
|
2614
1320
|
return contents;
|
|
2615
1321
|
};
|
|
2616
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2617
|
-
const parsedOutput = {
|
|
2618
|
-
...output,
|
|
2619
|
-
body: await parseErrorBody(output.body, context),
|
|
2620
|
-
};
|
|
2621
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2622
|
-
switch (errorCode) {
|
|
2623
|
-
case "BadRequestException":
|
|
2624
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2625
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2626
|
-
case "InternalServerErrorException":
|
|
2627
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2628
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "NotFoundException":
|
|
2630
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2631
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2632
|
-
default:
|
|
2633
|
-
const parsedBody = parsedOutput.body;
|
|
2634
|
-
return throwDefaultError({
|
|
2635
|
-
output,
|
|
2636
|
-
parsedBody,
|
|
2637
|
-
errorCode,
|
|
2638
|
-
});
|
|
2639
|
-
}
|
|
2640
|
-
};
|
|
2641
1322
|
export const de_UpdateBrokerCountCommand = async (output, context) => {
|
|
2642
1323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2643
|
-
return
|
|
1324
|
+
return de_CommandError(output, context);
|
|
2644
1325
|
}
|
|
2645
1326
|
const contents = map({
|
|
2646
1327
|
$metadata: deserializeMetadata(output),
|
|
@@ -2653,86 +1334,9 @@ export const de_UpdateBrokerCountCommand = async (output, context) => {
|
|
|
2653
1334
|
Object.assign(contents, doc);
|
|
2654
1335
|
return contents;
|
|
2655
1336
|
};
|
|
2656
|
-
const de_UpdateBrokerCountCommandError = async (output, context) => {
|
|
2657
|
-
const parsedOutput = {
|
|
2658
|
-
...output,
|
|
2659
|
-
body: await parseErrorBody(output.body, context),
|
|
2660
|
-
};
|
|
2661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2662
|
-
switch (errorCode) {
|
|
2663
|
-
case "BadRequestException":
|
|
2664
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2665
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "ForbiddenException":
|
|
2667
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2668
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2669
|
-
case "InternalServerErrorException":
|
|
2670
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2671
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "ServiceUnavailableException":
|
|
2673
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2674
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "UnauthorizedException":
|
|
2676
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2677
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2678
|
-
default:
|
|
2679
|
-
const parsedBody = parsedOutput.body;
|
|
2680
|
-
return throwDefaultError({
|
|
2681
|
-
output,
|
|
2682
|
-
parsedBody,
|
|
2683
|
-
errorCode,
|
|
2684
|
-
});
|
|
2685
|
-
}
|
|
2686
|
-
};
|
|
2687
1337
|
export const de_UpdateBrokerStorageCommand = async (output, context) => {
|
|
2688
1338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2689
|
-
return
|
|
2690
|
-
}
|
|
2691
|
-
const contents = map({
|
|
2692
|
-
$metadata: deserializeMetadata(output),
|
|
2693
|
-
});
|
|
2694
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2695
|
-
const doc = take(data, {
|
|
2696
|
-
ClusterArn: [, __expectString, `clusterArn`],
|
|
2697
|
-
ClusterOperationArn: [, __expectString, `clusterOperationArn`],
|
|
2698
|
-
});
|
|
2699
|
-
Object.assign(contents, doc);
|
|
2700
|
-
return contents;
|
|
2701
|
-
};
|
|
2702
|
-
const de_UpdateBrokerStorageCommandError = async (output, context) => {
|
|
2703
|
-
const parsedOutput = {
|
|
2704
|
-
...output,
|
|
2705
|
-
body: await parseErrorBody(output.body, context),
|
|
2706
|
-
};
|
|
2707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
|
-
switch (errorCode) {
|
|
2709
|
-
case "BadRequestException":
|
|
2710
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2711
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "ForbiddenException":
|
|
2713
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2714
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "InternalServerErrorException":
|
|
2716
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2717
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "ServiceUnavailableException":
|
|
2719
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2720
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "UnauthorizedException":
|
|
2722
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2723
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2724
|
-
default:
|
|
2725
|
-
const parsedBody = parsedOutput.body;
|
|
2726
|
-
return throwDefaultError({
|
|
2727
|
-
output,
|
|
2728
|
-
parsedBody,
|
|
2729
|
-
errorCode,
|
|
2730
|
-
});
|
|
2731
|
-
}
|
|
2732
|
-
};
|
|
2733
|
-
export const de_UpdateBrokerTypeCommand = async (output, context) => {
|
|
2734
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2735
|
-
return de_UpdateBrokerTypeCommandError(output, context);
|
|
1339
|
+
return de_CommandError(output, context);
|
|
2736
1340
|
}
|
|
2737
1341
|
const contents = map({
|
|
2738
1342
|
$metadata: deserializeMetadata(output),
|
|
@@ -2740,51 +1344,14 @@ export const de_UpdateBrokerTypeCommand = async (output, context) => {
|
|
|
2740
1344
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2741
1345
|
const doc = take(data, {
|
|
2742
1346
|
ClusterArn: [, __expectString, `clusterArn`],
|
|
2743
|
-
ClusterOperationArn: [, __expectString, `clusterOperationArn`],
|
|
2744
|
-
});
|
|
2745
|
-
Object.assign(contents, doc);
|
|
2746
|
-
return contents;
|
|
2747
|
-
};
|
|
2748
|
-
const de_UpdateBrokerTypeCommandError = async (output, context) => {
|
|
2749
|
-
const parsedOutput = {
|
|
2750
|
-
...output,
|
|
2751
|
-
body: await parseErrorBody(output.body, context),
|
|
2752
|
-
};
|
|
2753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2754
|
-
switch (errorCode) {
|
|
2755
|
-
case "BadRequestException":
|
|
2756
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2757
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "ForbiddenException":
|
|
2759
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2760
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2761
|
-
case "InternalServerErrorException":
|
|
2762
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2763
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2764
|
-
case "NotFoundException":
|
|
2765
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2766
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2767
|
-
case "ServiceUnavailableException":
|
|
2768
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2769
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2770
|
-
case "TooManyRequestsException":
|
|
2771
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2772
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2773
|
-
case "UnauthorizedException":
|
|
2774
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2775
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2776
|
-
default:
|
|
2777
|
-
const parsedBody = parsedOutput.body;
|
|
2778
|
-
return throwDefaultError({
|
|
2779
|
-
output,
|
|
2780
|
-
parsedBody,
|
|
2781
|
-
errorCode,
|
|
2782
|
-
});
|
|
2783
|
-
}
|
|
1347
|
+
ClusterOperationArn: [, __expectString, `clusterOperationArn`],
|
|
1348
|
+
});
|
|
1349
|
+
Object.assign(contents, doc);
|
|
1350
|
+
return contents;
|
|
2784
1351
|
};
|
|
2785
|
-
export const
|
|
1352
|
+
export const de_UpdateBrokerTypeCommand = async (output, context) => {
|
|
2786
1353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2787
|
-
return
|
|
1354
|
+
return de_CommandError(output, context);
|
|
2788
1355
|
}
|
|
2789
1356
|
const contents = map({
|
|
2790
1357
|
$metadata: deserializeMetadata(output),
|
|
@@ -2797,43 +1364,24 @@ export const de_UpdateClusterConfigurationCommand = async (output, context) => {
|
|
|
2797
1364
|
Object.assign(contents, doc);
|
|
2798
1365
|
return contents;
|
|
2799
1366
|
};
|
|
2800
|
-
const
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
body: await parseErrorBody(output.body, context),
|
|
2804
|
-
};
|
|
2805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2806
|
-
switch (errorCode) {
|
|
2807
|
-
case "BadRequestException":
|
|
2808
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2809
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "ForbiddenException":
|
|
2811
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2812
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2813
|
-
case "InternalServerErrorException":
|
|
2814
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2815
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2816
|
-
case "NotFoundException":
|
|
2817
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2818
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2819
|
-
case "ServiceUnavailableException":
|
|
2820
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2821
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2822
|
-
case "UnauthorizedException":
|
|
2823
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2824
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2825
|
-
default:
|
|
2826
|
-
const parsedBody = parsedOutput.body;
|
|
2827
|
-
return throwDefaultError({
|
|
2828
|
-
output,
|
|
2829
|
-
parsedBody,
|
|
2830
|
-
errorCode,
|
|
2831
|
-
});
|
|
1367
|
+
export const de_UpdateClusterConfigurationCommand = async (output, context) => {
|
|
1368
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1369
|
+
return de_CommandError(output, context);
|
|
2832
1370
|
}
|
|
1371
|
+
const contents = map({
|
|
1372
|
+
$metadata: deserializeMetadata(output),
|
|
1373
|
+
});
|
|
1374
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1375
|
+
const doc = take(data, {
|
|
1376
|
+
ClusterArn: [, __expectString, `clusterArn`],
|
|
1377
|
+
ClusterOperationArn: [, __expectString, `clusterOperationArn`],
|
|
1378
|
+
});
|
|
1379
|
+
Object.assign(contents, doc);
|
|
1380
|
+
return contents;
|
|
2833
1381
|
};
|
|
2834
1382
|
export const de_UpdateClusterKafkaVersionCommand = async (output, context) => {
|
|
2835
1383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2836
|
-
return
|
|
1384
|
+
return de_CommandError(output, context);
|
|
2837
1385
|
}
|
|
2838
1386
|
const contents = map({
|
|
2839
1387
|
$metadata: deserializeMetadata(output),
|
|
@@ -2846,46 +1394,9 @@ export const de_UpdateClusterKafkaVersionCommand = async (output, context) => {
|
|
|
2846
1394
|
Object.assign(contents, doc);
|
|
2847
1395
|
return contents;
|
|
2848
1396
|
};
|
|
2849
|
-
const de_UpdateClusterKafkaVersionCommandError = async (output, context) => {
|
|
2850
|
-
const parsedOutput = {
|
|
2851
|
-
...output,
|
|
2852
|
-
body: await parseErrorBody(output.body, context),
|
|
2853
|
-
};
|
|
2854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2855
|
-
switch (errorCode) {
|
|
2856
|
-
case "BadRequestException":
|
|
2857
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2858
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2859
|
-
case "ForbiddenException":
|
|
2860
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2861
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2862
|
-
case "InternalServerErrorException":
|
|
2863
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2864
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2865
|
-
case "NotFoundException":
|
|
2866
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2867
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2868
|
-
case "ServiceUnavailableException":
|
|
2869
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2870
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2871
|
-
case "TooManyRequestsException":
|
|
2872
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2873
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2874
|
-
case "UnauthorizedException":
|
|
2875
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2876
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2877
|
-
default:
|
|
2878
|
-
const parsedBody = parsedOutput.body;
|
|
2879
|
-
return throwDefaultError({
|
|
2880
|
-
output,
|
|
2881
|
-
parsedBody,
|
|
2882
|
-
errorCode,
|
|
2883
|
-
});
|
|
2884
|
-
}
|
|
2885
|
-
};
|
|
2886
1397
|
export const de_UpdateConfigurationCommand = async (output, context) => {
|
|
2887
1398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2888
|
-
return
|
|
1399
|
+
return de_CommandError(output, context);
|
|
2889
1400
|
}
|
|
2890
1401
|
const contents = map({
|
|
2891
1402
|
$metadata: deserializeMetadata(output),
|
|
@@ -2898,43 +1409,9 @@ export const de_UpdateConfigurationCommand = async (output, context) => {
|
|
|
2898
1409
|
Object.assign(contents, doc);
|
|
2899
1410
|
return contents;
|
|
2900
1411
|
};
|
|
2901
|
-
const de_UpdateConfigurationCommandError = async (output, context) => {
|
|
2902
|
-
const parsedOutput = {
|
|
2903
|
-
...output,
|
|
2904
|
-
body: await parseErrorBody(output.body, context),
|
|
2905
|
-
};
|
|
2906
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2907
|
-
switch (errorCode) {
|
|
2908
|
-
case "BadRequestException":
|
|
2909
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2910
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2911
|
-
case "ForbiddenException":
|
|
2912
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2913
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2914
|
-
case "InternalServerErrorException":
|
|
2915
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2916
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2917
|
-
case "NotFoundException":
|
|
2918
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2919
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2920
|
-
case "ServiceUnavailableException":
|
|
2921
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2922
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2923
|
-
case "UnauthorizedException":
|
|
2924
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2925
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2926
|
-
default:
|
|
2927
|
-
const parsedBody = parsedOutput.body;
|
|
2928
|
-
return throwDefaultError({
|
|
2929
|
-
output,
|
|
2930
|
-
parsedBody,
|
|
2931
|
-
errorCode,
|
|
2932
|
-
});
|
|
2933
|
-
}
|
|
2934
|
-
};
|
|
2935
1412
|
export const de_UpdateConnectivityCommand = async (output, context) => {
|
|
2936
1413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2937
|
-
return
|
|
1414
|
+
return de_CommandError(output, context);
|
|
2938
1415
|
}
|
|
2939
1416
|
const contents = map({
|
|
2940
1417
|
$metadata: deserializeMetadata(output),
|
|
@@ -2947,43 +1424,9 @@ export const de_UpdateConnectivityCommand = async (output, context) => {
|
|
|
2947
1424
|
Object.assign(contents, doc);
|
|
2948
1425
|
return contents;
|
|
2949
1426
|
};
|
|
2950
|
-
const de_UpdateConnectivityCommandError = async (output, context) => {
|
|
2951
|
-
const parsedOutput = {
|
|
2952
|
-
...output,
|
|
2953
|
-
body: await parseErrorBody(output.body, context),
|
|
2954
|
-
};
|
|
2955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2956
|
-
switch (errorCode) {
|
|
2957
|
-
case "BadRequestException":
|
|
2958
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2959
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "ForbiddenException":
|
|
2961
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2962
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2963
|
-
case "InternalServerErrorException":
|
|
2964
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2965
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2966
|
-
case "NotFoundException":
|
|
2967
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2968
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2969
|
-
case "ServiceUnavailableException":
|
|
2970
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2971
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2972
|
-
case "UnauthorizedException":
|
|
2973
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2974
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2975
|
-
default:
|
|
2976
|
-
const parsedBody = parsedOutput.body;
|
|
2977
|
-
return throwDefaultError({
|
|
2978
|
-
output,
|
|
2979
|
-
parsedBody,
|
|
2980
|
-
errorCode,
|
|
2981
|
-
});
|
|
2982
|
-
}
|
|
2983
|
-
};
|
|
2984
1427
|
export const de_UpdateMonitoringCommand = async (output, context) => {
|
|
2985
1428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2986
|
-
return
|
|
1429
|
+
return de_CommandError(output, context);
|
|
2987
1430
|
}
|
|
2988
1431
|
const contents = map({
|
|
2989
1432
|
$metadata: deserializeMetadata(output),
|
|
@@ -2996,40 +1439,9 @@ export const de_UpdateMonitoringCommand = async (output, context) => {
|
|
|
2996
1439
|
Object.assign(contents, doc);
|
|
2997
1440
|
return contents;
|
|
2998
1441
|
};
|
|
2999
|
-
const de_UpdateMonitoringCommandError = async (output, context) => {
|
|
3000
|
-
const parsedOutput = {
|
|
3001
|
-
...output,
|
|
3002
|
-
body: await parseErrorBody(output.body, context),
|
|
3003
|
-
};
|
|
3004
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3005
|
-
switch (errorCode) {
|
|
3006
|
-
case "BadRequestException":
|
|
3007
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3008
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "ForbiddenException":
|
|
3010
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3011
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3012
|
-
case "InternalServerErrorException":
|
|
3013
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3014
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "ServiceUnavailableException":
|
|
3016
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3017
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "UnauthorizedException":
|
|
3019
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3020
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3021
|
-
default:
|
|
3022
|
-
const parsedBody = parsedOutput.body;
|
|
3023
|
-
return throwDefaultError({
|
|
3024
|
-
output,
|
|
3025
|
-
parsedBody,
|
|
3026
|
-
errorCode,
|
|
3027
|
-
});
|
|
3028
|
-
}
|
|
3029
|
-
};
|
|
3030
1442
|
export const de_UpdateReplicationInfoCommand = async (output, context) => {
|
|
3031
1443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3032
|
-
return
|
|
1444
|
+
return de_CommandError(output, context);
|
|
3033
1445
|
}
|
|
3034
1446
|
const contents = map({
|
|
3035
1447
|
$metadata: deserializeMetadata(output),
|
|
@@ -3042,46 +1454,9 @@ export const de_UpdateReplicationInfoCommand = async (output, context) => {
|
|
|
3042
1454
|
Object.assign(contents, doc);
|
|
3043
1455
|
return contents;
|
|
3044
1456
|
};
|
|
3045
|
-
const de_UpdateReplicationInfoCommandError = async (output, context) => {
|
|
3046
|
-
const parsedOutput = {
|
|
3047
|
-
...output,
|
|
3048
|
-
body: await parseErrorBody(output.body, context),
|
|
3049
|
-
};
|
|
3050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3051
|
-
switch (errorCode) {
|
|
3052
|
-
case "BadRequestException":
|
|
3053
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3054
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3055
|
-
case "ForbiddenException":
|
|
3056
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3057
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3058
|
-
case "InternalServerErrorException":
|
|
3059
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3060
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3061
|
-
case "NotFoundException":
|
|
3062
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3063
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3064
|
-
case "ServiceUnavailableException":
|
|
3065
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3066
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3067
|
-
case "TooManyRequestsException":
|
|
3068
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
3069
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3070
|
-
case "UnauthorizedException":
|
|
3071
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3072
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3073
|
-
default:
|
|
3074
|
-
const parsedBody = parsedOutput.body;
|
|
3075
|
-
return throwDefaultError({
|
|
3076
|
-
output,
|
|
3077
|
-
parsedBody,
|
|
3078
|
-
errorCode,
|
|
3079
|
-
});
|
|
3080
|
-
}
|
|
3081
|
-
};
|
|
3082
1457
|
export const de_UpdateSecurityCommand = async (output, context) => {
|
|
3083
1458
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3084
|
-
return
|
|
1459
|
+
return de_CommandError(output, context);
|
|
3085
1460
|
}
|
|
3086
1461
|
const contents = map({
|
|
3087
1462
|
$metadata: deserializeMetadata(output),
|
|
@@ -3094,46 +1469,9 @@ export const de_UpdateSecurityCommand = async (output, context) => {
|
|
|
3094
1469
|
Object.assign(contents, doc);
|
|
3095
1470
|
return contents;
|
|
3096
1471
|
};
|
|
3097
|
-
const de_UpdateSecurityCommandError = async (output, context) => {
|
|
3098
|
-
const parsedOutput = {
|
|
3099
|
-
...output,
|
|
3100
|
-
body: await parseErrorBody(output.body, context),
|
|
3101
|
-
};
|
|
3102
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3103
|
-
switch (errorCode) {
|
|
3104
|
-
case "BadRequestException":
|
|
3105
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3106
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3107
|
-
case "ForbiddenException":
|
|
3108
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3109
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3110
|
-
case "InternalServerErrorException":
|
|
3111
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3112
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3113
|
-
case "NotFoundException":
|
|
3114
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3115
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3116
|
-
case "ServiceUnavailableException":
|
|
3117
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3118
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3119
|
-
case "TooManyRequestsException":
|
|
3120
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
3121
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3122
|
-
case "UnauthorizedException":
|
|
3123
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3124
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3125
|
-
default:
|
|
3126
|
-
const parsedBody = parsedOutput.body;
|
|
3127
|
-
return throwDefaultError({
|
|
3128
|
-
output,
|
|
3129
|
-
parsedBody,
|
|
3130
|
-
errorCode,
|
|
3131
|
-
});
|
|
3132
|
-
}
|
|
3133
|
-
};
|
|
3134
1472
|
export const de_UpdateStorageCommand = async (output, context) => {
|
|
3135
1473
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3136
|
-
return
|
|
1474
|
+
return de_CommandError(output, context);
|
|
3137
1475
|
}
|
|
3138
1476
|
const contents = map({
|
|
3139
1477
|
$metadata: deserializeMetadata(output),
|
|
@@ -3146,7 +1484,7 @@ export const de_UpdateStorageCommand = async (output, context) => {
|
|
|
3146
1484
|
Object.assign(contents, doc);
|
|
3147
1485
|
return contents;
|
|
3148
1486
|
};
|
|
3149
|
-
const
|
|
1487
|
+
const de_CommandError = async (output, context) => {
|
|
3150
1488
|
const parsedOutput = {
|
|
3151
1489
|
...output,
|
|
3152
1490
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3174,6 +1512,9 @@ const de_UpdateStorageCommandError = async (output, context) => {
|
|
|
3174
1512
|
case "UnauthorizedException":
|
|
3175
1513
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3176
1514
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1515
|
+
case "ConflictException":
|
|
1516
|
+
case "com.amazonaws.kafka#ConflictException":
|
|
1517
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3177
1518
|
default:
|
|
3178
1519
|
const parsedBody = parsedOutput.body;
|
|
3179
1520
|
return throwDefaultError({
|