aws_sdk_lexmodelbuilding/client/delete_intent_version.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 [`DeleteIntentVersion`](crate::operation::delete_intent_version::builders::DeleteIntentVersionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::delete_intent_version::builders::DeleteIntentVersionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::delete_intent_version::builders::DeleteIntentVersionFluentBuilder::set_name):<br>required: **true**<br><p>The name of the intent.</p><br>
7 /// - [`version(impl Into<String>)`](crate::operation::delete_intent_version::builders::DeleteIntentVersionFluentBuilder::version) / [`set_version(Option<String>)`](crate::operation::delete_intent_version::builders::DeleteIntentVersionFluentBuilder::set_version):<br>required: **true**<br><p>The version of the intent to delete. You cannot delete the <code>$LATEST</code> version of the intent. To delete the <code>$LATEST</code> version, use the <code>DeleteIntent</code> operation.</p><br>
8 /// - On success, responds with [`DeleteIntentVersionOutput`](crate::operation::delete_intent_version::DeleteIntentVersionOutput)
9 /// - On failure, responds with [`SdkError<DeleteIntentVersionError>`](crate::operation::delete_intent_version::DeleteIntentVersionError)
10 pub fn delete_intent_version(&self) -> crate::operation::delete_intent_version::builders::DeleteIntentVersionFluentBuilder {
11 crate::operation::delete_intent_version::builders::DeleteIntentVersionFluentBuilder::new(self.handle.clone())
12 }
13}