aws-cdk
aws-cdk copied to clipboard
Add support for custom java script in request template of gateway lambda Integration
From the AWS console we can set java script in integration request template mapping. the same can not be set through AWS CDK.
Use Case
Template mapping from api gateway integration request allows to set application/json, with we can also embed java script code as shown below, similar support should be provided through AWS CDK as well.
{"action": "hello",
#set($inputRoot = $input.path('$'))
"endPoints": [
#foreach($elem in $inputRoot.endPoints)
{
#set($headers = $elem.headers)
#if($headers != "")
"headers": "$elem.headers",
#end
"uri": "$elem.uri",
"info": "$elem.info"
}
#if($foreach.hasNext),#end
#end
]}
Proposed Solution
Other
- [ ] :wave: I may be able to implement this feature request
- [ ] :warning: This feature might incur a breaking change
This is a :rocket: Feature Request
This is a programming error, i am withdrawing this
what was the solution?