aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

Add support for custom java script in request template of gateway lambda Integration

Open ssrikanta opened this issue 6 years ago • 2 comments

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

ssrikanta avatar Apr 16 '20 19:04 ssrikanta

This is a programming error, i am withdrawing this

ssrikanta avatar Apr 17 '20 05:04 ssrikanta

what was the solution?

iacomus avatar May 14 '20 20:05 iacomus