class LambdaFunctionProcessor
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.KinesisFirehose.LambdaFunctionProcessor | 
|  Go | github.com/aws/aws-cdk-go/awscdk/v2/awskinesisfirehose#LambdaFunctionProcessor | 
|  Java | software.amazon.awscdk.services.kinesisfirehose.LambdaFunctionProcessor | 
|  Python | aws_cdk.aws_kinesisfirehose.LambdaFunctionProcessor | 
|  TypeScript (source) | aws-cdk-lib»aws_kinesisfirehose»LambdaFunctionProcessor | 
Implements
IData
Use an AWS Lambda function to transform records.
Example
// Provide a Lambda function that will transform records before delivery, with custom
// buffering and retry configuration
const lambdaFunction = new lambda.Function(this, 'Processor', {
  runtime: lambda.Runtime.NODEJS_LATEST,
  handler: 'index.handler',
  code: lambda.Code.fromAsset(path.join(__dirname, 'process-records')),
});
const lambdaProcessor = new firehose.LambdaFunctionProcessor(lambdaFunction, {
  bufferInterval: Duration.minutes(5),
  bufferSize: Size.mebibytes(5),
  retries: 5,
});
declare const bucket: s3.Bucket;
const s3Destination = new firehose.S3Bucket(bucket, {
  processor: lambdaProcessor,
});
new firehose.DeliveryStream(this, 'Delivery Stream', {
  destination: s3Destination,
});
Initializer
new LambdaFunctionProcessor(lambdaFunction: IFunction, props?: DataProcessorProps)
Parameters
- lambdaFunction IFunction
- props Data— The constructor props of the DataProcessor.Processor Props 
Properties
| Name | Type | Description | 
|---|---|---|
| props | Data | The constructor props of the LambdaFunctionProcessor. | 
props
Type:
Data
The constructor props of the LambdaFunctionProcessor.
Methods
| Name | Description | 
|---|---|
| bind(_scope, options) | Binds this processor to a destination of a delivery stream. | 
bind(_scope, options)
public bind(_scope: Construct, options: DataProcessorBindOptions): DataProcessorConfig
Parameters
- _scope Construct
- options DataProcessor Bind Options 
Returns
Binds this processor to a destination of a delivery stream.
Implementers should use this method to grant processor invocation permissions to the provided stream and return the necessary configuration to register as a processor.
