aws_sdk_s3vectors/client/
put_vectors.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`PutVectors`](crate::operation::put_vectors::builders::PutVectorsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`vector_bucket_name(impl Into<String>)`](crate::operation::put_vectors::builders::PutVectorsFluentBuilder::vector_bucket_name) / [`set_vector_bucket_name(Option<String>)`](crate::operation::put_vectors::builders::PutVectorsFluentBuilder::set_vector_bucket_name):<br>required: **false**<br><p>The name of the vector bucket that contains the vector index.</p><br>
7    ///   - [`index_name(impl Into<String>)`](crate::operation::put_vectors::builders::PutVectorsFluentBuilder::index_name) / [`set_index_name(Option<String>)`](crate::operation::put_vectors::builders::PutVectorsFluentBuilder::set_index_name):<br>required: **false**<br><p>The name of the vector index where you want to write vectors.</p><br>
8    ///   - [`index_arn(impl Into<String>)`](crate::operation::put_vectors::builders::PutVectorsFluentBuilder::index_arn) / [`set_index_arn(Option<String>)`](crate::operation::put_vectors::builders::PutVectorsFluentBuilder::set_index_arn):<br>required: **false**<br><p>The ARN of the vector index where you want to write vectors.</p><br>
9    ///   - [`vectors(PutInputVector)`](crate::operation::put_vectors::builders::PutVectorsFluentBuilder::vectors) / [`set_vectors(Option<Vec::<PutInputVector>>)`](crate::operation::put_vectors::builders::PutVectorsFluentBuilder::set_vectors):<br>required: **true**<br><p>The vectors to add to a vector index. The number of vectors in a single request must not exceed the resource capacity, otherwise the request will be rejected with the error <code>ServiceUnavailableException</code> with the error message "Currently unable to handle the request".</p><br>
10    /// - On success, responds with [`PutVectorsOutput`](crate::operation::put_vectors::PutVectorsOutput)
11    /// - On failure, responds with [`SdkError<PutVectorsError>`](crate::operation::put_vectors::PutVectorsError)
12    pub fn put_vectors(&self) -> crate::operation::put_vectors::builders::PutVectorsFluentBuilder {
13        crate::operation::put_vectors::builders::PutVectorsFluentBuilder::new(self.handle.clone())
14    }
15}