aws-sdk-opensearchmemory 1.2.0

AWS SDK for Amazon OpenSearch Memory
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateMemory`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`space_id(impl Into<String>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::space_id) / [`set_space_id(Option<String>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::set_space_id):<br>required: **true**<br><p>The ID of the space that owns the memory, for example <code>sp-02864597b164</code>.</p><br>
    ///   - [`memory_id(impl Into<String>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::memory_id) / [`set_memory_id(Option<String>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::set_memory_id):<br>required: **true**<br><p>The ID of the memory to update.</p><br>
    ///   - [`content(impl Into<String>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::content) / [`set_content(Option<String>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::set_content):<br>required: **false**<br><p>Replacement memory text. Supplying it re-embeds the memory. Omit to leave the text unchanged.</p><br>
    ///   - [`metadata(impl Into<String>, impl Into<String>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::metadata) / [`set_metadata(Option<HashMap::<String, String>>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::set_metadata):<br>required: **false**<br><p>The metadata tags to apply. By default this map replaces the stored metadata, and any key not present is removed. Set <code>metadataMode</code> to <code>MERGE</code> to keep the keys you don't supply. Limits apply to the resulting metadata, not to the request. Keys that begin with <code>x-amz-</code> and the key <code>documentS3Source</code> are reserved: a request that sets one fails with <code>ValidationException</code>.</p> <p>A space can use at most 50 distinct metadata keys across all of its events and memories. A request that would add a key beyond that fails with <code>ValidationException</code>. Reuse an existing key instead.</p><br>
    ///   - [`metadata_mode(MetadataMode)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::metadata_mode) / [`set_metadata_mode(Option<MetadataMode>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::set_metadata_mode):<br>required: **false**<br><p>How <code>metadata</code> combines with what is stored. The default is <code>REPLACE</code>.</p><br>
    ///   - [`actor_id(impl Into<String>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::actor_id) / [`set_actor_id(Option<String>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::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>
    ///   - [`strategy_name(impl Into<String>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::strategy_name) / [`set_strategy_name(Option<String>)`](crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::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>
    /// - On success, responds with [`UpdateMemoryOutput`](crate::operation::update_memory::UpdateMemoryOutput) with field(s):
    ///   - [`memory(Option<Memory>)`](crate::operation::update_memory::UpdateMemoryOutput::memory): <p>The updated memory, in the same shape that <code>GetMemory</code> returns.</p>
    /// - On failure, responds with [`SdkError<UpdateMemoryError>`](crate::operation::update_memory::UpdateMemoryError)
    pub fn update_memory(&self) -> crate::operation::update_memory::builders::UpdateMemoryFluentBuilder {
        crate::operation::update_memory::builders::UpdateMemoryFluentBuilder::new(self.handle.clone())
    }
}