aws_sdk_bedrockagentruntime/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 /// - [`session_identifier(impl Into<String>)`](crate::operation::delete_session::builders::DeleteSessionFluentBuilder::session_identifier) / [`set_session_identifier(Option<String>)`](crate::operation::delete_session::builders::DeleteSessionFluentBuilder::set_session_identifier):<br>required: **true**<br><p>The unique identifier for the session to be deleted. You can specify either the session's <code>sessionId</code> or its Amazon Resource Name (ARN).</p><br>
7 /// - On success, responds with [`DeleteSessionOutput`](crate::operation::delete_session::DeleteSessionOutput)
8 /// - On failure, responds with [`SdkError<DeleteSessionError>`](crate::operation::delete_session::DeleteSessionError)
9 pub fn delete_session(&self) -> crate::operation::delete_session::builders::DeleteSessionFluentBuilder {
10 crate::operation::delete_session::builders::DeleteSessionFluentBuilder::new(self.handle.clone())
11 }
12}