mypy-boto3-s3vectors 1.42.3__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,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.42.3\n"
16
+ "Version: 1.42.3\n"
17
+ "Builder version: 8.12.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.42.3\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,329 @@
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 collections.abc import Mapping
23
+ from typing import Any, overload
24
+
25
+ from botocore.client import BaseClient, ClientMeta
26
+ from botocore.errorfactory import BaseClientExceptions
27
+ from botocore.exceptions import ClientError as BotocoreClientError
28
+
29
+ from .paginator import ListIndexesPaginator, ListVectorBucketsPaginator, ListVectorsPaginator
30
+ from .type_defs import (
31
+ CreateIndexInputTypeDef,
32
+ CreateIndexOutputTypeDef,
33
+ CreateVectorBucketInputTypeDef,
34
+ CreateVectorBucketOutputTypeDef,
35
+ DeleteIndexInputTypeDef,
36
+ DeleteVectorBucketInputTypeDef,
37
+ DeleteVectorBucketPolicyInputTypeDef,
38
+ DeleteVectorsInputTypeDef,
39
+ GetIndexInputTypeDef,
40
+ GetIndexOutputTypeDef,
41
+ GetVectorBucketInputTypeDef,
42
+ GetVectorBucketOutputTypeDef,
43
+ GetVectorBucketPolicyInputTypeDef,
44
+ GetVectorBucketPolicyOutputTypeDef,
45
+ GetVectorsInputTypeDef,
46
+ GetVectorsOutputTypeDef,
47
+ ListIndexesInputTypeDef,
48
+ ListIndexesOutputTypeDef,
49
+ ListTagsForResourceInputTypeDef,
50
+ ListTagsForResourceOutputTypeDef,
51
+ ListVectorBucketsInputTypeDef,
52
+ ListVectorBucketsOutputTypeDef,
53
+ ListVectorsInputTypeDef,
54
+ ListVectorsOutputTypeDef,
55
+ PutVectorBucketPolicyInputTypeDef,
56
+ PutVectorsInputTypeDef,
57
+ QueryVectorsInputTypeDef,
58
+ QueryVectorsOutputTypeDef,
59
+ TagResourceInputTypeDef,
60
+ UntagResourceInputTypeDef,
61
+ )
62
+
63
+ if sys.version_info >= (3, 12):
64
+ from typing import Literal, Unpack
65
+ else:
66
+ from typing_extensions import Literal, Unpack
67
+
68
+
69
+ __all__ = ("S3VectorsClient",)
70
+
71
+
72
+ class Exceptions(BaseClientExceptions):
73
+ AccessDeniedException: type[BotocoreClientError]
74
+ ClientError: type[BotocoreClientError]
75
+ ConflictException: type[BotocoreClientError]
76
+ InternalServerException: type[BotocoreClientError]
77
+ KmsDisabledException: type[BotocoreClientError]
78
+ KmsInvalidKeyUsageException: type[BotocoreClientError]
79
+ KmsInvalidStateException: type[BotocoreClientError]
80
+ KmsNotFoundException: type[BotocoreClientError]
81
+ NotFoundException: type[BotocoreClientError]
82
+ RequestTimeoutException: type[BotocoreClientError]
83
+ ServiceQuotaExceededException: type[BotocoreClientError]
84
+ ServiceUnavailableException: type[BotocoreClientError]
85
+ TooManyRequestsException: type[BotocoreClientError]
86
+ ValidationException: type[BotocoreClientError]
87
+
88
+
89
+ class S3VectorsClient(BaseClient):
90
+ """
91
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors.html#S3Vectors.Client)
92
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/)
93
+ """
94
+
95
+ meta: ClientMeta
96
+
97
+ @property
98
+ def exceptions(self) -> Exceptions:
99
+ """
100
+ S3VectorsClient exceptions.
101
+
102
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors.html#S3Vectors.Client)
103
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#exceptions)
104
+ """
105
+
106
+ def can_paginate(self, operation_name: str) -> bool:
107
+ """
108
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/can_paginate.html)
109
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#can_paginate)
110
+ """
111
+
112
+ def generate_presigned_url(
113
+ self,
114
+ ClientMethod: str,
115
+ Params: Mapping[str, Any] = ...,
116
+ ExpiresIn: int = 3600,
117
+ HttpMethod: str = ...,
118
+ ) -> str:
119
+ """
120
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/generate_presigned_url.html)
121
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#generate_presigned_url)
122
+ """
123
+
124
+ def create_index(self, **kwargs: Unpack[CreateIndexInputTypeDef]) -> CreateIndexOutputTypeDef:
125
+ """
126
+ Creates a vector index within a vector bucket.
127
+
128
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/create_index.html)
129
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#create_index)
130
+ """
131
+
132
+ def create_vector_bucket(
133
+ self, **kwargs: Unpack[CreateVectorBucketInputTypeDef]
134
+ ) -> CreateVectorBucketOutputTypeDef:
135
+ """
136
+ Creates a vector bucket in the Amazon Web Services Region that you want your
137
+ bucket to be in.
138
+
139
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/create_vector_bucket.html)
140
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#create_vector_bucket)
141
+ """
142
+
143
+ def delete_index(self, **kwargs: Unpack[DeleteIndexInputTypeDef]) -> dict[str, Any]:
144
+ """
145
+ Deletes a vector index.
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
+ Deletes a vector bucket.
156
+
157
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/delete_vector_bucket.html)
158
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#delete_vector_bucket)
159
+ """
160
+
161
+ def delete_vector_bucket_policy(
162
+ self, **kwargs: Unpack[DeleteVectorBucketPolicyInputTypeDef]
163
+ ) -> dict[str, Any]:
164
+ """
165
+ Deletes a vector bucket policy.
166
+
167
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/delete_vector_bucket_policy.html)
168
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#delete_vector_bucket_policy)
169
+ """
170
+
171
+ def delete_vectors(self, **kwargs: Unpack[DeleteVectorsInputTypeDef]) -> dict[str, Any]:
172
+ """
173
+ Deletes one or more vectors in a vector index.
174
+
175
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/delete_vectors.html)
176
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#delete_vectors)
177
+ """
178
+
179
+ def get_index(self, **kwargs: Unpack[GetIndexInputTypeDef]) -> GetIndexOutputTypeDef:
180
+ """
181
+ Returns vector index attributes.
182
+
183
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_index.html)
184
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_index)
185
+ """
186
+
187
+ def get_vector_bucket(
188
+ self, **kwargs: Unpack[GetVectorBucketInputTypeDef]
189
+ ) -> GetVectorBucketOutputTypeDef:
190
+ """
191
+ Returns vector bucket attributes.
192
+
193
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_vector_bucket.html)
194
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_vector_bucket)
195
+ """
196
+
197
+ def get_vector_bucket_policy(
198
+ self, **kwargs: Unpack[GetVectorBucketPolicyInputTypeDef]
199
+ ) -> GetVectorBucketPolicyOutputTypeDef:
200
+ """
201
+ Gets details about a vector bucket policy.
202
+
203
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_vector_bucket_policy.html)
204
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_vector_bucket_policy)
205
+ """
206
+
207
+ def get_vectors(self, **kwargs: Unpack[GetVectorsInputTypeDef]) -> GetVectorsOutputTypeDef:
208
+ """
209
+ Returns vector attributes.
210
+
211
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_vectors.html)
212
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_vectors)
213
+ """
214
+
215
+ def list_indexes(self, **kwargs: Unpack[ListIndexesInputTypeDef]) -> ListIndexesOutputTypeDef:
216
+ """
217
+ Returns a list of all the vector indexes within the specified vector bucket.
218
+
219
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/list_indexes.html)
220
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#list_indexes)
221
+ """
222
+
223
+ def list_tags_for_resource(
224
+ self, **kwargs: Unpack[ListTagsForResourceInputTypeDef]
225
+ ) -> ListTagsForResourceOutputTypeDef:
226
+ """
227
+ Lists all of the tags applied to a specified Amazon S3 Vectors resource.
228
+
229
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/list_tags_for_resource.html)
230
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#list_tags_for_resource)
231
+ """
232
+
233
+ def list_vector_buckets(
234
+ self, **kwargs: Unpack[ListVectorBucketsInputTypeDef]
235
+ ) -> ListVectorBucketsOutputTypeDef:
236
+ """
237
+ Returns a list of all the vector buckets that are owned by the authenticated
238
+ sender of the request.
239
+
240
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/list_vector_buckets.html)
241
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#list_vector_buckets)
242
+ """
243
+
244
+ def list_vectors(self, **kwargs: Unpack[ListVectorsInputTypeDef]) -> ListVectorsOutputTypeDef:
245
+ """
246
+ List vectors in the specified vector index.
247
+
248
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/list_vectors.html)
249
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#list_vectors)
250
+ """
251
+
252
+ def put_vector_bucket_policy(
253
+ self, **kwargs: Unpack[PutVectorBucketPolicyInputTypeDef]
254
+ ) -> dict[str, Any]:
255
+ """
256
+ Creates a bucket policy for a vector bucket.
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
+ Adds one or more vectors to a vector index.
265
+
266
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/put_vectors.html)
267
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#put_vectors)
268
+ """
269
+
270
+ def query_vectors(
271
+ self, **kwargs: Unpack[QueryVectorsInputTypeDef]
272
+ ) -> QueryVectorsOutputTypeDef:
273
+ """
274
+ Performs an approximate nearest neighbor search query in a vector index using a
275
+ query vector.
276
+
277
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/query_vectors.html)
278
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#query_vectors)
279
+ """
280
+
281
+ def tag_resource(self, **kwargs: Unpack[TagResourceInputTypeDef]) -> dict[str, Any]:
282
+ """
283
+ Applies one or more user-defined tags to an Amazon S3 Vectors resource or
284
+ updates existing tags.
285
+
286
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/tag_resource.html)
287
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#tag_resource)
288
+ """
289
+
290
+ def untag_resource(self, **kwargs: Unpack[UntagResourceInputTypeDef]) -> dict[str, Any]:
291
+ """
292
+ Removes the specified user-defined tags from an Amazon S3 Vectors resource.
293
+
294
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/untag_resource.html)
295
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#untag_resource)
296
+ """
297
+
298
+ @overload # type: ignore[override]
299
+ def get_paginator( # type: ignore[override]
300
+ self, operation_name: Literal["list_indexes"]
301
+ ) -> ListIndexesPaginator:
302
+ """
303
+ Create a paginator for an operation.
304
+
305
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_paginator.html)
306
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_paginator)
307
+ """
308
+
309
+ @overload # type: ignore[override]
310
+ def get_paginator( # type: ignore[override]
311
+ self, operation_name: Literal["list_vector_buckets"]
312
+ ) -> ListVectorBucketsPaginator:
313
+ """
314
+ Create a paginator for an operation.
315
+
316
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_paginator.html)
317
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_paginator)
318
+ """
319
+
320
+ @overload # type: ignore[override]
321
+ def get_paginator( # type: ignore[override]
322
+ self, operation_name: Literal["list_vectors"]
323
+ ) -> ListVectorsPaginator:
324
+ """
325
+ Create a paginator for an operation.
326
+
327
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_paginator.html)
328
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_paginator)
329
+ """