Actions, resources, and condition keys for Amazon Keyspaces (for Apache Cassandra)
Amazon Keyspaces (for Apache Cassandra) (service prefix: cassandra) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon Keyspaces (for Apache Cassandra)
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | SDK client | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|---|
|
CreateKeyspace |
keyspaces |
Write |
|||
Write |
|||||
Tagging, Write |
|||||
|
CreateTable |
keyspaces |
Write |
|||
Write |
|||||
Tagging, Write |
|||||
|
CreateType |
keyspaces |
Write |
|||
Write |
|||||
|
DeleteKeyspace |
keyspaces |
Write |
|||
Write |
|||||
|
DeleteTable |
keyspaces |
Write |
|||
Write |
|||||
|
DeleteType |
keyspaces |
Write |
|||
Write |
|||||
|
GetKeyspace |
keyspaces |
Read |
|||
|
GetTable |
keyspaces |
Read |
|||
|
GetTableAutoScalingSettings |
keyspaces |
Read |
|||
Read |
|||||
Read |
|||||
Read |
|||||
|
GetType |
keyspaces |
Read |
|||
|
ListKeyspaces |
keyspaces |
Read |
|||
|
ListTables |
keyspaces |
Read |
|||
|
ListTypes |
keyspaces |
Read |
|||
|
RestoreTable |
keyspaces |
Write |
|||
Write |
|||||
Read |
|||||
|
TagResource |
keyspaces |
Write |
|||
Write |
|||||
Tagging, Write |
|||||
Tagging, Write |
|||||
|
UntagResource |
keyspaces |
Write |
|||
Write |
|||||
Tagging, Write |
|||||
Tagging, Write |
|||||
|
UpdateKeyspace |
keyspaces |
Write |
|||
Write |
|||||
Write |
|||||
Write |
|||||
Write |
|||||
Write |
|||||
Read |
|||||
Read |
|||||
Tagging, Write |
|||||
Tagging, Write |
|||||
Read |
|||||
Read |
|||||
Read |
|||||
Write |
|||||
Write |
|||||
|
UpdateTable |
keyspaces |
Write |
|||
Write |
|||||
|
GetRecords |
keyspacesstreams |
Read |
|||
|
GetShardIterator |
keyspacesstreams |
Read |
|||
|
GetStream |
keyspacesstreams |
Read |
|||
|
ListStreams |
keyspacesstreams |
List |
Actions defined by Amazon Keyspaces (for Apache Cassandra)
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in AWS. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to alter a keyspace or table |
Write |
|||
Grants permission to alter a multiregion keyspace or table |
Write |
|||
Grants permission to create a keyspace or table |
Write |
|||
Grants permission to create a multiregion keyspace or table |
Write |
|||
Grants permission to drop a keyspace or table |
Write |
|||
Grants permission to drop a multiregion keyspace or table |
Write |
|||
Grants permission to retrieve the CDC stream records from a given shard |
Read |
|||
Grants permission to return a shard iterator |
Read |
|||
Grants permission to return information about a CDC stream, including the composition of its shards |
Read |
|||
Grants permission to return an array of CDC stream ARNs associated with the current account and endpoint |
List |
|||
Grants permission to INSERT, UPDATE or DELETE data in a table |
Write |
|||
Grants permission to INSERT, UPDATE or DELETE data in a multiregion table |
Write |
|||
Grants permission to restore table from a backup |
Write |
|||
Grants permission to restore multiregion table from a backup |
Write |
|||
Grants permission to SELECT data from a table |
Read |
|||
Grants permission to SELECT data from a multiregion table |
Read |
|||
Grants permission to tag a multiregion keyspace or table |
Tagging, Write |
|||
Grants permission to tag a keyspace, table, or stream |
Tagging, Write |
|||
Grants permission to untag a multiregion keyspace or table |
Tagging, Write |
|||
Grants permission to untag a keyspace, table or stream |
Tagging, Write |
|||
Grants permission to UPDATE the partitioner in a system table |
Write |
Resource types defined by Amazon Keyspaces (for Apache Cassandra)
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:cassandra:${Region}:${Account}:/keyspace/${KeyspaceName}/ |
||
arn:${Partition}:cassandra:${Region}:${Account}:/keyspace/${KeyspaceName}/table/${TableName}/stream/${StreamLabel} |
||
arn:${Partition}:cassandra:${Region}:${Account}:/keyspace/${KeyspaceName}/table/${TableName} |
Condition keys for Amazon Keyspaces (for Apache Cassandra)
Amazon Keyspaces (for Apache Cassandra) defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters actions based on the presence of tag key-value pairs in the request |
String |
|
Filters actions based on tag key-value pairs attached to the resource |
String |
|
Filters actions based on the presence of tag keys in the request |
ArrayOfString |