Interface CfnDataSource.HookConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnDataSource.HookConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnDataSource

@Stability(Stable) public static interface CfnDataSource.HookConfigurationProperty extends software.amazon.jsii.JsiiSerializable
Provides the configuration information for invoking a Lambda function in AWS Lambda to alter document metadata and content when ingesting documents into Amazon Kendra.

You can configure your Lambda function using PreExtractionHookConfiguration if you want to apply advanced alterations on the original or raw documents. If you want to apply advanced alterations on the Amazon Kendra structured documents, you must configure your Lambda function using PostExtractionHookConfiguration . You can only invoke one Lambda function. However, this function can invoke other functions it requires.

For more information, see Customizing document metadata during the ingestion process .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.kendra.*;
 HookConfigurationProperty hookConfigurationProperty = HookConfigurationProperty.builder()
         .lambdaArn("lambdaArn")
         .s3Bucket("s3Bucket")
         // the properties below are optional
         .invocationCondition(DocumentAttributeConditionProperty.builder()
                 .conditionDocumentAttributeKey("conditionDocumentAttributeKey")
                 .operator("operator")
                 // the properties below are optional
                 .conditionOnValue(DocumentAttributeValueProperty.builder()
                         .dateValue("dateValue")
                         .longValue(123)
                         .stringListValue(List.of("stringListValue"))
                         .stringValue("stringValue")
                         .build())
                 .build())
         .build();
 

See Also: