amazonka-comprehend-2.0: Amazon Comprehend 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.Comprehend.Types.ErrorsListItem

Description

 
Synopsis

Documentation

data ErrorsListItem Source #

Text extraction encountered one or more page-level errors in the input document.

The ErrorCode contains one of the following values:

  • TEXTRACT_BAD_PAGE - Amazon Textract cannot read the page. For more information about page limits in Amazon Textract, see Page Quotas in Amazon Textract.
  • TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED - The number of requests exceeded your throughput limit. For more information about throughput quotas in Amazon Textract, see Default quotas in Amazon Textract.
  • PAGE_CHARACTERS_EXCEEDED - Too many text characters on the page (10,000 characters maximum).
  • PAGE_SIZE_EXCEEDED - The maximum page size is 10 MB.
  • INTERNAL_SERVER_ERROR - The request encountered a service issue. Try the API request again.

See: newErrorsListItem smart constructor.

Constructors

ErrorsListItem' 

Fields

Instances

Instances details
FromJSON ErrorsListItem Source # 
Instance details

Defined in Amazonka.Comprehend.Types.ErrorsListItem

Generic ErrorsListItem Source # 
Instance details

Defined in Amazonka.Comprehend.Types.ErrorsListItem

Associated Types

type Rep ErrorsListItem :: Type -> Type #

Read ErrorsListItem Source # 
Instance details

Defined in Amazonka.Comprehend.Types.ErrorsListItem

Show ErrorsListItem Source # 
Instance details

Defined in Amazonka.Comprehend.Types.ErrorsListItem

NFData ErrorsListItem Source # 
Instance details

Defined in Amazonka.Comprehend.Types.ErrorsListItem

Methods

rnf :: ErrorsListItem -> () #

Eq ErrorsListItem Source # 
Instance details

Defined in Amazonka.Comprehend.Types.ErrorsListItem

Hashable ErrorsListItem Source # 
Instance details

Defined in Amazonka.Comprehend.Types.ErrorsListItem

type Rep ErrorsListItem Source # 
Instance details

Defined in Amazonka.Comprehend.Types.ErrorsListItem

type Rep ErrorsListItem = D1 ('MetaData "ErrorsListItem" "Amazonka.Comprehend.Types.ErrorsListItem" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "ErrorsListItem'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errorCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PageBasedErrorCode)) :*: (S1 ('MetaSel ('Just "errorMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "page") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))

newErrorsListItem :: ErrorsListItem Source #

Create a value of ErrorsListItem 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:ErrorsListItem', errorsListItem_errorCode - Error code for the cause of the error.

$sel:errorMessage:ErrorsListItem', errorsListItem_errorMessage - Text message explaining the reason for the error.

$sel:page:ErrorsListItem', errorsListItem_page - Page number where the error occurred.

errorsListItem_errorCode :: Lens' ErrorsListItem (Maybe PageBasedErrorCode) Source #

Error code for the cause of the error.

errorsListItem_errorMessage :: Lens' ErrorsListItem (Maybe Text) Source #

Text message explaining the reason for the error.

errorsListItem_page :: Lens' ErrorsListItem (Maybe Int) Source #

Page number where the error occurred.