amazonka-textract-2.0: Amazon Textract SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Textract.Types

Description

 
Synopsis

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

newtype BlockType Source #

Constructors

BlockType' 

Fields

Instances

Instances details
FromJSON BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

FromJSONKey BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

ToJSON BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

ToJSONKey BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

ToByteString BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

Methods

toBS :: BlockType -> ByteString #

ToHeader BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

ToLog BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

ToQuery BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

FromText BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

ToText BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

Methods

toText :: BlockType -> Text #

FromXML BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

ToXML BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

Methods

toXML :: BlockType -> XML #

Generic BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

Associated Types

type Rep BlockType :: Type -> Type #

Read BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

Show BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

NFData BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

Methods

rnf :: BlockType -> () #

Eq BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

Ord BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

Hashable BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

type Rep BlockType Source # 
Instance details

Defined in Amazonka.Textract.Types.BlockType

type Rep BlockType = D1 ('MetaData "BlockType" "Amazonka.Textract.Types.BlockType" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'True) (C1 ('MetaCons "BlockType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromBlockType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ContentClassifier

newtype ContentClassifier Source #

Instances

Instances details
FromJSON ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

FromJSONKey ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

ToJSON ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

ToJSONKey ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

ToByteString ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

ToHeader ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

ToLog ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

ToQuery ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

FromText ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

ToText ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

FromXML ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

ToXML ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

Generic ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

Associated Types

type Rep ContentClassifier :: Type -> Type #

Read ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

Show ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

NFData ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

Methods

rnf :: ContentClassifier -> () #

Eq ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

Ord ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

Hashable ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

type Rep ContentClassifier Source # 
Instance details

Defined in Amazonka.Textract.Types.ContentClassifier

type Rep ContentClassifier = D1 ('MetaData "ContentClassifier" "Amazonka.Textract.Types.ContentClassifier" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'True) (C1 ('MetaCons "ContentClassifier'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromContentClassifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

EntityType

newtype EntityType Source #

Constructors

EntityType' 

Fields

Bundled Patterns

pattern EntityType_COLUMN_HEADER :: EntityType 
pattern EntityType_KEY :: EntityType 
pattern EntityType_VALUE :: EntityType 

Instances

Instances details
FromJSON EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

FromJSONKey EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

ToJSON EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

ToJSONKey EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

ToByteString EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

ToHeader EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

ToLog EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

ToQuery EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

FromText EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

ToText EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

Methods

toText :: EntityType -> Text #

FromXML EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

ToXML EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

Methods

toXML :: EntityType -> XML #

Generic EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

Associated Types

type Rep EntityType :: Type -> Type #

Read EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

Show EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

NFData EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

Methods

rnf :: EntityType -> () #

Eq EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

Ord EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

Hashable EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

type Rep EntityType Source # 
Instance details

Defined in Amazonka.Textract.Types.EntityType

type Rep EntityType = D1 ('MetaData "EntityType" "Amazonka.Textract.Types.EntityType" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'True) (C1 ('MetaCons "EntityType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromEntityType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

FeatureType

newtype FeatureType Source #

Constructors

FeatureType' 

Instances

Instances details
FromJSON FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

FromJSONKey FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

ToJSON FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

ToJSONKey FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

ToByteString FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

ToHeader FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

ToLog FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

ToQuery FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

FromText FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

ToText FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

Methods

toText :: FeatureType -> Text #

FromXML FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

ToXML FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

Methods

toXML :: FeatureType -> XML #

Generic FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

Associated Types

type Rep FeatureType :: Type -> Type #

Read FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

Show FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

NFData FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

Methods

rnf :: FeatureType -> () #

Eq FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

Ord FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

Hashable FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

type Rep FeatureType Source # 
Instance details

Defined in Amazonka.Textract.Types.FeatureType

type Rep FeatureType = D1 ('MetaData "FeatureType" "Amazonka.Textract.Types.FeatureType" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'True) (C1 ('MetaCons "FeatureType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromFeatureType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

JobStatus

newtype JobStatus Source #

Constructors

JobStatus' 

Fields

Instances

Instances details
FromJSON JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

FromJSONKey JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

ToJSON JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

ToJSONKey JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

ToByteString JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

Methods

toBS :: JobStatus -> ByteString #

ToHeader JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

ToLog JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

ToQuery JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

FromText JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

ToText JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

Methods

toText :: JobStatus -> Text #

FromXML JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

ToXML JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

Methods

toXML :: JobStatus -> XML #

Generic JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

Associated Types

type Rep JobStatus :: Type -> Type #

Read JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

Show JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

NFData JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

Methods

rnf :: JobStatus -> () #

Eq JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

Ord JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

Hashable JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

type Rep JobStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.JobStatus

type Rep JobStatus = D1 ('MetaData "JobStatus" "Amazonka.Textract.Types.JobStatus" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'True) (C1 ('MetaCons "JobStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromJobStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

RelationshipType

newtype RelationshipType Source #

Instances

Instances details
FromJSON RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

FromJSONKey RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

ToJSON RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

ToJSONKey RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

ToByteString RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

ToHeader RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

ToLog RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

ToQuery RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

FromText RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

ToText RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

FromXML RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

ToXML RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

Generic RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

Associated Types

type Rep RelationshipType :: Type -> Type #

Read RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

Show RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

NFData RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

Methods

rnf :: RelationshipType -> () #

Eq RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

Ord RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

Hashable RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

type Rep RelationshipType Source # 
Instance details

Defined in Amazonka.Textract.Types.RelationshipType

type Rep RelationshipType = D1 ('MetaData "RelationshipType" "Amazonka.Textract.Types.RelationshipType" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'True) (C1 ('MetaCons "RelationshipType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromRelationshipType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

SelectionStatus

newtype SelectionStatus Source #

Constructors

SelectionStatus' 

Instances

Instances details
FromJSON SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

FromJSONKey SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

ToJSON SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

ToJSONKey SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

ToByteString SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

ToHeader SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

ToLog SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

ToQuery SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

FromText SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

ToText SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

FromXML SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

ToXML SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

Methods

toXML :: SelectionStatus -> XML #

Generic SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

Associated Types

type Rep SelectionStatus :: Type -> Type #

Read SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

Show SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

NFData SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

Methods

rnf :: SelectionStatus -> () #

Eq SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

Ord SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

Hashable SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

type Rep SelectionStatus Source # 
Instance details

Defined in Amazonka.Textract.Types.SelectionStatus

type Rep SelectionStatus = D1 ('MetaData "SelectionStatus" "Amazonka.Textract.Types.SelectionStatus" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'True) (C1 ('MetaCons "SelectionStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromSelectionStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

TextType

newtype TextType Source #

Constructors

TextType' 

Fields

Bundled Patterns

pattern TextType_HANDWRITING :: TextType 
pattern TextType_PRINTED :: TextType 

Instances

Instances details
FromJSON TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

FromJSONKey TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

ToJSON TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

ToJSONKey TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

ToByteString TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

Methods

toBS :: TextType -> ByteString #

ToHeader TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

Methods

toHeader :: HeaderName -> TextType -> [Header] #

ToLog TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

ToQuery TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

FromText TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

ToText TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

Methods

toText :: TextType -> Text #

FromXML TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

ToXML TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

Methods

toXML :: TextType -> XML #

Generic TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

Associated Types

type Rep TextType :: Type -> Type #

Methods

from :: TextType -> Rep TextType x #

to :: Rep TextType x -> TextType #

Read TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

Show TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

NFData TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

Methods

rnf :: TextType -> () #

Eq TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

Ord TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

Hashable TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

Methods

hashWithSalt :: Int -> TextType -> Int #

hash :: TextType -> Int #

type Rep TextType Source # 
Instance details

Defined in Amazonka.Textract.Types.TextType

type Rep TextType = D1 ('MetaData "TextType" "Amazonka.Textract.Types.TextType" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'True) (C1 ('MetaCons "TextType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromTextType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ValueType

newtype ValueType Source #

Constructors

ValueType' 

Fields

Bundled Patterns

pattern ValueType_DATE :: ValueType 

Instances

Instances details
FromJSON ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

FromJSONKey ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

ToJSON ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

ToJSONKey ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

ToByteString ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

Methods

toBS :: ValueType -> ByteString #

ToHeader ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

ToLog ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

ToQuery ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

FromText ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

ToText ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

Methods

toText :: ValueType -> Text #

FromXML ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

ToXML ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

Methods

toXML :: ValueType -> XML #

Generic ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

Associated Types

type Rep ValueType :: Type -> Type #

Read ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

Show ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

NFData ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

Methods

rnf :: ValueType -> () #

Eq ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

Ord ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

Hashable ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

type Rep ValueType Source # 
Instance details

Defined in Amazonka.Textract.Types.ValueType

type Rep ValueType = D1 ('MetaData "ValueType" "Amazonka.Textract.Types.ValueType" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'True) (C1 ('MetaCons "ValueType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromValueType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

AnalyzeIDDetections

data AnalyzeIDDetections Source #

Used to contain the information detected by an AnalyzeID operation.

See: newAnalyzeIDDetections smart constructor.

Constructors

AnalyzeIDDetections' 

Fields

Instances

Instances details
FromJSON AnalyzeIDDetections Source # 
Instance details

Defined in Amazonka.Textract.Types.AnalyzeIDDetections

Generic AnalyzeIDDetections Source # 
Instance details

Defined in Amazonka.Textract.Types.AnalyzeIDDetections

Associated Types

type Rep AnalyzeIDDetections :: Type -> Type #

Read AnalyzeIDDetections Source # 
Instance details

Defined in Amazonka.Textract.Types.AnalyzeIDDetections

Show AnalyzeIDDetections Source # 
Instance details

Defined in Amazonka.Textract.Types.AnalyzeIDDetections

NFData AnalyzeIDDetections Source # 
Instance details

Defined in Amazonka.Textract.Types.AnalyzeIDDetections

Methods

rnf :: AnalyzeIDDetections -> () #

Eq AnalyzeIDDetections Source # 
Instance details

Defined in Amazonka.Textract.Types.AnalyzeIDDetections

Hashable AnalyzeIDDetections Source # 
Instance details

Defined in Amazonka.Textract.Types.AnalyzeIDDetections

type Rep AnalyzeIDDetections Source # 
Instance details

Defined in Amazonka.Textract.Types.AnalyzeIDDetections

type Rep AnalyzeIDDetections = D1 ('MetaData "AnalyzeIDDetections" "Amazonka.Textract.Types.AnalyzeIDDetections" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "AnalyzeIDDetections'" 'PrefixI 'True) (S1 ('MetaSel ('Just "confidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "normalizedValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NormalizedValue)) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newAnalyzeIDDetections Source #

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

data Block Source #

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

  • blockType :: Maybe 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 the EntityType field to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE Block 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.
  • columnIndex :: Maybe Natural

    The column in which a table cell appears. The first column position is 1. ColumnIndex isn't returned by DetectDocumentText and GetDocumentTextDetection.

  • columnSpan :: Maybe Natural

    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.

  • confidence :: Maybe Double

    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.

  • entityTypes :: Maybe [EntityType]

    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.

  • geometry :: Maybe 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.

  • id :: Maybe Text

    The identifier for the recognized text. The identifier is only unique for a single operation.

  • page :: Maybe Natural

    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.

  • query :: Maybe Query
     
  • relationships :: Maybe [Relationship]

    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.
  • rowIndex :: Maybe Natural

    The row in which a table cell is located. The first row position is 1. RowIndex isn't returned by DetectDocumentText and GetDocumentTextDetection.

  • rowSpan :: Maybe Natural

    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.

  • selectionStatus :: Maybe SelectionStatus

    The selection status of a selection element, such as an option button or check box.

  • text :: Maybe Text

    The word or line of text that's recognized by Amazon Textract.

  • textType :: Maybe TextType

    The kind of text that Amazon Textract has detected. Can check for handwritten text and printed text.

Instances

Instances details
FromJSON Block Source # 
Instance details

Defined in Amazonka.Textract.Types.Block

Generic Block Source # 
Instance details

Defined in Amazonka.Textract.Types.Block

Associated Types

type Rep Block :: Type -> Type #

Methods

from :: Block -> Rep Block x #

to :: Rep Block x -> Block #

Read Block Source # 
Instance details

Defined in Amazonka.Textract.Types.Block

Show Block Source # 
Instance details

Defined in Amazonka.Textract.Types.Block

Methods

showsPrec :: Int -> Block -> ShowS #

show :: Block -> String #

showList :: [Block] -> ShowS #

NFData Block Source # 
Instance details

Defined in Amazonka.Textract.Types.Block

Methods

rnf :: Block -> () #

Eq Block Source # 
Instance details

Defined in Amazonka.Textract.Types.Block

Methods

(==) :: Block -> Block -> Bool #

(/=) :: Block -> Block -> Bool #

Hashable Block Source # 
Instance details

Defined in Amazonka.Textract.Types.Block

Methods

hashWithSalt :: Int -> Block -> Int #

hash :: Block -> Int #

type Rep Block Source # 
Instance details

Defined in Amazonka.Textract.Types.Block

type Rep Block = D1 ('MetaData "Block" "Amazonka.Textract.Types.Block" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "Block'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "blockType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BlockType)) :*: (S1 ('MetaSel ('Just "columnIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "columnSpan") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: ((S1 ('MetaSel ('Just "confidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "entityTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EntityType]))) :*: (S1 ('MetaSel ('Just "geometry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Geometry)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "page") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Query))) :*: (S1 ('MetaSel ('Just "relationships") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Relationship])) :*: S1 ('MetaSel ('Just "rowIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: ((S1 ('MetaSel ('Just "rowSpan") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "selectionStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SelectionStatus))) :*: (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "textType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TextType)))))))

newBlock :: Block Source #

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 the EntityType field to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE Block 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 the EntityType field to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE Block 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

  • height :: Maybe Double

    The height of the bounding box as a ratio of the overall document page height.

  • left :: Maybe Double

    The left coordinate of the bounding box as a ratio of overall document page width.

  • top :: Maybe Double

    The top coordinate of the bounding box as a ratio of overall document page height.

  • width :: Maybe Double

    The width of the bounding box as a ratio of the overall document page width.

Instances

Instances details
FromJSON BoundingBox Source # 
Instance details

Defined in Amazonka.Textract.Types.BoundingBox

Generic BoundingBox Source # 
Instance details

Defined in Amazonka.Textract.Types.BoundingBox

Associated Types

type Rep BoundingBox :: Type -> Type #

Read BoundingBox Source # 
Instance details

Defined in Amazonka.Textract.Types.BoundingBox

Show BoundingBox Source # 
Instance details

Defined in Amazonka.Textract.Types.BoundingBox

NFData BoundingBox Source # 
Instance details

Defined in Amazonka.Textract.Types.BoundingBox

Methods

rnf :: BoundingBox -> () #

Eq BoundingBox Source # 
Instance details

Defined in Amazonka.Textract.Types.BoundingBox

Hashable BoundingBox Source # 
Instance details

Defined in Amazonka.Textract.Types.BoundingBox

type Rep BoundingBox Source # 
Instance details

Defined in Amazonka.Textract.Types.BoundingBox

type Rep BoundingBox = D1 ('MetaData "BoundingBox" "Amazonka.Textract.Types.BoundingBox" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "BoundingBox'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "left") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "top") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))))

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' 

Fields

Instances

Instances details
FromJSON DetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.DetectedSignature

Generic DetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.DetectedSignature

Associated Types

type Rep DetectedSignature :: Type -> Type #

Read DetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.DetectedSignature

Show DetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.DetectedSignature

NFData DetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.DetectedSignature

Methods

rnf :: DetectedSignature -> () #

Eq DetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.DetectedSignature

Hashable DetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.DetectedSignature

type Rep DetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.DetectedSignature

type Rep DetectedSignature = D1 ('MetaData "DetectedSignature" "Amazonka.Textract.Types.DetectedSignature" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "DetectedSignature'" 'PrefixI 'True) (S1 ('MetaSel ('Just "page") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))

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

data Document Source #

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

  • bytes :: Maybe Base64

    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.

  • s3Object :: Maybe 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.

Instances

Instances details
ToJSON Document Source # 
Instance details

Defined in Amazonka.Textract.Types.Document

Generic Document Source # 
Instance details

Defined in Amazonka.Textract.Types.Document

Associated Types

type Rep Document :: Type -> Type #

Methods

from :: Document -> Rep Document x #

to :: Rep Document x -> Document #

Read Document Source # 
Instance details

Defined in Amazonka.Textract.Types.Document

Show Document Source # 
Instance details

Defined in Amazonka.Textract.Types.Document

NFData Document Source # 
Instance details

Defined in Amazonka.Textract.Types.Document

Methods

rnf :: Document -> () #

Eq Document Source # 
Instance details

Defined in Amazonka.Textract.Types.Document

Hashable Document Source # 
Instance details

Defined in Amazonka.Textract.Types.Document

Methods

hashWithSalt :: Int -> Document -> Int #

hash :: Document -> Int #

type Rep Document Source # 
Instance details

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

Instances details
FromJSON DocumentGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentGroup

Generic DocumentGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentGroup

Associated Types

type Rep DocumentGroup :: Type -> Type #

Read DocumentGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentGroup

Show DocumentGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentGroup

NFData DocumentGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentGroup

Methods

rnf :: DocumentGroup -> () #

Eq DocumentGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentGroup

Hashable DocumentGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentGroup

type Rep DocumentGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentGroup

type Rep DocumentGroup = D1 ('MetaData "DocumentGroup" "Amazonka.Textract.Types.DocumentGroup" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "DocumentGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "detectedSignatures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DetectedSignature])) :*: S1 ('MetaSel ('Just "splitDocuments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SplitDocument]))) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "undetectedSignatures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UndetectedSignature])))))

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' 

Fields

Instances

Instances details
ToJSON DocumentLocation Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentLocation

Generic DocumentLocation Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentLocation

Associated Types

type Rep DocumentLocation :: Type -> Type #

Read DocumentLocation Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentLocation

Show DocumentLocation Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentLocation

NFData DocumentLocation Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentLocation

Methods

rnf :: DocumentLocation -> () #

Eq DocumentLocation Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentLocation

Hashable DocumentLocation Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentLocation

type Rep DocumentLocation Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentLocation

type Rep DocumentLocation = D1 ('MetaData "DocumentLocation" "Amazonka.Textract.Types.DocumentLocation" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "DocumentLocation'" 'PrefixI 'True) (S1 ('MetaSel ('Just "s3Object") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe S3Object))))

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' 

Fields

Instances

Instances details
FromJSON DocumentMetadata Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentMetadata

Generic DocumentMetadata Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentMetadata

Associated Types

type Rep DocumentMetadata :: Type -> Type #

Read DocumentMetadata Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentMetadata

Show DocumentMetadata Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentMetadata

NFData DocumentMetadata Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentMetadata

Methods

rnf :: DocumentMetadata -> () #

Eq DocumentMetadata Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentMetadata

Hashable DocumentMetadata Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentMetadata

type Rep DocumentMetadata Source # 
Instance details

Defined in Amazonka.Textract.Types.DocumentMetadata

type Rep DocumentMetadata = D1 ('MetaData "DocumentMetadata" "Amazonka.Textract.Types.DocumentMetadata" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "DocumentMetadata'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))

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' 

Fields

  • code :: Maybe Text

    Currency code for detected currency. the current supported codes are:

    • USD
    • EUR
    • GBP
    • CAD
    • INR
    • JPY
    • CHF
    • AUD
    • CNY
    • BZR
    • SEK
    • HKD
  • confidence :: Maybe Double

    Percentage confideence in the detected currency.

Instances

Instances details
FromJSON ExpenseCurrency Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseCurrency

Generic ExpenseCurrency Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseCurrency

Associated Types

type Rep ExpenseCurrency :: Type -> Type #

Read ExpenseCurrency Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseCurrency

Show ExpenseCurrency Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseCurrency

NFData ExpenseCurrency Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseCurrency

Methods

rnf :: ExpenseCurrency -> () #

Eq ExpenseCurrency Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseCurrency

Hashable ExpenseCurrency Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseCurrency

type Rep ExpenseCurrency Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseCurrency

type Rep ExpenseCurrency = D1 ('MetaData "ExpenseCurrency" "Amazonka.Textract.Types.ExpenseCurrency" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "ExpenseCurrency'" 'PrefixI 'True) (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "confidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))))

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' 

Fields

Instances

Instances details
FromJSON ExpenseDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDetection

Generic ExpenseDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDetection

Associated Types

type Rep ExpenseDetection :: Type -> Type #

Read ExpenseDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDetection

Show ExpenseDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDetection

NFData ExpenseDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDetection

Methods

rnf :: ExpenseDetection -> () #

Eq ExpenseDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDetection

Hashable ExpenseDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDetection

type Rep ExpenseDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDetection

type Rep ExpenseDetection = D1 ('MetaData "ExpenseDetection" "Amazonka.Textract.Types.ExpenseDetection" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "ExpenseDetection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "confidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "geometry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Geometry)) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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_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

  • blocks :: Maybe [Block]

    This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.

  • expenseIndex :: Maybe Natural

    Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the second 2, and so on.

  • lineItemGroups :: Maybe [LineItemGroup]

    Information detected on each table of a document, seperated into LineItems.

  • summaryFields :: Maybe [ExpenseField]

    Any information found outside of a table by Amazon Textract.

Instances

Instances details
FromJSON ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

Generic ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

Associated Types

type Rep ExpenseDocument :: Type -> Type #

Read ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

Show ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

NFData ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

Methods

rnf :: ExpenseDocument -> () #

Eq ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

Hashable ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

type Rep ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

type Rep ExpenseDocument = D1 ('MetaData "ExpenseDocument" "Amazonka.Textract.Types.ExpenseDocument" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "ExpenseDocument'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "blocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Block])) :*: S1 ('MetaSel ('Just "expenseIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "lineItemGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LineItemGroup])) :*: S1 ('MetaSel ('Just "summaryFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ExpenseField])))))

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

Instances details
FromJSON ExpenseField Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseField

Generic ExpenseField Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseField

Associated Types

type Rep ExpenseField :: Type -> Type #

Read ExpenseField Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseField

Show ExpenseField Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseField

NFData ExpenseField Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseField

Methods

rnf :: ExpenseField -> () #

Eq ExpenseField Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseField

Hashable ExpenseField Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseField

type Rep ExpenseField Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseField

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' 

Fields

  • id :: Maybe Text

    Provides a group Id number, which will be the same for each in the group.

  • types :: Maybe [Text]

    Informs you on whether the expense group is a name or an address.

Instances

Instances details
FromJSON ExpenseGroupProperty Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseGroupProperty

Generic ExpenseGroupProperty Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseGroupProperty

Associated Types

type Rep ExpenseGroupProperty :: Type -> Type #

Read ExpenseGroupProperty Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseGroupProperty

Show ExpenseGroupProperty Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseGroupProperty

NFData ExpenseGroupProperty Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseGroupProperty

Methods

rnf :: ExpenseGroupProperty -> () #

Eq ExpenseGroupProperty Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseGroupProperty

Hashable ExpenseGroupProperty Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseGroupProperty

type Rep ExpenseGroupProperty Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseGroupProperty

type Rep ExpenseGroupProperty = D1 ('MetaData "ExpenseGroupProperty" "Amazonka.Textract.Types.ExpenseGroupProperty" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "ExpenseGroupProperty'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "types") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))

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' 

Fields

Instances

Instances details
FromJSON ExpenseType Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseType

Generic ExpenseType Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseType

Associated Types

type Rep ExpenseType :: Type -> Type #

Read ExpenseType Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseType

Show ExpenseType Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseType

NFData ExpenseType Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseType

Methods

rnf :: ExpenseType -> () #

Eq ExpenseType Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseType

Hashable ExpenseType Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseType

type Rep ExpenseType Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseType

type Rep ExpenseType = D1 ('MetaData "ExpenseType" "Amazonka.Textract.Types.ExpenseType" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "ExpenseType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "confidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

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

Instances details
FromJSON Extraction Source # 
Instance details

Defined in Amazonka.Textract.Types.Extraction

Generic Extraction Source # 
Instance details

Defined in Amazonka.Textract.Types.Extraction

Associated Types

type Rep Extraction :: Type -> Type #

Read Extraction Source # 
Instance details

Defined in Amazonka.Textract.Types.Extraction

Show Extraction Source # 
Instance details

Defined in Amazonka.Textract.Types.Extraction

NFData Extraction Source # 
Instance details

Defined in Amazonka.Textract.Types.Extraction

Methods

rnf :: Extraction -> () #

Eq Extraction Source # 
Instance details

Defined in Amazonka.Textract.Types.Extraction

Hashable Extraction Source # 
Instance details

Defined in Amazonka.Textract.Types.Extraction

type Rep Extraction Source # 
Instance details

Defined in Amazonka.Textract.Types.Extraction

type Rep Extraction = D1 ('MetaData "Extraction" "Amazonka.Textract.Types.Extraction" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "Extraction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expenseDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ExpenseDocument)) :*: (S1 ('MetaSel ('Just "identityDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IdentityDocument)) :*: S1 ('MetaSel ('Just "lendingDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LendingDocument)))))

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_lendingDocument :: Lens' Extraction (Maybe LendingDocument) Source #

Holds the structured data returned by AnalyzeDocument for lending documents.

Geometry

data Geometry Source #

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

  • boundingBox :: Maybe BoundingBox

    An axis-aligned coarse representation of the location of the recognized item on the document page.

  • polygon :: Maybe [Point]

    Within the bounding box, a fine-grained polygon around the recognized item.

Instances

Instances details
FromJSON Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Generic Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Associated Types

type Rep Geometry :: Type -> Type #

Methods

from :: Geometry -> Rep Geometry x #

to :: Rep Geometry x -> Geometry #

Read Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Show Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

NFData Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Methods

rnf :: Geometry -> () #

Eq Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Hashable Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Methods

hashWithSalt :: Int -> Geometry -> Int #

hash :: Geometry -> Int #

type Rep Geometry Source # 
Instance details

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

Instances details
FromJSON HumanLoopActivationOutput Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopActivationOutput

Generic HumanLoopActivationOutput Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopActivationOutput

Associated Types

type Rep HumanLoopActivationOutput :: Type -> Type #

Read HumanLoopActivationOutput Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopActivationOutput

Show HumanLoopActivationOutput Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopActivationOutput

NFData HumanLoopActivationOutput Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopActivationOutput

Eq HumanLoopActivationOutput Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopActivationOutput

Hashable HumanLoopActivationOutput Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopActivationOutput

type Rep HumanLoopActivationOutput Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopActivationOutput

type Rep HumanLoopActivationOutput = D1 ('MetaData "HumanLoopActivationOutput" "Amazonka.Textract.Types.HumanLoopActivationOutput" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "HumanLoopActivationOutput'" 'PrefixI 'True) (S1 ('MetaSel ('Just "humanLoopActivationConditionsEvaluationResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "humanLoopActivationReasons") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "humanLoopArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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_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

Instances details
ToJSON HumanLoopConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopConfig

Generic HumanLoopConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopConfig

Associated Types

type Rep HumanLoopConfig :: Type -> Type #

Read HumanLoopConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopConfig

Show HumanLoopConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopConfig

NFData HumanLoopConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopConfig

Methods

rnf :: HumanLoopConfig -> () #

Eq HumanLoopConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopConfig

Hashable HumanLoopConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopConfig

type Rep HumanLoopConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopConfig

type Rep HumanLoopConfig = D1 ('MetaData "HumanLoopConfig" "Amazonka.Textract.Types.HumanLoopConfig" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "HumanLoopConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataAttributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HumanLoopDataAttributes)) :*: (S1 ('MetaSel ('Just "humanLoopName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "flowDefinitionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newHumanLoopConfig Source #

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_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

Instances details
ToJSON HumanLoopDataAttributes Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopDataAttributes

Generic HumanLoopDataAttributes Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopDataAttributes

Associated Types

type Rep HumanLoopDataAttributes :: Type -> Type #

Read HumanLoopDataAttributes Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopDataAttributes

Show HumanLoopDataAttributes Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopDataAttributes

NFData HumanLoopDataAttributes Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopDataAttributes

Methods

rnf :: HumanLoopDataAttributes -> () #

Eq HumanLoopDataAttributes Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopDataAttributes

Hashable HumanLoopDataAttributes Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopDataAttributes

type Rep HumanLoopDataAttributes Source # 
Instance details

Defined in Amazonka.Textract.Types.HumanLoopDataAttributes

type Rep HumanLoopDataAttributes = D1 ('MetaData "HumanLoopDataAttributes" "Amazonka.Textract.Types.HumanLoopDataAttributes" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "HumanLoopDataAttributes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contentClassifiers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ContentClassifier]))))

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

Instances details
FromJSON IdentityDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocument

Generic IdentityDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocument

Associated Types

type Rep IdentityDocument :: Type -> Type #

Read IdentityDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocument

Show IdentityDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocument

NFData IdentityDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocument

Methods

rnf :: IdentityDocument -> () #

Eq IdentityDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocument

Hashable IdentityDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocument

type Rep IdentityDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocument

type Rep IdentityDocument = D1 ('MetaData "IdentityDocument" "Amazonka.Textract.Types.IdentityDocument" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "IdentityDocument'" 'PrefixI 'True) (S1 ('MetaSel ('Just "blocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Block])) :*: (S1 ('MetaSel ('Just "documentIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "identityDocumentFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [IdentityDocumentField])))))

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.

Instances

Instances details
FromJSON IdentityDocumentField Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocumentField

Generic IdentityDocumentField Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocumentField

Associated Types

type Rep IdentityDocumentField :: Type -> Type #

Read IdentityDocumentField Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocumentField

Show IdentityDocumentField Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocumentField

NFData IdentityDocumentField Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocumentField

Methods

rnf :: IdentityDocumentField -> () #

Eq IdentityDocumentField Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocumentField

Hashable IdentityDocumentField Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocumentField

type Rep IdentityDocumentField Source # 
Instance details

Defined in Amazonka.Textract.Types.IdentityDocumentField

type Rep IdentityDocumentField = D1 ('MetaData "IdentityDocumentField" "Amazonka.Textract.Types.IdentityDocumentField" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "IdentityDocumentField'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AnalyzeIDDetections)) :*: S1 ('MetaSel ('Just "valueDetection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AnalyzeIDDetections))))

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.

LendingDetection

data LendingDetection Source #

The results extracted for a lending document.

See: newLendingDetection smart constructor.

Constructors

LendingDetection' 

Fields

Instances

Instances details
FromJSON LendingDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDetection

Generic LendingDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDetection

Associated Types

type Rep LendingDetection :: Type -> Type #

Read LendingDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDetection

Show LendingDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDetection

NFData LendingDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDetection

Methods

rnf :: LendingDetection -> () #

Eq LendingDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDetection

Hashable LendingDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDetection

type Rep LendingDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDetection

type Rep LendingDetection = D1 ('MetaData "LendingDetection" "Amazonka.Textract.Types.LendingDetection" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "LendingDetection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "confidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "geometry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Geometry))) :*: (S1 ('MetaSel ('Just "selectionStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SelectionStatus)) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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_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

Instances details
FromJSON LendingDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDocument

Generic LendingDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDocument

Associated Types

type Rep LendingDocument :: Type -> Type #

Read LendingDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDocument

Show LendingDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDocument

NFData LendingDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDocument

Methods

rnf :: LendingDocument -> () #

Eq LendingDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDocument

Hashable LendingDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDocument

type Rep LendingDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingDocument

type Rep LendingDocument = D1 ('MetaData "LendingDocument" "Amazonka.Textract.Types.LendingDocument" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "LendingDocument'" 'PrefixI 'True) (S1 ('MetaSel ('Just "lendingFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LendingField])) :*: S1 ('MetaSel ('Just "signatureDetections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SignatureDetection]))))

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_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

Instances details
FromJSON LendingField Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingField

Generic LendingField Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingField

Associated Types

type Rep LendingField :: Type -> Type #

Read LendingField Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingField

Show LendingField Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingField

NFData LendingField Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingField

Methods

rnf :: LendingField -> () #

Eq LendingField Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingField

Hashable LendingField Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingField

type Rep LendingField Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingField

type Rep LendingField = D1 ('MetaData "LendingField" "Amazonka.Textract.Types.LendingField" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "LendingField'" 'PrefixI 'True) (S1 ('MetaSel ('Just "keyDetection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LendingDetection)) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "valueDetections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LendingDetection])))))

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_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

Instances details
FromJSON LendingResult Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingResult

Generic LendingResult Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingResult

Associated Types

type Rep LendingResult :: Type -> Type #

Read LendingResult Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingResult

Show LendingResult Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingResult

NFData LendingResult Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingResult

Methods

rnf :: LendingResult -> () #

Eq LendingResult Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingResult

Hashable LendingResult Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingResult

type Rep LendingResult Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingResult

type Rep LendingResult = D1 ('MetaData "LendingResult" "Amazonka.Textract.Types.LendingResult" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "LendingResult'" 'PrefixI 'True) (S1 ('MetaSel ('Just "extractions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Extraction])) :*: (S1 ('MetaSel ('Just "page") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "pageClassification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PageClassification)))))

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.

LendingSummary

data LendingSummary Source #

Contains information regarding DocumentGroups and UndetectedDocumentTypes.

See: newLendingSummary smart constructor.

Constructors

LendingSummary' 

Fields

Instances

Instances details
FromJSON LendingSummary Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingSummary

Generic LendingSummary Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingSummary

Associated Types

type Rep LendingSummary :: Type -> Type #

Read LendingSummary Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingSummary

Show LendingSummary Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingSummary

NFData LendingSummary Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingSummary

Methods

rnf :: LendingSummary -> () #

Eq LendingSummary Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingSummary

Hashable LendingSummary Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingSummary

type Rep LendingSummary Source # 
Instance details

Defined in Amazonka.Textract.Types.LendingSummary

type Rep LendingSummary = D1 ('MetaData "LendingSummary" "Amazonka.Textract.Types.LendingSummary" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "LendingSummary'" 'PrefixI 'True) (S1 ('MetaSel ('Just "documentGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DocumentGroup])) :*: S1 ('MetaSel ('Just "undetectedDocumentTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))

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.

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

Instances details
FromJSON LineItemFields Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemFields

Generic LineItemFields Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemFields

Associated Types

type Rep LineItemFields :: Type -> Type #

Read LineItemFields Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemFields

Show LineItemFields Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemFields

NFData LineItemFields Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemFields

Methods

rnf :: LineItemFields -> () #

Eq LineItemFields Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemFields

Hashable LineItemFields Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemFields

type Rep LineItemFields Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemFields

type Rep LineItemFields = D1 ('MetaData "LineItemFields" "Amazonka.Textract.Types.LineItemFields" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "LineItemFields'" 'PrefixI 'True) (S1 ('MetaSel ('Just "lineItemExpenseFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ExpenseField]))))

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

Instances details
FromJSON LineItemGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemGroup

Generic LineItemGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemGroup

Associated Types

type Rep LineItemGroup :: Type -> Type #

Read LineItemGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemGroup

Show LineItemGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemGroup

NFData LineItemGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemGroup

Methods

rnf :: LineItemGroup -> () #

Eq LineItemGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemGroup

Hashable LineItemGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemGroup

type Rep LineItemGroup Source # 
Instance details

Defined in Amazonka.Textract.Types.LineItemGroup

type Rep LineItemGroup = D1 ('MetaData "LineItemGroup" "Amazonka.Textract.Types.LineItemGroup" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "LineItemGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "lineItemGroupIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "lineItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LineItemFields]))))

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' 

Fields

Instances

Instances details
FromJSON NormalizedValue Source # 
Instance details

Defined in Amazonka.Textract.Types.NormalizedValue

Generic NormalizedValue Source # 
Instance details

Defined in Amazonka.Textract.Types.NormalizedValue

Associated Types

type Rep NormalizedValue :: Type -> Type #

Read NormalizedValue Source # 
Instance details

Defined in Amazonka.Textract.Types.NormalizedValue

Show NormalizedValue Source # 
Instance details

Defined in Amazonka.Textract.Types.NormalizedValue

NFData NormalizedValue Source # 
Instance details

Defined in Amazonka.Textract.Types.NormalizedValue

Methods

rnf :: NormalizedValue -> () #

Eq NormalizedValue Source # 
Instance details

Defined in Amazonka.Textract.Types.NormalizedValue

Hashable NormalizedValue Source # 
Instance details

Defined in Amazonka.Textract.Types.NormalizedValue

type Rep NormalizedValue Source # 
Instance details

Defined in Amazonka.Textract.Types.NormalizedValue

type Rep NormalizedValue = D1 ('MetaData "NormalizedValue" "Amazonka.Textract.Types.NormalizedValue" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "NormalizedValue'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "valueType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ValueType))))

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

  • sNSTopicArn :: Text

    The Amazon SNS topic that Amazon Textract posts the completion status to.

  • roleArn :: Text

    The Amazon Resource Name (ARN) of an IAM role that gives Amazon Textract publishing permissions to the Amazon SNS topic.

Instances

Instances details
ToJSON NotificationChannel Source # 
Instance details

Defined in Amazonka.Textract.Types.NotificationChannel

Generic NotificationChannel Source # 
Instance details

Defined in Amazonka.Textract.Types.NotificationChannel

Associated Types

type Rep NotificationChannel :: Type -> Type #

Read NotificationChannel Source # 
Instance details

Defined in Amazonka.Textract.Types.NotificationChannel

Show NotificationChannel Source # 
Instance details

Defined in Amazonka.Textract.Types.NotificationChannel

NFData NotificationChannel Source # 
Instance details

Defined in Amazonka.Textract.Types.NotificationChannel

Methods

rnf :: NotificationChannel -> () #

Eq NotificationChannel Source # 
Instance details

Defined in Amazonka.Textract.Types.NotificationChannel

Hashable NotificationChannel Source # 
Instance details

Defined in Amazonka.Textract.Types.NotificationChannel

type Rep NotificationChannel Source # 
Instance details

Defined in Amazonka.Textract.Types.NotificationChannel

type Rep NotificationChannel = D1 ('MetaData "NotificationChannel" "Amazonka.Textract.Types.NotificationChannel" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "NotificationChannel'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sNSTopicArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newNotificationChannel Source #

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' 

Fields

  • s3Prefix :: Maybe Text

    The prefix of the object key that the output will be saved to. When not enabled, the prefix will be “textract_output".

  • s3Bucket :: Text

    The name of the bucket your output will go to.

Instances

Instances details
ToJSON OutputConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.OutputConfig

Generic OutputConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.OutputConfig

Associated Types

type Rep OutputConfig :: Type -> Type #

Read OutputConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.OutputConfig

Show OutputConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.OutputConfig

NFData OutputConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.OutputConfig

Methods

rnf :: OutputConfig -> () #

Eq OutputConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.OutputConfig

Hashable OutputConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.OutputConfig

type Rep OutputConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.OutputConfig

type Rep OutputConfig = D1 ('MetaData "OutputConfig" "Amazonka.Textract.Types.OutputConfig" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "OutputConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "s3Prefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "s3Bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newOutputConfig Source #

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

  • pageType :: [Prediction]

    The class, or document type, assigned to a detected Page object. The class, or document type, assigned to a detected Page object.

  • pageNumber :: [Prediction]

    The page number the value was detected on, relative to Amazon Textract's starting position.

Instances

Instances details
FromJSON PageClassification Source # 
Instance details

Defined in Amazonka.Textract.Types.PageClassification

Generic PageClassification Source # 
Instance details

Defined in Amazonka.Textract.Types.PageClassification

Associated Types

type Rep PageClassification :: Type -> Type #

Read PageClassification Source # 
Instance details

Defined in Amazonka.Textract.Types.PageClassification

Show PageClassification Source # 
Instance details

Defined in Amazonka.Textract.Types.PageClassification

NFData PageClassification Source # 
Instance details

Defined in Amazonka.Textract.Types.PageClassification

Methods

rnf :: PageClassification -> () #

Eq PageClassification Source # 
Instance details

Defined in Amazonka.Textract.Types.PageClassification

Hashable PageClassification Source # 
Instance details

Defined in Amazonka.Textract.Types.PageClassification

type Rep PageClassification Source # 
Instance details

Defined in Amazonka.Textract.Types.PageClassification

type Rep PageClassification = D1 ('MetaData "PageClassification" "Amazonka.Textract.Types.PageClassification" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "PageClassification'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Prediction]) :*: S1 ('MetaSel ('Just "pageNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Prediction])))

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

data Point Source #

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' 

Fields

  • x :: Maybe Double

    The value of the X coordinate for a point on a Polygon.

  • y :: Maybe Double

    The value of the Y coordinate for a point on a Polygon.

Instances

Instances details
FromJSON Point Source # 
Instance details

Defined in Amazonka.Textract.Types.Point

Generic Point Source # 
Instance details

Defined in Amazonka.Textract.Types.Point

Associated Types

type Rep Point :: Type -> Type #

Methods

from :: Point -> Rep Point x #

to :: Rep Point x -> Point #

Read Point Source # 
Instance details

Defined in Amazonka.Textract.Types.Point

Show Point Source # 
Instance details

Defined in Amazonka.Textract.Types.Point

Methods

showsPrec :: Int -> Point -> ShowS #

show :: Point -> String #

showList :: [Point] -> ShowS #

NFData Point Source # 
Instance details

Defined in Amazonka.Textract.Types.Point

Methods

rnf :: Point -> () #

Eq Point Source # 
Instance details

Defined in Amazonka.Textract.Types.Point

Methods

(==) :: Point -> Point -> Bool #

(/=) :: Point -> Point -> Bool #

Hashable Point Source # 
Instance details

Defined in Amazonka.Textract.Types.Point

Methods

hashWithSalt :: Int -> Point -> Int #

hash :: Point -> Int #

type Rep Point Source # 
Instance details

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))))

