aws-sdk-elementalinference 1.5.0

AWS SDK for AWS Elemental Inference
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateDictionary`](crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder::set_name):<br>required: **true**<br><p>A user-friendly name for this dictionary.</p><br>
    ///   - [`language(DictionaryLanguage)`](crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder::language) / [`set_language(Option<DictionaryLanguage>)`](crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder::set_language):<br>required: **true**<br><p>The language of the dictionary entries. Specify the language using an ISO 639-2/T three-letter code. Supported values: eng, fra, ita, deu, spa, por.</p><br>
    ///   - [`entries(impl Into<String>)`](crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder::entries) / [`set_entries(Option<String>)`](crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder::set_entries):<br>required: **false**<br><p>The dictionary entries payload. Contains the custom words and phrases for the dictionary. Maximum size is 40,960 characters.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder::set_tags):<br>required: **false**<br><p>Optional tags to associate with the dictionary.</p><br>
    /// - On success, responds with [`CreateDictionaryOutput`](crate::operation::create_dictionary::CreateDictionaryOutput) with field(s):
    ///   - [`name(String)`](crate::operation::create_dictionary::CreateDictionaryOutput::name): <p>The name that you specified in the request.</p>
    ///   - [`arn(String)`](crate::operation::create_dictionary::CreateDictionaryOutput::arn): <p>The ARN of the dictionary.</p>
    ///   - [`id(String)`](crate::operation::create_dictionary::CreateDictionaryOutput::id): <p>A unique ID that Elemental Inference assigns to the dictionary.</p>
    ///   - [`language(DictionaryLanguage)`](crate::operation::create_dictionary::CreateDictionaryOutput::language): <p>The language of the dictionary.</p>
    ///   - [`status(DictionaryStatus)`](crate::operation::create_dictionary::CreateDictionaryOutput::status): <p>The current status of the dictionary. After creation succeeds, the status will be AVAILABLE.</p>
    ///   - [`references(Option<Vec::<String>>)`](crate::operation::create_dictionary::CreateDictionaryOutput::references): <p>A list of feed IDs that reference this dictionary.</p>
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_dictionary::CreateDictionaryOutput::tags): <p>Any tags that you included when you created the dictionary.</p>
    /// - On failure, responds with [`SdkError<CreateDictionaryError>`](crate::operation::create_dictionary::CreateDictionaryError)
    pub fn create_dictionary(&self) -> crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder {
        crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder::new(self.handle.clone())
    }
}