1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateVocabulary`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>. If a create request is received more than once with same client token, subsequent requests return the previous response without creating a vocabulary again.</p><br>
    ///   - [`instance_id(impl Into<String>)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p><br>
    ///   - [`vocabulary_name(impl Into<String>)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::vocabulary_name) / [`set_vocabulary_name(Option<String>)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::set_vocabulary_name):<br>required: **true**<br><p>A unique name of the custom vocabulary.</p><br>
    ///   - [`language_code(VocabularyLanguageCode)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::language_code) / [`set_language_code(Option<VocabularyLanguageCode>)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::set_language_code):<br>required: **true**<br><p>The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-whatis.html">What is Amazon Transcribe?</a></p><br>
    ///   - [`content(impl Into<String>)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::content) / [`set_content(Option<String>)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::set_content):<br>required: **true**<br><p>The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with <code>Phrase</code>, <code>IPA</code>, <code>SoundsLike</code>, and <code>DisplayAs</code> fields. Separate the fields with TAB characters. The size limit is 50KB. For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html#create-vocabulary-table">Create a custom vocabulary using a table</a>.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::set_tags):<br>required: **false**<br><p>The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.</p><br>
    /// - On success, responds with [`CreateVocabularyOutput`](crate::operation::create_vocabulary::CreateVocabularyOutput) with field(s):
    ///   - [`vocabulary_arn(String)`](crate::operation::create_vocabulary::CreateVocabularyOutput::vocabulary_arn): <p>The Amazon Resource Name (ARN) of the custom vocabulary.</p>
    ///   - [`vocabulary_id(String)`](crate::operation::create_vocabulary::CreateVocabularyOutput::vocabulary_id): <p>The identifier of the custom vocabulary.</p>
    ///   - [`state(VocabularyState)`](crate::operation::create_vocabulary::CreateVocabularyOutput::state): <p>The current state of the custom vocabulary.</p>
    /// - On failure, responds with [`SdkError<CreateVocabularyError>`](crate::operation::create_vocabulary::CreateVocabularyError)
    pub fn create_vocabulary(&self) -> crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder {
        crate::operation::create_vocabulary::builders::CreateVocabularyFluentBuilder::new(self.handle.clone())
    }
}