@aws-sdk/client-s3vectors 3.941.0 → 3.946.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 (64) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +130 -196
  3. package/dist-cjs/runtimeConfig.browser.js +2 -2
  4. package/dist-cjs/runtimeConfig.js +3 -4
  5. package/dist-es/S3Vectors.js +6 -0
  6. package/dist-es/S3VectorsClient.js +2 -2
  7. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  8. package/dist-es/commands/TagResourceCommand.js +16 -0
  9. package/dist-es/commands/UntagResourceCommand.js +16 -0
  10. package/dist-es/commands/index.js +3 -0
  11. package/dist-es/runtimeConfig.browser.js +2 -2
  12. package/dist-es/runtimeConfig.js +2 -3
  13. package/dist-es/schemas/schemas_0.js +90 -196
  14. package/dist-types/S3Vectors.d.ts +22 -1
  15. package/dist-types/S3VectorsClient.d.ts +15 -12
  16. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  17. package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
  18. package/dist-types/commands/CreateIndexCommand.d.ts +11 -4
  19. package/dist-types/commands/CreateVectorBucketCommand.d.ts +7 -4
  20. package/dist-types/commands/DeleteIndexCommand.d.ts +7 -4
  21. package/dist-types/commands/DeleteVectorBucketCommand.d.ts +7 -4
  22. package/dist-types/commands/DeleteVectorBucketPolicyCommand.d.ts +4 -4
  23. package/dist-types/commands/DeleteVectorsCommand.d.ts +4 -4
  24. package/dist-types/commands/GetIndexCommand.d.ts +8 -4
  25. package/dist-types/commands/GetVectorBucketCommand.d.ts +4 -4
  26. package/dist-types/commands/GetVectorBucketPolicyCommand.d.ts +4 -4
  27. package/dist-types/commands/GetVectorsCommand.d.ts +4 -4
  28. package/dist-types/commands/ListIndexesCommand.d.ts +4 -4
  29. package/dist-types/commands/ListTagsForResourceCommand.d.ts +97 -0
  30. package/dist-types/commands/ListVectorBucketsCommand.d.ts +4 -4
  31. package/dist-types/commands/ListVectorsCommand.d.ts +4 -4
  32. package/dist-types/commands/PutVectorBucketPolicyCommand.d.ts +4 -4
  33. package/dist-types/commands/PutVectorsCommand.d.ts +4 -4
  34. package/dist-types/commands/QueryVectorsCommand.d.ts +5 -10
  35. package/dist-types/commands/TagResourceCommand.d.ts +99 -0
  36. package/dist-types/commands/UntagResourceCommand.d.ts +99 -0
  37. package/dist-types/commands/index.d.ts +3 -0
  38. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  39. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  40. package/dist-types/extensionConfiguration.d.ts +4 -4
  41. package/dist-types/models/S3VectorsServiceException.d.ts +1 -1
  42. package/dist-types/models/errors.d.ts +1 -1
  43. package/dist-types/models/models_0.d.ts +110 -35
  44. package/dist-types/pagination/Interfaces.d.ts +1 -1
  45. package/dist-types/pagination/ListIndexesPaginator.d.ts +1 -1
  46. package/dist-types/pagination/ListVectorBucketsPaginator.d.ts +1 -1
  47. package/dist-types/pagination/ListVectorsPaginator.d.ts +1 -1
  48. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  49. package/dist-types/runtimeConfig.d.ts +1 -1
  50. package/dist-types/runtimeConfig.native.d.ts +1 -1
  51. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  52. package/dist-types/runtimeExtensions.d.ts +1 -1
  53. package/dist-types/schemas/schemas_0.d.ts +12 -1
  54. package/dist-types/ts3.4/S3Vectors.d.ts +51 -0
  55. package/dist-types/ts3.4/S3VectorsClient.d.ts +23 -5
  56. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  58. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  59. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +47 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  61. package/dist-types/ts3.4/models/S3VectorsServiceException.d.ts +1 -1
  62. package/dist-types/ts3.4/models/models_0.d.ts +25 -6
  63. package/dist-types/ts3.4/schemas/schemas_0.d.ts +11 -0
  64. package/package.json +13 -12
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListTagsForResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Vectors", "ListTagsForResource", {})
13
+ .n("S3VectorsClient", "ListTagsForResourceCommand")
14
+ .sc(ListTagsForResource)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { TagResource } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class TagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Vectors", "TagResource", {})
13
+ .n("S3VectorsClient", "TagResourceCommand")
14
+ .sc(TagResource)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UntagResource } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UntagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Vectors", "UntagResource", {})
13
+ .n("S3VectorsClient", "UntagResourceCommand")
14
+ .sc(UntagResource)
15
+ .build() {
16
+ }
@@ -9,8 +9,11 @@ export * from "./GetVectorBucketCommand";
9
9
  export * from "./GetVectorBucketPolicyCommand";
10
10
  export * from "./GetVectorsCommand";
11
11
  export * from "./ListIndexesCommand";
12
+ export * from "./ListTagsForResourceCommand";
12
13
  export * from "./ListVectorBucketsCommand";
13
14
  export * from "./ListVectorsCommand";
14
15
  export * from "./PutVectorBucketPolicyCommand";
15
16
  export * from "./PutVectorsCommand";
16
17
  export * from "./QueryVectorsCommand";
18
+ export * from "./TagResourceCommand";
19
+ export * from "./UntagResourceCommand";
@@ -4,11 +4,11 @@ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
5
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
6
  import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
7
8
  import { calculateBodyLength } from "@smithy/util-body-length-browser";
9
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
8
10
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
12
  export const getRuntimeConfig = (config) => {
13
13
  const defaultsMode = resolveDefaultsModeConfig(config);
14
14
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
@@ -7,12 +7,11 @@ import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
10
11
  import { calculateBodyLength } from "@smithy/util-body-length-node";
12
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
11
13
  import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
12
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
14
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
15
- import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
16
15
  export const getRuntimeConfig = (config) => {
17
16
  emitWarningIfUnsupportedVersion(process.version);
18
17
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -45,6 +45,9 @@ const _LII = "ListIndexesInput";
45
45
  const _LIO = "ListIndexesOutput";
46
46
  const _LIOL = "ListIndexesOutputList";
47
47
  const _LOV = "ListOutputVector";
48
+ const _LTFR = "ListTagsForResource";
49
+ const _LTFRI = "ListTagsForResourceInput";
50
+ const _LTFRO = "ListTagsForResourceOutput";
48
51
  const _LV = "ListVectors";
49
52
  const _LVB = "ListVectorBuckets";
50
53
  const _LVBI = "ListVectorBucketsInput";
@@ -72,6 +75,12 @@ const _RTE = "RequestTimeoutException";
72
75
  const _SQEE = "ServiceQuotaExceededException";
73
76
  const _SUE = "ServiceUnavailableException";
74
77
  const _TMRE = "TooManyRequestsException";
78
+ const _TR = "TagResource";
79
+ const _TRI = "TagResourceInput";
80
+ const _TRO = "TagResourceOutput";
81
+ const _UR = "UntagResource";
82
+ const _URI = "UntagResourceInput";
83
+ const _URO = "UntagResourceOutput";
75
84
  const _VB = "VectorBucket";
76
85
  const _VBS = "VectorBucketSummary";
77
86
  const _VD = "VectorData";
@@ -92,6 +101,7 @@ const _fL = "fieldList";
92
101
  const _fl = "float32";
93
102
  const _h = "http";
94
103
  const _hE = "httpError";
104
+ const _hQ = "httpQuery";
95
105
  const _i = "index";
96
106
  const _iA = "indexArn";
97
107
  const _iN = "indexName";
@@ -109,6 +119,7 @@ const _p = "policy";
109
119
  const _pa = "path";
110
120
  const _pr = "prefix";
111
121
  const _qV = "queryVector";
122
+ const _rA = "resourceArn";
112
123
  const _rD = "returnData";
113
124
  const _rDe = "returnDistance";
114
125
  const _rM = "returnMetadata";
@@ -117,7 +128,9 @@ const _sC = "segmentCount";
117
128
  const _sI = "segmentIndex";
118
129
  const _sT = "sseType";
119
130
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.s3vectors";
131
+ const _t = "tags";
120
132
  const _tK = "topK";
133
+ const _tKa = "tagKeys";
121
134
  const _v = "vectors";
122
135
  const _vB = "vectorBucket";
123
136
  const _vBA = "vectorBucketArn";
@@ -127,37 +140,17 @@ const n0 = "com.amazonaws.s3vectors";
127
140
  import { TypeRegistry } from "@smithy/core/schema";
128
141
  import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, KmsDisabledException as __KmsDisabledException, KmsInvalidKeyUsageException as __KmsInvalidKeyUsageException, KmsInvalidStateException as __KmsInvalidStateException, KmsNotFoundException as __KmsNotFoundException, NotFoundException as __NotFoundException, RequestTimeoutException as __RequestTimeoutException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ServiceUnavailableException as __ServiceUnavailableException, TooManyRequestsException as __TooManyRequestsException, ValidationException as __ValidationException, } from "../models/errors";
129
142
  import { S3VectorsServiceException as __S3VectorsServiceException } from "../models/S3VectorsServiceException";
130
- export var AccessDeniedException = [
131
- -3,
132
- n0,
133
- _ADE,
134
- {
135
- [_e]: _c,
136
- [_hE]: 403,
137
- },
138
- [_m],
139
- [0],
140
- ];
143
+ export var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
141
144
  TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
142
- export var ConflictException = [
143
- -3,
144
- n0,
145
- _CE,
146
- {
147
- [_e]: _c,
148
- [_hE]: 409,
149
- },
150
- [_m],
151
- [0],
152
- ];
145
+ export var ConflictException = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_m], [0]];
153
146
  TypeRegistry.for(n0).registerError(ConflictException, __ConflictException);
