aws_sdk_keyspaces/client/create_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 [`CreateKeyspace`](crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - On success, responds with [`CreateKeyspaceOutput`](crate::operation::create_keyspace::CreateKeyspaceOutput) with field(s):
10 /// - [`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>
11 /// - On failure, responds with [`SdkError<CreateKeyspaceError>`](crate::operation::create_keyspace::CreateKeyspaceError)
12 pub fn create_keyspace(&self) -> crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder {
13 crate::operation::create_keyspace::builders::CreateKeyspaceFluentBuilder::new(self.handle.clone())
14 }
15}