Module Values.GetLendingAnalysisResponseSource

Gets the results for an Amazon Textract asynchronous operation that analyzes text in a lending document. You start asynchronous text analysis by calling StartLendingAnalysis, which returns a job identifier (JobId). When the text analysis operation finishes, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to StartLendingAnalysis. To get the results of the text analysis operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetLendingAnalysis, and pass the job identifier (JobId) from the initial call to StartLendingAnalysis.

Sourcetype nonrec t = {
  1. documentMetadata : DocumentMetadata.t option;
  2. jobStatus : JobStatus.t option;
    (*

    The current status of the lending analysis job.

    *)
  3. nextToken : PaginationToken.t option;
    (*

    If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent request to retrieve the next set of lending results.

    *)
  4. results : LendingResultList.t option;
    (*

    Holds the information returned by one of AmazonTextract's document analysis operations for the pinstripe.

    *)
  5. warnings : Warnings.t option;
    (*

    A list of warnings that occurred during the lending analysis operation.

    *)
  6. statusMessage : StatusMessage.t option;
    (*

    Returns if the lending analysis job could not be completed. Contains explanation for what error occurred.

    *)
  7. analyzeLendingModelVersion : String_.t option;
    (*

    The current model version of the Analyze Lending API.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerError of InternalServerError.t
  3. | `InvalidJobIdException of InvalidJobIdException.t
  4. | `InvalidKMSKeyException of InvalidKMSKeyException.t
  5. | `InvalidParameterException of InvalidParameterException.t
  6. | `InvalidS3ObjectException of InvalidS3ObjectException.t
  7. | `ProvisionedThroughputExceededException of ProvisionedThroughputExceededException.t
  8. | `ThrottlingException of ThrottlingException.t
  9. | `Unknown_operation_error of string * string option
]
Sourceval make : ?documentMetadata:??? -> ?jobStatus:??? -> ?nextToken:??? -> ?results:??? -> ?warnings:??? -> ?statusMessage:??? -> ?analyzeLendingModelVersion:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of unit | `InternalServerError of unit | `InvalidJobIdException of unit | `InvalidKMSKeyException of unit | `InvalidParameterException of unit | `InvalidS3ObjectException of unit | `ProvisionedThroughputExceededException of unit | `ThrottlingException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of unit | `InternalServerError of unit | `InvalidJobIdException of unit | `InvalidKMSKeyException of unit | `InvalidParameterException of unit | `InvalidS3ObjectException of unit | `ProvisionedThroughputExceededException of unit | `ThrottlingException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Integer of UInteger.t | `List of [> `Integer of UInteger.t | `Structure of (string * [> `Structure of (string * [> `Integer of UInteger.t | `List of [> `Structure of (string * [> `Enum of string | `Float of Percent.t | `Integer of UInteger.t | `List of [> `Enum of string | `Structure of (string * [> `Enum of string | `Float of Percent.t | `List of [> `String of String_.t | `Structure of (string * [> `Integer of UInteger.t | `List of [> `Structure of (string * [> `List of [> `String of String_.t ] list | `String of String_.t ]) list ] list | `Structure of (string * [> `Float of Percent.t | `String of String_.t | `Structure of (string * [> `Float of Angle.t | `List of [> `Structure of (string * [> `Float of Float_.t ]) list ] list | `Structure of (string * [> `Float of Float_.t ]) list ]) list ]) list ]) list ] list | `String of String_.t | `Structure of (string * [> `Float of Angle.t | `List of [> `Structure of (string * [> `Float of Float_.t ]) list ] list | `Structure of (string * [> `Float of Float_.t ]) list ]) list ]) list ] list | `String of String_.t | `Structure of (string * [> `Enum of string | `Float of Percent.t | `List of [> `String of QueryPage.t | `Structure of (string * [> `Float of Float_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `Enum of string | `Float of Angle.t | `List of [> `Structure of (string * [> `Float of Float_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `Float of Float_.t ]) list ]) list ]) list ]) list ] list ]) list ]) list ] list | `String of ErrorCode.t | `Structure of (string * [> `List of [> `Structure of (string * [> `Float of Percent.t | `String of NonEmptyString.t ]) list ] list ]) list ]) list ] list | `String of PaginationToken.t | `Structure of (string * [> `Integer of UInteger.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t