comprehend:ClassifyDocument

Read

comprehend:ClassifyDocument is a Read access-level action in the comprehend service. Grants permission to create a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint

Resource types

ARNs that comprehend:ClassifyDocument can be scoped to in an IAM policy.

arn:${Partition}:comprehend:${Region}:${Account}:document-classifier-endpoint/${DocumentClassifierEndpointName}
document-classifier-endpoint

Condition keys

Keys you can use in the Condition block of a policy that grants comprehend:ClassifyDocument.

aws:ResourceTag/${TagKey} String

Filters access by requiring tag value associated with the resource

Example IAM policy

A minimal policy that allows comprehend:ClassifyDocument. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowComprehendClassifyDocument",
      "Effect": "Allow",
      "Action": "comprehend:ClassifyDocument",
      "Resource": "*"
    }
  ]
}

Related actions in comprehend

View all comprehend actions →