Skip to main content

extraction_definitions

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

Overview

Nameextraction_definitions
TypeResource
Idaws.connect.extraction_definitions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_timestring (date-time)The timestamp when the extraction definition was created.
displayobjectThe display configuration for an extraction definition.
extraction_configurationobjectThe extraction configuration that defines how data is extracted from customer interactions.
extraction_definition_arnstringThe Amazon Resource Name (ARN) of the extraction definition.
extraction_definition_idstringThe identifier of the extraction definition.
last_updated_bystringThe Amazon Resource Name (ARN) of the user who last updated the extraction definition.
last_updated_timestring (date-time)The timestamp when the extraction definition was last updated.
namestringThe name of the extraction definition.
tagsobjectThe tags used to organize, track, or control access for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_extraction_definitionselectinstance_id, extraction_definition_id, regionDescribes an extraction definition in the specified Connect Customer instance.
list_extraction_definitionsselectinstance_id, regionmaxResults, nextTokenLists extraction definitions in the specified Connect Customer instance.
create_extraction_definitioninsertinstance_id, region, ExtractionConfigurationCreates an extraction definition in the specified Connect Customer instance. An extraction definition specifies how structured data is extracted from customer interactions using generative AI, including the prompt hint that guides extraction and the behavior when a value cannot be found.
update_extraction_definitionupdateextraction_definition_id, instance_id, region, ExtractionConfigurationUpdates an extraction definition in the specified Connect Customer instance.
delete_extraction_definitiondeleteinstance_id, extraction_definition_id, regionDeletes an extraction definition from the specified Connect Customer instance.

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
extraction_definition_idstringThe identifier of the extraction definition to delete.
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per page. The default MaxResult size is 100.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Describes an extraction definition in the specified Connect Customer instance.

SELECT
created_time,
display,
extraction_configuration,
extraction_definition_arn,
extraction_definition_id,
last_updated_by,
last_updated_time,
name,
tags
FROM aws.connect.extraction_definitions
WHERE instance_id = '{{ instance_id }}' -- required
AND extraction_definition_id = '{{ extraction_definition_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an extraction definition in the specified Connect Customer instance. An extraction definition specifies how structured data is extracted from customer interactions using generative AI, including the prompt hint that guides extraction and the behavior when a value cannot be found.

INSERT INTO aws.connect.extraction_definitions (
ClientToken,
Name,
ExtractionConfiguration,
Display,
Tags,
instance_id,
region
)
SELECT
'{{ ClientToken }}',
'{{ Name }}',
'{{ ExtractionConfiguration }}' /* required */,
'{{ Display }}',
'{{ Tags }}',
'{{ instance_id }}',
'{{ region }}'
RETURNING
extraction_definition_arn,
extraction_definition_id
;

UPDATE examples

Updates an extraction definition in the specified Connect Customer instance.

UPDATE aws.connect.extraction_definitions
SET
ClientToken = '{{ ClientToken }}',
Name = '{{ Name }}',
ExtractionConfiguration = '{{ ExtractionConfiguration }}',
Display = '{{ Display }}'
WHERE
extraction_definition_id = '{{ extraction_definition_id }}' --required
AND instance_id = '{{ instance_id }}' --required
AND region = '{{ region }}' --required
AND ExtractionConfiguration = '{{ ExtractionConfiguration }}' --required;

DELETE examples

Deletes an extraction definition from the specified Connect Customer instance.

DELETE FROM aws.connect.extraction_definitions
WHERE instance_id = '{{ instance_id }}' --required
AND extraction_definition_id = '{{ extraction_definition_id }}' --required
AND region = '{{ region }}' --required
;