Skip to main content

adapters

Creates, updates, deletes, gets or lists an adapters resource.

Overview

Nameadapters
TypeResource
Idaws.textract.adapters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
adapter_idstringA string identifying the adapter that information has been retrieved for.
adapter_namestringThe name of the requested adapter. (pattern: <code>[a-zA-Z0-9-_]+</code>)
auto_updatestringBinary value indicating if the adapter is being automatically updated or not. (ENABLED, DISABLED)
creation_timestring (date-time)The date and time the requested adapter was created at.
descriptionstringThe description for the requested adapter. (pattern: <code>^[a-zA-Z0-9\s!"#$%'&()*+,-./:;=?@&#91;\&#93;^_`&#123;|&#125;~><]+$</code>)
feature_typesarrayList of the targeted feature types for the requested adapter.
tagsobjectA set of tags (key-value pairs) associated with the adapter that has been retrieved.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_adapterselectregionGets configuration information for an adapter specified by an AdapterId, returning information on AdapterName, Description, CreationTime, AutoUpdate status, and FeatureTypes.
list_adaptersselectregionLists all adapters that match the specified filtration criteria.
create_adapterinsertregion, AdapterName, FeatureTypesCreates 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.
update_adapterupdateregion, AdapterIdUpdate the configuration for an adapter. FeatureTypes configurations cannot be updated. At least one new parameter must be specified as an argument.
delete_adapterdeleteregionDeletes an Amazon Textract adapter. Takes an AdapterId and deletes the adapter specified by the ID.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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

SELECT
adapter_id,
adapter_name,
auto_update,
creation_time,
description,
feature_types,
tags
FROM aws.textract.adapters
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.textract.adapters (
AdapterName,
ClientRequestToken,
Description,
FeatureTypes,
AutoUpdate,
Tags,
region
)
SELECT
'{{ AdapterName }}' /* required */,
'{{ ClientRequestToken }}',
'{{ Description }}',
'{{ FeatureTypes }}' /* required */,
'{{ AutoUpdate }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
adapter_id
;

UPDATE examples

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

UPDATE aws.textract.adapters
SET
AdapterId = '{{ AdapterId }}',
Description = '{{ Description }}',
AdapterName = '{{ AdapterName }}',
AutoUpdate = '{{ AutoUpdate }}'
WHERE
region = '{{ region }}' --required
AND AdapterId = '{{ AdapterId }}' --required
RETURNING
adapter_id,
adapter_name,
auto_update,
creation_time,
description,
feature_types;

DELETE examples

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

DELETE FROM aws.textract.adapters
WHERE region = '{{ region }}' --required
;