View a markdown version of this page

List tags for resource - Amazon Textract

List tags for resource

Amazon Textract resources like adapters and Amazon Textract Insights projects, blueprints, and jobs 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 list the tags for a resource:

CLI
aws textract list-tags-for-resource --region us-east-1 --resource-arn arn:aws:textract:us-east-1:000000000000:/adapters/a1b2c3d4e5c6 \ { "Tags": { "Tag": "Key" } }

For an Amazon Textract Insights project, blueprint, or job, use its ARN. For examples, see Tagging Amazon Textract Insights resources.