Skip to main content

aws_sdk_opensearchmemory/client/
delete_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 [`DeleteMemory`](crate::operation::delete_memory::builders::DeleteMemoryFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`space_id(impl Into<String>)`](crate::operation::delete_memory::builders::DeleteMemoryFluentBuilder::space_id) / [`set_space_id(Option<String>)`](crate::operation::delete_memory::builders::DeleteMemoryFluentBuilder::set_space_id):<br>required: **true**<br><p>The ID of the space that owns the memory.</p><br>
7    ///   - [`memory_id(impl Into<String>)`](crate::operation::delete_memory::builders::DeleteMemoryFluentBuilder::memory_id) / [`set_memory_id(Option<String>)`](crate::operation::delete_memory::builders::DeleteMemoryFluentBuilder::set_memory_id):<br>required: **true**<br><p>The ID of the memory to delete.</p><br>
8    ///   - [`actor_id(impl Into<String>)`](crate::operation::delete_memory::builders::DeleteMemoryFluentBuilder::actor_id) / [`set_actor_id(Option<String>)`](crate::operation::delete_memory::builders::DeleteMemoryFluentBuilder::set_actor_id):<br>required: **false**<br><p>The ID of the actor that 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>
9    ///   - [`strategy_name(impl Into<String>)`](crate::operation::delete_memory::builders::DeleteMemoryFluentBuilder::strategy_name) / [`set_strategy_name(Option<String>)`](crate::operation::delete_memory::builders::DeleteMemoryFluentBuilder::set_strategy_name):<br>required: **false**<br><p>The name of the strategy that 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>
10    /// - On success, responds with [`DeleteMemoryOutput`](crate::operation::delete_memory::DeleteMemoryOutput) with field(s):
11    ///   - [`memory_id(String)`](crate::operation::delete_memory::DeleteMemoryOutput::memory_id): <p>The ID of the deleted memory.</p>
12    /// - On failure, responds with [`SdkError<DeleteMemoryError>`](crate::operation::delete_memory::DeleteMemoryError)
13    pub fn delete_memory(&self) -> crate::operation::delete_memory::builders::DeleteMemoryFluentBuilder {
14        crate::operation::delete_memory::builders::DeleteMemoryFluentBuilder::new(self.handle.clone())
15    }
16}