newPoint :: Point Source #

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' 

Fields

Instances

Instances details
FromJSON Prediction Source # 
Instance details

Defined in Amazonka.Textract.Types.Prediction

Generic Prediction Source # 
Instance details

Defined in Amazonka.Textract.Types.Prediction

Associated Types

type Rep Prediction :: Type -> Type #

Read Prediction Source # 
Instance details

Defined in Amazonka.Textract.Types.Prediction

Show Prediction Source # 
Instance details

Defined in Amazonka.Textract.Types.Prediction

NFData Prediction Source # 
Instance details

Defined in Amazonka.Textract.Types.Prediction

Methods

rnf :: Prediction -> () #

Eq Prediction Source # 
Instance details

Defined in Amazonka.Textract.Types.Prediction

Hashable Prediction Source # 
Instance details

Defined in Amazonka.Textract.Types.Prediction

type Rep Prediction Source # 
Instance details

Defined in Amazonka.Textract.Types.Prediction

type Rep Prediction = D1 ('MetaData "Prediction" "Amazonka.Textract.Types.Prediction" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "Prediction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "confidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

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

Instances details
ToJSON QueriesConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.QueriesConfig

Generic QueriesConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.QueriesConfig

Associated Types

type Rep QueriesConfig :: Type -> Type #

Read QueriesConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.QueriesConfig

Show QueriesConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.QueriesConfig

NFData QueriesConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.QueriesConfig

Methods

rnf :: QueriesConfig -> () #

Eq QueriesConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.QueriesConfig

Hashable QueriesConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.QueriesConfig

type Rep QueriesConfig Source # 
Instance details

Defined in Amazonka.Textract.Types.QueriesConfig

type Rep QueriesConfig = D1 ('MetaData "QueriesConfig" "Amazonka.Textract.Types.QueriesConfig" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "QueriesConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "queries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Query))))

newQueriesConfig Source #

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:

$sel:queries:QueriesConfig', queriesConfig_queries -

Query

data Query Source #

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

  • alias :: Maybe Text

    Alias attached to the query, for ease of location.

  • pages :: Maybe (NonEmpty Text)

    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.
  • text :: Text

    Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?"

Instances

Instances details
FromJSON Query Source # 
Instance details

Defined in Amazonka.Textract.Types.Query

ToJSON Query Source # 
Instance details

Defined in Amazonka.Textract.Types.Query

Generic Query Source # 
Instance details

Defined in Amazonka.Textract.Types.Query

Associated Types

type Rep Query :: Type -> Type #

Methods

from :: Query -> Rep Query x #

to :: Rep Query x -> Query #

Read Query Source # 
Instance details

Defined in Amazonka.Textract.Types.Query

Show Query Source # 
Instance details

Defined in Amazonka.Textract.Types.Query

Methods

showsPrec :: Int -> Query -> ShowS #

show :: Query -> String #

showList :: [Query] -> ShowS #

NFData Query Source # 
Instance details

Defined in Amazonka.Textract.Types.Query

Methods

rnf :: Query -> () #

Eq Query Source # 
Instance details

Defined in Amazonka.Textract.Types.Query

Methods

(==) :: Query -> Query -> Bool #

(/=) :: Query -> Query -> Bool #

Hashable Query Source # 
Instance details

Defined in Amazonka.Textract.Types.Query

Methods

hashWithSalt :: Int -> Query -> Int #

hash :: Query -> Int #

type Rep Query Source # 
Instance details

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))))

