@aws-sdk/client-dynamodb 3.1102.0 → 3.1104.0

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.
Files changed (55) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +327 -144
  3. package/dist-es/DynamoDB.js +2 -0
  4. package/dist-es/commandBuilder.js +5 -1
  5. package/dist-es/commands/SearchVectorsCommand.js +4 -0
  6. package/dist-es/commands/TransactGetItemsCommand.js +2 -2
  7. package/dist-es/commands/TransactWriteItemsCommand.js +2 -2
  8. package/dist-es/commands/index.js +1 -0
  9. package/dist-es/endpoint/bdd.js +136 -108
  10. package/dist-es/endpoint/endpointResolver.js +1 -0
  11. package/dist-es/models/enums.js +9 -0
  12. package/dist-es/schemas/schemas_0.js +153 -32
  13. package/dist-types/DynamoDB.d.ts +7 -0
  14. package/dist-types/DynamoDBClient.d.ts +3 -2
  15. package/dist-types/commandBuilder.d.ts +4 -0
  16. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +6 -0
  17. package/dist-types/commands/BatchGetItemCommand.d.ts +6 -0
  18. package/dist-types/commands/BatchWriteItemCommand.d.ts +12 -7
  19. package/dist-types/commands/CreateTableCommand.d.ts +49 -0
  20. package/dist-types/commands/DeleteBackupCommand.d.ts +22 -0
  21. package/dist-types/commands/DeleteItemCommand.d.ts +6 -0
  22. package/dist-types/commands/DeleteTableCommand.d.ts +27 -0
  23. package/dist-types/commands/DescribeBackupCommand.d.ts +22 -0
  24. package/dist-types/commands/DescribeImportCommand.d.ts +22 -0
  25. package/dist-types/commands/DescribeTableCommand.d.ts +27 -0
  26. package/dist-types/commands/ExecuteStatementCommand.d.ts +6 -0
  27. package/dist-types/commands/ExecuteTransactionCommand.d.ts +10 -1
  28. package/dist-types/commands/GetItemCommand.d.ts +6 -0
  29. package/dist-types/commands/ImportTableCommand.d.ts +44 -0
  30. package/dist-types/commands/PutItemCommand.d.ts +6 -0
  31. package/dist-types/commands/QueryCommand.d.ts +6 -0
  32. package/dist-types/commands/RestoreTableFromBackupCommand.d.ts +49 -0
  33. package/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +49 -0
  34. package/dist-types/commands/ScanCommand.d.ts +6 -0
  35. package/dist-types/commands/SearchVectorsCommand.d.ts +295 -0
  36. package/dist-types/commands/TransactGetItemsCommand.d.ts +10 -1
  37. package/dist-types/commands/TransactWriteItemsCommand.d.ts +10 -1
  38. package/dist-types/commands/UpdateItemCommand.d.ts +6 -0
  39. package/dist-types/commands/UpdateTableCommand.d.ts +54 -0
  40. package/dist-types/commands/index.d.ts +1 -0
  41. package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
  42. package/dist-types/models/enums.d.ts +25 -0
  43. package/dist-types/models/errors.d.ts +4 -1
  44. package/dist-types/models/models_0.d.ts +631 -4
  45. package/dist-types/schemas/schemas_0.d.ts +13 -0
  46. package/dist-types/ts3.4/DynamoDB.d.ts +17 -0
  47. package/dist-types/ts3.4/DynamoDBClient.d.ts +6 -0
  48. package/dist-types/ts3.4/commandBuilder.d.ts +1 -0
  49. package/dist-types/ts3.4/commands/SearchVectorsCommand.d.ts +38 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  51. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
  52. package/dist-types/ts3.4/models/enums.d.ts +13 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +84 -0
  54. package/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -0
  55. package/package.json +4 -4
