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.
- mypy_boto3_s3vectors/__init__.py +41 -0
- mypy_boto3_s3vectors/__init__.pyi +40 -0
- mypy_boto3_s3vectors/__main__.py +43 -0
- mypy_boto3_s3vectors/client.py +313 -0
- mypy_boto3_s3vectors/client.pyi +310 -0
- mypy_boto3_s3vectors/literals.py +470 -0
- mypy_boto3_s3vectors/literals.pyi +468 -0
- mypy_boto3_s3vectors/paginator.py +114 -0
- mypy_boto3_s3vectors/paginator.pyi +104 -0
- mypy_boto3_s3vectors/py.typed +0 -0
- mypy_boto3_s3vectors/type_defs.py +362 -0
- mypy_boto3_s3vectors/type_defs.pyi +318 -0
- mypy_boto3_s3vectors/version.py +7 -0
- mypy_boto3_s3vectors-1.39.5.dist-info/METADATA +492 -0
- mypy_boto3_s3vectors-1.39.5.dist-info/RECORD +18 -0
- mypy_boto3_s3vectors-1.39.5.dist-info/WHEEL +5 -0
- mypy_boto3_s3vectors-1.39.5.dist-info/licenses/LICENSE +21 -0
- mypy_boto3_s3vectors-1.39.5.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,310 @@
|
|
|
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
|
+
__all__ = ("S3VectorsClient",)
|
|
68
|
+
|
|
69
|
+
class Exceptions(BaseClientExceptions):
|
|
70
|
+
AccessDeniedException: Type[BotocoreClientError]
|
|
71
|
+
ClientError: Type[BotocoreClientError]
|
|
72
|
+
ConflictException: Type[BotocoreClientError]
|
|
73
|
+
InternalServerException: Type[BotocoreClientError]
|
|
74
|
+
KmsDisabledException: Type[BotocoreClientError]
|
|
75
|
+
KmsInvalidKeyUsageException: Type[BotocoreClientError]
|
|
76
|
+
KmsInvalidStateException: Type[BotocoreClientError]
|
|
77
|
+
KmsNotFoundException: Type[BotocoreClientError]
|
|
78
|
+
NotFoundException: Type[BotocoreClientError]
|
|
79
|
+
ServiceQuotaExceededException: Type[BotocoreClientError]
|
|
80
|
+
ServiceUnavailableException: Type[BotocoreClientError]
|
|
81
|
+
TooManyRequestsException: Type[BotocoreClientError]
|
|
82
|
+
ValidationException: Type[BotocoreClientError]
|
|
83
|
+
|
|
84
|
+
class S3VectorsClient(BaseClient):
|
|
85
|
+
"""
|
|
86
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors.html#S3Vectors.Client)
|
|
87
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/)
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
meta: ClientMeta
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def exceptions(self) -> Exceptions:
|
|
94
|
+
"""
|
|
95
|
+
S3VectorsClient exceptions.
|
|
96
|
+
|
|
97
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors.html#S3Vectors.Client)
|
|
98
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#exceptions)
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
def can_paginate(self, operation_name: str) -> bool:
|
|
102
|
+
"""
|
|
103
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/can_paginate.html)
|
|
104
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#can_paginate)
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
def generate_presigned_url(
|
|
108
|
+
self,
|
|
109
|
+
ClientMethod: str,
|
|
110
|
+
Params: Mapping[str, Any] = ...,
|
|
111
|
+
ExpiresIn: int = 3600,
|
|
112
|
+
HttpMethod: str = ...,
|
|
113
|
+
) -> str:
|
|
114
|
+
"""
|
|
115
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/generate_presigned_url.html)
|
|
116
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#generate_presigned_url)
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
def create_index(self, **kwargs: Unpack[CreateIndexInputTypeDef]) -> Dict[str, Any]:
|
|
120
|
+
"""
|
|
121
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
122
|
+
to change.
|
|
123
|
+
|
|
124
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/create_index.html)
|
|
125
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#create_index)
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
def create_vector_bucket(
|
|
129
|
+
self, **kwargs: Unpack[CreateVectorBucketInputTypeDef]
|
|
130
|
+
) -> Dict[str, Any]:
|
|
131
|
+
"""
|
|
132
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
133
|
+
to change.
|
|
134
|
+
|
|
135
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/create_vector_bucket.html)
|
|
136
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#create_vector_bucket)
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
def delete_index(self, **kwargs: Unpack[DeleteIndexInputTypeDef]) -> Dict[str, Any]:
|
|
140
|
+
"""
|
|
141
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
142
|
+
to change.
|
|
143
|
+
|
|
144
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/delete_index.html)
|
|
145
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#delete_index)
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
def delete_vector_bucket(
|
|
149
|
+
self, **kwargs: Unpack[DeleteVectorBucketInputTypeDef]
|
|
150
|
+
) -> Dict[str, Any]:
|
|
151
|
+
"""
|
|
152
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
153
|
+
to change.
|
|
154
|
+
|
|
155
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/delete_vector_bucket.html)
|
|
156
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#delete_vector_bucket)
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
def delete_vector_bucket_policy(
|
|
160
|
+
self, **kwargs: Unpack[DeleteVectorBucketPolicyInputTypeDef]
|
|
161
|
+
) -> Dict[str, Any]:
|
|
162
|
+
"""
|
|
163
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
164
|
+
to change.
|
|
165
|
+
|
|
166
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/delete_vector_bucket_policy.html)
|
|
167
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#delete_vector_bucket_policy)
|
|
168
|
+
"""
|
|
169
|
+
|
|
170
|
+
def delete_vectors(self, **kwargs: Unpack[DeleteVectorsInputTypeDef]) -> Dict[str, Any]:
|
|
171
|
+
"""
|
|
172
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
173
|
+
to change.
|
|
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
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
182
|
+
to change.
|
|
183
|
+
|
|
184
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_index.html)
|
|
185
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_index)
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
def get_vector_bucket(
|
|
189
|
+
self, **kwargs: Unpack[GetVectorBucketInputTypeDef]
|
|
190
|
+
) -> GetVectorBucketOutputTypeDef:
|
|
191
|
+
"""
|
|
192
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
193
|
+
to change.
|
|
194
|
+
|
|
195
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_vector_bucket.html)
|
|
196
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_vector_bucket)
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
def get_vector_bucket_policy(
|
|
200
|
+
self, **kwargs: Unpack[GetVectorBucketPolicyInputTypeDef]
|
|
201
|
+
) -> GetVectorBucketPolicyOutputTypeDef:
|
|
202
|
+
"""
|
|
203
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
204
|
+
to change.
|
|
205
|
+
|
|
206
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_vector_bucket_policy.html)
|
|
207
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_vector_bucket_policy)
|
|
208
|
+
"""
|
|
209
|
+
|
|
210
|
+
def get_vectors(self, **kwargs: Unpack[GetVectorsInputTypeDef]) -> GetVectorsOutputTypeDef:
|
|
211
|
+
"""
|
|
212
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
213
|
+
to change.
|
|
214
|
+
|
|
215
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_vectors.html)
|
|
216
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_vectors)
|
|
217
|
+
"""
|
|
218
|
+
|
|
219
|
+
def list_indexes(self, **kwargs: Unpack[ListIndexesInputTypeDef]) -> ListIndexesOutputTypeDef:
|
|
220
|
+
"""
|
|
221
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
222
|
+
to change.
|
|
223
|
+
|
|
224
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/list_indexes.html)
|
|
225
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#list_indexes)
|
|
226
|
+
"""
|
|
227
|
+
|
|
228
|
+
def list_vector_buckets(
|
|
229
|
+
self, **kwargs: Unpack[ListVectorBucketsInputTypeDef]
|
|
230
|
+
) -> ListVectorBucketsOutputTypeDef:
|
|
231
|
+
"""
|
|
232
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
233
|
+
to change.
|
|
234
|
+
|
|
235
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/list_vector_buckets.html)
|
|
236
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#list_vector_buckets)
|
|
237
|
+
"""
|
|
238
|
+
|
|
239
|
+
def list_vectors(self, **kwargs: Unpack[ListVectorsInputTypeDef]) -> ListVectorsOutputTypeDef:
|
|
240
|
+
"""
|
|
241
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
242
|
+
to change.
|
|
243
|
+
|
|
244
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/list_vectors.html)
|
|
245
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#list_vectors)
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
def put_vector_bucket_policy(
|
|
249
|
+
self, **kwargs: Unpack[PutVectorBucketPolicyInputTypeDef]
|
|
250
|
+
) -> Dict[str, Any]:
|
|
251
|
+
"""
|
|
252
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
253
|
+
to change.
|
|
254
|
+
|
|
255
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/put_vector_bucket_policy.html)
|
|
256
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#put_vector_bucket_policy)
|
|
257
|
+
"""
|
|
258
|
+
|
|
259
|
+
def put_vectors(self, **kwargs: Unpack[PutVectorsInputTypeDef]) -> Dict[str, Any]:
|
|
260
|
+
"""
|
|
261
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
262
|
+
to change.
|
|
263
|
+
|
|
264
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/put_vectors.html)
|
|
265
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#put_vectors)
|
|
266
|
+
"""
|
|
267
|
+
|
|
268
|
+
def query_vectors(
|
|
269
|
+
self, **kwargs: Unpack[QueryVectorsInputTypeDef]
|
|
270
|
+
) -> QueryVectorsOutputTypeDef:
|
|
271
|
+
"""
|
|
272
|
+
<note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject
|
|
273
|
+
to change.
|
|
274
|
+
|
|
275
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/query_vectors.html)
|
|
276
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#query_vectors)
|
|
277
|
+
"""
|
|
278
|
+
|
|
279
|
+
@overload # type: ignore[override]
|
|
280
|
+
def get_paginator( # type: ignore[override]
|
|
281
|
+
self, operation_name: Literal["list_indexes"]
|
|
282
|
+
) -> ListIndexesPaginator:
|
|
283
|
+
"""
|
|
284
|
+
Create a paginator for an operation.
|
|
285
|
+
|
|
286
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_paginator.html)
|
|
287
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_paginator)
|
|
288
|
+
"""
|
|
289
|
+
|
|
290
|
+
@overload # type: ignore[override]
|
|
291
|
+
def get_paginator( # type: ignore[override]
|
|
292
|
+
self, operation_name: Literal["list_vector_buckets"]
|
|
293
|
+
) -> ListVectorBucketsPaginator:
|
|
294
|
+
"""
|
|
295
|
+
Create a paginator for an operation.
|
|
296
|
+
|
|
297
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_paginator.html)
|
|
298
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_paginator)
|
|
299
|
+
"""
|
|
300
|
+
|
|
301
|
+
@overload # type: ignore[override]
|
|
302
|
+
def get_paginator( # type: ignore[override]
|
|
303
|
+
self, operation_name: Literal["list_vectors"]
|
|
304
|
+
) -> ListVectorsPaginator:
|
|
305
|
+
"""
|
|
306
|
+
Create a paginator for an operation.
|
|
307
|
+
|
|
308
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3vectors/client/get_paginator.html)
|
|
309
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/client/#get_paginator)
|
|
310
|
+
"""
|