Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Add new tags to a stream
You can add new tags to an existing stream in Amazon Keyspaces using the CQL or the Amazon CLI. You can only add tags to the latest stream.
- Cassandra Query Language (CQL)
-
Add tags to a stream using CQL
-
The following statement shows how to add tags to an existing stream.
ALTER TABLE mykeyspace.mytable
ADD TAGS_FOR_CDC {'key1':'val1', 'key2':'val2'}
;
- CLI
-
Add tags to a stream using the Amazon CLI
-
The following example shows how to add new tags to an existing stream.
aws keyspaces tag-resource --resource-arn 'arn:aws-cn:cassandra:aws-region
:111122223333:/keyspace/my_keyspace/table/my_table/stream/2025-05-11T21:21:33.291
' --tags 'key=key3,value=val3' 'key=key4,value=val4'