aws-sdk-opensearchmemory 1.2.0

AWS SDK for Amazon OpenSearch Memory
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetMemory`](crate::operation::get_memory::builders::GetMemoryFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`space_id(impl Into<String>)`](crate::operation::get_memory::builders::GetMemoryFluentBuilder::space_id) / [`set_space_id(Option<String>)`](crate::operation::get_memory::builders::GetMemoryFluentBuilder::set_space_id):<br>required: **true**<br><p>The ID of the space that holds the memory.</p><br>
    ///   - [`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 memory's ID, as returned by <code>SearchMemories</code> or <code>ListMemories</code>.</p><br>
    ///   - [`actor_id(impl Into<String>)`](crate::operation::get_memory::builders::GetMemoryFluentBuilder::actor_id) / [`set_actor_id(Option<String>)`](crate::operation::get_memory::builders::GetMemoryFluentBuilder::set_actor_id):<br>required: **false**<br><p>The ID of the actor the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails with <code>ResourceNotFoundException</code>, as if the memory did not exist.</p><br>
    ///   - [`strategy_name(impl Into<String>)`](crate::operation::get_memory::builders::GetMemoryFluentBuilder::strategy_name) / [`set_strategy_name(Option<String>)`](crate::operation::get_memory::builders::GetMemoryFluentBuilder::set_strategy_name):<br>required: **false**<br><p>The name of the strategy the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails with <code>ResourceNotFoundException</code>, as if the memory did not exist.</p><br>
    /// - On success, responds with [`GetMemoryOutput`](crate::operation::get_memory::GetMemoryOutput) with field(s):
    ///   - [`memory(Option<Memory>)`](crate::operation::get_memory::GetMemoryOutput::memory): <p>The memory. Always present: a memory that doesn't exist returns <code>ResourceNotFoundException</code>.</p>
    /// - On failure, responds with [`SdkError<GetMemoryError>`](crate::operation::get_memory::GetMemoryError)
    pub fn get_memory(&self) -> crate::operation::get_memory::builders::GetMemoryFluentBuilder {
        crate::operation::get_memory::builders::GetMemoryFluentBuilder::new(self.handle.clone())
    }
}