TransformationProperty Struct
A custom processing step for documents moving through a data source ingestion pipeline.
To process documents after they have been converted into chunks, set the step to apply to POST_CHUNKING .
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const transformationProperty: bedrock.CfnDataSource.TransformationProperty = {
stepToApply: 'stepToApply',
transformationFunction: {
transformationLambdaConfiguration: {
lambdaArn: 'lambdaArn',
},
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock
transformation_property = bedrock.CfnDataSource.TransformationProperty(
step_to_apply="stepToApply",
transformation_function=bedrock.CfnDataSource.TransformationFunctionProperty(
transformation_lambda_configuration=bedrock.CfnDataSource.TransformationLambdaConfigurationProperty(
lambda_arn="lambdaArn"
)
)
)
java
// 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.*;
TransformationProperty transformationProperty = TransformationProperty.builder()
.stepToApply("stepToApply")
.transformationFunction(TransformationFunctionProperty.builder()
.transformationLambdaConfiguration(TransformationLambdaConfigurationProperty.builder()
.lambdaArn("lambdaArn")
.build())
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var transformationProperty = new TransformationProperty {
StepToApply = "stepToApply",
TransformationFunction = new TransformationFunctionProperty {
TransformationLambdaConfiguration = new TransformationLambdaConfigurationProperty {
LambdaArn = "lambdaArn"
}
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
transformationProperty := &TransformationProperty{
StepToApply: jsii.String("stepToApply"),
TransformationFunction: &TransformationFunctionProperty{
TransformationLambdaConfiguration: &TransformationLambdaConfigurationProperty{
LambdaArn: jsii.String("lambdaArn"),
},
},
}
Properties
When the service applies the transformation.
transformationFunctionIResolvable | CfnDataSource.transformation_functiontyping.Union[IResolvable, TransformationFunctionProperty]transformationFunctionIResolvableTransformationFunctionIResolvableTransformationFunctioninterface{} required #A Lambda function that processes documents.