Interface CfnDataSource.CustomTransformationConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSource.CustomTransformationConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnDataSource
You can configure the data source to process documents with a Lambda function after they are parsed and converted into chunks. When you add a post-chunking transformation, the service stores chunked documents in an S3 bucket and invokes a Lambda function to process them.
To process chunked documents with a Lambda function, define an S3 bucket path for input and output objects, and a transformation that specifies the Lambda function to invoke. You can use the Lambda function to customize how chunks are split, and the metadata for each chunk.
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.bedrock.*;
CustomTransformationConfigurationProperty customTransformationConfigurationProperty = CustomTransformationConfigurationProperty.builder()
.intermediateStorage(IntermediateStorageProperty.builder()
.s3Location(S3LocationProperty.builder()
.uri("uri")
.build())
.build())
.transformations(List.of(TransformationProperty.builder()
.stepToApply("stepToApply")
.transformationFunction(TransformationFunctionProperty.builder()
.transformationLambdaConfiguration(TransformationLambdaConfigurationProperty.builder()
.lambdaArn("lambdaArn")
.build())
.build())
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDataSource.CustomTransformationConfigurationPropertystatic final classAn implementation forCfnDataSource.CustomTransformationConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()An S3 bucket path for input and output objects.A Lambda function that processes documents.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIntermediateStorage
An S3 bucket path for input and output objects.Returns union: either
IResolvableorCfnDataSource.IntermediateStorageProperty- See Also:
-
getTransformations
A Lambda function that processes documents.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataSource.TransformationProperty>- See Also:
-
builder
-