@aws-sdk/client-s3vectors 3.845.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 (163) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +333 -0
  3. package/dist-cjs/S3Vectors.js +43 -0
  4. package/dist-cjs/S3VectorsClient.js +52 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateIndexCommand.js +26 -0
  8. package/dist-cjs/commands/CreateVectorBucketCommand.js +26 -0
  9. package/dist-cjs/commands/DeleteIndexCommand.js +26 -0
  10. package/dist-cjs/commands/DeleteVectorBucketCommand.js +26 -0
  11. package/dist-cjs/commands/DeleteVectorBucketPolicyCommand.js +26 -0
  12. package/dist-cjs/commands/DeleteVectorsCommand.js +26 -0
  13. package/dist-cjs/commands/GetIndexCommand.js +26 -0
  14. package/dist-cjs/commands/GetVectorBucketCommand.js +26 -0
  15. package/dist-cjs/commands/GetVectorBucketPolicyCommand.js +26 -0
  16. package/dist-cjs/commands/GetVectorsCommand.js +26 -0
  17. package/dist-cjs/commands/ListIndexesCommand.js +26 -0
  18. package/dist-cjs/commands/ListVectorBucketsCommand.js +26 -0
  19. package/dist-cjs/commands/ListVectorsCommand.js +26 -0
  20. package/dist-cjs/commands/PutVectorBucketPolicyCommand.js +26 -0
  21. package/dist-cjs/commands/PutVectorsCommand.js +26 -0
  22. package/dist-cjs/commands/QueryVectorsCommand.js +26 -0
  23. package/dist-cjs/commands/index.js +19 -0
  24. package/dist-cjs/endpoint/EndpointParameters.js +15 -0
  25. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  26. package/dist-cjs/endpoint/ruleset.js +7 -0
  27. package/dist-cjs/extensionConfiguration.js +2 -0
  28. package/dist-cjs/index.js +11 -0
  29. package/dist-cjs/models/S3VectorsServiceException.js +12 -0
  30. package/dist-cjs/models/index.js +4 -0
  31. package/dist-cjs/models/models_0.js +186 -0
  32. package/dist-cjs/pagination/Interfaces.js +2 -0
  33. package/dist-cjs/pagination/ListIndexesPaginator.js +7 -0
  34. package/dist-cjs/pagination/ListVectorBucketsPaginator.js +7 -0
  35. package/dist-cjs/pagination/ListVectorsPaginator.js +7 -0
  36. package/dist-cjs/pagination/index.js +7 -0
  37. package/dist-cjs/protocols/Aws_restJson1.js +858 -0
  38. package/dist-cjs/runtimeConfig.browser.js +39 -0
  39. package/dist-cjs/runtimeConfig.js +56 -0
  40. package/dist-cjs/runtimeConfig.native.js +15 -0
  41. package/dist-cjs/runtimeConfig.shared.js +34 -0
  42. package/dist-cjs/runtimeExtensions.js +13 -0
  43. package/dist-es/S3Vectors.js +39 -0
  44. package/dist-es/S3VectorsClient.js +48 -0
  45. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  46. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  47. package/dist-es/commands/CreateIndexCommand.js +22 -0
  48. package/dist-es/commands/CreateVectorBucketCommand.js +22 -0
  49. package/dist-es/commands/DeleteIndexCommand.js +22 -0
  50. package/dist-es/commands/DeleteVectorBucketCommand.js +22 -0
  51. package/dist-es/commands/DeleteVectorBucketPolicyCommand.js +22 -0
  52. package/dist-es/commands/DeleteVectorsCommand.js +22 -0
  53. package/dist-es/commands/GetIndexCommand.js +22 -0
  54. package/dist-es/commands/GetVectorBucketCommand.js +22 -0
  55. package/dist-es/commands/GetVectorBucketPolicyCommand.js +22 -0
  56. package/dist-es/commands/GetVectorsCommand.js +22 -0
  57. package/dist-es/commands/ListIndexesCommand.js +22 -0
  58. package/dist-es/commands/ListVectorBucketsCommand.js +22 -0
  59. package/dist-es/commands/ListVectorsCommand.js +22 -0
  60. package/dist-es/commands/PutVectorBucketPolicyCommand.js +22 -0
  61. package/dist-es/commands/PutVectorsCommand.js +22 -0
  62. package/dist-es/commands/QueryVectorsCommand.js +22 -0
  63. package/dist-es/commands/index.js +16 -0
  64. package/dist-es/endpoint/EndpointParameters.js +11 -0
  65. package/dist-es/endpoint/endpointResolver.js +14 -0
  66. package/dist-es/endpoint/ruleset.js +4 -0
  67. package/dist-es/extensionConfiguration.js +1 -0
  68. package/dist-es/index.js +6 -0
  69. package/dist-es/models/S3VectorsServiceException.js +8 -0
  70. package/dist-es/models/index.js +1 -0
  71. package/dist-es/models/models_0.js +171 -0
  72. package/dist-es/pagination/Interfaces.js +1 -0
  73. package/dist-es/pagination/ListIndexesPaginator.js +4 -0
  74. package/dist-es/pagination/ListVectorBucketsPaginator.js +4 -0
  75. package/dist-es/pagination/ListVectorsPaginator.js +4 -0
  76. package/dist-es/pagination/index.js +4 -0
  77. package/dist-es/protocols/Aws_restJson1.js +823 -0
  78. package/dist-es/runtimeConfig.browser.js +34 -0
  79. package/dist-es/runtimeConfig.js +51 -0
  80. package/dist-es/runtimeConfig.native.js +11 -0
  81. package/dist-es/runtimeConfig.shared.js +30 -0
  82. package/dist-es/runtimeExtensions.js +9 -0
  83. package/dist-types/S3Vectors.d.ts +131 -0
  84. package/dist-types/S3VectorsClient.d.ts +203 -0
  85. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  86. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  87. package/dist-types/commands/CreateIndexCommand.d.ts +104 -0
  88. package/dist-types/commands/CreateVectorBucketCommand.d.ts +95 -0
  89. package/dist-types/commands/DeleteIndexCommand.d.ts +90 -0
  90. package/dist-types/commands/DeleteVectorBucketCommand.d.ts +92 -0
  91. package/dist-types/commands/DeleteVectorBucketPolicyCommand.d.ts +92 -0
  92. package/dist-types/commands/DeleteVectorsCommand.d.ts +108 -0
  93. package/dist-types/commands/GetIndexCommand.d.ts +108 -0
  94. package/dist-types/commands/GetVectorBucketCommand.d.ts +102 -0
  95. package/dist-types/commands/GetVectorBucketPolicyCommand.d.ts +94 -0
  96. package/dist-types/commands/GetVectorsCommand.d.ts +122 -0
  97. package/dist-types/commands/ListIndexesCommand.d.ts +105 -0
  98. package/dist-types/commands/ListVectorBucketsCommand.d.ts +99 -0
  99. package/dist-types/commands/ListVectorsCommand.d.ts +112 -0
  100. package/dist-types/commands/PutVectorBucketPolicyCommand.d.ts +93 -0
  101. package/dist-types/commands/PutVectorsCommand.d.ts +116 -0
  102. package/dist-types/commands/QueryVectorsCommand.d.ts +127 -0
  103. package/dist-types/commands/index.d.ts +16 -0
  104. package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
  105. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  106. package/dist-types/endpoint/ruleset.d.ts +2 -0
  107. package/dist-types/extensionConfiguration.d.ts +9 -0
  108. package/dist-types/index.d.ts +14 -0
  109. package/dist-types/models/S3VectorsServiceException.d.ts +14 -0
  110. package/dist-types/models/index.d.ts +1 -0
  111. package/dist-types/models/models_0.d.ts +1013 -0
  112. package/dist-types/pagination/Interfaces.d.ts +8 -0
  113. package/dist-types/pagination/ListIndexesPaginator.d.ts +7 -0
  114. package/dist-types/pagination/ListVectorBucketsPaginator.d.ts +7 -0
  115. package/dist-types/pagination/ListVectorsPaginator.d.ts +7 -0
  116. package/dist-types/pagination/index.d.ts +4 -0
  117. package/dist-types/protocols/Aws_restJson1.d.ts +146 -0
  118. package/dist-types/runtimeConfig.browser.d.ts +50 -0
  119. package/dist-types/runtimeConfig.d.ts +50 -0
  120. package/dist-types/runtimeConfig.native.d.ts +49 -0
  121. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  122. package/dist-types/runtimeExtensions.d.ts +17 -0
  123. package/dist-types/ts3.4/S3Vectors.d.ts +286 -0
  124. package/dist-types/ts3.4/S3VectorsClient.d.ts +215 -0
  125. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  126. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  127. package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +47 -0
  128. package/dist-types/ts3.4/commands/CreateVectorBucketCommand.d.ts +51 -0
  129. package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +47 -0
  130. package/dist-types/ts3.4/commands/DeleteVectorBucketCommand.d.ts +51 -0
  131. package/dist-types/ts3.4/commands/DeleteVectorBucketPolicyCommand.d.ts +51 -0
  132. package/dist-types/ts3.4/commands/DeleteVectorsCommand.d.ts +47 -0
  133. package/dist-types/ts3.4/commands/GetIndexCommand.d.ts +47 -0
  134. package/dist-types/ts3.4/commands/GetVectorBucketCommand.d.ts +50 -0
  135. package/dist-types/ts3.4/commands/GetVectorBucketPolicyCommand.d.ts +51 -0
  136. package/dist-types/ts3.4/commands/GetVectorsCommand.d.ts +47 -0
  137. package/dist-types/ts3.4/commands/ListIndexesCommand.d.ts +47 -0
  138. package/dist-types/ts3.4/commands/ListVectorBucketsCommand.d.ts +50 -0
  139. package/dist-types/ts3.4/commands/ListVectorsCommand.d.ts +47 -0
  140. package/dist-types/ts3.4/commands/PutVectorBucketPolicyCommand.d.ts +51 -0
  141. package/dist-types/ts3.4/commands/PutVectorsCommand.d.ts +47 -0
  142. package/dist-types/ts3.4/commands/QueryVectorsCommand.d.ts +47 -0
  143. package/dist-types/ts3.4/commands/index.d.ts +16 -0
  144. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  145. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  146. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  147. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  148. package/dist-types/ts3.4/index.d.ts +9 -0
  149. package/dist-types/ts3.4/models/S3VectorsServiceException.d.ts +9 -0
  150. package/dist-types/ts3.4/models/index.d.ts +1 -0
  151. package/dist-types/ts3.4/models/models_0.d.ts +311 -0
  152. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  153. package/dist-types/ts3.4/pagination/ListIndexesPaginator.d.ts +11 -0
  154. package/dist-types/ts3.4/pagination/ListVectorBucketsPaginator.d.ts +11 -0
  155. package/dist-types/ts3.4/pagination/ListVectorsPaginator.d.ts +11 -0
  156. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  157. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +197 -0
  158. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
  159. package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
  160. package/dist-types/ts3.4/runtimeConfig.native.d.ts +95 -0
  161. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  162. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  163. package/package.json +99 -0
