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,545 @@
1
+ """
2
+ Type annotations for kinesis service Client.
3
+
4
+ [Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/)
5
+
6
+ Usage::
7
+
8
+ ```python
9
+ from boto3.session import Session
10
+ from types_boto3_kinesis.client import KinesisClient
11
+
12
+ session = Session()
13
+ client: KinesisClient = session.client("kinesis")
14
+ ```
15
+
16
+ Copyright 2025 Vlad Emelianov
17
+ """
18
+
19
+ from __future__ import annotations
20
+
21
+ import sys
22
+ from typing import Any, overload
23
+
24
+ from botocore.client import BaseClient, ClientMeta
25
+ from botocore.errorfactory import BaseClientExceptions
26
+ from botocore.exceptions import ClientError as BotocoreClientError
27
+
28
+ from .paginator import (
29
+ DescribeStreamPaginator,
30
+ ListShardsPaginator,
31
+ ListStreamConsumersPaginator,
32
+ ListStreamsPaginator,
33
+ )
34
+ from .type_defs import (
35
+ AddTagsToStreamInputRequestTypeDef,
36
+ CreateStreamInputRequestTypeDef,
37
+ DecreaseStreamRetentionPeriodInputRequestTypeDef,
38
+ DeleteResourcePolicyInputRequestTypeDef,
39
+ DeleteStreamInputRequestTypeDef,
40
+ DeregisterStreamConsumerInputRequestTypeDef,
41
+ DescribeLimitsOutputTypeDef,
42
+ DescribeStreamConsumerInputRequestTypeDef,
43
+ DescribeStreamConsumerOutputTypeDef,
44
+ DescribeStreamInputRequestTypeDef,
45
+ DescribeStreamOutputTypeDef,
46
+ DescribeStreamSummaryInputRequestTypeDef,
47
+ DescribeStreamSummaryOutputTypeDef,
48
+ DisableEnhancedMonitoringInputRequestTypeDef,
49
+ EmptyResponseMetadataTypeDef,
50
+ EnableEnhancedMonitoringInputRequestTypeDef,
51
+ EnhancedMonitoringOutputTypeDef,
52
+ GetRecordsInputRequestTypeDef,
53
+ GetRecordsOutputTypeDef,
54
+ GetResourcePolicyInputRequestTypeDef,
55
+ GetResourcePolicyOutputTypeDef,
56
+ GetShardIteratorInputRequestTypeDef,
57
+ GetShardIteratorOutputTypeDef,
58
+ IncreaseStreamRetentionPeriodInputRequestTypeDef,
59
+ ListShardsInputRequestTypeDef,
60
+ ListShardsOutputTypeDef,
61
+ ListStreamConsumersInputRequestTypeDef,
62
+ ListStreamConsumersOutputTypeDef,
63
+ ListStreamsInputRequestTypeDef,
64
+ ListStreamsOutputTypeDef,
65
+ ListTagsForStreamInputRequestTypeDef,
66
+ ListTagsForStreamOutputTypeDef,
67
+ MergeShardsInputRequestTypeDef,
68
+ PutRecordInputRequestTypeDef,
69
+ PutRecordOutputTypeDef,
70
+ PutRecordsInputRequestTypeDef,
71
+ PutRecordsOutputTypeDef,
72
+ PutResourcePolicyInputRequestTypeDef,
73
+ RegisterStreamConsumerInputRequestTypeDef,
74
+ RegisterStreamConsumerOutputTypeDef,
75
+ RemoveTagsFromStreamInputRequestTypeDef,
76
+ SplitShardInputRequestTypeDef,
77
+ StartStreamEncryptionInputRequestTypeDef,
78
+ StopStreamEncryptionInputRequestTypeDef,
79
+ SubscribeToShardInputRequestTypeDef,
80
+ SubscribeToShardOutputTypeDef,
81
+ UpdateShardCountInputRequestTypeDef,
82
+ UpdateShardCountOutputTypeDef,
83
+ UpdateStreamModeInputRequestTypeDef,
84
+ )
85
+ from .waiter import StreamExistsWaiter, StreamNotExistsWaiter
86
+
87
+ if sys.version_info >= (3, 9):
88
+ from builtins import type as Type
89
+ from collections.abc import Mapping
90
+ else:
91
+ from typing import Mapping, Type
92
+ if sys.version_info >= (3, 12):
93
+ from typing import Literal, Unpack
94
+ else:
95
+ from typing_extensions import Literal, Unpack
96
+
97
+ __all__ = ("KinesisClient",)
98
+
99
+ class Exceptions(BaseClientExceptions):
100
+ AccessDeniedException: Type[BotocoreClientError]
101
+ ClientError: Type[BotocoreClientError]
102
+ ExpiredIteratorException: Type[BotocoreClientError]
103
+ ExpiredNextTokenException: Type[BotocoreClientError]
104
+ InternalFailureException: Type[BotocoreClientError]
105
+ InvalidArgumentException: Type[BotocoreClientError]
106
+ KMSAccessDeniedException: Type[BotocoreClientError]
107
+ KMSDisabledException: Type[BotocoreClientError]
108
+ KMSInvalidStateException: Type[BotocoreClientError]
109
+ KMSNotFoundException: Type[BotocoreClientError]
110
+ KMSOptInRequired: Type[BotocoreClientError]
111
+ KMSThrottlingException: Type[BotocoreClientError]
112
+ LimitExceededException: Type[BotocoreClientError]
113
+ ProvisionedThroughputExceededException: Type[BotocoreClientError]
114
+ ResourceInUseException: Type[BotocoreClientError]
115
+ ResourceNotFoundException: Type[BotocoreClientError]
116
+ ValidationException: Type[BotocoreClientError]
117
+
118
+ class KinesisClient(BaseClient):
119
+ """
120
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis.html#Kinesis.Client)
121
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/)
122
+ """
123
+
124
+ meta: ClientMeta
125
+
126
+ @property
127
+ def exceptions(self) -> Exceptions:
128
+ """
129
+ KinesisClient exceptions.
130
+
131
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis.html#Kinesis.Client)
132
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#exceptions)
133
+ """
134
+
135
+ def can_paginate(self, operation_name: str) -> bool:
136
+ """
137
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/can_paginate.html)
138
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#can_paginate)
139
+ """
140
+
141
+ def generate_presigned_url(
142
+ self,
143
+ ClientMethod: str,
144
+ Params: Mapping[str, Any] = ...,
145
+ ExpiresIn: int = 3600,
146
+ HttpMethod: str = ...,
147
+ ) -> str:
148
+ """
149
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/generate_presigned_url.html)
150
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#generate_presigned_url)
151
+ """
152
+
153
+ def add_tags_to_stream(
154
+ self, **kwargs: Unpack[AddTagsToStreamInputRequestTypeDef]
155
+ ) -> EmptyResponseMetadataTypeDef:
156
+ """
157
+ Adds or updates tags for the specified Kinesis data stream.
158
+
159
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/add_tags_to_stream.html)
160
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#add_tags_to_stream)
161
+ """
162
+
163
+ def create_stream(
164
+ self, **kwargs: Unpack[CreateStreamInputRequestTypeDef]
165
+ ) -> EmptyResponseMetadataTypeDef:
166
+ """
167
+ Creates a Kinesis data stream.
168
+
169
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/create_stream.html)
170
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#create_stream)
171
+ """
172
+
173
+ def decrease_stream_retention_period(
174
+ self, **kwargs: Unpack[DecreaseStreamRetentionPeriodInputRequestTypeDef]
175
+ ) -> EmptyResponseMetadataTypeDef:
176
+ """
177
+ Decreases the Kinesis data stream's retention period, which is the length of
178
+ time data records are accessible after they are added to the stream.
179
+
180
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/decrease_stream_retention_period.html)
181
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#decrease_stream_retention_period)
182
+ """
183
+
184
+ def delete_resource_policy(
185
+ self, **kwargs: Unpack[DeleteResourcePolicyInputRequestTypeDef]
186
+ ) -> EmptyResponseMetadataTypeDef:
187
+ """
188
+ Delete a policy for the specified data stream or consumer.
189
+
190
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/delete_resource_policy.html)
191
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#delete_resource_policy)
192
+ """
193
+
194
+ def delete_stream(
195
+ self, **kwargs: Unpack[DeleteStreamInputRequestTypeDef]
196
+ ) -> EmptyResponseMetadataTypeDef:
197
+ """
198
+ Deletes a Kinesis data stream and all its shards and data.
199
+
200
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/delete_stream.html)
201
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#delete_stream)
202
+ """
203
+
204
+ def deregister_stream_consumer(
205
+ self, **kwargs: Unpack[DeregisterStreamConsumerInputRequestTypeDef]
206
+ ) -> EmptyResponseMetadataTypeDef:
207
+ """
208
+ To deregister a consumer, provide its ARN.
209
+
210
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/deregister_stream_consumer.html)
211
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#deregister_stream_consumer)
212
+ """
213
+
214
+ def describe_limits(self) -> DescribeLimitsOutputTypeDef:
215
+ """
216
+ Describes the shard limits and usage for the account.
217
+
218
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/describe_limits.html)
219
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#describe_limits)
220
+ """
221
+
222
+ def describe_stream(
223
+ self, **kwargs: Unpack[DescribeStreamInputRequestTypeDef]
224
+ ) -> DescribeStreamOutputTypeDef:
225
+ """
226
+ Describes the specified Kinesis data stream.
227
+
228
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/describe_stream.html)
229
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#describe_stream)
230
+ """
231
+
232
+ def describe_stream_consumer(
233
+ self, **kwargs: Unpack[DescribeStreamConsumerInputRequestTypeDef]
234
+ ) -> DescribeStreamConsumerOutputTypeDef:
235
+ """
236
+ To get the description of a registered consumer, provide the ARN of the
237
+ consumer.
238
+
239
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/describe_stream_consumer.html)
240
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#describe_stream_consumer)
241
+ """
242
+
243
+ def describe_stream_summary(
244
+ self, **kwargs: Unpack[DescribeStreamSummaryInputRequestTypeDef]
245
+ ) -> DescribeStreamSummaryOutputTypeDef:
246
+ """
247
+ Provides a summarized description of the specified Kinesis data stream without
248
+ the shard list.
249
+
250
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/describe_stream_summary.html)
251
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#describe_stream_summary)
252
+ """
253
+
254
+ def disable_enhanced_monitoring(
255
+ self, **kwargs: Unpack[DisableEnhancedMonitoringInputRequestTypeDef]
256
+ ) -> EnhancedMonitoringOutputTypeDef:
257
+ """
258
+ Disables enhanced monitoring.
259
+
260
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/disable_enhanced_monitoring.html)
261
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#disable_enhanced_monitoring)
262
+ """
263
+
264
+ def enable_enhanced_monitoring(
265
+ self, **kwargs: Unpack[EnableEnhancedMonitoringInputRequestTypeDef]
266
+ ) -> EnhancedMonitoringOutputTypeDef:
267
+ """
268
+ Enables enhanced Kinesis data stream monitoring for shard-level metrics.
269
+
270
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/enable_enhanced_monitoring.html)
271
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#enable_enhanced_monitoring)
272
+ """
273
+
274
+ def get_records(
275
+ self, **kwargs: Unpack[GetRecordsInputRequestTypeDef]
276
+ ) -> GetRecordsOutputTypeDef:
277
+ """
278
+ Gets data records from a Kinesis data stream's shard.
279
+
280
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/get_records.html)
281
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#get_records)
282
+ """
283
+
284
+ def get_resource_policy(
285
+ self, **kwargs: Unpack[GetResourcePolicyInputRequestTypeDef]
286
+ ) -> GetResourcePolicyOutputTypeDef:
287
+ """
288
+ Returns a policy attached to the specified data stream or consumer.
289
+
290
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/get_resource_policy.html)
291
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#get_resource_policy)
292
+ """
293
+
294
+ def get_shard_iterator(
295
+ self, **kwargs: Unpack[GetShardIteratorInputRequestTypeDef]
296
+ ) -> GetShardIteratorOutputTypeDef:
297
+ """
298
+ Gets an Amazon Kinesis shard iterator.
299
+
300
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/get_shard_iterator.html)
301
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#get_shard_iterator)
302
+ """
303
+
304
+ def increase_stream_retention_period(
305
+ self, **kwargs: Unpack[IncreaseStreamRetentionPeriodInputRequestTypeDef]
306
+ ) -> EmptyResponseMetadataTypeDef:
307
+ """
308
+ Increases the Kinesis data stream's retention period, which is the length of
309
+ time data records are accessible after they are added to the stream.
310
+
311
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/increase_stream_retention_period.html)
312
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#increase_stream_retention_period)
313
+ """
314
+
315
+ def list_shards(
316
+ self, **kwargs: Unpack[ListShardsInputRequestTypeDef]
317
+ ) -> ListShardsOutputTypeDef:
318
+ """
319
+ Lists the shards in a stream and provides information about each shard.
320
+
321
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/list_shards.html)
322
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#list_shards)
323
+ """
324
+
325
+ def list_stream_consumers(
326
+ self, **kwargs: Unpack[ListStreamConsumersInputRequestTypeDef]
327
+ ) -> ListStreamConsumersOutputTypeDef:
328
+ """
329
+ Lists the consumers registered to receive data from a stream using enhanced
330
+ fan-out, and provides information about each consumer.
331
+
332
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/list_stream_consumers.html)
333
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#list_stream_consumers)
334
+ """
335
+
336
+ def list_streams(
337
+ self, **kwargs: Unpack[ListStreamsInputRequestTypeDef]
338
+ ) -> ListStreamsOutputTypeDef:
339
+ """
340
+ Lists your Kinesis data streams.
341
+
342
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/list_streams.html)
343
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#list_streams)
344
+ """
345
+
346
+ def list_tags_for_stream(
347
+ self, **kwargs: Unpack[ListTagsForStreamInputRequestTypeDef]
348
+ ) -> ListTagsForStreamOutputTypeDef:
349
+ """
350
+ Lists the tags for the specified Kinesis data stream.
351
+
352
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/list_tags_for_stream.html)
353
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#list_tags_for_stream)
354
+ """
355
+
356
+ def merge_shards(
357
+ self, **kwargs: Unpack[MergeShardsInputRequestTypeDef]
358
+ ) -> EmptyResponseMetadataTypeDef:
359
+ """
360
+ Merges two adjacent shards in a Kinesis data stream and combines them into a
361
+ single shard to reduce the stream's capacity to ingest and transport data.
362
+
363
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/merge_shards.html)
364
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#merge_shards)
365
+ """
366
+
367
+ def put_record(self, **kwargs: Unpack[PutRecordInputRequestTypeDef]) -> PutRecordOutputTypeDef:
368
+ """
369
+ Writes a single data record into an Amazon Kinesis data stream.
370
+
371
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/put_record.html)
372
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#put_record)
373
+ """
374
+
375
+ def put_records(
376
+ self, **kwargs: Unpack[PutRecordsInputRequestTypeDef]
377
+ ) -> PutRecordsOutputTypeDef:
378
+ """
379
+ Writes multiple data records into a Kinesis data stream in a single call (also
380
+ referred to as a <code>PutRecords</code> request).
381
+
382
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/put_records.html)
383
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#put_records)
384
+ """
385
+
386
+ def put_resource_policy(
387
+ self, **kwargs: Unpack[PutResourcePolicyInputRequestTypeDef]
388
+ ) -> EmptyResponseMetadataTypeDef:
389
+ """
390
+ Attaches a resource-based policy to a data stream or registered consumer.
391
+
392
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/put_resource_policy.html)
393
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#put_resource_policy)
394
+ """
395
+
396
+ def register_stream_consumer(
397
+ self, **kwargs: Unpack[RegisterStreamConsumerInputRequestTypeDef]
398
+ ) -> RegisterStreamConsumerOutputTypeDef:
399
+ """
400
+ Registers a consumer with a Kinesis data stream.
401
+
402
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/register_stream_consumer.html)
403
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#register_stream_consumer)
404
+ """
405
+
406
+ def remove_tags_from_stream(
407
+ self, **kwargs: Unpack[RemoveTagsFromStreamInputRequestTypeDef]
408
+ ) -> EmptyResponseMetadataTypeDef:
409
+ """
410
+ Removes tags from the specified Kinesis data stream.
411
+
412
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/remove_tags_from_stream.html)
413
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#remove_tags_from_stream)
414
+ """
415
+
416
+ def split_shard(
417
+ self, **kwargs: Unpack[SplitShardInputRequestTypeDef]
418
+ ) -> EmptyResponseMetadataTypeDef:
419
+ """
420
+ Splits a shard into two new shards in the Kinesis data stream, to increase the
421
+ stream's capacity to ingest and transport data.
422
+
423
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/split_shard.html)
424
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#split_shard)
425
+ """
426
+
427
+ def start_stream_encryption(
428
+ self, **kwargs: Unpack[StartStreamEncryptionInputRequestTypeDef]
429
+ ) -> EmptyResponseMetadataTypeDef:
430
+ """
431
+ Enables or updates server-side encryption using an Amazon Web Services KMS key
432
+ for a specified stream.
433
+
434
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/start_stream_encryption.html)
435
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#start_stream_encryption)
436
+ """
437
+
438
+ def stop_stream_encryption(
439
+ self, **kwargs: Unpack[StopStreamEncryptionInputRequestTypeDef]
440
+ ) -> EmptyResponseMetadataTypeDef:
441
+ """
442
+ Disables server-side encryption for a specified stream.
443
+
444
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/stop_stream_encryption.html)
445
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#stop_stream_encryption)
446
+ """
447
+
448
+ def subscribe_to_shard(
449
+ self, **kwargs: Unpack[SubscribeToShardInputRequestTypeDef]
450
+ ) -> SubscribeToShardOutputTypeDef:
451
+ """
452
+ This operation establishes an HTTP/2 connection between the consumer you
453
+ specify in the <code>ConsumerARN</code> parameter and the shard you specify in
454
+ the <code>ShardId</code> parameter.
455
+
456
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/subscribe_to_shard.html)
457
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#subscribe_to_shard)
458
+ """
459
+
460
+ def update_shard_count(
461
+ self, **kwargs: Unpack[UpdateShardCountInputRequestTypeDef]
462
+ ) -> UpdateShardCountOutputTypeDef:
463
+ """
464
+ Updates the shard count of the specified stream to the specified number of
465
+ shards.
466
+
467
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/update_shard_count.html)
468
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#update_shard_count)
469
+ """
470
+
471
+ def update_stream_mode(
472
+ self, **kwargs: Unpack[UpdateStreamModeInputRequestTypeDef]
473
+ ) -> EmptyResponseMetadataTypeDef:
474
+ """
475
+ Updates the capacity mode of the data stream.
476
+
477
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/update_stream_mode.html)
478
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#update_stream_mode)
479
+ """
480
+
481
+ @overload # type: ignore[override]
482
+ def get_paginator( # type: ignore[override]
483
+ self, operation_name: Literal["describe_stream"]
484
+ ) -> DescribeStreamPaginator:
485
+ """
486
+ Create a paginator for an operation.
487
+
488
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/get_paginator.html)
489
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#get_paginator)
490
+ """
491
+
492
+ @overload # type: ignore[override]
493
+ def get_paginator( # type: ignore[override]
494
+ self, operation_name: Literal["list_shards"]
495
+ ) -> ListShardsPaginator:
496
+ """
497
+ Create a paginator for an operation.
498
+
499
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/get_paginator.html)
500
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#get_paginator)
501
+ """
502
+
503
+ @overload # type: ignore[override]
504
+ def get_paginator( # type: ignore[override]
505
+ self, operation_name: Literal["list_stream_consumers"]
506
+ ) -> ListStreamConsumersPaginator:
507
+ """
508
+ Create a paginator for an operation.
509
+
510
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/get_paginator.html)
511
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#get_paginator)
512
+ """
513
+
514
+ @overload # type: ignore[override]
515
+ def get_paginator( # type: ignore[override]
516
+ self, operation_name: Literal["list_streams"]
517
+ ) -> ListStreamsPaginator:
518
+ """
519
+ Create a paginator for an operation.
520
+
521
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/get_paginator.html)
522
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#get_paginator)
523
+ """
524
+
525
+ @overload # type: ignore[override]
526
+ def get_waiter( # type: ignore[override]
527
+ self, waiter_name: Literal["stream_exists"]
528
+ ) -> StreamExistsWaiter:
529
+ """
530
+ Returns an object that can wait for some condition.
531
+
532
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/get_waiter.html)
533
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#get_waiter)
534
+ """
535
+
536
+ @overload # type: ignore[override]
537
+ def get_waiter( # type: ignore[override]
538
+ self, waiter_name: Literal["stream_not_exists"]
539
+ ) -> StreamNotExistsWaiter:
540
+ """
541
+ Returns an object that can wait for some condition.
542
+
543
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/get_waiter.html)
544
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_kinesis/client/#get_waiter)
545
+ """