types-boto3-kinesis 1.36.0__py3-none-any.whl

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.
@@ -0,0 +1,686 @@
1
+ """
2
+ Type annotations for kinesis service type definitions.
3
+
4
+ [Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/type_defs/)
5
+
6
+ Usage::
7
+
8
+ ```python
9
+ from types_boto3_kinesis.type_defs import AddTagsToStreamInputRequestTypeDef
10
+
11
+ data: AddTagsToStreamInputRequestTypeDef = ...
12
+ ```
13
+
14
+ Copyright 2025 Vlad Emelianov
15
+ """
16
+
17
+ from __future__ import annotations
18
+
19
+ import sys
20
+ from datetime import datetime
21
+ from typing import IO, Any, Union
22
+
23
+ from botocore.eventstream import EventStream
24
+ from botocore.response import StreamingBody
25
+
26
+ from .literals import (
27
+ ConsumerStatusType,
28
+ EncryptionTypeType,
29
+ MetricsNameType,
30
+ ShardFilterTypeType,
31
+ ShardIteratorTypeType,
32
+ StreamModeType,
33
+ StreamStatusType,
34
+ )
35
+
36
+ if sys.version_info >= (3, 9):
37
+ from builtins import dict as Dict
38
+ from builtins import list as List
39
+ from collections.abc import Mapping, Sequence
40
+ else:
41
+ from typing import Dict, List, Mapping, Sequence
42
+ if sys.version_info >= (3, 12):
43
+ from typing import Literal, NotRequired, TypedDict
44
+ else:
45
+ from typing_extensions import Literal, NotRequired, TypedDict
46
+
47
+
48
+ __all__ = (
49
+ "AddTagsToStreamInputRequestTypeDef",
50
+ "BlobTypeDef",
51
+ "ChildShardTypeDef",
52
+ "ConsumerDescriptionTypeDef",
53
+ "ConsumerTypeDef",
54
+ "CreateStreamInputRequestTypeDef",
55
+ "DecreaseStreamRetentionPeriodInputRequestTypeDef",
56
+ "DeleteResourcePolicyInputRequestTypeDef",
57
+ "DeleteStreamInputRequestTypeDef",
58
+ "DeregisterStreamConsumerInputRequestTypeDef",
59
+ "DescribeLimitsOutputTypeDef",
60
+ "DescribeStreamConsumerInputRequestTypeDef",
61
+ "DescribeStreamConsumerOutputTypeDef",
62
+ "DescribeStreamInputPaginateTypeDef",
63
+ "DescribeStreamInputRequestTypeDef",
64
+ "DescribeStreamInputWaitTypeDef",
65
+ "DescribeStreamOutputTypeDef",
66
+ "DescribeStreamSummaryInputRequestTypeDef",
67
+ "DescribeStreamSummaryOutputTypeDef",
68
+ "DisableEnhancedMonitoringInputRequestTypeDef",
69
+ "EmptyResponseMetadataTypeDef",
70
+ "EnableEnhancedMonitoringInputRequestTypeDef",
71
+ "EnhancedMetricsTypeDef",
72
+ "EnhancedMonitoringOutputTypeDef",
73
+ "GetRecordsInputRequestTypeDef",
74
+ "GetRecordsOutputTypeDef",
75
+ "GetResourcePolicyInputRequestTypeDef",
76
+ "GetResourcePolicyOutputTypeDef",
77
+ "GetShardIteratorInputRequestTypeDef",
78
+ "GetShardIteratorOutputTypeDef",
79
+ "HashKeyRangeTypeDef",
80
+ "IncreaseStreamRetentionPeriodInputRequestTypeDef",
81
+ "InternalFailureExceptionTypeDef",
82
+ "KMSAccessDeniedExceptionTypeDef",
83
+ "KMSDisabledExceptionTypeDef",
84
+ "KMSInvalidStateExceptionTypeDef",
85
+ "KMSNotFoundExceptionTypeDef",
86
+ "KMSOptInRequiredTypeDef",
87
+ "KMSThrottlingExceptionTypeDef",
88
+ "ListShardsInputPaginateTypeDef",
89
+ "ListShardsInputRequestTypeDef",
90
+ "ListShardsOutputTypeDef",
91
+ "ListStreamConsumersInputPaginateTypeDef",
92
+ "ListStreamConsumersInputRequestTypeDef",
93
+ "ListStreamConsumersOutputTypeDef",
94
+ "ListStreamsInputPaginateTypeDef",
95
+ "ListStreamsInputRequestTypeDef",
96
+ "ListStreamsOutputTypeDef",
97
+ "ListTagsForStreamInputRequestTypeDef",
98
+ "ListTagsForStreamOutputTypeDef",
99
+ "MergeShardsInputRequestTypeDef",
100
+ "PaginatorConfigTypeDef",
101
+ "PutRecordInputRequestTypeDef",
102
+ "PutRecordOutputTypeDef",
103
+ "PutRecordsInputRequestTypeDef",
104
+ "PutRecordsOutputTypeDef",
105
+ "PutRecordsRequestEntryTypeDef",
106
+ "PutRecordsResultEntryTypeDef",
107
+ "PutResourcePolicyInputRequestTypeDef",
108
+ "RecordTypeDef",
109
+ "RegisterStreamConsumerInputRequestTypeDef",
110
+ "RegisterStreamConsumerOutputTypeDef",
111
+ "RemoveTagsFromStreamInputRequestTypeDef",
112
+ "ResourceInUseExceptionTypeDef",
113
+ "ResourceNotFoundExceptionTypeDef",
114
+ "ResponseMetadataTypeDef",
115
+ "SequenceNumberRangeTypeDef",
116
+ "ShardFilterTypeDef",
117
+ "ShardTypeDef",
118
+ "SplitShardInputRequestTypeDef",
119
+ "StartStreamEncryptionInputRequestTypeDef",
120
+ "StartingPositionTypeDef",
121
+ "StopStreamEncryptionInputRequestTypeDef",
122
+ "StreamDescriptionSummaryTypeDef",
123
+ "StreamDescriptionTypeDef",
124
+ "StreamModeDetailsTypeDef",
125
+ "StreamSummaryTypeDef",
126
+ "SubscribeToShardEventStreamTypeDef",
127
+ "SubscribeToShardEventTypeDef",
128
+ "SubscribeToShardInputRequestTypeDef",
129
+ "SubscribeToShardOutputTypeDef",
130
+ "TagTypeDef",
131
+ "TimestampTypeDef",
132
+ "UpdateShardCountInputRequestTypeDef",
133
+ "UpdateShardCountOutputTypeDef",
134
+ "UpdateStreamModeInputRequestTypeDef",
135
+ "WaiterConfigTypeDef",
136
+ )
137
+
138
+
139
+ class AddTagsToStreamInputRequestTypeDef(TypedDict):
140
+ Tags: Mapping[str, str]
141
+ StreamName: NotRequired[str]
142
+ StreamARN: NotRequired[str]
143
+
144
+
145
+ BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
146
+
147
+
148
+ class HashKeyRangeTypeDef(TypedDict):
149
+ StartingHashKey: str
150
+ EndingHashKey: str
151
+
152
+
153
+ class ConsumerDescriptionTypeDef(TypedDict):
154
+ ConsumerName: str
155
+ ConsumerARN: str
156
+ ConsumerStatus: ConsumerStatusType
157
+ ConsumerCreationTimestamp: datetime
158
+ StreamARN: str
159
+
160
+
161
+ class ConsumerTypeDef(TypedDict):
162
+ ConsumerName: str
163
+ ConsumerARN: str
164
+ ConsumerStatus: ConsumerStatusType
165
+ ConsumerCreationTimestamp: datetime
166
+
167
+
168
+ class StreamModeDetailsTypeDef(TypedDict):
169
+ StreamMode: StreamModeType
170
+
171
+
172
+ class DecreaseStreamRetentionPeriodInputRequestTypeDef(TypedDict):
173
+ RetentionPeriodHours: int
174
+ StreamName: NotRequired[str]
175
+ StreamARN: NotRequired[str]
176
+
177
+
178
+ class DeleteResourcePolicyInputRequestTypeDef(TypedDict):
179
+ ResourceARN: str
180
+
181
+
182
+ class DeleteStreamInputRequestTypeDef(TypedDict):
183
+ StreamName: NotRequired[str]
184
+ EnforceConsumerDeletion: NotRequired[bool]
185
+ StreamARN: NotRequired[str]
186
+
187
+
188
+ class DeregisterStreamConsumerInputRequestTypeDef(TypedDict):
189
+ StreamARN: NotRequired[str]
190
+ ConsumerName: NotRequired[str]
191
+ ConsumerARN: NotRequired[str]
192
+
193
+
194
+ class ResponseMetadataTypeDef(TypedDict):
195
+ RequestId: str
196
+ HTTPStatusCode: int
197
+ HTTPHeaders: Dict[str, str]
198
+ RetryAttempts: int
199
+ HostId: NotRequired[str]
200
+
201
+
202
+ class DescribeStreamConsumerInputRequestTypeDef(TypedDict):
203
+ StreamARN: NotRequired[str]
204
+ ConsumerName: NotRequired[str]
205
+ ConsumerARN: NotRequired[str]
206
+
207
+
208
+ class PaginatorConfigTypeDef(TypedDict):
209
+ MaxItems: NotRequired[int]
210
+ PageSize: NotRequired[int]
211
+ StartingToken: NotRequired[str]
212
+
213
+
214
+ class DescribeStreamInputRequestTypeDef(TypedDict):
215
+ StreamName: NotRequired[str]
216
+ Limit: NotRequired[int]
217
+ ExclusiveStartShardId: NotRequired[str]
218
+ StreamARN: NotRequired[str]
219
+
220
+
221
+ class WaiterConfigTypeDef(TypedDict):
222
+ Delay: NotRequired[int]
223
+ MaxAttempts: NotRequired[int]
224
+
225
+
226
+ class DescribeStreamSummaryInputRequestTypeDef(TypedDict):
227
+ StreamName: NotRequired[str]
228
+ StreamARN: NotRequired[str]
229
+
230
+
231
+ class DisableEnhancedMonitoringInputRequestTypeDef(TypedDict):
232
+ ShardLevelMetrics: Sequence[MetricsNameType]
233
+ StreamName: NotRequired[str]
234
+ StreamARN: NotRequired[str]
235
+
236
+
237
+ class EnableEnhancedMonitoringInputRequestTypeDef(TypedDict):
238
+ ShardLevelMetrics: Sequence[MetricsNameType]
239
+ StreamName: NotRequired[str]
240
+ StreamARN: NotRequired[str]
241
+
242
+
243
+ class EnhancedMetricsTypeDef(TypedDict):
244
+ ShardLevelMetrics: NotRequired[List[MetricsNameType]]
245
+
246
+
247
+ class GetRecordsInputRequestTypeDef(TypedDict):
248
+ ShardIterator: str
249
+ Limit: NotRequired[int]
250
+ StreamARN: NotRequired[str]
251
+
252
+
253
+ class RecordTypeDef(TypedDict):
254
+ SequenceNumber: str
255
+ Data: bytes
256
+ PartitionKey: str
257
+ ApproximateArrivalTimestamp: NotRequired[datetime]
258
+ EncryptionType: NotRequired[EncryptionTypeType]
259
+
260
+
261
+ class GetResourcePolicyInputRequestTypeDef(TypedDict):
262
+ ResourceARN: str
263
+
264
+
265
+ TimestampTypeDef = Union[datetime, str]
266
+
267
+
268
+ class IncreaseStreamRetentionPeriodInputRequestTypeDef(TypedDict):
269
+ RetentionPeriodHours: int
270
+ StreamName: NotRequired[str]
271
+ StreamARN: NotRequired[str]
272
+
273
+
274
+ class InternalFailureExceptionTypeDef(TypedDict):
275
+ message: NotRequired[str]
276
+
277
+
278
+ class KMSAccessDeniedExceptionTypeDef(TypedDict):
279
+ message: NotRequired[str]
280
+
281
+
282
+ class KMSDisabledExceptionTypeDef(TypedDict):
283
+ message: NotRequired[str]
284
+
285
+
286
+ class KMSInvalidStateExceptionTypeDef(TypedDict):
287
+ message: NotRequired[str]
288
+
289
+
290
+ class KMSNotFoundExceptionTypeDef(TypedDict):
291
+ message: NotRequired[str]
292
+
293
+
294
+ class KMSOptInRequiredTypeDef(TypedDict):
295
+ message: NotRequired[str]
296
+
297
+
298
+ class KMSThrottlingExceptionTypeDef(TypedDict):
299
+ message: NotRequired[str]
300
+
301
+
302
+ class ListStreamsInputRequestTypeDef(TypedDict):
303
+ Limit: NotRequired[int]
304
+ ExclusiveStartStreamName: NotRequired[str]
305
+ NextToken: NotRequired[str]
306
+
307
+
308
+ class ListTagsForStreamInputRequestTypeDef(TypedDict):
309
+ StreamName: NotRequired[str]
310
+ ExclusiveStartTagKey: NotRequired[str]
311
+ Limit: NotRequired[int]
312
+ StreamARN: NotRequired[str]
313
+
314
+
315
+ class TagTypeDef(TypedDict):
316
+ Key: str
317
+ Value: NotRequired[str]
318
+
319
+
320
+ class MergeShardsInputRequestTypeDef(TypedDict):
321
+ ShardToMerge: str
322
+ AdjacentShardToMerge: str
323
+ StreamName: NotRequired[str]
324
+ StreamARN: NotRequired[str]
325
+
326
+
327
+ class PutRecordsResultEntryTypeDef(TypedDict):
328
+ SequenceNumber: NotRequired[str]
329
+ ShardId: NotRequired[str]
330
+ ErrorCode: NotRequired[str]
331
+ ErrorMessage: NotRequired[str]
332
+
333
+
334
+ class PutResourcePolicyInputRequestTypeDef(TypedDict):
335
+ ResourceARN: str
336
+ Policy: str
337
+
338
+
339
+ class RegisterStreamConsumerInputRequestTypeDef(TypedDict):
340
+ StreamARN: str
341
+ ConsumerName: str
342
+
343
+
344
+ class RemoveTagsFromStreamInputRequestTypeDef(TypedDict):
345
+ TagKeys: Sequence[str]
346
+ StreamName: NotRequired[str]
347
+ StreamARN: NotRequired[str]
348
+
349
+
350
+ class ResourceInUseExceptionTypeDef(TypedDict):
351
+ message: NotRequired[str]
352
+
353
+
354
+ class ResourceNotFoundExceptionTypeDef(TypedDict):
355
+ message: NotRequired[str]
356
+
357
+
358
+ class SequenceNumberRangeTypeDef(TypedDict):
359
+ StartingSequenceNumber: str
360
+ EndingSequenceNumber: NotRequired[str]
361
+
362
+
363
+ class SplitShardInputRequestTypeDef(TypedDict):
364
+ ShardToSplit: str
365
+ NewStartingHashKey: str
366
+ StreamName: NotRequired[str]
367
+ StreamARN: NotRequired[str]
368
+
369
+
370
+ class StartStreamEncryptionInputRequestTypeDef(TypedDict):
371
+ EncryptionType: EncryptionTypeType
372
+ KeyId: str
373
+ StreamName: NotRequired[str]
374
+ StreamARN: NotRequired[str]
375
+
376
+
377
+ class StopStreamEncryptionInputRequestTypeDef(TypedDict):
378
+ EncryptionType: EncryptionTypeType
379
+ KeyId: str
380
+ StreamName: NotRequired[str]
381
+ StreamARN: NotRequired[str]
382
+
383
+
384
+ class UpdateShardCountInputRequestTypeDef(TypedDict):
385
+ TargetShardCount: int
386
+ ScalingType: Literal["UNIFORM_SCALING"]
387
+ StreamName: NotRequired[str]
388
+ StreamARN: NotRequired[str]
389
+
390
+
391
+ class PutRecordInputRequestTypeDef(TypedDict):
392
+ Data: BlobTypeDef
393
+ PartitionKey: str
394
+ StreamName: NotRequired[str]
395
+ ExplicitHashKey: NotRequired[str]
396
+ SequenceNumberForOrdering: NotRequired[str]
397
+ StreamARN: NotRequired[str]
398
+
399
+
400
+ class PutRecordsRequestEntryTypeDef(TypedDict):
401
+ Data: BlobTypeDef
402
+ PartitionKey: str
403
+ ExplicitHashKey: NotRequired[str]
404
+
405
+
406
+ class ChildShardTypeDef(TypedDict):
407
+ ShardId: str
408
+ ParentShards: List[str]
409
+ HashKeyRange: HashKeyRangeTypeDef
410
+
411
+
412
+ class CreateStreamInputRequestTypeDef(TypedDict):
413
+ StreamName: str
414
+ ShardCount: NotRequired[int]
415
+ StreamModeDetails: NotRequired[StreamModeDetailsTypeDef]
416
+ Tags: NotRequired[Mapping[str, str]]
417
+
418
+
419
+ class StreamSummaryTypeDef(TypedDict):
420
+ StreamName: str
421
+ StreamARN: str
422
+ StreamStatus: StreamStatusType
423
+ StreamModeDetails: NotRequired[StreamModeDetailsTypeDef]
424
+ StreamCreationTimestamp: NotRequired[datetime]
425
+
426
+
427
+ class UpdateStreamModeInputRequestTypeDef(TypedDict):
428
+ StreamARN: str
429
+ StreamModeDetails: StreamModeDetailsTypeDef
430
+
431
+
432
+ class DescribeLimitsOutputTypeDef(TypedDict):
433
+ ShardLimit: int
434
+ OpenShardCount: int
435
+ OnDemandStreamCount: int
436
+ OnDemandStreamCountLimit: int
437
+ ResponseMetadata: ResponseMetadataTypeDef
438
+
439
+
440
+ class DescribeStreamConsumerOutputTypeDef(TypedDict):
441
+ ConsumerDescription: ConsumerDescriptionTypeDef
442
+ ResponseMetadata: ResponseMetadataTypeDef
443
+
444
+
445
+ class EmptyResponseMetadataTypeDef(TypedDict):
446
+ ResponseMetadata: ResponseMetadataTypeDef
447
+
448
+
449
+ class EnhancedMonitoringOutputTypeDef(TypedDict):
450
+ StreamName: str
451
+ CurrentShardLevelMetrics: List[MetricsNameType]
452
+ DesiredShardLevelMetrics: List[MetricsNameType]
453
+ StreamARN: str
454
+ ResponseMetadata: ResponseMetadataTypeDef
455
+
456
+
457
+ class GetResourcePolicyOutputTypeDef(TypedDict):
458
+ Policy: str
459
+ ResponseMetadata: ResponseMetadataTypeDef
460
+
461
+
462
+ class GetShardIteratorOutputTypeDef(TypedDict):
463
+ ShardIterator: str
464
+ ResponseMetadata: ResponseMetadataTypeDef
465
+
466
+
467
+ class ListStreamConsumersOutputTypeDef(TypedDict):
468
+ Consumers: List[ConsumerTypeDef]
469
+ ResponseMetadata: ResponseMetadataTypeDef
470
+ NextToken: NotRequired[str]
471
+
472
+
473
+ class PutRecordOutputTypeDef(TypedDict):
474
+ ShardId: str
475
+ SequenceNumber: str
476
+ EncryptionType: EncryptionTypeType
477
+ ResponseMetadata: ResponseMetadataTypeDef
478
+
479
+
480
+ class RegisterStreamConsumerOutputTypeDef(TypedDict):
481
+ Consumer: ConsumerTypeDef
482
+ ResponseMetadata: ResponseMetadataTypeDef
483
+
484
+
485
+ class UpdateShardCountOutputTypeDef(TypedDict):
486
+ StreamName: str
487
+ CurrentShardCount: int
488
+ TargetShardCount: int
489
+ StreamARN: str
490
+ ResponseMetadata: ResponseMetadataTypeDef
491
+
492
+
493
+ class DescribeStreamInputPaginateTypeDef(TypedDict):
494
+ StreamName: NotRequired[str]
495
+ StreamARN: NotRequired[str]
496
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
497
+
498
+
499
+ class ListStreamsInputPaginateTypeDef(TypedDict):
500
+ ExclusiveStartStreamName: NotRequired[str]
501
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
502
+
503
+
504
+ class DescribeStreamInputWaitTypeDef(TypedDict):
505
+ StreamName: NotRequired[str]
506
+ Limit: NotRequired[int]
507
+ ExclusiveStartShardId: NotRequired[str]
508
+ StreamARN: NotRequired[str]
509
+ WaiterConfig: NotRequired[WaiterConfigTypeDef]
510
+
511
+
512
+ class StreamDescriptionSummaryTypeDef(TypedDict):
513
+ StreamName: str
514
+ StreamARN: str
515
+ StreamStatus: StreamStatusType
516
+ RetentionPeriodHours: int
517
+ StreamCreationTimestamp: datetime
518
+ EnhancedMonitoring: List[EnhancedMetricsTypeDef]
519
+ OpenShardCount: int
520
+ StreamModeDetails: NotRequired[StreamModeDetailsTypeDef]
521
+ EncryptionType: NotRequired[EncryptionTypeType]
522
+ KeyId: NotRequired[str]
523
+ ConsumerCount: NotRequired[int]
524
+
525
+
526
+ class GetShardIteratorInputRequestTypeDef(TypedDict):
527
+ ShardId: str
528
+ ShardIteratorType: ShardIteratorTypeType
529
+ StreamName: NotRequired[str]
530
+ StartingSequenceNumber: NotRequired[str]
531
+ Timestamp: NotRequired[TimestampTypeDef]
532
+ StreamARN: NotRequired[str]
533
+
534
+
535
+ class ListStreamConsumersInputPaginateTypeDef(TypedDict):
536
+ StreamARN: str
537
+ StreamCreationTimestamp: NotRequired[TimestampTypeDef]
538
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
539
+
540
+
541
+ class ListStreamConsumersInputRequestTypeDef(TypedDict):
542
+ StreamARN: str
543
+ NextToken: NotRequired[str]
544
+ MaxResults: NotRequired[int]
545
+ StreamCreationTimestamp: NotRequired[TimestampTypeDef]
546
+
547
+
548
+ ShardFilterTypeDef = TypedDict(
549
+ "ShardFilterTypeDef",
550
+ {
551
+ "Type": ShardFilterTypeType,
552
+ "ShardId": NotRequired[str],
553
+ "Timestamp": NotRequired[TimestampTypeDef],
554
+ },
555
+ )
556
+ StartingPositionTypeDef = TypedDict(
557
+ "StartingPositionTypeDef",
558
+ {
559
+ "Type": ShardIteratorTypeType,
560
+ "SequenceNumber": NotRequired[str],
561
+ "Timestamp": NotRequired[TimestampTypeDef],
562
+ },
563
+ )
564
+
565
+
566
+ class ListTagsForStreamOutputTypeDef(TypedDict):
567
+ Tags: List[TagTypeDef]
568
+ HasMoreTags: bool
569
+ ResponseMetadata: ResponseMetadataTypeDef
570
+
571
+
572
+ class PutRecordsOutputTypeDef(TypedDict):
573
+ FailedRecordCount: int
574
+ Records: List[PutRecordsResultEntryTypeDef]
575
+ EncryptionType: EncryptionTypeType
576
+ ResponseMetadata: ResponseMetadataTypeDef
577
+
578
+
579
+ class ShardTypeDef(TypedDict):
580
+ ShardId: str
581
+ HashKeyRange: HashKeyRangeTypeDef
582
+ SequenceNumberRange: SequenceNumberRangeTypeDef
583
+ ParentShardId: NotRequired[str]
584
+ AdjacentParentShardId: NotRequired[str]
585
+
586
+
587
+ class PutRecordsInputRequestTypeDef(TypedDict):
588
+ Records: Sequence[PutRecordsRequestEntryTypeDef]
589
+ StreamName: NotRequired[str]
590
+ StreamARN: NotRequired[str]
591
+
592
+
593
+ class GetRecordsOutputTypeDef(TypedDict):
594
+ Records: List[RecordTypeDef]
595
+ NextShardIterator: str
596
+ MillisBehindLatest: int
597
+ ChildShards: List[ChildShardTypeDef]
598
+ ResponseMetadata: ResponseMetadataTypeDef
599
+
600
+
601
+ class SubscribeToShardEventTypeDef(TypedDict):
602
+ Records: List[RecordTypeDef]
603
+ ContinuationSequenceNumber: str
604
+ MillisBehindLatest: int
605
+ ChildShards: NotRequired[List[ChildShardTypeDef]]
606
+
607
+
608
+ class ListStreamsOutputTypeDef(TypedDict):
609
+ StreamNames: List[str]
610
+ HasMoreStreams: bool
611
+ StreamSummaries: List[StreamSummaryTypeDef]
612
+ ResponseMetadata: ResponseMetadataTypeDef
613
+ NextToken: NotRequired[str]
614
+
615
+
616
+ class DescribeStreamSummaryOutputTypeDef(TypedDict):
617
+ StreamDescriptionSummary: StreamDescriptionSummaryTypeDef
618
+ ResponseMetadata: ResponseMetadataTypeDef
619
+
620
+
621
+ class ListShardsInputPaginateTypeDef(TypedDict):
622
+ StreamName: NotRequired[str]
623
+ ExclusiveStartShardId: NotRequired[str]
624
+ StreamCreationTimestamp: NotRequired[TimestampTypeDef]
625
+ ShardFilter: NotRequired[ShardFilterTypeDef]
626
+ StreamARN: NotRequired[str]
627
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
628
+
629
+
630
+ class ListShardsInputRequestTypeDef(TypedDict):
631
+ StreamName: NotRequired[str]
632
+ NextToken: NotRequired[str]
633
+ ExclusiveStartShardId: NotRequired[str]
634
+ MaxResults: NotRequired[int]
635
+ StreamCreationTimestamp: NotRequired[TimestampTypeDef]
636
+ ShardFilter: NotRequired[ShardFilterTypeDef]
637
+ StreamARN: NotRequired[str]
638
+
639
+
640
+ class SubscribeToShardInputRequestTypeDef(TypedDict):
641
+ ConsumerARN: str
642
+ ShardId: str
643
+ StartingPosition: StartingPositionTypeDef
644
+
645
+
646
+ class ListShardsOutputTypeDef(TypedDict):
647
+ Shards: List[ShardTypeDef]
648
+ ResponseMetadata: ResponseMetadataTypeDef
649
+ NextToken: NotRequired[str]
650
+
651
+
652
+ class StreamDescriptionTypeDef(TypedDict):
653
+ StreamName: str
654
+ StreamARN: str
655
+ StreamStatus: StreamStatusType
656
+ Shards: List[ShardTypeDef]
657
+ HasMoreShards: bool
658
+ RetentionPeriodHours: int
659
+ StreamCreationTimestamp: datetime
660
+ EnhancedMonitoring: List[EnhancedMetricsTypeDef]
661
+ StreamModeDetails: NotRequired[StreamModeDetailsTypeDef]
662
+ EncryptionType: NotRequired[EncryptionTypeType]
663
+ KeyId: NotRequired[str]
664
+
665
+
666
+ class SubscribeToShardEventStreamTypeDef(TypedDict):
667
+ SubscribeToShardEvent: SubscribeToShardEventTypeDef
668
+ ResourceNotFoundException: NotRequired[ResourceNotFoundExceptionTypeDef]
669
+ ResourceInUseException: NotRequired[ResourceInUseExceptionTypeDef]
670
+ KMSDisabledException: NotRequired[KMSDisabledExceptionTypeDef]
671
+ KMSInvalidStateException: NotRequired[KMSInvalidStateExceptionTypeDef]
672
+ KMSAccessDeniedException: NotRequired[KMSAccessDeniedExceptionTypeDef]
673
+ KMSNotFoundException: NotRequired[KMSNotFoundExceptionTypeDef]
674
+ KMSOptInRequired: NotRequired[KMSOptInRequiredTypeDef]
675
+ KMSThrottlingException: NotRequired[KMSThrottlingExceptionTypeDef]
676
+ InternalFailureException: NotRequired[InternalFailureExceptionTypeDef]
677
+
678
+
679
+ class DescribeStreamOutputTypeDef(TypedDict):
680
+ StreamDescription: StreamDescriptionTypeDef
681
+ ResponseMetadata: ResponseMetadataTypeDef
682
+
683
+
684
+ class SubscribeToShardOutputTypeDef(TypedDict):
685
+ EventStream: EventStream[SubscribeToShardEventStreamTypeDef]
686
+ ResponseMetadata: ResponseMetadataTypeDef