types-boto3-dynamodbstreams 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,25 @@
1
+ """
2
+ Main interface for dynamodbstreams service.
3
+
4
+ Usage::
5
+
6
+ ```python
7
+ from boto3.session import Session
8
+ from types_boto3_dynamodbstreams import (
9
+ Client,
10
+ DynamoDBStreamsClient,
11
+ )
12
+
13
+ session = Session()
14
+ client: DynamoDBStreamsClient = session.client("dynamodbstreams")
15
+ ```
16
+
17
+ Copyright 2024 Vlad Emelianov
18
+ """
19
+
20
+ from .client import DynamoDBStreamsClient
21
+
22
+ Client = DynamoDBStreamsClient
23
+
24
+
25
+ __all__ = ("Client", "DynamoDBStreamsClient")
@@ -0,0 +1,24 @@
1
+ """
2
+ Main interface for dynamodbstreams service.
3
+
4
+ Usage::
5
+
6
+ ```python
7
+ from boto3.session import Session
8
+ from types_boto3_dynamodbstreams import (
9
+ Client,
10
+ DynamoDBStreamsClient,
11
+ )
12
+
13
+ session = Session()
14
+ client: DynamoDBStreamsClient = session.client("dynamodbstreams")
15
+ ```
16
+
17
+ Copyright 2024 Vlad Emelianov
18
+ """
19
+
20
+ from .client import DynamoDBStreamsClient
21
+
22
+ Client = DynamoDBStreamsClient
23
+
24
+ __all__ = ("Client", "DynamoDBStreamsClient")
@@ -0,0 +1,42 @@
1
+ """
2
+ Main CLI entrypoint.
3
+
4
+ Copyright 2024 Vlad Emelianov
5
+ """
6
+
7
+ import sys
8
+
9
+
10
+ def print_info() -> None:
11
+ """
12
+ Print package info to stdout.
13
+ """
14
+ print(
15
+ "Type annotations for boto3 DynamoDBStreams 1.35.71\n"
16
+ "Version: 1.35.71\n"
17
+ "Builder version: 8.4.1\n"
18
+ "Docs: https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams//\n"
19
+ "Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams.html#dynamodbstreams\n"
20
+ "Other services: https://pypi.org/project/boto3-stubs/\n"
21
+ "Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
22
+ )
23
+
24
+
25
+ def print_version() -> None:
26
+ """
27
+ Print package version to stdout.
28
+ """
29
+ print("1.35.71")
30
+
31
+
32
+ def main() -> None:
33
+ """
34
+ Main CLI entrypoint.
35
+ """
36
+ if "--version" in sys.argv:
37
+ return print_version()
38
+ print_info()
39
+
40
+
41
+ if __name__ == "__main__":
42
+ main()
@@ -0,0 +1,143 @@
1
+ """
2
+ Type annotations for dynamodbstreams service client.
3
+
4
+ [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/)
5
+
6
+ Usage::
7
+
8
+ ```python
9
+ from boto3.session import Session
10
+ from types_boto3_dynamodbstreams.client import DynamoDBStreamsClient
11
+
12
+ session = Session()
13
+ client: DynamoDBStreamsClient = session.client("dynamodbstreams")
14
+ ```
15
+
16
+ Copyright 2024 Vlad Emelianov
17
+ """
18
+
19
+ import sys
20
+ from typing import Any, Dict, Mapping, Type
21
+
22
+ from botocore.client import BaseClient, ClientMeta
23
+
24
+ from .type_defs import (
25
+ DescribeStreamInputRequestTypeDef,
26
+ DescribeStreamOutputTypeDef,
27
+ GetRecordsInputRequestTypeDef,
28
+ GetRecordsOutputTypeDef,
29
+ GetShardIteratorInputRequestTypeDef,
30
+ GetShardIteratorOutputTypeDef,
31
+ ListStreamsInputRequestTypeDef,
32
+ ListStreamsOutputTypeDef,
33
+ )
34
+
35
+ if sys.version_info >= (3, 12):
36
+ from typing import Unpack
37
+ else:
38
+ from typing_extensions import Unpack
39
+
40
+
41
+ __all__ = ("DynamoDBStreamsClient",)
42
+
43
+
44
+ class BotocoreClientError(Exception):
45
+ MSG_TEMPLATE: str
46
+
47
+ def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
48
+ self.response: Dict[str, Any]
49
+ self.operation_name: str
50
+
51
+
52
+ class Exceptions:
53
+ ClientError: Type[BotocoreClientError]
54
+ ExpiredIteratorException: Type[BotocoreClientError]
55
+ InternalServerError: Type[BotocoreClientError]
56
+ LimitExceededException: Type[BotocoreClientError]
57
+ ResourceNotFoundException: Type[BotocoreClientError]
58
+ TrimmedDataAccessException: Type[BotocoreClientError]
59
+
60
+
61
+ class DynamoDBStreamsClient(BaseClient):
62
+ """
63
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams.html#DynamoDBStreams.Client)
64
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/)
65
+ """
66
+
67
+ meta: ClientMeta
68
+
69
+ @property
70
+ def exceptions(self) -> Exceptions:
71
+ """
72
+ DynamoDBStreamsClient exceptions.
73
+
74
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams.html#DynamoDBStreams.Client)
75
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#exceptions)
76
+ """
77
+
78
+ def can_paginate(self, operation_name: str) -> bool:
79
+ """
80
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/can_paginate.html)
81
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#can_paginate)
82
+ """
83
+
84
+ def generate_presigned_url(
85
+ self,
86
+ ClientMethod: str,
87
+ Params: Mapping[str, Any] = ...,
88
+ ExpiresIn: int = 3600,
89
+ HttpMethod: str = ...,
90
+ ) -> str:
91
+ """
92
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/generate_presigned_url.html)
93
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#generate_presigned_url)
94
+ """
95
+
96
+ def close(self) -> None:
97
+ """
98
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/close.html)
99
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#close)
100
+ """
101
+
102
+ def describe_stream(
103
+ self, **kwargs: Unpack[DescribeStreamInputRequestTypeDef]
104
+ ) -> DescribeStreamOutputTypeDef:
105
+ """
106
+ Returns information about a stream, including the current status of the stream,
107
+ its Amazon Resource Name (ARN), the composition of its shards, and its
108
+ corresponding DynamoDB table.
109
+
110
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/describe_stream.html)
111
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#describe_stream)
112
+ """
113
+
114
+ def get_records(
115
+ self, **kwargs: Unpack[GetRecordsInputRequestTypeDef]
116
+ ) -> GetRecordsOutputTypeDef:
117
+ """
118
+ Retrieves the stream records from a given shard.
119
+
120
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/get_records.html)
121
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#get_records)
122
+ """
123
+
124
+ def get_shard_iterator(
125
+ self, **kwargs: Unpack[GetShardIteratorInputRequestTypeDef]
126
+ ) -> GetShardIteratorOutputTypeDef:
127
+ """
128
+ Returns a shard iterator.
129
+
130
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/get_shard_iterator.html)
131
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#get_shard_iterator)
132
+ """
133
+
134
+ def list_streams(
135
+ self, **kwargs: Unpack[ListStreamsInputRequestTypeDef]
136
+ ) -> ListStreamsOutputTypeDef:
137
+ """
138
+ Returns an array of stream ARNs associated with the current account and
139
+ endpoint.
140
+
141
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/list_streams.html)
142
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#list_streams)
143
+ """
@@ -0,0 +1,139 @@
1
+ """
2
+ Type annotations for dynamodbstreams service client.
3
+
4
+ [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/)
5
+
6
+ Usage::
7
+
8
+ ```python
9
+ from boto3.session import Session
10
+ from types_boto3_dynamodbstreams.client import DynamoDBStreamsClient
11
+
12
+ session = Session()
13
+ client: DynamoDBStreamsClient = session.client("dynamodbstreams")
14
+ ```
15
+
16
+ Copyright 2024 Vlad Emelianov
17
+ """
18
+
19
+ import sys
20
+ from typing import Any, Dict, Mapping, Type
21
+
22
+ from botocore.client import BaseClient, ClientMeta
23
+
24
+ from .type_defs import (
25
+ DescribeStreamInputRequestTypeDef,
26
+ DescribeStreamOutputTypeDef,
27
+ GetRecordsInputRequestTypeDef,
28
+ GetRecordsOutputTypeDef,
29
+ GetShardIteratorInputRequestTypeDef,
30
+ GetShardIteratorOutputTypeDef,
31
+ ListStreamsInputRequestTypeDef,
32
+ ListStreamsOutputTypeDef,
33
+ )
34
+
35
+ if sys.version_info >= (3, 12):
36
+ from typing import Unpack
37
+ else:
38
+ from typing_extensions import Unpack
39
+
40
+ __all__ = ("DynamoDBStreamsClient",)
41
+
42
+ class BotocoreClientError(Exception):
43
+ MSG_TEMPLATE: str
44
+
45
+ def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
46
+ self.response: Dict[str, Any]
47
+ self.operation_name: str
48
+
49
+ class Exceptions:
50
+ ClientError: Type[BotocoreClientError]
51
+ ExpiredIteratorException: Type[BotocoreClientError]
52
+ InternalServerError: Type[BotocoreClientError]
53
+ LimitExceededException: Type[BotocoreClientError]
54
+ ResourceNotFoundException: Type[BotocoreClientError]
55
+ TrimmedDataAccessException: Type[BotocoreClientError]
56
+
57
+ class DynamoDBStreamsClient(BaseClient):
58
+ """
59
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams.html#DynamoDBStreams.Client)
60
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/)
61
+ """
62
+
63
+ meta: ClientMeta
64
+
65
+ @property
66
+ def exceptions(self) -> Exceptions:
67
+ """
68
+ DynamoDBStreamsClient exceptions.
69
+
70
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams.html#DynamoDBStreams.Client)
71
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#exceptions)
72
+ """
73
+
74
+ def can_paginate(self, operation_name: str) -> bool:
75
+ """
76
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/can_paginate.html)
77
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#can_paginate)
78
+ """
79
+
80
+ def generate_presigned_url(
81
+ self,
82
+ ClientMethod: str,
83
+ Params: Mapping[str, Any] = ...,
84
+ ExpiresIn: int = 3600,
85
+ HttpMethod: str = ...,
86
+ ) -> str:
87
+ """
88
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/generate_presigned_url.html)
89
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#generate_presigned_url)
90
+ """
91
+
92
+ def close(self) -> None:
93
+ """
94
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/close.html)
95
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#close)
96
+ """
97
+
98
+ def describe_stream(
99
+ self, **kwargs: Unpack[DescribeStreamInputRequestTypeDef]
100
+ ) -> DescribeStreamOutputTypeDef:
101
+ """
102
+ Returns information about a stream, including the current status of the stream,
103
+ its Amazon Resource Name (ARN), the composition of its shards, and its
104
+ corresponding DynamoDB table.
105
+
106
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/describe_stream.html)
107
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#describe_stream)
108
+ """
109
+
110
+ def get_records(
111
+ self, **kwargs: Unpack[GetRecordsInputRequestTypeDef]
112
+ ) -> GetRecordsOutputTypeDef:
113
+ """
114
+ Retrieves the stream records from a given shard.
115
+
116
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/get_records.html)
117
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#get_records)
118
+ """
119
+
120
+ def get_shard_iterator(
121
+ self, **kwargs: Unpack[GetShardIteratorInputRequestTypeDef]
122
+ ) -> GetShardIteratorOutputTypeDef:
123
+ """
124
+ Returns a shard iterator.
125
+
126
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/get_shard_iterator.html)
127
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#get_shard_iterator)
128
+ """
129
+
130
+ def list_streams(
131
+ self, **kwargs: Unpack[ListStreamsInputRequestTypeDef]
132
+ ) -> ListStreamsOutputTypeDef:
133
+ """
134
+ Returns an array of stream ARNs associated with the current account and
135
+ endpoint.
136
+
137
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/list_streams.html)
138
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_dynamodbstreams/client/#list_streams)
139
+ """