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