Skip to content

Problem with SDK for API Gateway

0

Good Day Everyone, I have two get methods in my API gateway resources. I am trying to retrieve the SDK operation name (String) and api key required (boolean) via Java SDK. However the results return NULL value which is not what I'm expected. Please help and advise, I greatly appreciate it. The image below shows my configuration for one of my GET method. Enter image description here

This image below shows my java sdk code and output Enter image description here

1 Answer
0

Hi,

Very probably, the var apiId (input to your method) is set incorrectly. Hence, the null results that you get.

Can you check that your value for this var is correct? (you can display it as well)

You can get the ones that exist in your account via CLI woth : aws apigateway get-rest-apis

Best,

Didier

EXPERT

answered 2 years ago

  • I've verified that the api id used is correct. But I'm still getting the same result

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.