aws_sdk_keyspaces/client/
get_keyspace.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 [`GetKeyspace`](crate::operation::get_keyspace::builders::GetKeyspaceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`keyspace_name(impl Into<String>)`](crate::operation::get_keyspace::builders::GetKeyspaceFluentBuilder::keyspace_name) / [`set_keyspace_name(Option<String>)`](crate::operation::get_keyspace::builders::GetKeyspaceFluentBuilder::set_keyspace_name):<br>required: **true**<br><p>The name of the keyspace.</p><br>
7    /// - On success, responds with [`GetKeyspaceOutput`](crate::operation::get_keyspace::GetKeyspaceOutput) with field(s):
8    ///   - [`keyspace_name(String)`](crate::operation::get_keyspace::GetKeyspaceOutput::keyspace_name): <p>The name of the keyspace.</p>
9    ///   - [`resource_arn(String)`](crate::operation::get_keyspace::GetKeyspaceOutput::resource_arn): <p>Returns the ARN of the keyspace.</p>
10    ///   - [`replication_strategy(Rs)`](crate::operation::get_keyspace::GetKeyspaceOutput::replication_strategy): <p>Returns the replication strategy of the keyspace. The options are <code>SINGLE_REGION</code> or <code>MULTI_REGION</code>.</p>
11    ///   - [`replication_regions(Option<Vec::<String>>)`](crate::operation::get_keyspace::GetKeyspaceOutput::replication_regions): <p>If the <code>replicationStrategy</code> of the keyspace is <code>MULTI_REGION</code>, a list of replication Regions is returned.</p>
12    ///   - [`replication_group_statuses(Option<Vec::<ReplicationGroupStatus>>)`](crate::operation::get_keyspace::GetKeyspaceOutput::replication_group_statuses): <p>A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.</p>
13    /// - On failure, responds with [`SdkError<GetKeyspaceError>`](crate::operation::get_keyspace::GetKeyspaceError)
14    pub fn get_keyspace(&self) -> crate::operation::get_keyspace::builders::GetKeyspaceFluentBuilder {
15        crate::operation::get_keyspace::builders::GetKeyspaceFluentBuilder::new(self.handle.clone())
16    }
17}