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,398 @@
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
+
32
+ __all__ = (
33
+ "CreateIndexInputTypeDef",
34
+ "CreateIndexOutputTypeDef",
35
+ "CreateVectorBucketInputTypeDef",
36
+ "CreateVectorBucketOutputTypeDef",
37
+ "DeleteIndexInputTypeDef",
38
+ "DeleteVectorBucketInputTypeDef",
39
+ "DeleteVectorBucketPolicyInputTypeDef",
40
+ "DeleteVectorsInputTypeDef",
41
+ "EncryptionConfigurationTypeDef",
42
+ "GetIndexInputTypeDef",
43
+ "GetIndexOutputTypeDef",
44
+ "GetOutputVectorTypeDef",
45
+ "GetVectorBucketInputTypeDef",
46
+ "GetVectorBucketOutputTypeDef",
47
+ "GetVectorBucketPolicyInputTypeDef",
48
+ "GetVectorBucketPolicyOutputTypeDef",
49
+ "GetVectorsInputTypeDef",
50
+ "GetVectorsOutputTypeDef",
51
+ "IndexSummaryTypeDef",
52
+ "IndexTypeDef",
53
+ "ListIndexesInputPaginateTypeDef",
54
+ "ListIndexesInputTypeDef",
55
+ "ListIndexesOutputTypeDef",
56
+ "ListOutputVectorTypeDef",
57
+ "ListTagsForResourceInputTypeDef",
58
+ "ListTagsForResourceOutputTypeDef",
59
+ "ListVectorBucketsInputPaginateTypeDef",
60
+ "ListVectorBucketsInputTypeDef",
61
+ "ListVectorBucketsOutputTypeDef",
62
+ "ListVectorsInputPaginateTypeDef",
63
+ "ListVectorsInputTypeDef",
64
+ "ListVectorsOutputTypeDef",
65
+ "MetadataConfigurationOutputTypeDef",
66
+ "MetadataConfigurationTypeDef",
67
+ "MetadataConfigurationUnionTypeDef",
68
+ "PaginatorConfigTypeDef",
69
+ "PutInputVectorTypeDef",
70
+ "PutVectorBucketPolicyInputTypeDef",
71
+ "PutVectorsInputTypeDef",
72
+ "QueryOutputVectorTypeDef",
73
+ "QueryVectorsInputTypeDef",
74
+ "QueryVectorsOutputTypeDef",
75
+ "ResponseMetadataTypeDef",
76
+ "TagResourceInputTypeDef",
77
+ "UntagResourceInputTypeDef",
78
+ "VectorBucketSummaryTypeDef",
79
+ "VectorBucketTypeDef",
80
+ "VectorDataOutputTypeDef",
81
+ "VectorDataTypeDef",
82
+ "VectorDataUnionTypeDef",
83
+ )
84
+
85
+
86
+ class EncryptionConfigurationTypeDef(TypedDict):
87
+ sseType: NotRequired[SseTypeType]
88
+ kmsKeyArn: NotRequired[str]
89
+
90
+
91
+ class ResponseMetadataTypeDef(TypedDict):
92
+ RequestId: str
93
+ HTTPStatusCode: int
94
+ HTTPHeaders: dict[str, str]
95
+ RetryAttempts: int
96
+ HostId: NotRequired[str]
97
+
98
+
99
+ class DeleteIndexInputTypeDef(TypedDict):
100
+ vectorBucketName: NotRequired[str]
101
+ indexName: NotRequired[str]
102
+ indexArn: NotRequired[str]
103
+
104
+
105
+ class DeleteVectorBucketInputTypeDef(TypedDict):
106
+ vectorBucketName: NotRequired[str]
107
+ vectorBucketArn: NotRequired[str]
108
+
109
+
110
+ class DeleteVectorBucketPolicyInputTypeDef(TypedDict):
111
+ vectorBucketName: NotRequired[str]
112
+ vectorBucketArn: NotRequired[str]
113
+
114
+
115
+ class DeleteVectorsInputTypeDef(TypedDict):
116
+ keys: Sequence[str]
117
+ vectorBucketName: NotRequired[str]
118
+ indexName: NotRequired[str]
119
+ indexArn: NotRequired[str]
120
+
121
+
122
+ class GetIndexInputTypeDef(TypedDict):
123
+ vectorBucketName: NotRequired[str]
124
+ indexName: NotRequired[str]
125
+ indexArn: NotRequired[str]
126
+
127
+
128
+ class VectorDataOutputTypeDef(TypedDict):
129
+ float32: NotRequired[list[float]]
130
+
131
+
132
+ class GetVectorBucketInputTypeDef(TypedDict):
133
+ vectorBucketName: NotRequired[str]
134
+ vectorBucketArn: NotRequired[str]
135
+
136
+
137
+ class GetVectorBucketPolicyInputTypeDef(TypedDict):
138
+ vectorBucketName: NotRequired[str]
139
+ vectorBucketArn: NotRequired[str]
140
+
141
+
142
+ class GetVectorsInputTypeDef(TypedDict):
143
+ keys: Sequence[str]
144
+ vectorBucketName: NotRequired[str]
145
+ indexName: NotRequired[str]
146
+ indexArn: NotRequired[str]
147
+ returnData: NotRequired[bool]
148
+ returnMetadata: NotRequired[bool]
149
+
150
+
151
+ class IndexSummaryTypeDef(TypedDict):
152
+ vectorBucketName: str
153
+ indexName: str
154
+ indexArn: str
155
+ creationTime: datetime
156
+
157
+
158
+ class MetadataConfigurationOutputTypeDef(TypedDict):
159
+ nonFilterableMetadataKeys: list[str]
160
+
161
+
162
+ class PaginatorConfigTypeDef(TypedDict):
163
+ MaxItems: NotRequired[int]
164
+ PageSize: NotRequired[int]
165
+ StartingToken: NotRequired[str]
166
+
167
+
168
+ class ListIndexesInputTypeDef(TypedDict):
169
+ vectorBucketName: NotRequired[str]
170
+ vectorBucketArn: NotRequired[str]
171
+ maxResults: NotRequired[int]
172
+ nextToken: NotRequired[str]
173
+ prefix: NotRequired[str]
174
+
175
+
176
+ class ListTagsForResourceInputTypeDef(TypedDict):
177
+ resourceArn: str
178
+
179
+
180
+ class ListVectorBucketsInputTypeDef(TypedDict):
181
+ maxResults: NotRequired[int]
182
+ nextToken: NotRequired[str]
183
+ prefix: NotRequired[str]
184
+
185
+
186
+ class VectorBucketSummaryTypeDef(TypedDict):
187
+ vectorBucketName: str
188
+ vectorBucketArn: str
189
+ creationTime: datetime
190
+
191
+
192
+ class ListVectorsInputTypeDef(TypedDict):
193
+ vectorBucketName: NotRequired[str]
194
+ indexName: NotRequired[str]
195
+ indexArn: NotRequired[str]
196
+ maxResults: NotRequired[int]
197
+ nextToken: NotRequired[str]
198
+ segmentCount: NotRequired[int]
199
+ segmentIndex: NotRequired[int]
200
+ returnData: NotRequired[bool]
201
+ returnMetadata: NotRequired[bool]
202
+
203
+
204
+ class MetadataConfigurationTypeDef(TypedDict):
205
+ nonFilterableMetadataKeys: Sequence[str]
206
+
207
+
208
+ class PutVectorBucketPolicyInputTypeDef(TypedDict):
209
+ policy: str
210
+ vectorBucketName: NotRequired[str]
211
+ vectorBucketArn: NotRequired[str]
212
+
213
+
214
+ class QueryOutputVectorTypeDef(TypedDict):
215
+ key: str
216
+ distance: NotRequired[float]
217
+ metadata: NotRequired[dict[str, Any]]
218
+
219
+
220
+ class TagResourceInputTypeDef(TypedDict):
221
+ resourceArn: str
222
+ tags: Mapping[str, str]
223
+
224
+
225
+ class UntagResourceInputTypeDef(TypedDict):
226
+ resourceArn: str
227
+ tagKeys: Sequence[str]
228
+
229
+
230
+ class VectorDataTypeDef(TypedDict):
231
+ float32: NotRequired[Sequence[float]]
232
+
233
+
234
+ class CreateVectorBucketInputTypeDef(TypedDict):
235
+ vectorBucketName: str
236
+ encryptionConfiguration: NotRequired[EncryptionConfigurationTypeDef]
237
+ tags: NotRequired[Mapping[str, str]]
238
+
239
+
240
+ class VectorBucketTypeDef(TypedDict):
241
+ vectorBucketName: str
242
+ vectorBucketArn: str
243
+ creationTime: datetime
244
+ encryptionConfiguration: NotRequired[EncryptionConfigurationTypeDef]
245
+
246
+
247
+ class CreateIndexOutputTypeDef(TypedDict):
248
+ indexArn: str
249
+ ResponseMetadata: ResponseMetadataTypeDef
250
+
251
+
252
+ class CreateVectorBucketOutputTypeDef(TypedDict):
253
+ vectorBucketArn: str
254
+ ResponseMetadata: ResponseMetadataTypeDef
255
+
256
+
257
+ class GetVectorBucketPolicyOutputTypeDef(TypedDict):
258
+ policy: str
259
+ ResponseMetadata: ResponseMetadataTypeDef
260
+
261
+
262
+ class ListTagsForResourceOutputTypeDef(TypedDict):
263
+ tags: dict[str, str]
264
+ ResponseMetadata: ResponseMetadataTypeDef
265
+
266
+
267
+ class GetOutputVectorTypeDef(TypedDict):
268
+ key: str
269
+ data: NotRequired[VectorDataOutputTypeDef]
270
+ metadata: NotRequired[dict[str, Any]]
271
+
272
+
273
+ class ListOutputVectorTypeDef(TypedDict):
274
+ key: str
275
+ data: NotRequired[VectorDataOutputTypeDef]
276
+ metadata: NotRequired[dict[str, Any]]
277
+
278
+
279
+ class ListIndexesOutputTypeDef(TypedDict):
280
+ indexes: list[IndexSummaryTypeDef]
281
+ ResponseMetadata: ResponseMetadataTypeDef
282
+ nextToken: NotRequired[str]
283
+
284
+
285
+ class IndexTypeDef(TypedDict):
286
+ vectorBucketName: str
287
+ indexName: str
288
+ indexArn: str
289
+ creationTime: datetime
290
+ dataType: Literal["float32"]
291
+ dimension: int
292
+ distanceMetric: DistanceMetricType
293
+ metadataConfiguration: NotRequired[MetadataConfigurationOutputTypeDef]
294
+ encryptionConfiguration: NotRequired[EncryptionConfigurationTypeDef]
295
+
296
+
297
+ class ListIndexesInputPaginateTypeDef(TypedDict):
298
+ vectorBucketName: NotRequired[str]
299
+ vectorBucketArn: NotRequired[str]
300
+ prefix: NotRequired[str]
301
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
302
+
303
+
304
+ class ListVectorBucketsInputPaginateTypeDef(TypedDict):
305
+ prefix: NotRequired[str]
306
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
307
+
308
+
309
+ class ListVectorsInputPaginateTypeDef(TypedDict):
310
+ vectorBucketName: NotRequired[str]
311
+ indexName: NotRequired[str]
312
+ indexArn: NotRequired[str]
313
+ segmentCount: NotRequired[int]
314
+ segmentIndex: NotRequired[int]
315
+ returnData: NotRequired[bool]
316
+ returnMetadata: NotRequired[bool]
317
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
318
+
319
+
320
+ class ListVectorBucketsOutputTypeDef(TypedDict):
321
+ vectorBuckets: list[VectorBucketSummaryTypeDef]
322
+ ResponseMetadata: ResponseMetadataTypeDef
323
+ nextToken: NotRequired[str]
324
+
325
+
326
+ MetadataConfigurationUnionTypeDef = Union[
327
+ MetadataConfigurationTypeDef, MetadataConfigurationOutputTypeDef
328
+ ]
329
+
330
+
331
+ class QueryVectorsOutputTypeDef(TypedDict):
332
+ vectors: list[QueryOutputVectorTypeDef]
333
+ distanceMetric: DistanceMetricType
334
+ ResponseMetadata: ResponseMetadataTypeDef
335
+
336
+
337
+ VectorDataUnionTypeDef = Union[VectorDataTypeDef, VectorDataOutputTypeDef]
338
+
339
+
340
+ class GetVectorBucketOutputTypeDef(TypedDict):
341
+ vectorBucket: VectorBucketTypeDef
342
+ ResponseMetadata: ResponseMetadataTypeDef
343
+
344
+
345
+ class GetVectorsOutputTypeDef(TypedDict):
346
+ vectors: list[GetOutputVectorTypeDef]
347
+ ResponseMetadata: ResponseMetadataTypeDef
348
+
349
+
350
+ class ListVectorsOutputTypeDef(TypedDict):
351
+ vectors: list[ListOutputVectorTypeDef]
352
+ ResponseMetadata: ResponseMetadataTypeDef
353
+ nextToken: NotRequired[str]
354
+
355
+
356
+ class GetIndexOutputTypeDef(TypedDict):
357
+ index: IndexTypeDef
358
+ ResponseMetadata: ResponseMetadataTypeDef
359
+
360
+
361
+ class CreateIndexInputTypeDef(TypedDict):
362
+ indexName: str
363
+ dataType: Literal["float32"]
364
+ dimension: int
365
+ distanceMetric: DistanceMetricType
366
+ vectorBucketName: NotRequired[str]
367
+ vectorBucketArn: NotRequired[str]
368
+ metadataConfiguration: NotRequired[MetadataConfigurationUnionTypeDef]
369
+ encryptionConfiguration: NotRequired[EncryptionConfigurationTypeDef]
370
+ tags: NotRequired[Mapping[str, str]]
371
+
372
+
373
+ class PutInputVectorTypeDef(TypedDict):
374
+ key: str
375
+ data: VectorDataUnionTypeDef
376
+ metadata: NotRequired[Mapping[str, Any]]
377
+
378
+
379
+ QueryVectorsInputTypeDef = TypedDict(
380
+ "QueryVectorsInputTypeDef",
381
+ {
382
+ "topK": int,
383
+ "queryVector": VectorDataUnionTypeDef,
384
+ "vectorBucketName": NotRequired[str],
385
+ "indexName": NotRequired[str],
386
+ "indexArn": NotRequired[str],
387
+ "filter": NotRequired[Mapping[str, Any]],
388
+ "returnMetadata": NotRequired[bool],
389
+ "returnDistance": NotRequired[bool],
390
+ },
391
+ )
392
+
393
+
394
+ class PutVectorsInputTypeDef(TypedDict):
395
+ vectors: Sequence[PutInputVectorTypeDef]
396
+ vectorBucketName: NotRequired[str]
397
+ indexName: NotRequired[str]
398
+ indexArn: NotRequired[str]