// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateSpace`](crate::operation::create_space::builders::CreateSpaceFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_name):<br>required: **true**<br><p>A name for the space, unique within your account in the Region. If another space already has the name, the request fails with <code>ConflictException</code>.</p><br>
/// - [`memory_strategies(MemoryStrategy)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::memory_strategies) / [`set_memory_strategies(Option<Vec::<MemoryStrategy>>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_memory_strategies):<br>required: **false**<br><p>The memory strategies that extract memories from the space's events: up to 10 strategies, each with a name that is unique within the space.</p> <p>Optional. Omit it, or send an empty list, to create a space with no memory strategies. Such a space stores the conversation events you send it and returns them through <code>SearchEvents</code> and <code>ListEvents</code>, but extracts no memories and has none to search. You can add strategies later with <code>UpdateSpace</code>.</p> <p>The serialized list can be at most 384 KiB.</p><br>
/// - [`event_expiry_days(i32)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::event_expiry_days) / [`set_event_expiry_days(Option<i32>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_event_expiry_days):<br>required: **false**<br><p>How many days the space keeps each event, from 1 to 365. The default is 90.</p><br>
/// - [`memory_expiry_days(i32)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::memory_expiry_days) / [`set_memory_expiry_days(Option<i32>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_memory_expiry_days):<br>required: **false**<br><p>How many days the space keeps each memory, from 0 to 3650, counted from when the service writes the memory. Updating a memory with <code>UpdateMemory</code> doesn't restart the count. 0 means memories never expire. If you omit it, memories never expire.</p> <p>Searches and lists leave out a memory past its expiry, and reading, updating, or deleting it returns <code>ResourceNotFoundException</code>.</p><br>
/// - [`extraction_model_id(impl Into<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::extraction_model_id) / [`set_extraction_model_id(Option<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_extraction_model_id):<br>required: **false**<br><p>The model that extracts and consolidates memories for every strategy in the space, as an Amazon Bedrock model ID without an inference-profile prefix: <code>anthropic.claude-opus-5-5</code> or <code>anthropic.claude-haiku-5-5</code>. Another value fails with <code>ValidationException</code>, and the message lists the supported IDs. Omit it to use the service default, which can change over time and isn't returned by <code>GetSpace</code>. Setting a value pins the model.</p><br>
/// - [`encryption_configuration(EncryptionConfiguration)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::encryption_configuration) / [`set_encryption_configuration(Option<EncryptionConfiguration>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_encryption_configuration):<br>required: **false**<br><p>The AWS KMS key that encrypts the space's data. Omit it, or omit its <code>kmsKeyArn</code>, to use an AWS owned key. You can't change the key after you create the space.</p><br>
/// - [`tags(Tag)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to add to the space.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that makes the request idempotent. A retry with the same token and the same parameters within 2 hours returns the space that the first request created, instead of creating another. Reusing the token with different parameters, or while the first request is still in progress, fails with <code>ConflictException</code>.</p><br>
/// - On success, responds with [`CreateSpaceOutput`](crate::operation::create_space::CreateSpaceOutput) with field(s):
/// - [`space_id(String)`](crate::operation::create_space::CreateSpaceOutput::space_id): <p>The ID of the space.</p>
/// - [`arn(String)`](crate::operation::create_space::CreateSpaceOutput::arn): <p>The Amazon Resource Name (ARN) of the space.</p>
/// - [`name(String)`](crate::operation::create_space::CreateSpaceOutput::name): <p>The name of the space.</p>
/// - [`status(SpaceStatus)`](crate::operation::create_space::CreateSpaceOutput::status): <p>The status of the space: <code>CREATING</code>.</p>
/// - [`created_at(DateTime)`](crate::operation::create_space::CreateSpaceOutput::created_at): <p>When the space was created.</p>
/// - On failure, responds with [`SdkError<CreateSpaceError>`](crate::operation::create_space::CreateSpaceError)
pub fn create_space(&self) -> crate::operation::create_space::builders::CreateSpaceFluentBuilder {
crate::operation::create_space::builders::CreateSpaceFluentBuilder::new(self.handle.clone())
}
}