@aws-sdk/client-kinesis 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 +67 -1019
- package/dist-es/protocols/Aws_json1_1.js +96 -1048
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -777,7 +777,7 @@ var se_UpdateStreamModeCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
777
777
|
}, "se_UpdateStreamModeCommand");
|
|
778
778
|
var de_AddTagsToStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
779
779
|
if (output.statusCode >= 300) {
|
|
780
|
-
return
|
|
780
|
+
return de_CommandError(output, context);
|
|
781
781
|
}
|
|
782
782
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
783
783
|
const response = {
|
|
@@ -785,40 +785,9 @@ var de_AddTagsToStreamCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
785
785
|
};
|
|
786
786
|
return response;
|
|
787
787
|
}, "de_AddTagsToStreamCommand");
|
|
788
|
-
var de_AddTagsToStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
789
|
-
const parsedOutput = {
|
|
790
|
-
...output,
|
|
791
|
-
body: await parseErrorBody(output.body, context)
|
|
792
|
-
};
|
|
793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
|
-
switch (errorCode) {
|
|
795
|
-
case "AccessDeniedException":
|
|
796
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
797
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
798
|
-
case "InvalidArgumentException":
|
|
799
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
800
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
801
|
-
case "LimitExceededException":
|
|
802
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
803
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
804
|
-
case "ResourceInUseException":
|
|
805
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
806
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ResourceNotFoundException":
|
|
808
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
810
|
-
default:
|
|
811
|
-
const parsedBody = parsedOutput.body;
|
|
812
|
-
return throwDefaultError({
|
|
813
|
-
output,
|
|
814
|
-
parsedBody,
|
|
815
|
-
errorCode
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
}, "de_AddTagsToStreamCommandError");
|
|
819
788
|
var de_CreateStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
820
789
|
if (output.statusCode >= 300) {
|
|
821
|
-
return
|
|
790
|
+
return de_CommandError(output, context);
|
|
822
791
|
}
|
|
823
792
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
824
793
|
const response = {
|
|
@@ -826,34 +795,9 @@ var de_CreateStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
826
795
|
};
|
|
827
796
|
return response;
|
|
828
797
|
}, "de_CreateStreamCommand");
|
|
829
|
-
var de_CreateStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
830
|
-
const parsedOutput = {
|
|
831
|
-
...output,
|
|
832
|
-
body: await parseErrorBody(output.body, context)
|
|
833
|
-
};
|
|
834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
835
|
-
switch (errorCode) {
|
|
836
|
-
case "InvalidArgumentException":
|
|
837
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
838
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
839
|
-
case "LimitExceededException":
|
|
840
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
841
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
842
|
-
case "ResourceInUseException":
|
|
843
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
844
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
845
|
-
default:
|
|
846
|
-
const parsedBody = parsedOutput.body;
|
|
847
|
-
return throwDefaultError({
|
|
848
|
-
output,
|
|
849
|
-
parsedBody,
|
|
850
|
-
errorCode
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
}, "de_CreateStreamCommandError");
|
|
854
798
|
var de_DecreaseStreamRetentionPeriodCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
855
799
|
if (output.statusCode >= 300) {
|
|
856
|
-
return
|
|
800
|
+
return de_CommandError(output, context);
|
|
857
801
|
}
|
|
858
802
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
859
803
|
const response = {
|
|
@@ -861,40 +805,9 @@ var de_DecreaseStreamRetentionPeriodCommand = /* @__PURE__ */ __name(async (outp
|
|
|
861
805
|
};
|
|
862
806
|
return response;
|
|
863
807
|
}, "de_DecreaseStreamRetentionPeriodCommand");
|
|
864
|
-
var de_DecreaseStreamRetentionPeriodCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
865
|
-
const parsedOutput = {
|
|
866
|
-
...output,
|
|
867
|
-
body: await parseErrorBody(output.body, context)
|
|
868
|
-
};
|
|
869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
-
switch (errorCode) {
|
|
871
|
-
case "AccessDeniedException":
|
|
872
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
873
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
874
|
-
case "InvalidArgumentException":
|
|
875
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
876
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
877
|
-
case "LimitExceededException":
|
|
878
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
879
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ResourceInUseException":
|
|
881
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
882
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
883
|
-
case "ResourceNotFoundException":
|
|
884
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
885
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
886
|
-
default:
|
|
887
|
-
const parsedBody = parsedOutput.body;
|
|
888
|
-
return throwDefaultError({
|
|
889
|
-
output,
|
|
890
|
-
parsedBody,
|
|
891
|
-
errorCode
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
}, "de_DecreaseStreamRetentionPeriodCommandError");
|
|
895
808
|
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
896
809
|
if (output.statusCode >= 300) {
|
|
897
|
-
return
|
|
810
|
+
return de_CommandError(output, context);
|
|
898
811
|
}
|
|
899
812
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
900
813
|
const response = {
|
|
@@ -902,40 +815,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
902
815
|
};
|
|
903
816
|
return response;
|
|
904
817
|
}, "de_DeleteResourcePolicyCommand");
|
|
905
|
-
var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
906
|
-
const parsedOutput = {
|
|
907
|
-
...output,
|
|
908
|
-
body: await parseErrorBody(output.body, context)
|
|
909
|
-
};
|
|
910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
|
-
switch (errorCode) {
|
|
912
|
-
case "AccessDeniedException":
|
|
913
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
914
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
915
|
-
case "InvalidArgumentException":
|
|
916
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
917
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
918
|
-
case "LimitExceededException":
|
|
919
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
920
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
921
|
-
case "ResourceInUseException":
|
|
922
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
923
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
924
|
-
case "ResourceNotFoundException":
|
|
925
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
926
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
927
|
-
default:
|
|
928
|
-
const parsedBody = parsedOutput.body;
|
|
929
|
-
return throwDefaultError({
|
|
930
|
-
output,
|
|
931
|
-
parsedBody,
|
|
932
|
-
errorCode
|
|
933
|
-
});
|
|
934
|
-
}
|
|
935
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
936
818
|
var de_DeleteStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
937
819
|
if (output.statusCode >= 300) {
|
|
938
|
-
return
|
|
820
|
+
return de_CommandError(output, context);
|
|
939
821
|
}
|
|
940
822
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
941
823
|
const response = {
|
|
@@ -943,40 +825,9 @@ var de_DeleteStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
943
825
|
};
|
|
944
826
|
return response;
|
|
945
827
|
}, "de_DeleteStreamCommand");
|
|
946
|
-
var de_DeleteStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
947
|
-
const parsedOutput = {
|
|
948
|
-
...output,
|
|
949
|
-
body: await parseErrorBody(output.body, context)
|
|
950
|
-
};
|
|
951
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
952
|
-
switch (errorCode) {
|
|
953
|
-
case "AccessDeniedException":
|
|
954
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
955
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
956
|
-
case "InvalidArgumentException":
|
|
957
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
958
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
959
|
-
case "LimitExceededException":
|
|
960
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
961
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ResourceInUseException":
|
|
963
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
964
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ResourceNotFoundException":
|
|
966
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
967
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
968
|
-
default:
|
|
969
|
-
const parsedBody = parsedOutput.body;
|
|
970
|
-
return throwDefaultError({
|
|
971
|
-
output,
|
|
972
|
-
parsedBody,
|
|
973
|
-
errorCode
|
|
974
|
-
});
|
|
975
|
-
}
|
|
976
|
-
}, "de_DeleteStreamCommandError");
|
|
977
828
|
var de_DeregisterStreamConsumerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
978
829
|
if (output.statusCode >= 300) {
|
|
979
|
-
return
|
|
830
|
+
return de_CommandError(output, context);
|
|
980
831
|
}
|
|
981
832
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
982
833
|
const response = {
|
|
@@ -984,34 +835,9 @@ var de_DeregisterStreamConsumerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
984
835
|
};
|
|
985
836
|
return response;
|
|
986
837
|
}, "de_DeregisterStreamConsumerCommand");
|
|
987
|
-
var de_DeregisterStreamConsumerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
988
|
-
const parsedOutput = {
|
|
989
|
-
...output,
|
|
990
|
-
body: await parseErrorBody(output.body, context)
|
|
991
|
-
};
|
|
992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
|
-
switch (errorCode) {
|
|
994
|
-
case "InvalidArgumentException":
|
|
995
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
996
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
997
|
-
case "LimitExceededException":
|
|
998
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
999
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "ResourceNotFoundException":
|
|
1001
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1002
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1003
|
-
default:
|
|
1004
|
-
const parsedBody = parsedOutput.body;
|
|
1005
|
-
return throwDefaultError({
|
|
1006
|
-
output,
|
|
1007
|
-
parsedBody,
|
|
1008
|
-
errorCode
|
|
1009
|
-
});
|
|
1010
|
-
}
|
|
1011
|
-
}, "de_DeregisterStreamConsumerCommandError");
|
|
1012
838
|
var de_DescribeLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1013
839
|
if (output.statusCode >= 300) {
|
|
1014
|
-
return
|
|
840
|
+
return de_CommandError(output, context);
|
|
1015
841
|
}
|
|
1016
842
|
const data = await parseBody(output.body, context);
|
|
1017
843
|
let contents = {};
|
|
@@ -1022,28 +848,9 @@ var de_DescribeLimitsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1022
848
|
};
|
|
1023
849
|
return response;
|
|
1024
850
|
}, "de_DescribeLimitsCommand");
|
|
1025
|
-
var de_DescribeLimitsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1026
|
-
const parsedOutput = {
|
|
1027
|
-
...output,
|
|
1028
|
-
body: await parseErrorBody(output.body, context)
|
|
1029
|
-
};
|
|
1030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
|
-
switch (errorCode) {
|
|
1032
|
-
case "LimitExceededException":
|
|
1033
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1034
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1035
|
-
default:
|
|
1036
|
-
const parsedBody = parsedOutput.body;
|
|
1037
|
-
return throwDefaultError({
|
|
1038
|
-
output,
|
|
1039
|
-
parsedBody,
|
|
1040
|
-
errorCode
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
}, "de_DescribeLimitsCommandError");
|
|
1044
851
|
var de_DescribeStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1045
852
|
if (output.statusCode >= 300) {
|
|
1046
|
-
return
|
|
853
|
+
return de_CommandError(output, context);
|
|
1047
854
|
}
|
|
1048
855
|
const data = await parseBody(output.body, context);
|
|
1049
856
|
let contents = {};
|
|
@@ -1054,37 +861,9 @@ var de_DescribeStreamCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1054
861
|
};
|
|
1055
862
|
return response;
|
|
1056
863
|
}, "de_DescribeStreamCommand");
|
|
1057
|
-
var de_DescribeStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1058
|
-
const parsedOutput = {
|
|
1059
|
-
...output,
|
|
1060
|
-
body: await parseErrorBody(output.body, context)
|
|
1061
|
-
};
|
|
1062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
|
-
switch (errorCode) {
|
|
1064
|
-
case "AccessDeniedException":
|
|
1065
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1066
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "InvalidArgumentException":
|
|
1068
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1069
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "LimitExceededException":
|
|
1071
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1072
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ResourceNotFoundException":
|
|
1074
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1075
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1076
|
-
default:
|
|
1077
|
-
const parsedBody = parsedOutput.body;
|
|
1078
|
-
return throwDefaultError({
|
|
1079
|
-
output,
|
|
1080
|
-
parsedBody,
|
|
1081
|
-
errorCode
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
}, "de_DescribeStreamCommandError");
|
|
1085
864
|
var de_DescribeStreamConsumerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
865
|
if (output.statusCode >= 300) {
|
|
1087
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
1088
867
|
}
|
|
1089
868
|
const data = await parseBody(output.body, context);
|
|
1090
869
|
let contents = {};
|
|
@@ -1095,34 +874,9 @@ var de_DescribeStreamConsumerCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1095
874
|
};
|
|
1096
875
|
return response;
|
|
1097
876
|
}, "de_DescribeStreamConsumerCommand");
|
|
1098
|
-
var de_DescribeStreamConsumerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1099
|
-
const parsedOutput = {
|
|
1100
|
-
...output,
|
|
1101
|
-
body: await parseErrorBody(output.body, context)
|
|
1102
|
-
};
|
|
1103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
-
switch (errorCode) {
|
|
1105
|
-
case "InvalidArgumentException":
|
|
1106
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1107
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "LimitExceededException":
|
|
1109
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1110
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ResourceNotFoundException":
|
|
1112
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1113
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1114
|
-
default:
|
|
1115
|
-
const parsedBody = parsedOutput.body;
|
|
1116
|
-
return throwDefaultError({
|
|
1117
|
-
output,
|
|
1118
|
-
parsedBody,
|
|
1119
|
-
errorCode
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
}, "de_DescribeStreamConsumerCommandError");
|
|
1123
877
|
var de_DescribeStreamSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1124
878
|
if (output.statusCode >= 300) {
|
|
1125
|
-
return
|
|
879
|
+
return de_CommandError(output, context);
|
|
1126
880
|
}
|
|
1127
881
|
const data = await parseBody(output.body, context);
|
|
1128
882
|
let contents = {};
|
|
@@ -1133,37 +887,9 @@ var de_DescribeStreamSummaryCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1133
887
|
};
|
|
1134
888
|
return response;
|
|
1135
889
|
}, "de_DescribeStreamSummaryCommand");
|
|
1136
|
-
var de_DescribeStreamSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1137
|
-
const parsedOutput = {
|
|
1138
|
-
...output,
|
|
1139
|
-
body: await parseErrorBody(output.body, context)
|
|
1140
|
-
};
|
|
1141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1142
|
-
switch (errorCode) {
|
|
1143
|
-
case "AccessDeniedException":
|
|
1144
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1145
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "InvalidArgumentException":
|
|
1147
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1148
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "LimitExceededException":
|
|
1150
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1151
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "ResourceNotFoundException":
|
|
1153
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1154
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1155
|
-
default:
|
|
1156
|
-
const parsedBody = parsedOutput.body;
|
|
1157
|
-
return throwDefaultError({
|
|
1158
|
-
output,
|
|
1159
|
-
parsedBody,
|
|
1160
|
-
errorCode
|
|
1161
|
-
});
|
|
1162
|
-
}
|
|
1163
|
-
}, "de_DescribeStreamSummaryCommandError");
|
|
1164
890
|
var de_DisableEnhancedMonitoringCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1165
891
|
if (output.statusCode >= 300) {
|
|
1166
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
1167
893
|
}
|
|
1168
894
|
const data = await parseBody(output.body, context);
|
|
1169
895
|
let contents = {};
|
|
@@ -1174,40 +900,9 @@ var de_DisableEnhancedMonitoringCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1174
900
|
};
|
|
1175
901
|
return response;
|
|
1176
902
|
}, "de_DisableEnhancedMonitoringCommand");
|
|
1177
|
-
var de_DisableEnhancedMonitoringCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1178
|
-
const parsedOutput = {
|
|
1179
|
-
...output,
|
|
1180
|
-
body: await parseErrorBody(output.body, context)
|
|
1181
|
-
};
|
|
1182
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1183
|
-
switch (errorCode) {
|
|
1184
|
-
case "AccessDeniedException":
|
|
1185
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1186
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "InvalidArgumentException":
|
|
1188
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1189
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "LimitExceededException":
|
|
1191
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1192
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "ResourceInUseException":
|
|
1194
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1195
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "ResourceNotFoundException":
|
|
1197
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1198
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1199
|
-
default:
|
|
1200
|
-
const parsedBody = parsedOutput.body;
|
|
1201
|
-
return throwDefaultError({
|
|
1202
|
-
output,
|
|
1203
|
-
parsedBody,
|
|
1204
|
-
errorCode
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
}, "de_DisableEnhancedMonitoringCommandError");
|
|
1208
903
|
var de_EnableEnhancedMonitoringCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1209
904
|
if (output.statusCode >= 300) {
|
|
1210
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
1211
906
|
}
|
|
1212
907
|
const data = await parseBody(output.body, context);
|
|
1213
908
|
let contents = {};
|
|
@@ -1218,40 +913,9 @@ var de_EnableEnhancedMonitoringCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1218
913
|
};
|
|
1219
914
|
return response;
|
|
1220
915
|
}, "de_EnableEnhancedMonitoringCommand");
|
|
1221
|
-
var de_EnableEnhancedMonitoringCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1222
|
-
const parsedOutput = {
|
|
1223
|
-
...output,
|
|
1224
|
-
body: await parseErrorBody(output.body, context)
|
|
1225
|
-
};
|
|
1226
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1227
|
-
switch (errorCode) {
|
|
1228
|
-
case "AccessDeniedException":
|
|
1229
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1230
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "InvalidArgumentException":
|
|
1232
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1233
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "LimitExceededException":
|
|
1235
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1236
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "ResourceInUseException":
|
|
1238
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1239
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ResourceNotFoundException":
|
|
1241
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1242
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1243
|
-
default:
|
|
1244
|
-
const parsedBody = parsedOutput.body;
|
|
1245
|
-
return throwDefaultError({
|
|
1246
|
-
output,
|
|
1247
|
-
parsedBody,
|
|
1248
|
-
errorCode
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
}, "de_EnableEnhancedMonitoringCommandError");
|
|
1252
916
|
var de_GetRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1253
917
|
if (output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
918
|
+
return de_CommandError(output, context);
|
|
1255
919
|
}
|
|
1256
920
|
const data = await parseBody(output.body, context);
|
|
1257
921
|
let contents = {};
|
|
@@ -1262,58 +926,9 @@ var de_GetRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1262
926
|
};
|
|
1263
927
|
return response;
|
|
1264
928
|
}, "de_GetRecordsCommand");
|
|
1265
|
-
var de_GetRecordsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1266
|
-
const parsedOutput = {
|
|
1267
|
-
...output,
|
|
1268
|
-
body: await parseErrorBody(output.body, context)
|
|
1269
|
-
};
|
|
1270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
|
-
switch (errorCode) {
|
|
1272
|
-
case "AccessDeniedException":
|
|
1273
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1274
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "ExpiredIteratorException":
|
|
1276
|
-
case "com.amazonaws.kinesis#ExpiredIteratorException":
|
|
1277
|
-
throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "InvalidArgumentException":
|
|
1279
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1280
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "KMSAccessDeniedException":
|
|
1282
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
1283
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "KMSDisabledException":
|
|
1285
|
-
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
1286
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "KMSInvalidStateException":
|
|
1288
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
1289
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "KMSNotFoundException":
|
|
1291
|
-
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
1292
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "KMSOptInRequired":
|
|
1294
|
-
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
1295
|
-
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1296
|
-
case "KMSThrottlingException":
|
|
1297
|
-
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
1298
|
-
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "ProvisionedThroughputExceededException":
|
|
1300
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
1301
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "ResourceNotFoundException":
|
|
1303
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1304
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1305
|
-
default:
|
|
1306
|
-
const parsedBody = parsedOutput.body;
|
|
1307
|
-
return throwDefaultError({
|
|
1308
|
-
output,
|
|
1309
|
-
parsedBody,
|
|
1310
|
-
errorCode
|
|
1311
|
-
});
|
|
1312
|
-
}
|
|
1313
|
-
}, "de_GetRecordsCommandError");
|
|
1314
929
|
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1315
930
|
if (output.statusCode >= 300) {
|
|
1316
|
-
return
|
|
931
|
+
return de_CommandError(output, context);
|
|
1317
932
|
}
|
|
1318
933
|
const data = await parseBody(output.body, context);
|
|
1319
934
|
let contents = {};
|
|
@@ -1324,37 +939,9 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1324
939
|
};
|
|
1325
940
|
return response;
|
|
1326
941
|
}, "de_GetResourcePolicyCommand");
|
|
1327
|
-
var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1328
|
-
const parsedOutput = {
|
|
1329
|
-
...output,
|
|
1330
|
-
body: await parseErrorBody(output.body, context)
|
|
1331
|
-
};
|
|
1332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
-
switch (errorCode) {
|
|
1334
|
-
case "AccessDeniedException":
|
|
1335
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1336
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "InvalidArgumentException":
|
|
1338
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1339
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "LimitExceededException":
|
|
1341
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1342
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "ResourceNotFoundException":
|
|
1344
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1345
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1346
|
-
default:
|
|
1347
|
-
const parsedBody = parsedOutput.body;
|
|
1348
|
-
return throwDefaultError({
|
|
1349
|
-
output,
|
|
1350
|
-
parsedBody,
|
|
1351
|
-
errorCode
|
|
1352
|
-
});
|
|
1353
|
-
}
|
|
1354
|
-
}, "de_GetResourcePolicyCommandError");
|
|
1355
942
|
var de_GetShardIteratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1356
943
|
if (output.statusCode >= 300) {
|
|
1357
|
-
return
|
|
944
|
+
return de_CommandError(output, context);
|
|
1358
945
|
}
|
|
1359
946
|
const data = await parseBody(output.body, context);
|
|
1360
947
|
let contents = {};
|
|
@@ -1365,37 +952,9 @@ var de_GetShardIteratorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1365
952
|
};
|
|
1366
953
|
return response;
|
|
1367
954
|
}, "de_GetShardIteratorCommand");
|
|
1368
|
-
var de_GetShardIteratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1369
|
-
const parsedOutput = {
|
|
1370
|
-
...output,
|
|
1371
|
-
body: await parseErrorBody(output.body, context)
|
|
1372
|
-
};
|
|
1373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
|
-
switch (errorCode) {
|
|
1375
|
-
case "AccessDeniedException":
|
|
1376
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1377
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "InvalidArgumentException":
|
|
1379
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1380
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "ProvisionedThroughputExceededException":
|
|
1382
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
1383
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ResourceNotFoundException":
|
|
1385
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1386
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1387
|
-
default:
|
|
1388
|
-
const parsedBody = parsedOutput.body;
|
|
1389
|
-
return throwDefaultError({
|
|
1390
|
-
output,
|
|
1391
|
-
parsedBody,
|
|
1392
|
-
errorCode
|
|
1393
|
-
});
|
|
1394
|
-
}
|
|
1395
|
-
}, "de_GetShardIteratorCommandError");
|
|
1396
955
|
var de_IncreaseStreamRetentionPeriodCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1397
956
|
if (output.statusCode >= 300) {
|
|
1398
|
-
return
|
|
957
|
+
return de_CommandError(output, context);
|
|
1399
958
|
}
|
|
1400
959
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1401
960
|
const response = {
|
|
@@ -1403,40 +962,9 @@ var de_IncreaseStreamRetentionPeriodCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1403
962
|
};
|
|
1404
963
|
return response;
|
|
1405
964
|
}, "de_IncreaseStreamRetentionPeriodCommand");
|
|
1406
|
-
var de_IncreaseStreamRetentionPeriodCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1407
|
-
const parsedOutput = {
|
|
1408
|
-
...output,
|
|
1409
|
-
body: await parseErrorBody(output.body, context)
|
|
1410
|
-
};
|
|
1411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
|
-
switch (errorCode) {
|
|
1413
|
-
case "AccessDeniedException":
|
|
1414
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1415
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "InvalidArgumentException":
|
|
1417
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1418
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "LimitExceededException":
|
|
1420
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1421
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ResourceInUseException":
|
|
1423
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1424
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ResourceNotFoundException":
|
|
1426
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1427
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1428
|
-
default:
|
|
1429
|
-
const parsedBody = parsedOutput.body;
|
|
1430
|
-
return throwDefaultError({
|
|
1431
|
-
output,
|
|
1432
|
-
parsedBody,
|
|
1433
|
-
errorCode
|
|
1434
|
-
});
|
|
1435
|
-
}
|
|
1436
|
-
}, "de_IncreaseStreamRetentionPeriodCommandError");
|
|
1437
965
|
var de_ListShardsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1438
966
|
if (output.statusCode >= 300) {
|
|
1439
|
-
return
|
|
967
|
+
return de_CommandError(output, context);
|
|
1440
968
|
}
|
|
1441
969
|
const data = await parseBody(output.body, context);
|
|
1442
970
|
let contents = {};
|
|
@@ -1447,43 +975,9 @@ var de_ListShardsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1447
975
|
};
|
|
1448
976
|
return response;
|
|
1449
977
|
}, "de_ListShardsCommand");
|
|
1450
|
-
var de_ListShardsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1451
|
-
const parsedOutput = {
|
|
1452
|
-
...output,
|
|
1453
|
-
body: await parseErrorBody(output.body, context)
|
|
1454
|
-
};
|
|
1455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
|
-
switch (errorCode) {
|
|
1457
|
-
case "AccessDeniedException":
|
|
1458
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1459
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1460
|
-
case "ExpiredNextTokenException":
|
|
1461
|
-
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
1462
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "InvalidArgumentException":
|
|
1464
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1465
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "LimitExceededException":
|
|
1467
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1468
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "ResourceInUseException":
|
|
1470
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1471
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "ResourceNotFoundException":
|
|
1473
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1474
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1475
|
-
default:
|
|
1476
|
-
const parsedBody = parsedOutput.body;
|
|
1477
|
-
return throwDefaultError({
|
|
1478
|
-
output,
|
|
1479
|
-
parsedBody,
|
|
1480
|
-
errorCode
|
|
1481
|
-
});
|
|
1482
|
-
}
|
|
1483
|
-
}, "de_ListShardsCommandError");
|
|
1484
978
|
var de_ListStreamConsumersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1485
979
|
if (output.statusCode >= 300) {
|
|
1486
|
-
return
|
|
980
|
+
return de_CommandError(output, context);
|
|
1487
981
|
}
|
|
1488
982
|
const data = await parseBody(output.body, context);
|
|
1489
983
|
let contents = {};
|
|
@@ -1494,40 +988,9 @@ var de_ListStreamConsumersCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1494
988
|
};
|
|
1495
989
|
return response;
|
|
1496
990
|
}, "de_ListStreamConsumersCommand");
|
|
1497
|
-
var de_ListStreamConsumersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1498
|
-
const parsedOutput = {
|
|
1499
|
-
...output,
|
|
1500
|
-
body: await parseErrorBody(output.body, context)
|
|
1501
|
-
};
|
|
1502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
|
-
switch (errorCode) {
|
|
1504
|
-
case "ExpiredNextTokenException":
|
|
1505
|
-
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
1506
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "InvalidArgumentException":
|
|
1508
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1509
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "LimitExceededException":
|
|
1511
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1512
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "ResourceInUseException":
|
|
1514
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1515
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "ResourceNotFoundException":
|
|
1517
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1518
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1519
|
-
default:
|
|
1520
|
-
const parsedBody = parsedOutput.body;
|
|
1521
|
-
return throwDefaultError({
|
|
1522
|
-
output,
|
|
1523
|
-
parsedBody,
|
|
1524
|
-
errorCode
|
|
1525
|
-
});
|
|
1526
|
-
}
|
|
1527
|
-
}, "de_ListStreamConsumersCommandError");
|
|
1528
991
|
var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1529
992
|
if (output.statusCode >= 300) {
|
|
1530
|
-
return
|
|
993
|
+
return de_CommandError(output, context);
|
|
1531
994
|
}
|
|
1532
995
|
const data = await parseBody(output.body, context);
|
|
1533
996
|
let contents = {};
|
|
@@ -1538,34 +1001,9 @@ var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1538
1001
|
};
|
|
1539
1002
|
return response;
|
|
1540
1003
|
}, "de_ListStreamsCommand");
|
|
1541
|
-
var de_ListStreamsCommandError = /* @__PURE__ */ __name(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 "ExpiredNextTokenException":
|
|
1549
|
-
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
1550
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1551
|
-
case "InvalidArgumentException":
|
|
1552
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1553
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "LimitExceededException":
|
|
1555
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1556
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1557
|
-
default:
|
|
1558
|
-
const parsedBody = parsedOutput.body;
|
|
1559
|
-
return throwDefaultError({
|
|
1560
|
-
output,
|
|
1561
|
-
parsedBody,
|
|
1562
|
-
errorCode
|
|
1563
|
-
});
|
|
1564
|
-
}
|
|
1565
|
-
}, "de_ListStreamsCommandError");
|
|
1566
1004
|
var de_ListTagsForStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1567
1005
|
if (output.statusCode >= 300) {
|
|
1568
|
-
return
|
|
1006
|
+
return de_CommandError(output, context);
|
|
1569
1007
|
}
|
|
1570
1008
|
const data = await parseBody(output.body, context);
|
|
1571
1009
|
let contents = {};
|
|
@@ -1576,37 +1014,9 @@ var de_ListTagsForStreamCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1576
1014
|
};
|
|
1577
1015
|
return response;
|
|
1578
1016
|
}, "de_ListTagsForStreamCommand");
|
|
1579
|
-
var de_ListTagsForStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1580
|
-
const parsedOutput = {
|
|
1581
|
-
...output,
|
|
1582
|
-
body: await parseErrorBody(output.body, context)
|
|
1583
|
-
};
|
|
1584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
-
switch (errorCode) {
|
|
1586
|
-
case "AccessDeniedException":
|
|
1587
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1588
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "InvalidArgumentException":
|
|
1590
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1591
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "LimitExceededException":
|
|
1593
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1594
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ResourceNotFoundException":
|
|
1596
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1597
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody,
|
|
1603
|
-
errorCode
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
}, "de_ListTagsForStreamCommandError");
|
|
1607
1017
|
var de_MergeShardsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1608
1018
|
if (output.statusCode >= 300) {
|
|
1609
|
-
return
|
|
1019
|
+
return de_CommandError(output, context);
|
|
1610
1020
|
}
|
|
1611
1021
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1612
1022
|
const response = {
|
|
@@ -1614,43 +1024,9 @@ var de_MergeShardsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1614
1024
|
};
|
|
1615
1025
|
return response;
|
|
1616
1026
|
}, "de_MergeShardsCommand");
|
|
1617
|
-
var de_MergeShardsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1618
|
-
const parsedOutput = {
|
|
1619
|
-
...output,
|
|
1620
|
-
body: await parseErrorBody(output.body, context)
|
|
1621
|
-
};
|
|
1622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
-
switch (errorCode) {
|
|
1624
|
-
case "AccessDeniedException":
|
|
1625
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1626
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "InvalidArgumentException":
|
|
1628
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1629
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "LimitExceededException":
|
|
1631
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1632
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "ResourceInUseException":
|
|
1634
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1635
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "ResourceNotFoundException":
|
|
1637
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1638
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ValidationException":
|
|
1640
|
-
case "com.amazonaws.kinesis#ValidationException":
|
|
1641
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1642
|
-
default:
|
|
1643
|
-
const parsedBody = parsedOutput.body;
|
|
1644
|
-
return throwDefaultError({
|
|
1645
|
-
output,
|
|
1646
|
-
parsedBody,
|
|
1647
|
-
errorCode
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
}, "de_MergeShardsCommandError");
|
|
1651
1027
|
var de_PutRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1652
1028
|
if (output.statusCode >= 300) {
|
|
1653
|
-
return
|
|
1029
|
+
return de_CommandError(output, context);
|
|
1654
1030
|
}
|
|
1655
1031
|
const data = await parseBody(output.body, context);
|
|
1656
1032
|
let contents = {};
|
|
@@ -1661,55 +1037,9 @@ var de_PutRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1661
1037
|
};
|
|
1662
1038
|
return response;
|
|
1663
1039
|
}, "de_PutRecordCommand");
|
|
1664
|
-
var de_PutRecordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1665
|
-
const parsedOutput = {
|
|
1666
|
-
...output,
|
|
1667
|
-
body: await parseErrorBody(output.body, context)
|
|
1668
|
-
};
|
|
1669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1670
|
-
switch (errorCode) {
|
|
1671
|
-
case "AccessDeniedException":
|
|
1672
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1673
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "InvalidArgumentException":
|
|
1675
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1676
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "KMSAccessDeniedException":
|
|
1678
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
1679
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1680
|
-
case "KMSDisabledException":
|
|
1681
|
-
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
1682
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1683
|
-
case "KMSInvalidStateException":
|
|
1684
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
1685
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1686
|
-
case "KMSNotFoundException":
|
|
1687
|
-
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
1688
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1689
|
-
case "KMSOptInRequired":
|
|
1690
|
-
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
1691
|
-
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1692
|
-
case "KMSThrottlingException":
|
|
1693
|
-
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
1694
|
-
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "ProvisionedThroughputExceededException":
|
|
1696
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
1697
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "ResourceNotFoundException":
|
|
1699
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1700
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1701
|
-
default:
|
|
1702
|
-
const parsedBody = parsedOutput.body;
|
|
1703
|
-
return throwDefaultError({
|
|
1704
|
-
output,
|
|
1705
|
-
parsedBody,
|
|
1706
|
-
errorCode
|
|
1707
|
-
});
|
|
1708
|
-
}
|
|
1709
|
-
}, "de_PutRecordCommandError");
|
|
1710
1040
|
var de_PutRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1711
1041
|
if (output.statusCode >= 300) {
|
|
1712
|
-
return
|
|
1042
|
+
return de_CommandError(output, context);
|
|
1713
1043
|
}
|
|
1714
1044
|
const data = await parseBody(output.body, context);
|
|
1715
1045
|
let contents = {};
|
|
@@ -1720,55 +1050,9 @@ var de_PutRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1720
1050
|
};
|
|
1721
1051
|
return response;
|
|
1722
1052
|
}, "de_PutRecordsCommand");
|
|
1723
|
-
var de_PutRecordsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1724
|
-
const parsedOutput = {
|
|
1725
|
-
...output,
|
|
1726
|
-
body: await parseErrorBody(output.body, context)
|
|
1727
|
-
};
|
|
1728
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1729
|
-
switch (errorCode) {
|
|
1730
|
-
case "AccessDeniedException":
|
|
1731
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1732
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "InvalidArgumentException":
|
|
1734
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1735
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "KMSAccessDeniedException":
|
|
1737
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
1738
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "KMSDisabledException":
|
|
1740
|
-
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
1741
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "KMSInvalidStateException":
|
|
1743
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
1744
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "KMSNotFoundException":
|
|
1746
|
-
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
1747
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "KMSOptInRequired":
|
|
1749
|
-
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
1750
|
-
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1751
|
-
case "KMSThrottlingException":
|
|
1752
|
-
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
1753
|
-
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "ProvisionedThroughputExceededException":
|
|
1755
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
1756
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "ResourceNotFoundException":
|
|
1758
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1759
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1760
|
-
default:
|
|
1761
|
-
const parsedBody = parsedOutput.body;
|
|
1762
|
-
return throwDefaultError({
|
|
1763
|
-
output,
|
|
1764
|
-
parsedBody,
|
|
1765
|
-
errorCode
|
|
1766
|
-
});
|
|
1767
|
-
}
|
|
1768
|
-
}, "de_PutRecordsCommandError");
|
|
1769
1053
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1770
1054
|
if (output.statusCode >= 300) {
|
|
1771
|
-
return
|
|
1055
|
+
return de_CommandError(output, context);
|
|
1772
1056
|
}
|
|
1773
1057
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1774
1058
|
const response = {
|
|
@@ -1776,40 +1060,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1776
1060
|
};
|
|
1777
1061
|
return response;
|
|
1778
1062
|
}, "de_PutResourcePolicyCommand");
|
|
1779
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1780
|
-
const parsedOutput = {
|
|
1781
|
-
...output,
|
|
1782
|
-
body: await parseErrorBody(output.body, context)
|
|
1783
|
-
};
|
|
1784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1785
|
-
switch (errorCode) {
|
|
1786
|
-
case "AccessDeniedException":
|
|
1787
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1788
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "InvalidArgumentException":
|
|
1790
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1791
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1792
|
-
case "LimitExceededException":
|
|
1793
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1794
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "ResourceInUseException":
|
|
1796
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1797
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "ResourceNotFoundException":
|
|
1799
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1800
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1801
|
-
default:
|
|
1802
|
-
const parsedBody = parsedOutput.body;
|
|
1803
|
-
return throwDefaultError({
|
|
1804
|
-
output,
|
|
1805
|
-
parsedBody,
|
|
1806
|
-
errorCode
|
|
1807
|
-
});
|
|
1808
|
-
}
|
|
1809
|
-
}, "de_PutResourcePolicyCommandError");
|
|
1810
1063
|
var de_RegisterStreamConsumerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1811
1064
|
if (output.statusCode >= 300) {
|
|
1812
|
-
return
|
|
1065
|
+
return de_CommandError(output, context);
|
|
1813
1066
|
}
|
|
1814
1067
|
const data = await parseBody(output.body, context);
|
|
1815
1068
|
let contents = {};
|
|
@@ -1820,37 +1073,9 @@ var de_RegisterStreamConsumerCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1820
1073
|
};
|
|
1821
1074
|
return response;
|
|
1822
1075
|
}, "de_RegisterStreamConsumerCommand");
|
|
1823
|
-
var de_RegisterStreamConsumerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1824
|
-
const parsedOutput = {
|
|
1825
|
-
...output,
|
|
1826
|
-
body: await parseErrorBody(output.body, context)
|
|
1827
|
-
};
|
|
1828
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1829
|
-
switch (errorCode) {
|
|
1830
|
-
case "InvalidArgumentException":
|
|
1831
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1832
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "LimitExceededException":
|
|
1834
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1835
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "ResourceInUseException":
|
|
1837
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1838
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "ResourceNotFoundException":
|
|
1840
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1841
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1842
|
-
default:
|
|
1843
|
-
const parsedBody = parsedOutput.body;
|
|
1844
|
-
return throwDefaultError({
|
|
1845
|
-
output,
|
|
1846
|
-
parsedBody,
|
|
1847
|
-
errorCode
|
|
1848
|
-
});
|
|
1849
|
-
}
|
|
1850
|
-
}, "de_RegisterStreamConsumerCommandError");
|
|
1851
1076
|
var de_RemoveTagsFromStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1852
1077
|
if (output.statusCode >= 300) {
|
|
1853
|
-
return
|
|
1078
|
+
return de_CommandError(output, context);
|
|
1854
1079
|
}
|
|
1855
1080
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1856
1081
|
const response = {
|
|
@@ -1858,40 +1083,9 @@ var de_RemoveTagsFromStreamCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1858
1083
|
};
|
|
1859
1084
|
return response;
|
|
1860
1085
|
}, "de_RemoveTagsFromStreamCommand");
|
|
1861
|
-
var de_RemoveTagsFromStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1862
|
-
const parsedOutput = {
|
|
1863
|
-
...output,
|
|
1864
|
-
body: await parseErrorBody(output.body, context)
|
|
1865
|
-
};
|
|
1866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1867
|
-
switch (errorCode) {
|
|
1868
|
-
case "AccessDeniedException":
|
|
1869
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1870
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "InvalidArgumentException":
|
|
1872
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1873
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1874
|
-
case "LimitExceededException":
|
|
1875
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1876
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "ResourceInUseException":
|
|
1878
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1879
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "ResourceNotFoundException":
|
|
1881
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1882
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1883
|
-
default:
|
|
1884
|
-
const parsedBody = parsedOutput.body;
|
|
1885
|
-
return throwDefaultError({
|
|
1886
|
-
output,
|
|
1887
|
-
parsedBody,
|
|
1888
|
-
errorCode
|
|
1889
|
-
});
|
|
1890
|
-
}
|
|
1891
|
-
}, "de_RemoveTagsFromStreamCommandError");
|
|
1892
1086
|
var de_SplitShardCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1893
1087
|
if (output.statusCode >= 300) {
|
|
1894
|
-
return
|
|
1088
|
+
return de_CommandError(output, context);
|
|
1895
1089
|
}
|
|
1896
1090
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1897
1091
|
const response = {
|
|
@@ -1899,43 +1093,9 @@ var de_SplitShardCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1899
1093
|
};
|
|
1900
1094
|
return response;
|
|
1901
1095
|
}, "de_SplitShardCommand");
|
|
1902
|
-
var de_SplitShardCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1903
|
-
const parsedOutput = {
|
|
1904
|
-
...output,
|
|
1905
|
-
body: await parseErrorBody(output.body, context)
|
|
1906
|
-
};
|
|
1907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1908
|
-
switch (errorCode) {
|
|
1909
|
-
case "AccessDeniedException":
|
|
1910
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1911
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "InvalidArgumentException":
|
|
1913
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1914
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "LimitExceededException":
|
|
1916
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1917
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "ResourceInUseException":
|
|
1919
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1920
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1921
|
-
case "ResourceNotFoundException":
|
|
1922
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1923
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1924
|
-
case "ValidationException":
|
|
1925
|
-
case "com.amazonaws.kinesis#ValidationException":
|
|
1926
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1927
|
-
default:
|
|
1928
|
-
const parsedBody = parsedOutput.body;
|
|
1929
|
-
return throwDefaultError({
|
|
1930
|
-
output,
|
|
1931
|
-
parsedBody,
|
|
1932
|
-
errorCode
|
|
1933
|
-
});
|
|
1934
|
-
}
|
|
1935
|
-
}, "de_SplitShardCommandError");
|
|
1936
1096
|
var de_StartStreamEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1937
1097
|
if (output.statusCode >= 300) {
|
|
1938
|
-
return
|
|
1098
|
+
return de_CommandError(output, context);
|
|
1939
1099
|
}
|
|
1940
1100
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1941
1101
|
const response = {
|
|
@@ -1943,58 +1103,9 @@ var de_StartStreamEncryptionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1943
1103
|
};
|
|
1944
1104
|
return response;
|
|
1945
1105
|
}, "de_StartStreamEncryptionCommand");
|
|
1946
|
-
var de_StartStreamEncryptionCommandError = /* @__PURE__ */ __name(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 "AccessDeniedException":
|
|
1954
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1955
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1956
|
-
case "InvalidArgumentException":
|
|
1957
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1958
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1959
|
-
case "KMSAccessDeniedException":
|
|
1960
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
1961
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "KMSDisabledException":
|
|
1963
|
-
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
1964
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1965
|
-
case "KMSInvalidStateException":
|
|
1966
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
1967
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1968
|
-
case "KMSNotFoundException":
|
|
1969
|
-
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
1970
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1971
|
-
case "KMSOptInRequired":
|
|
1972
|
-
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
1973
|
-
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1974
|
-
case "KMSThrottlingException":
|
|
1975
|
-
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
1976
|
-
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "LimitExceededException":
|
|
1978
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1979
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ResourceInUseException":
|
|
1981
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1982
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1983
|
-
case "ResourceNotFoundException":
|
|
1984
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1985
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1986
|
-
default:
|
|
1987
|
-
const parsedBody = parsedOutput.body;
|
|
1988
|
-
return throwDefaultError({
|
|
1989
|
-
output,
|
|
1990
|
-
parsedBody,
|
|
1991
|
-
errorCode
|
|
1992
|
-
});
|
|
1993
|
-
}
|
|
1994
|
-
}, "de_StartStreamEncryptionCommandError");
|
|
1995
1106
|
var de_StopStreamEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1996
1107
|
if (output.statusCode >= 300) {
|
|
1997
|
-
return
|
|
1108
|
+
return de_CommandError(output, context);
|
|
1998
1109
|
}
|
|
1999
1110
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2000
1111
|
const response = {
|
|
@@ -2002,40 +1113,9 @@ var de_StopStreamEncryptionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2002
1113
|
};
|
|
2003
1114
|
return response;
|
|
2004
1115
|
}, "de_StopStreamEncryptionCommand");
|
|
2005
|
-
var de_StopStreamEncryptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2006
|
-
const parsedOutput = {
|
|
2007
|
-
...output,
|
|
2008
|
-
body: await parseErrorBody(output.body, context)
|
|
2009
|
-
};
|
|
2010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
|
-
switch (errorCode) {
|
|
2012
|
-
case "AccessDeniedException":
|
|
2013
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
2014
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "InvalidArgumentException":
|
|
2016
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
2017
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "LimitExceededException":
|
|
2019
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
2020
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "ResourceInUseException":
|
|
2022
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
2023
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "ResourceNotFoundException":
|
|
2025
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
2026
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2027
|
-
default:
|
|
2028
|
-
const parsedBody = parsedOutput.body;
|
|
2029
|
-
return throwDefaultError({
|
|
2030
|
-
output,
|
|
2031
|
-
parsedBody,
|
|
2032
|
-
errorCode
|
|
2033
|
-
});
|
|
2034
|
-
}
|
|
2035
|
-
}, "de_StopStreamEncryptionCommandError");
|
|
2036
1116
|
var de_SubscribeToShardCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2037
1117
|
if (output.statusCode >= 300) {
|
|
2038
|
-
return
|
|
1118
|
+
return de_CommandError(output, context);
|
|
2039
1119
|
}
|
|
2040
1120
|
const contents = { EventStream: de_SubscribeToShardEventStream(output.body, context) };
|
|
2041
1121
|
const response = {
|
|
@@ -2044,40 +1124,9 @@ var de_SubscribeToShardCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2044
1124
|
};
|
|
2045
1125
|
return response;
|
|
2046
1126
|
}, "de_SubscribeToShardCommand");
|
|
2047
|
-
var de_SubscribeToShardCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2048
|
-
const parsedOutput = {
|
|
2049
|
-
...output,
|
|
2050
|
-
body: await parseErrorBody(output.body, context)
|
|
2051
|
-
};
|
|
2052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2053
|
-
switch (errorCode) {
|
|
2054
|
-
case "AccessDeniedException":
|
|
2055
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
2056
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "InvalidArgumentException":
|
|
2058
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
2059
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "LimitExceededException":
|
|
2061
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
2062
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "ResourceInUseException":
|
|
2064
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
2065
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ResourceNotFoundException":
|
|
2067
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
2068
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2069
|
-
default:
|
|
2070
|
-
const parsedBody = parsedOutput.body;
|
|
2071
|
-
return throwDefaultError({
|
|
2072
|
-
output,
|
|
2073
|
-
parsedBody,
|
|
2074
|
-
errorCode
|
|
2075
|
-
});
|
|
2076
|
-
}
|
|
2077
|
-
}, "de_SubscribeToShardCommandError");
|
|
2078
1127
|
var de_UpdateShardCountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2079
1128
|
if (output.statusCode >= 300) {
|
|
2080
|
-
return
|
|
1129
|
+
return de_CommandError(output, context);
|
|
2081
1130
|
}
|
|
2082
1131
|
const data = await parseBody(output.body, context);
|
|
2083
1132
|
let contents = {};
|
|
@@ -2088,43 +1137,9 @@ var de_UpdateShardCountCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2088
1137
|
};
|
|
2089
1138
|
return response;
|
|
2090
1139
|
}, "de_UpdateShardCountCommand");
|
|
2091
|
-
var de_UpdateShardCountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2092
|
-
const parsedOutput = {
|
|
2093
|
-
...output,
|
|
2094
|
-
body: await parseErrorBody(output.body, context)
|
|
2095
|
-
};
|
|
2096
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2097
|
-
switch (errorCode) {
|
|
2098
|
-
case "AccessDeniedException":
|
|
2099
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
2100
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "InvalidArgumentException":
|
|
2102
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
2103
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "LimitExceededException":
|
|
2105
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
2106
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "ResourceInUseException":
|
|
2108
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
2109
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "ResourceNotFoundException":
|
|
2111
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
2112
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "ValidationException":
|
|
2114
|
-
case "com.amazonaws.kinesis#ValidationException":
|
|
2115
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2116
|
-
default:
|
|
2117
|
-
const parsedBody = parsedOutput.body;
|
|
2118
|
-
return throwDefaultError({
|
|
2119
|
-
output,
|
|
2120
|
-
parsedBody,
|
|
2121
|
-
errorCode
|
|
2122
|
-
});
|
|
2123
|
-
}
|
|
2124
|
-
}, "de_UpdateShardCountCommandError");
|
|
2125
1140
|
var de_UpdateStreamModeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2126
1141
|
if (output.statusCode >= 300) {
|
|
2127
|
-
return
|
|
1142
|
+
return de_CommandError(output, context);
|
|
2128
1143
|
}
|
|
2129
1144
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2130
1145
|
const response = {
|
|
@@ -2132,13 +1147,16 @@ var de_UpdateStreamModeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2132
1147
|
};
|
|
2133
1148
|
return response;
|
|
2134
1149
|
}, "de_UpdateStreamModeCommand");
|
|
2135
|
-
var
|
|
1150
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2136
1151
|
const parsedOutput = {
|
|
2137
1152
|
...output,
|
|
2138
1153
|
body: await parseErrorBody(output.body, context)
|
|
2139
1154
|
};
|
|
2140
1155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2141
1156
|
switch (errorCode) {
|
|
1157
|
+
case "AccessDeniedException":
|
|
1158
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1159
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2142
1160
|
case "InvalidArgumentException":
|
|
2143
1161
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
2144
1162
|
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
@@ -2151,6 +1169,36 @@ var de_UpdateStreamModeCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
2151
1169
|
case "ResourceNotFoundException":
|
|
2152
1170
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
2153
1171
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1172
|
+
case "ExpiredIteratorException":
|
|
1173
|
+
case "com.amazonaws.kinesis#ExpiredIteratorException":
|
|
1174
|
+
throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
|
|
1175
|
+
case "KMSAccessDeniedException":
|
|
1176
|
+
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
1177
|
+
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1178
|
+
case "KMSDisabledException":
|
|
1179
|
+
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
1180
|
+
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1181
|
+
case "KMSInvalidStateException":
|
|
1182
|
+
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
1183
|
+
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1184
|
+
case "KMSNotFoundException":
|
|
1185
|
+
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
1186
|
+
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1187
|
+
case "KMSOptInRequired":
|
|
1188
|
+
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
1189
|
+
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1190
|
+
case "KMSThrottlingException":
|
|
1191
|
+
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
1192
|
+
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1193
|
+
case "ProvisionedThroughputExceededException":
|
|
1194
|
+
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
1195
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1196
|
+
case "ExpiredNextTokenException":
|
|
1197
|
+
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
1198
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1199
|
+
case "ValidationException":
|
|
1200
|
+
case "com.amazonaws.kinesis#ValidationException":
|
|
1201
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2154
1202
|
default:
|
|
2155
1203
|
const parsedBody = parsedOutput.body;
|
|
2156
1204
|
return throwDefaultError({
|
|
@@ -2159,7 +1207,7 @@ var de_UpdateStreamModeCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
2159
1207
|
errorCode
|
|
2160
1208
|
});
|
|
2161
1209
|
}
|
|
2162
|
-
}, "
|
|
1210
|
+
}, "de_CommandError");
|
|
2163
1211
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2164
1212
|
const body = parsedOutput.body;
|
|
2165
1213
|
const deserialized = (0, import_smithy_client._json)(body);
|