2

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.

1 Answer 1

6

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
      }
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.