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