Skip to content

Instantly share code, notes, and snippets.

@leegilmorecode
Created October 4, 2021 12:58
Show Gist options
  • Select an option

  • Save leegilmorecode/399fa11b780077942fedd50d2b2f3c48 to your computer and use it in GitHub Desktop.

Select an option

Save leegilmorecode/399fa11b780077942fedd50d2b2f3c48 to your computer and use it in GitHub Desktop.
quick example handler to retrieve an EventBridge event
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