Class CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.CustomDocumentEnrichmentConfigurationProperty>
- Enclosing interface:
CfnDataSource.CustomDocumentEnrichmentConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.CustomDocumentEnrichmentConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.inlineConfigurations
(List<? extends Object> inlineConfigurations) inlineConfigurations
(IResolvable inlineConfigurations) postExtractionHookConfiguration
(IResolvable postExtractionHookConfiguration) postExtractionHookConfiguration
(CfnDataSource.HookConfigurationProperty postExtractionHookConfiguration) preExtractionHookConfiguration
(IResolvable preExtractionHookConfiguration) preExtractionHookConfiguration
(CfnDataSource.HookConfigurationProperty preExtractionHookConfiguration) Sets the value ofCfnDataSource.CustomDocumentEnrichmentConfigurationProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inlineConfigurations
@Stability(Stable) public CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder inlineConfigurations(IResolvable inlineConfigurations) Sets the value ofCfnDataSource.CustomDocumentEnrichmentConfigurationProperty.getInlineConfigurations()
- Parameters:
inlineConfigurations
- Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra.- Returns:
this
-
inlineConfigurations
@Stability(Stable) public CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder inlineConfigurations(List<? extends Object> inlineConfigurations) Sets the value ofCfnDataSource.CustomDocumentEnrichmentConfigurationProperty.getInlineConfigurations()
- Parameters:
inlineConfigurations
- Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra.- Returns:
this
-
postExtractionHookConfiguration
@Stability(Stable) public CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder postExtractionHookConfiguration(IResolvable postExtractionHookConfiguration) Sets the value ofCfnDataSource.CustomDocumentEnrichmentConfigurationProperty.getPostExtractionHookConfiguration()
- Parameters:
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 .- Returns:
this
-
postExtractionHookConfiguration
@Stability(Stable) public CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder postExtractionHookConfiguration(CfnDataSource.HookConfigurationProperty postExtractionHookConfiguration) Sets the value ofCfnDataSource.CustomDocumentEnrichmentConfigurationProperty.getPostExtractionHookConfiguration()
- Parameters:
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 .- Returns:
this
-
preExtractionHookConfiguration
@Stability(Stable) public CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder preExtractionHookConfiguration(IResolvable preExtractionHookConfiguration) Sets the value ofCfnDataSource.CustomDocumentEnrichmentConfigurationProperty.getPreExtractionHookConfiguration()
- Parameters:
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 .- Returns:
this
-
preExtractionHookConfiguration
@Stability(Stable) public CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder preExtractionHookConfiguration(CfnDataSource.HookConfigurationProperty preExtractionHookConfiguration) Sets the value ofCfnDataSource.CustomDocumentEnrichmentConfigurationProperty.getPreExtractionHookConfiguration()
- Parameters:
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 .- Returns:
this
-
roleArn
@Stability(Stable) public CfnDataSource.CustomDocumentEnrichmentConfigurationProperty.Builder roleArn(String roleArn) Sets the value ofCfnDataSource.CustomDocumentEnrichmentConfigurationProperty.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of a role with permission to runPreExtractionHookConfiguration
andPostExtractionHookConfiguration
for altering document metadata and content during the document ingestion process. For more information, see IAM roles for Amazon Kendra .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.CustomDocumentEnrichmentConfigurationProperty>
- Returns:
- a new instance of
CfnDataSource.CustomDocumentEnrichmentConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-