TextractClient

Amazon Textract detects and analyzes text in documents and converts it into machine-readable text. This is the API reference documentation for Amazon Textract.

Properties

Link copied to clipboard
abstract override val config: TextractClient.Config

TextractClient's configuration

Functions

Link copied to clipboard

Analyzes an input document for relationships between detected items.

Link copied to clipboard

AnalyzeExpense synchronously analyzes an input document for financially related relationships between text.

Link copied to clipboard
abstract suspend fun analyzeId(input: AnalyzeIdRequest): AnalyzeIdResponse

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, AnalyzeID doesn't return any Geometry data.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Deletes an Amazon Textract adapter. Takes an AdapterId and deletes the adapter specified by the ID.

Link copied to clipboard

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.

Link copied to clipboard

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. DetectDocumentText returns the detected text in an array of Block objects.

Link copied to clipboard
abstract suspend fun getAdapter(input: GetAdapterRequest): GetAdapterResponse

Gets configuration information for an adapter specified by an AdapterId, returning information on AdapterName, Description, CreationTime, AutoUpdate status, and FeatureTypes.

Link copied to clipboard

Gets configuration information for the specified adapter version, including: AdapterId, AdapterVersion, FeatureTypes, Status, StatusMessage, DatasetConfig, KMSKeyId, OutputConfig, Tags and EvaluationMetrics.

Link copied to clipboard

Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Gets the results for an Amazon Textract asynchronous operation that analyzes text in a lending document.

Link copied to clipboard

Gets summarized results for the StartLendingAnalysis operation, 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.

Link copied to clipboard
abstract suspend fun listAdapters(input: ListAdaptersRequest = ListAdaptersRequest { }): ListAdaptersResponse

Lists all adapters that match the specified filtration criteria.

Link copied to clipboard
abstract suspend fun listAdapterVersions(input: ListAdapterVersionsRequest = ListAdapterVersionsRequest { }): ListAdapterVersionsResponse

List all version of an adapter that meet the specified filtration criteria.

Link copied to clipboard

Lists all tags for an Amazon Textract resource.

Link copied to clipboard

Starts the asynchronous analysis of an input document for relationships between detected items such as key-value pairs, tables, and selection elements.

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

Starts the classification and analysis of an input document. StartLendingAnalysis initiates the classification and analysis of a packet of lending documents. StartLendingAnalysis operates on a document file located in an Amazon S3 bucket.

Link copied to clipboard
abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

Adds one or more tags to the specified resource.

Link copied to clipboard

Removes any tags with the specified keys from the specified resource.

Link copied to clipboard

Update the configuration for an adapter. FeatureTypes configurations cannot be updated. At least one new parameter must be specified as an argument.

Inherited functions

Link copied to clipboard

Analyzes an input document for relationships between detected items.

Link copied to clipboard

AnalyzeExpense synchronously analyzes an input document for financially related relationships between text.

Link copied to clipboard
inline suspend fun TextractClient.analyzeId(crossinline block: AnalyzeIdRequest.Builder.() -> Unit): AnalyzeIdResponse

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, AnalyzeID doesn't return any Geometry data.

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Deletes an Amazon Textract adapter. Takes an AdapterId and deletes the adapter specified by the ID.

Link copied to clipboard

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.

Link copied to clipboard

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. DetectDocumentText returns the detected text in an array of Block objects.

Link copied to clipboard
inline suspend fun TextractClient.getAdapter(crossinline block: GetAdapterRequest.Builder.() -> Unit): GetAdapterResponse

Gets configuration information for an adapter specified by an AdapterId, returning information on AdapterName, Description, CreationTime, AutoUpdate status, and FeatureTypes.

Link copied to clipboard

Gets configuration information for the specified adapter version, including: AdapterId, AdapterVersion, FeatureTypes, Status, StatusMessage, DatasetConfig, KMSKeyId, OutputConfig, Tags and EvaluationMetrics.

Link copied to clipboard

Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Gets the results for an Amazon Textract asynchronous operation that analyzes text in a lending document.

Link copied to clipboard

Gets summarized results for the StartLendingAnalysis operation, 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.

Link copied to clipboard

Lists all adapters that match the specified filtration criteria.

Link copied to clipboard
Link copied to clipboard

List all version of an adapter that meet the specified filtration criteria.

Link copied to clipboard

Lists all tags for an Amazon Textract resource.

Link copied to clipboard

Starts the asynchronous analysis of an input document for relationships between detected items such as key-value pairs, tables, and selection elements.

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

Starts the classification and analysis of an input document. StartLendingAnalysis initiates the classification and analysis of a packet of lending documents. StartLendingAnalysis operates on a document file located in an Amazon S3 bucket.

Link copied to clipboard
inline suspend fun TextractClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse

Adds one or more tags to the specified resource.

Link copied to clipboard

Removes any tags with the specified keys from the specified resource.

Link copied to clipboard

Update the configuration for an adapter. FeatureTypes configurations cannot be updated. At least one new parameter must be specified as an argument.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.