Created
January 17, 2017 17:30
-
-
Save samueleastdev/1c5070d1039a8c3204a497b336a6180d to your computer and use it in GitHub Desktop.
Lambda Integration Request Mapping Template
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
{ | |
"body" : $input.json('$'), | |
"headers": { | |
#foreach($header in $input.params().header.keySet()) | |
"$header": "$util.escapeJavaScript($input.params().header.get($header))" #if($foreach.hasNext),#end | |
#end | |
}, | |
"method": "$context.httpMethod", | |
"params": { | |
#foreach($param in $input.params().path.keySet()) | |
"$param": "$util.escapeJavaScript($input.params().path.get($param))" #if($foreach.hasNext),#end | |
#end | |
}, | |
"query": { | |
#foreach($queryParam in $input.params().querystring.keySet()) | |
"$queryParam": "$util.escapeJavaScript($input.params().querystring.get($queryParam))" #if($foreach.hasNext),#end | |
#end | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment