Values.GetExpenseAnalysisResponseSourceGets the results for an Amazon Textract asynchronous operation that analyzes invoices and receipts. Amazon Textract finds contact information, items purchased, and vendor name, from input invoices and receipts. You start asynchronous invoice/receipt analysis by calling StartExpenseAnalysis, which returns a job identifier (JobId). Upon completion of the invoice/receipt analysis, Amazon Textract publishes the completion status to the Amazon Simple Notification Service (Amazon SNS) topic. This topic must be registered in the initial call to StartExpenseAnalysis. To get the results of the invoice/receipt analysis operation, first ensure that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetExpenseAnalysis, and pass the job identifier (JobId) from the initial call to StartExpenseAnalysis. Use the MaxResults parameter to limit the number of blocks that are returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetExpenseAnalysis, and populate the NextToken request parameter with the token value that's returned from the previous call to GetExpenseAnalysis. For more information, see Analyzing Invoices and Receipts.
type nonrec t = {documentMetadata : DocumentMetadata.t option;Information about a document that Amazon Textract processed. DocumentMetadata is returned in every page of paginated responses from an Amazon Textract operation.
*)jobStatus : JobStatus.t option;The current status of the text detection job.
*)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 text-detection results.
*)expenseDocuments : ExpenseDocumentList.t option;The expenses detected by Amazon Textract.
*)warnings : Warnings.t option;A list of warnings that occurred during the text-detection operation for the document.
*)statusMessage : StatusMessage.t option;Returns if the detection job could not be completed. Contains explanation for what error occured.
*)analyzeExpenseModelVersion : String_.t option;The current model version of AnalyzeExpense.
*)}type nonrec error = [ | `AccessDeniedException of AccessDeniedException.t| `InternalServerError of InternalServerError.t| `InvalidJobIdException of InvalidJobIdException.t| `InvalidKMSKeyException of InvalidKMSKeyException.t| `InvalidParameterException of InvalidParameterException.t| `InvalidS3ObjectException of InvalidS3ObjectException.t| `ProvisionedThroughputExceededException of
ProvisionedThroughputExceededException.t| `ThrottlingException of ThrottlingException.t| `Unknown_operation_error of string * string option ]val 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 ]val 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 ]val 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
* [> `Enum of string
| `Float of Percent.t
| `Integer of UInteger.t
| `List of
[> `Enum of string
| `Structure of
(string
* [> `Enum of string
| `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 ])
list ]
list
| `String of String_.t
| `Structure 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
* [> `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 ErrorCode.t ])
list ]
list
| `String of PaginationToken.t
| `Structure of (string * [> `Integer of UInteger.t ]) list ])
list ]