154
147
  export var CreateIndexInput = [
155
148
  3,
156
149
  n0,
157
150
  _CII,
158
151
  0,
159
- [_vBN, _vBA, _iN, _dT, _d, _dM, _mC],
160
- [0, 0, 0, 0, 1, 0, () => MetadataConfiguration],
152
+ [_vBN, _vBA, _iN, _dT, _d, _dM, _mC, _eC, _t],
153
+ [0, 0, 0, 0, 1, 0, () => MetadataConfiguration, () => EncryptionConfiguration, 128 | 0],
161
154
  ];
162
155
  export var CreateIndexOutput = [3, n0, _CIO, 0, [_iA], [0]];
163
156
  export var CreateVectorBucketInput = [
@@ -165,8 +158,8 @@ export var CreateVectorBucketInput = [
165
158
  n0,
166
159
  _CVBI,
167
160
  0,
168
- [_vBN, _eC],
169
- [0, () => EncryptionConfiguration],
161
+ [_vBN, _eC, _t],
162
+ [0, () => EncryptionConfiguration, 128 | 0],
170
163
  ];
171
164
  export var CreateVectorBucketOutput = [3, n0, _CVBO, 0, [_vBA], [0]];
172
165
  export var DeleteIndexInput = [3, n0, _DII, 0, [_vBN, _iN, _iA], [0, 0, 0]];
@@ -199,73 +192,25 @@ export var Index = [
199
192
  n0,
200
193
  _I,
201
194
  0,
202
- [_vBN, _iN, _iA, _cT, _dT, _d, _dM, _mC],
203
- [0, 0, 0, 4, 0, 1, 0, () => MetadataConfiguration],
195
+ [_vBN, _iN, _iA, _cT, _dT, _d, _dM, _mC, _eC],
196
+ [0, 0, 0, 4, 0, 1, 0, () => MetadataConfiguration, () => EncryptionConfiguration],
204
197
  ];
205
198
  export var IndexSummary = [3, n0, _IS, 0, [_vBN, _iN, _iA, _cT], [0, 0, 0, 4]];
206
- export var InternalServerException = [
207
- -3,
208
- n0,
209
- _ISE,
210
- {
211
- [_e]: _s,
212
- [_hE]: 500,
213
- },
214
- [_m],
215
- [0],
216
- ];
199
+ export var InternalServerException = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_m], [0]];
217
200
  TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
