Skip to main content

aws_sdk_bedrockagentcorecontrol/client/
get_memory.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 [`GetMemory`](crate::operation::get_memory::builders::GetMemoryFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`memory_id(impl Into<String>)`](crate::operation::get_memory::builders::GetMemoryFluentBuilder::memory_id) / [`set_memory_id(Option<String>)`](crate::operation::get_memory::builders::GetMemoryFluentBuilder::set_memory_id):<br>required: **true**<br><p>The unique identifier of the memory to retrieve.</p><br>
7    ///   - [`view(MemoryView)`](crate::operation::get_memory::builders::GetMemoryFluentBuilder::view) / [`set_view(Option<MemoryView>)`](crate::operation::get_memory::builders::GetMemoryFluentBuilder::set_view):<br>required: **false**<br><p>The level of detail to return for the memory.</p><br>
8    /// - On success, responds with [`GetMemoryOutput`](crate::operation::get_memory::GetMemoryOutput) with field(s):
9    ///   - [`memory(Option<Memory>)`](crate::operation::get_memory::GetMemoryOutput::memory): <p>The retrieved AgentCore Memory resource details.</p>
10    /// - On failure, responds with [`SdkError<GetMemoryError>`](crate::operation::get_memory::GetMemoryError)
11    pub fn get_memory(&self) -> crate::operation::get_memory::builders::GetMemoryFluentBuilder {
12        crate::operation::get_memory::builders::GetMemoryFluentBuilder::new(self.handle.clone())
13    }
14}