interface CustomTransformationConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnDataSourcePropsMixin.CustomTransformationConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnDataSourcePropsMixin_CustomTransformationConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnDataSourcePropsMixin.CustomTransformationConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnDataSourcePropsMixin.CustomTransformationConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » CfnDataSourcePropsMixin » CustomTransformationConfigurationProperty |
Settings for customizing steps in the data source content ingestion pipeline.
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 { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
const customTransformationConfigurationProperty: bedrock_mixins.CfnDataSourcePropsMixin.CustomTransformationConfigurationProperty = {
intermediateStorage: {
s3Location: {
uri: 'uri',
},
},
transformations: [{
stepToApply: 'stepToApply',
transformationFunction: {
transformationLambdaConfiguration: {
lambdaArn: 'lambdaArn',
},
},
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| intermediate | IResolvable | Intermediate | An S3 bucket path for input and output objects. |
| transformations? | IResolvable | (IResolvable | Transformation)[] | A Lambda function that processes documents. |
intermediateStorage?
Type:
IResolvable | Intermediate
(optional)
An S3 bucket path for input and output objects.
transformations?
Type:
IResolvable | (IResolvable | Transformation)[]
(optional)
A Lambda function that processes documents.

.NET
Go
Java
Python
TypeScript