@aws-sdk/client-kinesis-analytics-v2 3.525.0 → 3.529.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 +34 -74
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -238,6 +238,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
238
238
|
var import_types = require("@smithy/types");
|
|
239
239
|
|
|
240
240
|
// src/protocols/Aws_json1_1.ts
|
|
241
|
+
var import_core2 = require("@aws-sdk/core");
|
|
241
242
|
|
|
242
243
|
|
|
243
244
|
|
|
@@ -759,7 +760,7 @@ var de_AddApplicationCloudWatchLoggingOptionCommand = /* @__PURE__ */ __name(asy
|
|
|
759
760
|
if (output.statusCode >= 300) {
|
|
760
761
|
return de_CommandError(output, context);
|
|
761
762
|
}
|
|
762
|
-
const data = await
|
|
763
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
763
764
|
let contents = {};
|
|
764
765
|
contents = (0, import_smithy_client._json)(data);
|
|
765
766
|
const response = {
|
|
@@ -772,7 +773,7 @@ var de_AddApplicationInputCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
772
773
|
if (output.statusCode >= 300) {
|
|
773
774
|
return de_CommandError(output, context);
|
|
774
775
|
}
|
|
775
|
-
const data = await
|
|
776
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
776
777
|
let contents = {};
|
|
777
778
|
contents = (0, import_smithy_client._json)(data);
|
|
778
779
|
const response = {
|
|
@@ -785,7 +786,7 @@ var de_AddApplicationInputProcessingConfigurationCommand = /* @__PURE__ */ __nam
|
|
|
785
786
|
if (output.statusCode >= 300) {
|
|
786
787
|
return de_CommandError(output, context);
|
|
787
788
|
}
|
|
788
|
-
const data = await
|
|
789
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
789
790
|
let contents = {};
|
|
790
791
|
contents = (0, import_smithy_client._json)(data);
|
|
791
792
|
const response = {
|
|
@@ -798,7 +799,7 @@ var de_AddApplicationOutputCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
798
799
|
if (output.statusCode >= 300) {
|
|
799
800
|
return de_CommandError(output, context);
|
|
800
801
|
}
|
|
801
|
-
const data = await
|
|
802
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
802
803
|
let contents = {};
|
|
803
804
|
contents = (0, import_smithy_client._json)(data);
|
|
804
805
|
const response = {
|
|
@@ -811,7 +812,7 @@ var de_AddApplicationReferenceDataSourceCommand = /* @__PURE__ */ __name(async (
|
|
|
811
812
|
if (output.statusCode >= 300) {
|
|
812
813
|
return de_CommandError(output, context);
|
|
813
814
|
}
|
|
814
|
-
const data = await
|
|
815
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
815
816
|
let contents = {};
|
|
816
817
|
contents = (0, import_smithy_client._json)(data);
|
|
817
818
|
const response = {
|
|
@@ -824,7 +825,7 @@ var de_AddApplicationVpcConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
824
825
|
if (output.statusCode >= 300) {
|
|
825
826
|
return de_CommandError(output, context);
|
|
826
827
|
}
|
|
827
|
-
const data = await
|
|
828
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
828
829
|
let contents = {};
|
|
829
830
|
contents = (0, import_smithy_client._json)(data);
|
|
830
831
|
const response = {
|
|
@@ -837,7 +838,7 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
837
838
|
if (output.statusCode >= 300) {
|
|
838
839
|
return de_CommandError(output, context);
|
|
839
840
|
}
|
|
840
|
-
const data = await
|
|
841
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
841
842
|
let contents = {};
|
|
842
843
|
contents = de_CreateApplicationResponse(data, context);
|
|
843
844
|
const response = {
|
|
@@ -850,7 +851,7 @@ var de_CreateApplicationPresignedUrlCommand = /* @__PURE__ */ __name(async (outp
|
|
|
850
851
|
if (output.statusCode >= 300) {
|
|
851
852
|
return de_CommandError(output, context);
|
|
852
853
|
}
|
|
853
|
-
const data = await
|
|
854
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
854
855
|
let contents = {};
|
|
855
856
|
contents = (0, import_smithy_client._json)(data);
|
|
856
857
|
const response = {
|
|
@@ -863,7 +864,7 @@ var de_CreateApplicationSnapshotCommand = /* @__PURE__ */ __name(async (output,
|
|
|
863
864
|
if (output.statusCode >= 300) {
|
|
864
865
|
return de_CommandError(output, context);
|
|
865
866
|
}
|
|
866
|
-
const data = await
|
|
867
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
867
868
|
let contents = {};
|
|
868
869
|
contents = (0, import_smithy_client._json)(data);
|
|
869
870
|
const response = {
|
|
@@ -876,7 +877,7 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
876
877
|
if (output.statusCode >= 300) {
|
|
877
878
|
return de_CommandError(output, context);
|
|
878
879
|
}
|
|
879
|
-
const data = await
|
|
880
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
880
881
|
let contents = {};
|
|
881
882
|
contents = (0, import_smithy_client._json)(data);
|
|
882
883
|
const response = {
|
|
@@ -889,7 +890,7 @@ var de_DeleteApplicationCloudWatchLoggingOptionCommand = /* @__PURE__ */ __name(
|
|
|
889
890
|
if (output.statusCode >= 300) {
|
|
890
891
|
return de_CommandError(output, context);
|
|
891
892
|
}
|
|
892
|
-
const data = await
|
|
893
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
893
894
|
let contents = {};
|
|
894
895
|
contents = (0, import_smithy_client._json)(data);
|
|
895
896
|
const response = {
|
|
@@ -902,7 +903,7 @@ var de_DeleteApplicationInputProcessingConfigurationCommand = /* @__PURE__ */ __
|
|
|
902
903
|
if (output.statusCode >= 300) {
|
|
903
904
|
return de_CommandError(output, context);
|
|
904
905
|
}
|
|
905
|
-
const data = await
|
|
906
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
906
907
|
let contents = {};
|
|
907
908
|
contents = (0, import_smithy_client._json)(data);
|
|
908
909
|
const response = {
|
|
@@ -915,7 +916,7 @@ var de_DeleteApplicationOutputCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
915
916
|
if (output.statusCode >= 300) {
|
|
916
917
|
return de_CommandError(output, context);
|
|
917
918
|
}
|
|
918
|
-
const data = await
|
|
919
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
919
920
|
let contents = {};
|
|
920
921
|
contents = (0, import_smithy_client._json)(data);
|
|
921
922
|
const response = {
|
|
@@ -928,7 +929,7 @@ var de_DeleteApplicationReferenceDataSourceCommand = /* @__PURE__ */ __name(asyn
|
|
|
928
929
|
if (output.statusCode >= 300) {
|
|
929
930
|
return de_CommandError(output, context);
|
|
930
931
|
}
|
|
931
|
-
const data = await
|
|
932
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
932
933
|
let contents = {};
|
|
933
934
|
contents = (0, import_smithy_client._json)(data);
|
|
934
935
|
const response = {
|
|
@@ -941,7 +942,7 @@ var de_DeleteApplicationSnapshotCommand = /* @__PURE__ */ __name(async (output,
|
|
|
941
942
|
if (output.statusCode >= 300) {
|
|
942
943
|
return de_CommandError(output, context);
|
|
943
944
|
}
|
|
944
|
-
const data = await
|
|
945
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
945
946
|
let contents = {};
|
|
946
947
|
contents = (0, import_smithy_client._json)(data);
|
|
947
948
|
const response = {
|
|
@@ -954,7 +955,7 @@ var de_DeleteApplicationVpcConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
954
955
|
if (output.statusCode >= 300) {
|
|
955
956
|
return de_CommandError(output, context);
|
|
956
957
|
}
|
|
957
|
-
const data = await
|
|
958
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
958
959
|
let contents = {};
|
|
959
960
|
contents = (0, import_smithy_client._json)(data);
|
|
960
961
|
const response = {
|
|
@@ -967,7 +968,7 @@ var de_DescribeApplicationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
967
968
|
if (output.statusCode >= 300) {
|
|
968
969
|
return de_CommandError(output, context);
|
|
969
970
|
}
|
|
970
|
-
const data = await
|
|
971
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
971
972
|
let contents = {};
|
|
972
973
|
contents = de_DescribeApplicationResponse(data, context);
|
|
973
974
|
const response = {
|
|
@@ -980,7 +981,7 @@ var de_DescribeApplicationSnapshotCommand = /* @__PURE__ */ __name(async (output
|
|
|
980
981
|
if (output.statusCode >= 300) {
|
|
981
982
|
return de_CommandError(output, context);
|
|
982
983
|
}
|
|
983
|
-
const data = await
|
|
984
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
984
985
|
let contents = {};
|
|
985
986
|
contents = de_DescribeApplicationSnapshotResponse(data, context);
|
|
986
987
|
const response = {
|
|
@@ -993,7 +994,7 @@ var de_DescribeApplicationVersionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
993
994
|
if (output.statusCode >= 300) {
|
|
994
995
|
return de_CommandError(output, context);
|
|
995
996
|
}
|
|
996
|
-
const data = await
|
|
997
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
997
998
|
let contents = {};
|
|
998
999
|
contents = de_DescribeApplicationVersionResponse(data, context);
|
|
999
1000
|
const response = {
|
|
@@ -1006,7 +1007,7 @@ var de_DiscoverInputSchemaCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1006
1007
|
if (output.statusCode >= 300) {
|
|
1007
1008
|
return de_CommandError(output, context);
|
|
1008
1009
|
}
|
|
1009
|
-
const data = await
|
|
1010
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1010
1011
|
let contents = {};
|
|
1011
1012
|
contents = (0, import_smithy_client._json)(data);
|
|
1012
1013
|
const response = {
|
|
@@ -1019,7 +1020,7 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1019
1020
|
if (output.statusCode >= 300) {
|
|
1020
1021
|
return de_CommandError(output, context);
|
|
1021
1022
|
}
|
|
1022
|
-
const data = await
|
|
1023
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1023
1024
|
let contents = {};
|
|
1024
1025
|
contents = (0, import_smithy_client._json)(data);
|
|
1025
1026
|
const response = {
|
|
@@ -1032,7 +1033,7 @@ var de_ListApplicationSnapshotsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1032
1033
|
if (output.statusCode >= 300) {
|
|
1033
1034
|
return de_CommandError(output, context);
|
|
1034
1035
|
}
|
|
1035
|
-
const data = await
|
|
1036
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1036
1037
|
let contents = {};
|
|
1037
1038
|
contents = de_ListApplicationSnapshotsResponse(data, context);
|
|
1038
1039
|
const response = {
|
|
@@ -1045,7 +1046,7 @@ var de_ListApplicationVersionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1045
1046
|
if (output.statusCode >= 300) {
|
|
1046
1047
|
return de_CommandError(output, context);
|
|
1047
1048
|
}
|
|
1048
|
-
const data = await
|
|
1049
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1049
1050
|
let contents = {};
|
|
1050
1051
|
contents = (0, import_smithy_client._json)(data);
|
|
1051
1052
|
const response = {
|
|
@@ -1058,7 +1059,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1058
1059
|
if (output.statusCode >= 300) {
|
|
1059
1060
|
return de_CommandError(output, context);
|
|
1060
1061
|
}
|
|
1061
|
-
const data = await
|
|
1062
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1062
1063
|
let contents = {};
|
|
1063
1064
|
contents = (0, import_smithy_client._json)(data);
|
|
1064
1065
|
const response = {
|
|
@@ -1071,7 +1072,7 @@ var de_RollbackApplicationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1071
1072
|
if (output.statusCode >= 300) {
|
|
1072
1073
|
return de_CommandError(output, context);
|
|
1073
1074
|
}
|
|
1074
|
-
const data = await
|
|
1075
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1075
1076
|
let contents = {};
|
|
1076
1077
|
contents = de_RollbackApplicationResponse(data, context);
|
|
1077
1078
|
const response = {
|
|
@@ -1084,7 +1085,7 @@ var de_StartApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1084
1085
|
if (output.statusCode >= 300) {
|
|
1085
1086
|
return de_CommandError(output, context);
|
|
1086
1087
|
}
|
|
1087
|
-
const data = await
|
|
1088
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1088
1089
|
let contents = {};
|
|
1089
1090
|
contents = (0, import_smithy_client._json)(data);
|
|
1090
1091
|
const response = {
|
|
@@ -1097,7 +1098,7 @@ var de_StopApplicationCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1097
1098
|
if (output.statusCode >= 300) {
|
|
1098
1099
|
return de_CommandError(output, context);
|
|
1099
1100
|
}
|
|
1100
|
-
const data = await
|
|
1101
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1101
1102
|
let contents = {};
|
|
1102
1103
|
contents = (0, import_smithy_client._json)(data);
|
|
1103
1104
|
const response = {
|
|
@@ -1110,7 +1111,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1110
1111
|
if (output.statusCode >= 300) {
|
|
1111
1112
|
return de_CommandError(output, context);
|
|
1112
1113
|
}
|
|
1113
|
-
const data = await
|
|
1114
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1114
1115
|
let contents = {};
|
|
1115
1116
|
contents = (0, import_smithy_client._json)(data);
|
|
1116
1117
|
const response = {
|
|
@@ -1123,7 +1124,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1123
1124
|
if (output.statusCode >= 300) {
|
|
1124
1125
|
return de_CommandError(output, context);
|
|
1125
1126
|
}
|
|
1126
|
-
const data = await
|
|
1127
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1127
1128
|
let contents = {};
|
|
1128
1129
|
contents = (0, import_smithy_client._json)(data);
|
|
1129
1130
|
const response = {
|
|
@@ -1136,7 +1137,7 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1136
1137
|
if (output.statusCode >= 300) {
|
|
1137
1138
|
return de_CommandError(output, context);
|
|
1138
1139
|
}
|
|
1139
|
-
const data = await
|
|
1140
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1140
1141
|
let contents = {};
|
|
1141
1142
|
contents = de_UpdateApplicationResponse(data, context);
|
|
1142
1143
|
const response = {
|
|
@@ -1149,7 +1150,7 @@ var de_UpdateApplicationMaintenanceConfigurationCommand = /* @__PURE__ */ __name
|
|
|
1149
1150
|
if (output.statusCode >= 300) {
|
|
1150
1151
|
return de_CommandError(output, context);
|
|
1151
1152
|
}
|
|
1152
|
-
const data = await
|
|
1153
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1153
1154
|
let contents = {};
|
|
1154
1155
|
contents = (0, import_smithy_client._json)(data);
|
|
1155
1156
|
const response = {
|
|
@@ -1161,9 +1162,9 @@ var de_UpdateApplicationMaintenanceConfigurationCommand = /* @__PURE__ */ __name
|
|
|
1161
1162
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1162
1163
|
const parsedOutput = {
|
|
1163
1164
|
...output,
|
|
1164
|
-
body: await
|
|
1165
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1165
1166
|
};
|
|
1166
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1167
1168
|
switch (errorCode) {
|
|
1168
1169
|
case "ConcurrentModificationException":
|
|
1169
1170
|
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException":
|
|
@@ -1491,7 +1492,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1491
1492
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1492
1493
|
cfId: output.headers["x-amz-cf-id"]
|
|
1493
1494
|
}), "deserializeMetadata");
|
|
1494
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1495
1495
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(KinesisAnalyticsV2ServiceException);
|
|
1496
1496
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1497
1497
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1518,46 +1518,6 @@ function sharedHeaders(operation) {
|
|
|
1518
1518
|
};
|
|
1519
1519
|
}
|
|
1520
1520
|
__name(sharedHeaders, "sharedHeaders");
|
|
1521
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1522
|
-
if (encoded.length) {
|
|
1523
|
-
return JSON.parse(encoded);
|
|
1524
|
-
}
|
|
1525
|
-
return {};
|
|
1526
|
-
}), "parseBody");
|
|
1527
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1528
|
-
const value = await parseBody(errorBody, context);
|
|
1529
|
-
value.message = value.message ?? value.Message;
|
|
1530
|
-
return value;
|
|
1531
|
-
}, "parseErrorBody");
|
|
1532
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1533
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1534
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1535
|
-
let cleanValue = rawValue;
|
|
1536
|
-
if (typeof cleanValue === "number") {
|
|
1537
|
-
cleanValue = cleanValue.toString();
|
|
1538
|
-
}
|
|
1539
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1540
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1541
|
-
}
|
|
1542
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1543
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1544
|
-
}
|
|
1545
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1546
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1547
|
-
}
|
|
1548
|
-
return cleanValue;
|
|
1549
|
-
}, "sanitizeErrorCode");
|
|
1550
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1551
|
-
if (headerKey !== void 0) {
|
|
1552
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1553
|
-
}
|
|
1554
|
-
if (data.code !== void 0) {
|
|
1555
|
-
return sanitizeErrorCode(data.code);
|
|
1556
|
-
}
|
|
1557
|
-
if (data["__type"] !== void 0) {
|
|
1558
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1559
|
-
}
|
|
1560
|
-
}, "loadRestJsonErrorCode");
|
|
1561
1521
|
|
|
1562
1522
|
// src/commands/AddApplicationCloudWatchLoggingOptionCommand.ts
|
|
1563
1523
|
var _AddApplicationCloudWatchLoggingOptionCommand = class _AddApplicationCloudWatchLoggingOptionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { KinesisAnalyticsV2ServiceException as __BaseException } from "../models/KinesisAnalyticsV2ServiceException";
|
|
@@ -952,43 +953,3 @@ function sharedHeaders(operation) {
|
|
|
952
953
|
"x-amz-target": `KinesisAnalytics_20180523.${operation}`,
|
|
953
954
|
};
|
|
954
955
|
}
|
|
955
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
956
|
-
if (encoded.length) {
|
|
957
|
-
return JSON.parse(encoded);
|
|
958
|
-
}
|
|
959
|
-
return {};
|
|
960
|
-
});
|
|
961
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
962
|
-
const value = await parseBody(errorBody, context);
|
|
963
|
-
value.message = value.message ?? value.Message;
|
|
964
|
-
return value;
|
|
965
|
-
};
|
|
966
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
967
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
968
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
969
|
-
let cleanValue = rawValue;
|
|
970
|
-
if (typeof cleanValue === "number") {
|
|
971
|
-
cleanValue = cleanValue.toString();
|
|
972
|
-
}
|
|
973
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
974
|
-
cleanValue = cleanValue.split(",")[0];
|
|
975
|
-
}
|
|
976
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
977
|
-
cleanValue = cleanValue.split(":")[0];
|
|
978
|
-
}
|
|
979
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
980
|
-
cleanValue = cleanValue.split("#")[1];
|
|
981
|
-
}
|
|
982
|
-
return cleanValue;
|
|
983
|
-
};
|
|
984
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
985
|
-
if (headerKey !== undefined) {
|
|
986
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
987
|
-
}
|
|
988
|
-
if (data.code !== undefined) {
|
|
989
|
-
return sanitizeErrorCode(data.code);
|
|
990
|
-
}
|
|
991
|
-
if (data["__type"] !== undefined) {
|
|
992
|
-
return sanitizeErrorCode(data["__type"]);
|
|
993
|
-
}
|
|
994
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kinesis-analytics-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kinesis Analytics V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-kinesis-analytics-v2",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|