Class: AWS.Keyspaces
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Keyspaces
- Identifier:
- keyspaces
- API Version:
- 2022-02-10
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Amazon Keyspaces (for Apache Cassandra) is a scalable, highly available, and managed Apache Cassandra-compatible database service. Amazon Keyspaces makes it easy to migrate, run, and scale Cassandra workloads in the Amazon Web Services Cloud. With just a few clicks on the Amazon Web Services Management Console or a few lines of code, you can create keyspaces and tables in Amazon Keyspaces, without deploying any infrastructure or installing software.
In addition to supporting Cassandra Query Language (CQL) requests via open-source Cassandra drivers, Amazon Keyspaces supports data definition language (DDL) operations to manage keyspaces and tables using the Amazon Web Services SDK and CLI, as well as infrastructure as code (IaC) services and tools such as CloudFormation and Terraform. This API reference describes the supported DDL operations in detail.
For the list of all supported CQL APIs, see Supported Cassandra APIs, operations, and data types in Amazon Keyspaces in the Amazon Keyspaces Developer Guide.
To learn how Amazon Keyspaces API actions are recorded with CloudTrail, see Amazon Keyspaces information in CloudTrail in the Amazon Keyspaces Developer Guide.
For more information about Amazon Web Services APIs, for example how to implement retry logic or how to sign Amazon Web Services API requests, see Amazon Web Services APIs in the General Reference.
Sending a Request Using Keyspaces
var keyspaces = new AWS.Keyspaces();
keyspaces.createKeyspace(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Keyspaces object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var keyspaces = new AWS.Keyspaces({apiVersion: '2022-02-10'});
You can also set the API version globally in AWS.config.apiVersions using
the keyspaces service identifier:
AWS.config.apiVersions = {
keyspaces: '2022-02-10',
// other service API versions
};
var keyspaces = new AWS.Keyspaces();
Constructor Summary collapse
-
new AWS.Keyspaces(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
createKeyspace(params = {}, callback) ⇒ AWS.Request
The
CreateKeyspaceoperation adds a new keyspace to your account. -
createTable(params = {}, callback) ⇒ AWS.Request
The
CreateTableoperation adds a new table to the specified keyspace. -
deleteKeyspace(params = {}, callback) ⇒ AWS.Request
The
DeleteKeyspaceoperation deletes a keyspace and all of its tables. -
deleteTable(params = {}, callback) ⇒ AWS.Request
The
DeleteTableoperation deletes a table and all of its data. -
getKeyspace(params = {}, callback) ⇒ AWS.Request
Returns the name and the Amazon Resource Name (ARN) of the specified table.
.
-
getTable(params = {}, callback) ⇒ AWS.Request
Returns information about the table, including the table's name and current status, the keyspace name, configuration settings, and metadata.
To read table metadata using
.GetTable,Selectaction permissions for the table and system tables are required to complete the operation. -
getTableAutoScalingSettings(params = {}, callback) ⇒ AWS.Request
Returns auto scaling related settings of the specified table in JSON format.
-
listKeyspaces(params = {}, callback) ⇒ AWS.Request
Returns a list of keyspaces.
.
-
listTables(params = {}, callback) ⇒ AWS.Request
Returns a list of tables for a specified keyspace.
.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns a list of all tags associated with the specified Amazon Keyspaces resource.
.
-
restoreTable(params = {}, callback) ⇒ AWS.Request
Restores the table to the specified point in time within the
earliest_restorable_timestampand the current time. -
tagResource(params = {}, callback) ⇒ AWS.Request
Associates a set of tags with a Amazon Keyspaces resource.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes the association of tags from a Amazon Keyspaces resource.
.
-
updateTable(params = {}, callback) ⇒ AWS.Request
Adds new columns to the table or updates one of the table's settings, for example capacity mode, auto scaling, encryption, point-in-time recovery, or ttl settings.
-
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given Keyspaces resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.Keyspaces(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
createKeyspace(params = {}, callback) ⇒ AWS.Request
The CreateKeyspace operation adds a new keyspace to your account. In an Amazon Web Services account, keyspace names must be unique within each Region.
CreateKeyspace is an asynchronous operation. You can monitor the creation status of the new keyspace by using the GetKeyspace operation.
For more information, see Creating keyspaces in the Amazon Keyspaces Developer Guide.
createTable(params = {}, callback) ⇒ AWS.Request
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 Creating tables in the Amazon Keyspaces Developer Guide.
deleteKeyspace(params = {}, callback) ⇒ AWS.Request
The DeleteKeyspace operation deletes a keyspace and all of its tables.
deleteTable(params = {}, callback) ⇒ AWS.Request
The DeleteTable operation deletes a table and all of its data. After a DeleteTable request is received, the specified table is in the DELETING state until Amazon Keyspaces completes the deletion. If the table is in the ACTIVE state, you can delete it. If a table is either in the CREATING or UPDATING states, then Amazon Keyspaces returns a ResourceInUseException. If the specified table does not exist, Amazon Keyspaces returns a ResourceNotFoundException. If the table is already in the DELETING state, no error is returned.
getKeyspace(params = {}, callback) ⇒ AWS.Request
Returns the name and the Amazon Resource Name (ARN) of the specified table.
getTable(params = {}, callback) ⇒ AWS.Request
Returns information about the table, including the table's name and current status, the keyspace name, configuration settings, and metadata.
To read table metadata using GetTable, Select action permissions for the table and system tables are required to complete the operation.