1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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:
    ///   - [`directory_arn(impl Into<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::directory_arn) / [`set_directory_arn(Option<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_directory_arn):<br>required: **true**<br><p>The ARN of the directory where the index should be created.</p><br>
    ///   - [`ordered_indexed_attribute_list(AttributeKey)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::ordered_indexed_attribute_list) / [`set_ordered_indexed_attribute_list(Option<Vec::<AttributeKey>>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_ordered_indexed_attribute_list):<br>required: **true**<br><p>Specifies the attributes that should be indexed on. Currently only a single attribute is supported.</p><br>
    ///   - [`is_unique(bool)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::is_unique) / [`set_is_unique(Option<bool>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_is_unique):<br>required: **true**<br><p>Indicates whether the attribute that is being indexed has unique values or not.</p><br>
    ///   - [`parent_reference(ObjectReference)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::parent_reference) / [`set_parent_reference(Option<ObjectReference>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_parent_reference):<br>required: **false**<br><p>A reference to the parent object that contains the index object.</p><br>
    ///   - [`link_name(impl Into<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::link_name) / [`set_link_name(Option<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_link_name):<br>required: **false**<br><p>The name of the link between the parent object and the index object.</p><br>
    /// - On success, responds with [`CreateIndexOutput`](crate::operation::create_index::CreateIndexOutput) with field(s):
    ///   - [`object_identifier(Option<String>)`](crate::operation::create_index::CreateIndexOutput::object_identifier): <p>The <code>ObjectIdentifier</code> of the index created by this operation.</p>
    /// - 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())
    }
}