Class CfnDataSource.HookConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.qbusiness.CfnDataSource.HookConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.HookConfigurationProperty>
- Enclosing interface:
CfnDataSource.HookConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.HookConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.HookConfigurationProperty>
A builder for
CfnDataSource.HookConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.invocationCondition(IResolvable invocationCondition) Sets the value ofCfnDataSource.HookConfigurationProperty.getInvocationCondition()invocationCondition(CfnDataSource.DocumentAttributeConditionProperty invocationCondition) Sets the value ofCfnDataSource.HookConfigurationProperty.getInvocationCondition()Sets the value ofCfnDataSource.HookConfigurationProperty.getLambdaArn()Sets the value ofCfnDataSource.HookConfigurationProperty.getRoleArn()s3BucketName(String s3BucketName) Sets the value ofCfnDataSource.HookConfigurationProperty.getS3BucketName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
invocationCondition
@Stability(Stable) public CfnDataSource.HookConfigurationProperty.Builder invocationCondition(IResolvable invocationCondition) Sets the value ofCfnDataSource.HookConfigurationProperty.getInvocationCondition()- Parameters:
invocationCondition- 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 Q Business should invoke a function that inserts the current date-time.- Returns:
this
-
invocationCondition
@Stability(Stable) public CfnDataSource.HookConfigurationProperty.Builder invocationCondition(CfnDataSource.DocumentAttributeConditionProperty invocationCondition) Sets the value ofCfnDataSource.HookConfigurationProperty.getInvocationCondition()- Parameters:
invocationCondition- 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 Q Business should invoke a function that inserts the current date-time.- Returns:
this
-
lambdaArn
@Stability(Stable) public CfnDataSource.HookConfigurationProperty.Builder lambdaArn(String lambdaArn) Sets the value ofCfnDataSource.HookConfigurationProperty.getLambdaArn()- Parameters:
lambdaArn- The Amazon Resource Name (ARN) of the Lambda function during ingestion. For more information, see Using Lambda functions for Amazon Q Business document enrichment .- Returns:
this
-
roleArn
Sets the value ofCfnDataSource.HookConfigurationProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of a role with permission to runPreExtractionHookConfigurationandPostExtractionHookConfigurationfor altering document metadata and content during the document ingestion process.- Returns:
this
-
s3BucketName
@Stability(Stable) public CfnDataSource.HookConfigurationProperty.Builder s3BucketName(String s3BucketName) Sets the value ofCfnDataSource.HookConfigurationProperty.getS3BucketName()- Parameters:
s3BucketName- 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:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSource.HookConfigurationProperty>- Returns:
- a new instance of
CfnDataSource.HookConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-