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,347 @@
1
+ """
2
+ Type annotations for s3vectors service type definitions.
3
+
4
+ [Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3vectors/type_defs/)
5
+
6
+ Copyright 2025 Vlad Emelianov
7
+
8
+ Usage::
9
+
10
+ ```python
11
+ from mypy_boto3_s3vectors.type_defs import EncryptionConfigurationTypeDef
12
+
13
+ data: EncryptionConfigurationTypeDef = ...
14
+ ```
15
+ """
16
+
17
+ from __future__ import annotations
18
+
19
+ import sys
20
+ from collections.abc import Mapping, Sequence
21
+ from datetime import datetime
22
+ from typing import Any, Union
23
+
24
+ from .literals import DistanceMetricType, SseTypeType
25
+
26
+ if sys.version_info >= (3, 12):
27
+ from typing import Literal, NotRequired, TypedDict
28
+ else:
29
+ from typing_extensions import Literal, NotRequired, TypedDict
30
+
31
+ __all__ = (
32
+ "CreateIndexInputTypeDef",
33
+ "CreateIndexOutputTypeDef",
34
+ "CreateVectorBucketInputTypeDef",
35
+ "CreateVectorBucketOutputTypeDef",
36
+ "DeleteIndexInputTypeDef",
37
+ "DeleteVectorBucketInputTypeDef",
38
+ "DeleteVectorBucketPolicyInputTypeDef",
39
+ "DeleteVectorsInputTypeDef",
40
+ "EncryptionConfigurationTypeDef",
41
+ "GetIndexInputTypeDef",
42
+ "GetIndexOutputTypeDef",
43
+ "GetOutputVectorTypeDef",
44
+ "GetVectorBucketInputTypeDef",
45
+ "GetVectorBucketOutputTypeDef",
46
+ "GetVectorBucketPolicyInputTypeDef",
47
+ "GetVectorBucketPolicyOutputTypeDef",
48
+ "GetVectorsInputTypeDef",
49
+ "GetVectorsOutputTypeDef",
50
+ "IndexSummaryTypeDef",
51
+ "IndexTypeDef",
52
+ "ListIndexesInputPaginateTypeDef",
53
+ "ListIndexesInputTypeDef",
54
+ "ListIndexesOutputTypeDef",
55
+ "ListOutputVectorTypeDef",
56
+ "ListTagsForResourceInputTypeDef",
57
+ "ListTagsForResourceOutputTypeDef",
58
+ "ListVectorBucketsInputPaginateTypeDef",
59
+ "ListVectorBucketsInputTypeDef",
60
+ "ListVectorBucketsOutputTypeDef",
61
+ "ListVectorsInputPaginateTypeDef",
62
+ "ListVectorsInputTypeDef",
63
+ "ListVectorsOutputTypeDef",
64
+ "MetadataConfigurationOutputTypeDef",
65
+ "MetadataConfigurationTypeDef",
66
+ "MetadataConfigurationUnionTypeDef",
67
+ "PaginatorConfigTypeDef",
68
+ "PutInputVectorTypeDef",
69
+ "PutVectorBucketPolicyInputTypeDef",
70
+ "PutVectorsInputTypeDef",
71
+ "QueryOutputVectorTypeDef",
72
+ "QueryVectorsInputTypeDef",
73
+ "QueryVectorsOutputTypeDef",
74
+ "ResponseMetadataTypeDef",
75
+ "TagResourceInputTypeDef",
76
+ "UntagResourceInputTypeDef",
77
+ "VectorBucketSummaryTypeDef",
78
+ "VectorBucketTypeDef",
79
+ "VectorDataOutputTypeDef",
80
+ "VectorDataTypeDef",
81
+ "VectorDataUnionTypeDef",
82
+ )
83
+
84
+ class EncryptionConfigurationTypeDef(TypedDict):
85
+ sseType: NotRequired[SseTypeType]
86
+ kmsKeyArn: NotRequired[str]
87
+
88
+ class ResponseMetadataTypeDef(TypedDict):
89
+ RequestId: str
90
+ HTTPStatusCode: int
91
+ HTTPHeaders: dict[str, str]
92
+ RetryAttempts: int
93
+ HostId: NotRequired[str]
94
+
95
+ class DeleteIndexInputTypeDef(TypedDict):
96
+ vectorBucketName: NotRequired[str]
97
+ indexName: NotRequired[str]
98
+ indexArn: NotRequired[str]
99
+
100
+ class DeleteVectorBucketInputTypeDef(TypedDict):
101
+ vectorBucketName: NotRequired[str]
102
+ vectorBucketArn: NotRequired[str]
103
+
104
+ class DeleteVectorBucketPolicyInputTypeDef(TypedDict):
105
+ vectorBucketName: NotRequired[str]
106
+ vectorBucketArn: NotRequired[str]
107
+
108
+ class DeleteVectorsInputTypeDef(TypedDict):
109
+ keys: Sequence[str]
110
+ vectorBucketName: NotRequired[str]
111
+ indexName: NotRequired[str]
112
+ indexArn: NotRequired[str]
113
+
114
+ class GetIndexInputTypeDef(TypedDict):
115
+ vectorBucketName: NotRequired[str]
116
+ indexName: NotRequired[str]
117
+ indexArn: NotRequired[str]
118
+
119
+ class VectorDataOutputTypeDef(TypedDict):
120
+ float32: NotRequired[list[float]]
121
+
122
+ class GetVectorBucketInputTypeDef(TypedDict):
123
+ vectorBucketName: NotRequired[str]
124
+ vectorBucketArn: NotRequired[str]
125
+
126
+ class GetVectorBucketPolicyInputTypeDef(TypedDict):
127
+ vectorBucketName: NotRequired[str]
128
+ vectorBucketArn: NotRequired[str]
129
+
130
+ class GetVectorsInputTypeDef(TypedDict):
131
+ keys: Sequence[str]
132
+ vectorBucketName: NotRequired[str]
133
+ indexName: NotRequired[str]
134
+ indexArn: NotRequired[str]
135
+ returnData: NotRequired[bool]
136
+ returnMetadata: NotRequired[bool]
137
+
138
+ class IndexSummaryTypeDef(TypedDict):
139
+ vectorBucketName: str
140
+ indexName: str
141
+ indexArn: str
142
+ creationTime: datetime
143
+
144
+ class MetadataConfigurationOutputTypeDef(TypedDict):
145
+ nonFilterableMetadataKeys: list[str]
146
+
147
+ class PaginatorConfigTypeDef(TypedDict):
148
+ MaxItems: NotRequired[int]
149
+ PageSize: NotRequired[int]
150
+ StartingToken: NotRequired[str]
151
+
152
+ class ListIndexesInputTypeDef(TypedDict):
153
+ vectorBucketName: NotRequired[str]
154
+ vectorBucketArn: NotRequired[str]
155
+ maxResults: NotRequired[int]
156
+ nextToken: NotRequired[str]
157
+ prefix: NotRequired[str]
158
+
159
+ class ListTagsForResourceInputTypeDef(TypedDict):
160
+ resourceArn: str
161
+
162
+ class ListVectorBucketsInputTypeDef(TypedDict):
163
+ maxResults: NotRequired[int]
164
+ nextToken: NotRequired[str]
165
+ prefix: NotRequired[str]
166
+
167
+ class VectorBucketSummaryTypeDef(TypedDict):
168
+ vectorBucketName: str
169
+ vectorBucketArn: str
170
+ creationTime: datetime
171
+
172
+ class ListVectorsInputTypeDef(TypedDict):
173
+ vectorBucketName: NotRequired[str]
174
+ indexName: NotRequired[str]
175
+ indexArn: NotRequired[str]
176
+ maxResults: NotRequired[int]
177
+ nextToken: NotRequired[str]
178
+ segmentCount: NotRequired[int]
179
+ segmentIndex: NotRequired[int]
180
+ returnData: NotRequired[bool]
181
+ returnMetadata: NotRequired[bool]
182
+
183
+ class MetadataConfigurationTypeDef(TypedDict):
184
+ nonFilterableMetadataKeys: Sequence[str]
185
+
186
+ class PutVectorBucketPolicyInputTypeDef(TypedDict):
187
+ policy: str
188
+ vectorBucketName: NotRequired[str]
189
+ vectorBucketArn: NotRequired[str]
190
+
191
+ class QueryOutputVectorTypeDef(TypedDict):
192
+ key: str
193
+ distance: NotRequired[float]
194
+ metadata: NotRequired[dict[str, Any]]
195
+
196
+ class TagResourceInputTypeDef(TypedDict):
197
+ resourceArn: str
198
+ tags: Mapping[str, str]
199
+
200
+ class UntagResourceInputTypeDef(TypedDict):
201
+ resourceArn: str
202
+ tagKeys: Sequence[str]
203
+
204
+ class VectorDataTypeDef(TypedDict):
205
+ float32: NotRequired[Sequence[float]]
206
+
207
+ class CreateVectorBucketInputTypeDef(TypedDict):
208
+ vectorBucketName: str
209
+ encryptionConfiguration: NotRequired[EncryptionConfigurationTypeDef]
210
+ tags: NotRequired[Mapping[str, str]]
211
+
212
+ class VectorBucketTypeDef(TypedDict):
213
+ vectorBucketName: str
214
+ vectorBucketArn: str
215
+ creationTime: datetime
216
+ encryptionConfiguration: NotRequired[EncryptionConfigurationTypeDef]
217
+
218
+ class CreateIndexOutputTypeDef(TypedDict):
219
+ indexArn: str
220
+ ResponseMetadata: ResponseMetadataTypeDef
221
+
222
+ class CreateVectorBucketOutputTypeDef(TypedDict):
223
+ vectorBucketArn: str
224
+ ResponseMetadata: ResponseMetadataTypeDef
225
+
226
+ class GetVectorBucketPolicyOutputTypeDef(TypedDict):
227
+ policy: str
228
+ ResponseMetadata: ResponseMetadataTypeDef
229
+
230
+ class ListTagsForResourceOutputTypeDef(TypedDict):
231
+ tags: dict[str, str]
232
+ ResponseMetadata: ResponseMetadataTypeDef
233
+
234
+ class GetOutputVectorTypeDef(TypedDict):
235
+ key: str
236
+ data: NotRequired[VectorDataOutputTypeDef]
237
+ metadata: NotRequired[dict[str, Any]]
238
+
239
+ class ListOutputVectorTypeDef(TypedDict):
240
+ key: str
241
+ data: NotRequired[VectorDataOutputTypeDef]
242
+ metadata: NotRequired[dict[str, Any]]
243
+
244
+ class ListIndexesOutputTypeDef(TypedDict):
245
+ indexes: list[IndexSummaryTypeDef]
246
+ ResponseMetadata: ResponseMetadataTypeDef
247
+ nextToken: NotRequired[str]
248
+
249
+ class IndexTypeDef(TypedDict):
250
+ vectorBucketName: str
251
+ indexName: str
252
+ indexArn: str
253
+ creationTime: datetime
254
+ dataType: Literal["float32"]
255
+ dimension: int
256
+ distanceMetric: DistanceMetricType
257
+ metadataConfiguration: NotRequired[MetadataConfigurationOutputTypeDef]
258
+ encryptionConfiguration: NotRequired[EncryptionConfigurationTypeDef]
259
+
260
+ class ListIndexesInputPaginateTypeDef(TypedDict):
261
+ vectorBucketName: NotRequired[str]
262
+ vectorBucketArn: NotRequired[str]
263
+ prefix: NotRequired[str]
264
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
265
+
266
+ class ListVectorBucketsInputPaginateTypeDef(TypedDict):
267
+ prefix: NotRequired[str]
268
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
269
+
270
+ class ListVectorsInputPaginateTypeDef(TypedDict):
271
+ vectorBucketName: NotRequired[str]
272
+ indexName: NotRequired[str]
273
+ indexArn: NotRequired[str]
274
+ segmentCount: NotRequired[int]
275
+ segmentIndex: NotRequired[int]
276
+ returnData: NotRequired[bool]
277
+ returnMetadata: NotRequired[bool]
278
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
279
+
280
+ class ListVectorBucketsOutputTypeDef(TypedDict):
281
+ vectorBuckets: list[VectorBucketSummaryTypeDef]
282
+ ResponseMetadata: ResponseMetadataTypeDef
283
+ nextToken: NotRequired[str]
284
+
285
+ MetadataConfigurationUnionTypeDef = Union[
286
+ MetadataConfigurationTypeDef, MetadataConfigurationOutputTypeDef
287
+ ]
288
+
289
+ class QueryVectorsOutputTypeDef(TypedDict):
290
+ vectors: list[QueryOutputVectorTypeDef]
291
+ distanceMetric: DistanceMetricType
292
+ ResponseMetadata: ResponseMetadataTypeDef
293
+
294
+ VectorDataUnionTypeDef = Union[VectorDataTypeDef, VectorDataOutputTypeDef]
295
+
296
+ class GetVectorBucketOutputTypeDef(TypedDict):
297
+ vectorBucket: VectorBucketTypeDef
298
+ ResponseMetadata: ResponseMetadataTypeDef
299
+
300
+ class GetVectorsOutputTypeDef(TypedDict):
301
+ vectors: list[GetOutputVectorTypeDef]
302
+ ResponseMetadata: ResponseMetadataTypeDef
303
+
304
+ class ListVectorsOutputTypeDef(TypedDict):
305
+ vectors: list[ListOutputVectorTypeDef]
306
+ ResponseMetadata: ResponseMetadataTypeDef
307
+ nextToken: NotRequired[str]
308
+
309
+ class GetIndexOutputTypeDef(TypedDict):
310
+ index: IndexTypeDef
311
+ ResponseMetadata: ResponseMetadataTypeDef
312
+
313
+ class CreateIndexInputTypeDef(TypedDict):
314
+ indexName: str
315
+ dataType: Literal["float32"]
316
+ dimension: int
317
+ distanceMetric: DistanceMetricType
318
+ vectorBucketName: NotRequired[str]
319
+ vectorBucketArn: NotRequired[str]
320
+ metadataConfiguration: NotRequired[MetadataConfigurationUnionTypeDef]
321
+ encryptionConfiguration: NotRequired[EncryptionConfigurationTypeDef]
322
+ tags: NotRequired[Mapping[str, str]]
323
+
324
+ class PutInputVectorTypeDef(TypedDict):
325
+ key: str
326
+ data: VectorDataUnionTypeDef
327
+ metadata: NotRequired[Mapping[str, Any]]
328
+
329
+ QueryVectorsInputTypeDef = TypedDict(
330
+ "QueryVectorsInputTypeDef",
331
+ {
332
+ "topK": int,
333
+ "queryVector": VectorDataUnionTypeDef,
334
+ "vectorBucketName": NotRequired[str],
335
+ "indexName": NotRequired[str],
336
+ "indexArn": NotRequired[str],
337
+ "filter": NotRequired[Mapping[str, Any]],
338
+ "returnMetadata": NotRequired[bool],
339
+ "returnDistance": NotRequired[bool],
340
+ },
341
+ )
342
+
343
+ class PutVectorsInputTypeDef(TypedDict):
344
+ vectors: Sequence[PutInputVectorTypeDef]
345
+ vectorBucketName: NotRequired[str]
346
+ indexName: NotRequired[str]
347
+ indexArn: NotRequired[str]
@@ -0,0 +1,7 @@
1
+ """
2
+ Source of truth for version.
3
+
4
+ Copyright 2025 Vlad Emelianov
5
+ """
6
+
7
+ __version__ = "1.42.3"