@aws-sdk/client-dynamodb 3.1101.0 → 3.1103.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 (56) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +329 -146
  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/runtimeConfig.shared.js +2 -2
  13. package/dist-es/schemas/schemas_0.js +153 -32
  14. package/dist-types/DynamoDB.d.ts +7 -0
  15. package/dist-types/DynamoDBClient.d.ts +3 -2
  16. package/dist-types/commandBuilder.d.ts +4 -0
  17. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +6 -0
  18. package/dist-types/commands/BatchGetItemCommand.d.ts +6 -0
  19. package/dist-types/commands/BatchWriteItemCommand.d.ts +12 -7
  20. package/dist-types/commands/CreateTableCommand.d.ts +49 -0
  21. package/dist-types/commands/DeleteBackupCommand.d.ts +22 -0
  22. package/dist-types/commands/DeleteItemCommand.d.ts +6 -0
  23. package/dist-types/commands/DeleteTableCommand.d.ts +27 -0
  24. package/dist-types/commands/DescribeBackupCommand.d.ts +22 -0
  25. package/dist-types/commands/DescribeImportCommand.d.ts +22 -0
  26. package/dist-types/commands/DescribeTableCommand.d.ts +27 -0
  27. package/dist-types/commands/ExecuteStatementCommand.d.ts +6 -0
  28. package/dist-types/commands/ExecuteTransactionCommand.d.ts +10 -1
  29. package/dist-types/commands/GetItemCommand.d.ts +6 -0
  30. package/dist-types/commands/ImportTableCommand.d.ts +44 -0
  31. package/dist-types/commands/PutItemCommand.d.ts +6 -0
  32. package/dist-types/commands/QueryCommand.d.ts +6 -0
  33. package/dist-types/commands/RestoreTableFromBackupCommand.d.ts +49 -0
  34. package/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +49 -0
  35. package/dist-types/commands/ScanCommand.d.ts +6 -0
  36. package/dist-types/commands/SearchVectorsCommand.d.ts +295 -0
  37. package/dist-types/commands/TransactGetItemsCommand.d.ts +10 -1
  38. package/dist-types/commands/TransactWriteItemsCommand.d.ts +10 -1
  39. package/dist-types/commands/UpdateItemCommand.d.ts +6 -0
  40. package/dist-types/commands/UpdateTableCommand.d.ts +54 -0
  41. package/dist-types/commands/index.d.ts +1 -0
  42. package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
  43. package/dist-types/models/enums.d.ts +25 -0
  44. package/dist-types/models/errors.d.ts +4 -1
  45. package/dist-types/models/models_0.d.ts +631 -4
  46. package/dist-types/schemas/schemas_0.d.ts +13 -0
  47. package/dist-types/ts3.4/DynamoDB.d.ts +17 -0
  48. package/dist-types/ts3.4/DynamoDBClient.d.ts +6 -0
  49. package/dist-types/ts3.4/commandBuilder.d.ts +1 -0
  50. package/dist-types/ts3.4/commands/SearchVectorsCommand.d.ts +38 -0
  51. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  52. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
  53. package/dist-types/ts3.4/models/enums.d.ts +13 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +84 -0
  55. package/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -0
  56. package/package.json +4 -4
@@ -81,6 +81,7 @@ export declare var CreateReplicaAction$: StaticStructureSchema;
81
81
  export declare var CreateReplicationGroupMemberAction$: StaticStructureSchema;
82
82
  export declare var CreateTableInput$: StaticStructureSchema;
83
83
  export declare var CreateTableOutput$: StaticStructureSchema;
84
+ export declare var CreateVectorIndexAction$: StaticStructureSchema;
84
85
  export declare var CsvOptions$: StaticStructureSchema;
85
86
  export declare var Delete$: StaticStructureSchema;
86
87
  export declare var DeleteBackupInput$: StaticStructureSchema;
@@ -96,6 +97,7 @@ export declare var DeleteResourcePolicyInput$: StaticStructureSchema;
96
97
  export declare var DeleteResourcePolicyOutput$: StaticStructureSchema;
97
98
  export declare var DeleteTableInput$: StaticStructureSchema;
98
99
  export declare var DeleteTableOutput$: StaticStructureSchema;
100
+ export declare var DeleteVectorIndexAction$: StaticStructureSchema;
99
101
  export declare var DescribeBackupInput$: StaticStructureSchema;
100
102
  export declare var DescribeBackupOutput$: StaticStructureSchema;
101
103
  export declare var DescribeContinuousBackupsInput$: StaticStructureSchema;
@@ -219,6 +221,10 @@ export declare var RestoreTableToPointInTimeOutput$: StaticStructureSchema;
219
221
  export declare var S3BucketSource$: StaticStructureSchema;
220
222
  export declare var ScanInput$: StaticStructureSchema;
221
223
  export declare var ScanOutput$: StaticStructureSchema;
224
+ export declare var SearchResultItem$: StaticStructureSchema;
225
+ export declare var SearchSchemaElement$: StaticStructureSchema;
226
+ export declare var SearchVectorsInput$: StaticStructureSchema;
227
+ export declare var SearchVectorsOutput$: StaticStructureSchema;
222
228
  export declare var SourceTableDetails$: StaticStructureSchema;
223
229
  export declare var SourceTableFeatureDetails$: StaticStructureSchema;
224
230
  export declare var SSEDescription$: StaticStructureSchema;
@@ -263,6 +269,12 @@ export declare var UpdateTableReplicaAutoScalingInput$: StaticStructureSchema;
263
269
  export declare var UpdateTableReplicaAutoScalingOutput$: StaticStructureSchema;
264
270
  export declare var UpdateTimeToLiveInput$: StaticStructureSchema;
265
271
  export declare var UpdateTimeToLiveOutput$: StaticStructureSchema;
272
+ export declare var VectorAttributeDefinition$: StaticStructureSchema;
273
+ export declare var VectorCapacity$: StaticStructureSchema;
274
+ export declare var VectorIndex$: StaticStructureSchema;
275
+ export declare var VectorIndexDescription$: StaticStructureSchema;
276
+ export declare var VectorIndexInfo$: StaticStructureSchema;
277
+ export declare var VectorIndexUpdate$: StaticStructureSchema;
266
278
  export declare var WarmThroughput$: StaticStructureSchema;
267
279
  export declare var WriteRequest$: StaticStructureSchema;
268
280
  export declare var AttributeValue$: StaticUnionSchema;
@@ -310,6 +322,7 @@ export declare var Query$: StaticOperationSchema;
310
322
  export declare var RestoreTableFromBackup$: StaticOperationSchema;
311
323
  export declare var RestoreTableToPointInTime$: StaticOperationSchema;
312
324
  export declare var Scan$: StaticOperationSchema;
325
+ export declare var SearchVectors$: StaticOperationSchema;
313
326
  export declare var TagResource$: StaticOperationSchema;
314
327
  export declare var TransactGetItems$: StaticOperationSchema;
315
328
  export declare var TransactWriteItems$: StaticOperationSchema;
@@ -145,6 +145,10 @@ import {
145
145
  RestoreTableToPointInTimeCommandOutput,
146
146
  } from "./commands/RestoreTableToPointInTimeCommand";
147
147
  import { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
148
+ import {
149
+ SearchVectorsCommandInput,
150
+ SearchVectorsCommandOutput,
151
+ } from "./commands/SearchVectorsCommand";
148
152
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
149
153
  import {
150
154
  TransactGetItemsCommandInput,
@@ -747,6 +751,19 @@ export interface DynamoDB {
747
751
  options: __HttpHandlerOptions,
748
752
  cb: (err: any, data?: ScanCommandOutput) => void,
749
753
  ): void;
754
+ searchVectors(
755
+ args: SearchVectorsCommandInput,
756
+ options?: __HttpHandlerOptions,
757
+ ): Promise<SearchVectorsCommandOutput>;
758
+ searchVectors(
759
+ args: SearchVectorsCommandInput,
760
+ cb: (err: any, data?: SearchVectorsCommandOutput) => void,
761
+ ): void;
762
+ searchVectors(
763
+ args: SearchVectorsCommandInput,
764
+ options: __HttpHandlerOptions,
765
+ cb: (err: any, data?: SearchVectorsCommandOutput) => void,
766
+ ): void;
750
767
  tagResource(
751
768
  args: TagResourceCommandInput,
752
769
  options?: __HttpHandlerOptions,
@@ -182,6 +182,10 @@ import {
182
182
  RestoreTableToPointInTimeCommandOutput,
183
183
  } from "./commands/RestoreTableToPointInTimeCommand";
184
184
  import { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
185
+ import {
186
+ SearchVectorsCommandInput,
187
+ SearchVectorsCommandOutput,
188
+ } from "./commands/SearchVectorsCommand";
185
189
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
186
190
  import {
187
191
  TransactGetItemsCommandInput,
@@ -277,6 +281,7 @@ export type ServiceInputTypes =
277
281
  | RestoreTableFromBackupCommandInput
278
282
  | RestoreTableToPointInTimeCommandInput
279
283
  | ScanCommandInput
284
+ | SearchVectorsCommandInput
280
285
  | TagResourceCommandInput
281
286
  | TransactGetItemsCommandInput
282
287
  | TransactWriteItemsCommandInput
@@ -335,6 +340,7 @@ export type ServiceOutputTypes =
335
340
  | RestoreTableFromBackupCommandOutput
336
341
  | RestoreTableToPointInTimeCommandOutput
337
342
  | ScanCommandOutput
343
+ | SearchVectorsCommandOutput
338
344
  | TagResourceCommandOutput
339
345
  | TransactGetItemsCommandOutput
340
346
  | TransactWriteItemsCommandOutput
@@ -49,4 +49,5 @@ export declare const _ep9: EndpointParameterInstructions;
49
49
  export declare const _ep10: EndpointParameterInstructions;
50
50
  export declare const _ep11: EndpointParameterInstructions;
51
51
  export declare const _ep12: EndpointParameterInstructions;
52
+ export declare const _ep13: EndpointParameterInstructions;
52
53
  export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { SearchVectorsInput, SearchVectorsOutput } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface SearchVectorsCommandInput extends SearchVectorsInput {}
5
+ export interface SearchVectorsCommandOutput extends SearchVectorsOutput, __MetadataBearer {}
6
+ declare const SearchVectorsCommand_base: {
7
+ new (
8
+ input: SearchVectorsCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ SearchVectorsCommandInput,
11
+ SearchVectorsCommandOutput,
12
+ import("..").DynamoDBClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: SearchVectorsCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ SearchVectorsCommandInput,
20
+ SearchVectorsCommandOutput,
21
+ import("..").DynamoDBClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class SearchVectorsCommand extends SearchVectorsCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: SearchVectorsInput;
31
+ output: SearchVectorsOutput;
32
+ };
33
+ sdk: {
34
+ input: SearchVectorsCommandInput;
35
+ output: SearchVectorsCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -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";
@@ -62,4 +62,5 @@ export interface EndpointParameters extends __EndpointParameters {
62
62
  AccountIdEndpointMode?: string | undefined;
63
63
  ResourceArn?: string | undefined;
64
64
  ResourceArnList?: string[] | undefined;
65
+ IsSearchOperation?: boolean | undefined;
65
66
  }
@@ -71,6 +71,19 @@ export declare const TimeToLiveStatus: {
71
71
  readonly ENABLING: "ENABLING";
72
72
  };
73
73
  export type TimeToLiveStatus = (typeof TimeToLiveStatus)[keyof typeof TimeToLiveStatus];
74
+ export declare const VectorDistanceFunction: {
75
+ readonly COSINE: "COSINE";
76
+ readonly DOT_PRODUCT: "DOT_PRODUCT";
77
+ readonly EUCLIDEAN: "EUCLIDEAN";
78
+ };
79
+ export type VectorDistanceFunction =
80
+ (typeof VectorDistanceFunction)[keyof typeof VectorDistanceFunction];
81
+ export declare const SearchSchemaElementType: {
82
+ readonly HASH: "HASH";
83
+ readonly INLINE_FILTER: "INLINE_FILTER";
84
+ };
85
+ export type SearchSchemaElementType =
86
+ (typeof SearchSchemaElementType)[keyof typeof SearchSchemaElementType];
74
87
  export declare const BackupTypeFilter: {
75
88
  readonly ALL: "ALL";
76
89
  readonly AWS_BACKUP: "AWS_BACKUP";
@@ -34,6 +34,7 @@ import {
34
34
  ReturnValuesOnConditionCheckFailure,
35
35
  S3SseAlgorithm,
36
36
  ScalarAttributeType,
37
+ SearchSchemaElementType,
37
38
  Select,
38
39
  SSEStatus,
39
40
  SSEType,
@@ -41,6 +42,7 @@ import {
41
42
  TableClass,
42
43
  TableStatus,
43
44
  TimeToLiveStatus,
45
+ VectorDistanceFunction,
44
46
  WitnessStatus,
45
47
  } from "./enums";
46
48
  export interface ArchivalSummary {
@@ -153,12 +155,28 @@ export interface TimeToLiveDescription {
153
155
  TimeToLiveStatus?: TimeToLiveStatus | undefined;
154
156
  AttributeName?: string | undefined;
155
157
  }
158
+ export interface SearchSchemaElement {
159
+ AttributeName: string | undefined;
160
+ SearchSchemaElementType: SearchSchemaElementType | undefined;
161
+ }
162
+ export interface VectorAttributeDefinition {
163
+ AttributeName: string | undefined;
164
+ }
165
+ export interface VectorIndexInfo {
166
+ IndexName?: string | undefined;
167
+ VectorAttribute?: VectorAttributeDefinition | undefined;
168
+ SearchSchema?: SearchSchemaElement[] | undefined;
169
+ Projection?: Projection | undefined;
170
+ Dimensions?: number | undefined;
171
+ DistanceFunction?: VectorDistanceFunction | undefined;
172
+ }
156
173
  export interface SourceTableFeatureDetails {
157
174
  LocalSecondaryIndexes?: LocalSecondaryIndexInfo[] | undefined;
158
175
  GlobalSecondaryIndexes?: GlobalSecondaryIndexInfo[] | undefined;
159
176
  StreamDescription?: StreamSpecification | undefined;
160
177
  TimeToLiveDescription?: TimeToLiveDescription | undefined;
161
178
  SSEDescription?: SSEDescription | undefined;
179
+ VectorIndexes?: VectorIndexInfo[] | undefined;
162
180
  }
163
181
  export interface BackupDescription {
164
182
  BackupDetails?: BackupDetails | undefined;
@@ -182,6 +200,10 @@ export interface Capacity {
182
200
  WriteCapacityUnits?: number | undefined;
183
201
  CapacityUnits?: number | undefined;
184
202
  }
203
+ export interface VectorCapacity {
204
+ VectorSearchRequestBytes?: number | undefined;
205
+ VectorWriteRequestBytes?: number | undefined;
206
+ }
185
207
  export interface ConsumedCapacity {
186
208
  TableName?: string | undefined;
187
209
  CapacityUnits?: number | undefined;
@@ -190,6 +212,7 @@ export interface ConsumedCapacity {
190
212
  Table?: Capacity | undefined;
191
213
  LocalSecondaryIndexes?: Record<string, Capacity> | undefined;
192
214
  GlobalSecondaryIndexes?: Record<string, Capacity> | undefined;
215
+ VectorIndexes?: Record<string, VectorCapacity> | undefined;
193
216
  }
194
217
  export interface ThrottlingReason {
195
218
  reason?: string | undefined;
@@ -333,6 +356,14 @@ export interface Tag {
333
356
  Key: string | undefined;
334
357
  Value: string | undefined;
335
358
  }
359
+ export interface VectorIndex {
360
+ IndexName: string | undefined;
361
+ VectorAttribute: VectorAttributeDefinition | undefined;
362
+ SearchSchema?: SearchSchemaElement[] | undefined;
363
+ Projection: Projection | undefined;
364
+ Dimensions: number | undefined;
365
+ DistanceFunction: VectorDistanceFunction | undefined;
366
+ }
336
367
  export interface CreateTableInput {
337
368
  AttributeDefinitions?: AttributeDefinition[] | undefined;
338
369
  TableName: string | undefined;
@@ -351,6 +382,7 @@ export interface CreateTableInput {
351
382
  OnDemandThroughput?: OnDemandThroughput | undefined;
352
383
  GlobalTableSourceArn?: string | undefined;
353
384
  GlobalTableSettingsReplicationMode?: GlobalTableSettingsReplicationMode | undefined;
385
+ VectorIndexes?: VectorIndex[] | undefined;
354
386
  }
355
387
  export interface ProvisionedThroughputDescription {
356
388
  LastIncreaseDateTime?: Date | undefined;
@@ -390,6 +422,19 @@ export interface RestoreSummary {
390
422
  RestoreDateTime: Date | undefined;
391
423
  RestoreInProgress: boolean | undefined;
392
424
  }
425
+ export interface VectorIndexDescription {
426
+ IndexName?: string | undefined;
427
+ SearchSchema?: SearchSchemaElement[] | undefined;
428
+ Projection?: Projection | undefined;
429
+ VectorAttribute?: VectorAttributeDefinition | undefined;
430
+ Dimensions?: number | undefined;
431
+ DistanceFunction?: VectorDistanceFunction | undefined;
432
+ IndexStatus?: IndexStatus | undefined;
433
+ Backfilling?: boolean | undefined;
434
+ IndexSizeBytes?: number | undefined;
435
+ ItemCount?: number | undefined;
436
+ IndexArn?: string | undefined;
437
+ }
393
438
  export interface TableDescription {
394
439
  AttributeDefinitions?: AttributeDefinition[] | undefined;
395
440
  TableName?: string | undefined;
@@ -419,10 +464,19 @@ export interface TableDescription {
419
464
  OnDemandThroughput?: OnDemandThroughput | undefined;
420
465
  WarmThroughput?: TableWarmThroughputDescription | undefined;
421
466
  MultiRegionConsistency?: MultiRegionConsistency | undefined;
467
+ VectorIndexes?: VectorIndexDescription[] | undefined;
422
468
  }
423
469
  export interface CreateTableOutput {
424
470
  TableDescription?: TableDescription | undefined;
425
471
  }
472
+ export interface CreateVectorIndexAction {
473
+ IndexName: string | undefined;
474
+ VectorAttribute: VectorAttributeDefinition | undefined;
475
+ SearchSchema?: SearchSchemaElement[] | undefined;
476
+ Projection: Projection | undefined;
477
+ Dimensions: number | undefined;
478
+ DistanceFunction: VectorDistanceFunction | undefined;
479
+ }
426
480
  export interface CsvOptions {
427
481
  Delimiter?: string | undefined;
428
482
  HeaderList?: string[] | undefined;
@@ -458,6 +512,9 @@ export interface DeleteTableInput {
458
512
  export interface DeleteTableOutput {
459
513
  TableDescription?: TableDescription | undefined;
460
514
  }
515
+ export interface DeleteVectorIndexAction {
516
+ IndexName: string | undefined;
517
+ }
461
518
  export interface DescribeBackupInput {
462
519
  BackupArn: string | undefined;
463
520
  }
@@ -583,6 +640,7 @@ export interface TableCreationParameters {
583
640
  OnDemandThroughput?: OnDemandThroughput | undefined;
584
641
  SSESpecification?: SSESpecification | undefined;
585
642
  GlobalSecondaryIndexes?: GlobalSecondaryIndex[] | undefined;
643
+ VectorIndexes?: VectorIndex[] | undefined;
586
644
  }
587
645
  export interface ImportTableDescription {
588
646
  ImportArn?: string | undefined;
@@ -813,6 +871,7 @@ export interface RestoreTableFromBackupInput {
813
871
  ProvisionedThroughputOverride?: ProvisionedThroughput | undefined;
814
872
  OnDemandThroughputOverride?: OnDemandThroughput | undefined;
815
873
  SSESpecificationOverride?: SSESpecification | undefined;
874
+ VectorIndexOverride?: VectorIndex[] | undefined;
816
875
  }
817
876
  export interface RestoreTableFromBackupOutput {
818
877
  TableDescription?: TableDescription | undefined;
@@ -829,6 +888,7 @@ export interface RestoreTableToPointInTimeInput {
829
888
  ProvisionedThroughputOverride?: ProvisionedThroughput | undefined;
830
889
  OnDemandThroughputOverride?: OnDemandThroughput | undefined;
831
890
  SSESpecificationOverride?: SSESpecification | undefined;
891
+ VectorIndexOverride?: VectorIndex[] | undefined;
832
892
  }
833
893
  export interface RestoreTableToPointInTimeOutput {
834
894
  TableDescription?: TableDescription | undefined;
@@ -952,6 +1012,10 @@ export interface ReplicationGroupUpdate {
952
1012
  Update?: UpdateReplicationGroupMemberAction | undefined;
953
1013
  Delete?: DeleteReplicationGroupMemberAction | undefined;
954
1014
  }
1015
+ export interface VectorIndexUpdate {
1016
+ Create?: CreateVectorIndexAction | undefined;
1017
+ Delete?: DeleteVectorIndexAction | undefined;
1018
+ }
955
1019
  export interface UpdateTableInput {
956
1020
  AttributeDefinitions?: AttributeDefinition[] | undefined;
957
1021
  TableName: string | undefined;
@@ -968,6 +1032,7 @@ export interface UpdateTableInput {
968
1032
  OnDemandThroughput?: OnDemandThroughput | undefined;
969
1033
  WarmThroughput?: WarmThroughput | undefined;
970
1034
  GlobalTableSettingsReplicationMode?: GlobalTableSettingsReplicationMode | undefined;
1035
+ VectorIndexUpdates?: VectorIndexUpdate[] | undefined;
971
1036
  }
972
1037
  export interface UpdateTableOutput {
973
1038
  TableDescription?: TableDescription | undefined;
@@ -1245,6 +1310,10 @@ export interface ParameterizedStatement {
1245
1310
  export interface PutRequest {
1246
1311
  Item: Record<string, AttributeValue> | undefined;
1247
1312
  }
1313
+ export interface SearchResultItem {
1314
+ Item?: Record<string, AttributeValue> | undefined;
1315
+ Score?: number | undefined;
1316
+ }
1248
1317
  export interface KeysAndAttributes {
1249
1318
  Keys: Record<string, AttributeValue>[] | undefined;
1250
1319
  AttributesToGet?: string[] | undefined;
@@ -1268,6 +1337,10 @@ export interface ExecuteTransactionOutput {
1268
1337
  Responses?: ItemResponse[] | undefined;
1269
1338
  ConsumedCapacity?: ConsumedCapacity[] | undefined;
1270
1339
  }
1340
+ export interface SearchVectorsOutput {
1341
+ ConsumedCapacity?: VectorCapacity | undefined;
1342
+ SearchResults?: SearchResultItem[] | undefined;
1343
+ }
1271
1344
  export interface TransactGetItemsOutput {
1272
1345
  ConsumedCapacity?: ConsumedCapacity[] | undefined;
1273
1346
  Responses?: ItemResponse[] | undefined;
@@ -1314,6 +1387,17 @@ export interface Put {
1314
1387
  ExpressionAttributeValues?: Record<string, AttributeValue> | undefined;
1315
1388
  ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure | undefined;
1316
1389
  }
1390
+ export interface SearchVectorsInput {
1391
+ TableName: string | undefined;
1392
+ IndexName: string | undefined;
1393
+ ReturnConsumedCapacity?: ReturnConsumedCapacity | undefined;
1394
+ ExpressionAttributeNames?: Record<string, string> | undefined;
1395
+ ExpressionAttributeValues?: Record<string, AttributeValue> | undefined;
1396
+ ProjectionExpression?: string | undefined;
1397
+ SearchVector: AttributeValue[] | undefined;
1398
+ SearchConditionExpression?: string | undefined;
1399
+ TopK: number | undefined;
1400
+ }
1317
1401
  export interface Update {
1318
1402
  Key: Record<string, AttributeValue> | undefined;
1319
1403
  UpdateExpression: string | undefined;
@@ -81,6 +81,7 @@ export declare var CreateReplicaAction$: StaticStructureSchema;
81
81
  export declare var CreateReplicationGroupMemberAction$: StaticStructureSchema;
82
82
  export declare var CreateTableInput$: StaticStructureSchema;
83
83
  export declare var CreateTableOutput$: StaticStructureSchema;
84
+ export declare var CreateVectorIndexAction$: StaticStructureSchema;
84
85
  export declare var CsvOptions$: StaticStructureSchema;
85
86
  export declare var Delete$: StaticStructureSchema;
86
87
  export declare var DeleteBackupInput$: StaticStructureSchema;
@@ -96,6 +97,7 @@ export declare var DeleteResourcePolicyInput$: StaticStructureSchema;
96
97
  export declare var DeleteResourcePolicyOutput$: StaticStructureSchema;
97
98
  export declare var DeleteTableInput$: StaticStructureSchema;
98
99
  export declare var DeleteTableOutput$: StaticStructureSchema;
100
+ export declare var DeleteVectorIndexAction$: StaticStructureSchema;
99
101
  export declare var DescribeBackupInput$: StaticStructureSchema;
100
102
  export declare var DescribeBackupOutput$: StaticStructureSchema;
101
103
  export declare var DescribeContinuousBackupsInput$: StaticStructureSchema;
@@ -219,6 +221,10 @@ export declare var RestoreTableToPointInTimeOutput$: StaticStructureSchema;
219
221
  export declare var S3BucketSource$: StaticStructureSchema;
220
222
  export declare var ScanInput$: StaticStructureSchema;
221
223
  export declare var ScanOutput$: StaticStructureSchema;
224
+ export declare var SearchResultItem$: StaticStructureSchema;
225
+ export declare var SearchSchemaElement$: StaticStructureSchema;
226
+ export declare var SearchVectorsInput$: StaticStructureSchema;
227
+ export declare var SearchVectorsOutput$: StaticStructureSchema;
222
228
  export declare var SourceTableDetails$: StaticStructureSchema;
223
229
  export declare var SourceTableFeatureDetails$: StaticStructureSchema;
224
230
  export declare var SSEDescription$: StaticStructureSchema;
@@ -263,6 +269,12 @@ export declare var UpdateTableReplicaAutoScalingInput$: StaticStructureSchema;
263
269
  export declare var UpdateTableReplicaAutoScalingOutput$: StaticStructureSchema;
264
270
  export declare var UpdateTimeToLiveInput$: StaticStructureSchema;
265
271
  export declare var UpdateTimeToLiveOutput$: StaticStructureSchema;
272
+ export declare var VectorAttributeDefinition$: StaticStructureSchema;
273
+ export declare var VectorCapacity$: StaticStructureSchema;
274
+ export declare var VectorIndex$: StaticStructureSchema;
275
+ export declare var VectorIndexDescription$: StaticStructureSchema;
276
+ export declare var VectorIndexInfo$: StaticStructureSchema;
277
+ export declare var VectorIndexUpdate$: StaticStructureSchema;
266
278
  export declare var WarmThroughput$: StaticStructureSchema;
267
279
  export declare var WriteRequest$: StaticStructureSchema;
268
280
  export declare var AttributeValue$: StaticUnionSchema;
@@ -310,6 +322,7 @@ export declare var Query$: StaticOperationSchema;
310
322
  export declare var RestoreTableFromBackup$: StaticOperationSchema;
311
323
  export declare var RestoreTableToPointInTime$: StaticOperationSchema;
312
324
  export declare var Scan$: StaticOperationSchema;
325
+ export declare var SearchVectors$: StaticOperationSchema;
313
326
  export declare var TagResource$: StaticOperationSchema;
314
327
  export declare var TransactGetItems$: StaticOperationSchema;
315
328
  export declare var TransactWriteItems$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dynamodb",
3
- "version": "3.1101.0",
3
+ "version": "3.1103.0",
4
4
  "description": "AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb",
6
6
  "license": "Apache-2.0",
@@ -52,9 +52,9 @@
52
52
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
53
53
  },
54
54
  "dependencies": {
55
- "@aws-sdk/core": "^3.977.4",
56
- "@aws-sdk/credential-provider-node": "^3.972.76",
57
- "@aws-sdk/dynamodb-codec": "^3.973.39",
55
+ "@aws-sdk/core": "^3.977.6",
56
+ "@aws-sdk/credential-provider-node": "^3.972.78",
57
+ "@aws-sdk/dynamodb-codec": "^3.973.41",
58
58
  "@aws-sdk/middleware-endpoint-discovery": "^3.972.27",
59
59
  "@aws-sdk/types": "^3.974.2",
60
60
  "@smithy/core": "^3.31.1",