aws_sdk_polly/client/
put_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 [`PutLexicon`](crate::operation::put_lexicon::builders::PutLexiconFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::put_lexicon::builders::PutLexiconFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::put_lexicon::builders::PutLexiconFluentBuilder::set_name):<br>required: **true**<br><p>Name of the lexicon. The name must follow the regular express format \[0-9A-Za-z\]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.</p><br>
7    ///   - [`content(impl Into<String>)`](crate::operation::put_lexicon::builders::PutLexiconFluentBuilder::content) / [`set_content(Option<String>)`](crate::operation::put_lexicon::builders::PutLexiconFluentBuilder::set_content):<br>required: **true**<br><p>Content of the PLS lexicon as string data.</p><br>
8    /// - On success, responds with [`PutLexiconOutput`](crate::operation::put_lexicon::PutLexiconOutput)
9    /// - On failure, responds with [`SdkError<PutLexiconError>`](crate::operation::put_lexicon::PutLexiconError)
10    pub fn put_lexicon(&self) -> crate::operation::put_lexicon::builders::PutLexiconFluentBuilder {
11        crate::operation::put_lexicon::builders::PutLexiconFluentBuilder::new(self.handle.clone())
12    }
13}