@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,8 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateStreamModeInputFilterSensitiveLog = exports.UpdateShardCountOutputFilterSensitiveLog = exports.UpdateShardCountInputFilterSensitiveLog = exports.SubscribeToShardOutputFilterSensitiveLog = exports.SubscribeToShardEventStreamFilterSensitiveLog = exports.SubscribeToShardEventFilterSensitiveLog = exports.SubscribeToShardInputFilterSensitiveLog = exports.StartingPositionFilterSensitiveLog = exports.StopStreamEncryptionInputFilterSensitiveLog = exports.StartStreamEncryptionInputFilterSensitiveLog = exports.SplitShardInputFilterSensitiveLog = exports.RemoveTagsFromStreamInputFilterSensitiveLog = exports.RegisterStreamConsumerOutputFilterSensitiveLog = exports.RegisterStreamConsumerInputFilterSensitiveLog = exports.PutRecordsOutputFilterSensitiveLog = exports.PutRecordsResultEntryFilterSensitiveLog = exports.PutRecordsInputFilterSensitiveLog = exports.PutRecordsRequestEntryFilterSensitiveLog = exports.PutRecordOutputFilterSensitiveLog = exports.PutRecordInputFilterSensitiveLog = exports.MergeShardsInputFilterSensitiveLog = exports.ListTagsForStreamOutputFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ListTagsForStreamInputFilterSensitiveLog = exports.ListStreamsOutputFilterSensitiveLog = exports.ListStreamsInputFilterSensitiveLog = exports.ListStreamConsumersOutputFilterSensitiveLog = exports.ListStreamConsumersInputFilterSensitiveLog = exports.ListShardsOutputFilterSensitiveLog = exports.ListShardsInputFilterSensitiveLog = exports.ShardFilterFilterSensitiveLog = exports.IncreaseStreamRetentionPeriodInputFilterSensitiveLog = exports.GetShardIteratorOutputFilterSensitiveLog = exports.GetShardIteratorInputFilterSensitiveLog = exports.GetRecordsOutputFilterSensitiveLog = exports._RecordFilterSensitiveLog = exports.GetRecordsInputFilterSensitiveLog = void 0;
|
|
3
|
+
exports.EnhancedMonitoringOutputFilterSensitiveLog = exports.DisableEnhancedMonitoringInputFilterSensitiveLog = exports.DescribeStreamSummaryOutputFilterSensitiveLog = exports.StreamDescriptionSummaryFilterSensitiveLog = exports.DescribeStreamSummaryInputFilterSensitiveLog = exports.DescribeStreamConsumerOutputFilterSensitiveLog = exports.DescribeStreamConsumerInputFilterSensitiveLog = exports.DescribeStreamOutputFilterSensitiveLog = exports.StreamDescriptionFilterSensitiveLog = exports.ShardFilterSensitiveLog = exports.SequenceNumberRangeFilterSensitiveLog = exports.EnhancedMetricsFilterSensitiveLog = exports.DescribeStreamInputFilterSensitiveLog = exports.DescribeLimitsOutputFilterSensitiveLog = exports.DescribeLimitsInputFilterSensitiveLog = exports.DeregisterStreamConsumerInputFilterSensitiveLog = exports.DeleteStreamInputFilterSensitiveLog = exports.DecreaseStreamRetentionPeriodInputFilterSensitiveLog = exports.CreateStreamInputFilterSensitiveLog = exports.StreamModeDetailsFilterSensitiveLog = exports.ConsumerDescriptionFilterSensitiveLog = exports.ConsumerFilterSensitiveLog = exports.ChildShardFilterSensitiveLog = exports.HashKeyRangeFilterSensitiveLog = exports.AddTagsToStreamInputFilterSensitiveLog = exports.ScalingType = exports.SubscribeToShardEventStream = exports.ValidationException = exports.ShardFilterType = exports.InternalFailureException = exports.ShardIteratorType = exports.ProvisionedThroughputExceededException = exports.KMSThrottlingException = exports.KMSOptInRequired = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.ExpiredNextTokenException = exports.ExpiredIteratorException = exports.StreamStatus = exports.MetricsName = exports.EncryptionType = exports.StreamMode = exports.ConsumerStatus = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.LimitExceededException = exports.InvalidArgumentException = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.UpdateStreamModeInputFilterSensitiveLog = exports.UpdateShardCountOutputFilterSensitiveLog = exports.UpdateShardCountInputFilterSensitiveLog = exports.SubscribeToShardOutputFilterSensitiveLog = exports.SubscribeToShardEventStreamFilterSensitiveLog = exports.SubscribeToShardEventFilterSensitiveLog = exports.SubscribeToShardInputFilterSensitiveLog = exports.StartingPositionFilterSensitiveLog = exports.StopStreamEncryptionInputFilterSensitiveLog = exports.StartStreamEncryptionInputFilterSensitiveLog = exports.SplitShardInputFilterSensitiveLog = exports.RemoveTagsFromStreamInputFilterSensitiveLog = exports.RegisterStreamConsumerOutputFilterSensitiveLog = exports.RegisterStreamConsumerInputFilterSensitiveLog = exports.PutRecordsOutputFilterSensitiveLog = exports.PutRecordsResultEntryFilterSensitiveLog = exports.PutRecordsInputFilterSensitiveLog = exports.PutRecordsRequestEntryFilterSensitiveLog = exports.PutRecordOutputFilterSensitiveLog = exports.PutRecordInputFilterSensitiveLog = exports.MergeShardsInputFilterSensitiveLog = exports.ListTagsForStreamOutputFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ListTagsForStreamInputFilterSensitiveLog = exports.ListStreamsOutputFilterSensitiveLog = exports.StreamSummaryFilterSensitiveLog = exports.ListStreamsInputFilterSensitiveLog = exports.ListStreamConsumersOutputFilterSensitiveLog = exports.ListStreamConsumersInputFilterSensitiveLog = exports.ListShardsOutputFilterSensitiveLog = exports.ListShardsInputFilterSensitiveLog = exports.ShardFilterFilterSensitiveLog = exports.IncreaseStreamRetentionPeriodInputFilterSensitiveLog = exports.GetShardIteratorOutputFilterSensitiveLog = exports.GetShardIteratorInputFilterSensitiveLog = exports.GetRecordsOutputFilterSensitiveLog = exports._RecordFilterSensitiveLog = exports.GetRecordsInputFilterSensitiveLog = exports.EnableEnhancedMonitoringInputFilterSensitiveLog = void 0;
|
|
5
5
|
const KinesisServiceException_1 = require("./KinesisServiceException");
|
|
6
|
+
class AccessDeniedException extends KinesisServiceException_1.KinesisServiceException {
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "AccessDeniedException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
this.name = "AccessDeniedException";
|
|
14
|
+
this.$fault = "client";
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
6
19
|
class InvalidArgumentException extends KinesisServiceException_1.KinesisServiceException {
|
|
7
20
|
constructor(opts) {
|
|
8
21
|
super({
|
|
@@ -431,6 +444,10 @@ const ListStreamsInputFilterSensitiveLog = (obj) => ({
|
|
|
431
444
|
...obj,
|
|
432
445
|
});
|
|
433
446
|
exports.ListStreamsInputFilterSensitiveLog = ListStreamsInputFilterSensitiveLog;
|
|
447
|
+
const StreamSummaryFilterSensitiveLog = (obj) => ({
|
|
448
|
+
...obj,
|
|
449
|
+
});
|
|
450
|
+
exports.StreamSummaryFilterSensitiveLog = StreamSummaryFilterSensitiveLog;
|
|
434
451
|
const ListStreamsOutputFilterSensitiveLog = (obj) => ({
|
|
435
452
|
...obj,
|
|
436
453
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListStreams = void 0;
|
|
4
|
+
const ListStreamsCommand_1 = require("../commands/ListStreamsCommand");
|
|
5
|
+
const Kinesis_1 = require("../Kinesis");
|
|
6
|
+
const KinesisClient_1 = require("../KinesisClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListStreamsCommand_1.ListStreamsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listStreams(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListStreams(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["Limit"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Kinesis_1.Kinesis) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof KinesisClient_1.KinesisClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Kinesis | KinesisClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListStreams = paginateListStreams;
|
|
@@ -3,3 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./ListStreamConsumersPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListStreamsPaginator"), exports);
|
|
@@ -314,6 +314,9 @@ const deserializeAws_json1_1AddTagsToStreamCommandError = async (output, context
|
|
|
314
314
|
};
|
|
315
315
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
316
316
|
switch (errorCode) {
|
|
317
|
+
case "AccessDeniedException":
|
|
318
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
319
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
317
320
|
case "InvalidArgumentException":
|
|
318
321
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
319
322
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -391,6 +394,9 @@ const deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = async (o
|
|
|
391
394
|
};
|
|
392
395
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
393
396
|
switch (errorCode) {
|
|
397
|
+
case "AccessDeniedException":
|
|
398
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
399
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
394
400
|
case "InvalidArgumentException":
|
|
395
401
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
396
402
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -431,6 +437,12 @@ const deserializeAws_json1_1DeleteStreamCommandError = async (output, context) =
|
|
|
431
437
|
};
|
|
432
438
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
433
439
|
switch (errorCode) {
|
|
440
|
+
case "AccessDeniedException":
|
|
441
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
442
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
443
|
+
case "InvalidArgumentException":
|
|
444
|
+
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
445
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
434
446
|
case "LimitExceededException":
|
|
435
447
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
436
448
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
@@ -542,6 +554,12 @@ const deserializeAws_json1_1DescribeStreamCommandError = async (output, context)
|
|
|
542
554
|
};
|
|
543
555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
544
556
|
switch (errorCode) {
|
|
557
|
+
case "AccessDeniedException":
|
|
558
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
559
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
560
|
+
case "InvalidArgumentException":
|
|
561
|
+
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
562
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
545
563
|
case "LimitExceededException":
|
|
546
564
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
547
565
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
@@ -619,6 +637,12 @@ const deserializeAws_json1_1DescribeStreamSummaryCommandError = async (output, c
|
|
|
619
637
|
};
|
|
620
638
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
639
|
switch (errorCode) {
|
|
640
|
+
case "AccessDeniedException":
|
|
641
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
642
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
643
|
+
case "InvalidArgumentException":
|
|
644
|
+
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
645
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
622
646
|
case "LimitExceededException":
|
|
623
647
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
624
648
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
@@ -656,6 +680,9 @@ const deserializeAws_json1_1DisableEnhancedMonitoringCommandError = async (outpu
|
|
|
656
680
|
};
|
|
657
681
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
682
|
switch (errorCode) {
|
|
683
|
+
case "AccessDeniedException":
|
|
684
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
685
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
659
686
|
case "InvalidArgumentException":
|
|
660
687
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
661
688
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -699,6 +726,9 @@ const deserializeAws_json1_1EnableEnhancedMonitoringCommandError = async (output
|
|
|
699
726
|
};
|
|
700
727
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
728
|
switch (errorCode) {
|
|
729
|
+
case "AccessDeniedException":
|
|
730
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
731
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
702
732
|
case "InvalidArgumentException":
|
|
703
733
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
704
734
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -742,6 +772,9 @@ const deserializeAws_json1_1GetRecordsCommandError = async (output, context) =>
|
|
|
742
772
|
};
|
|
743
773
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
774
|
switch (errorCode) {
|
|
775
|
+
case "AccessDeniedException":
|
|
776
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
777
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
745
778
|
case "ExpiredIteratorException":
|
|
746
779
|
case "com.amazonaws.kinesis#ExpiredIteratorException":
|
|
747
780
|
throw await deserializeAws_json1_1ExpiredIteratorExceptionResponse(parsedOutput, context);
|
|
@@ -803,6 +836,9 @@ const deserializeAws_json1_1GetShardIteratorCommandError = async (output, contex
|
|
|
803
836
|
};
|
|
804
837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
838
|
switch (errorCode) {
|
|
839
|
+
case "AccessDeniedException":
|
|
840
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
841
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
806
842
|
case "InvalidArgumentException":
|
|
807
843
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
808
844
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -840,6 +876,9 @@ const deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = async (o
|
|
|
840
876
|
};
|
|
841
877
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
878
|
switch (errorCode) {
|
|
879
|
+
case "AccessDeniedException":
|
|
880
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
881
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
843
882
|
case "InvalidArgumentException":
|
|
844
883
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
845
884
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -883,6 +922,9 @@ const deserializeAws_json1_1ListShardsCommandError = async (output, context) =>
|
|
|
883
922
|
};
|
|
884
923
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
924
|
switch (errorCode) {
|
|
925
|
+
case "AccessDeniedException":
|
|
926
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
927
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
886
928
|
case "ExpiredNextTokenException":
|
|
887
929
|
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
888
930
|
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
@@ -975,6 +1017,12 @@ const deserializeAws_json1_1ListStreamsCommandError = async (output, context) =>
|
|
|
975
1017
|
};
|
|
976
1018
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
1019
|
switch (errorCode) {
|
|
1020
|
+
case "ExpiredNextTokenException":
|
|
1021
|
+
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
1022
|
+
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
1023
|
+
case "InvalidArgumentException":
|
|
1024
|
+
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1025
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
978
1026
|
case "LimitExceededException":
|
|
979
1027
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
980
1028
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
@@ -1009,6 +1057,9 @@ const deserializeAws_json1_1ListTagsForStreamCommandError = async (output, conte
|
|
|
1009
1057
|
};
|
|
1010
1058
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
1059
|
switch (errorCode) {
|
|
1060
|
+
case "AccessDeniedException":
|
|
1061
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1062
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1012
1063
|
case "InvalidArgumentException":
|
|
1013
1064
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1014
1065
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1046,6 +1097,9 @@ const deserializeAws_json1_1MergeShardsCommandError = async (output, context) =>
|
|
|
1046
1097
|
};
|
|
1047
1098
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
1099
|
switch (errorCode) {
|
|
1100
|
+
case "AccessDeniedException":
|
|
1101
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1102
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1049
1103
|
case "InvalidArgumentException":
|
|
1050
1104
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1051
1105
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1092,6 +1146,9 @@ const deserializeAws_json1_1PutRecordCommandError = async (output, context) => {
|
|
|
1092
1146
|
};
|
|
1093
1147
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
1148
|
switch (errorCode) {
|
|
1149
|
+
case "AccessDeniedException":
|
|
1150
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1151
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1095
1152
|
case "InvalidArgumentException":
|
|
1096
1153
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1097
1154
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1150,6 +1207,9 @@ const deserializeAws_json1_1PutRecordsCommandError = async (output, context) =>
|
|
|
1150
1207
|
};
|
|
1151
1208
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
1209
|
switch (errorCode) {
|
|
1210
|
+
case "AccessDeniedException":
|
|
1211
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1212
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1153
1213
|
case "InvalidArgumentException":
|
|
1154
1214
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1155
1215
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1248,6 +1308,9 @@ const deserializeAws_json1_1RemoveTagsFromStreamCommandError = async (output, co
|
|
|
1248
1308
|
};
|
|
1249
1309
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1250
1310
|
switch (errorCode) {
|
|
1311
|
+
case "AccessDeniedException":
|
|
1312
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1313
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1251
1314
|
case "InvalidArgumentException":
|
|
1252
1315
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1253
1316
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1288,6 +1351,9 @@ const deserializeAws_json1_1SplitShardCommandError = async (output, context) =>
|
|
|
1288
1351
|
};
|
|
1289
1352
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
1353
|
switch (errorCode) {
|
|
1354
|
+
case "AccessDeniedException":
|
|
1355
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1356
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1291
1357
|
case "InvalidArgumentException":
|
|
1292
1358
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1293
1359
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1331,6 +1397,9 @@ const deserializeAws_json1_1StartStreamEncryptionCommandError = async (output, c
|
|
|
1331
1397
|
};
|
|
1332
1398
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
1399
|
switch (errorCode) {
|
|
1400
|
+
case "AccessDeniedException":
|
|
1401
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1402
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1334
1403
|
case "InvalidArgumentException":
|
|
1335
1404
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1336
1405
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1389,6 +1458,9 @@ const deserializeAws_json1_1StopStreamEncryptionCommandError = async (output, co
|
|
|
1389
1458
|
};
|
|
1390
1459
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
1460
|
switch (errorCode) {
|
|
1461
|
+
case "AccessDeniedException":
|
|
1462
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1463
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1392
1464
|
case "InvalidArgumentException":
|
|
1393
1465
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1394
1466
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1430,6 +1502,9 @@ const deserializeAws_json1_1SubscribeToShardCommandError = async (output, contex
|
|
|
1430
1502
|
};
|
|
1431
1503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
1504
|
switch (errorCode) {
|
|
1505
|
+
case "AccessDeniedException":
|
|
1506
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1507
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1433
1508
|
case "InvalidArgumentException":
|
|
1434
1509
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1435
1510
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1473,6 +1548,9 @@ const deserializeAws_json1_1UpdateShardCountCommandError = async (output, contex
|
|
|
1473
1548
|
};
|
|
1474
1549
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
1550
|
switch (errorCode) {
|
|
1551
|
+
case "AccessDeniedException":
|
|
1552
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1553
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1476
1554
|
case "InvalidArgumentException":
|
|
1477
1555
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1478
1556
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
@@ -1538,6 +1616,15 @@ const deserializeAws_json1_1UpdateStreamModeCommandError = async (output, contex
|
|
|
1538
1616
|
});
|
|
1539
1617
|
}
|
|
1540
1618
|
};
|
|
1619
|
+
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1620
|
+
const body = parsedOutput.body;
|
|
1621
|
+
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
1622
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1623
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1624
|
+
...deserialized,
|
|
1625
|
+
});
|
|
1626
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1627
|
+
};
|
|
1541
1628
|
const deserializeAws_json1_1ExpiredIteratorExceptionResponse = async (parsedOutput, context) => {
|
|
1542
1629
|
const body = parsedOutput.body;
|
|
1543
1630
|
const deserialized = deserializeAws_json1_1ExpiredIteratorException(body, context);
|
|
@@ -1799,6 +1886,7 @@ const deserializeAws_json1_1InternalFailureExceptionResponse = async (parsedOutp
|
|
|
1799
1886
|
};
|
|
1800
1887
|
const serializeAws_json1_1AddTagsToStreamInput = (input, context) => {
|
|
1801
1888
|
return {
|
|
1889
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1802
1890
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1803
1891
|
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
1804
1892
|
};
|
|
@@ -1815,12 +1903,14 @@ const serializeAws_json1_1CreateStreamInput = (input, context) => {
|
|
|
1815
1903
|
const serializeAws_json1_1DecreaseStreamRetentionPeriodInput = (input, context) => {
|
|
1816
1904
|
return {
|
|
1817
1905
|
...(input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }),
|
|
1906
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1818
1907
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1819
1908
|
};
|
|
1820
1909
|
};
|
|
1821
1910
|
const serializeAws_json1_1DeleteStreamInput = (input, context) => {
|
|
1822
1911
|
return {
|
|
1823
1912
|
...(input.EnforceConsumerDeletion != null && { EnforceConsumerDeletion: input.EnforceConsumerDeletion }),
|
|
1913
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1824
1914
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1825
1915
|
};
|
|
1826
1916
|
};
|
|
@@ -1845,11 +1935,13 @@ const serializeAws_json1_1DescribeStreamInput = (input, context) => {
|
|
|
1845
1935
|
return {
|
|
1846
1936
|
...(input.ExclusiveStartShardId != null && { ExclusiveStartShardId: input.ExclusiveStartShardId }),
|
|
1847
1937
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
1938
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1848
1939
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1849
1940
|
};
|
|
1850
1941
|
};
|
|
1851
1942
|
const serializeAws_json1_1DescribeStreamSummaryInput = (input, context) => {
|
|
1852
1943
|
return {
|
|
1944
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1853
1945
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1854
1946
|
};
|
|
1855
1947
|
};
|
|
@@ -1858,6 +1950,7 @@ const serializeAws_json1_1DisableEnhancedMonitoringInput = (input, context) => {
|
|
|
1858
1950
|
...(input.ShardLevelMetrics != null && {
|
|
1859
1951
|
ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
|
|
1860
1952
|
}),
|
|
1953
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1861
1954
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1862
1955
|
};
|
|
1863
1956
|
};
|
|
@@ -1866,6 +1959,7 @@ const serializeAws_json1_1EnableEnhancedMonitoringInput = (input, context) => {
|
|
|
1866
1959
|
...(input.ShardLevelMetrics != null && {
|
|
1867
1960
|
ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
|
|
1868
1961
|
}),
|
|
1962
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1869
1963
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1870
1964
|
};
|
|
1871
1965
|
};
|
|
@@ -1873,6 +1967,7 @@ const serializeAws_json1_1GetRecordsInput = (input, context) => {
|
|
|
1873
1967
|
return {
|
|
1874
1968
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
1875
1969
|
...(input.ShardIterator != null && { ShardIterator: input.ShardIterator }),
|
|
1970
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1876
1971
|
};
|
|
1877
1972
|
};
|
|
1878
1973
|
const serializeAws_json1_1GetShardIteratorInput = (input, context) => {
|
|
@@ -1880,6 +1975,7 @@ const serializeAws_json1_1GetShardIteratorInput = (input, context) => {
|
|
|
1880
1975
|
...(input.ShardId != null && { ShardId: input.ShardId }),
|
|
1881
1976
|
...(input.ShardIteratorType != null && { ShardIteratorType: input.ShardIteratorType }),
|
|
1882
1977
|
...(input.StartingSequenceNumber != null && { StartingSequenceNumber: input.StartingSequenceNumber }),
|
|
1978
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1883
1979
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1884
1980
|
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
1885
1981
|
};
|
|
@@ -1887,6 +1983,7 @@ const serializeAws_json1_1GetShardIteratorInput = (input, context) => {
|
|
|
1887
1983
|
const serializeAws_json1_1IncreaseStreamRetentionPeriodInput = (input, context) => {
|
|
1888
1984
|
return {
|
|
1889
1985
|
...(input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }),
|
|
1986
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1890
1987
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1891
1988
|
};
|
|
1892
1989
|
};
|
|
@@ -1896,6 +1993,7 @@ const serializeAws_json1_1ListShardsInput = (input, context) => {
|
|
|
1896
1993
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1897
1994
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1898
1995
|
...(input.ShardFilter != null && { ShardFilter: serializeAws_json1_1ShardFilter(input.ShardFilter, context) }),
|
|
1996
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1899
1997
|
...(input.StreamCreationTimestamp != null && {
|
|
1900
1998
|
StreamCreationTimestamp: Math.round(input.StreamCreationTimestamp.getTime() / 1000),
|
|
1901
1999
|
}),
|
|
@@ -1916,12 +2014,14 @@ const serializeAws_json1_1ListStreamsInput = (input, context) => {
|
|
|
1916
2014
|
return {
|
|
1917
2015
|
...(input.ExclusiveStartStreamName != null && { ExclusiveStartStreamName: input.ExclusiveStartStreamName }),
|
|
1918
2016
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
2017
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1919
2018
|
};
|
|
1920
2019
|
};
|
|
1921
2020
|
const serializeAws_json1_1ListTagsForStreamInput = (input, context) => {
|
|
1922
2021
|
return {
|
|
1923
2022
|
...(input.ExclusiveStartTagKey != null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey }),
|
|
1924
2023
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
2024
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1925
2025
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1926
2026
|
};
|
|
1927
2027
|
};
|
|
@@ -1929,6 +2029,7 @@ const serializeAws_json1_1MergeShardsInput = (input, context) => {
|
|
|
1929
2029
|
return {
|
|
1930
2030
|
...(input.AdjacentShardToMerge != null && { AdjacentShardToMerge: input.AdjacentShardToMerge }),
|
|
1931
2031
|
...(input.ShardToMerge != null && { ShardToMerge: input.ShardToMerge }),
|
|
2032
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1932
2033
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1933
2034
|
};
|
|
1934
2035
|
};
|
|
@@ -1945,12 +2046,14 @@ const serializeAws_json1_1PutRecordInput = (input, context) => {
|
|
|
1945
2046
|
...(input.ExplicitHashKey != null && { ExplicitHashKey: input.ExplicitHashKey }),
|
|
1946
2047
|
...(input.PartitionKey != null && { PartitionKey: input.PartitionKey }),
|
|
1947
2048
|
...(input.SequenceNumberForOrdering != null && { SequenceNumberForOrdering: input.SequenceNumberForOrdering }),
|
|
2049
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1948
2050
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1949
2051
|
};
|
|
1950
2052
|
};
|
|
1951
2053
|
const serializeAws_json1_1PutRecordsInput = (input, context) => {
|
|
1952
2054
|
return {
|
|
1953
2055
|
...(input.Records != null && { Records: serializeAws_json1_1PutRecordsRequestEntryList(input.Records, context) }),
|
|
2056
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1954
2057
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1955
2058
|
};
|
|
1956
2059
|
};
|
|
@@ -1976,6 +2079,7 @@ const serializeAws_json1_1RegisterStreamConsumerInput = (input, context) => {
|
|
|
1976
2079
|
};
|
|
1977
2080
|
const serializeAws_json1_1RemoveTagsFromStreamInput = (input, context) => {
|
|
1978
2081
|
return {
|
|
2082
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1979
2083
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1980
2084
|
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1981
2085
|
};
|
|
@@ -1991,6 +2095,7 @@ const serializeAws_json1_1SplitShardInput = (input, context) => {
|
|
|
1991
2095
|
return {
|
|
1992
2096
|
...(input.NewStartingHashKey != null && { NewStartingHashKey: input.NewStartingHashKey }),
|
|
1993
2097
|
...(input.ShardToSplit != null && { ShardToSplit: input.ShardToSplit }),
|
|
2098
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1994
2099
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1995
2100
|
};
|
|
1996
2101
|
};
|
|
@@ -2005,6 +2110,7 @@ const serializeAws_json1_1StartStreamEncryptionInput = (input, context) => {
|
|
|
2005
2110
|
return {
|
|
2006
2111
|
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
2007
2112
|
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
2113
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2008
2114
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2009
2115
|
};
|
|
2010
2116
|
};
|
|
@@ -2012,6 +2118,7 @@ const serializeAws_json1_1StopStreamEncryptionInput = (input, context) => {
|
|
|
2012
2118
|
return {
|
|
2013
2119
|
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
2014
2120
|
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
2121
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2015
2122
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2016
2123
|
};
|
|
2017
2124
|
};
|
|
@@ -2048,6 +2155,7 @@ const serializeAws_json1_1TagMap = (input, context) => {
|
|
|
2048
2155
|
const serializeAws_json1_1UpdateShardCountInput = (input, context) => {
|
|
2049
2156
|
return {
|
|
2050
2157
|
...(input.ScalingType != null && { ScalingType: input.ScalingType }),
|
|
2158
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2051
2159
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2052
2160
|
...(input.TargetShardCount != null && { TargetShardCount: input.TargetShardCount }),
|
|
2053
2161
|
};
|
|
@@ -2060,6 +2168,11 @@ const serializeAws_json1_1UpdateStreamModeInput = (input, context) => {
|
|
|
2060
2168
|
}),
|
|
2061
2169
|
};
|
|
2062
2170
|
};
|
|
2171
|
+
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
2172
|
+
return {
|
|
2173
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2174
|
+
};
|
|
2175
|
+
};
|
|
2063
2176
|
const deserializeAws_json1_1ChildShard = (output, context) => {
|
|
2064
2177
|
return {
|
|
2065
2178
|
HashKeyRange: output.HashKeyRange != null ? deserializeAws_json1_1HashKeyRange(output.HashKeyRange, context) : undefined,
|
|
@@ -2165,6 +2278,7 @@ const deserializeAws_json1_1EnhancedMonitoringOutput = (output, context) => {
|
|
|
2165
2278
|
DesiredShardLevelMetrics: output.DesiredShardLevelMetrics != null
|
|
2166
2279
|
? deserializeAws_json1_1MetricsNameList(output.DesiredShardLevelMetrics, context)
|
|
2167
2280
|
: undefined,
|
|
2281
|
+
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2168
2282
|
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
2169
2283
|
};
|
|
2170
2284
|
};
|
|
@@ -2257,7 +2371,11 @@ const deserializeAws_json1_1ListStreamConsumersOutput = (output, context) => {
|
|
|
2257
2371
|
const deserializeAws_json1_1ListStreamsOutput = (output, context) => {
|
|
2258
2372
|
return {
|
|
2259
2373
|
HasMoreStreams: (0, smithy_client_1.expectBoolean)(output.HasMoreStreams),
|
|
2374
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2260
2375
|
StreamNames: output.StreamNames != null ? deserializeAws_json1_1StreamNameList(output.StreamNames, context) : undefined,
|
|
2376
|
+
StreamSummaries: output.StreamSummaries != null
|
|
2377
|
+
? deserializeAws_json1_1StreamSummaryList(output.StreamSummaries, context)
|
|
2378
|
+
: undefined,
|
|
2261
2379
|
};
|
|
2262
2380
|
};
|
|
2263
2381
|
const deserializeAws_json1_1ListTagsForStreamOutput = (output, context) => {
|
|
@@ -2449,6 +2567,30 @@ const deserializeAws_json1_1StreamNameList = (output, context) => {
|
|
|
2449
2567
|
});
|
|
2450
2568
|
return retVal;
|
|
2451
2569
|
};
|
|
2570
|
+
const deserializeAws_json1_1StreamSummary = (output, context) => {
|
|
2571
|
+
return {
|
|
2572
|
+
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2573
|
+
StreamCreationTimestamp: output.StreamCreationTimestamp != null
|
|
2574
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StreamCreationTimestamp)))
|
|
2575
|
+
: undefined,
|
|
2576
|
+
StreamModeDetails: output.StreamModeDetails != null
|
|
2577
|
+
? deserializeAws_json1_1StreamModeDetails(output.StreamModeDetails, context)
|
|
2578
|
+
: undefined,
|
|
2579
|
+
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
2580
|
+
StreamStatus: (0, smithy_client_1.expectString)(output.StreamStatus),
|
|
2581
|
+
};
|
|
2582
|
+
};
|
|
2583
|
+
const deserializeAws_json1_1StreamSummaryList = (output, context) => {
|
|
2584
|
+
const retVal = (output || [])
|
|
2585
|
+
.filter((e) => e != null)
|
|
2586
|
+
.map((entry) => {
|
|
2587
|
+
if (entry === null) {
|
|
2588
|
+
return null;
|
|
2589
|
+
}
|
|
2590
|
+
return deserializeAws_json1_1StreamSummary(entry, context);
|
|
2591
|
+
});
|
|
2592
|
+
return retVal;
|
|
2593
|
+
};
|
|
2452
2594
|
const deserializeAws_json1_1SubscribeToShardEvent = (output, context) => {
|
|
2453
2595
|
return {
|
|
2454
2596
|
ChildShards: output.ChildShards != null ? deserializeAws_json1_1ChildShardList(output.ChildShards, context) : undefined,
|
|
@@ -2477,6 +2619,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
2477
2619
|
const deserializeAws_json1_1UpdateShardCountOutput = (output, context) => {
|
|
2478
2620
|
return {
|
|
2479
2621
|
CurrentShardCount: (0, smithy_client_1.expectInt32)(output.CurrentShardCount),
|
|
2622
|
+
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2480
2623
|
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
2481
2624
|
TargetShardCount: (0, smithy_client_1.expectInt32)(output.TargetShardCount),
|
|
2482
2625
|
};
|
|
@@ -10,6 +10,8 @@ export class AddTagsToStreamCommand extends $Command {
|
|
|
10
10
|
}
|
|
11
11
|
static getEndpointParameterInstructions() {
|
|
12
12
|
return {
|
|
13
|
+
OperationType: { type: "staticContextParams", value: `control` },
|
|
14
|
+
StreamARN: { type: "contextParams", name: "StreamARN" },
|
|
13
15
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
16
|
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
17
|
Region: { type: "builtInParams", name: "region" },
|
|
@@ -10,6 +10,8 @@ export class DecreaseStreamRetentionPeriodCommand extends $Command {
|
|
|
10
10
|
}
|
|
11
11
|
static getEndpointParameterInstructions() {
|
|
12
12
|
return {
|
|
13
|
+
OperationType: { type: "staticContextParams", value: `control` },
|
|
14
|
+
StreamARN: { type: "contextParams", name: "StreamARN" },
|
|
13
15
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
16
|
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
17
|
Region: { type: "builtInParams", name: "region" },
|
|
@@ -10,6 +10,8 @@ export class DeleteStreamCommand extends $Command {
|
|
|
10
10
|
}
|
|
11
11
|
static getEndpointParameterInstructions() {
|
|
12
12
|
return {
|
|
13
|
+
OperationType: { type: "staticContextParams", value: `control` },
|
|
14
|
+
StreamARN: { type: "contextParams", name: "StreamARN" },
|
|
13
15
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
16
|
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
17
|
Region: { type: "builtInParams", name: "region" },
|
|
@@ -10,6 +10,9 @@ export class DeregisterStreamConsumerCommand extends $Command {
|
|
|
10
10
|
}
|
|
11
11
|
static getEndpointParameterInstructions() {
|
|
12
12
|
return {
|
|
13
|
+
OperationType: { type: "staticContextParams", value: `control` },
|
|
14
|
+
ConsumerARN: { type: "contextParams", name: "ConsumerARN" },
|
|
15
|
+
StreamARN: { type: "contextParams", name: "StreamARN" },
|
|
13
16
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
17
|
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
18
|
Region: { type: "builtInParams", name: "region" },
|
|
@@ -10,6 +10,8 @@ export class DescribeStreamCommand extends $Command {
|
|
|
10
10
|
}
|
|
11
11
|
static getEndpointParameterInstructions() {
|
|
12
12
|
return {
|
|
13
|
+
OperationType: { type: "staticContextParams", value: `control` },
|
|
14
|
+
StreamARN: { type: "contextParams", name: "StreamARN" },
|
|
13
15
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
16
|
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
17
|
Region: { type: "builtInParams", name: "region" },
|
|
@@ -10,6 +10,9 @@ export class DescribeStreamConsumerCommand extends $Command {
|
|
|
10
10
|
}
|
|
11
11
|
static getEndpointParameterInstructions() {
|
|
12
12
|
return {
|
|
13
|
+
OperationType: { type: "staticContextParams", value: `control` },
|
|
14
|
+
ConsumerARN: { type: "contextParams", name: "ConsumerARN" },
|
|
15
|
+
StreamARN: { type: "contextParams", name: "StreamARN" },
|
|
13
16
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
17
|
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
18
|
Region: { type: "builtInParams", name: "region" },
|
|
@@ -10,6 +10,8 @@ export class DescribeStreamSummaryCommand extends $Command {
|
|
|
10
10
|
}
|
|
11
11
|
static getEndpointParameterInstructions() {
|
|
12
12
|
return {
|
|
13
|
+
OperationType: { type: "staticContextParams", value: `control` },
|
|
14
|
+
StreamARN: { type: "contextParams", name: "StreamARN" },
|
|
13
15
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
16
|
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
17
|
Region: { type: "builtInParams", name: "region" },
|
|
@@ -10,6 +10,8 @@ export class DisableEnhancedMonitoringCommand extends $Command {
|
|
|
10
10
|
}
|
|
11
11
|
static getEndpointParameterInstructions() {
|
|
12
12
|
return {
|
|
13
|
+
OperationType: { type: "staticContextParams", value: `control` },
|
|
14
|
+
StreamARN: { type: "contextParams", name: "StreamARN" },
|
|
13
15
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
16
|
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
17
|
Region: { type: "builtInParams", name: "region" },
|