Interface DataProcessorProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DataProcessorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-17T19:20:30.618Z")
@Stability(Stable)
public interface DataProcessorProps
extends software.amazon.jsii.JsiiSerializable
Configure the data processor.
Example:
Bucket bucket;
// Provide a Lambda function that will transform records before delivery, with custom
// buffering and retry configuration
Function lambdaFunction = Function.Builder.create(this, "Processor")
.runtime(Runtime.NODEJS_LATEST)
.handler("index.handler")
.code(Code.fromAsset(join(__dirname, "process-records")))
.build();
LambdaFunctionProcessor lambdaProcessor = LambdaFunctionProcessor.Builder.create(lambdaFunction)
.bufferInterval(Duration.minutes(5))
.bufferSize(Size.mebibytes(5))
.retries(5)
.build();
S3Bucket s3Destination = S3Bucket.Builder.create(bucket)
.processor(lambdaProcessor)
.build();
DeliveryStream.Builder.create(this, "Delivery Stream")
.destination(s3Destination)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDataProcessorPropsstatic final classAn implementation forDataProcessorProps -
Method Summary
Modifier and TypeMethodDescriptionstatic DataProcessorProps.Builderbuilder()default DurationThe length of time Kinesis Data Firehose will buffer incoming data before calling the processor.default SizeThe amount of incoming data Kinesis Data Firehose will buffer before calling the processor.default NumberThe number of times Kinesis Data Firehose will retry the processor invocation after a failure due to network timeout or invocation limits.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBufferInterval
The length of time Kinesis Data Firehose will buffer incoming data before calling the processor.s
Default: Duration.minutes(1)
-
getBufferSize
The amount of incoming data Kinesis Data Firehose will buffer before calling the processor.Default: Size.mebibytes(3)
-
getRetries
The number of times Kinesis Data Firehose will retry the processor invocation after a failure due to network timeout or invocation limits.Default: 3
-
builder
- Returns:
- a
DataProcessorProps.BuilderofDataProcessorProps
-