@@ -0,0 +1,295 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { SearchVectorsInput, SearchVectorsOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link SearchVectorsCommand}.
11
+ */
12
+ export interface SearchVectorsCommandInput extends SearchVectorsInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link SearchVectorsCommand}.
18
+ */
19
+ export interface SearchVectorsCommandOutput extends SearchVectorsOutput, __MetadataBearer {
20
+ }
21
+ declare const SearchVectorsCommand_base: {
22
+ new (input: SearchVectorsCommandInput): import("@smithy/core/client").CommandImpl<SearchVectorsCommandInput, SearchVectorsCommandOutput, import("..").DynamoDBClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: SearchVectorsCommandInput): import("@smithy/core/client").CommandImpl<SearchVectorsCommandInput, SearchVectorsCommandOutput, import("..").DynamoDBClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Performs a vector similarity search on a vector index associated with an Amazon
28
+ * DynamoDB table, and returns the most similar items sorted by similarity score
29
+ * based on the distance function configured for the index.</p>
30
+ * <p>Score interpretation depends on the distance function:</p>
31
+ * <ul>
32
+ * <li>
33
+ * <p>
34
+ * <code>COSINE</code> - Returns the items with the <i>k
35
+ * smallest</i> scores. Scores range from 0 (identical) to 2 (opposite).
36
+ * Lower scores indicate higher similarity.</p>
37
+ * </li>
38
+ * <li>
39
+ * <p>
40
+ * <code>EUCLIDEAN</code> - Returns the items with the <i>k
41
+ * smallest</i> scores. Scores represent the Euclidean distance between
42
+ * vectors. Lower scores indicate higher similarity.</p>
43
+ * </li>
44
+ * <li>
45
+ * <p>
46
+ * <code>DOT_PRODUCT</code> - Returns the items with the <i>k
47
+ * highest</i> scores. Higher scores indicate higher similarity.</p>
48
+ * </li>
49
+ * </ul>
50
+ * @example
51
+ * Use a bare-bones client and the command you need to make an API call.
52
+ * ```javascript
53
+ * import { DynamoDBClient, SearchVectorsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
54
+ * // const { DynamoDBClient, SearchVectorsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
55
+ * // import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
56
+ * const config = {}; // type is DynamoDBClientConfig
57
+ * const client = new DynamoDBClient(config);
58
+ * const input = { // SearchVectorsInput
59
+ * TableName: "STRING_VALUE", // required
60
+ * IndexName: "STRING_VALUE", // required
61
+ * ReturnConsumedCapacity: "INDEXES" || "TOTAL" || "NONE",
62
+ * ExpressionAttributeNames: { // ExpressionAttributeNameMap
63
+ * "<keys>": "STRING_VALUE",
64
+ * },
65
+ * ExpressionAttributeValues: { // ExpressionAttributeValueMap
66
+ * "<keys>": { // AttributeValue Union: only one key present
67
+ * S: "STRING_VALUE",
68
+ * N: "STRING_VALUE",
69
+ * B: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
70
+ * SS: [ // StringSetAttributeValue
71
+ * "STRING_VALUE",
72
+ * ],
73
+ * NS: [ // NumberSetAttributeValue
74
+ * "STRING_VALUE",
75
+ * ],
76
+ * BS: [ // BinarySetAttributeValue
77
+ * new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
78
+ * ],
79
+ * M: { // MapAttributeValue
80
+ * "<keys>": {// Union: only one key present
81
+ * S: "STRING_VALUE",
82
+ * N: "STRING_VALUE",
83
+ * B: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
84
+ * SS: [
85
+ * "STRING_VALUE",
86
+ * ],
87
+ * NS: [
88
+ * "STRING_VALUE",
89
+ * ],
90
+ * BS: [
91
+ * new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
92
+ * ],
93
+ * M: {
94
+ * "<keys>": "<AttributeValue>",
95
+ * },
96
+ * L: [ // ListAttributeValue
97
+ * "<AttributeValue>",
98
+ * ],
99
+ * NULL: true || false,
100
+ * BOOL: true || false,
101
+ * },
102
+ * },
103
+ * L: [
104
+ * "<AttributeValue>",
105
+ * ],
106
+ * NULL: true || false,
107
+ * BOOL: true || false,
108
+ * },
109
+ * },
110
+ * ProjectionExpression: "STRING_VALUE",
111
+ * SearchVector: [ // SearchVectorList // required
112
+ * "<AttributeValue>",
113
+ * ],
114
+ * SearchConditionExpression: "STRING_VALUE",
115
+ * TopK: Number("int"), // required
116
+ * };
117
+ * const command = new SearchVectorsCommand(input);
118
+ * const response = await client.send(command);
119
+ * // { // SearchVectorsOutput
120
+ * // ConsumedCapacity: { // VectorCapacity
121
+ * // VectorSearchRequestBytes: Number("double"),
122
+ * // VectorWriteRequestBytes: Number("double"),
123
+ * // },
124
+ * // SearchResults: [ // SearchResultList
125
+ * // { // SearchResultItem
126
+ * // Item: { // AttributeMap
127
+ * // "<keys>": { // AttributeValue Union: only one key present
128
+ * // S: "STRING_VALUE",
129
+ * // N: "STRING_VALUE",
130
+ * // B: new Uint8Array(),
131
+ * // SS: [ // StringSetAttributeValue
132
+ * // "STRING_VALUE",
133
+ * // ],
134
+ * // NS: [ // NumberSetAttributeValue
135
+ * // "STRING_VALUE",
136
+ * // ],
137
+ * // BS: [ // BinarySetAttributeValue
138
+ * // new Uint8Array(),
139
+ * // ],
140
+ * // M: { // MapAttributeValue
141
+ * // "<keys>": {// Union: only one key present
142
+ * // S: "STRING_VALUE",
143
+ * // N: "STRING_VALUE",
144
+ * // B: new Uint8Array(),
145
+ * // SS: [
146
+ * // "STRING_VALUE",
147
+ * // ],
148
+ * // NS: [
149
+ * // "STRING_VALUE",
150
+ * // ],
151
+ * // BS: [
152
+ * // new Uint8Array(),
153
+ * // ],
154
+ * // M: {
155
+ * // "<keys>": "<AttributeValue>",
156
+ * // },
157
+ * // L: [ // ListAttributeValue
158
+ * // "<AttributeValue>",
159
+ * // ],
160
+ * // NULL: true || false,
161
+ * // BOOL: true || false,
162
+ * // },
163
+ * // },
164
+ * // L: [
165
+ * // "<AttributeValue>",
166
+ * // ],
167
+ * // NULL: true || false,
168
+ * // BOOL: true || false,
169
+ * // },
170
+ * // },
171
+ * // Score: Number("double"),
172
+ * // },
173
+ * // ],
174
+ * // };
175
+ *
176
+ * ```
177
+ *
178
+ * @param SearchVectorsCommandInput - {@link SearchVectorsCommandInput}
179
+ * @returns {@link SearchVectorsCommandOutput}
180
+ * @see {@link SearchVectorsCommandInput} for command's `input` shape.
181
+ * @see {@link SearchVectorsCommandOutput} for command's `response` shape.
182
+ * @see {@link DynamoDBClientResolvedConfig | config} for DynamoDBClient's `config` shape.
183
+ *
184
+ * @throws {@link InternalServerError} (server fault)
185
+ * <p>An error occurred on the server side.</p>
186
+ *
187
+ * @throws {@link RequestLimitExceeded} (client fault)
188
+ * <p>Throughput exceeds the current throughput quota for your account. For detailed
189
+ * information about why the request was throttled and the ARN of the impacted resource,
190
+ * find the <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ThrottlingReason.html">ThrottlingReason</a> field in the returned exception. Contact <a href="https://aws.amazon.com/support">Amazon Web Services Support</a> to request a quota
191
+ * increase.</p>
192
+ *
193
+ * @throws {@link ResourceNotFoundException} (client fault)
194
+ * <p>The operation tried to access a nonexistent table or index. The resource might not
195
+ * be specified correctly, or its status might not be <code>ACTIVE</code>.</p>
196
+ *
197
+ * @throws {@link ThrottlingException} (client fault)
198
+ * <p>The request was denied due to request throttling. For detailed information about why
199
+ * the request was throttled and the ARN of the impacted resource, find the <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ThrottlingReason.html">ThrottlingReason</a> field in the returned exception.</p>
200
+ *
201
+ * @throws {@link DynamoDBServiceException}
202
+ * <p>Base exception class for all service exceptions from DynamoDB service.</p>
203
+ *
204
+ *
205
+ * @example To search for similar vectors
206
+ * ```javascript
207
+ * // This example searches the Products table for the top 3 items most similar to a provided vector, using the 'cosine-product-idx' vector index. The SearchConditionExpression filters results to the 'Electronics' category. The operation returns only the ProductName and Price attributes.
208
+ * const input = {
209
+ * ExpressionAttributeValues: {
210
+ * :cat: {
211
+ * S: "Electronics"
212
+ * }
213
+ * },
214
+ * IndexName: "cosine-product-idx",
215
+ * ProjectionExpression: "ProductName, Price",
216
+ * ReturnConsumedCapacity: "INDEXES",
217
+ * SearchConditionExpression: "Category = :cat",
218
+ * SearchVector: [
219
+ * {
220
+ * N: "0.12"
221
+ * },
222
+ * {
223
+ * N: "0.85"
224
+ * },
225
+ * {
226
+ * N: "0.44"
227
+ * },
228
+ * {
229
+ * N: "0.67"
230
+ * }
231
+ * ],
232
+ * TableName: "Products",
233
+ * TopK: 3
234
+ * };
235
+ * const command = new SearchVectorsCommand(input);
236
+ * const response = await client.send(command);
237
+ * /* response is
238
+ * {
239
+ * ConsumedCapacity: {
240
+ * VectorSearchRequestBytes: 1024
241
+ * },
242
+ * SearchResults: [
243
+ * {
244
+ * Item: {
245
+ * Price: {
246
+ * N: "79.99"
247
+ * },
248
+ * ProductName: {
249
+ * S: "Wireless Headphones"
250
+ * }
251
+ * },
252
+ * Score: 0.95
253
+ * },
254
+ * {
255
+ * Item: {
256
+ * Price: {
257
+ * N: "49.99"
258
+ * },
259
+ * ProductName: {
260
+ * S: "Bluetooth Speaker"
261
+ * }
262
+ * },
263
+ * Score: 0.87
264
+ * },
265
+ * {
266
+ * Item: {
267
+ * Price: {
268
+ * N: "34.99"
269
+ * },
270
+ * ProductName: {
271
+ * S: "USB-C Hub"
272
+ * }
273
+ * },
274
+ * Score: 0.82
275
+ * }
276
+ * ]
277
+ * }
278
+ * *\/
279
+ * ```
280
+ *
281
+ * @public
282
+ */
283
+ export declare class SearchVectorsCommand extends SearchVectorsCommand_base {
284
+ /** @internal type navigation helper, not in runtime. */
285
+ protected static __types: {
286
+ api: {
287
+ input: SearchVectorsInput;
288
+ output: SearchVectorsOutput;
289
+ };
290
+ sdk: {
291
+ input: SearchVectorsCommandInput;
292
+ output: SearchVectorsCommandOutput;
293
+ };
294
+ };
295
+ }
@@ -146,6 +146,12 @@ declare const TransactGetItemsCommand_base: {
146
146
  * // CapacityUnits: Number("double"),
147
147
  * // },
148
148
  * // },
149
+ * // VectorIndexes: { // VectorIndexesCapacityMap
150
+ * // "<keys>": { // VectorCapacity
151
+ * // VectorSearchRequestBytes: Number("double"),
152
+ * // VectorWriteRequestBytes: Number("double"),
153
+ * // },
154
+ * // },
149
155
  * // },
150
156
  * // ],
151
157
  * // Responses: [ // ItemResponseList
@@ -295,7 +301,10 @@ declare const TransactGetItemsCommand_base: {
295
301
  * <p>DynamoDB lists the cancellation reasons on the
296
302
  * <code>CancellationReasons</code> property. Transaction cancellation reasons are ordered in the order of requested
297
303
  * items, if an item has no error it will have <code>None</code> code and
298
- * <code>Null</code> message.</p>
304
+ * <code>Null</code> message. The <code>None</code> code is returned as the literal
305
+ * string <code>"None"</code>, not a null or absent value; the message field is omitted
306
+ * entirely for an item that has no error. This is important to note when using an SDK
307
+ * that surfaces the code as an optional or nullable type.</p>
299
308
  * </note>
300
309
  * <p>Cancellation reason codes and possible error messages:</p>
301
310
  * <ul>
@@ -241,6 +241,12 @@ declare const TransactWriteItemsCommand_base: {
241
241
  * // CapacityUnits: Number("double"),
242
242
  * // },
243
243
  * // },
244
+ * // VectorIndexes: { // VectorIndexesCapacityMap
245
+ * // "<keys>": { // VectorCapacity
246
+ * // VectorSearchRequestBytes: Number("double"),
247
+ * // VectorWriteRequestBytes: Number("double"),
248
+ * // },
249
+ * // },
244
250
  * // },
245
251
  * // ],
246
252
  * // ItemCollectionMetrics: { // ItemCollectionMetricsPerTable
@@ -399,7 +405,10 @@ declare const TransactWriteItemsCommand_base: {
399
405
  * <p>DynamoDB lists the cancellation reasons on the
400
406
  * <code>CancellationReasons</code> property. Transaction cancellation reasons are ordered in the order of requested
401
407
  * items, if an item has no error it will have <code>None</code> code and
402
- * <code>Null</code> message.</p>
408
+ * <code>Null</code> message. The <code>None</code> code is returned as the literal
409
+ * string <code>"None"</code>, not a null or absent value; the message field is omitted
410
+ * entirely for an item that has no error. This is important to note when using an SDK
411
+ * that surfaces the code as an optional or nullable type.</p>
403
412
  * </note>
404
413
  * <p>Cancellation reason codes and possible error messages:</p>
405
414
  * <ul>
@@ -188,6 +188,12 @@ declare const UpdateItemCommand_base: {
188
188
  * // CapacityUnits: Number("double"),
189
189
  * // },
190
190
  * // },
191
+ * // VectorIndexes: { // VectorIndexesCapacityMap
192
+ * // "<keys>": { // VectorCapacity
193
+ * // VectorSearchRequestBytes: Number("double"),
194
+ * // VectorWriteRequestBytes: Number("double"),
195
+ * // },
196
+ * // },
191
197
  * // },
192
198
  * // ItemCollectionMetrics: { // ItemCollectionMetrics
193
199
  * // ItemCollectionKey: { // ItemCollectionKeyAttributeMap
@@ -198,6 +198,33 @@ declare const UpdateTableCommand_base: {
198
198
  * WriteUnitsPerSecond: Number("long"),
199
199
  * },
200
200
  * GlobalTableSettingsReplicationMode: "ENABLED" || "DISABLED" || "ENABLED_WITH_OVERRIDES",
201
+ * VectorIndexUpdates: [ // VectorIndexUpdateList
202
+ * { // VectorIndexUpdate
203
+ * Create: { // CreateVectorIndexAction
204
+ * IndexName: "STRING_VALUE", // required
205
+ * VectorAttribute: { // VectorAttributeDefinition
206
+ * AttributeName: "STRING_VALUE", // required
207
+ * },
208
+ * SearchSchema: [ // SearchSchema
209
+ * { // SearchSchemaElement
210
+ * AttributeName: "STRING_VALUE", // required
211
+ * SearchSchemaElementType: "HASH" || "INLINE_FILTER", // required
212
+ * },
213
+ * ],
214
+ * Projection: {
215
+ * ProjectionType: "ALL" || "KEYS_ONLY" || "INCLUDE",
216
+ * NonKeyAttributes: [
217
+ * "STRING_VALUE",
218
+ * ],
219
+ * },
220
+ * Dimensions: Number("long"), // required
221
+ * DistanceFunction: "COSINE" || "DOT_PRODUCT" || "EUCLIDEAN", // required
222
+ * },
223
+ * Delete: { // DeleteVectorIndexAction
224
+ * IndexName: "STRING_VALUE", // required
225
+ * },
226
+ * },
227
+ * ],
201
228
  * };
202
229
  * const command = new UpdateTableCommand(input);
203
230
  * const response = await client.send(command);
@@ -380,6 +407,33 @@ declare const UpdateTableCommand_base: {
380
407
  * // Status: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE" || "INACCESSIBLE_ENCRYPTION_CREDENTIALS" || "ARCHIVING" || "ARCHIVED" || "REPLICATION_NOT_AUTHORIZED",
381
408
  * // },
382
409
  * // MultiRegionConsistency: "EVENTUAL" || "STRONG",
410
+ * // VectorIndexes: [ // VectorIndexDescriptionList
411
+ * // { // VectorIndexDescription
412
+ * // IndexName: "STRING_VALUE",
413
+ * // SearchSchema: [ // SearchSchema
414
+ * // { // SearchSchemaElement
415
+ * // AttributeName: "STRING_VALUE", // required
416
+ * // SearchSchemaElementType: "HASH" || "INLINE_FILTER", // required
417
+ * // },
418
+ * // ],
419
+ * // Projection: {
420
+ * // ProjectionType: "ALL" || "KEYS_ONLY" || "INCLUDE",
421
+ * // NonKeyAttributes: [
422
+ * // "STRING_VALUE",
423
+ * // ],
424
+ * // },
425
+ * // VectorAttribute: { // VectorAttributeDefinition
426
+ * // AttributeName: "STRING_VALUE", // required
427
+ * // },
428
+ * // Dimensions: Number("long"),
429
+ * // DistanceFunction: "COSINE" || "DOT_PRODUCT" || "EUCLIDEAN",
430
+ * // IndexStatus: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE",
431
+ * // Backfilling: true || false,
432
+ * // IndexSizeBytes: Number("long"),
433
+ * // ItemCount: Number("long"),
434
+ * // IndexArn: "STRING_VALUE",
435
+ * // },
436
+ * // ],
383
437
  * // },
384
438
  * // };
385
439
  *
@@ -42,6 +42,7 @@ export * from "./QueryCommand";
42
42
  export * from "./RestoreTableFromBackupCommand";
43
43
  export * from "./RestoreTableToPointInTimeCommand";
44
44
  export * from "./ScanCommand";
45
+ export * from "./SearchVectorsCommand";
45
46
  export * from "./TagResourceCommand";
46
47
  export * from "./TransactGetItemsCommand";
47
48
  export * from "./TransactWriteItemsCommand";
@@ -61,4 +61,5 @@ export interface EndpointParameters extends __EndpointParameters {
61
61
  AccountIdEndpointMode?: string | undefined;
62
62
  ResourceArn?: string | undefined;
63
63
  ResourceArnList?: string[] | undefined;
64
+ IsSearchOperation?: boolean | undefined;
64
65
  }
@@ -154,6 +154,31 @@ export declare const TimeToLiveStatus: {
154
154
  * @public
155
155
  */
156
156
  export type TimeToLiveStatus = (typeof TimeToLiveStatus)[keyof typeof TimeToLiveStatus];
157
+ /**
158
+ * @public
159
+ * @enum
160
+ */
161
+ export declare const VectorDistanceFunction: {
162
+ readonly COSINE: "COSINE";
163
+ readonly DOT_PRODUCT: "DOT_PRODUCT";
164
+ readonly EUCLIDEAN: "EUCLIDEAN";
165
+ };
166
+ /**
167
+ * @public
168
+ */
169
+ export type VectorDistanceFunction = (typeof VectorDistanceFunction)[keyof typeof VectorDistanceFunction];
170
+ /**
171
+ * @public
172
+ * @enum
173
+ */
174
+ export declare const SearchSchemaElementType: {
175
+ readonly HASH: "HASH";
176
+ readonly INLINE_FILTER: "INLINE_FILTER";
177
+ };
178
+ /**
179
+ * @public
180
+ */
181
+ export type SearchSchemaElementType = (typeof SearchSchemaElementType)[keyof typeof SearchSchemaElementType];
157
182
  /**
158
183
  * @public
159
184
  * @enum
@@ -609,7 +609,10 @@ export declare class ConditionalCheckFailedException extends __BaseException {
609
609
  * <p>DynamoDB lists the cancellation reasons on the
610
610
  * <code>CancellationReasons</code> property. Transaction cancellation reasons are ordered in the order of requested
611
611
  * items, if an item has no error it will have <code>None</code> code and
612
- * <code>Null</code> message.</p>
612
+ * <code>Null</code> message. The <code>None</code> code is returned as the literal
613
+ * string <code>"None"</code>, not a null or absent value; the message field is omitted
614
+ * entirely for an item that has no error. This is important to note when using an SDK
615
+ * that surfaces the code as an optional or nullable type.</p>
613
616
  * </note>
614
617
  * <p>Cancellation reason codes and possible error messages:</p>
615
618
  * <ul>