1

I am configuring API gateway using CDK and I am struggling with URL Query String Parameters in GET Method Request. I could find examples for the integration request but nothing for the Method request.

These are my URL Query String Parameters defined using console, my question is how do I replicate this in TypeScript using CDK? enter image description here

I have checked the CDK documentation hoping to find the implementation. I was expecting that it could be under MethodOptions interface but there is nothing useful for my case.

FilipKamenar
  • 77
  • 1
  • 9

1 Answers1

4

Following code does the job. It is part of the Method construct.

 options: {
      requestParameters: {
     'method.request.querystring.profile': true,
     'method.request.querystring.username': true,
     'method.request.querystring.password': true,
     'method.request.querystring.language': true,
     'method.request.querystring.options': false
      }
}
FilipKamenar
  • 77
  • 1
  • 9