types-aiobotocore-keyspacesstreams 2.25.2__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,36 @@
1
+ """
2
+ Main interface for keyspacesstreams service.
3
+
4
+ [Documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/)
5
+
6
+ Copyright 2025 Vlad Emelianov
7
+
8
+ Usage::
9
+
10
+ ```python
11
+ from aiobotocore.session import get_session
12
+ from types_aiobotocore_keyspacesstreams import (
13
+ Client,
14
+ GetStreamPaginator,
15
+ KeyspacesStreamsClient,
16
+ ListStreamsPaginator,
17
+ )
18
+
19
+ session = get_session()
20
+ async with session.create_client("keyspacesstreams") as client:
21
+ client: KeyspacesStreamsClient
22
+ ...
23
+
24
+
25
+ get_stream_paginator: GetStreamPaginator = client.get_paginator("get_stream")
26
+ list_streams_paginator: ListStreamsPaginator = client.get_paginator("list_streams")
27
+ ```
28
+ """
29
+
30
+ from .client import KeyspacesStreamsClient
31
+ from .paginator import GetStreamPaginator, ListStreamsPaginator
32
+
33
+ Client = KeyspacesStreamsClient
34
+
35
+
36
+ __all__ = ("Client", "GetStreamPaginator", "KeyspacesStreamsClient", "ListStreamsPaginator")
@@ -0,0 +1,35 @@
1
+ """
2
+ Main interface for keyspacesstreams service.
3
+
4
+ [Documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/)
5
+
6
+ Copyright 2025 Vlad Emelianov
7
+
8
+ Usage::
9
+
10
+ ```python
11
+ from aiobotocore.session import get_session
12
+ from types_aiobotocore_keyspacesstreams import (
13
+ Client,
14
+ GetStreamPaginator,
15
+ KeyspacesStreamsClient,
16
+ ListStreamsPaginator,
17
+ )
18
+
19
+ session = get_session()
20
+ async with session.create_client("keyspacesstreams") as client:
21
+ client: KeyspacesStreamsClient
22
+ ...
23
+
24
+
25
+ get_stream_paginator: GetStreamPaginator = client.get_paginator("get_stream")
26
+ list_streams_paginator: ListStreamsPaginator = client.get_paginator("list_streams")
27
+ ```
28
+ """
29
+
30
+ from .client import KeyspacesStreamsClient
31
+ from .paginator import GetStreamPaginator, ListStreamsPaginator
32
+
33
+ Client = KeyspacesStreamsClient
34
+
35
+ __all__ = ("Client", "GetStreamPaginator", "KeyspacesStreamsClient", "ListStreamsPaginator")
@@ -0,0 +1,43 @@
1
+ """
2
+ Main CLI entrypoint.
3
+
4
+ Copyright 2025 Vlad Emelianov
5
+ """
6
+
7
+ import sys
8
+
9
+
10
+ def print_info() -> None:
11
+ """
12
+ Print package info to stdout.
13
+ """
14
+ sys.stdout.write(
15
+ "Type annotations for aiobotocore KeyspacesStreams 2.25.2\n"
16
+ "Version: 2.25.2\n"
17
+ "Builder version: 8.12.0\n"
18
+ "Docs: https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams//\n"
19
+ "Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams.html#keyspacesstreams\n"
20
+ "Other services: https://pypi.org/project/boto3-stubs/\n"
21
+ "Changelog: https://github.com/youtype/mypy_boto3_builder/releases\n"
22
+ )
23
+
24
+
25
+ def print_version() -> None:
26
+ """
27
+ Print package version to stdout.
28
+ """
29
+ sys.stdout.write("2.25.2\n")
30
+
31
+
32
+ def main() -> None:
33
+ """
34
+ Main CLI entrypoint.
35
+ """
36
+ if "--version" in sys.argv:
37
+ print_version()
38
+ return
39
+ print_info()
40
+
41
+
42
+ if __name__ == "__main__":
43
+ main()
@@ -0,0 +1,176 @@
1
+ """
2
+ Type annotations for keyspacesstreams service Client.
3
+
4
+ [Documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/)
5
+
6
+ Copyright 2025 Vlad Emelianov
7
+
8
+ Usage::
9
+
10
+ ```python
11
+ from aiobotocore.session import get_session
12
+ from types_aiobotocore_keyspacesstreams.client import KeyspacesStreamsClient
13
+
14
+ session = get_session()
15
+ async with session.create_client("keyspacesstreams") as client:
16
+ client: KeyspacesStreamsClient
17
+ ```
18
+ """
19
+
20
+ from __future__ import annotations
21
+
22
+ import sys
23
+ from collections.abc import Mapping
24
+ from types import TracebackType
25
+ from typing import Any, overload
26
+
27
+ from aiobotocore.client import AioBaseClient
28
+ from botocore.client import ClientMeta
29
+ from botocore.errorfactory import BaseClientExceptions
30
+ from botocore.exceptions import ClientError as BotocoreClientError
31
+
32
+ from .paginator import GetStreamPaginator, ListStreamsPaginator
33
+ from .type_defs import (
34
+ GetRecordsInputTypeDef,
35
+ GetRecordsOutputTypeDef,
36
+ GetShardIteratorInputTypeDef,
37
+ GetShardIteratorOutputTypeDef,
38
+ GetStreamInputTypeDef,
39
+ GetStreamOutputTypeDef,
40
+ ListStreamsInputTypeDef,
41
+ ListStreamsOutputTypeDef,
42
+ )
43
+
44
+ if sys.version_info >= (3, 12):
45
+ from typing import Literal, Self, Unpack
46
+ else:
47
+ from typing_extensions import Literal, Self, Unpack
48
+
49
+
50
+ __all__ = ("KeyspacesStreamsClient",)
51
+
52
+
53
+ class Exceptions(BaseClientExceptions):
54
+ AccessDeniedException: type[BotocoreClientError]
55
+ ClientError: type[BotocoreClientError]
56
+ InternalServerException: type[BotocoreClientError]
57
+ ResourceNotFoundException: type[BotocoreClientError]
58
+ ThrottlingException: type[BotocoreClientError]
59
+ ValidationException: type[BotocoreClientError]
60
+
61
+
62
+ class KeyspacesStreamsClient(AioBaseClient):
63
+ """
64
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams.html#KeyspacesStreams.Client)
65
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/)
66
+ """
67
+
68
+ meta: ClientMeta
69
+
70
+ @property
71
+ def exceptions(self) -> Exceptions:
72
+ """
73
+ KeyspacesStreamsClient exceptions.
74
+
75
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams.html#KeyspacesStreams.Client)
76
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#exceptions)
77
+ """
78
+
79
+ def can_paginate(self, operation_name: str) -> bool:
80
+ """
81
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/can_paginate.html)
82
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#can_paginate)
83
+ """
84
+
85
+ async def generate_presigned_url(
86
+ self,
87
+ ClientMethod: str,
88
+ Params: Mapping[str, Any] = ...,
89
+ ExpiresIn: int = 3600,
90
+ HttpMethod: str = ...,
91
+ ) -> str:
92
+ """
93
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/generate_presigned_url.html)
94
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#generate_presigned_url)
95
+ """
96
+
97
+ async def get_records(
98
+ self, **kwargs: Unpack[GetRecordsInputTypeDef]
99
+ ) -> GetRecordsOutputTypeDef:
100
+ """
101
+ Retrieves data records from a specified shard in an Amazon Keyspaces data
102
+ stream.
103
+
104
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/get_records.html)
105
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#get_records)
106
+ """
107
+
108
+ async def get_shard_iterator(
109
+ self, **kwargs: Unpack[GetShardIteratorInputTypeDef]
110
+ ) -> GetShardIteratorOutputTypeDef:
111
+ """
112
+ Returns a shard iterator that serves as a bookmark for reading data from a
113
+ specific position in an Amazon Keyspaces data stream's shard.
114
+
115
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/get_shard_iterator.html)
116
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#get_shard_iterator)
117
+ """
118
+
119
+ async def get_stream(self, **kwargs: Unpack[GetStreamInputTypeDef]) -> GetStreamOutputTypeDef:
120
+ """
121
+ Returns detailed information about a specific data capture stream for an Amazon
122
+ Keyspaces table.
123
+
124
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/get_stream.html)
125
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#get_stream)
126
+ """
127
+
128
+ async def list_streams(
129
+ self, **kwargs: Unpack[ListStreamsInputTypeDef]
130
+ ) -> ListStreamsOutputTypeDef:
131
+ """
132
+ Returns a list of all data capture streams associated with your Amazon
133
+ Keyspaces account or for a specific keyspace or table.
134
+
135
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/list_streams.html)
136
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#list_streams)
137
+ """
138
+
139
+ @overload # type: ignore[override]
140
+ def get_paginator( # type: ignore[override]
141
+ self, operation_name: Literal["get_stream"]
142
+ ) -> GetStreamPaginator:
143
+ """
144
+ Create a paginator for an operation.
145
+
146
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/get_paginator.html)
147
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#get_paginator)
148
+ """
149
+
150
+ @overload # type: ignore[override]
151
+ def get_paginator( # type: ignore[override]
152
+ self, operation_name: Literal["list_streams"]
153
+ ) -> ListStreamsPaginator:
154
+ """
155
+ Create a paginator for an operation.
156
+
157
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/get_paginator.html)
158
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#get_paginator)
159
+ """
160
+
161
+ async def __aenter__(self) -> Self:
162
+ """
163
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams.html#KeyspacesStreams.Client)
164
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/)
165
+ """
166
+
167
+ async def __aexit__(
168
+ self,
169
+ exc_type: type[BaseException] | None,
170
+ exc_val: BaseException | None,
171
+ exc_tb: TracebackType | None,
172
+ ) -> None:
173
+ """
174
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams.html#KeyspacesStreams.Client)
175
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/)
176
+ """
@@ -0,0 +1,173 @@
1
+ """
2
+ Type annotations for keyspacesstreams service Client.
3
+
4
+ [Documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/)
5
+
6
+ Copyright 2025 Vlad Emelianov
7
+
8
+ Usage::
9
+
10
+ ```python
11
+ from aiobotocore.session import get_session
12
+ from types_aiobotocore_keyspacesstreams.client import KeyspacesStreamsClient
13
+
14
+ session = get_session()
15
+ async with session.create_client("keyspacesstreams") as client:
16
+ client: KeyspacesStreamsClient
17
+ ```
18
+ """
19
+
20
+ from __future__ import annotations
21
+
22
+ import sys
23
+ from collections.abc import Mapping
24
+ from types import TracebackType
25
+ from typing import Any, overload
26
+
27
+ from aiobotocore.client import AioBaseClient
28
+ from botocore.client import ClientMeta
29
+ from botocore.errorfactory import BaseClientExceptions
30
+ from botocore.exceptions import ClientError as BotocoreClientError
31
+
32
+ from .paginator import GetStreamPaginator, ListStreamsPaginator
33
+ from .type_defs import (
34
+ GetRecordsInputTypeDef,
35
+ GetRecordsOutputTypeDef,
36
+ GetShardIteratorInputTypeDef,
37
+ GetShardIteratorOutputTypeDef,
38
+ GetStreamInputTypeDef,
39
+ GetStreamOutputTypeDef,
40
+ ListStreamsInputTypeDef,
41
+ ListStreamsOutputTypeDef,
42
+ )
43
+
44
+ if sys.version_info >= (3, 12):
45
+ from typing import Literal, Self, Unpack
46
+ else:
47
+ from typing_extensions import Literal, Self, Unpack
48
+
49
+ __all__ = ("KeyspacesStreamsClient",)
50
+
51
+ class Exceptions(BaseClientExceptions):
52
+ AccessDeniedException: type[BotocoreClientError]
53
+ ClientError: type[BotocoreClientError]
54
+ InternalServerException: type[BotocoreClientError]
55
+ ResourceNotFoundException: type[BotocoreClientError]
56
+ ThrottlingException: type[BotocoreClientError]
57
+ ValidationException: type[BotocoreClientError]
58
+
59
+ class KeyspacesStreamsClient(AioBaseClient):
60
+ """
61
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams.html#KeyspacesStreams.Client)
62
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/)
63
+ """
64
+
65
+ meta: ClientMeta
66
+
67
+ @property
68
+ def exceptions(self) -> Exceptions:
69
+ """
70
+ KeyspacesStreamsClient exceptions.
71
+
72
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams.html#KeyspacesStreams.Client)
73
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#exceptions)
74
+ """
75
+
76
+ def can_paginate(self, operation_name: str) -> bool:
77
+ """
78
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/can_paginate.html)
79
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#can_paginate)
80
+ """
81
+
82
+ async def generate_presigned_url(
83
+ self,
84
+ ClientMethod: str,
85
+ Params: Mapping[str, Any] = ...,
86
+ ExpiresIn: int = 3600,
87
+ HttpMethod: str = ...,
88
+ ) -> str:
89
+ """
90
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/generate_presigned_url.html)
91
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#generate_presigned_url)
92
+ """
93
+
94
+ async def get_records(
95
+ self, **kwargs: Unpack[GetRecordsInputTypeDef]
96
+ ) -> GetRecordsOutputTypeDef:
97
+ """
98
+ Retrieves data records from a specified shard in an Amazon Keyspaces data
99
+ stream.
100
+
101
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/get_records.html)
102
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#get_records)
103
+ """
104
+
105
+ async def get_shard_iterator(
106
+ self, **kwargs: Unpack[GetShardIteratorInputTypeDef]
107
+ ) -> GetShardIteratorOutputTypeDef:
108
+ """
109
+ Returns a shard iterator that serves as a bookmark for reading data from a
110
+ specific position in an Amazon Keyspaces data stream's shard.
111
+
112
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/get_shard_iterator.html)
113
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#get_shard_iterator)
114
+ """
115
+
116
+ async def get_stream(self, **kwargs: Unpack[GetStreamInputTypeDef]) -> GetStreamOutputTypeDef:
117
+ """
118
+ Returns detailed information about a specific data capture stream for an Amazon
119
+ Keyspaces table.
120
+
121
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/get_stream.html)
122
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#get_stream)
123
+ """
124
+
125
+ async def list_streams(
126
+ self, **kwargs: Unpack[ListStreamsInputTypeDef]
127
+ ) -> ListStreamsOutputTypeDef:
128
+ """
129
+ Returns a list of all data capture streams associated with your Amazon
130
+ Keyspaces account or for a specific keyspace or table.
131
+
132
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/list_streams.html)
133
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#list_streams)
134
+ """
135
+
136
+ @overload # type: ignore[override]
137
+ def get_paginator( # type: ignore[override]
138
+ self, operation_name: Literal["get_stream"]
139
+ ) -> GetStreamPaginator:
140
+ """
141
+ Create a paginator for an operation.
142
+
143
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/get_paginator.html)
144
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#get_paginator)
145
+ """
146
+
147
+ @overload # type: ignore[override]
148
+ def get_paginator( # type: ignore[override]
149
+ self, operation_name: Literal["list_streams"]
150
+ ) -> ListStreamsPaginator:
151
+ """
152
+ Create a paginator for an operation.
153
+
154
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams/client/get_paginator.html)
155
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/#get_paginator)
156
+ """
157
+
158
+ async def __aenter__(self) -> Self:
159
+ """
160
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams.html#KeyspacesStreams.Client)
161
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/)
162
+ """
163
+
164
+ async def __aexit__(
165
+ self,
166
+ exc_type: type[BaseException] | None,
167
+ exc_val: BaseException | None,
168
+ exc_tb: TracebackType | None,
169
+ ) -> None:
170
+ """
171
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/keyspacesstreams.html#KeyspacesStreams.Client)
172
+ [Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_keyspacesstreams/client/)
173
+ """