aws-sdk-opensearchmemory 1.0.0

AWS SDK for Amazon OpenSearch Memory
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateSpace`](crate::operation::update_space::builders::UpdateSpaceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`space_id(impl Into<String>)`](crate::operation::update_space::builders::UpdateSpaceFluentBuilder::space_id) / [`set_space_id(Option<String>)`](crate::operation::update_space::builders::UpdateSpaceFluentBuilder::set_space_id):<br>required: **true**<br><p>The ID of the space to update.</p><br>
    ///   - [`memory_strategies(MemoryStrategy)`](crate::operation::update_space::builders::UpdateSpaceFluentBuilder::memory_strategies) / [`set_memory_strategies(Option<Vec::<MemoryStrategy>>)`](crate::operation::update_space::builders::UpdateSpaceFluentBuilder::set_memory_strategies):<br>required: **false**<br><p>The complete new list of memory strategies. The service removes strategies that aren't in the list from the space. Removing a strategy stops extraction for it but doesn't delete its memories: they're kept, until they expire if the space sets <code>memoryExpiryDays</code>, and they're available again if you later add a strategy with the same <code>type</code> and <code>name</code>. To delete them, use <code>DeleteMemory</code> before you remove the strategy, or delete the space.</p> <p>To keep a strategy, include it with the same <code>type</code> and <code>name</code> that <code>GetSpace</code> returns. For a kept strategy, any <code>configuration</code> member you omit keeps its current value. It doesn't return to the default, and you can't clear a member once it's set. Omit this field to leave the strategies unchanged. The list must name at least one strategy. You can't remove every strategy from a space with <code>UpdateSpace</code>.</p> <p>The serialized list can be at most 384 KiB.</p><br>
    ///   - [`event_expiry_days(i32)`](crate::operation::update_space::builders::UpdateSpaceFluentBuilder::event_expiry_days) / [`set_event_expiry_days(Option<i32>)`](crate::operation::update_space::builders::UpdateSpaceFluentBuilder::set_event_expiry_days):<br>required: **false**<br><p>How many days the space keeps each event, from 1 to 365. Omit it to leave the current value unchanged. Events already stored keep the expiry they were written with.</p><br>
    ///   - [`memory_expiry_days(i32)`](crate::operation::update_space::builders::UpdateSpaceFluentBuilder::memory_expiry_days) / [`set_memory_expiry_days(Option<i32>)`](crate::operation::update_space::builders::UpdateSpaceFluentBuilder::set_memory_expiry_days):<br>required: **false**<br><p>How many days the space keeps each memory, from 0 to 3650. 0 means memories never expire. Omit it to leave the current value unchanged. You can't clear the setting. To make memories written from then on never expire, send 0. <code>GetSpace</code> then returns 0.</p> <p>A change applies to memories written after it. Memories already stored keep the expiry they were written with. A memory the service rewrites later, such as a summary it keeps up to date, takes the setting in force at that rewrite. A change moves the space to <code>UPDATING</code>. Sending the value that the space has stored doesn't.</p><br>
    ///   - [`extraction_model_id(impl Into<String>)`](crate::operation::update_space::builders::UpdateSpaceFluentBuilder::extraction_model_id) / [`set_extraction_model_id(Option<String>)`](crate::operation::update_space::builders::UpdateSpaceFluentBuilder::set_extraction_model_id):<br>required: **false**<br><p>The model that extracts and consolidates memories for every strategy in the space: <code>anthropic.claude-opus-5-5</code> or <code>anthropic.claude-haiku-5-5</code>. Omit it to leave the current value unchanged. Once set, it can't be cleared back to the service default.</p><br>
    /// - On success, responds with [`UpdateSpaceOutput`](crate::operation::update_space::UpdateSpaceOutput) with field(s):
    ///   - [`space_id(String)`](crate::operation::update_space::UpdateSpaceOutput::space_id): <p>The ID of the space.</p>
    ///   - [`status(SpaceStatus)`](crate::operation::update_space::UpdateSpaceOutput::status): <p>The status of the space: <code>UPDATING</code> when the change has to be applied to the space's strategies, retention, or extraction model. Otherwise, the space's current status.</p>
    /// - On failure, responds with [`SdkError<UpdateSpaceError>`](crate::operation::update_space::UpdateSpaceError)
    pub fn update_space(&self) -> crate::operation::update_space::builders::UpdateSpaceFluentBuilder {
        crate::operation::update_space::builders::UpdateSpaceFluentBuilder::new(self.handle.clone())
    }
}