View a markdown version of this page

Lambda function target - Amazon EventBridge
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 function target

To deliver to a Lambda function, set TargetArn to the function ARN, optionally with an alias or version, and add LambdaParameters. The function receives a JSON array holding the events in the batch, one element per event, even when the batch holds one event.

Parameters

ParameterWhat it sets
InvocationTypeEVENT invokes asynchronously and treats a successful Invoke as delivered. REQUEST_RESPONSE waits for the function to return and treats a function error as a failed delivery
QualifierA function version or alias, if not part of the ARN
DurableExecutionNameThe name of a durable execution, for functions that use durable execution
TenantIdThe tenant identifier passed to a multi-tenant function
InvocationTimeoutSecondsHow long EventBridge waits for the call, 1 to 30 seconds, default 30

Delivery role

The role needs lambda:InvokeFunction on the function, including its alias or version if you name one.

Batching and payload

One Invoke carries the whole batch as a JSON array. Set BatchConfiguration.MaxBatchSize to 1 if the function expects one event per invocation. See Batching deliveries to a target.