Module Smaws_Client_Textract.StartExpenseAnalysis

Starts the asynchronous analysis of invoices or receipts for data like contact information, items purchased, and vendor names.

StartExpenseAnalysis can analyze text in documents that are in JPEG, PNG, and PDF format. The documents must be stored in an Amazon S3 bucket. Use the DocumentLocation parameter to specify the name of your S3 bucket and the name of the document in that bucket.

StartExpenseAnalysis returns a job identifier (JobId) that you will provide to GetExpenseAnalysis to retrieve the results of the operation. When the analysis of the input invoices/receipts is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that you provide to the NotificationChannel. To obtain the results of the invoice and receipt analysis operation, ensure that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetExpenseAnalysis, and pass the job identifier (JobId) that was returned by your call to StartExpenseAnalysis.

For more information, see Analyzing Invoices and Receipts.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `BadDocumentException of Types.bad_document_exception | `DocumentTooLargeException of Types.document_too_large_exception | `IdempotentParameterMismatchException of Types.idempotent_parameter_mismatch_exception | `InternalServerError of Types.internal_server_error | `InvalidKMSKeyException of Types.invalid_kms_key_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidS3ObjectException of Types.invalid_s3_object_exception | `LimitExceededException of Types.limit_exceeded_exception | `ProvisionedThroughputExceededException of Types.provisioned_throughput_exceeded_exception | `ThrottlingException of Types.throttling_exception | `UnsupportedDocumentException of Types.unsupported_document_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.start_expense_analysis_request -> (Types.start_expense_analysis_response, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `BadDocumentException of Types.bad_document_exception | `DocumentTooLargeException of Types.document_too_large_exception | `IdempotentParameterMismatchException of Types.idempotent_parameter_mismatch_exception | `InternalServerError of Types.internal_server_error | `InvalidKMSKeyException of Types.invalid_kms_key_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidS3ObjectException of Types.invalid_s3_object_exception | `LimitExceededException of Types.limit_exceeded_exception | `ProvisionedThroughputExceededException of Types.provisioned_throughput_exceeded_exception | `ThrottlingException of Types.throttling_exception | `UnsupportedDocumentException of Types.unsupported_document_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.start_expense_analysis_request -> (Types.start_expense_analysis_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `BadDocumentException of Types.bad_document_exception | `DocumentTooLargeException of Types.document_too_large_exception | `IdempotentParameterMismatchException of Types.idempotent_parameter_mismatch_exception | `InternalServerError of Types.internal_server_error | `InvalidKMSKeyException of Types.invalid_kms_key_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidS3ObjectException of Types.invalid_s3_object_exception | `LimitExceededException of Types.limit_exceeded_exception | `ProvisionedThroughputExceededException of Types.provisioned_throughput_exceeded_exception | `ThrottlingException of Types.throttling_exception | `UnsupportedDocumentException of Types.unsupported_document_exception ] * Smaws_Lib.Response.metadata) Stdlib.result