v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1419128123.4 KB

The CreateTable operation adds a new table to the specified keyspace. Within a keyspace, table names must be unique.

CreateTable is an asynchronous operation. When the request is received, the status of the table is set to CREATING. You can monitor the creation status of the new table by using the GetTable operation, which returns the current status of the table. You can start using a table when the status is ACTIVE.

For more information, see Create a table in the Amazon Keyspaces Developer Guide.

post/#X-Amz-Target=KeyspacesService.CreateTable

Headers

X-Amz-Target'KeyspacesService.CreateTable' required

Request body

keyspaceNamestring required

The name of the keyspace that the table is going to be created in.

tableNamestring required

The name of the table.

defaultTimeToLiveinteger
<p>The default Time to Live setting in seconds for the table.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/TTL-how-it-works.html#ttl-howitworks_default_ttl">Setting the default TTL value for a table</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>

Response

Success

resourceArnstring required

The unique identifier of the table in the format of an Amazon Resource Name (ARN).