// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateFaq`](crate::operation::create_faq::builders::CreateFaqFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`index_id(impl Into<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::index_id) / [`set_index_id(Option<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::set_index_id):<br>required: **true**<br><p>The identifier of the index for the FAQ.</p><br>
/// - [`name(impl Into<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::set_name):<br>required: **true**<br><p>A name for the FAQ.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::set_description):<br>required: **false**<br><p>A description for the FAQ.</p><br>
/// - [`s3_path(S3Path)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::s3_path) / [`set_s3_path(Option<S3Path>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::set_s3_path):<br>required: **true**<br><p>The path to the FAQ file in S3.</p><br>
/// - [`role_arn(impl Into<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::set_role_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the FAQs. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html">IAM access roles for Amazon Kendra</a>.</p><br>
/// - [`tags(Tag)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::set_tags):<br>required: **false**<br><p>A list of key-value pairs that identify the FAQ. You can use the tags to identify and organize your resources and to control access to resources.</p><br>
/// - [`file_format(FaqFileFormat)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::file_format) / [`set_file_format(Option<FaqFileFormat>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::set_file_format):<br>required: **false**<br><p>The format of the FAQ input file. You can choose between a basic CSV format, a CSV format that includes customs attributes in a header, and a JSON format that includes custom attributes.</p> <p>The default format is CSV.</p> <p>The format must match the format of the file stored in the S3 bucket identified in the <code>S3Path</code> parameter.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/in-creating-faq.html">Adding questions and answers</a>.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::set_client_token):<br>required: **false**<br><p>A token that you provide to identify the request to create a FAQ. Multiple calls to the <code>CreateFaqRequest</code> API with the same client token will create only one FAQ.</p><br>
/// - [`language_code(impl Into<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::language_code) / [`set_language_code(Option<String>)`](crate::operation::create_faq::builders::CreateFaqFluentBuilder::set_language_code):<br>required: **false**<br><p>The code for a language. This allows you to support a language for the FAQ document. English is supported by default. For more information on supported languages, including their codes, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html">Adding documents in languages other than English</a>.</p><br>
/// - On success, responds with [`CreateFaqOutput`](crate::operation::create_faq::CreateFaqOutput) with field(s):
/// - [`id(Option<String>)`](crate::operation::create_faq::CreateFaqOutput::id): <p>The identifier of the FAQ.</p>
/// - On failure, responds with [`SdkError<CreateFaqError>`](crate::operation::create_faq::CreateFaqError)
pub fn create_faq(&self) -> crate::operation::create_faq::builders::CreateFaqFluentBuilder {
crate::operation::create_faq::builders::CreateFaqFluentBuilder::new(self.handle.clone())
}
}