title: How to pass a querystring or route parameter to AWS Lambda from Amazon API Gateway
body: <p>for instance if we want to use </p>
  
  <p><code>GET /user?name=bob</code></p>
  
  <p>or</p>
  
  <p><code>GET /user/bob</code></p>
  
  <p>How would you pass both of these examples as a parameter to the Lambda function?</p>
  
  <p>I saw something about setting a "mapped from" in the documentation, but I can't find that setting in the API Gateway console.</p>
  
  <ul>
  <li><code>method.request.path.parameter-name</code> for a path parameter named <code>parameter-name</code> as defined in the Method Request page.</li>
  <li><code>method.request.querystring.parameter-name</code> for a query string parameter named <code>parameter-name</code> as defined in the Method Request page.</li>
  </ul>
  
  <p>I don't see either of these options even though I defined a query string.</p>