Documentation says maximumBatchingWindowInSeconds is now supported and that:
For a FIFO queue the maximum is 10. For a batch size over 10, you must also set the MaximumBatchingWindowInSeconds parameter to at least 1 second.
However, I'm getting: "Invalid request provided: Batching window is not supported for FIFO queues" when trying to create an event source mapping.
So is it supported or not and if it is how do I enable it?
I need a FIFO Queue with a larger than 10 batch size.
I'm using AWS CDK to create the resource stack. My EventSourceMapping looks like this:
const cfnEventSourceMapping = new CfnEventSourceMapping(this, 'Auth0ImportQEventSourceMapping', {
batchSize: 10,
enabled: true,
eventSourceArn: auth0ImportQ.queueArn,
functionName: auth0ImportLambda.functionName,
maximumBatchingWindowInSeconds: 10,
});