aws-sdk-keyspaces 1.104.0

AWS SDK for Amazon Keyspaces
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateKeyspace`](crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`keyspace_name(impl Into<String>)`](crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder::keyspace_name) / [`set_keyspace_name(Option<String>)`](crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder::set_keyspace_name):<br>required: **true**<br><p>The name of the keyspace to be created.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder::set_tags):<br>required: **false**<br><p>A list of key-value pair tags to be attached to the keyspace.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/tagging-keyspaces.html">Adding tags and labels to Amazon Keyspaces resources</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p><br>
    ///   - [`replication_specification(ReplicationSpecification)`](crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder::replication_specification) / [`set_replication_specification(Option<ReplicationSpecification>)`](crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder::set_replication_specification):<br>required: **false**<br><p>The replication specification of the keyspace includes:</p> <ul>  <li>   <p><code>replicationStrategy</code> - the required value is <code>SINGLE_REGION</code> or <code>MULTI_REGION</code>.</p></li>  <li>   <p><code>regionList</code> - if the <code>replicationStrategy</code> is <code>MULTI_REGION</code>, the <code>regionList</code> requires the current Region and at least one additional Amazon Web Services Region where the keyspace is going to be replicated in.</p></li> </ul><br>
    /// - On success, responds with [`CreateKeyspaceOutput`](crate::operation::create_keyspace::CreateKeyspaceOutput) with field(s):
    ///   - [`resource_arn(String)`](crate::operation::create_keyspace::CreateKeyspaceOutput::resource_arn): <p>The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).</p>
    /// - On failure, responds with [`SdkError<CreateKeyspaceError>`](crate::operation::create_keyspace::CreateKeyspaceError)
    pub fn create_keyspace(&self) -> crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder {
        crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder::new(self.handle.clone())
    }
}