aws_sdk_elementalinference/client/create_dictionary.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 [`CreateDictionary`](crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - [`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>
10 /// - On success, responds with [`CreateDictionaryOutput`](crate::operation::create_dictionary::CreateDictionaryOutput) with field(s):
11 /// - [`name(String)`](crate::operation::create_dictionary::CreateDictionaryOutput::name): <p>The name that you specified in the request.</p>
12 /// - [`arn(String)`](crate::operation::create_dictionary::CreateDictionaryOutput::arn): <p>The ARN of the dictionary.</p>
13 /// - [`id(String)`](crate::operation::create_dictionary::CreateDictionaryOutput::id): <p>A unique ID that Elemental Inference assigns to the dictionary.</p>
14 /// - [`language(DictionaryLanguage)`](crate::operation::create_dictionary::CreateDictionaryOutput::language): <p>The language of the dictionary.</p>
15 /// - [`status(DictionaryStatus)`](crate::operation::create_dictionary::CreateDictionaryOutput::status): <p>The current status of the dictionary. After creation succeeds, the status will be AVAILABLE.</p>
16 /// - [`references(Option<Vec::<String>>)`](crate::operation::create_dictionary::CreateDictionaryOutput::references): <p>A list of feed IDs that reference this dictionary.</p>
17 /// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_dictionary::CreateDictionaryOutput::tags): <p>Any tags that you included when you created the dictionary.</p>
18 /// - On failure, responds with [`SdkError<CreateDictionaryError>`](crate::operation::create_dictionary::CreateDictionaryError)
19 pub fn create_dictionary(&self) -> crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder {
20 crate::operation::create_dictionary::builders::CreateDictionaryFluentBuilder::new(self.handle.clone())
21 }
22}