Created
January 17, 2017 23:30
-
-
Save patrobinson/cf5201df1fdff726d43d4b76660ae263 to your computer and use it in GitHub Desktop.
Sending non-json payloads to Lambda via AWS API Gateway
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($inputRoot = $input.path('$')) | |
{ | |
"httpMethod": "$context.httpMethod", | |
"input": "$util.escapeJavaScript($input.body)" | |
} |
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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"title" : "Logplex Schema", | |
"type" : "object", | |
"properties" : { | |
"httpMethod": { | |
"type": "string" | |
}, | |
"input": { | |
"type": "string" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment