Last active
August 20, 2020 14:58
-
-
Save marinr/7441534c73b71a0cc5863f2f7d61a9d5 to your computer and use it in GitHub Desktop.
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
#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