@aws-sdk/client-kinesis 3.523.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 +30 -70
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/Kinesis.js +0 -1
- package/dist-cjs/KinesisClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/AddTagsToStreamCommand.js +0 -1
- package/dist-cjs/commands/CreateStreamCommand.js +0 -1
- package/dist-cjs/commands/DecreaseStreamRetentionPeriodCommand.js +0 -1
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteStreamCommand.js +0 -1
- package/dist-cjs/commands/DeregisterStreamConsumerCommand.js +0 -1
- package/dist-cjs/commands/DescribeLimitsCommand.js +0 -1
- package/dist-cjs/commands/DescribeStreamCommand.js +0 -1
- package/dist-cjs/commands/DescribeStreamConsumerCommand.js +0 -1
- package/dist-cjs/commands/DescribeStreamSummaryCommand.js +0 -1
- package/dist-cjs/commands/DisableEnhancedMonitoringCommand.js +0 -1
- package/dist-cjs/commands/EnableEnhancedMonitoringCommand.js +0 -1
- package/dist-cjs/commands/GetRecordsCommand.js +0 -1
- package/dist-cjs/commands/GetResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/GetShardIteratorCommand.js +0 -1
- package/dist-cjs/commands/IncreaseStreamRetentionPeriodCommand.js +0 -1
- package/dist-cjs/commands/ListShardsCommand.js +0 -1
- package/dist-cjs/commands/ListStreamConsumersCommand.js +0 -1
- package/dist-cjs/commands/ListStreamsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForStreamCommand.js +0 -1
- package/dist-cjs/commands/MergeShardsCommand.js +0 -1
- package/dist-cjs/commands/PutRecordCommand.js +0 -1
- package/dist-cjs/commands/PutRecordsCommand.js +0 -1
- package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/RegisterStreamConsumerCommand.js +0 -1
- package/dist-cjs/commands/RemoveTagsFromStreamCommand.js +0 -1
- package/dist-cjs/commands/SplitShardCommand.js +0 -1
- package/dist-cjs/commands/StartStreamEncryptionCommand.js +0 -1
- package/dist-cjs/commands/StopStreamEncryptionCommand.js +0 -1
- package/dist-cjs/commands/SubscribeToShardCommand.js +0 -1
- package/dist-cjs/commands/UpdateShardCountCommand.js +0 -1
- package/dist-cjs/commands/UpdateStreamModeCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/KinesisServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListStreamConsumersPaginator.js +0 -1
- package/dist-cjs/pagination/ListStreamsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
- package/dist-cjs/waiters/index.js +0 -1
- package/dist-cjs/waiters/waitForStreamExists.js +0 -1
- package/dist-cjs/waiters/waitForStreamNotExists.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -248,6 +248,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
248
248
|
var import_types = require("@smithy/types");
|
|
249
249
|
|
|
250
250
|
// src/protocols/Aws_json1_1.ts
|
|
251
|
+
var import_core2 = require("@aws-sdk/core");
|
|
251
252
|
|
|
252
253
|
|
|
253
254
|
|
|
@@ -897,7 +898,7 @@ var de_DescribeLimitsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
897
898
|
if (output.statusCode >= 300) {
|
|
898
899
|
return de_CommandError(output, context);
|
|
899
900
|
}
|
|
900
|
-
const data = await
|
|
901
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
901
902
|
let contents = {};
|
|
902
903
|
contents = (0, import_smithy_client._json)(data);
|
|
903
904
|
const response = {
|
|
@@ -910,7 +911,7 @@ var de_DescribeStreamCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
910
911
|
if (output.statusCode >= 300) {
|
|
911
912
|
return de_CommandError(output, context);
|
|
912
913
|
}
|
|
913
|
-
const data = await
|
|
914
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
914
915
|
let contents = {};
|
|
915
916
|
contents = de_DescribeStreamOutput(data, context);
|
|
916
917
|
const response = {
|
|
@@ -923,7 +924,7 @@ var de_DescribeStreamConsumerCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
923
924
|
if (output.statusCode >= 300) {
|
|
924
925
|
return de_CommandError(output, context);
|
|
925
926
|
}
|
|
926
|
-
const data = await
|
|
927
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
927
928
|
let contents = {};
|
|
928
929
|
contents = de_DescribeStreamConsumerOutput(data, context);
|
|
929
930
|
const response = {
|
|
@@ -936,7 +937,7 @@ var de_DescribeStreamSummaryCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
936
937
|
if (output.statusCode >= 300) {
|
|
937
938
|
return de_CommandError(output, context);
|
|
938
939
|
}
|
|
939
|
-
const data = await
|
|
940
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
940
941
|
let contents = {};
|
|
941
942
|
contents = de_DescribeStreamSummaryOutput(data, context);
|
|
942
943
|
const response = {
|
|
@@ -949,7 +950,7 @@ var de_DisableEnhancedMonitoringCommand = /* @__PURE__ */ __name(async (output,
|
|
|
949
950
|
if (output.statusCode >= 300) {
|
|
950
951
|
return de_CommandError(output, context);
|
|
951
952
|
}
|
|
952
|
-
const data = await
|
|
953
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
953
954
|
let contents = {};
|
|
954
955
|
contents = (0, import_smithy_client._json)(data);
|
|
955
956
|
const response = {
|
|
@@ -962,7 +963,7 @@ var de_EnableEnhancedMonitoringCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
962
963
|
if (output.statusCode >= 300) {
|
|
963
964
|
return de_CommandError(output, context);
|
|
964
965
|
}
|
|
965
|
-
const data = await
|
|
966
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
966
967
|
let contents = {};
|
|
967
968
|
contents = (0, import_smithy_client._json)(data);
|
|
968
969
|
const response = {
|
|
@@ -975,7 +976,7 @@ var de_GetRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
975
976
|
if (output.statusCode >= 300) {
|
|
976
977
|
return de_CommandError(output, context);
|
|
977
978
|
}
|
|
978
|
-
const data = await
|
|
979
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
979
980
|
let contents = {};
|
|
980
981
|
contents = de_GetRecordsOutput(data, context);
|
|
981
982
|
const response = {
|
|
@@ -988,7 +989,7 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
988
989
|
if (output.statusCode >= 300) {
|
|
989
990
|
return de_CommandError(output, context);
|
|
990
991
|
}
|
|
991
|
-
const data = await
|
|
992
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
992
993
|
let contents = {};
|
|
993
994
|
contents = (0, import_smithy_client._json)(data);
|
|
994
995
|
const response = {
|
|
@@ -1001,7 +1002,7 @@ var de_GetShardIteratorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1001
1002
|
if (output.statusCode >= 300) {
|
|
1002
1003
|
return de_CommandError(output, context);
|
|
1003
1004
|
}
|
|
1004
|
-
const data = await
|
|
1005
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1005
1006
|
let contents = {};
|
|
1006
1007
|
contents = (0, import_smithy_client._json)(data);
|
|
1007
1008
|
const response = {
|
|
@@ -1024,7 +1025,7 @@ var de_ListShardsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1024
1025
|
if (output.statusCode >= 300) {
|
|
1025
1026
|
return de_CommandError(output, context);
|
|
1026
1027
|
}
|
|
1027
|
-
const data = await
|
|
1028
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1028
1029
|
let contents = {};
|
|
1029
1030
|
contents = (0, import_smithy_client._json)(data);
|
|
1030
1031
|
const response = {
|
|
@@ -1037,7 +1038,7 @@ var de_ListStreamConsumersCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1037
1038
|
if (output.statusCode >= 300) {
|
|
1038
1039
|
return de_CommandError(output, context);
|
|
1039
1040
|
}
|
|
1040
|
-
const data = await
|
|
1041
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1041
1042
|
let contents = {};
|
|
1042
1043
|
contents = de_ListStreamConsumersOutput(data, context);
|
|
1043
1044
|
const response = {
|
|
@@ -1050,7 +1051,7 @@ var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1050
1051
|
if (output.statusCode >= 300) {
|
|
1051
1052
|
return de_CommandError(output, context);
|
|
1052
1053
|
}
|
|
1053
|
-
const data = await
|
|
1054
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1054
1055
|
let contents = {};
|
|
1055
1056
|
contents = de_ListStreamsOutput(data, context);
|
|
1056
1057
|
const response = {
|
|
@@ -1063,7 +1064,7 @@ var de_ListTagsForStreamCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1063
1064
|
if (output.statusCode >= 300) {
|
|
1064
1065
|
return de_CommandError(output, context);
|
|
1065
1066
|
}
|
|
1066
|
-
const data = await
|
|
1067
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1067
1068
|
let contents = {};
|
|
1068
1069
|
contents = (0, import_smithy_client._json)(data);
|
|
1069
1070
|
const response = {
|
|
@@ -1086,7 +1087,7 @@ var de_PutRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1086
1087
|
if (output.statusCode >= 300) {
|
|
1087
1088
|
return de_CommandError(output, context);
|
|
1088
1089
|
}
|
|
1089
|
-
const data = await
|
|
1090
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1090
1091
|
let contents = {};
|
|
1091
1092
|
contents = (0, import_smithy_client._json)(data);
|
|
1092
1093
|
const response = {
|
|
@@ -1099,7 +1100,7 @@ var de_PutRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1099
1100
|
if (output.statusCode >= 300) {
|
|
1100
1101
|
return de_CommandError(output, context);
|
|
1101
1102
|
}
|
|
1102
|
-
const data = await
|
|
1103
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1103
1104
|
let contents = {};
|
|
1104
1105
|
contents = (0, import_smithy_client._json)(data);
|
|
1105
1106
|
const response = {
|
|
@@ -1122,7 +1123,7 @@ var de_RegisterStreamConsumerCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1122
1123
|
if (output.statusCode >= 300) {
|
|
1123
1124
|
return de_CommandError(output, context);
|
|
1124
1125
|
}
|
|
1125
|
-
const data = await
|
|
1126
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1126
1127
|
let contents = {};
|
|
1127
1128
|
contents = de_RegisterStreamConsumerOutput(data, context);
|
|
1128
1129
|
const response = {
|
|
@@ -1186,7 +1187,7 @@ var de_UpdateShardCountCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1186
1187
|
if (output.statusCode >= 300) {
|
|
1187
1188
|
return de_CommandError(output, context);
|
|
1188
1189
|
}
|
|
1189
|
-
const data = await
|
|
1190
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1190
1191
|
let contents = {};
|
|
1191
1192
|
contents = (0, import_smithy_client._json)(data);
|
|
1192
1193
|
const response = {
|
|
@@ -1208,9 +1209,9 @@ var de_UpdateStreamModeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1208
1209
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1209
1210
|
const parsedOutput = {
|
|
1210
1211
|
...output,
|
|
1211
|
-
body: await
|
|
1212
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1212
1213
|
};
|
|
1213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1214
1215
|
switch (errorCode) {
|
|
1215
1216
|
case "AccessDeniedException":
|
|
1216
1217
|
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
@@ -1462,69 +1463,69 @@ var de_SubscribeToShardEventStream = /* @__PURE__ */ __name((output, context) =>
|
|
|
1462
1463
|
var de_InternalFailureException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1463
1464
|
const parsedOutput = {
|
|
1464
1465
|
...output,
|
|
1465
|
-
body: await
|
|
1466
|
+
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1466
1467
|
};
|
|
1467
1468
|
return de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1468
1469
|
}, "de_InternalFailureException_event");
|
|
1469
1470
|
var de_KMSAccessDeniedException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1470
1471
|
const parsedOutput = {
|
|
1471
1472
|
...output,
|
|
1472
|
-
body: await
|
|
1473
|
+
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1473
1474
|
};
|
|
1474
1475
|
return de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1475
1476
|
}, "de_KMSAccessDeniedException_event");
|
|
1476
1477
|
var de_KMSDisabledException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1477
1478
|
const parsedOutput = {
|
|
1478
1479
|
...output,
|
|
1479
|
-
body: await
|
|
1480
|
+
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1480
1481
|
};
|
|
1481
1482
|
return de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1482
1483
|
}, "de_KMSDisabledException_event");
|
|
1483
1484
|
var de_KMSInvalidStateException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1484
1485
|
const parsedOutput = {
|
|
1485
1486
|
...output,
|
|
1486
|
-
body: await
|
|
1487
|
+
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1487
1488
|
};
|
|
1488
1489
|
return de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1489
1490
|
}, "de_KMSInvalidStateException_event");
|
|
1490
1491
|
var de_KMSNotFoundException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1491
1492
|
const parsedOutput = {
|
|
1492
1493
|
...output,
|
|
1493
|
-
body: await
|
|
1494
|
+
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1494
1495
|
};
|
|
1495
1496
|
return de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1496
1497
|
}, "de_KMSNotFoundException_event");
|
|
1497
1498
|
var de_KMSOptInRequired_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1498
1499
|
const parsedOutput = {
|
|
1499
1500
|
...output,
|
|
1500
|
-
body: await
|
|
1501
|
+
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1501
1502
|
};
|
|
1502
1503
|
return de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1503
1504
|
}, "de_KMSOptInRequired_event");
|
|
1504
1505
|
var de_KMSThrottlingException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1505
1506
|
const parsedOutput = {
|
|
1506
1507
|
...output,
|
|
1507
|
-
body: await
|
|
1508
|
+
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1508
1509
|
};
|
|
1509
1510
|
return de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1510
1511
|
}, "de_KMSThrottlingException_event");
|
|
1511
1512
|
var de_ResourceInUseException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1512
1513
|
const parsedOutput = {
|
|
1513
1514
|
...output,
|
|
1514
|
-
body: await
|
|
1515
|
+
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1515
1516
|
};
|
|
1516
1517
|
return de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1517
1518
|
}, "de_ResourceInUseException_event");
|
|
1518
1519
|
var de_ResourceNotFoundException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1519
1520
|
const parsedOutput = {
|
|
1520
1521
|
...output,
|
|
1521
|
-
body: await
|
|
1522
|
+
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1522
1523
|
};
|
|
1523
1524
|
return de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1524
1525
|
}, "de_ResourceNotFoundException_event");
|
|
1525
1526
|
var de_SubscribeToShardEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1526
1527
|
const contents = {};
|
|
1527
|
-
const data = await
|
|
1528
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1528
1529
|
Object.assign(contents, de_SubscribeToShardEvent(data, context));
|
|
1529
1530
|
return contents;
|
|
1530
1531
|
}, "de_SubscribeToShardEvent_event");
|
|
@@ -1755,7 +1756,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1755
1756
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1756
1757
|
cfId: output.headers["x-amz-cf-id"]
|
|
1757
1758
|
}), "deserializeMetadata");
|
|
1758
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1759
1759
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(KinesisServiceException);
|
|
1760
1760
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1761
1761
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1782,46 +1782,6 @@ function sharedHeaders(operation) {
|
|
|
1782
1782
|
};
|
|
1783
1783
|
}
|
|
1784
1784
|
__name(sharedHeaders, "sharedHeaders");
|
|
1785
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1786
|
-
if (encoded.length) {
|
|
1787
|
-
return JSON.parse(encoded);
|
|
1788
|
-
}
|
|
1789
|
-
return {};
|
|
1790
|
-
}), "parseBody");
|
|
1791
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1792
|
-
const value = await parseBody(errorBody, context);
|
|
1793
|
-
value.message = value.message ?? value.Message;
|
|
1794
|
-
return value;
|
|
1795
|
-
}, "parseErrorBody");
|
|
1796
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1797
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1798
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1799
|
-
let cleanValue = rawValue;
|
|
1800
|
-
if (typeof cleanValue === "number") {
|
|
1801
|
-
cleanValue = cleanValue.toString();
|
|
1802
|
-
}
|
|
1803
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1804
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1805
|
-
}
|
|
1806
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1807
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1808
|
-
}
|
|
1809
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1810
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1811
|
-
}
|
|
1812
|
-
return cleanValue;
|
|
1813
|
-
}, "sanitizeErrorCode");
|
|
1814
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1815
|
-
if (headerKey !== void 0) {
|
|
1816
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1817
|
-
}
|
|
1818
|
-
if (data.code !== void 0) {
|
|
1819
|
-
return sanitizeErrorCode(data.code);
|
|
1820
|
-
}
|
|
1821
|
-
if (data["__type"] !== void 0) {
|
|
1822
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1823
|
-
}
|
|
1824
|
-
}, "loadRestJsonErrorCode");
|
|
1825
1785
|
|
|
1826
1786
|
// src/commands/AddTagsToStreamCommand.ts
|
|
1827
1787
|
var _AddTagsToStreamCommand = class _AddTagsToStreamCommand 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, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { KinesisServiceException as __BaseException } from "../models/KinesisServiceException";
|
|
@@ -1147,43 +1148,3 @@ function sharedHeaders(operation) {
|
|
|
1147
1148
|
"x-amz-target": `Kinesis_20131202.${operation}`,
|
|
1148
1149
|
};
|
|
1149
1150
|
}
|
|
1150
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1151
|
-
if (encoded.length) {
|
|
1152
|
-
return JSON.parse(encoded);
|
|
1153
|
-
}
|
|
1154
|
-
return {};
|
|
1155
|
-
});
|
|
1156
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1157
|
-
const value = await parseBody(errorBody, context);
|
|
1158
|
-
value.message = value.message ?? value.Message;
|
|
1159
|
-
return value;
|
|
1160
|
-
};
|
|
1161
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1162
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1163
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1164
|
-
let cleanValue = rawValue;
|
|
1165
|
-
if (typeof cleanValue === "number") {
|
|
1166
|
-
cleanValue = cleanValue.toString();
|
|
1167
|
-
}
|
|
1168
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1169
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1170
|
-
}
|
|
1171
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1172
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1173
|
-
}
|
|
1174
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1175
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1176
|
-
}
|
|
1177
|
-
return cleanValue;
|
|
1178
|
-
};
|
|
1179
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1180
|
-
if (headerKey !== undefined) {
|
|
1181
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1182
|
-
}
|
|
1183
|
-
if (data.code !== undefined) {
|
|
1184
|
-
return sanitizeErrorCode(data.code);
|
|
1185
|
-
}
|
|
1186
|
-
if (data["__type"] !== undefined) {
|
|
1187
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1188
|
-
}
|
|
1189
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kinesis",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kinesis 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",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
25
|
+
"@aws-sdk/core": "3.529.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
32
32
|
"@aws-sdk/types": "3.523.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.1.
|
|
37
|
-
"@smithy/core": "^1.3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
37
|
+
"@smithy/core": "^1.3.5",
|
|
38
38
|
"@smithy/eventstream-serde-browser": "^2.1.3",
|
|
39
39
|
"@smithy/eventstream-serde-config-resolver": "^2.1.3",
|
|
40
40
|
"@smithy/eventstream-serde-node": "^2.1.3",
|
|
@@ -42,22 +42,22 @@
|
|
|
42
42
|
"@smithy/hash-node": "^2.1.3",
|
|
43
43
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
45
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
46
|
-
"@smithy/middleware-retry": "^2.1.
|
|
45
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
46
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
47
47
|
"@smithy/middleware-serde": "^2.1.3",
|
|
48
48
|
"@smithy/middleware-stack": "^2.1.3",
|
|
49
|
-
"@smithy/node-config-provider": "^2.2.
|
|
49
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
50
50
|
"@smithy/node-http-handler": "^2.4.1",
|
|
51
51
|
"@smithy/protocol-http": "^3.2.1",
|
|
52
|
-
"@smithy/smithy-client": "^2.4.
|
|
52
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
53
53
|
"@smithy/types": "^2.10.1",
|
|
54
54
|
"@smithy/url-parser": "^2.1.3",
|
|
55
55
|
"@smithy/util-base64": "^2.1.1",
|
|
56
56
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
57
57
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
60
|
-
"@smithy/util-endpoints": "^1.1.
|
|
58
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
59
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
60
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
61
61
|
"@smithy/util-middleware": "^2.1.3",
|
|
62
62
|
"@smithy/util-retry": "^2.1.3",
|
|
63
63
|
"@smithy/util-utf8": "^2.1.1",
|
package/dist-cjs/Kinesis.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|