@aws-sdk/client-kinesis 3.28.0 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/cjs/package.json +35 -35
- package/dist/cjs/protocols/Aws_json1_1.js +17 -17
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +35 -35
- package/dist/es/protocols/Aws_json1_1.js +18 -18
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/package.json +35 -35
- package/protocols/Aws_json1_1.ts +23 -18
package/protocols/Aws_json1_1.ts
CHANGED
|
@@ -143,8 +143,13 @@ import {
|
|
|
143
143
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
144
144
|
import {
|
|
145
145
|
expectBoolean as __expectBoolean,
|
|
146
|
-
|
|
146
|
+
expectInt32 as __expectInt32,
|
|
147
|
+
expectLong as __expectLong,
|
|
148
|
+
expectNonNull as __expectNonNull,
|
|
149
|
+
expectNumber as __expectNumber,
|
|
147
150
|
expectString as __expectString,
|
|
151
|
+
expectUnion as __expectUnion,
|
|
152
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
148
153
|
} from "@aws-sdk/smithy-client";
|
|
149
154
|
import {
|
|
150
155
|
Endpoint as __Endpoint,
|
|
@@ -3320,7 +3325,7 @@ const deserializeAws_json1_1Consumer = (output: any, context: __SerdeContext): C
|
|
|
3320
3325
|
ConsumerARN: __expectString(output.ConsumerARN),
|
|
3321
3326
|
ConsumerCreationTimestamp:
|
|
3322
3327
|
output.ConsumerCreationTimestamp !== undefined && output.ConsumerCreationTimestamp !== null
|
|
3323
|
-
?
|
|
3328
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ConsumerCreationTimestamp)))
|
|
3324
3329
|
: undefined,
|
|
3325
3330
|
ConsumerName: __expectString(output.ConsumerName),
|
|
3326
3331
|
ConsumerStatus: __expectString(output.ConsumerStatus),
|
|
@@ -3332,7 +3337,7 @@ const deserializeAws_json1_1ConsumerDescription = (output: any, context: __Serde
|
|
|
3332
3337
|
ConsumerARN: __expectString(output.ConsumerARN),
|
|
3333
3338
|
ConsumerCreationTimestamp:
|
|
3334
3339
|
output.ConsumerCreationTimestamp !== undefined && output.ConsumerCreationTimestamp !== null
|
|
3335
|
-
?
|
|
3340
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ConsumerCreationTimestamp)))
|
|
3336
3341
|
: undefined,
|
|
3337
3342
|
ConsumerName: __expectString(output.ConsumerName),
|
|
3338
3343
|
ConsumerStatus: __expectString(output.ConsumerStatus),
|
|
@@ -3353,8 +3358,8 @@ const deserializeAws_json1_1ConsumerList = (output: any, context: __SerdeContext
|
|
|
3353
3358
|
|
|
3354
3359
|
const deserializeAws_json1_1DescribeLimitsOutput = (output: any, context: __SerdeContext): DescribeLimitsOutput => {
|
|
3355
3360
|
return {
|
|
3356
|
-
OpenShardCount:
|
|
3357
|
-
ShardLimit:
|
|
3361
|
+
OpenShardCount: __expectInt32(output.OpenShardCount),
|
|
3362
|
+
ShardLimit: __expectInt32(output.ShardLimit),
|
|
3358
3363
|
} as any;
|
|
3359
3364
|
};
|
|
3360
3365
|
|
|
@@ -3452,7 +3457,7 @@ const deserializeAws_json1_1GetRecordsOutput = (output: any, context: __SerdeCon
|
|
|
3452
3457
|
output.ChildShards !== undefined && output.ChildShards !== null
|
|
3453
3458
|
? deserializeAws_json1_1ChildShardList(output.ChildShards, context)
|
|
3454
3459
|
: undefined,
|
|
3455
|
-
MillisBehindLatest:
|
|
3460
|
+
MillisBehindLatest: __expectLong(output.MillisBehindLatest),
|
|
3456
3461
|
NextShardIterator: __expectString(output.NextShardIterator),
|
|
3457
3462
|
Records:
|
|
3458
3463
|
output.Records !== undefined && output.Records !== null
|
|
@@ -3617,7 +3622,7 @@ const deserializeAws_json1_1PutRecordOutput = (output: any, context: __SerdeCont
|
|
|
3617
3622
|
const deserializeAws_json1_1PutRecordsOutput = (output: any, context: __SerdeContext): PutRecordsOutput => {
|
|
3618
3623
|
return {
|
|
3619
3624
|
EncryptionType: __expectString(output.EncryptionType),
|
|
3620
|
-
FailedRecordCount:
|
|
3625
|
+
FailedRecordCount: __expectInt32(output.FailedRecordCount),
|
|
3621
3626
|
Records:
|
|
3622
3627
|
output.Records !== undefined && output.Records !== null
|
|
3623
3628
|
? deserializeAws_json1_1PutRecordsResultEntryList(output.Records, context)
|
|
@@ -3652,7 +3657,7 @@ const deserializeAws_json1_1_Record = (output: any, context: __SerdeContext): _R
|
|
|
3652
3657
|
return {
|
|
3653
3658
|
ApproximateArrivalTimestamp:
|
|
3654
3659
|
output.ApproximateArrivalTimestamp !== undefined && output.ApproximateArrivalTimestamp !== null
|
|
3655
|
-
?
|
|
3660
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateArrivalTimestamp)))
|
|
3656
3661
|
: undefined,
|
|
3657
3662
|
Data: output.Data !== undefined && output.Data !== null ? context.base64Decoder(output.Data) : undefined,
|
|
3658
3663
|
EncryptionType: __expectString(output.EncryptionType),
|
|
@@ -3753,7 +3758,7 @@ const deserializeAws_json1_1StreamDescription = (output: any, context: __SerdeCo
|
|
|
3753
3758
|
: undefined,
|
|
3754
3759
|
HasMoreShards: __expectBoolean(output.HasMoreShards),
|
|
3755
3760
|
KeyId: __expectString(output.KeyId),
|
|
3756
|
-
RetentionPeriodHours:
|
|
3761
|
+
RetentionPeriodHours: __expectInt32(output.RetentionPeriodHours),
|
|
3757
3762
|
Shards:
|
|
3758
3763
|
output.Shards !== undefined && output.Shards !== null
|
|
3759
3764
|
? deserializeAws_json1_1ShardList(output.Shards, context)
|
|
@@ -3761,7 +3766,7 @@ const deserializeAws_json1_1StreamDescription = (output: any, context: __SerdeCo
|
|
|
3761
3766
|
StreamARN: __expectString(output.StreamARN),
|
|
3762
3767
|
StreamCreationTimestamp:
|
|
3763
3768
|
output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
|
|
3764
|
-
?
|
|
3769
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StreamCreationTimestamp)))
|
|
3765
3770
|
: undefined,
|
|
3766
3771
|
StreamName: __expectString(output.StreamName),
|
|
3767
3772
|
StreamStatus: __expectString(output.StreamStatus),
|
|
@@ -3773,19 +3778,19 @@ const deserializeAws_json1_1StreamDescriptionSummary = (
|
|
|
3773
3778
|
context: __SerdeContext
|
|
3774
3779
|
): StreamDescriptionSummary => {
|
|
3775
3780
|
return {
|
|
3776
|
-
ConsumerCount:
|
|
3781
|
+
ConsumerCount: __expectInt32(output.ConsumerCount),
|
|
3777
3782
|
EncryptionType: __expectString(output.EncryptionType),
|
|
3778
3783
|
EnhancedMonitoring:
|
|
3779
3784
|
output.EnhancedMonitoring !== undefined && output.EnhancedMonitoring !== null
|
|
3780
3785
|
? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context)
|
|
3781
3786
|
: undefined,
|
|
3782
3787
|
KeyId: __expectString(output.KeyId),
|
|
3783
|
-
OpenShardCount:
|
|
3784
|
-
RetentionPeriodHours:
|
|
3788
|
+
OpenShardCount: __expectInt32(output.OpenShardCount),
|
|
3789
|
+
RetentionPeriodHours: __expectInt32(output.RetentionPeriodHours),
|
|
3785
3790
|
StreamARN: __expectString(output.StreamARN),
|
|
3786
3791
|
StreamCreationTimestamp:
|
|
3787
3792
|
output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
|
|
3788
|
-
?
|
|
3793
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StreamCreationTimestamp)))
|
|
3789
3794
|
: undefined,
|
|
3790
3795
|
StreamName: __expectString(output.StreamName),
|
|
3791
3796
|
StreamStatus: __expectString(output.StreamStatus),
|
|
@@ -3810,7 +3815,7 @@ const deserializeAws_json1_1SubscribeToShardEvent = (output: any, context: __Ser
|
|
|
3810
3815
|
? deserializeAws_json1_1ChildShardList(output.ChildShards, context)
|
|
3811
3816
|
: undefined,
|
|
3812
3817
|
ContinuationSequenceNumber: __expectString(output.ContinuationSequenceNumber),
|
|
3813
|
-
MillisBehindLatest:
|
|
3818
|
+
MillisBehindLatest: __expectLong(output.MillisBehindLatest),
|
|
3814
3819
|
Records:
|
|
3815
3820
|
output.Records !== undefined && output.Records !== null
|
|
3816
3821
|
? deserializeAws_json1_1RecordList(output.Records, context)
|
|
@@ -3891,7 +3896,7 @@ const deserializeAws_json1_1SubscribeToShardOutput = (output: any, context: __Se
|
|
|
3891
3896
|
return {
|
|
3892
3897
|
EventStream:
|
|
3893
3898
|
output.EventStream !== undefined && output.EventStream !== null
|
|
3894
|
-
? deserializeAws_json1_1SubscribeToShardEventStream(output.EventStream, context)
|
|
3899
|
+
? deserializeAws_json1_1SubscribeToShardEventStream(__expectUnion(output.EventStream), context)
|
|
3895
3900
|
: undefined,
|
|
3896
3901
|
} as any;
|
|
3897
3902
|
};
|
|
@@ -3916,9 +3921,9 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta
|
|
|
3916
3921
|
|
|
3917
3922
|
const deserializeAws_json1_1UpdateShardCountOutput = (output: any, context: __SerdeContext): UpdateShardCountOutput => {
|
|
3918
3923
|
return {
|
|
3919
|
-
CurrentShardCount:
|
|
3924
|
+
CurrentShardCount: __expectInt32(output.CurrentShardCount),
|
|
3920
3925
|
StreamName: __expectString(output.StreamName),
|
|
3921
|
-
TargetShardCount:
|
|
3926
|
+
TargetShardCount: __expectInt32(output.TargetShardCount),
|
|
3922
3927
|
} as any;
|
|
3923
3928
|
};
|
|
3924
3929
|
|