218
- export var KmsDisabledException = [
219
- -3,
220
- n0,
221
- _KDE,
222
- {
223
- [_e]: _c,
224
- [_hE]: 400,
225
- },
226
- [_m],
227
- [0],
228
- ];
201
+ export var KmsDisabledException = [-3, n0, _KDE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
229
202
  TypeRegistry.for(n0).registerError(KmsDisabledException, __KmsDisabledException);
230
- export var KmsInvalidKeyUsageException = [
231
- -3,
232
- n0,
233
- _KIKUE,
234
- {
235
- [_e]: _c,
236
- [_hE]: 400,
237
- },
238
- [_m],
239
- [0],
240
- ];
203
+ export var KmsInvalidKeyUsageException = [-3, n0, _KIKUE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
241
204
  TypeRegistry.for(n0).registerError(KmsInvalidKeyUsageException, __KmsInvalidKeyUsageException);
242
- export var KmsInvalidStateException = [
243
- -3,
244
- n0,
245
- _KISE,
246
- {
247
- [_e]: _c,
248
- [_hE]: 400,
249
- },
250
- [_m],
251
- [0],
252
- ];
205
+ export var KmsInvalidStateException = [-3, n0, _KISE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
253
206
  TypeRegistry.for(n0).registerError(KmsInvalidStateException, __KmsInvalidStateException);
254
- export var KmsNotFoundException = [
255
- -3,
256
- n0,
257
- _KNFE,
258
- {
259
- [_e]: _c,
260
- [_hE]: 400,
261
- },
262
- [_m],
263
- [0],
264
- ];
207
+ export var KmsNotFoundException = [-3, n0, _KNFE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
265
208
  TypeRegistry.for(n0).registerError(KmsNotFoundException, __KmsNotFoundException);
266
209
  export var ListIndexesInput = [3, n0, _LII, 0, [_vBN, _vBA, _mR, _nT, _pr], [0, 0, 1, 0, 0]];
267
210
  export var ListIndexesOutput = [3, n0, _LIO, 0, [_nT, _in], [0, () => ListIndexesOutputList]];
268
211
  export var ListOutputVector = [3, n0, _LOV, 0, [_ke, _da, _me], [0, () => VectorData, 15]];
212
+ export var ListTagsForResourceInput = [3, n0, _LTFRI, 0, [_rA], [[0, 1]]];
213
+ export var ListTagsForResourceOutput = [3, n0, _LTFRO, 0, [_t], [128 | 0]];
269
214
  export var ListVectorBucketsInput = [3, n0, _LVBI, 0, [_mR, _nT, _pr], [1, 0, 0]];
270
215
  export var ListVectorBucketsOutput = [
271
216
  3,
@@ -285,17 +230,7 @@ export var ListVectorsInput = [
285
230
  ];
286
231
  export var ListVectorsOutput = [3, n0, _LVO, 0, [_nT, _v], [0, () => ListVectorsOutputList]];
287
232
  export var MetadataConfiguration = [3, n0, _MC, 0, [_nFMK], [64 | 0]];
288
- export var NotFoundException = [
289
- -3,
290
- n0,
291
- _NFE,
292
- {
293
- [_e]: _c,
294
- [_hE]: 404,
295
- },
296
- [_m],
297
- [0],
298
- ];
233
+ export var NotFoundException = [-3, n0, _NFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
299
234
  TypeRegistry.for(n0).registerError(NotFoundException, __NotFoundException);
300
235
  export var PutInputVector = [3, n0, _PIV, 0, [_ke, _da, _me], [0, () => VectorData, 15]];
301
236
  export var PutVectorBucketPolicyInput = [3, n0, _PVBPI, 0, [_vBN, _vBA, _p], [0, 0, 0]];
@@ -309,14 +244,7 @@ export var PutVectorsInput = [
309
244
  [0, 0, 0, () => PutVectorsInputList],
310
245
  ];
311
246
  export var PutVectorsOutput = [3, n0, _PVO, 0, [], []];
312
- export var QueryOutputVector = [
313
- 3,
314
- n0,
315
- _QOV,
316
- 0,
317
- [_ke, _da, _me, _di],
318
- [0, () => VectorData, 15, 1],
319
- ];
247
+ export var QueryOutputVector = [3, n0, _QOV, 0, [_di, _ke, _me], [1, 0, 15]];
320
248
  export var QueryVectorsInput = [
321
249
  3,
322
250
  n0,
@@ -326,61 +254,33 @@ export var QueryVectorsInput = [
326
254
  [0, 0, 0, 1, () => VectorData, 15, 2, 2],
327
255
  ];
328
256
  export var QueryVectorsOutput = [3, n0, _QVO, 0, [_v, _dM], [() => QueryVectorsOutputList, 0]];
329
- export var RequestTimeoutException = [
330
- -3,
331
- n0,
332
- _RTE,
333
- {
334
- [_e]: _c,
335
- [_hE]: 408,
336
- },
337
- [_m],
338
- [0],
339
- ];
257
+ export var RequestTimeoutException = [-3, n0, _RTE, { [_e]: _c, [_hE]: 408 }, [_m], [0]];
340
258
  TypeRegistry.for(n0).registerError(RequestTimeoutException, __RequestTimeoutException);
341
- export var ServiceQuotaExceededException = [
342
- -3,
343
- n0,
344
- _SQEE,
345
- {
346
- [_e]: _c,
347
- [_hE]: 402,
348
- },
349
- [_m],
350
- [0],
351
- ];
259
+ export var ServiceQuotaExceededException = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 402 }, [_m], [0]];
352
260
  TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, __ServiceQuotaExceededException);
353
- export var ServiceUnavailableException = [
354
- -3,
355
- n0,
356
- _SUE,
357
- {
358
- [_e]: _s,
359
- [_hE]: 503,
360
- },
361
- [_m],
362
- [0],
363
- ];
261
+ export var ServiceUnavailableException = [-3, n0, _SUE, { [_e]: _s, [_hE]: 503 }, [_m], [0]];
364
262
  TypeRegistry.for(n0).registerError(ServiceUnavailableException, __ServiceUnavailableException);
365
- export var TooManyRequestsException = [
366
- -3,
263
+ export var TagResourceInput = [3, n0, _TRI, 0, [_rA, _t], [[0, 1], 128 | 0]];
264
+ export var TagResourceOutput = [3, n0, _TRO, 0, [], []];
265
+ export var TooManyRequestsException = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
266
+ TypeRegistry.for(n0).registerError(TooManyRequestsException, __TooManyRequestsException);
267
+ export var UntagResourceInput = [
268
+ 3,
367
269
  n0,
368
- _TMRE,
369
- {
370
- [_e]: _c,
371
- [_hE]: 429,
372
- },
373
- [_m],
374
- [0],
270
+ _URI,
271
+ 0,
272
+ [_rA, _tKa],
273
+ [
274
+ [0, 1],
275
+ [64 | 0, { [_hQ]: _tKa }],
276
+ ],
375
277
  ];
376
- TypeRegistry.for(n0).registerError(TooManyRequestsException, __TooManyRequestsException);
278
+ export var UntagResourceOutput = [3, n0, _URO, 0, [], []];
377
279
  export var ValidationException = [
378
280
  -3,
379
281
  n0,
380
282
  _VE,
381
- {
382
- [_e]: _c,
383
- },
283
+ { [_e]: _c },
384
284
  [_m, _fL],
385
285
  [0, () => ValidationExceptionFieldList],
386
286
  ];
@@ -408,15 +308,15 @@ export var ListVectorsOutputList = [1, n0, _LVOL, 0, () => ListOutputVector];
408
308
  export var NonFilterableMetadataKeys = 64 | 0;
409
309
  export var PutVectorsInputList = [1, n0, _PVIL, 0, () => PutInputVector];
410
310
  export var QueryVectorsOutputList = [1, n0, _QVOL, 0, () => QueryOutputVector];
311
+ export var TagKeyList = 64 | 0;
411
312
  export var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
313
+ export var TagsMap = 128 | 0;
412
314
  export var VectorData = [3, n0, _VD, 0, [_fl], [64 | 1]];
413
315
  export var CreateIndex = [
414
316
  9,
415
317
  n0,
416
318
  _CI,
417
- {
418
- [_h]: ["POST", "/CreateIndex", 200],
419
- },
319
+ { [_h]: ["POST", "/CreateIndex", 200] },
420
320
  () => CreateIndexInput,
421
321
  () => CreateIndexOutput,
422
322
  ];
@@ -424,9 +324,7 @@ export var CreateVectorBucket = [
424
324
  9,
425
325
  n0,
426
326
  _CVB,
427
- {
428
- [_h]: ["POST", "/CreateVectorBucket", 200],
429
- },
327
+ { [_h]: ["POST", "/CreateVectorBucket", 200] },
430
328
  () => CreateVectorBucketInput,
431
329
  () => CreateVectorBucketOutput,
432
330
  ];
@@ -434,9 +332,7 @@ export var DeleteIndex = [
434
332
  9,
435
333
  n0,
436
334
  _DI,
437
- {
438
- [_h]: ["POST", "/DeleteIndex", 200],
439
- },
335
+ { [_h]: ["POST", "/DeleteIndex", 200] },
440
336
  () => DeleteIndexInput,
441
337
  () => DeleteIndexOutput,
442
338
  ];
@@ -444,9 +340,7 @@ export var DeleteVectorBucket = [
444
340
  9,
445
341
  n0,
446
342
  _DVB,
447
- {
448
- [_h]: ["POST", "/DeleteVectorBucket", 200],
449
- },
343
+ { [_h]: ["POST", "/DeleteVectorBucket", 200] },
450
344
  () => DeleteVectorBucketInput,
451
345
  () => DeleteVectorBucketOutput,
452
346
  ];
@@ -454,9 +348,7 @@ export var DeleteVectorBucketPolicy = [
454
348
  9,
455
349
  n0,
456
350
  _DVBP,
457
- {
458
- [_h]: ["POST", "/DeleteVectorBucketPolicy", 200],
459
- },
351
+ { [_h]: ["POST", "/DeleteVectorBucketPolicy", 200] },
460
352
  () => DeleteVectorBucketPolicyInput,
461
353
  () => DeleteVectorBucketPolicyOutput,
462
354
  ];
@@ -464,9 +356,7 @@ export var DeleteVectors = [
464
356
  9,
465
357
  n0,
466
358
  _DV,
467
- {
468
- [_h]: ["POST", "/DeleteVectors", 200],
469
- },
359
+ { [_h]: ["POST", "/DeleteVectors", 200] },
470
360
  () => DeleteVectorsInput,
471
361
  () => DeleteVectorsOutput,
472
362
  ];
@@ -474,9 +364,7 @@ export var GetIndex = [
474
364
  9,
475
365
  n0,
476
366
  _GI,
477
- {
478
- [_h]: ["POST", "/GetIndex", 200],
479
- },
367
+ { [_h]: ["POST", "/GetIndex", 200] },
480
368
  () => GetIndexInput,
481
369
  () => GetIndexOutput,
482
370
  ];
@@ -484,9 +372,7 @@ export var GetVectorBucket = [
484
372
  9,
485
373
  n0,
486
374
  _GVB,
487
- {
488
- [_h]: ["POST", "/GetVectorBucket", 200],
489
- },
375
+ { [_h]: ["POST", "/GetVectorBucket", 200] },
490
376
  () => GetVectorBucketInput,
491
377
  () => GetVectorBucketOutput,
492
378
  ];
@@ -494,9 +380,7 @@ export var GetVectorBucketPolicy = [
494
380
  9,
495
381
  n0,
496
382
  _GVBP,
497
- {
498
- [_h]: ["POST", "/GetVectorBucketPolicy", 200],
499
- },
383
+ { [_h]: ["POST", "/GetVectorBucketPolicy", 200] },
500
384
  () => GetVectorBucketPolicyInput,
501
385
  () => GetVectorBucketPolicyOutput,
502
386
  ];
@@ -504,9 +388,7 @@ export var GetVectors = [
504
388
  9,
505
389
  n0,
506
390
  _GV,
507
- {
508
- [_h]: ["POST", "/GetVectors", 200],
509
- },
391
+ { [_h]: ["POST", "/GetVectors", 200] },
510
392
  () => GetVectorsInput,
511
393
  () => GetVectorsOutput,
512
394
  ];
@@ -514,19 +396,23 @@ export var ListIndexes = [
514
396
  9,
515
397
  n0,
516
398
  _LI,
517
- {
518
- [_h]: ["POST", "/ListIndexes", 200],
519
- },
399
+ { [_h]: ["POST", "/ListIndexes", 200] },
520
400
  () => ListIndexesInput,
521
401
  () => ListIndexesOutput,
522
402
  ];
403
+ export var ListTagsForResource = [
404
+ 9,
405
+ n0,
406
+ _LTFR,
407
+ { [_h]: ["GET", "/tags/{resourceArn}", 200] },
408
+ () => ListTagsForResourceInput,
409
+ () => ListTagsForResourceOutput,
410
+ ];
523
411
  export var ListVectorBuckets = [
524
412
  9,
525
413
  n0,
526
414
  _LVB,
527
- {
528
- [_h]: ["POST", "/ListVectorBuckets", 200],
529
- },
415
+ { [_h]: ["POST", "/ListVectorBuckets", 200] },
530
416
  () => ListVectorBucketsInput,
531
417
  () => ListVectorBucketsOutput,
532
418
  ];
@@ -534,9 +420,7 @@ export var ListVectors = [
534
420
  9,
535
421
  n0,
536
422
  _LV,
537
- {
538
- [_h]: ["POST", "/ListVectors", 200],
539
- },
423
+ { [_h]: ["POST", "/ListVectors", 200] },
540
424
  () => ListVectorsInput,
541
425
  () => ListVectorsOutput,
542
426
  ];
@@ -544,9 +428,7 @@ export var PutVectorBucketPolicy = [
544
428
  9,
545
429
  n0,
546
430
  _PVBP,
547
- {
548
- [_h]: ["POST", "/PutVectorBucketPolicy", 200],
549
- },
431
+ { [_h]: ["POST", "/PutVectorBucketPolicy", 200] },
550
432
  () => PutVectorBucketPolicyInput,
551
433
  () => PutVectorBucketPolicyOutput,
552
434
  ];
@@ -554,9 +436,7 @@ export var PutVectors = [
554
436
  9,
555
437
  n0,
556
438
  _PV,
557
- {
558
- [_h]: ["POST", "/PutVectors", 200],
559
- },
439
+ { [_h]: ["POST", "/PutVectors", 200] },
560
440
  () => PutVectorsInput,
561
441
  () => PutVectorsOutput,
562
442
  ];
@@ -564,9 +444,23 @@ export var QueryVectors = [
564
444
  9,
565
445
  n0,
566
446
  _QV,
567
- {
568
- [_h]: ["POST", "/QueryVectors", 200],
569
- },
447
+ { [_h]: ["POST", "/QueryVectors", 200] },
570
448
  () => QueryVectorsInput,
571
449
  () => QueryVectorsOutput,
572
450
  ];
451
+ export var TagResource = [
452
+ 9,
453
+ n0,
454
+ _TR,
455
+ { [_h]: ["POST", "/tags/{resourceArn}", 200] },
456
+ () => TagResourceInput,
457
+ () => TagResourceOutput,
458
+ ];
459
+ export var UntagResource = [
460
+ 9,
461
+ n0,
462
+ _UR,
463
+ { [_h]: ["DELETE", "/tags/{resourceArn}", 200] },
464
+ () => UntagResourceInput,
465
+ () => UntagResourceOutput,
466
+ ];
@@ -1,4 +1,4 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { CreateIndexCommandInput, CreateIndexCommandOutput } from "./commands/CreateIndexCommand";
3
3
  import { CreateVectorBucketCommandInput, CreateVectorBucketCommandOutput } from "./commands/CreateVectorBucketCommand";
4
4
  import { DeleteIndexCommandInput, DeleteIndexCommandOutput } from "./commands/DeleteIndexCommand";
@@ -10,11 +10,14 @@ import { GetVectorBucketCommandInput, GetVectorBucketCommandOutput } from "./com
10
10
  import { GetVectorBucketPolicyCommandInput, GetVectorBucketPolicyCommandOutput } from "./commands/GetVectorBucketPolicyCommand";
11
11
  import { GetVectorsCommandInput, GetVectorsCommandOutput } from "./commands/GetVectorsCommand";
12
12
  import { ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
13
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
13
14
  import { ListVectorBucketsCommandInput, ListVectorBucketsCommandOutput } from "./commands/ListVectorBucketsCommand";
14
15
  import { ListVectorsCommandInput, ListVectorsCommandOutput } from "./commands/ListVectorsCommand";
15
16
  import { PutVectorBucketPolicyCommandInput, PutVectorBucketPolicyCommandOutput } from "./commands/PutVectorBucketPolicyCommand";
16
17
  import { PutVectorsCommandInput, PutVectorsCommandOutput } from "./commands/PutVectorsCommand";
17
18
  import { QueryVectorsCommandInput, QueryVectorsCommandOutput } from "./commands/QueryVectorsCommand";
19
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
20
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
18
21
  import { S3VectorsClient } from "./S3VectorsClient";
19
22
  export interface S3Vectors {
20
23
  /**
@@ -90,6 +93,12 @@ export interface S3Vectors {
90
93
  listIndexes(args: ListIndexesCommandInput, options?: __HttpHandlerOptions): Promise<ListIndexesCommandOutput>;
91
94
  listIndexes(args: ListIndexesCommandInput, cb: (err: any, data?: ListIndexesCommandOutput) => void): void;
92
95
  listIndexes(args: ListIndexesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIndexesCommandOutput) => void): void;
96
+ /**
97
+ * @see {@link ListTagsForResourceCommand}
98
+ */
99
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
100
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
101
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
93
102
  /**
94
103
  * @see {@link ListVectorBucketsCommand}
95
104
  */
@@ -122,6 +131,18 @@ export interface S3Vectors {
122
131
  queryVectors(args: QueryVectorsCommandInput, options?: __HttpHandlerOptions): Promise<QueryVectorsCommandOutput>;
123
132
  queryVectors(args: QueryVectorsCommandInput, cb: (err: any, data?: QueryVectorsCommandOutput) => void): void;
124
133
  queryVectors(args: QueryVectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryVectorsCommandOutput) => void): void;
134
+ /**
135
+ * @see {@link TagResourceCommand}
136
+ */
137
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
138
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
139
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
140
+ /**
141
+ * @see {@link UntagResourceCommand}
142
+ */
143
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
144
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
145
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
125
146
  }
126
147
  /**
127
148
  * <p>Amazon S3 vector buckets are a bucket type to store and search vectors with sub-second search times. They are designed to provide dedicated API operations for you to interact with vectors to do similarity search. Within a vector bucket, you use a vector index to organize and logically group your vector data. When you make a write or read request, you direct it to a single vector index. You store your vector data as vectors. A vector contains a key (a name that you assign), a multi-dimensional vector, and, optionally, metadata that describes a vector. The key uniquely identifies the vector in a vector index.</p>