aws_sdk_opensearchserverless/client/
update_index.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 [`UpdateIndex`](crate::operation::update_index::builders::UpdateIndexFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::update_index::builders::UpdateIndexFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::update_index::builders::UpdateIndexFluentBuilder::set_id):<br>required: **true**<br><p>The unique identifier of the collection containing the index to update.</p><br>
7    ///   - [`index_name(impl Into<String>)`](crate::operation::update_index::builders::UpdateIndexFluentBuilder::index_name) / [`set_index_name(Option<String>)`](crate::operation::update_index::builders::UpdateIndexFluentBuilder::set_index_name):<br>required: **true**<br><p>The name of the index to update.</p><br>
8    ///   - [`index_schema(Document)`](crate::operation::update_index::builders::UpdateIndexFluentBuilder::index_schema) / [`set_index_schema(Option<Document>)`](crate::operation::update_index::builders::UpdateIndexFluentBuilder::set_index_schema):<br>required: **false**<br><p>The updated JSON schema definition for the index, including field mappings and settings.</p><br>
9    /// - On success, responds with [`UpdateIndexOutput`](crate::operation::update_index::UpdateIndexOutput)
10    /// - On failure, responds with [`SdkError<UpdateIndexError>`](crate::operation::update_index::UpdateIndexError)
11    pub fn update_index(&self) -> crate::operation::update_index::builders::UpdateIndexFluentBuilder {
12        crate::operation::update_index::builders::UpdateIndexFluentBuilder::new(self.handle.clone())
13    }
14}