aws_sdk_polly/client/
delete_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 [`DeleteLexicon`](crate::operation::delete_lexicon::builders::DeleteLexiconFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::delete_lexicon::builders::DeleteLexiconFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::delete_lexicon::builders::DeleteLexiconFluentBuilder::set_name):<br>required: **true**<br><p>The name of the lexicon to delete. Must be an existing lexicon in the region.</p><br>
7    /// - On success, responds with [`DeleteLexiconOutput`](crate::operation::delete_lexicon::DeleteLexiconOutput)
8    /// - On failure, responds with [`SdkError<DeleteLexiconError>`](crate::operation::delete_lexicon::DeleteLexiconError)
9    pub fn delete_lexicon(&self) -> crate::operation::delete_lexicon::builders::DeleteLexiconFluentBuilder {
10        crate::operation::delete_lexicon::builders::DeleteLexiconFluentBuilder::new(self.handle.clone())
11    }
12}