aws_sdk_polly/client/get_lexicon.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 [`GetLexicon`](crate::operation::get_lexicon::builders::GetLexiconFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::get_lexicon::builders::GetLexiconFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_lexicon::builders::GetLexiconFluentBuilder::set_name):<br>required: **true**<br><p>Name of the lexicon.</p><br>
7 /// - On success, responds with [`GetLexiconOutput`](crate::operation::get_lexicon::GetLexiconOutput) with field(s):
8 /// - [`lexicon(Option<Lexicon>)`](crate::operation::get_lexicon::GetLexiconOutput::lexicon): <p>Lexicon object that provides name and the string content of the lexicon.</p>
9 /// - [`lexicon_attributes(Option<LexiconAttributes>)`](crate::operation::get_lexicon::GetLexiconOutput::lexicon_attributes): <p>Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.</p>
10 /// - On failure, responds with [`SdkError<GetLexiconError>`](crate::operation::get_lexicon::GetLexiconError)
11 pub fn get_lexicon(&self) -> crate::operation::get_lexicon::builders::GetLexiconFluentBuilder {
12 crate::operation::get_lexicon::builders::GetLexiconFluentBuilder::new(self.handle.clone())
13 }
14}