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 Q Business.

You can configure your Lambda function using the PreExtractionHookConfiguration parameter if you want to apply advanced alterations on the original or raw documents.

If you want to apply advanced alterations on the Amazon Q Business 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 Custom document enrichment .

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.qbusiness.*;
 HookConfigurationProperty hookConfigurationProperty = HookConfigurationProperty.builder()
         .invocationCondition(DocumentAttributeConditionProperty.builder()
                 .key("key")
                 .operator("operator")
                 // the properties below are optional
                 .value(DocumentAttributeValueProperty.builder()
                         .dateValue("dateValue")
                         .longValue(123)
                         .stringListValue(List.of("stringListValue"))
                         .stringValue("stringValue")
                         .build())
                 .build())
         .lambdaArn("lambdaArn")
         .roleArn("roleArn")
         .s3BucketName("s3BucketName")
         .build();
 

See Also: