1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetIndex`](crate::operation::get_index::builders::GetIndexFluentBuilder) operation.
    ///
    /// - The fluent builder takes no input, just [`send`](crate::operation::get_index::builders::GetIndexFluentBuilder::send) it.
    /// - On success, responds with [`GetIndexOutput`](crate::operation::get_index::GetIndexOutput) with field(s):
    ///   - [`arn(Option<String>)`](crate::operation::get_index::GetIndexOutput::arn): <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the index.</p>
    ///   - [`r#type(Option<IndexType>)`](crate::operation::get_index::GetIndexOutput::type): <p>The type of the index in this Region. For information about the aggregator index and how it differs from a local index, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-aggregator-region.html">Turning on cross-Region search by creating an aggregator index</a>.</p>
    ///   - [`state(Option<IndexState>)`](crate::operation::get_index::GetIndexOutput::state): <p>The current state of the index in this Amazon Web Services Region.</p>
    ///   - [`replicating_from(Option<Vec::<String>>)`](crate::operation::get_index::GetIndexOutput::replicating_from): <p>This response value is present only if this index is <code>Type=AGGREGATOR</code>.</p> <p>A list of the Amazon Web Services Regions that replicate their content to the index in this Region.</p>
    ///   - [`replicating_to(Option<Vec::<String>>)`](crate::operation::get_index::GetIndexOutput::replicating_to): <p>This response value is present only if this index is <code>Type=LOCAL</code>.</p> <p>The Amazon Web Services Region that contains the aggregator index, if one exists. If an aggregator index does exist then the Region in which you called this operation replicates its index information to the Region specified in this response value.</p>
    ///   - [`created_at(Option<DateTime>)`](crate::operation::get_index::GetIndexOutput::created_at): <p>The date and time when the index was originally created.</p>
    ///   - [`last_updated_at(Option<DateTime>)`](crate::operation::get_index::GetIndexOutput::last_updated_at): <p>The date and time when the index was last updated.</p>
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_index::GetIndexOutput::tags): <p>Tag key and value pairs that are attached to the index.</p>
    /// - On failure, responds with [`SdkError<GetIndexError>`](crate::operation::get_index::GetIndexError)
    pub fn get_index(&self) -> crate::operation::get_index::builders::GetIndexFluentBuilder {
        crate::operation::get_index::builders::GetIndexFluentBuilder::new(self.handle.clone())
    }
}