@aws-sdk/client-kinesis 3.231.0 → 3.232.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/commands/AddTagsToStreamCommand.js +2 -0
- package/dist-cjs/commands/DecreaseStreamRetentionPeriodCommand.js +2 -0
- package/dist-cjs/commands/DeleteStreamCommand.js +2 -0
- package/dist-cjs/commands/DeregisterStreamConsumerCommand.js +3 -0
- package/dist-cjs/commands/DescribeStreamCommand.js +2 -0
- package/dist-cjs/commands/DescribeStreamConsumerCommand.js +3 -0
- package/dist-cjs/commands/DescribeStreamSummaryCommand.js +2 -0
- package/dist-cjs/commands/DisableEnhancedMonitoringCommand.js +2 -0
- package/dist-cjs/commands/EnableEnhancedMonitoringCommand.js +2 -0
- package/dist-cjs/commands/GetRecordsCommand.js +2 -0
- package/dist-cjs/commands/GetShardIteratorCommand.js +2 -0
- package/dist-cjs/commands/IncreaseStreamRetentionPeriodCommand.js +2 -0
- package/dist-cjs/commands/ListShardsCommand.js +2 -0
- package/dist-cjs/commands/ListStreamConsumersCommand.js +2 -0
- package/dist-cjs/commands/ListTagsForStreamCommand.js +2 -0
- package/dist-cjs/commands/MergeShardsCommand.js +2 -0
- package/dist-cjs/commands/PutRecordCommand.js +2 -0
- package/dist-cjs/commands/PutRecordsCommand.js +2 -0
- package/dist-cjs/commands/RegisterStreamConsumerCommand.js +2 -0
- package/dist-cjs/commands/RemoveTagsFromStreamCommand.js +2 -0
- package/dist-cjs/commands/SplitShardCommand.js +2 -0
- package/dist-cjs/commands/StartStreamEncryptionCommand.js +2 -0
- package/dist-cjs/commands/StopStreamEncryptionCommand.js +2 -0
- package/dist-cjs/commands/SubscribeToShardCommand.js +2 -0
- package/dist-cjs/commands/UpdateShardCountCommand.js +2 -0
- package/dist-cjs/commands/UpdateStreamModeCommand.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +1069 -5
- package/dist-cjs/models/models_0.js +19 -2
- package/dist-cjs/pagination/ListStreamsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +143 -0
- package/dist-es/commands/AddTagsToStreamCommand.js +2 -0
- package/dist-es/commands/DecreaseStreamRetentionPeriodCommand.js +2 -0
- package/dist-es/commands/DeleteStreamCommand.js +2 -0
- package/dist-es/commands/DeregisterStreamConsumerCommand.js +3 -0
- package/dist-es/commands/DescribeStreamCommand.js +2 -0
- package/dist-es/commands/DescribeStreamConsumerCommand.js +3 -0
- package/dist-es/commands/DescribeStreamSummaryCommand.js +2 -0
- package/dist-es/commands/DisableEnhancedMonitoringCommand.js +2 -0
- package/dist-es/commands/EnableEnhancedMonitoringCommand.js +2 -0
- package/dist-es/commands/GetRecordsCommand.js +2 -0
- package/dist-es/commands/GetShardIteratorCommand.js +2 -0
- package/dist-es/commands/IncreaseStreamRetentionPeriodCommand.js +2 -0
- package/dist-es/commands/ListShardsCommand.js +2 -0
- package/dist-es/commands/ListStreamConsumersCommand.js +2 -0
- package/dist-es/commands/ListTagsForStreamCommand.js +2 -0
- package/dist-es/commands/MergeShardsCommand.js +2 -0
- package/dist-es/commands/PutRecordCommand.js +2 -0
- package/dist-es/commands/PutRecordsCommand.js +2 -0
- package/dist-es/commands/RegisterStreamConsumerCommand.js +2 -0
- package/dist-es/commands/RemoveTagsFromStreamCommand.js +2 -0
- package/dist-es/commands/SplitShardCommand.js +2 -0
- package/dist-es/commands/StartStreamEncryptionCommand.js +2 -0
- package/dist-es/commands/StopStreamEncryptionCommand.js +2 -0
- package/dist-es/commands/SubscribeToShardCommand.js +2 -0
- package/dist-es/commands/UpdateShardCountCommand.js +2 -0
- package/dist-es/commands/UpdateStreamModeCommand.js +2 -0
- package/dist-es/endpoint/ruleset.js +1069 -5
- package/dist-es/models/models_0.js +15 -0
- package/dist-es/pagination/ListStreamsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +144 -1
- package/dist-types/Kinesis.d.ts +213 -138
- package/dist-types/KinesisClient.d.ts +1 -1
- package/dist-types/commands/AddTagsToStreamCommand.d.ts +6 -2
- package/dist-types/commands/CreateStreamCommand.d.ts +19 -16
- package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +5 -1
- package/dist-types/commands/DeleteStreamCommand.d.ts +9 -6
- package/dist-types/commands/DeregisterStreamConsumerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLimitsCommand.d.ts +2 -2
- package/dist-types/commands/DescribeStreamCommand.d.ts +10 -7
- package/dist-types/commands/DescribeStreamConsumerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +6 -2
- package/dist-types/commands/DisableEnhancedMonitoringCommand.d.ts +4 -0
- package/dist-types/commands/EnableEnhancedMonitoringCommand.d.ts +4 -0
- package/dist-types/commands/GetRecordsCommand.d.ts +11 -16
- package/dist-types/commands/GetShardIteratorCommand.d.ts +10 -6
- package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +5 -1
- package/dist-types/commands/ListShardsCommand.d.ts +7 -3
- package/dist-types/commands/ListStreamConsumersCommand.d.ts +1 -1
- package/dist-types/commands/ListStreamsCommand.d.ts +3 -3
- package/dist-types/commands/ListTagsForStreamCommand.d.ts +4 -0
- package/dist-types/commands/MergeShardsCommand.d.ts +13 -8
- package/dist-types/commands/PutRecordCommand.d.ts +14 -10
- package/dist-types/commands/PutRecordsCommand.d.ts +16 -12
- package/dist-types/commands/RegisterStreamConsumerCommand.d.ts +3 -3
- package/dist-types/commands/RemoveTagsFromStreamCommand.d.ts +6 -2
- package/dist-types/commands/SplitShardCommand.d.ts +15 -10
- package/dist-types/commands/StartStreamEncryptionCommand.d.ts +7 -3
- package/dist-types/commands/StopStreamEncryptionCommand.d.ts +7 -3
- package/dist-types/commands/SubscribeToShardCommand.d.ts +4 -4
- package/dist-types/commands/UpdateShardCountCommand.d.ts +19 -14
- package/dist-types/endpoint/EndpointParameters.d.ts +4 -1
- package/dist-types/models/models_0.d.ts +351 -214
- package/dist-types/pagination/ListStreamsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
- package/dist-types/ts3.4/models/models_0.d.ts +60 -18
- package/dist-types/ts3.4/pagination/ListStreamsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { KinesisServiceException as __BaseException } from "./KinesisServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "AccessDeniedException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "AccessDeniedException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
2
14
|
export class InvalidArgumentException extends __BaseException {
|
|
3
15
|
constructor(opts) {
|
|
4
16
|
super({
|
|
@@ -374,6 +386,9 @@ export const ListStreamConsumersOutputFilterSensitiveLog = (obj) => ({
|
|
|
374
386
|
export const ListStreamsInputFilterSensitiveLog = (obj) => ({
|
|
375
387
|
...obj,
|
|
376
388
|
});
|
|
389
|
+
export const StreamSummaryFilterSensitiveLog = (obj) => ({
|
|
390
|
+
...obj,
|
|
391
|
+
});
|
|
377
392
|
export const ListStreamsOutputFilterSensitiveLog = (obj) => ({
|
|
378
393
|
...obj,
|
|
379
394
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListStreamsCommand } from "../commands/ListStreamsCommand";
|
|
2
|
+
import { Kinesis } from "../Kinesis";
|
|
3
|
+
import { KinesisClient } from "../KinesisClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListStreamsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listStreams(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListStreams(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Kinesis) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof KinesisClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Kinesis | KinesisClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { KinesisServiceException as __BaseException } from "../models/KinesisServiceException";
|
|
4
|
-
import { ExpiredIteratorException, ExpiredNextTokenException, InternalFailureException, InvalidArgumentException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, LimitExceededException, ProvisionedThroughputExceededException, ResourceInUseException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, ExpiredIteratorException, ExpiredNextTokenException, InternalFailureException, InvalidArgumentException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, LimitExceededException, ProvisionedThroughputExceededException, ResourceInUseException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const serializeAws_json1_1AddTagsToStreamCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -280,6 +280,9 @@ const deserializeAws_json1_1AddTagsToStreamCommandError = async (output, context
|
|
|
280
280
|
};
|
|
281
281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
282
282
|
switch (errorCode) {
|
|
283
|
+
case "AccessDeniedException":
|
|
284
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
285
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
283
286
|
case "InvalidArgumentException":
|
|
284
287
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
285
288
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -355,6 +358,9 @@ const deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = async (o
|
|
|
355
358
|
};
|
|
356
359
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
357
360
|
switch (errorCode) {
|
|
361
|
+
case "AccessDeniedException":
|
|
362
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
363
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
358
364
|
case "InvalidArgumentException":
|
|
359
365
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
360
366
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -394,6 +400,12 @@ const deserializeAws_json1_1DeleteStreamCommandError = async (output, context) =
|
|
|
394
400
|
};
|
|
395
401
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
396
402
|
switch (errorCode) {
|
|
403
|
+
case "AccessDeniedException":
|
|
404
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
405
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
406
|
+
case "InvalidArgumentException":
|
|
407
|
+
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
408
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
397
409
|
case "LimitExceededException":
|
|
398
410
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
399
411
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
@@ -502,6 +514,12 @@ const deserializeAws_json1_1DescribeStreamCommandError = async (output, context)
|
|
|
502
514
|
};
|
|
503
515
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
504
516
|
switch (errorCode) {
|
|
517
|
+
case "AccessDeniedException":
|
|
518
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
519
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
520
|
+
case "InvalidArgumentException":
|
|
521
|
+
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
522
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
505
523
|
case "LimitExceededException":
|
|
506
524
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
507
525
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
@@ -577,6 +595,12 @@ const deserializeAws_json1_1DescribeStreamSummaryCommandError = async (output, c
|
|
|
577
595
|
};
|
|
578
596
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
579
597
|
switch (errorCode) {
|
|
598
|
+
case "AccessDeniedException":
|
|
599
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
600
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
601
|
+
case "InvalidArgumentException":
|
|
602
|
+
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
603
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
580
604
|
case "LimitExceededException":
|
|
581
605
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
582
606
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
@@ -613,6 +637,9 @@ const deserializeAws_json1_1DisableEnhancedMonitoringCommandError = async (outpu
|
|
|
613
637
|
};
|
|
614
638
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
639
|
switch (errorCode) {
|
|
640
|
+
case "AccessDeniedException":
|
|
641
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
642
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
616
643
|
case "InvalidArgumentException":
|
|
617
644
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
618
645
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -655,6 +682,9 @@ const deserializeAws_json1_1EnableEnhancedMonitoringCommandError = async (output
|
|
|
655
682
|
};
|
|
656
683
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
684
|
switch (errorCode) {
|
|
685
|
+
case "AccessDeniedException":
|
|
686
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
687
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
658
688
|
case "InvalidArgumentException":
|
|
659
689
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
660
690
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -697,6 +727,9 @@ const deserializeAws_json1_1GetRecordsCommandError = async (output, context) =>
|
|
|
697
727
|
};
|
|
698
728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
699
729
|
switch (errorCode) {
|
|
730
|
+
case "AccessDeniedException":
|
|
731
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
732
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
700
733
|
case "ExpiredIteratorException":
|
|
701
734
|
case "com.amazonaws.kinesis#ExpiredIteratorException":
|
|
702
735
|
throw await deserializeAws_json1_1ExpiredIteratorExceptionResponse(parsedOutput, context);
|
|
@@ -757,6 +790,9 @@ const deserializeAws_json1_1GetShardIteratorCommandError = async (output, contex
|
|
|
757
790
|
};
|
|
758
791
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
792
|
switch (errorCode) {
|
|
793
|
+
case "AccessDeniedException":
|
|
794
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
795
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
760
796
|
case "InvalidArgumentException":
|
|
761
797
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
762
798
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -793,6 +829,9 @@ const deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = async (o
|
|
|
793
829
|
};
|
|
794
830
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
831
|
switch (errorCode) {
|
|
832
|
+
case "AccessDeniedException":
|
|
833
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
834
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
796
835
|
case "InvalidArgumentException":
|
|
797
836
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
798
837
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -835,6 +874,9 @@ const deserializeAws_json1_1ListShardsCommandError = async (output, context) =>
|
|
|
835
874
|
};
|
|
836
875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
876
|
switch (errorCode) {
|
|
877
|
+
case "AccessDeniedException":
|
|
878
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
879
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
838
880
|
case "ExpiredNextTokenException":
|
|
839
881
|
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
840
882
|
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
@@ -925,6 +967,12 @@ const deserializeAws_json1_1ListStreamsCommandError = async (output, context) =>
|
|
|
925
967
|
};
|
|
926
968
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
969
|
switch (errorCode) {
|
|
970
|
+
case "ExpiredNextTokenException":
|
|
971
|
+
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
972
|
+
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
973
|
+
case "InvalidArgumentException":
|
|
974
|
+
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
975
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
928
976
|
case "LimitExceededException":
|
|
929
977
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
930
978
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
@@ -958,6 +1006,9 @@ const deserializeAws_json1_1ListTagsForStreamCommandError = async (output, conte
|
|
|
958
1006
|
};
|
|
959
1007
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
1008
|
switch (errorCode) {
|
|
1009
|
+
case "AccessDeniedException":
|
|
1010
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1011
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
961
1012
|
case "InvalidArgumentException":
|
|
962
1013
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
963
1014
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -994,6 +1045,9 @@ const deserializeAws_json1_1MergeShardsCommandError = async (output, context) =>
|
|
|
994
1045
|
};
|
|
995
1046
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
1047
|
switch (errorCode) {
|
|
1048
|
+
case "AccessDeniedException":
|
|
1049
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1050
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
997
1051
|
case "InvalidArgumentException":
|
|
998
1052
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
999
1053
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1039,6 +1093,9 @@ const deserializeAws_json1_1PutRecordCommandError = async (output, context) => {
|
|
|
1039
1093
|
};
|
|
1040
1094
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
1095
|
switch (errorCode) {
|
|
1096
|
+
case "AccessDeniedException":
|
|
1097
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1098
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1042
1099
|
case "InvalidArgumentException":
|
|
1043
1100
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1044
1101
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1096,6 +1153,9 @@ const deserializeAws_json1_1PutRecordsCommandError = async (output, context) =>
|
|
|
1096
1153
|
};
|
|
1097
1154
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
1155
|
switch (errorCode) {
|
|
1156
|
+
case "AccessDeniedException":
|
|
1157
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1158
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1099
1159
|
case "InvalidArgumentException":
|
|
1100
1160
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1101
1161
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1192,6 +1252,9 @@ const deserializeAws_json1_1RemoveTagsFromStreamCommandError = async (output, co
|
|
|
1192
1252
|
};
|
|
1193
1253
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1254
|
switch (errorCode) {
|
|
1255
|
+
case "AccessDeniedException":
|
|
1256
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1257
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1195
1258
|
case "InvalidArgumentException":
|
|
1196
1259
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1197
1260
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1231,6 +1294,9 @@ const deserializeAws_json1_1SplitShardCommandError = async (output, context) =>
|
|
|
1231
1294
|
};
|
|
1232
1295
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
1296
|
switch (errorCode) {
|
|
1297
|
+
case "AccessDeniedException":
|
|
1298
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1299
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1234
1300
|
case "InvalidArgumentException":
|
|
1235
1301
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1236
1302
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1273,6 +1339,9 @@ const deserializeAws_json1_1StartStreamEncryptionCommandError = async (output, c
|
|
|
1273
1339
|
};
|
|
1274
1340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
1341
|
switch (errorCode) {
|
|
1342
|
+
case "AccessDeniedException":
|
|
1343
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1344
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1276
1345
|
case "InvalidArgumentException":
|
|
1277
1346
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1278
1347
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1330,6 +1399,9 @@ const deserializeAws_json1_1StopStreamEncryptionCommandError = async (output, co
|
|
|
1330
1399
|
};
|
|
1331
1400
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
1401
|
switch (errorCode) {
|
|
1402
|
+
case "AccessDeniedException":
|
|
1403
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1404
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1333
1405
|
case "InvalidArgumentException":
|
|
1334
1406
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1335
1407
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1370,6 +1442,9 @@ const deserializeAws_json1_1SubscribeToShardCommandError = async (output, contex
|
|
|
1370
1442
|
};
|
|
1371
1443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
1444
|
switch (errorCode) {
|
|
1445
|
+
case "AccessDeniedException":
|
|
1446
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1447
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1373
1448
|
case "InvalidArgumentException":
|
|
1374
1449
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1375
1450
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1412,6 +1487,9 @@ const deserializeAws_json1_1UpdateShardCountCommandError = async (output, contex
|
|
|
1412
1487
|
};
|
|
1413
1488
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
1489
|
switch (errorCode) {
|
|
1490
|
+
case "AccessDeniedException":
|
|
1491
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1492
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1415
1493
|
case "InvalidArgumentException":
|
|
1416
1494
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1417
1495
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1476,6 +1554,15 @@ const deserializeAws_json1_1UpdateStreamModeCommandError = async (output, contex
|
|
|
1476
1554
|
});
|
|
1477
1555
|
}
|
|
1478
1556
|
};
|
|
1557
|
+
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1558
|
+
const body = parsedOutput.body;
|
|
1559
|
+
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
1560
|
+
const exception = new AccessDeniedException({
|
|
1561
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1562
|
+
...deserialized,
|
|
1563
|
+
});
|
|
1564
|
+
return __decorateServiceException(exception, body);
|
|
1565
|
+
};
|
|
1479
1566
|
const deserializeAws_json1_1ExpiredIteratorExceptionResponse = async (parsedOutput, context) => {
|
|
1480
1567
|
const body = parsedOutput.body;
|
|
1481
1568
|
const deserialized = deserializeAws_json1_1ExpiredIteratorException(body, context);
|
|
@@ -1737,6 +1824,7 @@ const deserializeAws_json1_1InternalFailureExceptionResponse = async (parsedOutp
|
|
|
1737
1824
|
};
|
|
1738
1825
|
const serializeAws_json1_1AddTagsToStreamInput = (input, context) => {
|
|
1739
1826
|
return {
|
|
1827
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1740
1828
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1741
1829
|
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
1742
1830
|
};
|
|
@@ -1753,12 +1841,14 @@ const serializeAws_json1_1CreateStreamInput = (input, context) => {
|
|
|
1753
1841
|
const serializeAws_json1_1DecreaseStreamRetentionPeriodInput = (input, context) => {
|
|
1754
1842
|
return {
|
|
1755
1843
|
...(input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }),
|
|
1844
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1756
1845
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1757
1846
|
};
|
|
1758
1847
|
};
|
|
1759
1848
|
const serializeAws_json1_1DeleteStreamInput = (input, context) => {
|
|
1760
1849
|
return {
|
|
1761
1850
|
...(input.EnforceConsumerDeletion != null && { EnforceConsumerDeletion: input.EnforceConsumerDeletion }),
|
|
1851
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1762
1852
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1763
1853
|
};
|
|
1764
1854
|
};
|
|
@@ -1783,11 +1873,13 @@ const serializeAws_json1_1DescribeStreamInput = (input, context) => {
|
|
|
1783
1873
|
return {
|
|
1784
1874
|
...(input.ExclusiveStartShardId != null && { ExclusiveStartShardId: input.ExclusiveStartShardId }),
|
|
1785
1875
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
1876
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1786
1877
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1787
1878
|
};
|
|
1788
1879
|
};
|
|
1789
1880
|
const serializeAws_json1_1DescribeStreamSummaryInput = (input, context) => {
|
|
1790
1881
|
return {
|
|
1882
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1791
1883
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1792
1884
|
};
|
|
1793
1885
|
};
|
|
@@ -1796,6 +1888,7 @@ const serializeAws_json1_1DisableEnhancedMonitoringInput = (input, context) => {
|
|
|
1796
1888
|
...(input.ShardLevelMetrics != null && {
|
|
1797
1889
|
ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
|
|
1798
1890
|
}),
|
|
1891
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1799
1892
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1800
1893
|
};
|
|
1801
1894
|
};
|
|
@@ -1804,6 +1897,7 @@ const serializeAws_json1_1EnableEnhancedMonitoringInput = (input, context) => {
|
|
|
1804
1897
|
...(input.ShardLevelMetrics != null && {
|
|
1805
1898
|
ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
|
|
1806
1899
|
}),
|
|
1900
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1807
1901
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1808
1902
|
};
|
|
1809
1903
|
};
|
|
@@ -1811,6 +1905,7 @@ const serializeAws_json1_1GetRecordsInput = (input, context) => {
|
|
|
1811
1905
|
return {
|
|
1812
1906
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
1813
1907
|
...(input.ShardIterator != null && { ShardIterator: input.ShardIterator }),
|
|
1908
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1814
1909
|
};
|
|
1815
1910
|
};
|
|
1816
1911
|
const serializeAws_json1_1GetShardIteratorInput = (input, context) => {
|
|
@@ -1818,6 +1913,7 @@ const serializeAws_json1_1GetShardIteratorInput = (input, context) => {
|
|
|
1818
1913
|
...(input.ShardId != null && { ShardId: input.ShardId }),
|
|
1819
1914
|
...(input.ShardIteratorType != null && { ShardIteratorType: input.ShardIteratorType }),
|
|
1820
1915
|
...(input.StartingSequenceNumber != null && { StartingSequenceNumber: input.StartingSequenceNumber }),
|
|
1916
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1821
1917
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1822
1918
|
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
1823
1919
|
};
|
|
@@ -1825,6 +1921,7 @@ const serializeAws_json1_1GetShardIteratorInput = (input, context) => {
|
|
|
1825
1921
|
const serializeAws_json1_1IncreaseStreamRetentionPeriodInput = (input, context) => {
|
|
1826
1922
|
return {
|
|
1827
1923
|
...(input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }),
|
|
1924
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1828
1925
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1829
1926
|
};
|
|
1830
1927
|
};
|
|
@@ -1834,6 +1931,7 @@ const serializeAws_json1_1ListShardsInput = (input, context) => {
|
|
|
1834
1931
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1835
1932
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1836
1933
|
...(input.ShardFilter != null && { ShardFilter: serializeAws_json1_1ShardFilter(input.ShardFilter, context) }),
|
|
1934
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1837
1935
|
...(input.StreamCreationTimestamp != null && {
|
|
1838
1936
|
StreamCreationTimestamp: Math.round(input.StreamCreationTimestamp.getTime() / 1000),
|
|
1839
1937
|
}),
|
|
@@ -1854,12 +1952,14 @@ const serializeAws_json1_1ListStreamsInput = (input, context) => {
|
|
|
1854
1952
|
return {
|
|
1855
1953
|
...(input.ExclusiveStartStreamName != null && { ExclusiveStartStreamName: input.ExclusiveStartStreamName }),
|
|
1856
1954
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
1955
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1857
1956
|
};
|
|
1858
1957
|
};
|
|
1859
1958
|
const serializeAws_json1_1ListTagsForStreamInput = (input, context) => {
|
|
1860
1959
|
return {
|
|
1861
1960
|
...(input.ExclusiveStartTagKey != null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey }),
|
|
1862
1961
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
1962
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1863
1963
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1864
1964
|
};
|
|
1865
1965
|
};
|
|
@@ -1867,6 +1967,7 @@ const serializeAws_json1_1MergeShardsInput = (input, context) => {
|
|
|
1867
1967
|
return {
|
|
1868
1968
|
...(input.AdjacentShardToMerge != null && { AdjacentShardToMerge: input.AdjacentShardToMerge }),
|
|
1869
1969
|
...(input.ShardToMerge != null && { ShardToMerge: input.ShardToMerge }),
|
|
1970
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1870
1971
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1871
1972
|
};
|
|
1872
1973
|
};
|
|
@@ -1883,12 +1984,14 @@ const serializeAws_json1_1PutRecordInput = (input, context) => {
|
|
|
1883
1984
|
...(input.ExplicitHashKey != null && { ExplicitHashKey: input.ExplicitHashKey }),
|
|
1884
1985
|
...(input.PartitionKey != null && { PartitionKey: input.PartitionKey }),
|
|
1885
1986
|
...(input.SequenceNumberForOrdering != null && { SequenceNumberForOrdering: input.SequenceNumberForOrdering }),
|
|
1987
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1886
1988
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1887
1989
|
};
|
|
1888
1990
|
};
|
|
1889
1991
|
const serializeAws_json1_1PutRecordsInput = (input, context) => {
|
|
1890
1992
|
return {
|
|
1891
1993
|
...(input.Records != null && { Records: serializeAws_json1_1PutRecordsRequestEntryList(input.Records, context) }),
|
|
1994
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1892
1995
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1893
1996
|
};
|
|
1894
1997
|
};
|
|
@@ -1914,6 +2017,7 @@ const serializeAws_json1_1RegisterStreamConsumerInput = (input, context) => {
|
|
|
1914
2017
|
};
|
|
1915
2018
|
const serializeAws_json1_1RemoveTagsFromStreamInput = (input, context) => {
|
|
1916
2019
|
return {
|
|
2020
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1917
2021
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1918
2022
|
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1919
2023
|
};
|
|
@@ -1929,6 +2033,7 @@ const serializeAws_json1_1SplitShardInput = (input, context) => {
|
|
|
1929
2033
|
return {
|
|
1930
2034
|
...(input.NewStartingHashKey != null && { NewStartingHashKey: input.NewStartingHashKey }),
|
|
1931
2035
|
...(input.ShardToSplit != null && { ShardToSplit: input.ShardToSplit }),
|
|
2036
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1932
2037
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1933
2038
|
};
|
|
1934
2039
|
};
|
|
@@ -1943,6 +2048,7 @@ const serializeAws_json1_1StartStreamEncryptionInput = (input, context) => {
|
|
|
1943
2048
|
return {
|
|
1944
2049
|
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
1945
2050
|
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
2051
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1946
2052
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1947
2053
|
};
|
|
1948
2054
|
};
|
|
@@ -1950,6 +2056,7 @@ const serializeAws_json1_1StopStreamEncryptionInput = (input, context) => {
|
|
|
1950
2056
|
return {
|
|
1951
2057
|
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
1952
2058
|
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
2059
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1953
2060
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1954
2061
|
};
|
|
1955
2062
|
};
|
|
@@ -1986,6 +2093,7 @@ const serializeAws_json1_1TagMap = (input, context) => {
|
|
|
1986
2093
|
const serializeAws_json1_1UpdateShardCountInput = (input, context) => {
|
|
1987
2094
|
return {
|
|
1988
2095
|
...(input.ScalingType != null && { ScalingType: input.ScalingType }),
|
|
2096
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1989
2097
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1990
2098
|
...(input.TargetShardCount != null && { TargetShardCount: input.TargetShardCount }),
|
|
1991
2099
|
};
|
|
@@ -1998,6 +2106,11 @@ const serializeAws_json1_1UpdateStreamModeInput = (input, context) => {
|
|
|
1998
2106
|
}),
|
|
1999
2107
|
};
|
|
2000
2108
|
};
|
|
2109
|
+
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
2110
|
+
return {
|
|
2111
|
+
message: __expectString(output.message),
|
|
2112
|
+
};
|
|
2113
|
+
};
|
|
2001
2114
|
const deserializeAws_json1_1ChildShard = (output, context) => {
|
|
2002
2115
|
return {
|
|
2003
2116
|
HashKeyRange: output.HashKeyRange != null ? deserializeAws_json1_1HashKeyRange(output.HashKeyRange, context) : undefined,
|
|
@@ -2103,6 +2216,7 @@ const deserializeAws_json1_1EnhancedMonitoringOutput = (output, context) => {
|
|
|
2103
2216
|
DesiredShardLevelMetrics: output.DesiredShardLevelMetrics != null
|
|
2104
2217
|
? deserializeAws_json1_1MetricsNameList(output.DesiredShardLevelMetrics, context)
|
|
2105
2218
|
: undefined,
|
|
2219
|
+
StreamARN: __expectString(output.StreamARN),
|
|
2106
2220
|
StreamName: __expectString(output.StreamName),
|
|
2107
2221
|
};
|
|
2108
2222
|
};
|
|
@@ -2195,7 +2309,11 @@ const deserializeAws_json1_1ListStreamConsumersOutput = (output, context) => {
|
|
|
2195
2309
|
const deserializeAws_json1_1ListStreamsOutput = (output, context) => {
|
|
2196
2310
|
return {
|
|
2197
2311
|
HasMoreStreams: __expectBoolean(output.HasMoreStreams),
|
|
2312
|
+
NextToken: __expectString(output.NextToken),
|
|
2198
2313
|
StreamNames: output.StreamNames != null ? deserializeAws_json1_1StreamNameList(output.StreamNames, context) : undefined,
|
|
2314
|
+
StreamSummaries: output.StreamSummaries != null
|
|
2315
|
+
? deserializeAws_json1_1StreamSummaryList(output.StreamSummaries, context)
|
|
2316
|
+
: undefined,
|
|
2199
2317
|
};
|
|
2200
2318
|
};
|
|
2201
2319
|
const deserializeAws_json1_1ListTagsForStreamOutput = (output, context) => {
|
|
@@ -2387,6 +2505,30 @@ const deserializeAws_json1_1StreamNameList = (output, context) => {
|
|
|
2387
2505
|
});
|
|
2388
2506
|
return retVal;
|
|
2389
2507
|
};
|
|
2508
|
+
const deserializeAws_json1_1StreamSummary = (output, context) => {
|
|
2509
|
+
return {
|
|
2510
|
+
StreamARN: __expectString(output.StreamARN),
|
|
2511
|
+
StreamCreationTimestamp: output.StreamCreationTimestamp != null
|
|
2512
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StreamCreationTimestamp)))
|
|
2513
|
+
: undefined,
|
|
2514
|
+
StreamModeDetails: output.StreamModeDetails != null
|
|
2515
|
+
? deserializeAws_json1_1StreamModeDetails(output.StreamModeDetails, context)
|
|
2516
|
+
: undefined,
|
|
2517
|
+
StreamName: __expectString(output.StreamName),
|
|
2518
|
+
StreamStatus: __expectString(output.StreamStatus),
|
|
2519
|
+
};
|
|
2520
|
+
};
|
|
2521
|
+
const deserializeAws_json1_1StreamSummaryList = (output, context) => {
|
|
2522
|
+
const retVal = (output || [])
|
|
2523
|
+
.filter((e) => e != null)
|
|
2524
|
+
.map((entry) => {
|
|
2525
|
+
if (entry === null) {
|
|
2526
|
+
return null;
|
|
2527
|
+
}
|
|
2528
|
+
return deserializeAws_json1_1StreamSummary(entry, context);
|
|
2529
|
+
});
|
|
2530
|
+
return retVal;
|
|
2531
|
+
};
|
|
2390
2532
|
const deserializeAws_json1_1SubscribeToShardEvent = (output, context) => {
|
|
2391
2533
|
return {
|
|
2392
2534
|
ChildShards: output.ChildShards != null ? deserializeAws_json1_1ChildShardList(output.ChildShards, context) : undefined,
|
|
@@ -2415,6 +2557,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
2415
2557
|
const deserializeAws_json1_1UpdateShardCountOutput = (output, context) => {
|
|
2416
2558
|
return {
|
|
2417
2559
|
CurrentShardCount: __expectInt32(output.CurrentShardCount),
|
|
2560
|
+
StreamARN: __expectString(output.StreamARN),
|
|
2418
2561
|
StreamName: __expectString(output.StreamName),
|
|
2419
2562
|
TargetShardCount: __expectInt32(output.TargetShardCount),
|
|
2420
2563
|
};
|