newQuery Source #

Arguments

:: Text

$sel:text:Query'

-> Query 

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_alias :: Lens' Query (Maybe Text) Source #

Alias attached to the query, for ease of location.

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

  • ids :: Maybe [Text]

    An array of IDs for related blocks. You can get the type of the relationship from the Type element.

  • type' :: Maybe RelationshipType

    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.

Instances

Instances details
FromJSON Relationship Source # 
Instance details

Defined in Amazonka.Textract.Types.Relationship

Generic Relationship Source # 
Instance details

Defined in Amazonka.Textract.Types.Relationship

Associated Types

type Rep Relationship :: Type -> Type #

Read Relationship Source # 
Instance details

Defined in Amazonka.Textract.Types.Relationship

Show Relationship Source # 
Instance details

Defined in Amazonka.Textract.Types.Relationship

NFData Relationship Source # 
Instance details

Defined in Amazonka.Textract.Types.Relationship

Methods

rnf :: Relationship -> () #

Eq Relationship Source # 
Instance details

Defined in Amazonka.Textract.Types.Relationship

Hashable Relationship Source # 
Instance details

Defined in Amazonka.Textract.Types.Relationship

type Rep Relationship Source # 
Instance details

Defined in Amazonka.Textract.Types.Relationship

type Rep Relationship = D1 ('MetaData "Relationship" "Amazonka.Textract.Types.Relationship" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "Relationship'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RelationshipType))))

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

data S3Object Source #

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

  • bucket :: Maybe Text

    The name of the S3 bucket. Note that the # character is not valid in the file name.

  • name :: Maybe Text

    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.

  • version :: Maybe Text

    If the bucket has versioning enabled, you can specify the object version.

Instances

Instances details
ToJSON S3Object Source # 
Instance details

Defined in Amazonka.Textract.Types.S3Object

Generic S3Object Source # 
Instance details

Defined in Amazonka.Textract.Types.S3Object

Associated Types

type Rep S3Object :: Type -> Type #

Methods

from :: S3Object -> Rep S3Object x #

to :: Rep S3Object x -> S3Object #

Read S3Object Source # 
Instance details

Defined in Amazonka.Textract.Types.S3Object

Show S3Object Source # 
Instance details

Defined in Amazonka.Textract.Types.S3Object

NFData S3Object Source # 
Instance details

Defined in Amazonka.Textract.Types.S3Object

Methods

rnf :: S3Object -> () #

Eq S3Object Source # 
Instance details

Defined in Amazonka.Textract.Types.S3Object

Hashable S3Object Source # 
Instance details

Defined in Amazonka.Textract.Types.S3Object

Methods

hashWithSalt :: Int -> S3Object -> Int #

hash :: S3Object -> Int #

type Rep S3Object Source # 
Instance details

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' 

Fields

Instances

Instances details
FromJSON SignatureDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.SignatureDetection

Generic SignatureDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.SignatureDetection

Associated Types

type Rep SignatureDetection :: Type -> Type #

Read SignatureDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.SignatureDetection

Show SignatureDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.SignatureDetection

NFData SignatureDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.SignatureDetection

Methods

rnf :: SignatureDetection -> () #

Eq SignatureDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.SignatureDetection

Hashable SignatureDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.SignatureDetection

type Rep SignatureDetection Source # 
Instance details

Defined in Amazonka.Textract.Types.SignatureDetection

type Rep SignatureDetection = D1 ('MetaData "SignatureDetection" "Amazonka.Textract.Types.SignatureDetection" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "SignatureDetection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "confidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "geometry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Geometry))))

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.

SplitDocument

data SplitDocument Source #

Contains information about the pages of a document, defined by logical boundary.

See: newSplitDocument smart constructor.

Constructors

SplitDocument' 

Fields

  • index :: Maybe Natural

    The index for a given document in a DocumentGroup of a specific Type.

  • pages :: Maybe [Natural]

    An array of page numbers for a for a given document, ordered by logical boundary.

Instances

Instances details
FromJSON SplitDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.SplitDocument

Generic SplitDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.SplitDocument

Associated Types

type Rep SplitDocument :: Type -> Type #

Read SplitDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.SplitDocument

Show SplitDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.SplitDocument

NFData SplitDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.SplitDocument

Methods

rnf :: SplitDocument -> () #

Eq SplitDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.SplitDocument

Hashable SplitDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.SplitDocument

type Rep SplitDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.SplitDocument

type Rep SplitDocument = D1 ('MetaData "SplitDocument" "Amazonka.Textract.Types.SplitDocument" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "SplitDocument'" 'PrefixI 'True) (S1 ('MetaSel ('Just "index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "pages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Natural]))))

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' 

Fields

Instances

Instances details
FromJSON UndetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.UndetectedSignature

Generic UndetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.UndetectedSignature

Associated Types

type Rep UndetectedSignature :: Type -> Type #

Read UndetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.UndetectedSignature

Show UndetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.UndetectedSignature

NFData UndetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.UndetectedSignature

Methods

rnf :: UndetectedSignature -> () #

Eq UndetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.UndetectedSignature

Hashable UndetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.UndetectedSignature

type Rep UndetectedSignature Source # 
Instance details

Defined in Amazonka.Textract.Types.UndetectedSignature

type Rep UndetectedSignature = D1 ('MetaData "UndetectedSignature" "Amazonka.Textract.Types.UndetectedSignature" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "UndetectedSignature'" 'PrefixI 'True) (S1 ('MetaSel ('Just "page") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))

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

data Warning Source #

A warning about an issue that occurred during asynchronous text analysis (StartDocumentAnalysis) or asynchronous document text detection (StartDocumentTextDetection).

See: newWarning smart constructor.

Constructors

Warning' 

Fields

Instances

Instances details
FromJSON Warning Source # 
Instance details

Defined in Amazonka.Textract.Types.Warning

Generic Warning Source # 
Instance details

Defined in Amazonka.Textract.Types.Warning

Associated Types

type Rep Warning :: Type -> Type #

Methods

from :: Warning -> Rep Warning x #

to :: Rep Warning x -> Warning #

Read Warning Source # 
Instance details

Defined in Amazonka.Textract.Types.Warning

Show Warning Source # 
Instance details

Defined in Amazonka.Textract.Types.Warning

NFData Warning Source # 
Instance details

Defined in Amazonka.Textract.Types.Warning

Methods

rnf :: Warning -> () #

Eq Warning Source # 
Instance details

Defined in Amazonka.Textract.Types.Warning

Methods

(==) :: Warning -> Warning -> Bool #

(/=) :: Warning -> Warning -> Bool #

Hashable Warning Source # 
Instance details

Defined in Amazonka.Textract.Types.Warning

Methods

hashWithSalt :: Int -> Warning -> Int #

hash :: Warning -> Int #

type Rep Warning Source # 
Instance details

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.

warning_errorCode :: Lens' Warning (Maybe Text) Source #

The error code for the warning.

warning_pages :: Lens' Warning (Maybe [Natural]) Source #

A list of the pages that the warning applies to.