Interface TextractClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Amazon Textract detects and analyzes text in documents and converts it into machine-readable text. This is the API reference documentation for Amazon Textract.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault AnalyzeDocumentResponseanalyzeDocument(Consumer<AnalyzeDocumentRequest.Builder> analyzeDocumentRequest) Analyzes an input document for relationships between detected items.default AnalyzeDocumentResponseanalyzeDocument(AnalyzeDocumentRequest analyzeDocumentRequest) Analyzes an input document for relationships between detected items.default AnalyzeExpenseResponseanalyzeExpense(Consumer<AnalyzeExpenseRequest.Builder> analyzeExpenseRequest) AnalyzeExpensesynchronously analyzes an input document for financially related relationships between text.default AnalyzeExpenseResponseanalyzeExpense(AnalyzeExpenseRequest analyzeExpenseRequest) AnalyzeExpensesynchronously analyzes an input document for financially related relationships between text.default AnalyzeIdResponseanalyzeID(Consumer<AnalyzeIdRequest.Builder> analyzeIdRequest) Analyzes identity documents for relevant information.default AnalyzeIdResponseanalyzeID(AnalyzeIdRequest analyzeIdRequest) Analyzes identity documents for relevant information.static TextractClientBuilderbuilder()Create a builder that can be used to configure and create aTextractClient.static TextractClientcreate()Create aTextractClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateAdapterResponsecreateAdapter(Consumer<CreateAdapterRequest.Builder> createAdapterRequest) Creates an adapter, which can be fine-tuned for enhanced performance on user provided documents.default CreateAdapterResponsecreateAdapter(CreateAdapterRequest createAdapterRequest) Creates an adapter, which can be fine-tuned for enhanced performance on user provided documents.default CreateAdapterVersionResponsecreateAdapterVersion(Consumer<CreateAdapterVersionRequest.Builder> createAdapterVersionRequest) Creates a new version of an adapter.default CreateAdapterVersionResponsecreateAdapterVersion(CreateAdapterVersionRequest createAdapterVersionRequest) Creates a new version of an adapter.default DeleteAdapterResponsedeleteAdapter(Consumer<DeleteAdapterRequest.Builder> deleteAdapterRequest) Deletes an Amazon Textract adapter.default DeleteAdapterResponsedeleteAdapter(DeleteAdapterRequest deleteAdapterRequest) Deletes an Amazon Textract adapter.default DeleteAdapterVersionResponsedeleteAdapterVersion(Consumer<DeleteAdapterVersionRequest.Builder> deleteAdapterVersionRequest) Deletes an Amazon Textract adapter version.default DeleteAdapterVersionResponsedeleteAdapterVersion(DeleteAdapterVersionRequest deleteAdapterVersionRequest) Deletes an Amazon Textract adapter version.default DetectDocumentTextResponsedetectDocumentText(Consumer<DetectDocumentTextRequest.Builder> detectDocumentTextRequest) Detects text in the input document.default DetectDocumentTextResponsedetectDocumentText(DetectDocumentTextRequest detectDocumentTextRequest) Detects text in the input document.default GetAdapterResponsegetAdapter(Consumer<GetAdapterRequest.Builder> getAdapterRequest) Gets configuration information for an adapter specified by an AdapterId, returning information on AdapterName, Description, CreationTime, AutoUpdate status, and FeatureTypes.default GetAdapterResponsegetAdapter(GetAdapterRequest getAdapterRequest) Gets configuration information for an adapter specified by an AdapterId, returning information on AdapterName, Description, CreationTime, AutoUpdate status, and FeatureTypes.default GetAdapterVersionResponsegetAdapterVersion(Consumer<GetAdapterVersionRequest.Builder> getAdapterVersionRequest) Gets configuration information for the specified adapter version, including: AdapterId, AdapterVersion, FeatureTypes, Status, StatusMessage, DatasetConfig, KMSKeyId, OutputConfig, Tags and EvaluationMetrics.default GetAdapterVersionResponsegetAdapterVersion(GetAdapterVersionRequest getAdapterVersionRequest) Gets configuration information for the specified adapter version, including: AdapterId, AdapterVersion, FeatureTypes, Status, StatusMessage, DatasetConfig, KMSKeyId, OutputConfig, Tags and EvaluationMetrics.default GetDocumentAnalysisResponsegetDocumentAnalysis(Consumer<GetDocumentAnalysisRequest.Builder> getDocumentAnalysisRequest) Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.default GetDocumentAnalysisResponsegetDocumentAnalysis(GetDocumentAnalysisRequest getDocumentAnalysisRequest) Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.default GetDocumentTextDetectionResponsegetDocumentTextDetection(Consumer<GetDocumentTextDetectionRequest.Builder> getDocumentTextDetectionRequest) Gets the results for an Amazon Textract asynchronous operation that detects text in a document.default GetDocumentTextDetectionResponsegetDocumentTextDetection(GetDocumentTextDetectionRequest getDocumentTextDetectionRequest) Gets the results for an Amazon Textract asynchronous operation that detects text in a document.default GetExpenseAnalysisResponsegetExpenseAnalysis(Consumer<GetExpenseAnalysisRequest.Builder> getExpenseAnalysisRequest) Gets the results for an Amazon Textract asynchronous operation that analyzes invoices and receipts.default GetExpenseAnalysisResponsegetExpenseAnalysis(GetExpenseAnalysisRequest getExpenseAnalysisRequest) Gets the results for an Amazon Textract asynchronous operation that analyzes invoices and receipts.default GetLendingAnalysisResponsegetLendingAnalysis(Consumer<GetLendingAnalysisRequest.Builder> getLendingAnalysisRequest) Gets the results for an Amazon Textract asynchronous operation that analyzes text in a lending document.default GetLendingAnalysisResponsegetLendingAnalysis(GetLendingAnalysisRequest getLendingAnalysisRequest) Gets the results for an Amazon Textract asynchronous operation that analyzes text in a lending document.getLendingAnalysisSummary(Consumer<GetLendingAnalysisSummaryRequest.Builder> getLendingAnalysisSummaryRequest) Gets summarized results for theStartLendingAnalysisoperation, which analyzes text in a lending document.getLendingAnalysisSummary(GetLendingAnalysisSummaryRequest getLendingAnalysisSummaryRequest) Gets summarized results for theStartLendingAnalysisoperation, which analyzes text in a lending document.default ListAdaptersResponselistAdapters(Consumer<ListAdaptersRequest.Builder> listAdaptersRequest) Lists all adapters that match the specified filtration criteria.default ListAdaptersResponselistAdapters(ListAdaptersRequest listAdaptersRequest) Lists all adapters that match the specified filtration criteria.default ListAdaptersIterablelistAdaptersPaginator(Consumer<ListAdaptersRequest.Builder> listAdaptersRequest) This is a variant oflistAdapters(software.amazon.awssdk.services.textract.model.ListAdaptersRequest)operation.default ListAdaptersIterablelistAdaptersPaginator(ListAdaptersRequest listAdaptersRequest) This is a variant oflistAdapters(software.amazon.awssdk.services.textract.model.ListAdaptersRequest)operation.default ListAdapterVersionsResponselistAdapterVersions(Consumer<ListAdapterVersionsRequest.Builder> listAdapterVersionsRequest) List all version of an adapter that meet the specified filtration criteria.default ListAdapterVersionsResponselistAdapterVersions(ListAdapterVersionsRequest listAdapterVersionsRequest) List all version of an adapter that meet the specified filtration criteria.default ListAdapterVersionsIterablelistAdapterVersionsPaginator(Consumer<ListAdapterVersionsRequest.Builder> listAdapterVersionsRequest) This is a variant oflistAdapterVersions(software.amazon.awssdk.services.textract.model.ListAdapterVersionsRequest)operation.default ListAdapterVersionsIterablelistAdapterVersionsPaginator(ListAdapterVersionsRequest listAdapterVersionsRequest) This is a variant oflistAdapterVersions(software.amazon.awssdk.services.textract.model.ListAdapterVersionsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists all tags for an Amazon Textract resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists all tags for an Amazon Textract resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault StartDocumentAnalysisResponsestartDocumentAnalysis(Consumer<StartDocumentAnalysisRequest.Builder> startDocumentAnalysisRequest) Starts the asynchronous analysis of an input document for relationships between detected items such as key-value pairs, tables, and selection elements.default StartDocumentAnalysisResponsestartDocumentAnalysis(StartDocumentAnalysisRequest startDocumentAnalysisRequest) Starts the asynchronous analysis of an input document for relationships between detected items such as key-value pairs, tables, and selection elements.startDocumentTextDetection(Consumer<StartDocumentTextDetectionRequest.Builder> startDocumentTextDetectionRequest) Starts the asynchronous detection of text in a document.startDocumentTextDetection(StartDocumentTextDetectionRequest startDocumentTextDetectionRequest) Starts the asynchronous detection of text in a document.default StartExpenseAnalysisResponsestartExpenseAnalysis(Consumer<StartExpenseAnalysisRequest.Builder> startExpenseAnalysisRequest) Starts the asynchronous analysis of invoices or receipts for data like contact information, items purchased, and vendor names.default StartExpenseAnalysisResponsestartExpenseAnalysis(StartExpenseAnalysisRequest startExpenseAnalysisRequest) Starts the asynchronous analysis of invoices or receipts for data like contact information, items purchased, and vendor names.default StartLendingAnalysisResponsestartLendingAnalysis(Consumer<StartLendingAnalysisRequest.Builder> startLendingAnalysisRequest) Starts the classification and analysis of an input document.default StartLendingAnalysisResponsestartLendingAnalysis(StartLendingAnalysisRequest startLendingAnalysisRequest) Starts the classification and analysis of an input document.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds one or more tags to the specified resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds one or more tags to the specified resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes any tags with the specified keys from the specified resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes any tags with the specified keys from the specified resource.default UpdateAdapterResponseupdateAdapter(Consumer<UpdateAdapterRequest.Builder> updateAdapterRequest) Update the configuration for an adapter.default UpdateAdapterResponseupdateAdapter(UpdateAdapterRequest updateAdapterRequest) Update the configuration for an adapter.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
analyzeDocument
default AnalyzeDocumentResponse analyzeDocument(AnalyzeDocumentRequest analyzeDocumentRequest) throws InvalidParameterException, InvalidS3ObjectException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, HumanLoopQuotaExceededException, AwsServiceException, SdkClientException, TextractException Analyzes an input document for relationships between detected items.
The types of information returned are as follows:
-
Form data (key-value pairs). The related information is returned in two Block objects, each of type
KEY_VALUE_SET: a KEYBlockobject and a VALUEBlockobject. For example, Name: Ana Silva Carolina contains a key and value. Name: is the key. Ana Silva Carolina is the value. -
Table and table cell data. A TABLE
Blockobject contains information about a detected table. A CELLBlockobject is returned for each cell in a table. -
Lines and words of text. A LINE
Blockobject contains one or more WORDBlockobjects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value ofFeatureTypes). -
Signatures. A SIGNATURE
Blockobject contains the location information of a signature in a document. If used in conjunction with forms or tables, a signature can be given a Key-Value pairing or be detected in the cell of a table. -
Query. A QUERY Block object contains the query text, alias and link to the associated Query results block object.
-
Query Result. A QUERY_RESULT Block object contains the answer to the query and an ID that connects it to the query asked. This Block also contains a confidence score.
Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT
Blockobject contains information about a selection element, including the selection status.You can choose which type of analysis to perform by specifying the
FeatureTypeslist.The output is returned in a list of
Blockobjects.AnalyzeDocumentis a synchronous operation. To analyze documents asynchronously, use StartDocumentAnalysis.For more information, see Document Text Analysis.
- Parameters:
analyzeDocumentRequest-- Returns:
- Result of the AnalyzeDocument operation returned by the service.
- See Also:
-
-
analyzeDocument
default AnalyzeDocumentResponse analyzeDocument(Consumer<AnalyzeDocumentRequest.Builder> analyzeDocumentRequest) throws InvalidParameterException, InvalidS3ObjectException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, HumanLoopQuotaExceededException, AwsServiceException, SdkClientException, TextractException Analyzes an input document for relationships between detected items.
The types of information returned are as follows:
-
Form data (key-value pairs). The related information is returned in two Block objects, each of type
KEY_VALUE_SET: a KEYBlockobject and a VALUEBlockobject. For example, Name: Ana Silva Carolina contains a key and value. Name: is the key. Ana Silva Carolina is the value. -
Table and table cell data. A TABLE
Blockobject contains information about a detected table. A CELLBlockobject is returned for each cell in a table. -
Lines and words of text. A LINE
Blockobject contains one or more WORDBlockobjects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value ofFeatureTypes). -
Signatures. A SIGNATURE
Blockobject contains the location information of a signature in a document. If used in conjunction with forms or tables, a signature can be given a Key-Value pairing or be detected in the cell of a table. -
Query. A QUERY Block object contains the query text, alias and link to the associated Query results block object.
-
Query Result. A QUERY_RESULT Block object contains the answer to the query and an ID that connects it to the query asked. This Block also contains a confidence score.
Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT
Blockobject contains information about a selection element, including the selection status.You can choose which type of analysis to perform by specifying the
FeatureTypeslist.The output is returned in a list of
Blockobjects.AnalyzeDocumentis a synchronous operation. To analyze documents asynchronously, use StartDocumentAnalysis.For more information, see Document Text Analysis.
This is a convenience which creates an instance of the
AnalyzeDocumentRequest.Builderavoiding the need to create one manually viaAnalyzeDocumentRequest.builder()- Parameters:
analyzeDocumentRequest- AConsumerthat will call methods onAnalyzeDocumentRequest.Builderto create a request.- Returns:
- Result of the AnalyzeDocument operation returned by the service.
- See Also:
-
-
analyzeExpense
default AnalyzeExpenseResponse analyzeExpense(AnalyzeExpenseRequest analyzeExpenseRequest) throws InvalidParameterException, InvalidS3ObjectException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, AwsServiceException, SdkClientException, TextractException AnalyzeExpensesynchronously analyzes an input document for financially related relationships between text.Information is returned as
ExpenseDocumentsand seperated as follows:-
LineItemGroups- A data set containingLineItemswhich store information about the lines of text, such as an item purchased and its price on a receipt. -
SummaryFields- Contains all other information a receipt, such as header information or the vendors name.
- Parameters:
analyzeExpenseRequest-- Returns:
- Result of the AnalyzeExpense operation returned by the service.
- See Also:
-
-
analyzeExpense
default AnalyzeExpenseResponse analyzeExpense(Consumer<AnalyzeExpenseRequest.Builder> analyzeExpenseRequest) throws InvalidParameterException, InvalidS3ObjectException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, AwsServiceException, SdkClientException, TextractException AnalyzeExpensesynchronously analyzes an input document for financially related relationships between text.Information is returned as
ExpenseDocumentsand seperated as follows:-
LineItemGroups- A data set containingLineItemswhich store information about the lines of text, such as an item purchased and its price on a receipt. -
SummaryFields- Contains all other information a receipt, such as header information or the vendors name.
This is a convenience which creates an instance of the
AnalyzeExpenseRequest.Builderavoiding the need to create one manually viaAnalyzeExpenseRequest.builder()- Parameters:
analyzeExpenseRequest- AConsumerthat will call methods onAnalyzeExpenseRequest.Builderto create a request.- Returns:
- Result of the AnalyzeExpense operation returned by the service.
- See Also:
-
-
analyzeID
default AnalyzeIdResponse analyzeID(AnalyzeIdRequest analyzeIdRequest) throws InvalidParameterException, InvalidS3ObjectException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, AwsServiceException, SdkClientException, TextractException Analyzes identity documents for relevant information. This information is extracted and returned as
IdentityDocumentFields, which records both the normalized field and value of the extracted text. Unlike other Amazon Textract operations,AnalyzeIDdoesn't return any Geometry data.- Parameters:
analyzeIdRequest-- Returns:
- Result of the AnalyzeID operation returned by the service.
- See Also:
-
analyzeID
default AnalyzeIdResponse analyzeID(Consumer<AnalyzeIdRequest.Builder> analyzeIdRequest) throws InvalidParameterException, InvalidS3ObjectException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, AwsServiceException, SdkClientException, TextractException Analyzes identity documents for relevant information. This information is extracted and returned as
IdentityDocumentFields, which records both the normalized field and value of the extracted text. Unlike other Amazon Textract operations,AnalyzeIDdoesn't return any Geometry data.
This is a convenience which creates an instance of the
AnalyzeIdRequest.Builderavoiding the need to create one manually viaAnalyzeIdRequest.builder()- Parameters:
analyzeIdRequest- AConsumerthat will call methods onAnalyzeIdRequest.Builderto create a request.- Returns:
- Result of the AnalyzeID operation returned by the service.
- See Also:
-
createAdapter
default CreateAdapterResponse createAdapter(CreateAdapterRequest createAdapterRequest) throws InvalidParameterException, AccessDeniedException, ConflictException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, TextractException Creates an adapter, which can be fine-tuned for enhanced performance on user provided documents. Takes an AdapterName and FeatureType. Currently the only supported feature type is
QUERIES. You can also provide a Description, Tags, and a ClientRequestToken. You can choose whether or not the adapter should be AutoUpdated with the AutoUpdate argument. By default, AutoUpdate is set to DISABLED.- Parameters:
createAdapterRequest-- Returns:
- Result of the CreateAdapter operation returned by the service.
- See Also:
-
createAdapter
default CreateAdapterResponse createAdapter(Consumer<CreateAdapterRequest.Builder> createAdapterRequest) throws InvalidParameterException, AccessDeniedException, ConflictException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, TextractException Creates an adapter, which can be fine-tuned for enhanced performance on user provided documents. Takes an AdapterName and FeatureType. Currently the only supported feature type is
QUERIES. You can also provide a Description, Tags, and a ClientRequestToken. You can choose whether or not the adapter should be AutoUpdated with the AutoUpdate argument. By default, AutoUpdate is set to DISABLED.
This is a convenience which creates an instance of the
CreateAdapterRequest.Builderavoiding the need to create one manually viaCreateAdapterRequest.builder()- Parameters:
createAdapterRequest- AConsumerthat will call methods onCreateAdapterRequest.Builderto create a request.- Returns:
- Result of the CreateAdapter operation returned by the service.
- See Also:
-
createAdapterVersion
default CreateAdapterVersionResponse createAdapterVersion(CreateAdapterVersionRequest createAdapterVersionRequest) throws InvalidParameterException, InvalidS3ObjectException, InvalidKmsKeyException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, ValidationException, ServiceQuotaExceededException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, TextractException Creates a new version of an adapter. Operates on a provided AdapterId and a specified dataset provided via the DatasetConfig argument. Requires that you specify an Amazon S3 bucket with the OutputConfig argument. You can provide an optional KMSKeyId, an optional ClientRequestToken, and optional tags.
- Parameters:
createAdapterVersionRequest-- Returns:
- Result of the CreateAdapterVersion operation returned by the service.
- See Also:
-
createAdapterVersion
default CreateAdapterVersionResponse createAdapterVersion(Consumer<CreateAdapterVersionRequest.Builder> createAdapterVersionRequest) throws InvalidParameterException, InvalidS3ObjectException, InvalidKmsKeyException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, ValidationException, ServiceQuotaExceededException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, TextractException Creates a new version of an adapter. Operates on a provided AdapterId and a specified dataset provided via the DatasetConfig argument. Requires that you specify an Amazon S3 bucket with the OutputConfig argument. You can provide an optional KMSKeyId, an optional ClientRequestToken, and optional tags.
This is a convenience which creates an instance of the
CreateAdapterVersionRequest.Builderavoiding the need to create one manually viaCreateAdapterVersionRequest.builder()- Parameters:
createAdapterVersionRequest- AConsumerthat will call methods onCreateAdapterVersionRequest.Builderto create a request.- Returns:
- Result of the CreateAdapterVersion operation returned by the service.
- See Also:
-
deleteAdapter
default DeleteAdapterResponse deleteAdapter(DeleteAdapterRequest deleteAdapterRequest) throws InvalidParameterException, AccessDeniedException, ConflictException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException Deletes an Amazon Textract adapter. Takes an AdapterId and deletes the adapter specified by the ID.
- Parameters:
deleteAdapterRequest-- Returns:
- Result of the DeleteAdapter operation returned by the service.
- See Also:
-
deleteAdapter
default DeleteAdapterResponse deleteAdapter(Consumer<DeleteAdapterRequest.Builder> deleteAdapterRequest) throws InvalidParameterException, AccessDeniedException, ConflictException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException Deletes an Amazon Textract adapter. Takes an AdapterId and deletes the adapter specified by the ID.
This is a convenience which creates an instance of the
DeleteAdapterRequest.Builderavoiding the need to create one manually viaDeleteAdapterRequest.builder()- Parameters:
deleteAdapterRequest- AConsumerthat will call methods onDeleteAdapterRequest.Builderto create a request.- Returns:
- Result of the DeleteAdapter operation returned by the service.
- See Also:
-
deleteAdapterVersion
default DeleteAdapterVersionResponse deleteAdapterVersion(DeleteAdapterVersionRequest deleteAdapterVersionRequest) throws InvalidParameterException, AccessDeniedException, ConflictException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException Deletes an Amazon Textract adapter version. Requires that you specify both an AdapterId and a AdapterVersion. Deletes the adapter version specified by the AdapterId and the AdapterVersion.
- Parameters:
deleteAdapterVersionRequest-- Returns:
- Result of the DeleteAdapterVersion operation returned by the service.
- See Also:
-
deleteAdapterVersion
default DeleteAdapterVersionResponse deleteAdapterVersion(Consumer<DeleteAdapterVersionRequest.Builder> deleteAdapterVersionRequest) throws InvalidParameterException, AccessDeniedException, ConflictException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException Deletes an Amazon Textract adapter version. Requires that you specify both an AdapterId and a AdapterVersion. Deletes the adapter version specified by the AdapterId and the AdapterVersion.
This is a convenience which creates an instance of the
DeleteAdapterVersionRequest.Builderavoiding the need to create one manually viaDeleteAdapterVersionRequest.builder()- Parameters:
deleteAdapterVersionRequest- AConsumerthat will call methods onDeleteAdapterVersionRequest.Builderto create a request.- Returns:
- Result of the DeleteAdapterVersion operation returned by the service.
- See Also:
-
detectDocumentText
default DetectDocumentTextResponse detectDocumentText(DetectDocumentTextRequest detectDocumentTextRequest) throws InvalidParameterException, InvalidS3ObjectException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, AwsServiceException, SdkClientException, TextractException Detects text in the input document. Amazon Textract can detect lines of text and the words that make up a line of text. The input document must be in one of the following image formats: JPEG, PNG, PDF, or TIFF.
DetectDocumentTextreturns the detected text in an array of Block objects.Each document page has as an associated
Blockof type PAGE. Each PAGEBlockobject is the parent of LINEBlockobjects that represent the lines of detected text on a page. A LINEBlockobject is a parent for each word that makes up the line. Words are represented byBlockobjects of type WORD.DetectDocumentTextis a synchronous operation. To analyze documents asynchronously, use StartDocumentTextDetection.For more information, see Document Text Detection.
- Parameters:
detectDocumentTextRequest-- Returns:
- Result of the DetectDocumentText operation returned by the service.
- See Also:
-
detectDocumentText
default DetectDocumentTextResponse detectDocumentText(Consumer<DetectDocumentTextRequest.Builder> detectDocumentTextRequest) throws InvalidParameterException, InvalidS3ObjectException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, AwsServiceException, SdkClientException, TextractException Detects text in the input document. Amazon Textract can detect lines of text and the words that make up a line of text. The input document must be in one of the following image formats: JPEG, PNG, PDF, or TIFF.
DetectDocumentTextreturns the detected text in an array of Block objects.Each document page has as an associated
Blockof type PAGE. Each PAGEBlockobject is the parent of LINEBlockobjects that represent the lines of detected text on a page. A LINEBlockobject is a parent for each word that makes up the line. Words are represented byBlockobjects of type WORD.DetectDocumentTextis a synchronous operation. To analyze documents asynchronously, use StartDocumentTextDetection.For more information, see Document Text Detection.
This is a convenience which creates an instance of the
DetectDocumentTextRequest.Builderavoiding the need to create one manually viaDetectDocumentTextRequest.builder()- Parameters:
detectDocumentTextRequest- AConsumerthat will call methods onDetectDocumentTextRequest.Builderto create a request.- Returns:
- Result of the DetectDocumentText operation returned by the service.
- See Also:
-
getAdapter
default GetAdapterResponse getAdapter(GetAdapterRequest getAdapterRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException Gets configuration information for an adapter specified by an AdapterId, returning information on AdapterName, Description, CreationTime, AutoUpdate status, and FeatureTypes.
- Parameters:
getAdapterRequest-- Returns:
- Result of the GetAdapter operation returned by the service.
- See Also:
-
getAdapter
default GetAdapterResponse getAdapter(Consumer<GetAdapterRequest.Builder> getAdapterRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException Gets configuration information for an adapter specified by an AdapterId, returning information on AdapterName, Description, CreationTime, AutoUpdate status, and FeatureTypes.
This is a convenience which creates an instance of the
GetAdapterRequest.Builderavoiding the need to create one manually viaGetAdapterRequest.builder()- Parameters:
getAdapterRequest- AConsumerthat will call methods onGetAdapterRequest.Builderto create a request.- Returns:
- Result of the GetAdapter operation returned by the service.
- See Also:
-
getAdapterVersion
default GetAdapterVersionResponse getAdapterVersion(GetAdapterVersionRequest getAdapterVersionRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException Gets configuration information for the specified adapter version, including: AdapterId, AdapterVersion, FeatureTypes, Status, StatusMessage, DatasetConfig, KMSKeyId, OutputConfig, Tags and EvaluationMetrics.
- Parameters:
getAdapterVersionRequest-- Returns:
- Result of the GetAdapterVersion operation returned by the service.
- See Also:
-
getAdapterVersion
default GetAdapterVersionResponse getAdapterVersion(Consumer<GetAdapterVersionRequest.Builder> getAdapterVersionRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException Gets configuration information for the specified adapter version, including: AdapterId, AdapterVersion, FeatureTypes, Status, StatusMessage, DatasetConfig, KMSKeyId, OutputConfig, Tags and EvaluationMetrics.
This is a convenience which creates an instance of the
GetAdapterVersionRequest.Builderavoiding the need to create one manually viaGetAdapterVersionRequest.builder()- Parameters:
getAdapterVersionRequest- AConsumerthat will call methods onGetAdapterVersionRequest.Builderto create a request.- Returns:
- Result of the GetAdapterVersion operation returned by the service.
- See Also:
-
getDocumentAnalysis
default GetDocumentAnalysisResponse getDocumentAnalysis(GetDocumentAnalysisRequest getDocumentAnalysisRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InvalidJobIdException, InternalServerErrorException, ThrottlingException, InvalidS3ObjectException, InvalidKmsKeyException, AwsServiceException, SdkClientException, TextractException Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.
You start asynchronous text analysis by calling StartDocumentAnalysis, 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 toStartDocumentAnalysis. To get the results of the text-detection operation, first check that the status value published to the Amazon SNS topic isSUCCEEDED. If so, callGetDocumentAnalysis, and pass the job identifier (JobId) from the initial call toStartDocumentAnalysis.GetDocumentAnalysisreturns an array of Block objects. The following types of information are returned:-
Form data (key-value pairs). The related information is returned in two Block objects, each of type
KEY_VALUE_SET: a KEYBlockobject and a VALUEBlockobject. For example, Name: Ana Silva Carolina contains a key and value. Name: is the key. Ana Silva Carolina is the value. -
Table and table cell data. A TABLE
Blockobject contains information about a detected table. A CELLBlockobject is returned for each cell in a table. -
Lines and words of text. A LINE
Blockobject contains one or more WORDBlockobjects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value of theStartDocumentAnalysisFeatureTypesinput parameter). -
Query. A QUERY Block object contains the query text, alias and link to the associated Query results block object.
-
Query Results. A QUERY_RESULT Block object contains the answer to the query and an ID that connects it to the query asked. This Block also contains a confidence score.
While processing a document with queries, look out for
INVALID_REQUEST_PARAMETERSoutput. This indicates that either the per page query limit has been exceeded or that the operation is trying to query a page in the document which doesn’t exist.Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT
Blockobject contains information about a selection element, including the selection status.Use the
MaxResultsparameter to limit the number of blocks that are returned. If there are more results than specified inMaxResults, the value ofNextTokenin the operation response contains a pagination token for getting the next set of results. To get the next page of results, callGetDocumentAnalysis, and populate theNextTokenrequest parameter with the token value that's returned from the previous call toGetDocumentAnalysis.For more information, see Document Text Analysis.
- Parameters:
getDocumentAnalysisRequest-- Returns:
- Result of the GetDocumentAnalysis operation returned by the service.
- See Also:
-
-
getDocumentAnalysis
default GetDocumentAnalysisResponse getDocumentAnalysis(Consumer<GetDocumentAnalysisRequest.Builder> getDocumentAnalysisRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InvalidJobIdException, InternalServerErrorException, ThrottlingException, InvalidS3ObjectException, InvalidKmsKeyException, AwsServiceException, SdkClientException, TextractException Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.
You start asynchronous text analysis by calling StartDocumentAnalysis, 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 toStartDocumentAnalysis. To get the results of the text-detection operation, first check that the status value published to the Amazon SNS topic isSUCCEEDED. If so, callGetDocumentAnalysis, and pass the job identifier (JobId) from the initial call toStartDocumentAnalysis.GetDocumentAnalysisreturns an array of Block objects. The following types of information are returned:-
Form data (key-value pairs). The related information is returned in two Block objects, each of type
KEY_VALUE_SET: a KEYBlockobject and a VALUEBlockobject. For example, Name: Ana Silva Carolina contains a key and value. Name: is the key. Ana Silva Carolina is the value. -
Table and table cell data. A TABLE
Blockobject contains information about a detected table. A CELLBlockobject is returned for each cell in a table. -
Lines and words of text. A LINE
Blockobject contains one or more WORDBlockobjects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value of theStartDocumentAnalysisFeatureTypesinput parameter). -
Query. A QUERY Block object contains the query text, alias and link to the associated Query results block object.
-
Query Results. A QUERY_RESULT Block object contains the answer to the query and an ID that connects it to the query asked. This Block also contains a confidence score.
While processing a document with queries, look out for
INVALID_REQUEST_PARAMETERSoutput. This indicates that either the per page query limit has been exceeded or that the operation is trying to query a page in the document which doesn’t exist.Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT
Blockobject contains information about a selection element, including the selection status.Use the
MaxResultsparameter to limit the number of blocks that are returned. If there are more results than specified inMaxResults, the value ofNextTokenin the operation response contains a pagination token for getting the next set of results. To get the next page of results, callGetDocumentAnalysis, and populate theNextTokenrequest parameter with the token value that's returned from the previous call toGetDocumentAnalysis.For more information, see Document Text Analysis.
This is a convenience which creates an instance of the
GetDocumentAnalysisRequest.Builderavoiding the need to create one manually viaGetDocumentAnalysisRequest.builder()- Parameters:
getDocumentAnalysisRequest- AConsumerthat will call methods onGetDocumentAnalysisRequest.Builderto create a request.- Returns:
- Result of the GetDocumentAnalysis operation returned by the service.
- See Also:
-
-
getDocumentTextDetection
default GetDocumentTextDetectionResponse getDocumentTextDetection(GetDocumentTextDetectionRequest getDocumentTextDetectionRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InvalidJobIdException, InternalServerErrorException, ThrottlingException, InvalidS3ObjectException, InvalidKmsKeyException, AwsServiceException, SdkClientException, TextractException Gets the results for an Amazon Textract asynchronous operation that detects text in a document. Amazon Textract can detect lines of text and the words that make up a line of text.
You start asynchronous text detection by calling StartDocumentTextDetection, which returns a job identifier (
JobId). When the text detection operation finishes, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call toStartDocumentTextDetection. To get the results of the text-detection operation, first check that the status value published to the Amazon SNS topic isSUCCEEDED. If so, callGetDocumentTextDetection, and pass the job identifier (JobId) from the initial call toStartDocumentTextDetection.GetDocumentTextDetectionreturns an array of Block objects.Each document page has as an associated
Blockof type PAGE. Each PAGEBlockobject is the parent of LINEBlockobjects that represent the lines of detected text on a page. A LINEBlockobject is a parent for each word that makes up the line. Words are represented byBlockobjects of type WORD.Use the MaxResults parameter to limit the number of blocks that are returned. If there are more results than specified in
MaxResults, the value ofNextTokenin the operation response contains a pagination token for getting the next set of results. To get the next page of results, callGetDocumentTextDetection, and populate theNextTokenrequest parameter with the token value that's returned from the previous call toGetDocumentTextDetection.For more information, see Document Text Detection.
- Parameters:
getDocumentTextDetectionRequest-- Returns:
- Result of the GetDocumentTextDetection operation returned by the service.
- See Also:
-
getDocumentTextDetection
default GetDocumentTextDetectionResponse getDocumentTextDetection(Consumer<GetDocumentTextDetectionRequest.Builder> getDocumentTextDetectionRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InvalidJobIdException, InternalServerErrorException, ThrottlingException, InvalidS3ObjectException, InvalidKmsKeyException, AwsServiceException, SdkClientException, TextractException Gets the results for an Amazon Textract asynchronous operation that detects text in a document. Amazon Textract can detect lines of text and the words that make up a line of text.
You start asynchronous text detection by calling StartDocumentTextDetection, which returns a job identifier (
JobId). When the text detection operation finishes, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call toStartDocumentTextDetection. To get the results of the text-detection operation, first check that the status value published to the Amazon SNS topic isSUCCEEDED. If so, callGetDocumentTextDetection, and pass the job identifier (JobId) from the initial call toStartDocumentTextDetection.GetDocumentTextDetectionreturns an array of Block objects.Each document page has as an associated
Blockof type PAGE. Each PAGEBlockobject is the parent of LINEBlockobjects that represent the lines of detected text on a page. A LINEBlockobject is a parent for each word that makes up the line. Words are represented byBlockobjects of type WORD.Use the MaxResults parameter to limit the number of blocks that are returned. If there are more results than specified in
MaxResults, the value ofNextTokenin the operation response contains a pagination token for getting the next set of results. To get the next page of results, callGetDocumentTextDetection, and populate theNextTokenrequest parameter with the token value that's returned from the previous call toGetDocumentTextDetection.For more information, see Document Text Detection.
This is a convenience which creates an instance of the
GetDocumentTextDetectionRequest.Builderavoiding the need to create one manually viaGetDocumentTextDetectionRequest.builder()- Parameters:
getDocumentTextDetectionRequest- AConsumerthat will call methods onGetDocumentTextDetectionRequest.Builderto create a request.- Returns:
- Result of the GetDocumentTextDetection operation returned by the service.
- See Also:
-
getExpenseAnalysis
default GetExpenseAnalysisResponse getExpenseAnalysis(GetExpenseAnalysisRequest getExpenseAnalysisRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InvalidJobIdException, InternalServerErrorException, ThrottlingException, InvalidS3ObjectException, InvalidKmsKeyException, AwsServiceException, SdkClientException, TextractException Gets 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 toStartExpenseAnalysis. To get the results of the invoice/receipt analysis operation, first ensure that the status value published to the Amazon SNS topic isSUCCEEDED. If so, callGetExpenseAnalysis, and pass the job identifier (JobId) from the initial call toStartExpenseAnalysis.Use the MaxResults parameter to limit the number of blocks that are returned. If there are more results than specified in
MaxResults, the value ofNextTokenin the operation response contains a pagination token for getting the next set of results. To get the next page of results, callGetExpenseAnalysis, and populate theNextTokenrequest parameter with the token value that's returned from the previous call toGetExpenseAnalysis.For more information, see Analyzing Invoices and Receipts.
- Parameters:
getExpenseAnalysisRequest-- Returns:
- Result of the GetExpenseAnalysis operation returned by the service.
- See Also:
-
getExpenseAnalysis
default GetExpenseAnalysisResponse getExpenseAnalysis(Consumer<GetExpenseAnalysisRequest.Builder> getExpenseAnalysisRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InvalidJobIdException, InternalServerErrorException, ThrottlingException, InvalidS3ObjectException, InvalidKmsKeyException, AwsServiceException, SdkClientException, TextractException Gets 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 toStartExpenseAnalysis. To get the results of the invoice/receipt analysis operation, first ensure that the status value published to the Amazon SNS topic isSUCCEEDED. If so, callGetExpenseAnalysis, and pass the job identifier (JobId) from the initial call toStartExpenseAnalysis.Use the MaxResults parameter to limit the number of blocks that are returned. If there are more results than specified in
MaxResults, the value ofNextTokenin the operation response contains a pagination token for getting the next set of results. To get the next page of results, callGetExpenseAnalysis, and populate theNextTokenrequest parameter with the token value that's returned from the previous call toGetExpenseAnalysis.For more information, see Analyzing Invoices and Receipts.
This is a convenience which creates an instance of the
GetExpenseAnalysisRequest.Builderavoiding the need to create one manually viaGetExpenseAnalysisRequest.builder()- Parameters:
getExpenseAnalysisRequest- AConsumerthat will call methods onGetExpenseAnalysisRequest.Builderto create a request.- Returns:
- Result of the GetExpenseAnalysis operation returned by the service.
- See Also:
-
getLendingAnalysis
default GetLendingAnalysisResponse getLendingAnalysis(GetLendingAnalysisRequest getLendingAnalysisRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InvalidJobIdException, InternalServerErrorException, ThrottlingException, InvalidS3ObjectException, InvalidKmsKeyException, AwsServiceException, SdkClientException, TextractException 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 toStartLendingAnalysis.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 toStartLendingAnalysis.- Parameters:
getLendingAnalysisRequest-- Returns:
- Result of the GetLendingAnalysis operation returned by the service.
- See Also:
-
getLendingAnalysis
default GetLendingAnalysisResponse getLendingAnalysis(Consumer<GetLendingAnalysisRequest.Builder> getLendingAnalysisRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InvalidJobIdException, InternalServerErrorException, ThrottlingException, InvalidS3ObjectException, InvalidKmsKeyException, AwsServiceException, SdkClientException, TextractException 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 toStartLendingAnalysis.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 toStartLendingAnalysis.
This is a convenience which creates an instance of the
GetLendingAnalysisRequest.Builderavoiding the need to create one manually viaGetLendingAnalysisRequest.builder()- Parameters:
getLendingAnalysisRequest- AConsumerthat will call methods onGetLendingAnalysisRequest.Builderto create a request.- Returns:
- Result of the GetLendingAnalysis operation returned by the service.
- See Also:
-
getLendingAnalysisSummary
default GetLendingAnalysisSummaryResponse getLendingAnalysisSummary(GetLendingAnalysisSummaryRequest getLendingAnalysisSummaryRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InvalidJobIdException, InternalServerErrorException, ThrottlingException, InvalidS3ObjectException, InvalidKmsKeyException, AwsServiceException, SdkClientException, TextractException Gets summarized results for the
StartLendingAnalysisoperation, which analyzes text in a lending document. The returned summary consists of information about documents grouped together by a common document type. Information like detected signatures, page numbers, and split documents is returned with respect to the type of grouped 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 toStartLendingAnalysis.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
GetLendingAnalysisSummary, and pass the job identifier (JobId) from the initial call toStartLendingAnalysis.- Parameters:
getLendingAnalysisSummaryRequest-- Returns:
- Result of the GetLendingAnalysisSummary operation returned by the service.
- See Also:
-
getLendingAnalysisSummary
default GetLendingAnalysisSummaryResponse getLendingAnalysisSummary(Consumer<GetLendingAnalysisSummaryRequest.Builder> getLendingAnalysisSummaryRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InvalidJobIdException, InternalServerErrorException, ThrottlingException, InvalidS3ObjectException, InvalidKmsKeyException, AwsServiceException, SdkClientException, TextractException Gets summarized results for the
StartLendingAnalysisoperation, which analyzes text in a lending document. The returned summary consists of information about documents grouped together by a common document type. Information like detected signatures, page numbers, and split documents is returned with respect to the type of grouped 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 toStartLendingAnalysis.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
GetLendingAnalysisSummary, and pass the job identifier (JobId) from the initial call toStartLendingAnalysis.
This is a convenience which creates an instance of the
GetLendingAnalysisSummaryRequest.Builderavoiding the need to create one manually viaGetLendingAnalysisSummaryRequest.builder()- Parameters:
getLendingAnalysisSummaryRequest- AConsumerthat will call methods onGetLendingAnalysisSummaryRequest.Builderto create a request.- Returns:
- Result of the GetLendingAnalysisSummary operation returned by the service.
- See Also:
-
listAdapterVersions
default ListAdapterVersionsResponse listAdapterVersions(ListAdapterVersionsRequest listAdapterVersionsRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException List all version of an adapter that meet the specified filtration criteria.
- Parameters:
listAdapterVersionsRequest-- Returns:
- Result of the ListAdapterVersions operation returned by the service.
- See Also:
-
listAdapterVersions
default ListAdapterVersionsResponse listAdapterVersions(Consumer<ListAdapterVersionsRequest.Builder> listAdapterVersionsRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException List all version of an adapter that meet the specified filtration criteria.
This is a convenience which creates an instance of the
ListAdapterVersionsRequest.Builderavoiding the need to create one manually viaListAdapterVersionsRequest.builder()- Parameters:
listAdapterVersionsRequest- AConsumerthat will call methods onListAdapterVersionsRequest.Builderto create a request.- Returns:
- Result of the ListAdapterVersions operation returned by the service.
- See Also:
-
listAdapterVersionsPaginator
default ListAdapterVersionsIterable listAdapterVersionsPaginator(ListAdapterVersionsRequest listAdapterVersionsRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException This is a variant of
listAdapterVersions(software.amazon.awssdk.services.textract.model.ListAdapterVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.textract.paginators.ListAdapterVersionsIterable responses = client.listAdapterVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.textract.paginators.ListAdapterVersionsIterable responses = client .listAdapterVersionsPaginator(request); for (software.amazon.awssdk.services.textract.model.ListAdapterVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.textract.paginators.ListAdapterVersionsIterable responses = client.listAdapterVersionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAdapterVersions(software.amazon.awssdk.services.textract.model.ListAdapterVersionsRequest)operation.- Parameters:
listAdapterVersionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAdapterVersionsPaginator
default ListAdapterVersionsIterable listAdapterVersionsPaginator(Consumer<ListAdapterVersionsRequest.Builder> listAdapterVersionsRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException This is a variant of
listAdapterVersions(software.amazon.awssdk.services.textract.model.ListAdapterVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.textract.paginators.ListAdapterVersionsIterable responses = client.listAdapterVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.textract.paginators.ListAdapterVersionsIterable responses = client .listAdapterVersionsPaginator(request); for (software.amazon.awssdk.services.textract.model.ListAdapterVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.textract.paginators.ListAdapterVersionsIterable responses = client.listAdapterVersionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAdapterVersions(software.amazon.awssdk.services.textract.model.ListAdapterVersionsRequest)operation.
This is a convenience which creates an instance of the
ListAdapterVersionsRequest.Builderavoiding the need to create one manually viaListAdapterVersionsRequest.builder()- Parameters:
listAdapterVersionsRequest- AConsumerthat will call methods onListAdapterVersionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAdapters
default ListAdaptersResponse listAdapters(ListAdaptersRequest listAdaptersRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, TextractException Lists all adapters that match the specified filtration criteria.
- Parameters:
listAdaptersRequest-- Returns:
- Result of the ListAdapters operation returned by the service.
- See Also:
-
listAdapters
default ListAdaptersResponse listAdapters(Consumer<ListAdaptersRequest.Builder> listAdaptersRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, TextractException Lists all adapters that match the specified filtration criteria.
This is a convenience which creates an instance of the
ListAdaptersRequest.Builderavoiding the need to create one manually viaListAdaptersRequest.builder()- Parameters:
listAdaptersRequest- AConsumerthat will call methods onListAdaptersRequest.Builderto create a request.- Returns:
- Result of the ListAdapters operation returned by the service.
- See Also:
-
listAdaptersPaginator
default ListAdaptersIterable listAdaptersPaginator(ListAdaptersRequest listAdaptersRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, TextractException This is a variant of
listAdapters(software.amazon.awssdk.services.textract.model.ListAdaptersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.textract.paginators.ListAdaptersIterable responses = client.listAdaptersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.textract.paginators.ListAdaptersIterable responses = client.listAdaptersPaginator(request); for (software.amazon.awssdk.services.textract.model.ListAdaptersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.textract.paginators.ListAdaptersIterable responses = client.listAdaptersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAdapters(software.amazon.awssdk.services.textract.model.ListAdaptersRequest)operation.- Parameters:
listAdaptersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAdaptersPaginator
default ListAdaptersIterable listAdaptersPaginator(Consumer<ListAdaptersRequest.Builder> listAdaptersRequest) throws InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, TextractException This is a variant of
listAdapters(software.amazon.awssdk.services.textract.model.ListAdaptersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.textract.paginators.ListAdaptersIterable responses = client.listAdaptersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.textract.paginators.ListAdaptersIterable responses = client.listAdaptersPaginator(request); for (software.amazon.awssdk.services.textract.model.ListAdaptersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.textract.paginators.ListAdaptersIterable responses = client.listAdaptersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAdapters(software.amazon.awssdk.services.textract.model.ListAdaptersRequest)operation.
This is a convenience which creates an instance of the
ListAdaptersRequest.Builderavoiding the need to create one manually viaListAdaptersRequest.builder()- Parameters:
listAdaptersRequest- AConsumerthat will call methods onListAdaptersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, TextractException Lists all tags for an Amazon Textract resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, TextractException Lists all tags for an Amazon Textract resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
startDocumentAnalysis
default StartDocumentAnalysisResponse startDocumentAnalysis(StartDocumentAnalysisRequest startDocumentAnalysisRequest) throws InvalidParameterException, InvalidS3ObjectException, InvalidKmsKeyException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, AwsServiceException, SdkClientException, TextractException Starts the asynchronous analysis of an input document for relationships between detected items such as key-value pairs, tables, and selection elements.
StartDocumentAnalysiscan analyze text in documents that are in JPEG, PNG, TIFF, and PDF format. The documents are stored in an Amazon S3 bucket. Use DocumentLocation to specify the bucket name and file name of the document.StartDocumentAnalysisreturns a job identifier (JobId) that you use to get the results of the operation. When text analysis is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that you specify inNotificationChannel. To get the results of the text analysis operation, first check that the status value published to the Amazon SNS topic isSUCCEEDED. If so, call GetDocumentAnalysis, and pass the job identifier (JobId) from the initial call toStartDocumentAnalysis.For more information, see Document Text Analysis.
- Parameters:
startDocumentAnalysisRequest-- Returns:
- Result of the StartDocumentAnalysis operation returned by the service.
- See Also:
-
startDocumentAnalysis
default StartDocumentAnalysisResponse startDocumentAnalysis(Consumer<StartDocumentAnalysisRequest.Builder> startDocumentAnalysisRequest) throws InvalidParameterException, InvalidS3ObjectException, InvalidKmsKeyException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, AwsServiceException, SdkClientException, TextractException Starts the asynchronous analysis of an input document for relationships between detected items such as key-value pairs, tables, and selection elements.
StartDocumentAnalysiscan analyze text in documents that are in JPEG, PNG, TIFF, and PDF format. The documents are stored in an Amazon S3 bucket. Use DocumentLocation to specify the bucket name and file name of the document.StartDocumentAnalysisreturns a job identifier (JobId) that you use to get the results of the operation. When text analysis is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that you specify inNotificationChannel. To get the results of the text analysis operation, first check that the status value published to the Amazon SNS topic isSUCCEEDED. If so, call GetDocumentAnalysis, and pass the job identifier (JobId) from the initial call toStartDocumentAnalysis.For more information, see Document Text Analysis.
This is a convenience which creates an instance of the
StartDocumentAnalysisRequest.Builderavoiding the need to create one manually viaStartDocumentAnalysisRequest.builder()- Parameters:
startDocumentAnalysisRequest- AConsumerthat will call methods onStartDocumentAnalysisRequest.Builderto create a request.- Returns:
- Result of the StartDocumentAnalysis operation returned by the service.
- See Also:
-
startDocumentTextDetection
default StartDocumentTextDetectionResponse startDocumentTextDetection(StartDocumentTextDetectionRequest startDocumentTextDetectionRequest) throws InvalidParameterException, InvalidS3ObjectException, InvalidKmsKeyException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, AwsServiceException, SdkClientException, TextractException Starts the asynchronous detection of text in a document. Amazon Textract can detect lines of text and the words that make up a line of text.
StartDocumentTextDetectioncan analyze text in documents that are in JPEG, PNG, TIFF, and PDF format. The documents are stored in an Amazon S3 bucket. Use DocumentLocation to specify the bucket name and file name of the document.StartDocumentTextDetectionreturns a job identifier (JobId) that you use to get the results of the operation. When text detection is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that you specify inNotificationChannel. To get the results of the text detection operation, first check that the status value published to the Amazon SNS topic isSUCCEEDED. If so, call GetDocumentTextDetection, and pass the job identifier (JobId) from the initial call toStartDocumentTextDetection.For more information, see Document Text Detection.
- Parameters:
startDocumentTextDetectionRequest-- Returns:
- Result of the StartDocumentTextDetection operation returned by the service.
- See Also:
-
startDocumentTextDetection
default StartDocumentTextDetectionResponse startDocumentTextDetection(Consumer<StartDocumentTextDetectionRequest.Builder> startDocumentTextDetectionRequest) throws InvalidParameterException, InvalidS3ObjectException, InvalidKmsKeyException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, AwsServiceException, SdkClientException, TextractException Starts the asynchronous detection of text in a document. Amazon Textract can detect lines of text and the words that make up a line of text.
StartDocumentTextDetectioncan analyze text in documents that are in JPEG, PNG, TIFF, and PDF format. The documents are stored in an Amazon S3 bucket. Use DocumentLocation to specify the bucket name and file name of the document.StartDocumentTextDetectionreturns a job identifier (JobId) that you use to get the results of the operation. When text detection is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that you specify inNotificationChannel. To get the results of the text detection operation, first check that the status value published to the Amazon SNS topic isSUCCEEDED. If so, call GetDocumentTextDetection, and pass the job identifier (JobId) from the initial call toStartDocumentTextDetection.For more information, see Document Text Detection.
This is a convenience which creates an instance of the
StartDocumentTextDetectionRequest.Builderavoiding the need to create one manually viaStartDocumentTextDetectionRequest.builder()- Parameters:
startDocumentTextDetectionRequest- AConsumerthat will call methods onStartDocumentTextDetectionRequest.Builderto create a request.- Returns:
- Result of the StartDocumentTextDetection operation returned by the service.
- See Also:
-
startExpenseAnalysis
default StartExpenseAnalysisResponse startExpenseAnalysis(StartExpenseAnalysisRequest startExpenseAnalysisRequest) throws InvalidParameterException, InvalidS3ObjectException, InvalidKmsKeyException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, AwsServiceException, SdkClientException, TextractException Starts the asynchronous analysis of invoices or receipts for data like contact information, items purchased, and vendor names.
StartExpenseAnalysiscan 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.StartExpenseAnalysisreturns a job identifier (JobId) that you will provide toGetExpenseAnalysisto 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 theNotificationChannel. To obtain the results of the invoice and receipt analysis operation, ensure that the status value published to the Amazon SNS topic isSUCCEEDED. If so, call GetExpenseAnalysis, and pass the job identifier (JobId) that was returned by your call toStartExpenseAnalysis.For more information, see Analyzing Invoices and Receipts.
- Parameters:
startExpenseAnalysisRequest-- Returns:
- Result of the StartExpenseAnalysis operation returned by the service.
- See Also:
-
startExpenseAnalysis
default StartExpenseAnalysisResponse startExpenseAnalysis(Consumer<StartExpenseAnalysisRequest.Builder> startExpenseAnalysisRequest) throws InvalidParameterException, InvalidS3ObjectException, InvalidKmsKeyException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, AwsServiceException, SdkClientException, TextractException Starts the asynchronous analysis of invoices or receipts for data like contact information, items purchased, and vendor names.
StartExpenseAnalysiscan 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.StartExpenseAnalysisreturns a job identifier (JobId) that you will provide toGetExpenseAnalysisto 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 theNotificationChannel. To obtain the results of the invoice and receipt analysis operation, ensure that the status value published to the Amazon SNS topic isSUCCEEDED. If so, call GetExpenseAnalysis, and pass the job identifier (JobId) that was returned by your call toStartExpenseAnalysis.For more information, see Analyzing Invoices and Receipts.
This is a convenience which creates an instance of the
StartExpenseAnalysisRequest.Builderavoiding the need to create one manually viaStartExpenseAnalysisRequest.builder()- Parameters:
startExpenseAnalysisRequest- AConsumerthat will call methods onStartExpenseAnalysisRequest.Builderto create a request.- Returns:
- Result of the StartExpenseAnalysis operation returned by the service.
- See Also:
-
startLendingAnalysis
default StartLendingAnalysisResponse startLendingAnalysis(StartLendingAnalysisRequest startLendingAnalysisRequest) throws InvalidParameterException, InvalidS3ObjectException, InvalidKmsKeyException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, AwsServiceException, SdkClientException, TextractException Starts the classification and analysis of an input document.
StartLendingAnalysisinitiates the classification and analysis of a packet of lending documents.StartLendingAnalysisoperates on a document file located in an Amazon S3 bucket.StartLendingAnalysiscan analyze text in documents that are in one of the following formats: JPEG, PNG, TIFF, PDF. UseDocumentLocationto specify the bucket name and the file name of the document.StartLendingAnalysisreturns a job identifier (JobId) that you use to get the results of the operation. When the text analysis is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that you specify inNotificationChannel. To get the results of the text analysis operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If the status is SUCCEEDED you can call eitherGetLendingAnalysisorGetLendingAnalysisSummaryand provide theJobIdto obtain the results of the analysis.If using
OutputConfigto specify an Amazon S3 bucket, the output will be contained within the specified prefix in a directory labeled with the job-id. In the directory there are 3 sub-directories:-
detailedResponse (contains the GetLendingAnalysis response)
-
summaryResponse (for the GetLendingAnalysisSummary response)
-
splitDocuments (documents split across logical boundaries)
- Parameters:
startLendingAnalysisRequest-- Returns:
- Result of the StartLendingAnalysis operation returned by the service.
- See Also:
-
-
startLendingAnalysis
default StartLendingAnalysisResponse startLendingAnalysis(Consumer<StartLendingAnalysisRequest.Builder> startLendingAnalysisRequest) throws InvalidParameterException, InvalidS3ObjectException, InvalidKmsKeyException, UnsupportedDocumentException, DocumentTooLargeException, BadDocumentException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, IdempotentParameterMismatchException, ThrottlingException, LimitExceededException, AwsServiceException, SdkClientException, TextractException Starts the classification and analysis of an input document.
StartLendingAnalysisinitiates the classification and analysis of a packet of lending documents.StartLendingAnalysisoperates on a document file located in an Amazon S3 bucket.StartLendingAnalysiscan analyze text in documents that are in one of the following formats: JPEG, PNG, TIFF, PDF. UseDocumentLocationto specify the bucket name and the file name of the document.StartLendingAnalysisreturns a job identifier (JobId) that you use to get the results of the operation. When the text analysis is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that you specify inNotificationChannel. To get the results of the text analysis operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If the status is SUCCEEDED you can call eitherGetLendingAnalysisorGetLendingAnalysisSummaryand provide theJobIdto obtain the results of the analysis.If using
OutputConfigto specify an Amazon S3 bucket, the output will be contained within the specified prefix in a directory labeled with the job-id. In the directory there are 3 sub-directories:-
detailedResponse (contains the GetLendingAnalysis response)
-
summaryResponse (for the GetLendingAnalysisSummary response)
-
splitDocuments (documents split across logical boundaries)
This is a convenience which creates an instance of the
StartLendingAnalysisRequest.Builderavoiding the need to create one manually viaStartLendingAnalysisRequest.builder()- Parameters:
startLendingAnalysisRequest- AConsumerthat will call methods onStartLendingAnalysisRequest.Builderto create a request.- Returns:
- Result of the StartLendingAnalysis operation returned by the service.
- See Also:
-
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, InvalidParameterException, ServiceQuotaExceededException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, TextractException Adds one or more tags to the specified resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, InvalidParameterException, ServiceQuotaExceededException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, TextractException Adds one or more tags to the specified resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, TextractException Removes any tags with the specified keys from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, InvalidParameterException, AccessDeniedException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, TextractException Removes any tags with the specified keys from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateAdapter
default UpdateAdapterResponse updateAdapter(UpdateAdapterRequest updateAdapterRequest) throws InvalidParameterException, AccessDeniedException, ConflictException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException Update the configuration for an adapter. FeatureTypes configurations cannot be updated. At least one new parameter must be specified as an argument.
- Parameters:
updateAdapterRequest-- Returns:
- Result of the UpdateAdapter operation returned by the service.
- See Also:
-
updateAdapter
default UpdateAdapterResponse updateAdapter(Consumer<UpdateAdapterRequest.Builder> updateAdapterRequest) throws InvalidParameterException, AccessDeniedException, ConflictException, ProvisionedThroughputExceededException, InternalServerErrorException, ThrottlingException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, TextractException Update the configuration for an adapter. FeatureTypes configurations cannot be updated. At least one new parameter must be specified as an argument.
This is a convenience which creates an instance of the
UpdateAdapterRequest.Builderavoiding the need to create one manually viaUpdateAdapterRequest.builder()- Parameters:
updateAdapterRequest- AConsumerthat will call methods onUpdateAdapterRequest.Builderto create a request.- Returns:
- Result of the UpdateAdapter operation returned by the service.
- See Also:
-
create
Create aTextractClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aTextractClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-