My lambda function is triggered from dynamoDB table and such invocations are done synchronously. from docs
Lambda reads records from the stream and invokes your function synchronously with an event that contains stream records. Lambda reads records in batches and invokes your function to process records from the batch.
With asynchronous invocation, lambda gets 2 more tries in case of any unhandled errors. But in case of synchronous invocation, how many retires lambda will get? and how can we change it.
I want to reduce number of retries to 0 in case of an unhandled error. Is there a way to change number of retries for synchronous invocation?