aws-sdk-opensearchserverless 1.102.0

AWS SDK for OpenSearch Service Serverless
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateIndex`](crate::operation::create_index::builders::CreateIndexFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`id(impl Into<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_id):<br>required: **true**<br><p>The unique identifier of the collection in which to create the index.</p><br>
    ///   - [`index_name(impl Into<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::index_name) / [`set_index_name(Option<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_index_name):<br>required: **true**<br><p>The name of the index to create. Index names must be lowercase and can't begin with underscores (_) or hyphens (-).</p><br>
    ///   - [`index_schema(Document)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::index_schema) / [`set_index_schema(Option<Document>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_index_schema):<br>required: **false**<br><p>The JSON schema definition for the index, including field mappings and settings.</p><br>
    /// - On success, responds with [`CreateIndexOutput`](crate::operation::create_index::CreateIndexOutput)
    /// - On failure, responds with [`SdkError<CreateIndexError>`](crate::operation::create_index::CreateIndexError)
    pub fn create_index(&self) -> crate::operation::create_index::builders::CreateIndexFluentBuilder {
        crate::operation::create_index::builders::CreateIndexFluentBuilder::new(self.handle.clone())
    }
}