@@ -0,0 +1,108 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetIndexInput, GetIndexOutput } from "../models/models_0";
4
+ import { S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3VectorsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetIndexCommand}.
14
+ */
15
+ export interface GetIndexCommandInput extends GetIndexInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetIndexCommand}.
21
+ */
22
+ export interface GetIndexCommandOutput extends GetIndexOutput, __MetadataBearer {
23
+ }
24
+ declare const GetIndexCommand_base: {
25
+ new (input: GetIndexCommandInput): import("@smithy/smithy-client").CommandImpl<GetIndexCommandInput, GetIndexCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetIndexCommandInput]): import("@smithy/smithy-client").CommandImpl<GetIndexCommandInput, GetIndexCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.</p> </note> <p>Returns vector index attributes. To specify the vector index, you can either use both the vector bucket name and the vector index name, or use the vector index Amazon Resource Name (ARN). </p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3vectors:GetIndex</code> permission to use this operation. </p> </dd> </dl>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { S3VectorsClient, GetIndexCommand } from "@aws-sdk/client-s3vectors"; // ES Modules import
35
+ * // const { S3VectorsClient, GetIndexCommand } = require("@aws-sdk/client-s3vectors"); // CommonJS import
36
+ * const client = new S3VectorsClient(config);
37
+ * const input = { // GetIndexInput
38
+ * vectorBucketName: "STRING_VALUE",
39
+ * indexName: "STRING_VALUE",
40
+ * indexArn: "STRING_VALUE",
41
+ * };
42
+ * const command = new GetIndexCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetIndexOutput
45
+ * // index: { // Index
46
+ * // vectorBucketName: "STRING_VALUE", // required
47
+ * // indexName: "STRING_VALUE", // required
48
+ * // indexArn: "STRING_VALUE", // required
49
+ * // creationTime: new Date("TIMESTAMP"), // required
50
+ * // dataType: "float32", // required
51
+ * // dimension: Number("int"), // required
52
+ * // distanceMetric: "euclidean" || "cosine", // required
53
+ * // metadataConfiguration: { // MetadataConfiguration
54
+ * // nonFilterableMetadataKeys: [ // NonFilterableMetadataKeys // required
55
+ * // "STRING_VALUE",
56
+ * // ],
57
+ * // },
58
+ * // },
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param GetIndexCommandInput - {@link GetIndexCommandInput}
64
+ * @returns {@link GetIndexCommandOutput}
65
+ * @see {@link GetIndexCommandInput} for command's `input` shape.
66
+ * @see {@link GetIndexCommandOutput} for command's `response` shape.
67
+ * @see {@link S3VectorsClientResolvedConfig | config} for S3VectorsClient's `config` shape.
68
+ *
69
+ * @throws {@link NotFoundException} (client fault)
70
+ * <p>The request was rejected because the specified resource can't be found.</p>
71
+ *
72
+ * @throws {@link ServiceUnavailableException} (server fault)
73
+ * <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * <p>Access denied.</p>
77
+ *
78
+ * @throws {@link InternalServerException} (server fault)
79
+ * <p>The request failed due to an internal server error.</p>
80
+ *
81
+ * @throws {@link ServiceQuotaExceededException} (client fault)
82
+ * <p>Your request exceeds a service quota. </p>
83
+ *
84
+ * @throws {@link TooManyRequestsException} (client fault)
85
+ * <p>The request was denied due to request throttling.</p>
86
+ *
87
+ * @throws {@link ValidationException} (client fault)
88
+ * <p>The requested action isn't valid.</p>
89
+ *
90
+ * @throws {@link S3VectorsServiceException}
91
+ * <p>Base exception class for all service exceptions from S3Vectors service.</p>
92
+ *
93
+ *
94
+ * @public
95
+ */
96
+ export declare class GetIndexCommand extends GetIndexCommand_base {
97
+ /** @internal type navigation helper, not in runtime. */
98
+ protected static __types: {
99
+ api: {
100
+ input: GetIndexInput;
101
+ output: GetIndexOutput;
102
+ };
103
+ sdk: {
104
+ input: GetIndexCommandInput;
105
+ output: GetIndexCommandOutput;
106
+ };
107
+ };
108
+ }
@@ -0,0 +1,102 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetVectorBucketInput, GetVectorBucketOutput } from "../models/models_0";
4
+ import { S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3VectorsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetVectorBucketCommand}.
14
+ */
15
+ export interface GetVectorBucketCommandInput extends GetVectorBucketInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetVectorBucketCommand}.
21
+ */
22
+ export interface GetVectorBucketCommandOutput extends GetVectorBucketOutput, __MetadataBearer {
23
+ }
24
+ declare const GetVectorBucketCommand_base: {
25
+ new (input: GetVectorBucketCommandInput): import("@smithy/smithy-client").CommandImpl<GetVectorBucketCommandInput, GetVectorBucketCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetVectorBucketCommandInput]): import("@smithy/smithy-client").CommandImpl<GetVectorBucketCommandInput, GetVectorBucketCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.</p> </note> <p>Returns vector bucket attributes. To specify the 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:GetVectorBucket</code> permission to use this operation. </p> </dd> </dl>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { S3VectorsClient, GetVectorBucketCommand } from "@aws-sdk/client-s3vectors"; // ES Modules import
35
+ * // const { S3VectorsClient, GetVectorBucketCommand } = require("@aws-sdk/client-s3vectors"); // CommonJS import
36
+ * const client = new S3VectorsClient(config);
37
+ * const input = { // GetVectorBucketInput
38
+ * vectorBucketName: "STRING_VALUE",
39
+ * vectorBucketArn: "STRING_VALUE",
40
+ * };
41
+ * const command = new GetVectorBucketCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetVectorBucketOutput
44
+ * // vectorBucket: { // VectorBucket
45
+ * // vectorBucketName: "STRING_VALUE", // required
46
+ * // vectorBucketArn: "STRING_VALUE", // required
47
+ * // creationTime: new Date("TIMESTAMP"), // required
48
+ * // encryptionConfiguration: { // EncryptionConfiguration
49
+ * // sseType: "AES256" || "aws:kms",
50
+ * // kmsKeyArn: "STRING_VALUE",
51
+ * // },
52
+ * // },
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param GetVectorBucketCommandInput - {@link GetVectorBucketCommandInput}
58
+ * @returns {@link GetVectorBucketCommandOutput}
59
+ * @see {@link GetVectorBucketCommandInput} for command's `input` shape.
60
+ * @see {@link GetVectorBucketCommandOutput} for command's `response` shape.
61
+ * @see {@link S3VectorsClientResolvedConfig | config} for S3VectorsClient's `config` shape.
62
+ *
63
+ * @throws {@link NotFoundException} (client fault)
64
+ * <p>The request was rejected because the specified resource can't be found.</p>
65
+ *
66
+ * @throws {@link ServiceUnavailableException} (server fault)
67
+ * <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
68
+ *
69
+ * @throws {@link AccessDeniedException} (client fault)
70
+ * <p>Access denied.</p>
71
+ *
72
+ * @throws {@link InternalServerException} (server fault)
73
+ * <p>The request failed due to an internal server error.</p>
74
+ *
75
+ * @throws {@link ServiceQuotaExceededException} (client fault)
76
+ * <p>Your request exceeds a service quota. </p>
77
+ *
78
+ * @throws {@link TooManyRequestsException} (client fault)
79
+ * <p>The request was denied due to request throttling.</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>The requested action isn't valid.</p>
83
+ *
84
+ * @throws {@link S3VectorsServiceException}
85
+ * <p>Base exception class for all service exceptions from S3Vectors service.</p>
86
+ *
87
+ *
88
+ * @public
89
+ */
90
+ export declare class GetVectorBucketCommand extends GetVectorBucketCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: GetVectorBucketInput;
95
+ output: GetVectorBucketOutput;
96
+ };
97
+ sdk: {
98
+ input: GetVectorBucketCommandInput;
99
+ output: GetVectorBucketCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -0,0 +1,94 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetVectorBucketPolicyInput, GetVectorBucketPolicyOutput } from "../models/models_0";
4
+ import { S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3VectorsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetVectorBucketPolicyCommand}.
14
+ */
15
+ export interface GetVectorBucketPolicyCommandInput extends GetVectorBucketPolicyInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetVectorBucketPolicyCommand}.
21
+ */
22
+ export interface GetVectorBucketPolicyCommandOutput extends GetVectorBucketPolicyOutput, __MetadataBearer {
23
+ }
24
+ declare const GetVectorBucketPolicyCommand_base: {
25
+ new (input: GetVectorBucketPolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetVectorBucketPolicyCommandInput, GetVectorBucketPolicyCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetVectorBucketPolicyCommandInput]): import("@smithy/smithy-client").CommandImpl<GetVectorBucketPolicyCommandInput, GetVectorBucketPolicyCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.</p> </note> <p>Gets details about a vector bucket policy. To specify the 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:GetVectorBucketPolicy</code> permission to use this operation. </p> </dd> </dl>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { S3VectorsClient, GetVectorBucketPolicyCommand } from "@aws-sdk/client-s3vectors"; // ES Modules import
35
+ * // const { S3VectorsClient, GetVectorBucketPolicyCommand } = require("@aws-sdk/client-s3vectors"); // CommonJS import
36
+ * const client = new S3VectorsClient(config);
37
+ * const input = { // GetVectorBucketPolicyInput
38
+ * vectorBucketName: "STRING_VALUE",
39
+ * vectorBucketArn: "STRING_VALUE",
40
+ * };
41
+ * const command = new GetVectorBucketPolicyCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetVectorBucketPolicyOutput
44
+ * // policy: "STRING_VALUE",
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param GetVectorBucketPolicyCommandInput - {@link GetVectorBucketPolicyCommandInput}
50
+ * @returns {@link GetVectorBucketPolicyCommandOutput}
51
+ * @see {@link GetVectorBucketPolicyCommandInput} for command's `input` shape.
52
+ * @see {@link GetVectorBucketPolicyCommandOutput} for command's `response` shape.
53
+ * @see {@link S3VectorsClientResolvedConfig | config} for S3VectorsClient's `config` shape.
54
+ *
55
+ * @throws {@link NotFoundException} (client fault)
56
+ * <p>The request was rejected because the specified resource can't be found.</p>
57
+ *
58
+ * @throws {@link ServiceUnavailableException} (server fault)
59
+ * <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
60
+ *
61
+ * @throws {@link AccessDeniedException} (client fault)
62
+ * <p>Access denied.</p>
63
+ *
64
+ * @throws {@link InternalServerException} (server fault)
65
+ * <p>The request failed due to an internal server error.</p>
66
+ *
67
+ * @throws {@link ServiceQuotaExceededException} (client fault)
68
+ * <p>Your request exceeds a service quota. </p>
69
+ *
70
+ * @throws {@link TooManyRequestsException} (client fault)
71
+ * <p>The request was denied due to request throttling.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>The requested action isn't valid.</p>
75
+ *
76
+ * @throws {@link S3VectorsServiceException}
77
+ * <p>Base exception class for all service exceptions from S3Vectors service.</p>
78
+ *
79
+ *
80
+ * @public
81
+ */
82
+ export declare class GetVectorBucketPolicyCommand extends GetVectorBucketPolicyCommand_base {
83
+ /** @internal type navigation helper, not in runtime. */
84
+ protected static __types: {
85
+ api: {
86
+ input: GetVectorBucketPolicyInput;
87
+ output: GetVectorBucketPolicyOutput;
88
+ };
89
+ sdk: {
90
+ input: GetVectorBucketPolicyCommandInput;
91
+ output: GetVectorBucketPolicyCommandOutput;
92
+ };
93
+ };
94
+ }
@@ -0,0 +1,122 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetVectorsInput, GetVectorsOutput } from "../models/models_0";
4
+ import { S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3VectorsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetVectorsCommand}.
14
+ */
15
+ export interface GetVectorsCommandInput extends GetVectorsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetVectorsCommand}.
21
+ */
22
+ export interface GetVectorsCommandOutput extends GetVectorsOutput, __MetadataBearer {
23
+ }
24
+ declare const GetVectorsCommand_base: {
25
+ new (input: GetVectorsCommandInput): import("@smithy/smithy-client").CommandImpl<GetVectorsCommandInput, GetVectorsCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetVectorsCommandInput): import("@smithy/smithy-client").CommandImpl<GetVectorsCommandInput, GetVectorsCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.</p> </note> <p>Returns vector attributes. To specify the vector index, you can either use both the vector bucket name and the vector index name, or use the vector index Amazon Resource Name (ARN). </p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3vectors:GetVectors</code> permission to use this operation. </p> </dd> </dl>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { S3VectorsClient, GetVectorsCommand } from "@aws-sdk/client-s3vectors"; // ES Modules import
35
+ * // const { S3VectorsClient, GetVectorsCommand } = require("@aws-sdk/client-s3vectors"); // CommonJS import
36
+ * const client = new S3VectorsClient(config);
37
+ * const input = { // GetVectorsInput
38
+ * vectorBucketName: "STRING_VALUE",
39
+ * indexName: "STRING_VALUE",
40
+ * indexArn: "STRING_VALUE",
41
+ * keys: [ // GetVectorsInputList // required
42
+ * "STRING_VALUE",
43
+ * ],
44
+ * returnData: true || false,
45
+ * returnMetadata: true || false,
46
+ * };
47
+ * const command = new GetVectorsCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // GetVectorsOutput
50
+ * // vectors: [ // GetVectorsOutputList // required
51
+ * // { // GetOutputVector
52
+ * // key: "STRING_VALUE", // required
53
+ * // data: { // VectorData Union: only one key present
54
+ * // float32: [ // Float32VectorData
55
+ * // Number("float"),
56
+ * // ],
57
+ * // },
58
+ * // metadata: "DOCUMENT_VALUE",
59
+ * // },
60
+ * // ],
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param GetVectorsCommandInput - {@link GetVectorsCommandInput}
66
+ * @returns {@link GetVectorsCommandOutput}
67
+ * @see {@link GetVectorsCommandInput} for command's `input` shape.
68
+ * @see {@link GetVectorsCommandOutput} for command's `response` shape.
69
+ * @see {@link S3VectorsClientResolvedConfig | config} for S3VectorsClient's `config` shape.
70
+ *
71
+ * @throws {@link KmsDisabledException} (client fault)
72
+ * <p>The specified Amazon Web Services KMS key isn't enabled.</p>
73
+ *
74
+ * @throws {@link KmsInvalidKeyUsageException} (client fault)
75
+ * <p>The request was rejected for one of the following reasons: </p> <ul> <li> <p>The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.</p> </li> <li> <p>The encryption algorithm or signing algorithm specified for the operation is incompatible with the type of key material in the KMS key (<code>KeySpec</code>).</p> </li> </ul> <p>For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html#API_Encrypt_Errors">InvalidKeyUsageException</a> in the <i>Amazon Web Services Key Management Service API Reference</i>.</p>
76
+ *
77
+ * @throws {@link KmsInvalidStateException} (client fault)
78
+ * <p>The key state of the KMS key isn't compatible with the operation.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html#API_Encrypt_Errors">KMSInvalidStateException</a> in the <i>Amazon Web Services Key Management Service API Reference</i>.</p>
79
+ *
80
+ * @throws {@link KmsNotFoundException} (client fault)
81
+ * <p>The KMS key can't be found.</p>
82
+ *
83
+ * @throws {@link NotFoundException} (client fault)
84
+ * <p>The request was rejected because the specified resource can't be found.</p>
85
+ *
86
+ * @throws {@link ServiceUnavailableException} (server fault)
87
+ * <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
88
+ *
89
+ * @throws {@link AccessDeniedException} (client fault)
90
+ * <p>Access denied.</p>
91
+ *
92
+ * @throws {@link InternalServerException} (server fault)
93
+ * <p>The request failed due to an internal server error.</p>
94
+ *
95
+ * @throws {@link ServiceQuotaExceededException} (client fault)
96
+ * <p>Your request exceeds a service quota. </p>
97
+ *
98
+ * @throws {@link TooManyRequestsException} (client fault)
99
+ * <p>The request was denied due to request throttling.</p>
100
+ *
101
+ * @throws {@link ValidationException} (client fault)
102
+ * <p>The requested action isn't valid.</p>
103
+ *
104
+ * @throws {@link S3VectorsServiceException}
105
+ * <p>Base exception class for all service exceptions from S3Vectors service.</p>
106
+ *
107
+ *
108
+ * @public
109
+ */
110
+ export declare class GetVectorsCommand extends GetVectorsCommand_base {
111
+ /** @internal type navigation helper, not in runtime. */
112
+ protected static __types: {
113
+ api: {
114
+ input: GetVectorsInput;
115
+ output: GetVectorsOutput;
116
+ };
117
+ sdk: {
118
+ input: GetVectorsCommandInput;
119
+ output: GetVectorsCommandOutput;
120
+ };
121
+ };
122
+ }
@@ -0,0 +1,105 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListIndexesInput, ListIndexesOutput } from "../models/models_0";
4
+ import { S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3VectorsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListIndexesCommand}.
14
+ */
15
+ export interface ListIndexesCommandInput extends ListIndexesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListIndexesCommand}.
21
+ */
22
+ export interface ListIndexesCommandOutput extends ListIndexesOutput, __MetadataBearer {
23
+ }
24
+ declare const ListIndexesCommand_base: {
25
+ new (input: ListIndexesCommandInput): import("@smithy/smithy-client").CommandImpl<ListIndexesCommandInput, ListIndexesCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListIndexesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListIndexesCommandInput, ListIndexesCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.</p> </note> <p>Returns a list of all the vector indexes within the specified vector bucket. To specify the 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:ListIndexes</code> permission to use this operation. </p> </dd> </dl>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { S3VectorsClient, ListIndexesCommand } from "@aws-sdk/client-s3vectors"; // ES Modules import
35
+ * // const { S3VectorsClient, ListIndexesCommand } = require("@aws-sdk/client-s3vectors"); // CommonJS import
36
+ * const client = new S3VectorsClient(config);
37
+ * const input = { // ListIndexesInput
38
+ * vectorBucketName: "STRING_VALUE",
39
+ * vectorBucketArn: "STRING_VALUE",
40
+ * maxResults: Number("int"),
41
+ * nextToken: "STRING_VALUE",
42
+ * prefix: "STRING_VALUE",
43
+ * };
44
+ * const command = new ListIndexesCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // ListIndexesOutput
47
+ * // nextToken: "STRING_VALUE",
48
+ * // indexes: [ // ListIndexesOutputList // required
49
+ * // { // IndexSummary
50
+ * // vectorBucketName: "STRING_VALUE", // required
51
+ * // indexName: "STRING_VALUE", // required
52
+ * // indexArn: "STRING_VALUE", // required
53
+ * // creationTime: new Date("TIMESTAMP"), // required
54
+ * // },
55
+ * // ],
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param ListIndexesCommandInput - {@link ListIndexesCommandInput}
61
+ * @returns {@link ListIndexesCommandOutput}
62
+ * @see {@link ListIndexesCommandInput} for command's `input` shape.
63
+ * @see {@link ListIndexesCommandOutput} for command's `response` shape.
64
+ * @see {@link S3VectorsClientResolvedConfig | config} for S3VectorsClient's `config` shape.
65
+ *
66
+ * @throws {@link NotFoundException} (client fault)
67
+ * <p>The request was rejected because the specified resource can't be found.</p>
68
+ *
69
+ * @throws {@link ServiceUnavailableException} (server fault)
70
+ * <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
71
+ *
72
+ * @throws {@link AccessDeniedException} (client fault)
73
+ * <p>Access denied.</p>
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>The request failed due to an internal server error.</p>
77
+ *
78
+ * @throws {@link ServiceQuotaExceededException} (client fault)
79
+ * <p>Your request exceeds a service quota. </p>
80
+ *
81
+ * @throws {@link TooManyRequestsException} (client fault)
82
+ * <p>The request was denied due to request throttling.</p>
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ * <p>The requested action isn't valid.</p>
86
+ *
87
+ * @throws {@link S3VectorsServiceException}
88
+ * <p>Base exception class for all service exceptions from S3Vectors service.</p>
89
+ *
90
+ *
91
+ * @public
92
+ */
93
+ export declare class ListIndexesCommand extends ListIndexesCommand_base {
94
+ /** @internal type navigation helper, not in runtime. */
95
+ protected static __types: {
96
+ api: {
97
+ input: ListIndexesInput;
98
+ output: ListIndexesOutput;
99
+ };
100
+ sdk: {
101
+ input: ListIndexesCommandInput;
102
+ output: ListIndexesCommandOutput;
103
+ };
104
+ };
105
+ }
@@ -0,0 +1,99 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListVectorBucketsInput, ListVectorBucketsOutput } from "../models/models_0";
4
+ import { S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3VectorsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListVectorBucketsCommand}.
14
+ */
15
+ export interface ListVectorBucketsCommandInput extends ListVectorBucketsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListVectorBucketsCommand}.
21
+ */
22
+ export interface ListVectorBucketsCommandOutput extends ListVectorBucketsOutput, __MetadataBearer {
23
+ }
24
+ declare const ListVectorBucketsCommand_base: {
25
+ new (input: ListVectorBucketsCommandInput): import("@smithy/smithy-client").CommandImpl<ListVectorBucketsCommandInput, ListVectorBucketsCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListVectorBucketsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListVectorBucketsCommandInput, ListVectorBucketsCommandOutput, S3VectorsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <note> <p>Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.</p> </note> <p>Returns a list of all the vector buckets that are owned by the authenticated sender of the request.</p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3vectors:ListVectorBuckets</code> permission to use this operation. </p> </dd> </dl>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { S3VectorsClient, ListVectorBucketsCommand } from "@aws-sdk/client-s3vectors"; // ES Modules import
35
+ * // const { S3VectorsClient, ListVectorBucketsCommand } = require("@aws-sdk/client-s3vectors"); // CommonJS import
36
+ * const client = new S3VectorsClient(config);
37
+ * const input = { // ListVectorBucketsInput
38
+ * maxResults: Number("int"),
39
+ * nextToken: "STRING_VALUE",
40
+ * prefix: "STRING_VALUE",
41
+ * };
42
+ * const command = new ListVectorBucketsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListVectorBucketsOutput
45
+ * // nextToken: "STRING_VALUE",
46
+ * // vectorBuckets: [ // ListVectorBucketsOutputList // required
47
+ * // { // VectorBucketSummary
48
+ * // vectorBucketName: "STRING_VALUE", // required
49
+ * // vectorBucketArn: "STRING_VALUE", // required
50
+ * // creationTime: new Date("TIMESTAMP"), // required
51
+ * // },
52
+ * // ],
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param ListVectorBucketsCommandInput - {@link ListVectorBucketsCommandInput}
58
+ * @returns {@link ListVectorBucketsCommandOutput}
59
+ * @see {@link ListVectorBucketsCommandInput} for command's `input` shape.
60
+ * @see {@link ListVectorBucketsCommandOutput} for command's `response` shape.
61
+ * @see {@link S3VectorsClientResolvedConfig | config} for S3VectorsClient's `config` shape.
62
+ *
63
+ * @throws {@link ServiceUnavailableException} (server fault)
64
+ * <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
65
+ *
66
+ * @throws {@link AccessDeniedException} (client fault)
67
+ * <p>Access denied.</p>
68
+ *
69
+ * @throws {@link InternalServerException} (server fault)
70
+ * <p>The request failed due to an internal server error.</p>
71
+ *
72
+ * @throws {@link ServiceQuotaExceededException} (client fault)
73
+ * <p>Your request exceeds a service quota. </p>
74
+ *
75
+ * @throws {@link TooManyRequestsException} (client fault)
76
+ * <p>The request was denied due to request throttling.</p>
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ * <p>The requested action isn't valid.</p>
80
+ *
81
+ * @throws {@link S3VectorsServiceException}
82
+ * <p>Base exception class for all service exceptions from S3Vectors service.</p>
83
+ *
84
+ *
85
+ * @public
86
+ */
87
+ export declare class ListVectorBucketsCommand extends ListVectorBucketsCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: ListVectorBucketsInput;
92
+ output: ListVectorBucketsOutput;
93
+ };
94
+ sdk: {
95
+ input: ListVectorBucketsCommandInput;
96
+ output: ListVectorBucketsCommandOutput;
97
+ };
98
+ };
99
+ }