aws_sdk_kendra/client/update_thesaurus.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 [`UpdateThesaurus`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`id(impl Into<String>)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::set_id):<br>required: **true**<br><p>The identifier of the thesaurus you want to update.</p><br>
7 /// - [`name(impl Into<String>)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::set_name):<br>required: **false**<br><p>A new name for the thesaurus.</p><br>
8 /// - [`index_id(impl Into<String>)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::index_id) / [`set_index_id(Option<String>)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::set_index_id):<br>required: **true**<br><p>The identifier of the index for the thesaurus.</p><br>
9 /// - [`description(impl Into<String>)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::set_description):<br>required: **false**<br><p>A new description for the thesaurus.</p><br>
10 /// - [`role_arn(impl Into<String>)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::set_role_arn):<br>required: **false**<br><p>An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in <code>SourceS3Path</code>.</p><br>
11 /// - [`source_s3_path(S3Path)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::source_s3_path) / [`set_source_s3_path(Option<S3Path>)`](crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::set_source_s3_path):<br>required: **false**<br><p>Information required to find a specific file in an Amazon S3 bucket.</p><br>
12 /// - On success, responds with [`UpdateThesaurusOutput`](crate::operation::update_thesaurus::UpdateThesaurusOutput)
13 /// - On failure, responds with [`SdkError<UpdateThesaurusError>`](crate::operation::update_thesaurus::UpdateThesaurusError)
14 pub fn update_thesaurus(&self) -> crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder {
15 crate::operation::update_thesaurus::builders::UpdateThesaurusFluentBuilder::new(self.handle.clone())
16 }
17}