Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.Textract.Types
Contents
- Service Configuration
- Errors
- BlockType
- ContentClassifier
- EntityType
- FeatureType
- JobStatus
- RelationshipType
- SelectionStatus
- TextType
- ValueType
- AnalyzeIDDetections
- Block
- BoundingBox
- DetectedSignature
- Document
- DocumentGroup
- DocumentLocation
- DocumentMetadata
- ExpenseCurrency
- ExpenseDetection
- ExpenseDocument
- ExpenseField
- ExpenseGroupProperty
- ExpenseType
- Extraction
- Geometry
- HumanLoopActivationOutput
- HumanLoopConfig
- HumanLoopDataAttributes
- IdentityDocument
- IdentityDocumentField
- LendingDetection
- LendingDocument
- LendingField
- LendingResult
- LendingSummary
- LineItemFields
- LineItemGroup
- NormalizedValue
- NotificationChannel
- OutputConfig
- PageClassification
- Point
- Prediction
- QueriesConfig
- Query
- Relationship
- S3Object
- SignatureDetection
- SplitDocument
- UndetectedSignature
- Warning
Description
Synopsis
- defaultService :: Service
- _AccessDeniedException :: AsError a => Fold a ServiceError
- _BadDocumentException :: AsError a => Fold a ServiceError
- _DocumentTooLargeException :: AsError a => Fold a ServiceError
- _HumanLoopQuotaExceededException :: AsError a => Fold a ServiceError
- _IdempotentParameterMismatchException :: AsError a => Fold a ServiceError
- _InternalServerError :: AsError a => Fold a ServiceError
- _InvalidJobIdException :: AsError a => Fold a ServiceError
- _InvalidKMSKeyException :: AsError a => Fold a ServiceError
- _InvalidParameterException :: AsError a => Fold a ServiceError
- _InvalidS3ObjectException :: AsError a => Fold a ServiceError
- _LimitExceededException :: AsError a => Fold a ServiceError
- _ProvisionedThroughputExceededException :: AsError a => Fold a ServiceError
- _ThrottlingException :: AsError a => Fold a ServiceError
- _UnsupportedDocumentException :: AsError a => Fold a ServiceError
- newtype BlockType where
- BlockType' { }
- pattern BlockType_CELL :: BlockType
- pattern BlockType_KEY_VALUE_SET :: BlockType
- pattern BlockType_LINE :: BlockType
- pattern BlockType_MERGED_CELL :: BlockType
- pattern BlockType_PAGE :: BlockType
- pattern BlockType_QUERY :: BlockType
- pattern BlockType_QUERY_RESULT :: BlockType
- pattern BlockType_SELECTION_ELEMENT :: BlockType
- pattern BlockType_SIGNATURE :: BlockType
- pattern BlockType_TABLE :: BlockType
- pattern BlockType_TITLE :: BlockType
- pattern BlockType_WORD :: BlockType
- newtype ContentClassifier where
- newtype EntityType where
- EntityType' { }
- pattern EntityType_COLUMN_HEADER :: EntityType
- pattern EntityType_KEY :: EntityType
- pattern EntityType_VALUE :: EntityType
- newtype FeatureType where
- FeatureType' { }
- pattern FeatureType_FORMS :: FeatureType
- pattern FeatureType_QUERIES :: FeatureType
- pattern FeatureType_SIGNATURES :: FeatureType
- pattern FeatureType_TABLES :: FeatureType
- newtype JobStatus where
- JobStatus' { }
- pattern JobStatus_FAILED :: JobStatus
- pattern JobStatus_IN_PROGRESS :: JobStatus
- pattern JobStatus_PARTIAL_SUCCESS :: JobStatus
- pattern JobStatus_SUCCEEDED :: JobStatus
- newtype RelationshipType where
- RelationshipType' { }
- pattern RelationshipType_ANSWER :: RelationshipType
- pattern RelationshipType_CHILD :: RelationshipType
- pattern RelationshipType_COMPLEX_FEATURES :: RelationshipType
- pattern RelationshipType_MERGED_CELL :: RelationshipType
- pattern RelationshipType_TITLE :: RelationshipType
- pattern RelationshipType_VALUE :: RelationshipType
- newtype SelectionStatus where
- SelectionStatus' { }
- pattern SelectionStatus_NOT_SELECTED :: SelectionStatus
- pattern SelectionStatus_SELECTED :: SelectionStatus
- newtype TextType where
- TextType' {
- fromTextType :: Text
- pattern TextType_HANDWRITING :: TextType
- pattern TextType_PRINTED :: TextType
- TextType' {
- newtype ValueType where
- ValueType' { }
- pattern ValueType_DATE :: ValueType
- data AnalyzeIDDetections = AnalyzeIDDetections' {}
- newAnalyzeIDDetections :: Text -> AnalyzeIDDetections
- analyzeIDDetections_confidence :: Lens' AnalyzeIDDetections (Maybe Double)
- analyzeIDDetections_normalizedValue :: Lens' AnalyzeIDDetections (Maybe NormalizedValue)
- analyzeIDDetections_text :: Lens' AnalyzeIDDetections Text
- data Block = Block' {
- blockType :: Maybe BlockType
- columnIndex :: Maybe Natural
- columnSpan :: Maybe Natural
- confidence :: Maybe Double
- entityTypes :: Maybe [EntityType]
- geometry :: Maybe Geometry
- id :: Maybe Text
- page :: Maybe Natural
- query :: Maybe Query
- relationships :: Maybe [Relationship]
- rowIndex :: Maybe Natural
- rowSpan :: Maybe Natural
- selectionStatus :: Maybe SelectionStatus
- text :: Maybe Text
- textType :: Maybe TextType
- newBlock :: Block
- block_blockType :: Lens' Block (Maybe BlockType)
- block_columnIndex :: Lens' Block (Maybe Natural)
- block_columnSpan :: Lens' Block (Maybe Natural)
- block_confidence :: Lens' Block (Maybe Double)
- block_entityTypes :: Lens' Block (Maybe [EntityType])
- block_geometry :: Lens' Block (Maybe Geometry)
- block_id :: Lens' Block (Maybe Text)
- block_page :: Lens' Block (Maybe Natural)
- block_query :: Lens' Block (Maybe Query)
- block_relationships :: Lens' Block (Maybe [Relationship])
- block_rowIndex :: Lens' Block (Maybe Natural)
- block_rowSpan :: Lens' Block (Maybe Natural)
- block_selectionStatus :: Lens' Block (Maybe SelectionStatus)
- block_text :: Lens' Block (Maybe Text)
- block_textType :: Lens' Block (Maybe TextType)
- data BoundingBox = BoundingBox' {}
- newBoundingBox :: BoundingBox
- boundingBox_height :: Lens' BoundingBox (Maybe Double)
- boundingBox_left :: Lens' BoundingBox (Maybe Double)
- boundingBox_top :: Lens' BoundingBox (Maybe Double)
- boundingBox_width :: Lens' BoundingBox (Maybe Double)
- data DetectedSignature = DetectedSignature' {}
- newDetectedSignature :: DetectedSignature
- detectedSignature_page :: Lens' DetectedSignature (Maybe Natural)
- data Document = Document' {}
- newDocument :: Document
- document_bytes :: Lens' Document (Maybe ByteString)
- document_s3Object :: Lens' Document (Maybe S3Object)
- data DocumentGroup = DocumentGroup' {}
- newDocumentGroup :: DocumentGroup
- documentGroup_detectedSignatures :: Lens' DocumentGroup (Maybe [DetectedSignature])
- documentGroup_splitDocuments :: Lens' DocumentGroup (Maybe [SplitDocument])
- documentGroup_type :: Lens' DocumentGroup (Maybe Text)
- documentGroup_undetectedSignatures :: Lens' DocumentGroup (Maybe [UndetectedSignature])
- data DocumentLocation = DocumentLocation' {}
- newDocumentLocation :: DocumentLocation
- documentLocation_s3Object :: Lens' DocumentLocation (Maybe S3Object)
- data DocumentMetadata = DocumentMetadata' {}
- newDocumentMetadata :: DocumentMetadata
- documentMetadata_pages :: Lens' DocumentMetadata (Maybe Natural)
- data ExpenseCurrency = ExpenseCurrency' {}
- newExpenseCurrency :: ExpenseCurrency
- expenseCurrency_code :: Lens' ExpenseCurrency (Maybe Text)
- expenseCurrency_confidence :: Lens' ExpenseCurrency (Maybe Double)
- data ExpenseDetection = ExpenseDetection' {}
- newExpenseDetection :: ExpenseDetection
- expenseDetection_confidence :: Lens' ExpenseDetection (Maybe Double)
- expenseDetection_geometry :: Lens' ExpenseDetection (Maybe Geometry)
- expenseDetection_text :: Lens' ExpenseDetection (Maybe Text)
- data ExpenseDocument = ExpenseDocument' {
- blocks :: Maybe [Block]
- expenseIndex :: Maybe Natural
- lineItemGroups :: Maybe [LineItemGroup]
- summaryFields :: Maybe [ExpenseField]
- newExpenseDocument :: ExpenseDocument
- expenseDocument_blocks :: Lens' ExpenseDocument (Maybe [Block])
- expenseDocument_expenseIndex :: Lens' ExpenseDocument (Maybe Natural)
- expenseDocument_lineItemGroups :: Lens' ExpenseDocument (Maybe [LineItemGroup])
- expenseDocument_summaryFields :: Lens' ExpenseDocument (Maybe [ExpenseField])
- data ExpenseField = ExpenseField' {}
- newExpenseField :: ExpenseField
- expenseField_currency :: Lens' ExpenseField (Maybe ExpenseCurrency)
- expenseField_groupProperties :: Lens' ExpenseField (Maybe [ExpenseGroupProperty])
- expenseField_labelDetection :: Lens' ExpenseField (Maybe ExpenseDetection)
- expenseField_pageNumber :: Lens' ExpenseField (Maybe Natural)
- expenseField_type :: Lens' ExpenseField (Maybe ExpenseType)
- expenseField_valueDetection :: Lens' ExpenseField (Maybe ExpenseDetection)
- data ExpenseGroupProperty = ExpenseGroupProperty' {}
- newExpenseGroupProperty :: ExpenseGroupProperty
- expenseGroupProperty_id :: Lens' ExpenseGroupProperty (Maybe Text)
- expenseGroupProperty_types :: Lens' ExpenseGroupProperty (Maybe [Text])
- data ExpenseType = ExpenseType' {}
- newExpenseType :: ExpenseType
- expenseType_confidence :: Lens' ExpenseType (Maybe Double)
- expenseType_text :: Lens' ExpenseType (Maybe Text)
- data Extraction = Extraction' {}
- newExtraction :: Extraction
- extraction_expenseDocument :: Lens' Extraction (Maybe ExpenseDocument)
- extraction_identityDocument :: Lens' Extraction (Maybe IdentityDocument)
- extraction_lendingDocument :: Lens' Extraction (Maybe LendingDocument)
- data Geometry = Geometry' {
- boundingBox :: Maybe BoundingBox
- polygon :: Maybe [Point]
- newGeometry :: Geometry
- geometry_boundingBox :: Lens' Geometry (Maybe BoundingBox)
- geometry_polygon :: Lens' Geometry (Maybe [Point])
- data HumanLoopActivationOutput = HumanLoopActivationOutput' {}
- newHumanLoopActivationOutput :: HumanLoopActivationOutput
- humanLoopActivationOutput_humanLoopActivationConditionsEvaluationResults :: Lens' HumanLoopActivationOutput (Maybe Text)
- humanLoopActivationOutput_humanLoopActivationReasons :: Lens' HumanLoopActivationOutput (Maybe (NonEmpty Text))
- humanLoopActivationOutput_humanLoopArn :: Lens' HumanLoopActivationOutput (Maybe Text)
- data HumanLoopConfig = HumanLoopConfig' {}
- newHumanLoopConfig :: Text -> Text -> HumanLoopConfig
- humanLoopConfig_dataAttributes :: Lens' HumanLoopConfig (Maybe HumanLoopDataAttributes)
- humanLoopConfig_humanLoopName :: Lens' HumanLoopConfig Text
- humanLoopConfig_flowDefinitionArn :: Lens' HumanLoopConfig Text
- data HumanLoopDataAttributes = HumanLoopDataAttributes' {}
- newHumanLoopDataAttributes :: HumanLoopDataAttributes
- humanLoopDataAttributes_contentClassifiers :: Lens' HumanLoopDataAttributes (Maybe [ContentClassifier])
- data IdentityDocument = IdentityDocument' {}
- newIdentityDocument :: IdentityDocument
- identityDocument_blocks :: Lens' IdentityDocument (Maybe [Block])
- identityDocument_documentIndex :: Lens' IdentityDocument (Maybe Natural)
- identityDocument_identityDocumentFields :: Lens' IdentityDocument (Maybe [IdentityDocumentField])
- data IdentityDocumentField = IdentityDocumentField' {}
- newIdentityDocumentField :: IdentityDocumentField
- identityDocumentField_type :: Lens' IdentityDocumentField (Maybe AnalyzeIDDetections)
- identityDocumentField_valueDetection :: Lens' IdentityDocumentField (Maybe AnalyzeIDDetections)
- data LendingDetection = LendingDetection' {}
- newLendingDetection :: LendingDetection
- lendingDetection_confidence :: Lens' LendingDetection (Maybe Double)
- lendingDetection_geometry :: Lens' LendingDetection (Maybe Geometry)
- lendingDetection_selectionStatus :: Lens' LendingDetection (Maybe SelectionStatus)
- lendingDetection_text :: Lens' LendingDetection (Maybe Text)
- data LendingDocument = LendingDocument' {}
- newLendingDocument :: LendingDocument
- lendingDocument_lendingFields :: Lens' LendingDocument (Maybe [LendingField])
- lendingDocument_signatureDetections :: Lens' LendingDocument (Maybe [SignatureDetection])
- data LendingField = LendingField' {}
- newLendingField :: LendingField
- lendingField_keyDetection :: Lens' LendingField (Maybe LendingDetection)
- lendingField_type :: Lens' LendingField (Maybe Text)
- lendingField_valueDetections :: Lens' LendingField (Maybe [LendingDetection])
- data LendingResult = LendingResult' {}
- newLendingResult :: LendingResult
- lendingResult_extractions :: Lens' LendingResult (Maybe [Extraction])
- lendingResult_page :: Lens' LendingResult (Maybe Natural)
- lendingResult_pageClassification :: Lens' LendingResult (Maybe PageClassification)
- data LendingSummary = LendingSummary' {}
- newLendingSummary :: LendingSummary
- lendingSummary_documentGroups :: Lens' LendingSummary (Maybe [DocumentGroup])
- lendingSummary_undetectedDocumentTypes :: Lens' LendingSummary (Maybe [Text])
- data LineItemFields = LineItemFields' {}
- newLineItemFields :: LineItemFields
- lineItemFields_lineItemExpenseFields :: Lens' LineItemFields (Maybe [ExpenseField])
- data LineItemGroup = LineItemGroup' {}
- newLineItemGroup :: LineItemGroup
- lineItemGroup_lineItemGroupIndex :: Lens' LineItemGroup (Maybe Natural)
- lineItemGroup_lineItems :: Lens' LineItemGroup (Maybe [LineItemFields])
- data NormalizedValue = NormalizedValue' {}
- newNormalizedValue :: NormalizedValue
- normalizedValue_value :: Lens' NormalizedValue (Maybe Text)
- normalizedValue_valueType :: Lens' NormalizedValue (Maybe ValueType)
- data NotificationChannel = NotificationChannel' {
- sNSTopicArn :: Text
- roleArn :: Text
- newNotificationChannel :: Text -> Text -> NotificationChannel
- notificationChannel_sNSTopicArn :: Lens' NotificationChannel Text
- notificationChannel_roleArn :: Lens' NotificationChannel Text
- data OutputConfig = OutputConfig' {}
- newOutputConfig :: Text -> OutputConfig
- outputConfig_s3Prefix :: Lens' OutputConfig (Maybe Text)
- outputConfig_s3Bucket :: Lens' OutputConfig Text
- data PageClassification = PageClassification' {
- pageType :: [Prediction]
- pageNumber :: [Prediction]
- newPageClassification :: PageClassification
- pageClassification_pageType :: Lens' PageClassification [Prediction]
- pageClassification_pageNumber :: Lens' PageClassification [Prediction]
- data Point = Point' {}
- newPoint :: Point
- point_x :: Lens' Point (Maybe Double)
- point_y :: Lens' Point (Maybe Double)
- data Prediction = Prediction' {}
- newPrediction :: Prediction
- prediction_confidence :: Lens' Prediction (Maybe Double)
- prediction_value :: Lens' Prediction (Maybe Text)
- data QueriesConfig = QueriesConfig' {}
- newQueriesConfig :: NonEmpty Query -> QueriesConfig
- queriesConfig_queries :: Lens' QueriesConfig (NonEmpty Query)
- data Query = Query' {}
- newQuery :: Text -> Query
- query_alias :: Lens' Query (Maybe Text)
- query_pages :: Lens' Query (Maybe (NonEmpty Text))
- query_text :: Lens' Query Text
- data Relationship = Relationship' {}
- newRelationship :: Relationship
- relationship_ids :: Lens' Relationship (Maybe [Text])
- relationship_type :: Lens' Relationship (Maybe RelationshipType)
- data S3Object = S3Object' {}
- newS3Object :: S3Object
- s3Object_bucket :: Lens' S3Object (Maybe Text)
- s3Object_name :: Lens' S3Object (Maybe Text)
- s3Object_version :: Lens' S3Object (Maybe Text)
- data SignatureDetection = SignatureDetection' {}
- newSignatureDetection :: SignatureDetection
- signatureDetection_confidence :: Lens' SignatureDetection (Maybe Double)
- signatureDetection_geometry :: Lens' SignatureDetection (Maybe Geometry)
- data SplitDocument = SplitDocument' {}
- newSplitDocument :: SplitDocument
- splitDocument_index :: Lens' SplitDocument (Maybe Natural)
- splitDocument_pages :: Lens' SplitDocument (Maybe [Natural])
- data UndetectedSignature = UndetectedSignature' {}
- newUndetectedSignature :: UndetectedSignature
- undetectedSignature_page :: Lens' UndetectedSignature (Maybe Natural)
- data Warning = Warning' {}
- newWarning :: Warning
- warning_errorCode :: Lens' Warning (Maybe Text)
- warning_pages :: Lens' Warning (Maybe [Natural])
Service Configuration
defaultService :: Service Source #
API version 2018-06-27
of the Amazon Textract SDK configuration.
Errors
_AccessDeniedException :: AsError a => Fold a ServiceError Source #
You aren't authorized to perform the action. Use the Amazon Resource Name (ARN) of an authorized user or IAM role to perform the operation.
_BadDocumentException :: AsError a => Fold a ServiceError Source #
Amazon Textract isn't able to read the document. For more information on the document limits in Amazon Textract, see limits.
_DocumentTooLargeException :: AsError a => Fold a ServiceError Source #
The document can't be processed because it's too large. The maximum document size for synchronous operations 10 MB. The maximum document size for asynchronous operations is 500 MB for PDF files.
_HumanLoopQuotaExceededException :: AsError a => Fold a ServiceError Source #
Indicates you have exceeded the maximum number of active human in the loop workflows available
_IdempotentParameterMismatchException :: AsError a => Fold a ServiceError Source #
A ClientRequestToken
input parameter was reused with an operation, but
at least one of the other input parameters is different from the
previous call to the operation.
_InternalServerError :: AsError a => Fold a ServiceError Source #
Amazon Textract experienced a service issue. Try your call again.
_InvalidJobIdException :: AsError a => Fold a ServiceError Source #
An invalid job identifier was passed to an asynchronous analysis operation.
_InvalidKMSKeyException :: AsError a => Fold a ServiceError Source #
Indicates you do not have decrypt permissions with the KMS key entered, or the KMS key was entered incorrectly.
_InvalidParameterException :: AsError a => Fold a ServiceError Source #
An input parameter violated a constraint. For example, in synchronous
operations, an InvalidParameterException
exception occurs when neither
of the S3Object
or Bytes
values are supplied in the Document
request parameter. Validate your parameter before calling the API
operation again.
_InvalidS3ObjectException :: AsError a => Fold a ServiceError Source #
Amazon Textract is unable to access the S3 object that's specified in the request. for more information, Configure Access to Amazon S3 For troubleshooting information, see Troubleshooting Amazon S3
_LimitExceededException :: AsError a => Fold a ServiceError Source #
An Amazon Textract service limit was exceeded. For example, if you start
too many asynchronous jobs concurrently, calls to start operations
(StartDocumentTextDetection
, for example) raise a
LimitExceededException exception (HTTP status code: 400) until the
number of concurrently running jobs is below the Amazon Textract service
limit.
_ProvisionedThroughputExceededException :: AsError a => Fold a ServiceError Source #
The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Textract.
_ThrottlingException :: AsError a => Fold a ServiceError Source #
Amazon Textract is temporarily unable to process the request. Try your call again.
_UnsupportedDocumentException :: AsError a => Fold a ServiceError Source #
The format of the input document isn't supported. Documents for operations can be in PNG, JPEG, PDF, or TIFF format.
BlockType
Constructors
BlockType' | |
Fields |
Bundled Patterns
pattern BlockType_CELL :: BlockType | |
pattern BlockType_KEY_VALUE_SET :: BlockType | |
pattern BlockType_LINE :: BlockType | |
pattern BlockType_MERGED_CELL :: BlockType | |
pattern BlockType_PAGE :: BlockType | |
pattern BlockType_QUERY :: BlockType | |
pattern BlockType_QUERY_RESULT :: BlockType | |
pattern BlockType_SELECTION_ELEMENT :: BlockType | |
pattern BlockType_SIGNATURE :: BlockType | |
pattern BlockType_TABLE :: BlockType | |
pattern BlockType_TITLE :: BlockType | |
pattern BlockType_WORD :: BlockType |
Instances
ContentClassifier
newtype ContentClassifier Source #
Constructors
ContentClassifier' | |
Fields |
Bundled Patterns
pattern ContentClassifier_FreeOfAdultContent :: ContentClassifier | |
pattern ContentClassifier_FreeOfPersonallyIdentifiableInformation :: ContentClassifier |
Instances
EntityType
newtype EntityType Source #
Constructors
EntityType' | |
Fields |
Bundled Patterns
pattern EntityType_COLUMN_HEADER :: EntityType | |
pattern EntityType_KEY :: EntityType | |
pattern EntityType_VALUE :: EntityType |
Instances
FeatureType
newtype FeatureType Source #
Constructors
FeatureType' | |
Fields |
Bundled Patterns
pattern FeatureType_FORMS :: FeatureType | |
pattern FeatureType_QUERIES :: FeatureType | |
pattern FeatureType_SIGNATURES :: FeatureType | |
pattern FeatureType_TABLES :: FeatureType |
Instances
JobStatus
Constructors
JobStatus' | |
Fields |
Bundled Patterns
pattern JobStatus_FAILED :: JobStatus | |
pattern JobStatus_IN_PROGRESS :: JobStatus | |
pattern JobStatus_PARTIAL_SUCCESS :: JobStatus | |
pattern JobStatus_SUCCEEDED :: JobStatus |
Instances
RelationshipType
newtype RelationshipType Source #
Constructors
RelationshipType' | |
Fields |
Bundled Patterns
pattern RelationshipType_ANSWER :: RelationshipType | |
pattern RelationshipType_CHILD :: RelationshipType | |
pattern RelationshipType_COMPLEX_FEATURES :: RelationshipType | |
pattern RelationshipType_MERGED_CELL :: RelationshipType | |
pattern RelationshipType_TITLE :: RelationshipType | |
pattern RelationshipType_VALUE :: RelationshipType |
Instances
SelectionStatus
newtype SelectionStatus Source #
Constructors
SelectionStatus' | |
Fields |
Bundled Patterns
pattern SelectionStatus_NOT_SELECTED :: SelectionStatus | |
pattern SelectionStatus_SELECTED :: SelectionStatus |
Instances
TextType
Constructors
TextType' | |
Fields
|
Bundled Patterns
pattern TextType_HANDWRITING :: TextType | |
pattern TextType_PRINTED :: TextType |
Instances
ValueType
Constructors
ValueType' | |
Fields |
Bundled Patterns
pattern ValueType_DATE :: ValueType |
Instances
AnalyzeIDDetections
data AnalyzeIDDetections Source #
Used to contain the information detected by an AnalyzeID operation.
See: newAnalyzeIDDetections
smart constructor.
Constructors
AnalyzeIDDetections' | |
Fields
|
Instances
newAnalyzeIDDetections Source #
Arguments
:: Text | |
-> AnalyzeIDDetections |
Create a value of AnalyzeIDDetections
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:confidence:AnalyzeIDDetections'
, analyzeIDDetections_confidence
- The confidence score of the detected text.
$sel:normalizedValue:AnalyzeIDDetections'
, analyzeIDDetections_normalizedValue
- Only returned for dates, returns the type of value detected and the date
written in a more machine readable way.
$sel:text:AnalyzeIDDetections'
, analyzeIDDetections_text
- Text of either the normalized field or value associated with it.
analyzeIDDetections_confidence :: Lens' AnalyzeIDDetections (Maybe Double) Source #
The confidence score of the detected text.
analyzeIDDetections_normalizedValue :: Lens' AnalyzeIDDetections (Maybe NormalizedValue) Source #
Only returned for dates, returns the type of value detected and the date written in a more machine readable way.
analyzeIDDetections_text :: Lens' AnalyzeIDDetections Text Source #
Text of either the normalized field or value associated with it.
Block
A Block
represents items that are recognized in a document within a
group of pixels close to each other. The information returned in a
Block
object depends on the type of operation. In text detection for
documents (for example DetectDocumentText), you get information about
the detected words and lines of text. In text analysis (for example
AnalyzeDocument), you can also get information about the fields, tables,
and selection elements that are detected in the document.
An array of Block
objects is returned by both synchronous and
asynchronous operations. In synchronous operations, such as
DetectDocumentText, the array of Block
objects is the entire set of
results. In asynchronous operations, such as GetDocumentAnalysis, the
array is returned over one or more responses.
For more information, see How Amazon Textract Works.
See: newBlock
smart constructor.
Constructors
Block' | |
Fields
|
Instances
Create a value of Block
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:blockType:Block'
, block_blockType
- The type of text item that's recognized. In operations for text
detection, the following types are returned:
- PAGE - Contains a list of the LINE
Block
objects that are detected on a document page. - WORD - A word detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
- LINE - A string of tab-delimited, contiguous words that are detected on a document page.
In text analysis operations, the following types are returned:
- PAGE - Contains a list of child
Block
objects that are detected on a document page. - KEY_VALUE_SET - Stores the KEY and VALUE
Block
objects for linked text that's detected on a document page. Use theEntityType
field to determine if a KEY_VALUE_SET object is a KEYBlock
object or a VALUEBlock
object. - WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
- LINE - A string of tab-delimited, contiguous words that are detected on a document page.
- TABLE - A table that's detected on a document page. A table is grid-based information with two or more rows or columns, with a cell span of one row and one column each.
- CELL - A cell within a detected table. The cell is the parent of the block that contains the text in the cell.
- SELECTION_ELEMENT - A selection element such as an option button
(radio button) or a check box that's detected on a document page.
Use the value of
SelectionStatus
to determine the status of the selection element. - SIGNATURE - The location and confidene score of a signature detected on a document page. Can be returned as part of a Key-Value pair or a detected cell.
- QUERY - A question asked during the call of AnalyzeDocument. Contains an alias and an ID that attaches it to its answer.
- QUERY_RESULT - A response to a question asked during the call of analyze document. Comes with an alias and ID for ease of locating in a response. Also contains location and confidence score.
$sel:columnIndex:Block'
, block_columnIndex
- The column in which a table cell appears. The first column position is
1. ColumnIndex
isn't returned by DetectDocumentText
and
GetDocumentTextDetection
.
$sel:columnSpan:Block'
, block_columnSpan
- The number of columns that a table cell spans. Currently this value is
always 1, even if the number of columns spanned is greater than 1.
ColumnSpan
isn't returned by DetectDocumentText
and
GetDocumentTextDetection
.
$sel:confidence:Block'
, block_confidence
- The confidence score that Amazon Textract has in the accuracy of the
recognized text and the accuracy of the geometry points around the
recognized text.
$sel:entityTypes:Block'
, block_entityTypes
- The type of entity. The following can be returned:
- KEY - An identifier for a field on the document.
- VALUE - The field text.
EntityTypes
isn't returned by DetectDocumentText
and
GetDocumentTextDetection
.
$sel:geometry:Block'
, block_geometry
- The location of the recognized text on the image. It includes an
axis-aligned, coarse bounding box that surrounds the text, and a
finer-grain polygon for more accurate spatial information.
$sel:id:Block'
, block_id
- The identifier for the recognized text. The identifier is only unique
for a single operation.
$sel:page:Block'
, block_page
- The page on which a block was detected. Page
is returned by
synchronous and asynchronous operations. Page values greater than 1 are
only returned for multipage documents that are in PDF or TIFF format. A
scanned image (JPEG/PNG) provided to an asynchronous operation, even if
it contains multiple document pages, is considered a single-page
document. This means that for scanned images the value of Page
is
always 1. Synchronous operations operations will also return a Page
value of 1 because every input document is considered to be a
single-page document.
$sel:query:Block'
, block_query
-
$sel:relationships:Block'
, block_relationships
- A list of child blocks of the current block. For example, a LINE object
has child blocks for each WORD block that's part of the line of text.
There aren't Relationship objects in the list for relationships that
don't exist, such as when the current block has no child blocks. The
list size can be the following:
- 0 - The block has no child blocks.
- 1 - The block has child blocks.
$sel:rowIndex:Block'
, block_rowIndex
- The row in which a table cell is located. The first row position is 1.
RowIndex
isn't returned by DetectDocumentText
and
GetDocumentTextDetection
.
$sel:rowSpan:Block'
, block_rowSpan
- The number of rows that a table cell spans. Currently this value is
always 1, even if the number of rows spanned is greater than 1.
RowSpan
isn't returned by DetectDocumentText
and
GetDocumentTextDetection
.
$sel:selectionStatus:Block'
, block_selectionStatus
- The selection status of a selection element, such as an option button or
check box.
Block
, block_text
- The word or line of text that's recognized by Amazon Textract.
$sel:textType:Block'
, block_textType
- The kind of text that Amazon Textract has detected. Can check for
handwritten text and printed text.
block_blockType :: Lens' Block (Maybe BlockType) Source #
The type of text item that's recognized. In operations for text detection, the following types are returned:
- PAGE - Contains a list of the LINE
Block
objects that are detected on a document page. - WORD - A word detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
- LINE - A string of tab-delimited, contiguous words that are detected on a document page.
In text analysis operations, the following types are returned:
- PAGE - Contains a list of child
Block
objects that are detected on a document page. - KEY_VALUE_SET - Stores the KEY and VALUE
Block
objects for linked text that's detected on a document page. Use theEntityType
field to determine if a KEY_VALUE_SET object is a KEYBlock
object or a VALUEBlock
object. - WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
- LINE - A string of tab-delimited, contiguous words that are detected on a document page.
- TABLE - A table that's detected on a document page. A table is grid-based information with two or more rows or columns, with a cell span of one row and one column each.
- CELL - A cell within a detected table. The cell is the parent of the block that contains the text in the cell.
- SELECTION_ELEMENT - A selection element such as an option button
(radio button) or a check box that's detected on a document page.
Use the value of
SelectionStatus
to determine the status of the selection element. - SIGNATURE - The location and confidene score of a signature detected on a document page. Can be returned as part of a Key-Value pair or a detected cell.
- QUERY - A question asked during the call of AnalyzeDocument. Contains an alias and an ID that attaches it to its answer.
- QUERY_RESULT - A response to a question asked during the call of analyze document. Comes with an alias and ID for ease of locating in a response. Also contains location and confidence score.
block_columnIndex :: Lens' Block (Maybe Natural) Source #
The column in which a table cell appears. The first column position is
1. ColumnIndex
isn't returned by DetectDocumentText
and
GetDocumentTextDetection
.
block_columnSpan :: Lens' Block (Maybe Natural) Source #
The number of columns that a table cell spans. Currently this value is
always 1, even if the number of columns spanned is greater than 1.
ColumnSpan
isn't returned by DetectDocumentText
and
GetDocumentTextDetection
.
block_confidence :: Lens' Block (Maybe Double) Source #
The confidence score that Amazon Textract has in the accuracy of the recognized text and the accuracy of the geometry points around the recognized text.
block_entityTypes :: Lens' Block (Maybe [EntityType]) Source #
The type of entity. The following can be returned:
- KEY - An identifier for a field on the document.
- VALUE - The field text.
EntityTypes
isn't returned by DetectDocumentText
and
GetDocumentTextDetection
.
block_geometry :: Lens' Block (Maybe Geometry) Source #
The location of the recognized text on the image. It includes an axis-aligned, coarse bounding box that surrounds the text, and a finer-grain polygon for more accurate spatial information.
block_id :: Lens' Block (Maybe Text) Source #
The identifier for the recognized text. The identifier is only unique for a single operation.
block_page :: Lens' Block (Maybe Natural) Source #
The page on which a block was detected. Page
is returned by
synchronous and asynchronous operations. Page values greater than 1 are
only returned for multipage documents that are in PDF or TIFF format. A
scanned image (JPEG/PNG) provided to an asynchronous operation, even if
it contains multiple document pages, is considered a single-page
document. This means that for scanned images the value of Page
is
always 1. Synchronous operations operations will also return a Page
value of 1 because every input document is considered to be a
single-page document.
block_relationships :: Lens' Block (Maybe [Relationship]) Source #
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text. There aren't Relationship objects in the list for relationships that don't exist, such as when the current block has no child blocks. The list size can be the following:
- 0 - The block has no child blocks.
- 1 - The block has child blocks.
block_rowIndex :: Lens' Block (Maybe Natural) Source #
The row in which a table cell is located. The first row position is 1.
RowIndex
isn't returned by DetectDocumentText
and
GetDocumentTextDetection
.
block_rowSpan :: Lens' Block (Maybe Natural) Source #
The number of rows that a table cell spans. Currently this value is
always 1, even if the number of rows spanned is greater than 1.
RowSpan
isn't returned by DetectDocumentText
and
GetDocumentTextDetection
.
block_selectionStatus :: Lens' Block (Maybe SelectionStatus) Source #
The selection status of a selection element, such as an option button or check box.
block_text :: Lens' Block (Maybe Text) Source #
The word or line of text that's recognized by Amazon Textract.
block_textType :: Lens' Block (Maybe TextType) Source #
The kind of text that Amazon Textract has detected. Can check for handwritten text and printed text.
BoundingBox
data BoundingBox Source #
The bounding box around the detected page, text, key-value pair, table,
table cell, or selection element on a document page. The left
(x-coordinate) and top
(y-coordinate) are coordinates that represent
the top and left sides of the bounding box. Note that the upper-left
corner of the image is the origin (0,0).
The top
and left
values returned are ratios of the overall document
page size. For example, if the input image is 700 x 200 pixels, and the
top-left coordinate of the bounding box is 350 x 50 pixels, the API
returns a left
value of 0.5 (350/700) and a top
value of 0.25
(50/200).
The width
and height
values represent the dimensions of the bounding
box as a ratio of the overall document page dimension. For example, if
the document page size is 700 x 200 pixels, and the bounding box width
is 70 pixels, the width returned is 0.1.
See: newBoundingBox
smart constructor.
Constructors
BoundingBox' | |
Fields
|
Instances
newBoundingBox :: BoundingBox Source #
Create a value of BoundingBox
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:height:BoundingBox'
, boundingBox_height
- The height of the bounding box as a ratio of the overall document page
height.
$sel:left:BoundingBox'
, boundingBox_left
- The left coordinate of the bounding box as a ratio of overall document
page width.
$sel:top:BoundingBox'
, boundingBox_top
- The top coordinate of the bounding box as a ratio of overall document
page height.
$sel:width:BoundingBox'
, boundingBox_width
- The width of the bounding box as a ratio of the overall document page
width.
boundingBox_height :: Lens' BoundingBox (Maybe Double) Source #
The height of the bounding box as a ratio of the overall document page height.
boundingBox_left :: Lens' BoundingBox (Maybe Double) Source #
The left coordinate of the bounding box as a ratio of overall document page width.
boundingBox_top :: Lens' BoundingBox (Maybe Double) Source #
The top coordinate of the bounding box as a ratio of overall document page height.
boundingBox_width :: Lens' BoundingBox (Maybe Double) Source #
The width of the bounding box as a ratio of the overall document page width.
DetectedSignature
data DetectedSignature Source #
A structure that holds information regarding a detected signature on a page.
See: newDetectedSignature
smart constructor.
Constructors
DetectedSignature' | |
Instances
newDetectedSignature :: DetectedSignature Source #
Create a value of DetectedSignature
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:page:DetectedSignature'
, detectedSignature_page
- The page a detected signature was found on.
detectedSignature_page :: Lens' DetectedSignature (Maybe Natural) Source #
The page a detected signature was found on.
Document
The input document, either as bytes or as an S3 object.
You pass image bytes to an Amazon Textract API operation by using the
Bytes
property. For example, you would use the Bytes
property to
pass a document loaded from a local file system. Image bytes passed by
using the Bytes
property must be base64 encoded. Your code might not
need to encode document file bytes if you're using an AWS SDK to call
Amazon Textract API operations.
You pass images stored in an S3 bucket to an Amazon Textract API
operation by using the S3Object
property. Documents stored in an S3
bucket don't need to be base64 encoded.
The AWS Region for the S3 bucket that contains the S3 object must match the AWS Region that you use for Amazon Textract operations.
If you use the AWS CLI to call Amazon Textract operations, passing image bytes using the Bytes property isn't supported. You must first upload the document to an Amazon S3 bucket, and then call the operation using the S3Object property.
For Amazon Textract to process an S3 object, the user must have permission to access the S3 object.
See: newDocument
smart constructor.
Constructors
Document' | |
Fields
|
Instances
ToJSON Document Source # | |
Defined in Amazonka.Textract.Types.Document | |
Generic Document Source # | |
Read Document Source # | |
Show Document Source # | |
NFData Document Source # | |
Defined in Amazonka.Textract.Types.Document | |
Eq Document Source # | |
Hashable Document Source # | |
Defined in Amazonka.Textract.Types.Document | |
type Rep Document Source # | |
Defined in Amazonka.Textract.Types.Document type Rep Document = D1 ('MetaData "Document" "Amazonka.Textract.Types.Document" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "Document'" 'PrefixI 'True) (S1 ('MetaSel ('Just "bytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Base64)) :*: S1 ('MetaSel ('Just "s3Object") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe S3Object)))) |
newDocument :: Document Source #
Create a value of Document
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:bytes:Document'
, document_bytes
- A blob of base64-encoded document bytes. The maximum size of a document
that's provided in a blob of bytes is 5 MB. The document bytes must be
in PNG or JPEG format.
If you're using an AWS SDK to call Amazon Textract, you might not need
to base64-encode image bytes passed using the Bytes
field.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
$sel:s3Object:Document'
, document_s3Object
- Identifies an S3 object as the document source. The maximum size of a
document that's stored in an S3 bucket is 5 MB.
document_bytes :: Lens' Document (Maybe ByteString) Source #
A blob of base64-encoded document bytes. The maximum size of a document that's provided in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG format.
If you're using an AWS SDK to call Amazon Textract, you might not need
to base64-encode image bytes passed using the Bytes
field.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
document_s3Object :: Lens' Document (Maybe S3Object) Source #
Identifies an S3 object as the document source. The maximum size of a document that's stored in an S3 bucket is 5 MB.
DocumentGroup
data DocumentGroup Source #
Summary information about documents grouped by the same document type.
See: newDocumentGroup
smart constructor.
Constructors
DocumentGroup' | |
Fields
|
Instances
newDocumentGroup :: DocumentGroup Source #
Create a value of DocumentGroup
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:detectedSignatures:DocumentGroup'
, documentGroup_detectedSignatures
- A list of the detected signatures found in a document group.
$sel:splitDocuments:DocumentGroup'
, documentGroup_splitDocuments
- An array that contains information about the pages of a document,
defined by logical boundary.
$sel:type':DocumentGroup'
, documentGroup_type
- The type of document that Amazon Textract has detected. See LINK for a
list of all types returned by Textract.
$sel:undetectedSignatures:DocumentGroup'
, documentGroup_undetectedSignatures
- A list of any expected signatures not found in a document group.
documentGroup_detectedSignatures :: Lens' DocumentGroup (Maybe [DetectedSignature]) Source #
A list of the detected signatures found in a document group.
documentGroup_splitDocuments :: Lens' DocumentGroup (Maybe [SplitDocument]) Source #
An array that contains information about the pages of a document, defined by logical boundary.
documentGroup_type :: Lens' DocumentGroup (Maybe Text) Source #
The type of document that Amazon Textract has detected. See LINK for a list of all types returned by Textract.
documentGroup_undetectedSignatures :: Lens' DocumentGroup (Maybe [UndetectedSignature]) Source #
A list of any expected signatures not found in a document group.
DocumentLocation
data DocumentLocation Source #
The Amazon S3 bucket that contains the document to be processed. It's used by asynchronous operations.
The input document can be an image file in JPEG or PNG format. It can also be a file in PDF format.
See: newDocumentLocation
smart constructor.
Constructors
DocumentLocation' | |
Instances
newDocumentLocation :: DocumentLocation Source #
Create a value of DocumentLocation
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:s3Object:DocumentLocation'
, documentLocation_s3Object
- The Amazon S3 bucket that contains the input document.
documentLocation_s3Object :: Lens' DocumentLocation (Maybe S3Object) Source #
The Amazon S3 bucket that contains the input document.
DocumentMetadata
data DocumentMetadata Source #
Information about the input document.
See: newDocumentMetadata
smart constructor.
Constructors
DocumentMetadata' | |
Instances
newDocumentMetadata :: DocumentMetadata Source #
Create a value of DocumentMetadata
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:pages:DocumentMetadata'
, documentMetadata_pages
- The number of pages that are detected in the document.
documentMetadata_pages :: Lens' DocumentMetadata (Maybe Natural) Source #
The number of pages that are detected in the document.
ExpenseCurrency
data ExpenseCurrency Source #
Returns the kind of currency detected.
See: newExpenseCurrency
smart constructor.
Constructors
ExpenseCurrency' | |
Instances
newExpenseCurrency :: ExpenseCurrency Source #
Create a value of ExpenseCurrency
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:code:ExpenseCurrency'
, expenseCurrency_code
- Currency code for detected currency. the current supported codes are:
- USD
- EUR
- GBP
- CAD
- INR
- JPY
- CHF
- AUD
- CNY
- BZR
- SEK
- HKD
$sel:confidence:ExpenseCurrency'
, expenseCurrency_confidence
- Percentage confideence in the detected currency.
expenseCurrency_code :: Lens' ExpenseCurrency (Maybe Text) Source #
Currency code for detected currency. the current supported codes are:
- USD
- EUR
- GBP
- CAD
- INR
- JPY
- CHF
- AUD
- CNY
- BZR
- SEK
- HKD
expenseCurrency_confidence :: Lens' ExpenseCurrency (Maybe Double) Source #
Percentage confideence in the detected currency.
ExpenseDetection
data ExpenseDetection Source #
An object used to store information about the Value or Label detected by Amazon Textract.
See: newExpenseDetection
smart constructor.
Constructors
ExpenseDetection' | |
Instances
newExpenseDetection :: ExpenseDetection Source #
Create a value of ExpenseDetection
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:confidence:ExpenseDetection'
, expenseDetection_confidence
- The confidence in detection, as a percentage
$sel:geometry:ExpenseDetection'
, expenseDetection_geometry
- Undocumented member.
$sel:text:ExpenseDetection'
, expenseDetection_text
- The word or line of text recognized by Amazon Textract
expenseDetection_confidence :: Lens' ExpenseDetection (Maybe Double) Source #
The confidence in detection, as a percentage
expenseDetection_geometry :: Lens' ExpenseDetection (Maybe Geometry) Source #
Undocumented member.
expenseDetection_text :: Lens' ExpenseDetection (Maybe Text) Source #
The word or line of text recognized by Amazon Textract
ExpenseDocument
data ExpenseDocument Source #
The structure holding all the information returned by AnalyzeExpense
See: newExpenseDocument
smart constructor.
Constructors
ExpenseDocument' | |
Fields
|
Instances
newExpenseDocument :: ExpenseDocument Source #
Create a value of ExpenseDocument
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:blocks:ExpenseDocument'
, expenseDocument_blocks
- This is a block object, the same as reported when DetectDocumentText is
run on a document. It provides word level recognition of text.
$sel:expenseIndex:ExpenseDocument'
, expenseDocument_expenseIndex
- Denotes which invoice or receipt in the document the information is
coming from. First document will be 1, the second 2, and so on.
$sel:lineItemGroups:ExpenseDocument'
, expenseDocument_lineItemGroups
- Information detected on each table of a document, seperated into
LineItems
.
$sel:summaryFields:ExpenseDocument'
, expenseDocument_summaryFields
- Any information found outside of a table by Amazon Textract.
expenseDocument_blocks :: Lens' ExpenseDocument (Maybe [Block]) Source #
This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.
expenseDocument_expenseIndex :: Lens' ExpenseDocument (Maybe Natural) Source #
Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the second 2, and so on.
expenseDocument_lineItemGroups :: Lens' ExpenseDocument (Maybe [LineItemGroup]) Source #
Information detected on each table of a document, seperated into
LineItems
.
expenseDocument_summaryFields :: Lens' ExpenseDocument (Maybe [ExpenseField]) Source #
Any information found outside of a table by Amazon Textract.
ExpenseField
data ExpenseField Source #
Breakdown of detected information, seperated into the catagories Type, LabelDetection, and ValueDetection
See: newExpenseField
smart constructor.
Constructors
ExpenseField' | |
Fields
|
Instances
newExpenseField :: ExpenseField Source #
Create a value of ExpenseField
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:currency:ExpenseField'
, expenseField_currency
- Shows the kind of currency, both the code and confidence associated with
any monatary value detected.
$sel:groupProperties:ExpenseField'
, expenseField_groupProperties
- Shows which group a response object belongs to, such as whether an
address line belongs to the vendor's address or the recipent's
address.
$sel:labelDetection:ExpenseField'
, expenseField_labelDetection
- The explicitly stated label of a detected element.
$sel:pageNumber:ExpenseField'
, expenseField_pageNumber
- The page number the value was detected on.
$sel:type':ExpenseField'
, expenseField_type
- The implied label of a detected element. Present alongside
LabelDetection for explicit elements.
$sel:valueDetection:ExpenseField'
, expenseField_valueDetection
- The value of a detected element. Present in explicit and implicit
elements.
expenseField_currency :: Lens' ExpenseField (Maybe ExpenseCurrency) Source #
Shows the kind of currency, both the code and confidence associated with any monatary value detected.
expenseField_groupProperties :: Lens' ExpenseField (Maybe [ExpenseGroupProperty]) Source #
Shows which group a response object belongs to, such as whether an address line belongs to the vendor's address or the recipent's address.
expenseField_labelDetection :: Lens' ExpenseField (Maybe ExpenseDetection) Source #
The explicitly stated label of a detected element.
expenseField_pageNumber :: Lens' ExpenseField (Maybe Natural) Source #
The page number the value was detected on.
expenseField_type :: Lens' ExpenseField (Maybe ExpenseType) Source #
The implied label of a detected element. Present alongside LabelDetection for explicit elements.
expenseField_valueDetection :: Lens' ExpenseField (Maybe ExpenseDetection) Source #
The value of a detected element. Present in explicit and implicit elements.
ExpenseGroupProperty
data ExpenseGroupProperty Source #
Shows the group that a certain key belongs to. This helps differentiate between names and addresses for different organizations, that can be hard to determine via JSON response.
See: newExpenseGroupProperty
smart constructor.
Constructors
ExpenseGroupProperty' | |
Instances
newExpenseGroupProperty :: ExpenseGroupProperty Source #
Create a value of ExpenseGroupProperty
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:id:ExpenseGroupProperty'
, expenseGroupProperty_id
- Provides a group Id number, which will be the same for each in the
group.
$sel:types:ExpenseGroupProperty'
, expenseGroupProperty_types
- Informs you on whether the expense group is a name or an address.
expenseGroupProperty_id :: Lens' ExpenseGroupProperty (Maybe Text) Source #
Provides a group Id number, which will be the same for each in the group.
expenseGroupProperty_types :: Lens' ExpenseGroupProperty (Maybe [Text]) Source #
Informs you on whether the expense group is a name or an address.
ExpenseType
data ExpenseType Source #
An object used to store information about the Type detected by Amazon Textract.
See: newExpenseType
smart constructor.
Constructors
ExpenseType' | |
Instances
newExpenseType :: ExpenseType Source #
Create a value of ExpenseType
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:confidence:ExpenseType'
, expenseType_confidence
- The confidence of accuracy, as a percentage.
$sel:text:ExpenseType'
, expenseType_text
- The word or line of text detected by Amazon Textract.
expenseType_confidence :: Lens' ExpenseType (Maybe Double) Source #
The confidence of accuracy, as a percentage.
expenseType_text :: Lens' ExpenseType (Maybe Text) Source #
The word or line of text detected by Amazon Textract.
Extraction
data Extraction Source #
Contains information extracted by an analysis operation after using StartLendingAnalysis.
See: newExtraction
smart constructor.
Constructors
Extraction' | |
Fields
|
Instances
newExtraction :: Extraction Source #
Create a value of Extraction
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:expenseDocument:Extraction'
, extraction_expenseDocument
- Undocumented member.
$sel:identityDocument:Extraction'
, extraction_identityDocument
- Undocumented member.
$sel:lendingDocument:Extraction'
, extraction_lendingDocument
- Holds the structured data returned by AnalyzeDocument for lending
documents.
extraction_expenseDocument :: Lens' Extraction (Maybe ExpenseDocument) Source #
Undocumented member.
extraction_identityDocument :: Lens' Extraction (Maybe IdentityDocument) Source #
Undocumented member.
extraction_lendingDocument :: Lens' Extraction (Maybe LendingDocument) Source #
Holds the structured data returned by AnalyzeDocument for lending documents.
Geometry
Information about where the following items are located on a document page: detected page, text, key-value pairs, tables, table cells, and selection elements.
See: newGeometry
smart constructor.
Constructors
Geometry' | |
Fields
|
Instances
FromJSON Geometry Source # | |
Generic Geometry Source # | |
Read Geometry Source # | |
Show Geometry Source # | |
NFData Geometry Source # | |
Defined in Amazonka.Textract.Types.Geometry | |
Eq Geometry Source # | |
Hashable Geometry Source # | |
Defined in Amazonka.Textract.Types.Geometry | |
type Rep Geometry Source # | |
Defined in Amazonka.Textract.Types.Geometry type Rep Geometry = D1 ('MetaData "Geometry" "Amazonka.Textract.Types.Geometry" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "Geometry'" 'PrefixI 'True) (S1 ('MetaSel ('Just "boundingBox") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BoundingBox)) :*: S1 ('MetaSel ('Just "polygon") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Point])))) |
newGeometry :: Geometry Source #
Create a value of Geometry
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:boundingBox:Geometry'
, geometry_boundingBox
- An axis-aligned coarse representation of the location of the recognized
item on the document page.
$sel:polygon:Geometry'
, geometry_polygon
- Within the bounding box, a fine-grained polygon around the recognized
item.
geometry_boundingBox :: Lens' Geometry (Maybe BoundingBox) Source #
An axis-aligned coarse representation of the location of the recognized item on the document page.
geometry_polygon :: Lens' Geometry (Maybe [Point]) Source #
Within the bounding box, a fine-grained polygon around the recognized item.
HumanLoopActivationOutput
data HumanLoopActivationOutput Source #
Shows the results of the human in the loop evaluation. If there is no HumanLoopArn, the input did not trigger human review.
See: newHumanLoopActivationOutput
smart constructor.
Constructors
HumanLoopActivationOutput' | |
Fields
|
Instances
newHumanLoopActivationOutput :: HumanLoopActivationOutput Source #
Create a value of HumanLoopActivationOutput
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:humanLoopActivationConditionsEvaluationResults:HumanLoopActivationOutput'
, humanLoopActivationOutput_humanLoopActivationConditionsEvaluationResults
- Shows the result of condition evaluations, including those conditions
which activated a human review.
$sel:humanLoopActivationReasons:HumanLoopActivationOutput'
, humanLoopActivationOutput_humanLoopActivationReasons
- Shows if and why human review was needed.
$sel:humanLoopArn:HumanLoopActivationOutput'
, humanLoopActivationOutput_humanLoopArn
- The Amazon Resource Name (ARN) of the HumanLoop created.
humanLoopActivationOutput_humanLoopActivationConditionsEvaluationResults :: Lens' HumanLoopActivationOutput (Maybe Text) Source #
Shows the result of condition evaluations, including those conditions which activated a human review.
humanLoopActivationOutput_humanLoopActivationReasons :: Lens' HumanLoopActivationOutput (Maybe (NonEmpty Text)) Source #
Shows if and why human review was needed.
humanLoopActivationOutput_humanLoopArn :: Lens' HumanLoopActivationOutput (Maybe Text) Source #
The Amazon Resource Name (ARN) of the HumanLoop created.
HumanLoopConfig
data HumanLoopConfig Source #
Sets up the human review workflow the document will be sent to if one of the conditions is met. You can also set certain attributes of the image before review.
See: newHumanLoopConfig
smart constructor.
Constructors
HumanLoopConfig' | |
Fields
|
Instances
Arguments
:: Text | |
-> Text | |
-> HumanLoopConfig |
Create a value of HumanLoopConfig
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dataAttributes:HumanLoopConfig'
, humanLoopConfig_dataAttributes
- Sets attributes of the input data.
$sel:humanLoopName:HumanLoopConfig'
, humanLoopConfig_humanLoopName
- The name of the human workflow used for this image. This should be kept
unique within a region.
$sel:flowDefinitionArn:HumanLoopConfig'
, humanLoopConfig_flowDefinitionArn
- The Amazon Resource Name (ARN) of the flow definition.
humanLoopConfig_dataAttributes :: Lens' HumanLoopConfig (Maybe HumanLoopDataAttributes) Source #
Sets attributes of the input data.
humanLoopConfig_humanLoopName :: Lens' HumanLoopConfig Text Source #
The name of the human workflow used for this image. This should be kept unique within a region.
humanLoopConfig_flowDefinitionArn :: Lens' HumanLoopConfig Text Source #
The Amazon Resource Name (ARN) of the flow definition.
HumanLoopDataAttributes
data HumanLoopDataAttributes Source #
Allows you to set attributes of the image. Currently, you can declare an image as free of personally identifiable information and adult content.
See: newHumanLoopDataAttributes
smart constructor.
Constructors
HumanLoopDataAttributes' | |
Fields
|
Instances
newHumanLoopDataAttributes :: HumanLoopDataAttributes Source #
Create a value of HumanLoopDataAttributes
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:contentClassifiers:HumanLoopDataAttributes'
, humanLoopDataAttributes_contentClassifiers
- Sets whether the input image is free of personally identifiable
information or adult content.
humanLoopDataAttributes_contentClassifiers :: Lens' HumanLoopDataAttributes (Maybe [ContentClassifier]) Source #
Sets whether the input image is free of personally identifiable information or adult content.
IdentityDocument
data IdentityDocument Source #
The structure that lists each document processed in an AnalyzeID operation.
See: newIdentityDocument
smart constructor.
Constructors
IdentityDocument' | |
Fields
|
Instances
newIdentityDocument :: IdentityDocument Source #
Create a value of IdentityDocument
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:blocks:IdentityDocument'
, identityDocument_blocks
- Individual word recognition, as returned by document detection.
$sel:documentIndex:IdentityDocument'
, identityDocument_documentIndex
- Denotes the placement of a document in the IdentityDocument list. The
first document is marked 1, the second 2 and so on.
$sel:identityDocumentFields:IdentityDocument'
, identityDocument_identityDocumentFields
- The structure used to record information extracted from identity
documents. Contains both normalized field and value of the extracted
text.
identityDocument_blocks :: Lens' IdentityDocument (Maybe [Block]) Source #
Individual word recognition, as returned by document detection.
identityDocument_documentIndex :: Lens' IdentityDocument (Maybe Natural) Source #
Denotes the placement of a document in the IdentityDocument list. The first document is marked 1, the second 2 and so on.
identityDocument_identityDocumentFields :: Lens' IdentityDocument (Maybe [IdentityDocumentField]) Source #
The structure used to record information extracted from identity documents. Contains both normalized field and value of the extracted text.
IdentityDocumentField
data IdentityDocumentField Source #
Structure containing both the normalized type of the extracted information and the text associated with it. These are extracted as Type and Value respectively.
See: newIdentityDocumentField
smart constructor.
Constructors
IdentityDocumentField' | |
Fields |
Instances
newIdentityDocumentField :: IdentityDocumentField Source #
Create a value of IdentityDocumentField
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:type':IdentityDocumentField'
, identityDocumentField_type
- Undocumented member.
$sel:valueDetection:IdentityDocumentField'
, identityDocumentField_valueDetection
- Undocumented member.
identityDocumentField_type :: Lens' IdentityDocumentField (Maybe AnalyzeIDDetections) Source #
Undocumented member.
identityDocumentField_valueDetection :: Lens' IdentityDocumentField (Maybe AnalyzeIDDetections) Source #
Undocumented member.
LendingDetection
data LendingDetection Source #
The results extracted for a lending document.
See: newLendingDetection
smart constructor.
Constructors
LendingDetection' | |
Fields
|
Instances
newLendingDetection :: LendingDetection Source #
Create a value of LendingDetection
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:confidence:LendingDetection'
, lendingDetection_confidence
- The confidence level for the text of a detected value in a lending
document.
$sel:geometry:LendingDetection'
, lendingDetection_geometry
- Undocumented member.
$sel:selectionStatus:LendingDetection'
, lendingDetection_selectionStatus
- The selection status of a selection element, such as an option button or
check box.
$sel:text:LendingDetection'
, lendingDetection_text
- The text extracted for a detected value in a lending document.
lendingDetection_confidence :: Lens' LendingDetection (Maybe Double) Source #
The confidence level for the text of a detected value in a lending document.
lendingDetection_geometry :: Lens' LendingDetection (Maybe Geometry) Source #
Undocumented member.
lendingDetection_selectionStatus :: Lens' LendingDetection (Maybe SelectionStatus) Source #
The selection status of a selection element, such as an option button or check box.
lendingDetection_text :: Lens' LendingDetection (Maybe Text) Source #
The text extracted for a detected value in a lending document.
LendingDocument
data LendingDocument Source #
Holds the structured data returned by AnalyzeDocument for lending documents.
See: newLendingDocument
smart constructor.
Constructors
LendingDocument' | |
Fields
|
Instances
newLendingDocument :: LendingDocument Source #
Create a value of LendingDocument
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lendingFields:LendingDocument'
, lendingDocument_lendingFields
- An array of LendingField objects.
$sel:signatureDetections:LendingDocument'
, lendingDocument_signatureDetections
- A list of signatures detected in a lending document.
lendingDocument_lendingFields :: Lens' LendingDocument (Maybe [LendingField]) Source #
An array of LendingField objects.
lendingDocument_signatureDetections :: Lens' LendingDocument (Maybe [SignatureDetection]) Source #
A list of signatures detected in a lending document.
LendingField
data LendingField Source #
Holds the normalized key-value pairs returned by AnalyzeDocument, including the document type, detected text, and geometry.
See: newLendingField
smart constructor.
Constructors
LendingField' | |
Fields
|
Instances
newLendingField :: LendingField Source #
Create a value of LendingField
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:keyDetection:LendingField'
, lendingField_keyDetection
- Undocumented member.
$sel:type':LendingField'
, lendingField_type
- The type of the lending document.
$sel:valueDetections:LendingField'
, lendingField_valueDetections
- An array of LendingDetection objects.
lendingField_keyDetection :: Lens' LendingField (Maybe LendingDetection) Source #
Undocumented member.
lendingField_type :: Lens' LendingField (Maybe Text) Source #
The type of the lending document.
lendingField_valueDetections :: Lens' LendingField (Maybe [LendingDetection]) Source #
An array of LendingDetection objects.
LendingResult
data LendingResult Source #
Contains the detections for each page analyzed through the Analyze Lending API.
See: newLendingResult
smart constructor.
Constructors
LendingResult' | |
Fields
|
Instances
newLendingResult :: LendingResult Source #
Create a value of LendingResult
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:extractions:LendingResult'
, lendingResult_extractions
- An array of Extraction to hold structured data. e.g. normalized key
value pairs instead of raw OCR detections .
$sel:page:LendingResult'
, lendingResult_page
- The page number for a page, with regard to whole submission.
$sel:pageClassification:LendingResult'
, lendingResult_pageClassification
- The classifier result for a given page.
lendingResult_extractions :: Lens' LendingResult (Maybe [Extraction]) Source #
An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections .
lendingResult_page :: Lens' LendingResult (Maybe Natural) Source #
The page number for a page, with regard to whole submission.
lendingResult_pageClassification :: Lens' LendingResult (Maybe PageClassification) Source #
The classifier result for a given page.
LendingSummary
data LendingSummary Source #
Contains information regarding DocumentGroups and UndetectedDocumentTypes.
See: newLendingSummary
smart constructor.
Constructors
LendingSummary' | |
Fields
|
Instances
newLendingSummary :: LendingSummary Source #
Create a value of LendingSummary
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:documentGroups:LendingSummary'
, lendingSummary_documentGroups
- Contains an array of all DocumentGroup objects.
$sel:undetectedDocumentTypes:LendingSummary'
, lendingSummary_undetectedDocumentTypes
- UndetectedDocumentTypes.
lendingSummary_documentGroups :: Lens' LendingSummary (Maybe [DocumentGroup]) Source #
Contains an array of all DocumentGroup objects.
lendingSummary_undetectedDocumentTypes :: Lens' LendingSummary (Maybe [Text]) Source #
UndetectedDocumentTypes.
LineItemFields
data LineItemFields Source #
A structure that holds information about the different lines found in a document's tables.
See: newLineItemFields
smart constructor.
Constructors
LineItemFields' | |
Fields
|
Instances
newLineItemFields :: LineItemFields Source #
Create a value of LineItemFields
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lineItemExpenseFields:LineItemFields'
, lineItemFields_lineItemExpenseFields
- ExpenseFields used to show information from detected lines on a table.
lineItemFields_lineItemExpenseFields :: Lens' LineItemFields (Maybe [ExpenseField]) Source #
ExpenseFields used to show information from detected lines on a table.
LineItemGroup
data LineItemGroup Source #
A grouping of tables which contain LineItems, with each table identified
by the table's LineItemGroupIndex
.
See: newLineItemGroup
smart constructor.
Constructors
LineItemGroup' | |
Fields
|
Instances
newLineItemGroup :: LineItemGroup Source #
Create a value of LineItemGroup
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lineItemGroupIndex:LineItemGroup'
, lineItemGroup_lineItemGroupIndex
- The number used to identify a specific table in a document. The first
table encountered will have a LineItemGroupIndex of 1, the second 2,
etc.
$sel:lineItems:LineItemGroup'
, lineItemGroup_lineItems
- The breakdown of information on a particular line of a table.
lineItemGroup_lineItemGroupIndex :: Lens' LineItemGroup (Maybe Natural) Source #
The number used to identify a specific table in a document. The first table encountered will have a LineItemGroupIndex of 1, the second 2, etc.
lineItemGroup_lineItems :: Lens' LineItemGroup (Maybe [LineItemFields]) Source #
The breakdown of information on a particular line of a table.
NormalizedValue
data NormalizedValue Source #
Contains information relating to dates in a document, including the type of value, and the value.
See: newNormalizedValue
smart constructor.
Constructors
NormalizedValue' | |
Instances
newNormalizedValue :: NormalizedValue Source #
Create a value of NormalizedValue
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:value:NormalizedValue'
, normalizedValue_value
- The value of the date, written as Year-Month-DayTHour:Minute:Second.
$sel:valueType:NormalizedValue'
, normalizedValue_valueType
- The normalized type of the value detected. In this case, DATE.
normalizedValue_value :: Lens' NormalizedValue (Maybe Text) Source #
The value of the date, written as Year-Month-DayTHour:Minute:Second.
normalizedValue_valueType :: Lens' NormalizedValue (Maybe ValueType) Source #
The normalized type of the value detected. In this case, DATE.
NotificationChannel
data NotificationChannel Source #
The Amazon Simple Notification Service (Amazon SNS) topic to which Amazon Textract publishes the completion status of an asynchronous document operation.
See: newNotificationChannel
smart constructor.
Constructors
NotificationChannel' | |
Fields
|
Instances
newNotificationChannel Source #
Arguments
:: Text | |
-> Text | |
-> NotificationChannel |
Create a value of NotificationChannel
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sNSTopicArn:NotificationChannel'
, notificationChannel_sNSTopicArn
- The Amazon SNS topic that Amazon Textract posts the completion status
to.
$sel:roleArn:NotificationChannel'
, notificationChannel_roleArn
- The Amazon Resource Name (ARN) of an IAM role that gives Amazon Textract
publishing permissions to the Amazon SNS topic.
notificationChannel_sNSTopicArn :: Lens' NotificationChannel Text Source #
The Amazon SNS topic that Amazon Textract posts the completion status to.
notificationChannel_roleArn :: Lens' NotificationChannel Text Source #
The Amazon Resource Name (ARN) of an IAM role that gives Amazon Textract publishing permissions to the Amazon SNS topic.
OutputConfig
data OutputConfig Source #
Sets whether or not your output will go to a user created bucket. Used to set the name of the bucket, and the prefix on the output file.
OutputConfig
is an optional parameter which lets you adjust where your
output will be placed. By default, Amazon Textract will store the
results internally and can only be accessed by the Get API operations.
With OutputConfig
enabled, you can set the name of the bucket the
output will be sent to the file prefix of the results where you can
download your results. Additionally, you can set the KMSKeyID
parameter to a customer master key (CMK) to encrypt your output. Without
this parameter set Amazon Textract will encrypt server-side using the
AWS managed CMK for Amazon S3.
Decryption of Customer Content is necessary for processing of the documents by Amazon Textract. If your account is opted out under an AI services opt out policy then all unencrypted Customer Content is immediately and permanently deleted after the Customer Content has been processed by the service. No copy of of the output is retained by Amazon Textract. For information about how to opt out, see Managing AI services opt-out policy.
For more information on data privacy, see the Data Privacy FAQ.
See: newOutputConfig
smart constructor.
Constructors
OutputConfig' | |
Instances
Arguments
:: Text | |
-> OutputConfig |
Create a value of OutputConfig
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:s3Prefix:OutputConfig'
, outputConfig_s3Prefix
- The prefix of the object key that the output will be saved to. When not
enabled, the prefix will be “textract_output".
$sel:s3Bucket:OutputConfig'
, outputConfig_s3Bucket
- The name of the bucket your output will go to.
outputConfig_s3Prefix :: Lens' OutputConfig (Maybe Text) Source #
The prefix of the object key that the output will be saved to. When not enabled, the prefix will be “textract_output".
outputConfig_s3Bucket :: Lens' OutputConfig Text Source #
The name of the bucket your output will go to.
PageClassification
data PageClassification Source #
The class assigned to a Page object detected in an input document. Contains information regarding the predicted type/class of a document's page and the page number that the Page object was detected on.
See: newPageClassification
smart constructor.
Constructors
PageClassification' | |
Fields
|
Instances
newPageClassification :: PageClassification Source #
Create a value of PageClassification
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:pageType:PageClassification'
, pageClassification_pageType
- The class, or document type, assigned to a detected Page object. The
class, or document type, assigned to a detected Page object.
$sel:pageNumber:PageClassification'
, pageClassification_pageNumber
- The page number the value was detected on, relative to Amazon
Textract's starting position.
pageClassification_pageType :: Lens' PageClassification [Prediction] Source #
The class, or document type, assigned to a detected Page object. The class, or document type, assigned to a detected Page object.
pageClassification_pageNumber :: Lens' PageClassification [Prediction] Source #
The page number the value was detected on, relative to Amazon Textract's starting position.
Point
The X and Y coordinates of a point on a document page. The X and Y values that are returned are ratios of the overall document page size. For example, if the input document is 700 x 200 and the operation returns X=0.5 and Y=0.25, then the point is at the (350,50) pixel coordinate on the document page.
An array of Point
objects, Polygon
, is returned by
DetectDocumentText. Polygon
represents a fine-grained polygon around
detected text. For more information, see Geometry in the Amazon Textract
Developer Guide.
See: newPoint
smart constructor.
Constructors
Point' | |
Instances
FromJSON Point Source # | |
Generic Point Source # | |
Read Point Source # | |
Show Point Source # | |
NFData Point Source # | |
Defined in Amazonka.Textract.Types.Point | |
Eq Point Source # | |
Hashable Point Source # | |
Defined in Amazonka.Textract.Types.Point | |
type Rep Point Source # | |
Defined in Amazonka.Textract.Types.Point type Rep Point = D1 ('MetaData "Point" "Amazonka.Textract.Types.Point" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "Point'" 'PrefixI 'True) (S1 ('MetaSel ('Just "x") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "y") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))) |
Create a value of Point
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:x:Point'
, point_x
- The value of the X coordinate for a point on a Polygon
.
$sel:y:Point'
, point_y
- The value of the Y coordinate for a point on a Polygon
.
point_x :: Lens' Point (Maybe Double) Source #
The value of the X coordinate for a point on a Polygon
.
point_y :: Lens' Point (Maybe Double) Source #
The value of the Y coordinate for a point on a Polygon
.
Prediction
data Prediction Source #
Contains information regarding predicted values returned by Amazon Textract operations, including the predicted value and the confidence in the predicted value.
See: newPrediction
smart constructor.
Constructors
Prediction' | |
Instances
newPrediction :: Prediction Source #
Create a value of Prediction
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:confidence:Prediction'
, prediction_confidence
- Amazon Textract's confidence in its predicted value.
$sel:value:Prediction'
, prediction_value
- The predicted value of a detected object.
prediction_confidence :: Lens' Prediction (Maybe Double) Source #
Amazon Textract's confidence in its predicted value.
prediction_value :: Lens' Prediction (Maybe Text) Source #
The predicted value of a detected object.
QueriesConfig
data QueriesConfig Source #
See: newQueriesConfig
smart constructor.
Constructors
QueriesConfig' | |
Instances
Arguments
:: NonEmpty Query | |
-> QueriesConfig |
Create a value of QueriesConfig
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
Query
Each query contains the question you want to ask in the Text and the alias you want to associate.
See: newQuery
smart constructor.
Constructors
Query' | |
Fields
|
Instances
FromJSON Query Source # | |
ToJSON Query Source # | |
Defined in Amazonka.Textract.Types.Query | |
Generic Query Source # | |
Read Query Source # | |
Show Query Source # | |
NFData Query Source # | |
Defined in Amazonka.Textract.Types.Query | |
Eq Query Source # | |
Hashable Query Source # | |
Defined in Amazonka.Textract.Types.Query | |
type Rep Query Source # | |
Defined in Amazonka.Textract.Types.Query type Rep Query = D1 ('MetaData "Query" "Amazonka.Textract.Types.Query" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "Query'" 'PrefixI 'True) (S1 ('MetaSel ('Just "alias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "pages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) |
Create a value of Query
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:alias:Query'
, query_alias
- Alias attached to the query, for ease of location.
$sel:pages:Query'
, query_pages
- Pages is a parameter that the user inputs to specify which pages to
apply a query to. The following is a list of rules for using this
parameter.
- If a page is not specified, it is set to
["1"]
by default. - The following characters are allowed in the parameter's string:
0 1 2 3 4 5 6 7 8 9 - *
. No whitespace is allowed. - When using * to indicate all pages, it must be the only element in the list.
- You can use page intervals, such as
[“1-3”, “1-1”, “4-*”]
. Where*
indicates last page of document. - Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
$sel:text:Query'
, query_text
- Question that Amazon Textract will apply to the document. An example
would be "What is the customer's SSN?"
query_pages :: Lens' Query (Maybe (NonEmpty Text)) Source #
Pages is a parameter that the user inputs to specify which pages to apply a query to. The following is a list of rules for using this parameter.
- If a page is not specified, it is set to
["1"]
by default. - The following characters are allowed in the parameter's string:
0 1 2 3 4 5 6 7 8 9 - *
. No whitespace is allowed. - When using * to indicate all pages, it must be the only element in the list.
- You can use page intervals, such as
[“1-3”, “1-1”, “4-*”]
. Where*
indicates last page of document. - Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
query_text :: Lens' Query Text Source #
Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?"
Relationship
data Relationship Source #
Information about how blocks are related to each other. A Block
object
contains 0 or more Relation
objects in a list, Relationships
. For
more information, see Block.
The Type
element provides the type of the relationship for all blocks
in the IDs
array.
See: newRelationship
smart constructor.
Constructors
Relationship' | |
Fields
|
Instances
newRelationship :: Relationship Source #
Create a value of Relationship
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:ids:Relationship'
, relationship_ids
- An array of IDs for related blocks. You can get the type of the
relationship from the Type
element.
$sel:type':Relationship'
, relationship_type
- The type of relationship that the blocks in the IDs array have with the
current block. The relationship can be VALUE
or CHILD
. A
relationship of type VALUE is a list that contains the ID of the VALUE
block that's associated with the KEY of a key-value pair. A
relationship of type CHILD is a list of IDs that identify WORD blocks in
the case of lines Cell blocks in the case of Tables, and WORD blocks in
the case of Selection Elements.
relationship_ids :: Lens' Relationship (Maybe [Text]) Source #
An array of IDs for related blocks. You can get the type of the
relationship from the Type
element.
relationship_type :: Lens' Relationship (Maybe RelationshipType) Source #
The type of relationship that the blocks in the IDs array have with the
current block. The relationship can be VALUE
or CHILD
. A
relationship of type VALUE is a list that contains the ID of the VALUE
block that's associated with the KEY of a key-value pair. A
relationship of type CHILD is a list of IDs that identify WORD blocks in
the case of lines Cell blocks in the case of Tables, and WORD blocks in
the case of Selection Elements.
S3Object
The S3 bucket name and file name that identifies the document.
The AWS Region for the S3 bucket that contains the document must match the Region that you use for Amazon Textract operations.
For Amazon Textract to process a file in an S3 bucket, the user must have permission to access the S3 bucket and file.
See: newS3Object
smart constructor.
Constructors
S3Object' | |
Fields
|
Instances
ToJSON S3Object Source # | |
Defined in Amazonka.Textract.Types.S3Object | |
Generic S3Object Source # | |
Read S3Object Source # | |
Show S3Object Source # | |
NFData S3Object Source # | |
Defined in Amazonka.Textract.Types.S3Object | |
Eq S3Object Source # | |
Hashable S3Object Source # | |
Defined in Amazonka.Textract.Types.S3Object | |
type Rep S3Object Source # | |
Defined in Amazonka.Textract.Types.S3Object type Rep S3Object = D1 ('MetaData "S3Object" "Amazonka.Textract.Types.S3Object" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "S3Object'" 'PrefixI 'True) (S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) |
newS3Object :: S3Object Source #
Create a value of S3Object
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:bucket:S3Object'
, s3Object_bucket
- The name of the S3 bucket. Note that the # character is not valid in the
file name.
$sel:name:S3Object'
, s3Object_name
- The file name of the input document. Synchronous operations can use
image files that are in JPEG or PNG format. Asynchronous operations also
support PDF and TIFF format files.
$sel:version:S3Object'
, s3Object_version
- If the bucket has versioning enabled, you can specify the object
version.
s3Object_bucket :: Lens' S3Object (Maybe Text) Source #
The name of the S3 bucket. Note that the # character is not valid in the file name.
s3Object_name :: Lens' S3Object (Maybe Text) Source #
The file name of the input document. Synchronous operations can use image files that are in JPEG or PNG format. Asynchronous operations also support PDF and TIFF format files.
s3Object_version :: Lens' S3Object (Maybe Text) Source #
If the bucket has versioning enabled, you can specify the object version.
SignatureDetection
data SignatureDetection Source #
Information regarding a detected signature on a page.
See: newSignatureDetection
smart constructor.
Constructors
SignatureDetection' | |
Instances
newSignatureDetection :: SignatureDetection Source #
Create a value of SignatureDetection
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:confidence:SignatureDetection'
, signatureDetection_confidence
- The confidence, from 0 to 100, in the predicted values for a detected
signature.
$sel:geometry:SignatureDetection'
, signatureDetection_geometry
- Undocumented member.
signatureDetection_confidence :: Lens' SignatureDetection (Maybe Double) Source #
The confidence, from 0 to 100, in the predicted values for a detected signature.
signatureDetection_geometry :: Lens' SignatureDetection (Maybe Geometry) Source #
Undocumented member.
SplitDocument
data SplitDocument Source #
Contains information about the pages of a document, defined by logical boundary.
See: newSplitDocument
smart constructor.
Constructors
SplitDocument' | |
Instances
newSplitDocument :: SplitDocument Source #
Create a value of SplitDocument
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:index:SplitDocument'
, splitDocument_index
- The index for a given document in a DocumentGroup of a specific Type.
$sel:pages:SplitDocument'
, splitDocument_pages
- An array of page numbers for a for a given document, ordered by logical
boundary.
splitDocument_index :: Lens' SplitDocument (Maybe Natural) Source #
The index for a given document in a DocumentGroup of a specific Type.
splitDocument_pages :: Lens' SplitDocument (Maybe [Natural]) Source #
An array of page numbers for a for a given document, ordered by logical boundary.
UndetectedSignature
data UndetectedSignature Source #
A structure containing information about an undetected signature on a page where it was expected but not found.
See: newUndetectedSignature
smart constructor.
Constructors
UndetectedSignature' | |
Instances
newUndetectedSignature :: UndetectedSignature Source #
Create a value of UndetectedSignature
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:page:UndetectedSignature'
, undetectedSignature_page
- The page where a signature was expected but not found.
undetectedSignature_page :: Lens' UndetectedSignature (Maybe Natural) Source #
The page where a signature was expected but not found.
Warning
A warning about an issue that occurred during asynchronous text analysis (StartDocumentAnalysis) or asynchronous document text detection (StartDocumentTextDetection).
See: newWarning
smart constructor.
Constructors
Warning' | |
Instances
FromJSON Warning Source # | |
Generic Warning Source # | |
Read Warning Source # | |
Show Warning Source # | |
NFData Warning Source # | |
Defined in Amazonka.Textract.Types.Warning | |
Eq Warning Source # | |
Hashable Warning Source # | |
Defined in Amazonka.Textract.Types.Warning | |
type Rep Warning Source # | |
Defined in Amazonka.Textract.Types.Warning type Rep Warning = D1 ('MetaData "Warning" "Amazonka.Textract.Types.Warning" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "Warning'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errorCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Natural])))) |
newWarning :: Warning Source #
Create a value of Warning
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:errorCode:Warning'
, warning_errorCode
- The error code for the warning.
$sel:pages:Warning'
, warning_pages
- A list of the pages that the warning applies to.