aws_sdk_cloudsearch/client/
index_documents.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 [`IndexDocuments`](crate::operation::index_documents::builders::IndexDocumentsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`domain_name(impl Into<String>)`](crate::operation::index_documents::builders::IndexDocumentsFluentBuilder::domain_name) / [`set_domain_name(Option<String>)`](crate::operation::index_documents::builders::IndexDocumentsFluentBuilder::set_domain_name):<br>required: **true**<br><p>A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).</p><br>
7    /// - On success, responds with [`IndexDocumentsOutput`](crate::operation::index_documents::IndexDocumentsOutput) with field(s):
8    ///   - [`field_names(Option<Vec::<String>>)`](crate::operation::index_documents::IndexDocumentsOutput::field_names): <p>The names of the fields that are currently being indexed.</p>
9    /// - On failure, responds with [`SdkError<IndexDocumentsError>`](crate::operation::index_documents::IndexDocumentsError)
10    pub fn index_documents(&self) -> crate::operation::index_documents::builders::IndexDocumentsFluentBuilder {
11        crate::operation::index_documents::builders::IndexDocumentsFluentBuilder::new(self.handle.clone())
12    }
13}