# AWS Comprehend - Classify document action
The Classify document action analyzes a document in real-time using a custom classification model.
# Input
| Input fields | Description |
|---|---|
| Endpoint ARN | Select or enter the Amazon Resource Number (ARN) of the endpoint. |
| File content | Use this parameter to input a text, PDF, Word, or image file. When you classify a document using a custom model, you can use this parameter to input an Amazon Textract, DetectDocumentText, or AnalyzeDocument output file. You can't use this field with the Text field. |
| Text | Enter the document text to analyze. You can't use this field with the File content field. |
| Document reader configuration | Expand to configure document reading settings. |
| Document read action | Select which Textract API to use: Textract detect document text (DetectDocumentText) or Textract analyze document (AnalyzeDocument). |
| Document read mode | Select Service default to use AWS Comprehend defaults for PDFs or Force document read action to always use the specified Textract API. |
| Feature types | Select Amazon Textract features to apply. Required when using Textract analyze document. |
# Output
| Output fields | Description |
|---|---|
| Classes | Includes details about classes including:
|
| Document metadata | Includes document metadata including:
|
| Document type | Details about the document type including:
|
| Errors |
|
| Labels |
|
| Warnings |
|
Last updated: 10/17/2025, 5:12:05 PM