Amazon Textract resources like adapters can be tagged using the TagResource operation. You can list all the tags associated with a resource by using the ListTagsForResource operation and providing the Amazon Resource Name (ARN) associated with the resource that you want to retrieve tags for.
To list tags for a resource with the AWS CLI or AWS SDK:
-
If you haven't already done so, install and configure the AWS CLI and the AWS SDKs. For more information, see Step 2: Set Up the AWS CLI and AWS SDKs.
-
Use the following code to create an adapter:
aws textract list-tags-for-resource --region us-east-1 --resource-arn arn:aws:textract:us-east-1:000000000000:/adapters/a1b2c3d4e5c6 \ { "Tags": { "Tag": "Key" } }