aws_sdk_opensearch/client/get_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 [`GetIndex`](crate::operation::get_index::builders::GetIndexFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`domain_name(impl Into<String>)`](crate::operation::get_index::builders::GetIndexFluentBuilder::domain_name) / [`set_domain_name(Option<String>)`](crate::operation::get_index::builders::GetIndexFluentBuilder::set_domain_name):<br>required: **true**<br><p>The name of an OpenSearch Service domain. Domain names are unique across the domains owned by an account within an Amazon Web Services Region.</p><br>
7 /// - [`index_name(impl Into<String>)`](crate::operation::get_index::builders::GetIndexFluentBuilder::index_name) / [`set_index_name(Option<String>)`](crate::operation::get_index::builders::GetIndexFluentBuilder::set_index_name):<br>required: **true**<br><p>The name of the index to retrieve information about.</p><br>
8 /// - On success, responds with [`GetIndexOutput`](crate::operation::get_index::GetIndexOutput) with field(s):
9 /// - [`index_schema(Document)`](crate::operation::get_index::GetIndexOutput::index_schema): <p>The JSON schema of the index including mappings, settings, and semantic enrichment configuration.</p>
10 /// - On failure, responds with [`SdkError<GetIndexError>`](crate::operation::get_index::GetIndexError)
11 pub fn get_index(&self) -> crate::operation::get_index::builders::GetIndexFluentBuilder {
12 crate::operation::get_index::builders::GetIndexFluentBuilder::new(self.handle.clone())
13 }
14}