Skip to content

Commit

Permalink
Fixed a missing parameter error in the EventBridgeHandler example cod…
Browse files Browse the repository at this point in the history
…e on the Scheduled Functions documentation page (#7940)
  • Loading branch information
Tak1wa committed Sep 5, 2024
1 parent 19e99c4 commit 073215b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Their handlers can be typed using the `EventBridgeHandler` type:
```ts title="amplify/jobs/weekly-digest/handler.ts"
import type { EventBridgeHandler } from "aws-lambda";

export const handler: EventBridgeHandler = async (event) => {
export const handler: EventBridgeHandler<"Scheduled Event", null, void> = async (event) => {
console.log("event", JSON.stringify(event, null, 2))
}
```
Expand Down

0 comments on commit 073215b

Please sign in to comment.