Interface CfnDataSourcePropsMixin.HookConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSourcePropsMixin.HookConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnDataSourcePropsMixin
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.cfnpropertymixins.services.kendra.*;
HookConfigurationProperty hookConfigurationProperty = HookConfigurationProperty.builder()
.invocationCondition(DocumentAttributeConditionProperty.builder()
.conditionDocumentAttributeKey("conditionDocumentAttributeKey")
.conditionOnValue(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.operator("operator")
.build())
.lambdaArn("lambdaArn")
.s3Bucket("s3Bucket")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDataSourcePropsMixin.HookConfigurationPropertystatic final classAn implementation forCfnDataSourcePropsMixin.HookConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe condition used for when a Lambda function should be invoked.default StringThe Amazon Resource Name (ARN) of an IAM role with permission to run a Lambda function during ingestion.default ObjectStores the original, raw documents or the structured, parsed documents before and after altering them.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInvocationCondition
The condition used for when a Lambda function should be invoked.For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time.
Returns union: either
IResolvableorCfnDataSourcePropsMixin.DocumentAttributeConditionProperty- See Also:
-
getLambdaArn
The Amazon Resource Name (ARN) of an IAM role with permission to run a Lambda function during ingestion.For more information, see an IAM roles for Amazon Kendra .
- See Also:
-
getS3Bucket
Stores the original, raw documents or the structured, parsed documents before and after altering them.For more information, see Data contracts for Lambda functions .
Returns union: either
StringorIBucketRef- See Also:
-
builder
-