Tagging collections (Amazon CLI) - Amazon OpenSearch Service
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).

Tagging collections (Amazon CLI)

To tag a collection using the Amazon CLI, send a TagResource request:

aws opensearchserverless tag-resource --resource-arn arn:aws:aoss:us-east-1:123456789012:collection/my-collection --tags Key=service,Value=aoss Key=source,Value=logs

View the existing tags for a collection with the ListTagsForResource command:

aws opensearchserverless list-tags-for-resource --resource-arn arn:aws:aoss:us-east-1:123456789012:collection/my-collection

Remove tags from a collection using the UntagResource command:

aws opensearchserverless untag-resource --resource-arn arn:aws:aoss:us-east-1:123456789012:collection/my-collection --tag-keys service