@aws-sdk/client-s3vectors 3.1142.0 → 3.1144.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.
package/README.md CHANGED
@@ -279,6 +279,13 @@ ListVectors
279
279
  </details>
280
280
  <details>
281
281
  <summary>
282
+ PutVectorBucketDefaultIndexMode
283
+ </summary>
284
+
285
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3vectors/command/PutVectorBucketDefaultIndexModeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3vectors/Interface/PutVectorBucketDefaultIndexModeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3vectors/Interface/PutVectorBucketDefaultIndexModeCommandOutput/)
286
+ </details>
287
+ <details>
288
+ <summary>
282
289
  PutVectorBucketPolicy
283
290
  </summary>
284
291
 
@@ -312,3 +319,10 @@ UntagResource
312
319
 
313
320
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3vectors/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3vectors/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3vectors/Interface/UntagResourceCommandOutput/)
314
321
  </details>
322
+ <details>
323
+ <summary>
324
+ UpdateIndexMode
325
+ </summary>
326
+
327
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3vectors/command/UpdateIndexModeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3vectors/Interface/UpdateIndexModeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3vectors/Interface/UpdateIndexModeCommandOutput/)
328
+ </details>
package/dist-cjs/index.js CHANGED
@@ -67,7 +67,7 @@ const commonParams = {
67
67
  Region: { type: "builtInParams", name: "region" },
68
68
  };
69
69
 
70
- var version = "3.1141.0";
70
+ var version = "3.1143.0";
71
71
  var packageInfo = {
72
72
  version: version};
73
73
 
@@ -346,6 +346,9 @@ const _MC = "MetadataConfiguration";
346
346
  const _NFE = "NotFoundException";
347
347
  const _PIV = "PutInputVector";
348
348
  const _PV = "PutVectors";
349
+ const _PVBDIM = "PutVectorBucketDefaultIndexMode";
350
+ const _PVBDIMI = "PutVectorBucketDefaultIndexModeInput";
351
+ const _PVBDIMO = "PutVectorBucketDefaultIndexModeOutput";
349
352
  const _PVBP = "PutVectorBucketPolicy";
350
353
  const _PVBPI = "PutVectorBucketPolicyInput";
351
354
  const _PVBPO = "PutVectorBucketPolicyOutput";
@@ -364,6 +367,9 @@ const _TMRE = "TooManyRequestsException";
364
367
  const _TR = "TagResource";
365
368
  const _TRI = "TagResourceInput";
366
369
  const _TRO = "TagResourceOutput";
370
+ const _UIM = "UpdateIndexMode";
371
+ const _UIMI = "UpdateIndexModeInput";
372
+ const _UIMO = "UpdateIndexModeOutput";
367
373
  const _UR = "UntagResource";
368
374
  const _URI = "UntagResourceInput";
369
375
  const _URO = "UntagResourceOutput";
@@ -376,6 +382,7 @@ const _VEFL = "ValidationExceptionFieldList";
376
382
  const _c = "client";
377
383
  const _cT = "creationTime";
378
384
  const _d = "dimension";
385
+ const _dIM = "defaultIndexMode";
379
386
  const _dM = "distanceMetric";
380
387
  const _dT = "dataType";
381
388
  const _da = "data";
@@ -390,6 +397,7 @@ const _hE = "httpError";
390
397
  const _hQ = "httpQuery";
391
398
  const _i = "index";
392
399
  const _iA = "indexArn";
400
+ const _iM = "indexMode";
393
401
  const _iN = "indexName";
394
402
  const _in = "indexes";
395
403
  const _k = "keys";
@@ -404,6 +412,7 @@ const _nT = "nextToken";
404
412
  const _p = "policy";
405
413
  const _pa = "path";
406
414
  const _pr = "prefix";
415
+ const _qM = "queryMode";
407
416
  const _qV = "queryVector";
408
417
  const _rA = "resourceArn";
409
418
  const _rD = "returnData";
@@ -621,8 +630,8 @@ var GetVectorsOutput$ = [3, n0, _GVO,
621
630
  ];
622
631
  var Index$ = [3, n0, _I,
623
632
  0,
624
- [_vBN, _iN, _iA, _cT, _dT, _d, _dM, _mC, _eC],
625
- [0, 0, 0, 4, 0, 1, 0, () => MetadataConfiguration$, () => EncryptionConfiguration$], 7
633
+ [_vBN, _iN, _iA, _cT, _dT, _d, _dM, _mC, _eC, _iM],
634
+ [0, 0, 0, 4, 0, 1, 0, () => MetadataConfiguration$, () => EncryptionConfiguration$, 0], 7
626
635
  ];
