Class CfnDataSource.HookConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.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.getS3Bucket()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaArn
@Stability(Stable) public CfnDataSource.HookConfigurationProperty.Builder lambdaArn(String lambdaArn) Sets the value ofCfnDataSource.HookConfigurationProperty.getLambdaArn()- Parameters:
lambdaArn- The Amazon Resource Name (ARN) of a role with permission to run a Lambda function during ingestion. This parameter is required. For more information, see IAM roles for Amazon Kendra .- Returns:
this
-
s3Bucket
Sets the value ofCfnDataSource.HookConfigurationProperty.getS3Bucket()- Parameters:
s3Bucket- Stores the original, raw documents or the structured, parsed documents before and after altering them. This parameter is required. For more information, see Data contracts for Lambda functions .- Returns:
this
-
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 Kendra 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 Kendra should invoke a function that inserts the current date-time.- 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
-