Created
October 4, 2021 12:58
-
-
Save leegilmorecode/399fa11b780077942fedd50d2b2f3c48 to your computer and use it in GitHub Desktop.
quick example handler to retrieve an EventBridge event
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SNSEvent, EventBridgeEvent, Handler } from 'aws-lambda'; | |
export const handler: Handler<SNSEvent | EventBridgeEvent<any, any>> = (event) => { | |
console.log('Fulfilment handler'); | |
console.log('event = ' + JSON.stringify(event)); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment