Skip to main content

keyspaces

Creates, updates, deletes or gets a keyspace resource or lists keyspaces in a region

Overview

Namekeyspaces
TypeResource
DescriptionResource schema for AWS::Cassandra::Keyspace
Idaws.cassandra.keyspaces

Fields

NameDatatypeDescription
keyspace_namestringName for Cassandra keyspace
tagsarray
replication_specificationobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERT, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all keyspaces in a region.

SELECT
region,
keyspace_name,
tags,
replication_specification
FROM aws.cassandra.keyspaces
WHERE region = 'us-east-1';

Gets all properties from an individual keyspace.

SELECT
region,
keyspace_name,
tags,
replication_specification
FROM aws.cassandra.keyspaces
WHERE region = 'us-east-1' AND data__Identifier = '<KeyspaceName>';

INSERT example

Use the following StackQL query and manifest file to create a new keyspace resource, using stack-deploy.

/*+ create */
INSERT INTO aws.cassandra.keyspaces (
,
region
)
SELECT
'{{ }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cassandra.keyspaces
WHERE data__Identifier = '<KeyspaceName>'
AND region = 'us-east-1';

Permissions

To operate on the keyspaces resource, the following permissions are required:

Create

cassandra:Create,
cassandra:CreateMultiRegionResource,
cassandra:Select,
cassandra:SelectMultiRegionResource,
cassandra:TagResource,
cassandra:TagMultiRegionResource,
iam:CreateServiceLinkedRole

Read

cassandra:Select,
cassandra:SelectMultiRegionResource

Update

cassandra:Alter,
cassandra:AlterMultiRegionResource,
cassandra:Select,
cassandra:SelectMultiRegionResource,
cassandra:TagResource,
cassandra:TagMultiRegionResource,
cassandra:UntagResource,
cassandra:UntagMultiRegionResource

Delete

cassandra:Drop,
cassandra:DropMultiRegionResource,
cassandra:Select,
cassandra:SelectMultiRegionResource

List

cassandra:Select,
cassandra:SelectMultiRegionResource