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 [`GetSpace`](crate::operation::get_space::builders::GetSpaceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`space_id(impl Into<String>)`](crate::operation::get_space::builders::GetSpaceFluentBuilder::space_id) / [`set_space_id(Option<String>)`](crate::operation::get_space::builders::GetSpaceFluentBuilder::set_space_id):<br>required: **true**<br><p>The ID of the space.</p><br>
    /// - On success, responds with [`GetSpaceOutput`](crate::operation::get_space::GetSpaceOutput) with field(s):
    ///   - [`space_id(String)`](crate::operation::get_space::GetSpaceOutput::space_id): <p>The ID of the space.</p>
    ///   - [`arn(String)`](crate::operation::get_space::GetSpaceOutput::arn): <p>The Amazon Resource Name (ARN) of the space.</p>
    ///   - [`name(String)`](crate::operation::get_space::GetSpaceOutput::name): <p>The name of the space.</p>
    ///   - [`status(SpaceStatus)`](crate::operation::get_space::GetSpaceOutput::status): <p>The status of the space.</p>
    ///   - [`status_reason(Option<String>)`](crate::operation::get_space::GetSpaceOutput::status_reason): <p>Details about why the space is <code>FAILED</code>. Read it only when <code>status</code> is <code>FAILED</code>: it can still hold the reason for an earlier failure.</p>
    ///   - [`created_at(DateTime)`](crate::operation::get_space::GetSpaceOutput::created_at): <p>When the space was created.</p>
    ///   - [`memory_strategies(Option<Vec::<MemoryStrategy>>)`](crate::operation::get_space::GetSpaceOutput::memory_strategies): <p>The space's memory strategies, including the names the service generated for strategies created without one. Empty for a space that has no memory strategies.</p>
    ///   - [`event_expiry_days(Option<i32>)`](crate::operation::get_space::GetSpaceOutput::event_expiry_days): <p>How many days the space keeps each event. Absent when it was never set, in which case the default of 90 days applies.</p>
    ///   - [`memory_expiry_days(Option<i32>)`](crate::operation::get_space::GetSpaceOutput::memory_expiry_days): <p>How many days the space keeps each memory. 0 means memories never expire. Absent when it was never set, in which case memories never expire.</p>
    ///   - [`extraction_model_id(Option<String>)`](crate::operation::get_space::GetSpaceOutput::extraction_model_id): <p>The model that extracts and consolidates memories for the space. Absent when it was never set, in which case the service default applies.</p>
    ///   - [`encryption_configuration(Option<EncryptionConfiguration>)`](crate::operation::get_space::GetSpaceOutput::encryption_configuration): <p>The AWS KMS key the space was created with. Absent when the space uses an AWS owned key.</p>
    /// - On failure, responds with [`SdkError<GetSpaceError>`](crate::operation::get_space::GetSpaceError)
    pub fn get_space(&self) -> crate::operation::get_space::builders::GetSpaceFluentBuilder {
        crate::operation::get_space::builders::GetSpaceFluentBuilder::new(self.handle.clone())
    }
}