Skip to content

Instantly share code, notes, and snippets.

@patrobinson
Created January 17, 2017 23:30
Show Gist options
  • Save patrobinson/cf5201df1fdff726d43d4b76660ae263 to your computer and use it in GitHub Desktop.
Save patrobinson/cf5201df1fdff726d43d4b76660ae263 to your computer and use it in GitHub Desktop.
Sending non-json payloads to Lambda via AWS API Gateway
#set($inputRoot = $input.path('$'))
{
"httpMethod": "$context.httpMethod",
"input": "$util.escapeJavaScript($input.body)"
}
{
"$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