@aws-sdk/client-kinesis 3.180.0 → 3.183.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/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +35 -29
- package/dist-es/Kinesis.js +118 -125
- package/dist-es/KinesisClient.js +23 -29
- package/dist-es/commands/AddTagsToStreamCommand.js +22 -29
- package/dist-es/commands/CreateStreamCommand.js +22 -29
- package/dist-es/commands/DecreaseStreamRetentionPeriodCommand.js +22 -29
- package/dist-es/commands/DeleteStreamCommand.js +22 -29
- package/dist-es/commands/DeregisterStreamConsumerCommand.js +22 -29
- package/dist-es/commands/DescribeLimitsCommand.js +21 -28
- package/dist-es/commands/DescribeStreamCommand.js +21 -28
- package/dist-es/commands/DescribeStreamConsumerCommand.js +21 -28
- package/dist-es/commands/DescribeStreamSummaryCommand.js +21 -28
- package/dist-es/commands/DisableEnhancedMonitoringCommand.js +21 -28
- package/dist-es/commands/EnableEnhancedMonitoringCommand.js +21 -28
- package/dist-es/commands/GetRecordsCommand.js +21 -28
- package/dist-es/commands/GetShardIteratorCommand.js +21 -28
- package/dist-es/commands/IncreaseStreamRetentionPeriodCommand.js +22 -29
- package/dist-es/commands/ListShardsCommand.js +21 -28
- package/dist-es/commands/ListStreamConsumersCommand.js +21 -28
- package/dist-es/commands/ListStreamsCommand.js +21 -28
- package/dist-es/commands/ListTagsForStreamCommand.js +21 -28
- package/dist-es/commands/MergeShardsCommand.js +22 -29
- package/dist-es/commands/PutRecordCommand.js +21 -28
- package/dist-es/commands/PutRecordsCommand.js +21 -28
- package/dist-es/commands/RegisterStreamConsumerCommand.js +21 -28
- package/dist-es/commands/RemoveTagsFromStreamCommand.js +22 -29
- package/dist-es/commands/SplitShardCommand.js +22 -29
- package/dist-es/commands/StartStreamEncryptionCommand.js +22 -29
- package/dist-es/commands/StopStreamEncryptionCommand.js +22 -29
- package/dist-es/commands/SubscribeToShardCommand.js +21 -28
- package/dist-es/commands/UpdateShardCountCommand.js +21 -28
- package/dist-es/commands/UpdateStreamModeCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/KinesisServiceException.js +5 -10
- package/dist-es/models/models_0.js +355 -232
- package/dist-es/pagination/ListStreamConsumersPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +2071 -2765
- package/dist-es/runtimeConfig.browser.js +27 -12
- package/dist-es/runtimeConfig.js +32 -19
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForStreamExists.js +28 -48
- package/dist-es/waiters/waitForStreamNotExists.js +22 -42
- package/package.json +37 -37
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-kinesis
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-kinesis
|
|
@@ -310,7 +310,7 @@ exports.deserializeAws_json1_1AddTagsToStreamCommand = deserializeAws_json1_1Add
|
|
|
310
310
|
const deserializeAws_json1_1AddTagsToStreamCommandError = async (output, context) => {
|
|
311
311
|
const parsedOutput = {
|
|
312
312
|
...output,
|
|
313
|
-
body: await
|
|
313
|
+
body: await parseErrorBody(output.body, context),
|
|
314
314
|
};
|
|
315
315
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
316
316
|
switch (errorCode) {
|
|
@@ -350,7 +350,7 @@ exports.deserializeAws_json1_1CreateStreamCommand = deserializeAws_json1_1Create
|
|
|
350
350
|
const deserializeAws_json1_1CreateStreamCommandError = async (output, context) => {
|
|
351
351
|
const parsedOutput = {
|
|
352
352
|
...output,
|
|
353
|
-
body: await
|
|
353
|
+
body: await parseErrorBody(output.body, context),
|
|
354
354
|
};
|
|
355
355
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
356
356
|
switch (errorCode) {
|
|
@@ -387,7 +387,7 @@ exports.deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand = deserialize
|
|
|
387
387
|
const deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = async (output, context) => {
|
|
388
388
|
const parsedOutput = {
|
|
389
389
|
...output,
|
|
390
|
-
body: await
|
|
390
|
+
body: await parseErrorBody(output.body, context),
|
|
391
391
|
};
|
|
392
392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
393
393
|
switch (errorCode) {
|
|
@@ -427,7 +427,7 @@ exports.deserializeAws_json1_1DeleteStreamCommand = deserializeAws_json1_1Delete
|
|
|
427
427
|
const deserializeAws_json1_1DeleteStreamCommandError = async (output, context) => {
|
|
428
428
|
const parsedOutput = {
|
|
429
429
|
...output,
|
|
430
|
-
body: await
|
|
430
|
+
body: await parseErrorBody(output.body, context),
|
|
431
431
|
};
|
|
432
432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
433
433
|
switch (errorCode) {
|
|
@@ -464,7 +464,7 @@ exports.deserializeAws_json1_1DeregisterStreamConsumerCommand = deserializeAws_j
|
|
|
464
464
|
const deserializeAws_json1_1DeregisterStreamConsumerCommandError = async (output, context) => {
|
|
465
465
|
const parsedOutput = {
|
|
466
466
|
...output,
|
|
467
|
-
body: await
|
|
467
|
+
body: await parseErrorBody(output.body, context),
|
|
468
468
|
};
|
|
469
469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
470
470
|
switch (errorCode) {
|
|
@@ -504,7 +504,7 @@ exports.deserializeAws_json1_1DescribeLimitsCommand = deserializeAws_json1_1Desc
|
|
|
504
504
|
const deserializeAws_json1_1DescribeLimitsCommandError = async (output, context) => {
|
|
505
505
|
const parsedOutput = {
|
|
506
506
|
...output,
|
|
507
|
-
body: await
|
|
507
|
+
body: await parseErrorBody(output.body, context),
|
|
508
508
|
};
|
|
509
509
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
510
510
|
switch (errorCode) {
|
|
@@ -538,7 +538,7 @@ exports.deserializeAws_json1_1DescribeStreamCommand = deserializeAws_json1_1Desc
|
|
|
538
538
|
const deserializeAws_json1_1DescribeStreamCommandError = async (output, context) => {
|
|
539
539
|
const parsedOutput = {
|
|
540
540
|
...output,
|
|
541
|
-
body: await
|
|
541
|
+
body: await parseErrorBody(output.body, context),
|
|
542
542
|
};
|
|
543
543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
544
544
|
switch (errorCode) {
|
|
@@ -575,7 +575,7 @@ exports.deserializeAws_json1_1DescribeStreamConsumerCommand = deserializeAws_jso
|
|
|
575
575
|
const deserializeAws_json1_1DescribeStreamConsumerCommandError = async (output, context) => {
|
|
576
576
|
const parsedOutput = {
|
|
577
577
|
...output,
|
|
578
|
-
body: await
|
|
578
|
+
body: await parseErrorBody(output.body, context),
|
|
579
579
|
};
|
|
580
580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
581
581
|
switch (errorCode) {
|
|
@@ -615,7 +615,7 @@ exports.deserializeAws_json1_1DescribeStreamSummaryCommand = deserializeAws_json
|
|
|
615
615
|
const deserializeAws_json1_1DescribeStreamSummaryCommandError = async (output, context) => {
|
|
616
616
|
const parsedOutput = {
|
|
617
617
|
...output,
|
|
618
|
-
body: await
|
|
618
|
+
body: await parseErrorBody(output.body, context),
|
|
619
619
|
};
|
|
620
620
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
621
|
switch (errorCode) {
|
|
@@ -652,7 +652,7 @@ exports.deserializeAws_json1_1DisableEnhancedMonitoringCommand = deserializeAws_
|
|
|
652
652
|
const deserializeAws_json1_1DisableEnhancedMonitoringCommandError = async (output, context) => {
|
|
653
653
|
const parsedOutput = {
|
|
654
654
|
...output,
|
|
655
|
-
body: await
|
|
655
|
+
body: await parseErrorBody(output.body, context),
|
|
656
656
|
};
|
|
657
657
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
658
|
switch (errorCode) {
|
|
@@ -695,7 +695,7 @@ exports.deserializeAws_json1_1EnableEnhancedMonitoringCommand = deserializeAws_j
|
|
|
695
695
|
const deserializeAws_json1_1EnableEnhancedMonitoringCommandError = async (output, context) => {
|
|
696
696
|
const parsedOutput = {
|
|
697
697
|
...output,
|
|
698
|
-
body: await
|
|
698
|
+
body: await parseErrorBody(output.body, context),
|
|
699
699
|
};
|
|
700
700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
701
|
switch (errorCode) {
|
|
@@ -738,7 +738,7 @@ exports.deserializeAws_json1_1GetRecordsCommand = deserializeAws_json1_1GetRecor
|
|
|
738
738
|
const deserializeAws_json1_1GetRecordsCommandError = async (output, context) => {
|
|
739
739
|
const parsedOutput = {
|
|
740
740
|
...output,
|
|
741
|
-
body: await
|
|
741
|
+
body: await parseErrorBody(output.body, context),
|
|
742
742
|
};
|
|
743
743
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
744
|
switch (errorCode) {
|
|
@@ -799,7 +799,7 @@ exports.deserializeAws_json1_1GetShardIteratorCommand = deserializeAws_json1_1Ge
|
|
|
799
799
|
const deserializeAws_json1_1GetShardIteratorCommandError = async (output, context) => {
|
|
800
800
|
const parsedOutput = {
|
|
801
801
|
...output,
|
|
802
|
-
body: await
|
|
802
|
+
body: await parseErrorBody(output.body, context),
|
|
803
803
|
};
|
|
804
804
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
805
|
switch (errorCode) {
|
|
@@ -836,7 +836,7 @@ exports.deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand = deserialize
|
|
|
836
836
|
const deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = async (output, context) => {
|
|
837
837
|
const parsedOutput = {
|
|
838
838
|
...output,
|
|
839
|
-
body: await
|
|
839
|
+
body: await parseErrorBody(output.body, context),
|
|
840
840
|
};
|
|
841
841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
842
|
switch (errorCode) {
|
|
@@ -879,7 +879,7 @@ exports.deserializeAws_json1_1ListShardsCommand = deserializeAws_json1_1ListShar
|
|
|
879
879
|
const deserializeAws_json1_1ListShardsCommandError = async (output, context) => {
|
|
880
880
|
const parsedOutput = {
|
|
881
881
|
...output,
|
|
882
|
-
body: await
|
|
882
|
+
body: await parseErrorBody(output.body, context),
|
|
883
883
|
};
|
|
884
884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
885
|
switch (errorCode) {
|
|
@@ -925,7 +925,7 @@ exports.deserializeAws_json1_1ListStreamConsumersCommand = deserializeAws_json1_
|
|
|
925
925
|
const deserializeAws_json1_1ListStreamConsumersCommandError = async (output, context) => {
|
|
926
926
|
const parsedOutput = {
|
|
927
927
|
...output,
|
|
928
|
-
body: await
|
|
928
|
+
body: await parseErrorBody(output.body, context),
|
|
929
929
|
};
|
|
930
930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
931
|
switch (errorCode) {
|
|
@@ -971,7 +971,7 @@ exports.deserializeAws_json1_1ListStreamsCommand = deserializeAws_json1_1ListStr
|
|
|
971
971
|
const deserializeAws_json1_1ListStreamsCommandError = async (output, context) => {
|
|
972
972
|
const parsedOutput = {
|
|
973
973
|
...output,
|
|
974
|
-
body: await
|
|
974
|
+
body: await parseErrorBody(output.body, context),
|
|
975
975
|
};
|
|
976
976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
977
|
switch (errorCode) {
|
|
@@ -1005,7 +1005,7 @@ exports.deserializeAws_json1_1ListTagsForStreamCommand = deserializeAws_json1_1L
|
|
|
1005
1005
|
const deserializeAws_json1_1ListTagsForStreamCommandError = async (output, context) => {
|
|
1006
1006
|
const parsedOutput = {
|
|
1007
1007
|
...output,
|
|
1008
|
-
body: await
|
|
1008
|
+
body: await parseErrorBody(output.body, context),
|
|
1009
1009
|
};
|
|
1010
1010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
1011
|
switch (errorCode) {
|
|
@@ -1042,7 +1042,7 @@ exports.deserializeAws_json1_1MergeShardsCommand = deserializeAws_json1_1MergeSh
|
|
|
1042
1042
|
const deserializeAws_json1_1MergeShardsCommandError = async (output, context) => {
|
|
1043
1043
|
const parsedOutput = {
|
|
1044
1044
|
...output,
|
|
1045
|
-
body: await
|
|
1045
|
+
body: await parseErrorBody(output.body, context),
|
|
1046
1046
|
};
|
|
1047
1047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
1048
|
switch (errorCode) {
|
|
@@ -1088,7 +1088,7 @@ exports.deserializeAws_json1_1PutRecordCommand = deserializeAws_json1_1PutRecord
|
|
|
1088
1088
|
const deserializeAws_json1_1PutRecordCommandError = async (output, context) => {
|
|
1089
1089
|
const parsedOutput = {
|
|
1090
1090
|
...output,
|
|
1091
|
-
body: await
|
|
1091
|
+
body: await parseErrorBody(output.body, context),
|
|
1092
1092
|
};
|
|
1093
1093
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
1094
|
switch (errorCode) {
|
|
@@ -1146,7 +1146,7 @@ exports.deserializeAws_json1_1PutRecordsCommand = deserializeAws_json1_1PutRecor
|
|
|
1146
1146
|
const deserializeAws_json1_1PutRecordsCommandError = async (output, context) => {
|
|
1147
1147
|
const parsedOutput = {
|
|
1148
1148
|
...output,
|
|
1149
|
-
body: await
|
|
1149
|
+
body: await parseErrorBody(output.body, context),
|
|
1150
1150
|
};
|
|
1151
1151
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
1152
|
switch (errorCode) {
|
|
@@ -1204,7 +1204,7 @@ exports.deserializeAws_json1_1RegisterStreamConsumerCommand = deserializeAws_jso
|
|
|
1204
1204
|
const deserializeAws_json1_1RegisterStreamConsumerCommandError = async (output, context) => {
|
|
1205
1205
|
const parsedOutput = {
|
|
1206
1206
|
...output,
|
|
1207
|
-
body: await
|
|
1207
|
+
body: await parseErrorBody(output.body, context),
|
|
1208
1208
|
};
|
|
1209
1209
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1210
1210
|
switch (errorCode) {
|
|
@@ -1244,7 +1244,7 @@ exports.deserializeAws_json1_1RemoveTagsFromStreamCommand = deserializeAws_json1
|
|
|
1244
1244
|
const deserializeAws_json1_1RemoveTagsFromStreamCommandError = async (output, context) => {
|
|
1245
1245
|
const parsedOutput = {
|
|
1246
1246
|
...output,
|
|
1247
|
-
body: await
|
|
1247
|
+
body: await parseErrorBody(output.body, context),
|
|
1248
1248
|
};
|
|
1249
1249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1250
1250
|
switch (errorCode) {
|
|
@@ -1284,7 +1284,7 @@ exports.deserializeAws_json1_1SplitShardCommand = deserializeAws_json1_1SplitSha
|
|
|
1284
1284
|
const deserializeAws_json1_1SplitShardCommandError = async (output, context) => {
|
|
1285
1285
|
const parsedOutput = {
|
|
1286
1286
|
...output,
|
|
1287
|
-
body: await
|
|
1287
|
+
body: await parseErrorBody(output.body, context),
|
|
1288
1288
|
};
|
|
1289
1289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
1290
|
switch (errorCode) {
|
|
@@ -1327,7 +1327,7 @@ exports.deserializeAws_json1_1StartStreamEncryptionCommand = deserializeAws_json
|
|
|
1327
1327
|
const deserializeAws_json1_1StartStreamEncryptionCommandError = async (output, context) => {
|
|
1328
1328
|
const parsedOutput = {
|
|
1329
1329
|
...output,
|
|
1330
|
-
body: await
|
|
1330
|
+
body: await parseErrorBody(output.body, context),
|
|
1331
1331
|
};
|
|
1332
1332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
1333
|
switch (errorCode) {
|
|
@@ -1385,7 +1385,7 @@ exports.deserializeAws_json1_1StopStreamEncryptionCommand = deserializeAws_json1
|
|
|
1385
1385
|
const deserializeAws_json1_1StopStreamEncryptionCommandError = async (output, context) => {
|
|
1386
1386
|
const parsedOutput = {
|
|
1387
1387
|
...output,
|
|
1388
|
-
body: await
|
|
1388
|
+
body: await parseErrorBody(output.body, context),
|
|
1389
1389
|
};
|
|
1390
1390
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
1391
|
switch (errorCode) {
|
|
@@ -1426,7 +1426,7 @@ exports.deserializeAws_json1_1SubscribeToShardCommand = deserializeAws_json1_1Su
|
|
|
1426
1426
|
const deserializeAws_json1_1SubscribeToShardCommandError = async (output, context) => {
|
|
1427
1427
|
const parsedOutput = {
|
|
1428
1428
|
...output,
|
|
1429
|
-
body: await
|
|
1429
|
+
body: await parseErrorBody(output.body, context),
|
|
1430
1430
|
};
|
|
1431
1431
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
1432
|
switch (errorCode) {
|
|
@@ -1469,7 +1469,7 @@ exports.deserializeAws_json1_1UpdateShardCountCommand = deserializeAws_json1_1Up
|
|
|
1469
1469
|
const deserializeAws_json1_1UpdateShardCountCommandError = async (output, context) => {
|
|
1470
1470
|
const parsedOutput = {
|
|
1471
1471
|
...output,
|
|
1472
|
-
body: await
|
|
1472
|
+
body: await parseErrorBody(output.body, context),
|
|
1473
1473
|
};
|
|
1474
1474
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
1475
|
switch (errorCode) {
|
|
@@ -1512,7 +1512,7 @@ exports.deserializeAws_json1_1UpdateStreamModeCommand = deserializeAws_json1_1Up
|
|
|
1512
1512
|
const deserializeAws_json1_1UpdateStreamModeCommandError = async (output, context) => {
|
|
1513
1513
|
const parsedOutput = {
|
|
1514
1514
|
...output,
|
|
1515
|
-
body: await
|
|
1515
|
+
body: await parseErrorBody(output.body, context),
|
|
1516
1516
|
};
|
|
1517
1517
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
1518
|
switch (errorCode) {
|
|
@@ -2528,6 +2528,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2528
2528
|
}
|
|
2529
2529
|
return {};
|
|
2530
2530
|
});
|
|
2531
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2532
|
+
var _a;
|
|
2533
|
+
const value = await parseBody(errorBody, context);
|
|
2534
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2535
|
+
return value;
|
|
2536
|
+
};
|
|
2531
2537
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2532
2538
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2533
2539
|
const sanitizeErrorCode = (rawValue) => {
|