Skip to content

Create Keyspace

keyspaces_create_keyspace R Documentation

The CreateKeyspace operation adds a new keyspace to your account

Description

The create_keyspace operation adds a new keyspace to your account. In an Amazon Web Services account, keyspace names must be unique within each Region.

create_keyspace is an asynchronous operation. You can monitor the creation status of the new keyspace by using the get_keyspace operation.

For more information, see Creating keyspaces in the Amazon Keyspaces Developer Guide.

Usage

keyspaces_create_keyspace(keyspaceName, tags, replicationSpecification)

Arguments

keyspaceName

[required] The name of the keyspace to be created.

tags

A list of key-value pair tags to be attached to the keyspace.

For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.

replicationSpecification

The replication specification of the keyspace includes:

  • replicationStrategy - the required value is SINGLE_REGION or MULTI_REGION.

  • regionList - if the replicationStrategy is MULTI_REGION, the regionList requires the current Region and at least one additional Amazon Web Services Region where the keyspace is going to be replicated in. The maximum number of supported replication Regions including the current Region is six.

Value

A list with the following syntax:

list(
  resourceArn = "string"
)

Request syntax

svc$create_keyspace(
  keyspaceName = "string",
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  ),
  replicationSpecification = list(
    replicationStrategy = "SINGLE_REGION"|"MULTI_REGION",
    regionList = list(
      "string"
    )
  )
)