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 [`CreateMedicalVocabulary`](crate::operation::create_medical_vocabulary::builders::CreateMedicalVocabularyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`vocabulary_name(impl Into<String>)`](crate::operation::create_medical_vocabulary::builders::CreateMedicalVocabularyFluentBuilder::vocabulary_name) / [`set_vocabulary_name(Option<String>)`](crate::operation::create_medical_vocabulary::builders::CreateMedicalVocabularyFluentBuilder::set_vocabulary_name):<br>required: **true**<br><p>A unique name, chosen by you, for your new custom medical vocabulary.</p> <p>This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If you try to create a new custom medical vocabulary with the same name as an existing custom medical vocabulary, you get a <code>ConflictException</code> error.</p><br>
    ///   - [`language_code(LanguageCode)`](crate::operation::create_medical_vocabulary::builders::CreateMedicalVocabularyFluentBuilder::language_code) / [`set_language_code(Option<LanguageCode>)`](crate::operation::create_medical_vocabulary::builders::CreateMedicalVocabularyFluentBuilder::set_language_code):<br>required: **true**<br><p>The language code that represents the language of the entries in your custom vocabulary. US English (<code>en-US</code>) is the only language supported with Amazon Transcribe Medical.</p><br>
    ///   - [`vocabulary_file_uri(impl Into<String>)`](crate::operation::create_medical_vocabulary::builders::CreateMedicalVocabularyFluentBuilder::vocabulary_file_uri) / [`set_vocabulary_file_uri(Option<String>)`](crate::operation::create_medical_vocabulary::builders::CreateMedicalVocabularyFluentBuilder::set_vocabulary_file_uri):<br>required: **true**<br><p>The Amazon S3 location (URI) of the text file that contains your custom medical vocabulary. The URI must be in the same Amazon Web Services Region as the resource you're calling.</p> <p>Here's an example URI path: <code>s3://DOC-EXAMPLE-BUCKET/my-vocab-file.txt</code></p><br>
    ///   - [`tags(Tag)`](crate::operation::create_medical_vocabulary::builders::CreateMedicalVocabularyFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_medical_vocabulary::builders::CreateMedicalVocabularyFluentBuilder::set_tags):<br>required: **false**<br><p>Adds one or more custom tags, each in the form of a key:value pair, to a new custom medical vocabulary at the time you create this new custom vocabulary.</p> <p>To learn more about using tags with Amazon Transcribe, refer to <a href="https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html">Tagging resources</a>.</p><br>
    /// - On success, responds with [`CreateMedicalVocabularyOutput`](crate::operation::create_medical_vocabulary::CreateMedicalVocabularyOutput) with field(s):
    ///   - [`vocabulary_name(Option<String>)`](crate::operation::create_medical_vocabulary::CreateMedicalVocabularyOutput::vocabulary_name): <p>The name you chose for your custom medical vocabulary.</p>
    ///   - [`language_code(Option<LanguageCode>)`](crate::operation::create_medical_vocabulary::CreateMedicalVocabularyOutput::language_code): <p>The language code you selected for your custom medical vocabulary. US English (<code>en-US</code>) is the only language supported with Amazon Transcribe Medical.</p>
    ///   - [`vocabulary_state(Option<VocabularyState>)`](crate::operation::create_medical_vocabulary::CreateMedicalVocabularyOutput::vocabulary_state): <p>The processing state of your custom medical vocabulary. If the state is <code>READY</code>, you can use the custom vocabulary in a <code>StartMedicalTranscriptionJob</code> request.</p>
    ///   - [`last_modified_time(Option<DateTime>)`](crate::operation::create_medical_vocabulary::CreateMedicalVocabularyOutput::last_modified_time): <p>The date and time you created your custom medical vocabulary.</p> <p>Timestamps are in the format <code>YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC</code>. For example, <code>2022-05-04T12:32:58.761000-07:00</code> represents 12:32 PM UTC-7 on May 4, 2022.</p>
    ///   - [`failure_reason(Option<String>)`](crate::operation::create_medical_vocabulary::CreateMedicalVocabularyOutput::failure_reason): <p>If <code>VocabularyState</code> is <code>FAILED</code>, <code>FailureReason</code> contains information about why the medical transcription job request failed. See also: <a href="https://docs.aws.amazon.com/transcribe/latest/APIReference/CommonErrors.html">Common Errors</a>.</p>
    /// - On failure, responds with [`SdkError<CreateMedicalVocabularyError>`](crate::operation::create_medical_vocabulary::CreateMedicalVocabularyError)
    pub fn create_medical_vocabulary(&self) -> crate::operation::create_medical_vocabulary::builders::CreateMedicalVocabularyFluentBuilder {
        crate::operation::create_medical_vocabulary::builders::CreateMedicalVocabularyFluentBuilder::new(self.handle.clone())
    }
}