aws_sdk_lexruntimev2/client/
delete_session.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 [`DeleteSession`](crate::operation::delete_session::builders::DeleteSessionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`bot_id(impl Into<String>)`](crate::operation::delete_session::builders::DeleteSessionFluentBuilder::bot_id) / [`set_bot_id(Option<String>)`](crate::operation::delete_session::builders::DeleteSessionFluentBuilder::set_bot_id):<br>required: **true**<br><p>The identifier of the bot that contains the session data.</p><br>
7    ///   - [`bot_alias_id(impl Into<String>)`](crate::operation::delete_session::builders::DeleteSessionFluentBuilder::bot_alias_id) / [`set_bot_alias_id(Option<String>)`](crate::operation::delete_session::builders::DeleteSessionFluentBuilder::set_bot_alias_id):<br>required: **true**<br><p>The alias identifier in use for the bot that contains the session data.</p><br>
8    ///   - [`locale_id(impl Into<String>)`](crate::operation::delete_session::builders::DeleteSessionFluentBuilder::locale_id) / [`set_locale_id(Option<String>)`](crate::operation::delete_session::builders::DeleteSessionFluentBuilder::set_locale_id):<br>required: **true**<br><p>The locale where the session is in use.</p><br>
9    ///   - [`session_id(impl Into<String>)`](crate::operation::delete_session::builders::DeleteSessionFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::delete_session::builders::DeleteSessionFluentBuilder::set_session_id):<br>required: **true**<br><p>The identifier of the session to delete.</p><br>
10    /// - On success, responds with [`DeleteSessionOutput`](crate::operation::delete_session::DeleteSessionOutput) with field(s):
11    ///   - [`bot_id(Option<String>)`](crate::operation::delete_session::DeleteSessionOutput::bot_id): <p>The identifier of the bot that contained the session data.</p>
12    ///   - [`bot_alias_id(Option<String>)`](crate::operation::delete_session::DeleteSessionOutput::bot_alias_id): <p>The alias identifier in use for the bot that contained the session data.</p>
13    ///   - [`locale_id(Option<String>)`](crate::operation::delete_session::DeleteSessionOutput::locale_id): <p>The locale where the session was used.</p>
14    ///   - [`session_id(Option<String>)`](crate::operation::delete_session::DeleteSessionOutput::session_id): <p>The identifier of the deleted session.</p>
15    /// - On failure, responds with [`SdkError<DeleteSessionError>`](crate::operation::delete_session::DeleteSessionError)
16    pub fn delete_session(&self) -> crate::operation::delete_session::builders::DeleteSessionFluentBuilder {
17        crate::operation::delete_session::builders::DeleteSessionFluentBuilder::new(self.handle.clone())
18    }
19}