Skip to content

Instantly share code, notes, and snippets.

@sapessi
Created January 7, 2016 00:05
Show Gist options
  • Save sapessi/9e62fb9e1a2b325c2d6d to your computer and use it in GitHub Desktop.
Save sapessi/9e62fb9e1a2b325c2d6d to your computer and use it in GitHub Desktop.
Retrieve query string parameters in API Gateway and create an object for AWS Lambda
{
#set($queryMap = $input.params().querystring)
#foreach( $key in $queryMap.keySet())
"$key" : "$queryMap.get($key)"
#if($foreach.hasNext),#end
#end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment