@Stability(value=Stable)
public static interface CfnDataSource.CustomDocumentEnrichmentConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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.*;
CustomDocumentEnrichmentConfigurationProperty customDocumentEnrichmentConfigurationProperty = CustomDocumentEnrichmentConfigurationProperty.builder()
.inlineConfigurations(List.of(InlineCustomDocumentEnrichmentConfigurationProperty.builder()
.condition(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())
.documentContentDeletion(false)
.target(DocumentAttributeTargetProperty.builder()
.targetDocumentAttributeKey("targetDocumentAttributeKey")
// the properties below are optional
.targetDocumentAttributeValue(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.targetDocumentAttributeValueDeletion(false)
.build())
.build()))
.postExtractionHookConfiguration(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())
.preExtractionHookConfiguration(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())
.roleArn("roleArn")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder
|
static class |
CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Jsii$Proxy
An implementation for
CfnDataSource.CustomDocumentEnrichmentConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder |
builder() |
default Object |
getInlineConfigurations()
Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra.
|
default Object |
getPostExtractionHookConfiguration()
Configuration information for invoking a Lambda function in AWS Lambda on the structured documents with their metadata and text extracted.
|
default Object |
getPreExtractionHookConfiguration()
Configuration information for invoking a Lambda function in AWS Lambda on the original or raw documents before extracting their metadata and text.
|
default String |
getRoleArn()
The Amazon Resource Name (ARN) of a role with permission to run `PreExtractionHookConfiguration` and `PostExtractionHookConfiguration` for altering document metadata and content during the document ingestion process.
|
@Stability(value=Stable) @Nullable default Object getInlineConfigurations()
@Stability(value=Stable) @Nullable default Object getPostExtractionHookConfiguration()
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 .
@Stability(value=Stable) @Nullable default Object getPreExtractionHookConfiguration()
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 .
@Stability(value=Stable) @Nullable default String getRoleArn()
For more information, see IAM roles for Amazon Kendra .
@Stability(value=Stable) static CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.