627
636
  var IndexSummary$ = [3, n0, _IS,
628
637
  0,
@@ -684,6 +693,16 @@ var PutInputVector$ = [3, n0, _PIV,
684
693
  [_ke, _da, _me],
685
694
  [0, () => VectorData$, 15], 2
686
695
  ];
696
+ var PutVectorBucketDefaultIndexModeInput$ = [3, n0, _PVBDIMI,
697
+ 0,
698
+ [_dIM, _vBN, _vBA],
699
+ [0, 0, 0], 1
700
+ ];
701
+ var PutVectorBucketDefaultIndexModeOutput$ = [3, n0, _PVBDIMO,
702
+ 0,
703
+ [],
704
+ []
705
+ ];
687
706
  var PutVectorBucketPolicyInput$ = [3, n0, _PVBPI,
688
707
  0,
689
708
  [_p, _vBN, _vBA],
@@ -711,8 +730,8 @@ var QueryOutputVector$ = [3, n0, _QOV,
711
730
  ];
712
731
  var QueryVectorsInput$ = [3, n0, _QVI,
713
732
  0,
714
- [_tK, _qV, _vBN, _iN, _iA, _f, _rM, _rDe, _nT],
715
- [1, () => VectorData$, 0, 0, 0, 15, 2, 2, 0], 2
733
+ [_tK, _qV, _vBN, _iN, _iA, _f, _qM, _rM, _rDe, _nT],
734
+ [1, () => VectorData$, 0, 0, 0, 15, 0, 2, 2, 0], 2
716
735
  ];
717
736
  var QueryVectorsOutput$ = [3, n0, _QVO,
718
737
  0,
@@ -739,6 +758,16 @@ var UntagResourceOutput$ = [3, n0, _URO,
739
758
  [],
740
759
  []
741
760
  ];
761
+ var UpdateIndexModeInput$ = [3, n0, _UIMI,
762
+ 0,
763
+ [_iM, _vBN, _iN, _iA],
764
+ [0, 0, 0, 0], 1
765
+ ];
766
+ var UpdateIndexModeOutput$ = [3, n0, _UIMO,
767
+ 0,
768
+ [],
769
+ []
770
+ ];
742
771
  var ValidationExceptionField$ = [3, n0, _VEF,
743
772
  0,
744
773
  [_pa, _m],
@@ -746,8 +775,8 @@ var ValidationExceptionField$ = [3, n0, _VEF,
746
775
  ];
747
776
  var VectorBucket$ = [3, n0, _VB,
748
777
  0,
749
- [_vBN, _vBA, _cT, _eC],
750
- [0, 0, 4, () => EncryptionConfiguration$], 3
778
+ [_vBN, _vBA, _cT, _eC, _dIM],
779
+ [0, 0, 4, () => EncryptionConfiguration$, 0], 3
751
780
  ];
752
781
  var VectorBucketSummary$ = [3, n0, _VBS,
753
782
  0,
@@ -822,6 +851,9 @@ var ListVectorBuckets$ = [9, n0, _LVB,
822
851
  var ListVectors$ = [9, n0, _LV,
823
852
  { [_h]: ["POST", "/ListVectors", 200] }, () => ListVectorsInput$, () => ListVectorsOutput$
824
853
  ];
854
+ var PutVectorBucketDefaultIndexMode$ = [9, n0, _PVBDIM,
855
+ { [_h]: ["POST", "/PutVectorBucketDefaultIndexMode", 200] }, () => PutVectorBucketDefaultIndexModeInput$, () => PutVectorBucketDefaultIndexModeOutput$
856
+ ];
825
857
  var PutVectorBucketPolicy$ = [9, n0, _PVBP,
826
858
  { [_h]: ["POST", "/PutVectorBucketPolicy", 200] }, () => PutVectorBucketPolicyInput$, () => PutVectorBucketPolicyOutput$
827
859
  ];
@@ -837,6 +869,9 @@ var TagResource$ = [9, n0, _TR,
837
869
  var UntagResource$ = [9, n0, _UR,
838
870
  { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceInput$, () => UntagResourceOutput$
839
871
  ];
872
+ var UpdateIndexMode$ = [9, n0, _UIM,
873
+ { [_h]: ["POST", "/UpdateIndexMode", 200] }, () => UpdateIndexModeInput$, () => UpdateIndexModeOutput$
874
+ ];
840
875
 
841
876
  const getRuntimeConfig$1 = (config) => {
842
877
  return {
@@ -1030,6 +1065,9 @@ class ListVectorBucketsCommand extends command(_ep0, _mw0, "ListVectorBuckets",
1030
1065
  class ListVectorsCommand extends command(_ep0, _mw0, "ListVectors", ListVectors$) {
1031
1066
  }
1032
1067
 
1068
+ class PutVectorBucketDefaultIndexModeCommand extends command(_ep0, _mw0, "PutVectorBucketDefaultIndexMode", PutVectorBucketDefaultIndexMode$) {
1069
+ }
1070
+
1033
1071
  class PutVectorBucketPolicyCommand extends command(_ep0, _mw0, "PutVectorBucketPolicy", PutVectorBucketPolicy$) {
1034
1072
  }
1035
1073
 
@@ -1045,6 +1083,9 @@ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$
1045
1083
  class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1046
1084
  }
1047
1085
 
1086
+ class UpdateIndexModeCommand extends command(_ep0, _mw0, "UpdateIndexMode", UpdateIndexMode$) {
1087
+ }
1088
+
1048
1089
  const paginateListIndexes = createPaginator(S3VectorsClient, ListIndexesCommand, "nextToken", "nextToken", "maxResults");
1049
1090
 
1050
1091
  const paginateListVectorBuckets = createPaginator(S3VectorsClient, ListVectorBucketsCommand, "nextToken", "nextToken", "maxResults");
@@ -1068,11 +1109,13 @@ const commands = {
1068
1109
  ListTagsForResourceCommand,
1069
1110
  ListVectorBucketsCommand,
1070
1111
  ListVectorsCommand,
1112
+ PutVectorBucketDefaultIndexModeCommand,
1071
1113
  PutVectorBucketPolicyCommand,
1072
1114
  PutVectorsCommand,
1073
1115
  QueryVectorsCommand,
1074
1116
  TagResourceCommand,
1075
1117
  UntagResourceCommand,
1118
+ UpdateIndexModeCommand,
1076
1119
  };
1077
1120
  const paginators = {
1078
1121
  paginateListIndexes,
@@ -1095,6 +1138,10 @@ const SseType = {
1095
1138
  AES256: "AES256",
1096
1139
  AWS_KMS: "aws:kms",
1097
1140
  };
1141
+ const IndexMode = {
1142
+ CLASSIC: "CLASSIC",
1143
+ ENHANCED: "ENHANCED",
1144
+ };
1098
1145
 
1099
1146
  exports.AccessDeniedException = AccessDeniedException;
1100
1147
  exports.AccessDeniedException$ = AccessDeniedException$;
@@ -1145,6 +1192,7 @@ exports.GetVectorsCommand = GetVectorsCommand;
1145
1192
  exports.GetVectorsInput$ = GetVectorsInput$;
1146
1193
  exports.GetVectorsOutput$ = GetVectorsOutput$;
1147
1194
  exports.Index$ = Index$;
1195
+ exports.IndexMode = IndexMode;
1148
1196
  exports.IndexSummary$ = IndexSummary$;
1149
1197
  exports.InternalServerException = InternalServerException;
1150
1198
  exports.InternalServerException$ = InternalServerException$;
@@ -1177,6 +1225,10 @@ exports.MetadataConfiguration$ = MetadataConfiguration$;
1177
1225
  exports.NotFoundException = NotFoundException;
1178
1226
  exports.NotFoundException$ = NotFoundException$;
1179
1227
  exports.PutInputVector$ = PutInputVector$;
1228
+ exports.PutVectorBucketDefaultIndexMode$ = PutVectorBucketDefaultIndexMode$;
1229
+ exports.PutVectorBucketDefaultIndexModeCommand = PutVectorBucketDefaultIndexModeCommand;
1230
+ exports.PutVectorBucketDefaultIndexModeInput$ = PutVectorBucketDefaultIndexModeInput$;
1231
+ exports.PutVectorBucketDefaultIndexModeOutput$ = PutVectorBucketDefaultIndexModeOutput$;
1180
1232
  exports.PutVectorBucketPolicy$ = PutVectorBucketPolicy$;
1181
1233
  exports.PutVectorBucketPolicyCommand = PutVectorBucketPolicyCommand;
1182
1234
  exports.PutVectorBucketPolicyInput$ = PutVectorBucketPolicyInput$;
@@ -1211,6 +1263,10 @@ exports.UntagResource$ = UntagResource$;
1211
1263
  exports.UntagResourceCommand = UntagResourceCommand;
1212
1264
  exports.UntagResourceInput$ = UntagResourceInput$;
1213
1265
  exports.UntagResourceOutput$ = UntagResourceOutput$;
1266
+ exports.UpdateIndexMode$ = UpdateIndexMode$;
1267
+ exports.UpdateIndexModeCommand = UpdateIndexModeCommand;
1268
+ exports.UpdateIndexModeInput$ = UpdateIndexModeInput$;
1269
+ exports.UpdateIndexModeOutput$ = UpdateIndexModeOutput$;
1214
1270
  exports.ValidationException = ValidationException;
1215
1271
  exports.ValidationException$ = ValidationException$;
1216
1272
  exports.ValidationExceptionField$ = ValidationExceptionField$;
@@ -13,11 +13,13 @@ import { ListIndexesCommand, } from "./commands/ListIndexesCommand";
13
13
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
14
14
  import { ListVectorBucketsCommand, } from "./commands/ListVectorBucketsCommand";
15
15
  import { ListVectorsCommand, } from "./commands/ListVectorsCommand";
16
+ import { PutVectorBucketDefaultIndexModeCommand, } from "./commands/PutVectorBucketDefaultIndexModeCommand";
16
17
  import { PutVectorBucketPolicyCommand, } from "./commands/PutVectorBucketPolicyCommand";
17
18
  import { PutVectorsCommand, } from "./commands/PutVectorsCommand";
18
19
  import { QueryVectorsCommand, } from "./commands/QueryVectorsCommand";
19
20
  import { TagResourceCommand, } from "./commands/TagResourceCommand";
20
21
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
22
+ import { UpdateIndexModeCommand, } from "./commands/UpdateIndexModeCommand";
21
23
  import { paginateListIndexes } from "./pagination/ListIndexesPaginator";
22
24
  import { paginateListVectorBuckets } from "./pagination/ListVectorBucketsPaginator";
23
25
  import { paginateListVectors } from "./pagination/ListVectorsPaginator";
@@ -38,11 +40,13 @@ const commands = {
38
40
  ListTagsForResourceCommand,
39
41
  ListVectorBucketsCommand,
40
42
  ListVectorsCommand,
43
+ PutVectorBucketDefaultIndexModeCommand,
41
44
  PutVectorBucketPolicyCommand,
42
45
  PutVectorsCommand,
43
46
  QueryVectorsCommand,
44
47
  TagResourceCommand,
45
48
  UntagResourceCommand,
49
+ UpdateIndexModeCommand,
46
50
  };
47
51
  const paginators = {
48
52
  paginateListIndexes,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { PutVectorBucketDefaultIndexMode$ } from "../schemas/schemas_0";
3
+ export class PutVectorBucketDefaultIndexModeCommand extends command(_ep0, _mw0, "PutVectorBucketDefaultIndexMode", PutVectorBucketDefaultIndexMode$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateIndexMode$ } from "../schemas/schemas_0";
3
+ export class UpdateIndexModeCommand extends command(_ep0, _mw0, "UpdateIndexMode", UpdateIndexMode$) {
4
+ }
@@ -12,8 +12,10 @@ export * from "./ListIndexesCommand";
12
12
  export * from "./ListTagsForResourceCommand";
13
13
  export * from "./ListVectorBucketsCommand";
14
14
  export * from "./ListVectorsCommand";
15
+ export * from "./PutVectorBucketDefaultIndexModeCommand";
15
16
  export * from "./PutVectorBucketPolicyCommand";
16
17
  export * from "./PutVectorsCommand";
17
18
  export * from "./QueryVectorsCommand";
18
19
  export * from "./TagResourceCommand";
19
20
  export * from "./UntagResourceCommand";
21
+ export * from "./UpdateIndexModeCommand";
@@ -9,3 +9,7 @@ export const SseType = {
9
9
  AES256: "AES256",
10
10
  AWS_KMS: "aws:kms",
11
11
  };
12
+ export const IndexMode = {
13
+ CLASSIC: "CLASSIC",
14
+ ENHANCED: "ENHANCED",
15
+ };
@@ -60,6 +60,9 @@ const _MC = "MetadataConfiguration";
60
60
  const _NFE = "NotFoundException";
61
61
  const _PIV = "PutInputVector";
62
62
  const _PV = "PutVectors";
63
+ const _PVBDIM = "PutVectorBucketDefaultIndexMode";
64
+ const _PVBDIMI = "PutVectorBucketDefaultIndexModeInput";
65
+ const _PVBDIMO = "PutVectorBucketDefaultIndexModeOutput";
63
66
  const _PVBP = "PutVectorBucketPolicy";
64
67
  const _PVBPI = "PutVectorBucketPolicyInput";
65
68
  const _PVBPO = "PutVectorBucketPolicyOutput";
@@ -78,6 +81,9 @@ const _TMRE = "TooManyRequestsException";
78
81
  const _TR = "TagResource";
79
82
  const _TRI = "TagResourceInput";
80
83
  const _TRO = "TagResourceOutput";
84
+ const _UIM = "UpdateIndexMode";
85
+ const _UIMI = "UpdateIndexModeInput";
86
+ const _UIMO = "UpdateIndexModeOutput";
81
87
  const _UR = "UntagResource";
82
88
  const _URI = "UntagResourceInput";
83
89
  const _URO = "UntagResourceOutput";
@@ -90,6 +96,7 @@ const _VEFL = "ValidationExceptionFieldList";
90
96
  const _c = "client";
91
97
  const _cT = "creationTime";
92
98
  const _d = "dimension";
99
+ const _dIM = "defaultIndexMode";
93
100
  const _dM = "distanceMetric";
94
101
  const _dT = "dataType";
95
102
  const _da = "data";
@@ -104,6 +111,7 @@ const _hE = "httpError";
104
111
  const _hQ = "httpQuery";
105
112
  const _i = "index";
106
113
  const _iA = "indexArn";
114
+ const _iM = "indexMode";
107
115
  const _iN = "indexName";
108
116
  const _in = "indexes";
109
117
  const _k = "keys";
@@ -118,6 +126,7 @@ const _nT = "nextToken";
118
126
  const _p = "policy";
119
127
  const _pa = "path";
120
128
  const _pr = "prefix";
129
+ const _qM = "queryMode";
121
130
  const _qV = "queryVector";
122
131
  const _rA = "resourceArn";
123
132
  const _rD = "returnData";
@@ -338,8 +347,8 @@ export var GetVectorsOutput$ = [3, n0, _GVO,
338
347
  ];
339
348
  export var Index$ = [3, n0, _I,
340
349
  0,
341
- [_vBN, _iN, _iA, _cT, _dT, _d, _dM, _mC, _eC],
342
- [0, 0, 0, 4, 0, 1, 0, () => MetadataConfiguration$, () => EncryptionConfiguration$], 7
350
+ [_vBN, _iN, _iA, _cT, _dT, _d, _dM, _mC, _eC, _iM],
351
+ [0, 0, 0, 4, 0, 1, 0, () => MetadataConfiguration$, () => EncryptionConfiguration$, 0], 7
343
352
  ];
344
353
  export var IndexSummary$ = [3, n0, _IS,
345
354
  0,
@@ -401,6 +410,16 @@ export var PutInputVector$ = [3, n0, _PIV,
401
410
  [_ke, _da, _me],
402
411
  [0, () => VectorData$, 15], 2
403
412
  ];
413
+ export var PutVectorBucketDefaultIndexModeInput$ = [3, n0, _PVBDIMI,
414
+ 0,
415
+ [_dIM, _vBN, _vBA],
416
+ [0, 0, 0], 1
417
+ ];
418
+ export var PutVectorBucketDefaultIndexModeOutput$ = [3, n0, _PVBDIMO,
419
+ 0,
420
+ [],
421
+ []
422
+ ];
404
423
  export var PutVectorBucketPolicyInput$ = [3, n0, _PVBPI,
405
424
  0,
406
425
  [_p, _vBN, _vBA],
@@ -428,8 +447,8 @@ export var QueryOutputVector$ = [3, n0, _QOV,
428
447
  ];
429
448
  export var QueryVectorsInput$ = [3, n0, _QVI,
430
449
  0,
431
- [_tK, _qV, _vBN, _iN, _iA, _f, _rM, _rDe, _nT],
432
- [1, () => VectorData$, 0, 0, 0, 15, 2, 2, 0], 2
450
+ [_tK, _qV, _vBN, _iN, _iA, _f, _qM, _rM, _rDe, _nT],
451
+ [1, () => VectorData$, 0, 0, 0, 15, 0, 2, 2, 0], 2
433
452
  ];
434
453
  export var QueryVectorsOutput$ = [3, n0, _QVO,
435
454
  0,
@@ -456,6 +475,16 @@ export var UntagResourceOutput$ = [3, n0, _URO,
456
475
  [],
457
476
  []
458
477
  ];
478
+ export var UpdateIndexModeInput$ = [3, n0, _UIMI,
479
+ 0,
480
+ [_iM, _vBN, _iN, _iA],
481
+ [0, 0, 0, 0], 1
482
+ ];
483
+ export var UpdateIndexModeOutput$ = [3, n0, _UIMO,
484
+ 0,
485
+ [],
486
+ []
487
+ ];
459
488
  export var ValidationExceptionField$ = [3, n0, _VEF,
460
489
  0,
461
490
  [_pa, _m],
@@ -463,8 +492,8 @@ export var ValidationExceptionField$ = [3, n0, _VEF,
463
492
  ];
464
493
  export var VectorBucket$ = [3, n0, _VB,
465
494
  0,
466
- [_vBN, _vBA, _cT, _eC],
467
- [0, 0, 4, () => EncryptionConfiguration$], 3
495
+ [_vBN, _vBA, _cT, _eC, _dIM],
496
+ [0, 0, 4, () => EncryptionConfiguration$, 0], 3
468
497
  ];
469
498
  export var VectorBucketSummary$ = [3, n0, _VBS,
470
499
  0,
@@ -545,6 +574,9 @@ export var ListVectorBuckets$ = [9, n0, _LVB,
545
574
  export var ListVectors$ = [9, n0, _LV,
546
575
  { [_h]: ["POST", "/ListVectors", 200] }, () => ListVectorsInput$, () => ListVectorsOutput$
547
576
  ];
577
+ export var PutVectorBucketDefaultIndexMode$ = [9, n0, _PVBDIM,
578
+ { [_h]: ["POST", "/PutVectorBucketDefaultIndexMode", 200] }, () => PutVectorBucketDefaultIndexModeInput$, () => PutVectorBucketDefaultIndexModeOutput$
579
+ ];
548
580
  export var PutVectorBucketPolicy$ = [9, n0, _PVBP,
549
581
  { [_h]: ["POST", "/PutVectorBucketPolicy", 200] }, () => PutVectorBucketPolicyInput$, () => PutVectorBucketPolicyOutput$
550
582
  ];
@@ -560,3 +592,6 @@ export var TagResource$ = [9, n0, _TR,
560
592
  export var UntagResource$ = [9, n0, _UR,
561
593
  { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceInput$, () => UntagResourceOutput$
562
594
  ];
595
+ export var UpdateIndexMode$ = [9, n0, _UIM,
596
+ { [_h]: ["POST", "/UpdateIndexMode", 200] }, () => UpdateIndexModeInput$, () => UpdateIndexModeOutput$
597
+ ];
@@ -13,11 +13,13 @@ import { type ListIndexesCommandInput, type ListIndexesCommandOutput } from "./c
13
13
  import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
14
14
  import { type ListVectorBucketsCommandInput, type ListVectorBucketsCommandOutput } from "./commands/ListVectorBucketsCommand";
15
15
  import { type ListVectorsCommandInput, type ListVectorsCommandOutput } from "./commands/ListVectorsCommand";
16
+ import { type PutVectorBucketDefaultIndexModeCommandInput, type PutVectorBucketDefaultIndexModeCommandOutput } from "./commands/PutVectorBucketDefaultIndexModeCommand";
16
17
  import { type PutVectorBucketPolicyCommandInput, type PutVectorBucketPolicyCommandOutput } from "./commands/PutVectorBucketPolicyCommand";
17
18
  import { type PutVectorsCommandInput, type PutVectorsCommandOutput } from "./commands/PutVectorsCommand";
18
19
  import { type QueryVectorsCommandInput, type QueryVectorsCommandOutput } from "./commands/QueryVectorsCommand";
19
20
  import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
20
21
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
+ import { type UpdateIndexModeCommandInput, type UpdateIndexModeCommandOutput } from "./commands/UpdateIndexModeCommand";
21
23
  import { S3VectorsClient } from "./S3VectorsClient";
22
24
  /**
23
25
  * @public
@@ -119,6 +121,12 @@ export interface S3Vectors {
119
121
  listVectors(args: ListVectorsCommandInput, options?: S3VectorsRequestOptions): Promise<ListVectorsCommandOutput>;
120
122
  listVectors(args: ListVectorsCommandInput, cb: (err: any, data?: ListVectorsCommandOutput) => void): void;
121
123
  listVectors(args: ListVectorsCommandInput, options: S3VectorsRequestOptions, cb: (err: any, data?: ListVectorsCommandOutput) => void): void;
124
+ /**
125
+ * @see {@link PutVectorBucketDefaultIndexModeCommand}
126
+ */
127
+ putVectorBucketDefaultIndexMode(args: PutVectorBucketDefaultIndexModeCommandInput, options?: S3VectorsRequestOptions): Promise<PutVectorBucketDefaultIndexModeCommandOutput>;
128
+ putVectorBucketDefaultIndexMode(args: PutVectorBucketDefaultIndexModeCommandInput, cb: (err: any, data?: PutVectorBucketDefaultIndexModeCommandOutput) => void): void;
129
+ putVectorBucketDefaultIndexMode(args: PutVectorBucketDefaultIndexModeCommandInput, options: S3VectorsRequestOptions, cb: (err: any, data?: PutVectorBucketDefaultIndexModeCommandOutput) => void): void;
122
130
  /**
123
131
  * @see {@link PutVectorBucketPolicyCommand}
124
132
  */
@@ -149,6 +157,12 @@ export interface S3Vectors {
149
157
  untagResource(args: UntagResourceCommandInput, options?: S3VectorsRequestOptions): Promise<UntagResourceCommandOutput>;
150
158
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
151
159
  untagResource(args: UntagResourceCommandInput, options: S3VectorsRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
160
+ /**
161
+ * @see {@link UpdateIndexModeCommand}
162
+ */
163
+ updateIndexMode(args: UpdateIndexModeCommandInput, options?: S3VectorsRequestOptions): Promise<UpdateIndexModeCommandOutput>;
164
+ updateIndexMode(args: UpdateIndexModeCommandInput, cb: (err: any, data?: UpdateIndexModeCommandOutput) => void): void;
165
+ updateIndexMode(args: UpdateIndexModeCommandInput, options: S3VectorsRequestOptions, cb: (err: any, data?: UpdateIndexModeCommandOutput) => void): void;
152
166
  /**
153
167
  * @see {@link ListIndexesCommand}
154
168
  * @param args - command input.
@@ -20,22 +20,24 @@ import type { ListIndexesCommandInput, ListIndexesCommandOutput } from "./comman
20
20
  import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
21
21
  import type { ListVectorBucketsCommandInput, ListVectorBucketsCommandOutput } from "./commands/ListVectorBucketsCommand";
22
22
  import type { ListVectorsCommandInput, ListVectorsCommandOutput } from "./commands/ListVectorsCommand";
23
+ import type { PutVectorBucketDefaultIndexModeCommandInput, PutVectorBucketDefaultIndexModeCommandOutput } from "./commands/PutVectorBucketDefaultIndexModeCommand";
23
24
  import type { PutVectorBucketPolicyCommandInput, PutVectorBucketPolicyCommandOutput } from "./commands/PutVectorBucketPolicyCommand";
24
25
  import type { PutVectorsCommandInput, PutVectorsCommandOutput } from "./commands/PutVectorsCommand";
25
26
  import type { QueryVectorsCommandInput, QueryVectorsCommandOutput } from "./commands/QueryVectorsCommand";
26
27
  import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
27
28
  import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
29
+ import type { UpdateIndexModeCommandInput, UpdateIndexModeCommandOutput } from "./commands/UpdateIndexModeCommand";
28
30
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
29
31
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
30
32
  export { __Client };
31
33
  /**
32
34
  * @public
33
35
  */
34
- export type ServiceInputTypes = CreateIndexCommandInput | CreateVectorBucketCommandInput | DeleteIndexCommandInput | DeleteVectorBucketCommandInput | DeleteVectorBucketPolicyCommandInput | DeleteVectorsCommandInput | GetIndexCommandInput | GetVectorBucketCommandInput | GetVectorBucketPolicyCommandInput | GetVectorsCommandInput | ListIndexesCommandInput | ListTagsForResourceCommandInput | ListVectorBucketsCommandInput | ListVectorsCommandInput | PutVectorBucketPolicyCommandInput | PutVectorsCommandInput | QueryVectorsCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
36
+ export type ServiceInputTypes = CreateIndexCommandInput | CreateVectorBucketCommandInput | DeleteIndexCommandInput | DeleteVectorBucketCommandInput | DeleteVectorBucketPolicyCommandInput | DeleteVectorsCommandInput | GetIndexCommandInput | GetVectorBucketCommandInput | GetVectorBucketPolicyCommandInput | GetVectorsCommandInput | ListIndexesCommandInput | ListTagsForResourceCommandInput | ListVectorBucketsCommandInput | ListVectorsCommandInput | PutVectorBucketDefaultIndexModeCommandInput | PutVectorBucketPolicyCommandInput | PutVectorsCommandInput | QueryVectorsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateIndexModeCommandInput;
35
37
  /**
36
38
  * @public
37
39
  */
38
- export type ServiceOutputTypes = CreateIndexCommandOutput | CreateVectorBucketCommandOutput | DeleteIndexCommandOutput | DeleteVectorBucketCommandOutput | DeleteVectorBucketPolicyCommandOutput | DeleteVectorsCommandOutput | GetIndexCommandOutput | GetVectorBucketCommandOutput | GetVectorBucketPolicyCommandOutput | GetVectorsCommandOutput | ListIndexesCommandOutput | ListTagsForResourceCommandOutput | ListVectorBucketsCommandOutput | ListVectorsCommandOutput | PutVectorBucketPolicyCommandOutput | PutVectorsCommandOutput | QueryVectorsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
40
+ export type ServiceOutputTypes = CreateIndexCommandOutput | CreateVectorBucketCommandOutput | DeleteIndexCommandOutput | DeleteVectorBucketCommandOutput | DeleteVectorBucketPolicyCommandOutput | DeleteVectorsCommandOutput | GetIndexCommandOutput | GetVectorBucketCommandOutput | GetVectorBucketPolicyCommandOutput | GetVectorsCommandOutput | ListIndexesCommandOutput | ListTagsForResourceCommandOutput | ListVectorBucketsCommandOutput | ListVectorsCommandOutput | PutVectorBucketDefaultIndexModeCommandOutput | PutVectorBucketPolicyCommandOutput | PutVectorsCommandOutput | QueryVectorsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateIndexModeCommandOutput;
39
41
  /**
40
42
  * @public
41
43
  */
@@ -58,6 +58,7 @@ declare const GetIndexCommand_base: {
58
58
  * // sseType: "AES256" || "aws:kms",
59
59
  * // kmsKeyArn: "STRING_VALUE",
60
60
  * // },
61
+ * // indexMode: "CLASSIC" || "ENHANCED",
61
62
  * // },
62
63
  * // };
63
64
  *
@@ -48,6 +48,7 @@ declare const GetVectorBucketCommand_base: {
48
48
  * // sseType: "AES256" || "aws:kms",
49
49
  * // kmsKeyArn: "STRING_VALUE",
50
50
  * // },
51
+ * // defaultIndexMode: "CLASSIC" || "ENHANCED",
51
52
  * // },
52
53
  * // };
53
54
  *
@@ -0,0 +1,92 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { PutVectorBucketDefaultIndexModeInput, PutVectorBucketDefaultIndexModeOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link PutVectorBucketDefaultIndexModeCommand}.
11
+ */
12
+ export interface PutVectorBucketDefaultIndexModeCommandInput extends PutVectorBucketDefaultIndexModeInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link PutVectorBucketDefaultIndexModeCommand}.
18
+ */
19
+ export interface PutVectorBucketDefaultIndexModeCommandOutput extends PutVectorBucketDefaultIndexModeOutput, __MetadataBearer {
20
+ }
21
+ declare const PutVectorBucketDefaultIndexModeCommand_base: {
22
+ new (input: PutVectorBucketDefaultIndexModeCommandInput): import("@smithy/core/client").CommandImpl<PutVectorBucketDefaultIndexModeCommandInput, PutVectorBucketDefaultIndexModeCommandOutput, import("..").S3VectorsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: PutVectorBucketDefaultIndexModeCommandInput): import("@smithy/core/client").CommandImpl<PutVectorBucketDefaultIndexModeCommandInput, PutVectorBucketDefaultIndexModeCommandOutput, import("..").S3VectorsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Updates the default index mode for a vector bucket. The updated default applies to vector indexes that you create after the request succeeds. The operation doesn't change existing vector indexes. To specify the vector bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).</p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3vectors:PutVectorBucketDefaultIndexMode</code> permission to use this operation.</p> </dd> </dl>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { S3VectorsClient, PutVectorBucketDefaultIndexModeCommand } from "@aws-sdk/client-s3vectors"; // ES Modules import
32
+ * // const { S3VectorsClient, PutVectorBucketDefaultIndexModeCommand } = require("@aws-sdk/client-s3vectors"); // CommonJS import
33
+ * // import type { S3VectorsClientConfig } from "@aws-sdk/client-s3vectors";
34
+ * const config = {}; // type is S3VectorsClientConfig
35
+ * const client = new S3VectorsClient(config);
36
+ * const input = { // PutVectorBucketDefaultIndexModeInput
37
+ * vectorBucketName: "STRING_VALUE",
38
+ * vectorBucketArn: "STRING_VALUE",
39
+ * defaultIndexMode: "CLASSIC" || "ENHANCED", // required
40
+ * };
41
+ * const command = new PutVectorBucketDefaultIndexModeCommand(input);
42
+ * const response = await client.send(command);
43
+ * // {};
44
+ *
45
+ * ```
46
+ *
47
+ * @param PutVectorBucketDefaultIndexModeCommandInput - {@link PutVectorBucketDefaultIndexModeCommandInput}
48
+ * @returns {@link PutVectorBucketDefaultIndexModeCommandOutput}
49
+ * @see {@link PutVectorBucketDefaultIndexModeCommandInput} for command's `input` shape.
50
+ * @see {@link PutVectorBucketDefaultIndexModeCommandOutput} for command's `response` shape.
51
+ * @see {@link S3VectorsClientResolvedConfig | config} for S3VectorsClient's `config` shape.
52
+ *
53
+ * @throws {@link NotFoundException} (client fault)
54
+ * <p>The request was rejected because the specified resource can't be found.</p>
55
+ *
56
+ * @throws {@link ServiceUnavailableException} (server fault)
57
+ * <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
58
+ *
59
+ * @throws {@link AccessDeniedException} (client fault)
60
+ * <p>Access denied.</p>
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>The request failed due to an internal server error.</p>
64
+ *
65
+ * @throws {@link RequestTimeoutException} (client fault)
66
+ * <p>The request timed out. Retry your request.</p>
67
+ *
68
+ * @throws {@link TooManyRequestsException} (client fault)
69
+ * <p>The request was denied due to request throttling.</p>
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ * <p>The requested action isn't valid.</p>
73
+ *
74
+ * @throws {@link S3VectorsServiceException}
75
+ * <p>Base exception class for all service exceptions from S3Vectors service.</p>
76
+ *
77
+ *
78
+ * @public
79
+ */
80
+ export declare class PutVectorBucketDefaultIndexModeCommand extends PutVectorBucketDefaultIndexModeCommand_base {
81
+ /** @internal type navigation helper, not in runtime. */
82
+ protected static __types: {
83
+ api: {
84
+ input: PutVectorBucketDefaultIndexModeInput;
85
+ output: {};
86
+ };
87
+ sdk: {
88
+ input: PutVectorBucketDefaultIndexModeCommandInput;
89
+ output: PutVectorBucketDefaultIndexModeCommandOutput;
90
+ };
91
+ };
92
+ }
@@ -44,6 +44,7 @@ declare const QueryVectorsCommand_base: {
44
44
  * ],
45
45
  * },
46
46
  * filter: "DOCUMENT_VALUE",
47
+ * queryMode: "CLASSIC" || "ENHANCED",
47
48
  * returnMetadata: true || false,
48
49
  * returnDistance: true || false,
49
50
  * nextToken: "STRING_VALUE",
@@ -0,0 +1,93 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { UpdateIndexModeInput, UpdateIndexModeOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link UpdateIndexModeCommand}.
11
+ */
12
+ export interface UpdateIndexModeCommandInput extends UpdateIndexModeInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link UpdateIndexModeCommand}.
18
+ */
19
+ export interface UpdateIndexModeCommandOutput extends UpdateIndexModeOutput, __MetadataBearer {
20
+ }
21
+ declare const UpdateIndexModeCommand_base: {
22
+ new (input: UpdateIndexModeCommandInput): import("@smithy/core/client").CommandImpl<UpdateIndexModeCommandInput, UpdateIndexModeCommandOutput, import("..").S3VectorsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UpdateIndexModeCommandInput): import("@smithy/core/client").CommandImpl<UpdateIndexModeCommandInput, UpdateIndexModeCommandOutput, import("..").S3VectorsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Updates the mode for an existing vector index. You can set the mode to <code>ENHANCED</code> for any vector index. You can set the mode to <code>CLASSIC</code> only for a vector index in a vector bucket created before September 30, 2026. This operation doesn't change the default index mode of the vector bucket or the mode of other vector indexes. Specify the vector index by using its Amazon Resource Name (ARN) or both the vector bucket name and vector index name.</p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3vectors:UpdateIndexMode</code> permission to use this operation.</p> </dd> </dl>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { S3VectorsClient, UpdateIndexModeCommand } from "@aws-sdk/client-s3vectors"; // ES Modules import
32
+ * // const { S3VectorsClient, UpdateIndexModeCommand } = require("@aws-sdk/client-s3vectors"); // CommonJS import
33
+ * // import type { S3VectorsClientConfig } from "@aws-sdk/client-s3vectors";
34
+ * const config = {}; // type is S3VectorsClientConfig
35
+ * const client = new S3VectorsClient(config);
36
+ * const input = { // UpdateIndexModeInput
37
+ * vectorBucketName: "STRING_VALUE",
38
+ * indexName: "STRING_VALUE",
39
+ * indexArn: "STRING_VALUE",
40
+ * indexMode: "CLASSIC" || "ENHANCED", // required
41
+ * };
42
+ * const command = new UpdateIndexModeCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param UpdateIndexModeCommandInput - {@link UpdateIndexModeCommandInput}
49
+ * @returns {@link UpdateIndexModeCommandOutput}
50
+ * @see {@link UpdateIndexModeCommandInput} for command's `input` shape.
51
+ * @see {@link UpdateIndexModeCommandOutput} for command's `response` shape.
52
+ * @see {@link S3VectorsClientResolvedConfig | config} for S3VectorsClient's `config` shape.
53
+ *
54
+ * @throws {@link NotFoundException} (client fault)
55
+ * <p>The request was rejected because the specified resource can't be found.</p>
56
+ *
57
+ * @throws {@link ServiceUnavailableException} (server fault)
58
+ * <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
59
+ *
60
+ * @throws {@link AccessDeniedException} (client fault)
61
+ * <p>Access denied.</p>
62
+ *
63
+ * @throws {@link InternalServerException} (server fault)
64
+ * <p>The request failed due to an internal server error.</p>
65
+ *
66
+ * @throws {@link RequestTimeoutException} (client fault)
67
+ * <p>The request timed out. Retry your request.</p>
68
+ *
69
+ * @throws {@link TooManyRequestsException} (client fault)
70
+ * <p>The request was denied due to request throttling.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The requested action isn't valid.</p>
74
+ *
75
+ * @throws {@link S3VectorsServiceException}
76
+ * <p>Base exception class for all service exceptions from S3Vectors service.</p>
77
+ *
78
+ *
79
+ * @public
80
+ */
81
+ export declare class UpdateIndexModeCommand extends UpdateIndexModeCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: UpdateIndexModeInput;
86
+ output: {};
87
+ };
88
+ sdk: {
89
+ input: UpdateIndexModeCommandInput;
90
+ output: UpdateIndexModeCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -12,8 +12,10 @@ export * from "./ListIndexesCommand";
12
12
  export * from "./ListTagsForResourceCommand";
13
13
  export * from "./ListVectorBucketsCommand";
14
14
  export * from "./ListVectorsCommand";
15
+ export * from "./PutVectorBucketDefaultIndexModeCommand";
15
16
  export * from "./PutVectorBucketPolicyCommand";
16
17
  export * from "./PutVectorsCommand";
17
18
  export * from "./QueryVectorsCommand";
18
19
  export * from "./TagResourceCommand";
19
20
  export * from "./UntagResourceCommand";
21
+ export * from "./UpdateIndexModeCommand";
@@ -33,3 +33,15 @@ export declare const SseType: {
33
33
  * @public
34
34
  */
35
35
  export type SseType = (typeof SseType)[keyof typeof SseType];
36
+ /**
37
+ * @public
38
+ * @enum
39
+ */
40
+ export declare const IndexMode: {
41
+ readonly CLASSIC: "CLASSIC";
42
+ readonly ENHANCED: "ENHANCED";
43
+ };
44
+ /**
45
+ * @public
46
+ */
47
+ export type IndexMode = (typeof IndexMode)[keyof typeof IndexMode];
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { DataType, DistanceMetric, SseType } from "./enums";
2
+ import type { DataType, DistanceMetric, IndexMode, SseType } from "./enums";
3
3
  /**
4
4
  * <p>The encryption configuration for a vector bucket or index. By default, if you don't specify, all new vectors in Amazon S3 vector buckets use server-side encryption with Amazon S3 managed keys (SSE-S3), specifically <code>AES256</code>. You can optionally override bucket level encryption settings, and set a specific encryption configuration for a vector index at the time of index creation.</p>
5
5
  * @public
@@ -298,6 +298,11 @@ export interface Index {
298
298
  * @public
299
299
  */
300
300
  encryptionConfiguration?: EncryptionConfiguration | undefined;
301
+ /**
302
+ * <p>The mode that determines how the vector index processes queries.</p> <p>Valid values:</p> <ul> <li> <p> <code>CLASSIC</code> - Applies metadata filters during the vector search.</p> </li> <li> <p> <code>ENHANCED</code> - Applies metadata filters before the vector search.</p> </li> </ul>
303
+ * @public
304
+ */
305
+ indexMode?: IndexMode | undefined;
301
306
  }
302
307
  /**
303
308
  * @public
@@ -403,6 +408,11 @@ export interface VectorBucket {
403
408
  * @public
404
409
  */
405
410
  encryptionConfiguration?: EncryptionConfiguration | undefined;
411
+ /**
412
+ * <p>The mode that is automatically assigned to new vector indexes in the vector bucket. Changing the default index mode doesn't affect existing vector indexes.</p>
413
+ * @public
414
+ */
415
+ defaultIndexMode?: IndexMode | undefined;
406
416
  }
407
417
  /**
408
418
  * @public
@@ -555,6 +565,36 @@ export interface ListIndexesOutput {
555
565
  */
556
566
  indexes: IndexSummary[] | undefined;
557
567
  }
568
+ /**
569
+ * @public
570
+ */
571
+ export interface UpdateIndexModeInput {
572
+ /**
573
+ * <p>The name of the vector bucket that contains the vector index.</p>
574
+ * @public
575
+ */
576
+ vectorBucketName?: string | undefined;
577
+ /**
578
+ * <p>The name of the vector index to update.</p>
579
+ * @public
580
+ */
581
+ indexName?: string | undefined;
582
+ /**
583
+ * <p>The Amazon Resource Name (ARN) of the vector index to update.</p>
584
+ * @public
585
+ */
586
+ indexArn?: string | undefined;
587
+ /**
588
+ * <p>The new mode for the vector index.</p> <p>Valid values:</p> <ul> <li> <p> <code>CLASSIC</code> - Applies metadata filters during the vector search. You can specify <code>CLASSIC</code> only for a vector index in a vector bucket created before September 30, 2026.</p> </li> <li> <p> <code>ENHANCED</code> - Applies metadata filters before the vector search.</p> </li> </ul>
589
+ * @public
590
+ */
591
+ indexMode: IndexMode | undefined;
592
+ }
593
+ /**
594
+ * @public
595
+ */
596
+ export interface UpdateIndexModeOutput {
597
+ }
558
598
  /**
559
599
  * @public
560
600
  */
@@ -726,6 +766,11 @@ export interface QueryVectorsInput {
726
766
  * @public
727
767
  */
728
768
  filter?: __DocumentType | undefined;
769
+ /**
770
+ * <p>The mode to use to process the query. If you don't specify a query mode, the operation uses the mode that's currently configured for the vector index.</p> <p>Valid values:</p> <ul> <li> <p> <code>CLASSIC</code> - Applies metadata filters during the vector search. You can't specify <code>CLASSIC</code> for an <code>ENHANCED</code> index.</p> </li> <li> <p> <code>ENHANCED</code> - Applies metadata filters before the vector search.</p> </li> </ul>
771
+ * @public
772
+ */
773
+ queryMode?: IndexMode | undefined;
729
774
  /**
730
775
  * <p>Indicates whether to include metadata in the response. The default value is <code>false</code>.</p>
731
776
  * @public
@@ -859,6 +904,31 @@ export interface ListVectorBucketsOutput {
859
904
  */
860
905
  vectorBuckets: VectorBucketSummary[] | undefined;
861
906
  }
907
+ /**
908
+ * @public
909
+ */
910
+ export interface PutVectorBucketDefaultIndexModeInput {
911
+ /**
912
+ * <p>The name of the vector bucket to update.</p>
913
+ * @public
914
+ */
915
+ vectorBucketName?: string | undefined;
916
+ /**
917
+ * <p>The Amazon Resource Name (ARN) of the vector bucket to update.</p>
918
+ * @public
919
+ */
920
+ vectorBucketArn?: string | undefined;
921
+ /**
922
+ * <p>The default mode to assign to new vector indexes in the vector bucket. This change doesn't affect existing vector indexes.</p>
923
+ * @public
924
+ */
925
+ defaultIndexMode: IndexMode | undefined;
926
+ }
927
+ /**
928
+ * @public
929
+ */
930
+ export interface PutVectorBucketDefaultIndexModeOutput {
931
+ }
862
932
  /**
863
933
  * @public
864
934
  */
@@ -55,6 +55,8 @@ export declare var ListVectorsInput$: StaticStructureSchema;
55
55
  export declare var ListVectorsOutput$: StaticStructureSchema;
56
56
  export declare var MetadataConfiguration$: StaticStructureSchema;
57
57
  export declare var PutInputVector$: StaticStructureSchema;
58
+ export declare var PutVectorBucketDefaultIndexModeInput$: StaticStructureSchema;
59
+ export declare var PutVectorBucketDefaultIndexModeOutput$: StaticStructureSchema;
58
60
  export declare var PutVectorBucketPolicyInput$: StaticStructureSchema;
59
61
  export declare var PutVectorBucketPolicyOutput$: StaticStructureSchema;
60
62
  export declare var PutVectorsInput$: StaticStructureSchema;
@@ -66,6 +68,8 @@ export declare var TagResourceInput$: StaticStructureSchema;
66
68
  export declare var TagResourceOutput$: StaticStructureSchema;
67
69
  export declare var UntagResourceInput$: StaticStructureSchema;
68
70
  export declare var UntagResourceOutput$: StaticStructureSchema;
71
+ export declare var UpdateIndexModeInput$: StaticStructureSchema;
72
+ export declare var UpdateIndexModeOutput$: StaticStructureSchema;
69
73
  export declare var ValidationExceptionField$: StaticStructureSchema;
70
74
  export declare var VectorBucket$: StaticStructureSchema;
71
75
  export declare var VectorBucketSummary$: StaticStructureSchema;
@@ -84,8 +88,10 @@ export declare var ListIndexes$: StaticOperationSchema;
84
88
  export declare var ListTagsForResource$: StaticOperationSchema;
85
89
  export declare var ListVectorBuckets$: StaticOperationSchema;
86
90
  export declare var ListVectors$: StaticOperationSchema;
91
+ export declare var PutVectorBucketDefaultIndexMode$: StaticOperationSchema;
87
92
  export declare var PutVectorBucketPolicy$: StaticOperationSchema;
88
93
  export declare var PutVectors$: StaticOperationSchema;
89
94
  export declare var QueryVectors$: StaticOperationSchema;
90
95
  export declare var TagResource$: StaticOperationSchema;
91
96
  export declare var UntagResource$: StaticOperationSchema;
97
+ export declare var UpdateIndexMode$: StaticOperationSchema;
@@ -42,6 +42,10 @@ import {
42
42
  ListVectorBucketsCommandOutput,
43
43
  } from "./commands/ListVectorBucketsCommand";
44
44
  import { ListVectorsCommandInput, ListVectorsCommandOutput } from "./commands/ListVectorsCommand";
45
+ import {
46
+ PutVectorBucketDefaultIndexModeCommandInput,
47
+ PutVectorBucketDefaultIndexModeCommandOutput,
48
+ } from "./commands/PutVectorBucketDefaultIndexModeCommand";
45
49
  import {
46
50
  PutVectorBucketPolicyCommandInput,
47
51
  PutVectorBucketPolicyCommandOutput,
@@ -56,6 +60,10 @@ import {
56
60
  UntagResourceCommandInput,
57
61
  UntagResourceCommandOutput,
58
62
  } from "./commands/UntagResourceCommand";
63
+ import {
64
+ UpdateIndexModeCommandInput,
65
+ UpdateIndexModeCommandOutput,
66
+ } from "./commands/UpdateIndexModeCommand";
59
67
  import { S3VectorsClient } from "./S3VectorsClient";
60
68
  export interface S3VectorsRequestOptions extends __HttpHandlerOptions {
61
69
  metricsRecorder?: __MetricsRecorder<unknown>;
@@ -249,6 +257,19 @@ export interface S3Vectors {
249
257
  options: S3VectorsRequestOptions,
250
258
  cb: (err: any, data?: ListVectorsCommandOutput) => void,
251
259
  ): void;
260
+ putVectorBucketDefaultIndexMode(
261
+ args: PutVectorBucketDefaultIndexModeCommandInput,
262
+ options?: S3VectorsRequestOptions,
263
+ ): Promise<PutVectorBucketDefaultIndexModeCommandOutput>;
264
+ putVectorBucketDefaultIndexMode(
265
+ args: PutVectorBucketDefaultIndexModeCommandInput,
266
+ cb: (err: any, data?: PutVectorBucketDefaultIndexModeCommandOutput) => void,
267
+ ): void;
268
+ putVectorBucketDefaultIndexMode(
269
+ args: PutVectorBucketDefaultIndexModeCommandInput,
270
+ options: S3VectorsRequestOptions,
271
+ cb: (err: any, data?: PutVectorBucketDefaultIndexModeCommandOutput) => void,
272
+ ): void;
252
273
  putVectorBucketPolicy(
253
274
  args: PutVectorBucketPolicyCommandInput,
254
275
  options?: S3VectorsRequestOptions,
@@ -314,6 +335,19 @@ export interface S3Vectors {
314
335
  options: S3VectorsRequestOptions,
315
336
  cb: (err: any, data?: UntagResourceCommandOutput) => void,
316
337
  ): void;
338
+ updateIndexMode(
339
+ args: UpdateIndexModeCommandInput,
340
+ options?: S3VectorsRequestOptions,
341
+ ): Promise<UpdateIndexModeCommandOutput>;
342
+ updateIndexMode(
343
+ args: UpdateIndexModeCommandInput,
344
+ cb: (err: any, data?: UpdateIndexModeCommandOutput) => void,
345
+ ): void;
346
+ updateIndexMode(
347
+ args: UpdateIndexModeCommandInput,
348
+ options: S3VectorsRequestOptions,
349
+ cb: (err: any, data?: UpdateIndexModeCommandOutput) => void,
350
+ ): void;
317
351
  paginateListIndexes(
318
352
  args?: ListIndexesCommandInput,
319
353
  paginationConfig?: Pick<
@@ -71,6 +71,10 @@ import {
71
71
  ListVectorBucketsCommandOutput,
72
72
  } from "./commands/ListVectorBucketsCommand";
73
73
  import { ListVectorsCommandInput, ListVectorsCommandOutput } from "./commands/ListVectorsCommand";
74
+ import {
75
+ PutVectorBucketDefaultIndexModeCommandInput,
76
+ PutVectorBucketDefaultIndexModeCommandOutput,
77
+ } from "./commands/PutVectorBucketDefaultIndexModeCommand";
74
78
  import {
75
79
  PutVectorBucketPolicyCommandInput,
76
80
  PutVectorBucketPolicyCommandOutput,
@@ -85,6 +89,10 @@ import {
85
89
  UntagResourceCommandInput,
86
90
  UntagResourceCommandOutput,
87
91
  } from "./commands/UntagResourceCommand";
92
+ import {
93
+ UpdateIndexModeCommandInput,
94
+ UpdateIndexModeCommandOutput,
95
+ } from "./commands/UpdateIndexModeCommand";
88
96
  import {
89
97
  ClientInputEndpointParameters,
90
98
  ClientResolvedEndpointParameters,
@@ -107,11 +115,13 @@ export type ServiceInputTypes =
107
115
  | ListTagsForResourceCommandInput
108
116
  | ListVectorBucketsCommandInput
109
117
  | ListVectorsCommandInput
118
+ | PutVectorBucketDefaultIndexModeCommandInput
110
119
  | PutVectorBucketPolicyCommandInput
111
120
  | PutVectorsCommandInput
112
121
  | QueryVectorsCommandInput
113
122
  | TagResourceCommandInput
114
- | UntagResourceCommandInput;
123
+ | UntagResourceCommandInput
124
+ | UpdateIndexModeCommandInput;
115
125
  export type ServiceOutputTypes =
116
126
  | CreateIndexCommandOutput
117
127
  | CreateVectorBucketCommandOutput
@@ -127,11 +137,13 @@ export type ServiceOutputTypes =
127
137
  | ListTagsForResourceCommandOutput
128
138
  | ListVectorBucketsCommandOutput
129
139
  | ListVectorsCommandOutput
140
+ | PutVectorBucketDefaultIndexModeCommandOutput
130
141
  | PutVectorBucketPolicyCommandOutput
131
142
  | PutVectorsCommandOutput
132
143
  | QueryVectorsCommandOutput
133
144
  | TagResourceCommandOutput
134
- | UntagResourceCommandOutput;
145
+ | UntagResourceCommandOutput
146
+ | UpdateIndexModeCommandOutput;
135
147
  export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
136
148
  requestHandler?: __HttpHandlerUserInput;
137
149
  sha256?: __ChecksumConstructor | __HashConstructor;
@@ -0,0 +1,42 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ PutVectorBucketDefaultIndexModeInput,
4
+ PutVectorBucketDefaultIndexModeOutput,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface PutVectorBucketDefaultIndexModeCommandInput extends PutVectorBucketDefaultIndexModeInput {}
8
+ export interface PutVectorBucketDefaultIndexModeCommandOutput
9
+ extends PutVectorBucketDefaultIndexModeOutput, __MetadataBearer {}
10
+ declare const PutVectorBucketDefaultIndexModeCommand_base: {
11
+ new (
12
+ input: PutVectorBucketDefaultIndexModeCommandInput,
13
+ ): import("@smithy/core/client").CommandImpl<
14
+ PutVectorBucketDefaultIndexModeCommandInput,
15
+ PutVectorBucketDefaultIndexModeCommandOutput,
16
+ import("..").S3VectorsClientResolvedConfig,
17
+ import("..").ServiceInputTypes,
18
+ import("..").ServiceOutputTypes
19
+ >;
20
+ new (
21
+ input: PutVectorBucketDefaultIndexModeCommandInput,
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ PutVectorBucketDefaultIndexModeCommandInput,
24
+ PutVectorBucketDefaultIndexModeCommandOutput,
25
+ import("..").S3VectorsClientResolvedConfig,
26
+ import("..").ServiceInputTypes,
27
+ import("..").ServiceOutputTypes
28
+ >;
29
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
+ };
31
+ export declare class PutVectorBucketDefaultIndexModeCommand extends PutVectorBucketDefaultIndexModeCommand_base {
32
+ protected static __types: {
33
+ api: {
34
+ input: PutVectorBucketDefaultIndexModeInput;
35
+ output: {};
36
+ };
37
+ sdk: {
38
+ input: PutVectorBucketDefaultIndexModeCommandInput;
39
+ output: PutVectorBucketDefaultIndexModeCommandOutput;
40
+ };
41
+ };
42
+ }
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { UpdateIndexModeInput, UpdateIndexModeOutput } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface UpdateIndexModeCommandInput extends UpdateIndexModeInput {}
5
+ export interface UpdateIndexModeCommandOutput extends UpdateIndexModeOutput, __MetadataBearer {}
6
+ declare const UpdateIndexModeCommand_base: {
7
+ new (
8
+ input: UpdateIndexModeCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ UpdateIndexModeCommandInput,
11
+ UpdateIndexModeCommandOutput,
12
+ import("..").S3VectorsClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: UpdateIndexModeCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ UpdateIndexModeCommandInput,
20
+ UpdateIndexModeCommandOutput,
21
+ import("..").S3VectorsClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class UpdateIndexModeCommand extends UpdateIndexModeCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: UpdateIndexModeInput;
31
+ output: {};
32
+ };
33
+ sdk: {
34
+ input: UpdateIndexModeCommandInput;
35
+ output: UpdateIndexModeCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -12,8 +12,10 @@ export * from "./ListIndexesCommand";
12
12
  export * from "./ListTagsForResourceCommand";
13
13
  export * from "./ListVectorBucketsCommand";
14
14
  export * from "./ListVectorsCommand";
15
+ export * from "./PutVectorBucketDefaultIndexModeCommand";
15
16
  export * from "./PutVectorBucketPolicyCommand";
16
17
  export * from "./PutVectorsCommand";
17
18
  export * from "./QueryVectorsCommand";
18
19
  export * from "./TagResourceCommand";
19
20
  export * from "./UntagResourceCommand";
21
+ export * from "./UpdateIndexModeCommand";
@@ -12,3 +12,8 @@ export declare const SseType: {
12
12
  readonly AWS_KMS: "aws:kms";
13
13
  };
14
14
  export type SseType = (typeof SseType)[keyof typeof SseType];
15
+ export declare const IndexMode: {
16
+ readonly CLASSIC: "CLASSIC";
17
+ readonly ENHANCED: "ENHANCED";
18
+ };
19
+ export type IndexMode = (typeof IndexMode)[keyof typeof IndexMode];
@@ -1,5 +1,5 @@
1
1
  import { DocumentType as __DocumentType } from "@smithy/types";
2
- import { DataType, DistanceMetric, SseType } from "./enums";
2
+ import { DataType, DistanceMetric, IndexMode, SseType } from "./enums";
3
3
  export interface EncryptionConfiguration {
4
4
  sseType?: SseType | undefined;
5
5
  kmsKeyArn?: string | undefined;
@@ -71,6 +71,7 @@ export interface Index {
71
71
  distanceMetric: DistanceMetric | undefined;
72
72
  metadataConfiguration?: MetadataConfiguration | undefined;
73
73
  encryptionConfiguration?: EncryptionConfiguration | undefined;
74
+ indexMode?: IndexMode | undefined;
74
75
  }
75
76
  export interface GetIndexOutput {
76
77
  index: Index | undefined;
@@ -104,6 +105,7 @@ export interface VectorBucket {
104
105
  vectorBucketArn: string | undefined;
105
106
  creationTime: Date | undefined;
106
107
  encryptionConfiguration?: EncryptionConfiguration | undefined;
108
+ defaultIndexMode?: IndexMode | undefined;
107
109
  }
108
110
  export interface GetVectorBucketOutput {
109
111
  vectorBucket: VectorBucket | undefined;
@@ -143,6 +145,13 @@ export interface ListIndexesOutput {
143
145
  nextToken?: string | undefined;
144
146
  indexes: IndexSummary[] | undefined;
145
147
  }
148
+ export interface UpdateIndexModeInput {
149
+ vectorBucketName?: string | undefined;
150
+ indexName?: string | undefined;
151
+ indexArn?: string | undefined;
152
+ indexMode: IndexMode | undefined;
153
+ }
154
+ export interface UpdateIndexModeOutput {}
146
155
  export interface ListVectorsInput {
147
156
  vectorBucketName?: string | undefined;
148
157
  indexName?: string | undefined;
@@ -182,6 +191,7 @@ export interface QueryVectorsInput {
182
191
  topK: number | undefined;
183
192
  queryVector: VectorData | undefined;
184
193
  filter?: __DocumentType | undefined;
194
+ queryMode?: IndexMode | undefined;
185
195
  returnMetadata?: boolean | undefined;
186
196
  returnDistance?: boolean | undefined;
187
197
  nextToken?: string | undefined;
@@ -216,6 +226,12 @@ export interface ListVectorBucketsOutput {
216
226
  nextToken?: string | undefined;
217
227
  vectorBuckets: VectorBucketSummary[] | undefined;
218
228
  }
229
+ export interface PutVectorBucketDefaultIndexModeInput {
230
+ vectorBucketName?: string | undefined;
231
+ vectorBucketArn?: string | undefined;
232
+ defaultIndexMode: IndexMode | undefined;
233
+ }
234
+ export interface PutVectorBucketDefaultIndexModeOutput {}
219
235
  export interface PutVectorBucketPolicyInput {
220
236
  vectorBucketName?: string | undefined;
221
237
  vectorBucketArn?: string | undefined;
@@ -55,6 +55,8 @@ export declare var ListVectorsInput$: StaticStructureSchema;
55
55
  export declare var ListVectorsOutput$: StaticStructureSchema;
56
56
  export declare var MetadataConfiguration$: StaticStructureSchema;
57
57
  export declare var PutInputVector$: StaticStructureSchema;
58
+ export declare var PutVectorBucketDefaultIndexModeInput$: StaticStructureSchema;
59
+ export declare var PutVectorBucketDefaultIndexModeOutput$: StaticStructureSchema;
58
60
  export declare var PutVectorBucketPolicyInput$: StaticStructureSchema;
59
61
  export declare var PutVectorBucketPolicyOutput$: StaticStructureSchema;
60
62
  export declare var PutVectorsInput$: StaticStructureSchema;
@@ -66,6 +68,8 @@ export declare var TagResourceInput$: StaticStructureSchema;
66
68
  export declare var TagResourceOutput$: StaticStructureSchema;
67
69
  export declare var UntagResourceInput$: StaticStructureSchema;
68
70
  export declare var UntagResourceOutput$: StaticStructureSchema;
71
+ export declare var UpdateIndexModeInput$: StaticStructureSchema;
72
+ export declare var UpdateIndexModeOutput$: StaticStructureSchema;
69
73
  export declare var ValidationExceptionField$: StaticStructureSchema;
70
74
  export declare var VectorBucket$: StaticStructureSchema;
71
75
  export declare var VectorBucketSummary$: StaticStructureSchema;
@@ -84,8 +88,10 @@ export declare var ListIndexes$: StaticOperationSchema;
84
88
  export declare var ListTagsForResource$: StaticOperationSchema;
85
89
  export declare var ListVectorBuckets$: StaticOperationSchema;
86
90
  export declare var ListVectors$: StaticOperationSchema;
91
+ export declare var PutVectorBucketDefaultIndexMode$: StaticOperationSchema;
87
92
  export declare var PutVectorBucketPolicy$: StaticOperationSchema;
88
93
  export declare var PutVectors$: StaticOperationSchema;
89
94
  export declare var QueryVectors$: StaticOperationSchema;
90
95
  export declare var TagResource$: StaticOperationSchema;
91
96
  export declare var UntagResource$: StaticOperationSchema;
97
+ export declare var UpdateIndexMode$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3vectors",
3
- "version": "3.1142.0",
3
+ "version": "3.1144.0",
4
4
  "description": "AWS SDK for JavaScript S3vectors Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3vectors",
6
6
  "license": "Apache-2.0",