Skip to content

Instantly share code, notes, and snippets.

@marinr
Last active August 20, 2020 14:58
Show Gist options
  • Save marinr/7441534c73b71a0cc5863f2f7d61a9d5 to your computer and use it in GitHub Desktop.
Save marinr/7441534c73b71a0cc5863f2f7d61a9d5 to your computer and use it in GitHub Desktop.
#set($msgBody = $input.body)
#set($context.requestOverride.header['X-Amz-Target'] = "AWSEvents.PutEvents")
#set($context.requestOverride.header['Content-Type'] = "application/x-amz-json-1.1")
{
"Entries": [
{
"Source":"com.alite.example",
"Detail": "$util.escapeJavaScript($msgBody).replaceAll("\\'","'")",
"DetailType": "ExampleEventsDetailType",
"EventBusName": "exampleEventBus"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment