AWS::Kendra::DataSource CustomDocumentEnrichmentConfiguration
Provides the configuration information for altering document metadata and content during the document ingestion process.
For more information, see Customizing document metadata during the ingestion process.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "InlineConfigurations" :
[ InlineCustomDocumentEnrichmentConfiguration, ... ]
, "PostExtractionHookConfiguration" :HookConfiguration
, "PreExtractionHookConfiguration" :HookConfiguration
, "RoleArn" :String
}
YAML
InlineConfigurations:
- InlineCustomDocumentEnrichmentConfiguration
PostExtractionHookConfiguration:HookConfiguration
PreExtractionHookConfiguration:HookConfiguration
RoleArn:String
Properties
InlineConfigurations
-
Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra.
Required: No
Type: Array of InlineCustomDocumentEnrichmentConfiguration
Maximum:
100
Update requires: No interruption
PostExtractionHookConfiguration
-
Configuration information for invoking a Lambda function in AWS Lambda on the structured documents with their metadata and text extracted. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation.
Required: No
Type: HookConfiguration
Update requires: No interruption
PreExtractionHookConfiguration
-
Configuration information for invoking a Lambda function in AWS Lambda on the original or raw documents before extracting their metadata and text. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation.
Required: No
Type: HookConfiguration
Update requires: No interruption
RoleArn
-
The Amazon Resource Name (ARN) of an IAM role with permission to run
PreExtractionHookConfiguration
andPostExtractionHookConfiguration
for altering document metadata and content during the document ingestion process. For more information, see an IAM roles for Amazon Kendra.Required: No
Type: String
Pattern:
arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}
Minimum:
1
Maximum:
1284
Update requires: No interruption