Lambda parameters for Amazon Kinesis Data Streams event source mappings - Amazon Lambda
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Lambda parameters for Amazon Kinesis Data Streams event source mappings

All Lambda event source mappings share the same CreateEventSourceMapping and UpdateEventSourceMapping API operations. However, only some of the parameters apply to Kinesis.

Event source parameters that apply to Kinesis
Parameter Required Default Notes

BatchSize

N

100

Maximum: 10,000

BisectBatchOnFunctionError

N

false

DestinationConfig

N

Amazon SQS queue or Amazon SNS topic destination for discarded records. For more information, see Configuring destinations for failed invocations.

Enabled

N

true

EventSourceArn

Y

ARN of the data stream or a stream consumer

FunctionName

Y

FunctionResponseTypes

N

To let your function report specific failures in a batch, include the value ReportBatchItemFailures in FunctionResponseTypes. For more information, see Configuring partial batch response with Kinesis Data Streams and Lambda.

MaximumBatchingWindowInSeconds

N

0

MaximumRecordAgeInSeconds

N

-1

-1 means infinite: Lambda doesn't discard records (Kinesis Data Streams data retention settings still apply)

Minimum: -1

Maximum: 604,800

MaximumRetryAttempts

N

-1

-1 means infinite: failed records are retried until the record expires

Minimum: -1

Maximum: 10,000

ParallelizationFactor

N

1

Maximum: 10

StartingPosition

Y

AT_TIMESTAMP, TRIM_HORIZON, or LATEST

StartingPositionTimestamp

N

Only valid if StartingPosition is set to AT_TIMESTAMP. The time from which to start reading, in Unix time seconds

TumblingWindowInSeconds

N

Minimum: 0

Maximum: 900