mypy-boto3-s3vectors 1.39.5__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.

Potentially problematic release.


This version of mypy-boto3-s3vectors might be problematic. Click here for more details.

@@ -0,0 +1,41 @@
1
+ """
2
+ Main interface for s3vectors service.
3
+
4
+ [Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/)
5
+
6
+ Copyright 2025 Vlad Emelianov
7
+
8
+ Usage::
9
+
10
+ ```python
11
+ from boto3.session import Session
12
+ from mypy_boto3_s3vectors import (
13
+ Client,
14
+ ListIndexesPaginator,
15
+ ListVectorBucketsPaginator,
16
+ ListVectorsPaginator,
17
+ S3VectorsClient,
18
+ )
19
+
20
+ session = Session()
21
+ client: S3VectorsClient = session.client("s3vectors")
22
+
23
+ list_indexes_paginator: ListIndexesPaginator = client.get_paginator("list_indexes")
24
+ list_vector_buckets_paginator: ListVectorBucketsPaginator = client.get_paginator("list_vector_buckets")
25
+ list_vectors_paginator: ListVectorsPaginator = client.get_paginator("list_vectors")
26
+ ```
27
+ """
28
+
29
+ from .client import S3VectorsClient
30
+ from .paginator import ListIndexesPaginator, ListVectorBucketsPaginator, ListVectorsPaginator
31
+
32
+ Client = S3VectorsClient
33
+
34
+
35
+ __all__ = (
36
+ "Client",
37
+ "ListIndexesPaginator",
38
+ "ListVectorBucketsPaginator",
39
+ "ListVectorsPaginator",
40
+ "S3VectorsClient",
41
+ )
@@ -0,0 +1,40 @@
1
+ """
2
+ Main interface for s3vectors service.
3
+
4
+ [Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/)
5
+
6
+ Copyright 2025 Vlad Emelianov
7
+
8
+ Usage::
9
+
10
+ ```python
11
+ from boto3.session import Session
12
+ from mypy_boto3_s3vectors import (
13
+ Client,
14
+ ListIndexesPaginator,
15
+ ListVectorBucketsPaginator,
16
+ ListVectorsPaginator,
17
+ S3VectorsClient,
18
+ )
19
+
20
+ session = Session()
21
+ client: S3VectorsClient = session.client("s3vectors")
22
+
23
+ list_indexes_paginator: ListIndexesPaginator = client.get_paginator("list_indexes")
24
+ list_vector_buckets_paginator: ListVectorBucketsPaginator = client.get_paginator("list_vector_buckets")
25
+ list_vectors_paginator: ListVectorsPaginator = client.get_paginator("list_vectors")
26
+ ```
27
+ """
28
+
29
+ from .client import S3VectorsClient
30
+ from .paginator import ListIndexesPaginator, ListVectorBucketsPaginator, ListVectorsPaginator
31
+
32
+ Client = S3VectorsClient
33
+
34
+ __all__ = (
35
+ "Client",
36
+ "ListIndexesPaginator",
37
+ "ListVectorBucketsPaginator",
38
+ "ListVectorsPaginator",
39
+ "S3VectorsClient",
40
+ )
@@ -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 boto3 S3Vectors 1.39.5\n"
16
+ "Version: 1.39.5\n"
17
+ "Builder version: 8.11.0\n"
18
+ "Docs: https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors//\n"
19
+ "Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors.html#s3vectors\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("1.39.5\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,313 @@
1
+ """
2
+ Type annotations for s3vectors service Client.
3
+
4
+ [Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/)
5
+
6
+ Copyright 2025 Vlad Emelianov
7
+
8
+ Usage::
9
+
10
+ ```python
11
+ from boto3.session import Session
12
+ from mypy_boto3_s3vectors.client import S3VectorsClient
13
+
14
+ session = Session()
15
+ client: S3VectorsClient = session.client("s3vectors")
16
+ ```
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 ListIndexesPaginator, ListVectorBucketsPaginator, ListVectorsPaginator
29
+ from .type_defs import (
30
+ CreateIndexInputTypeDef,
31
+ CreateVectorBucketInputTypeDef,
32
+ DeleteIndexInputTypeDef,
33
+ DeleteVectorBucketInputTypeDef,
34
+ DeleteVectorBucketPolicyInputTypeDef,
35
+ DeleteVectorsInputTypeDef,
36
+ GetIndexInputTypeDef,
37
+ GetIndexOutputTypeDef,
38
+ GetVectorBucketInputTypeDef,
39
+ GetVectorBucketOutputTypeDef,
40
+ GetVectorBucketPolicyInputTypeDef,
41
+ GetVectorBucketPolicyOutputTypeDef,
42
+ GetVectorsInputTypeDef,
43
+ GetVectorsOutputTypeDef,
44
+ ListIndexesInputTypeDef,
45
+ ListIndexesOutputTypeDef,
46
+ ListVectorBucketsInputTypeDef,
47
+ ListVectorBucketsOutputTypeDef,
48
+ ListVectorsInputTypeDef,
49
+ ListVectorsOutputTypeDef,
50
+ PutVectorBucketPolicyInputTypeDef,
51
+ PutVectorsInputTypeDef,
52
+ QueryVectorsInputTypeDef,
53
+ QueryVectorsOutputTypeDef,
54
+ )
55
+
56
+ if sys.version_info >= (3, 9):
57
+ from builtins import dict as Dict
58
+ from builtins import type as Type
59
+ from collections.abc import Mapping
60
+ else:
61
+ from typing import Dict, Mapping, Type
62
+ if sys.version_info >= (3, 12):
63
+ from typing import Literal, Unpack
64
+ else:
65
+ from typing_extensions import Literal, Unpack
66
+
67
+
68
+ __all__ = ("S3VectorsClient",)
69
+
70
+
71
+ class Exceptions(BaseClientExceptions):
72
+ AccessDeniedException: Type[BotocoreClientError]
73
+ ClientError: Type[BotocoreClientError]
74
+ ConflictException: Type[BotocoreClientError]
75
+ InternalServerException: Type[BotocoreClientError]
76
+ KmsDisabledException: Type[BotocoreClientError]
77
+ KmsInvalidKeyUsageException: Type[BotocoreClientError]
78
+ KmsInvalidStateException: Type[BotocoreClientError]
79
+ KmsNotFoundException: Type[BotocoreClientError]
80
+ NotFoundException: Type[BotocoreClientError]
81
+ ServiceQuotaExceededException: Type[BotocoreClientError]
82
+ ServiceUnavailableException: Type[BotocoreClientError]
83
+ TooManyRequestsException: Type[BotocoreClientError]
84
+ ValidationException: Type[BotocoreClientError]
85
+
86
+
87
+ class S3VectorsClient(BaseClient):
88
+ """
89
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors.html#S3Vectors.Client)
90
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/)
91
+ """
92
+
93
+ meta: ClientMeta
94
+
95
+ @property
96
+ def exceptions(self) -> Exceptions:
97
+ """
98
+ S3VectorsClient exceptions.
99
+
100
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors.html#S3Vectors.Client)
101
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#exceptions)
102
+ """
103
+
104
+ def can_paginate(self, operation_name: str) -> bool:
105
+ """
106
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/can_paginate.html)
107
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#can_paginate)
108
+ """
109
+
110
+ def generate_presigned_url(
111
+ self,
112
+ ClientMethod: str,
113
+ Params: Mapping[str, Any] = ...,
114
+ ExpiresIn: int = 3600,
115
+ HttpMethod: str = ...,
116
+ ) -> str:
117
+ """
118
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/generate_presigned_url.html)
119
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#generate_presigned_url)
120
+ """
121
+
122
+ def create_index(self, **kwargs: Unpack[CreateIndexInputTypeDef]) -> Dict[str, Any]:
123
+ """
124
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
125
+ to change.
126
+
127
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/create_index.html)
128
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#create_index)
129
+ """
130
+
131
+ def create_vector_bucket(
132
+ self, **kwargs: Unpack[CreateVectorBucketInputTypeDef]
133
+ ) -> Dict[str, Any]:
134
+ """
135
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
136
+ to change.
137
+
138
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/create_vector_bucket.html)
139
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#create_vector_bucket)
140
+ """
141
+
142
+ def delete_index(self, **kwargs: Unpack[DeleteIndexInputTypeDef]) -> Dict[str, Any]:
143
+ """
144
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
145
+ to change.
146
+
147
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/delete_index.html)
148
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#delete_index)
149
+ """
150
+
151
+ def delete_vector_bucket(
152
+ self, **kwargs: Unpack[DeleteVectorBucketInputTypeDef]
153
+ ) -> Dict[str, Any]:
154
+ """
155
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
156
+ to change.
157
+
158
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/delete_vector_bucket.html)
159
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#delete_vector_bucket)
160
+ """
161
+
162
+ def delete_vector_bucket_policy(
163
+ self, **kwargs: Unpack[DeleteVectorBucketPolicyInputTypeDef]
164
+ ) -> Dict[str, Any]:
165
+ """
166
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
167
+ to change.
168
+
169
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/delete_vector_bucket_policy.html)
170
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#delete_vector_bucket_policy)
171
+ """
172
+
173
+ def delete_vectors(self, **kwargs: Unpack[DeleteVectorsInputTypeDef]) -> Dict[str, Any]:
174
+ """
175
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
176
+ to change.
177
+
178
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/delete_vectors.html)
179
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#delete_vectors)
180
+ """
181
+
182
+ def get_index(self, **kwargs: Unpack[GetIndexInputTypeDef]) -> GetIndexOutputTypeDef:
183
+ """
184
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
185
+ to change.
186
+
187
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_index.html)
188
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_index)
189
+ """
190
+
191
+ def get_vector_bucket(
192
+ self, **kwargs: Unpack[GetVectorBucketInputTypeDef]
193
+ ) -> GetVectorBucketOutputTypeDef:
194
+ """
195
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
196
+ to change.
197
+
198
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_vector_bucket.html)
199
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_vector_bucket)
200
+ """
201
+
202
+ def get_vector_bucket_policy(
203
+ self, **kwargs: Unpack[GetVectorBucketPolicyInputTypeDef]
204
+ ) -> GetVectorBucketPolicyOutputTypeDef:
205
+ """
206
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
207
+ to change.
208
+
209
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_vector_bucket_policy.html)
210
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_vector_bucket_policy)
211
+ """
212
+
213
+ def get_vectors(self, **kwargs: Unpack[GetVectorsInputTypeDef]) -> GetVectorsOutputTypeDef:
214
+ """
215
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
216
+ to change.
217
+
218
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_vectors.html)
219
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_vectors)
220
+ """
221
+
222
+ def list_indexes(self, **kwargs: Unpack[ListIndexesInputTypeDef]) -> ListIndexesOutputTypeDef:
223
+ """
224
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
225
+ to change.
226
+
227
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/list_indexes.html)
228
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#list_indexes)
229
+ """
230
+
231
+ def list_vector_buckets(
232
+ self, **kwargs: Unpack[ListVectorBucketsInputTypeDef]
233
+ ) -> ListVectorBucketsOutputTypeDef:
234
+ """
235
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
236
+ to change.
237
+
238
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/list_vector_buckets.html)
239
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#list_vector_buckets)
240
+ """
241
+
242
+ def list_vectors(self, **kwargs: Unpack[ListVectorsInputTypeDef]) -> ListVectorsOutputTypeDef:
243
+ """
244
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
245
+ to change.
246
+
247
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/list_vectors.html)
248
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#list_vectors)
249
+ """
250
+
251
+ def put_vector_bucket_policy(
252
+ self, **kwargs: Unpack[PutVectorBucketPolicyInputTypeDef]
253
+ ) -> Dict[str, Any]:
254
+ """
255
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
256
+ to change.
257
+
258
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/put_vector_bucket_policy.html)
259
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#put_vector_bucket_policy)
260
+ """
261
+
262
+ def put_vectors(self, **kwargs: Unpack[PutVectorsInputTypeDef]) -> Dict[str, Any]:
263
+ """
264
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
265
+ to change.
266
+
267
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/put_vectors.html)
268
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#put_vectors)
269
+ """
270
+
271
+ def query_vectors(
272
+ self, **kwargs: Unpack[QueryVectorsInputTypeDef]
273
+ ) -> QueryVectorsOutputTypeDef:
274
+ """
275
+ <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
276
+ to change.
277
+
278
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/query_vectors.html)
279
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#query_vectors)
280
+ """
281
+
282
+ @overload # type: ignore[override]
283
+ def get_paginator( # type: ignore[override]
284
+ self, operation_name: Literal["list_indexes"]
285
+ ) -> ListIndexesPaginator:
286
+ """
287
+ Create a paginator for an operation.
288
+
289
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_paginator.html)
290
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_paginator)
291
+ """
292
+
293
+ @overload # type: ignore[override]
294
+ def get_paginator( # type: ignore[override]
295
+ self, operation_name: Literal["list_vector_buckets"]
296
+ ) -> ListVectorBucketsPaginator:
297
+ """
298
+ Create a paginator for an operation.
299
+
300
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_paginator.html)
301
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_paginator)
302
+ """
303
+
304
+ @overload # type: ignore[override]
305
+ def get_paginator( # type: ignore[override]
306
+ self, operation_name: Literal["list_vectors"]
307
+ ) -> ListVectorsPaginator:
308
+ """
309
+ Create a paginator for an operation.
310
+
311
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_paginator.html)
312
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_paginator)
313
+ """