title: AWS CDK how to embed custom java script in request template of gateway lambda Integration
body: <p>From the AWS console we can set java script in integration request template mapping. the same can not be set through AWS CDK.</p>
  
  <p>Template mapping from api gateway integration request allows to set application/json, with which we can also embed java script code as shown below, 
  Similar way how to achieve in CDK</p>
  
  <pre><code>{"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
   ]}
  </code></pre>