This file contains 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
integration.response.header.PARAM_NAME |
This file contains 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
exports.handler = async (event) => { | |
return event.params; | |
}; |
This file contains 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
{ | |
"params" : "$input" | |
} |
This file contains 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
exports.handler = async (event) => { | |
return { | |
statusCode: 200, | |
isBase64Encoded: event["isBase64Encoded"], | |
headers: { | |
"Content-Type": event["headers"]["Content-Type"] | |
}, | |
body: event["body"] | |
}; | |
}; |
This file contains 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
{ | |
"isBase64Encoded": true|false, | |
"statusCode": httpStatusCode, | |
"headers": { "headerName": "headerValue", ... }, | |
"multiValueHeaders": { "headerName": ["headerValue", "headerValue2", ...], ... }, | |
"body": "..." | |
} |
This file contains 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": "eyJ0ZXN0IjoiYm9keSJ9", | |
"resource": "/{proxy+}", | |
"path": "/path/to/resource", | |
"httpMethod": "POST", | |
"isBase64Encoded": true, | |
"queryStringParameters": { | |
"foo": "bar" | |
}, | |
"multiValueQueryStringParameters": { |
This file contains 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
{ | |
"my_path_param" : "$input.params('my_path_param')", | |
"my_query_param" : "$input.params('my_query_param')", | |
"body": "$input" | |
} |
This file contains 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
var qs = require('querystring') | |
exports.handler = async (event) => { | |
return event | |
}; |
This file contains 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
var qs = require('querystring') | |
exports.handler = async (event) => { | |
return { | |
statusCode: 200, | |
body: JSON.stringify({ | |
"body": qs.parse(event.body) | |
}) | |
}; | |
}; |
This file contains 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($allParams = $input.params()) | |
{ | |
"params" : { | |
#foreach($type in $allParams.keySet()) | |
#set($params = $allParams.get($type)) | |
"$type" : { | |
#foreach($paramName in $params.keySet()) | |
"$paramName" : "$util.escapeJavaScript($params.get($paramName))" | |
#if($foreach.hasNext),#end | |
#end |