1
votes

I want to know how the AWS API Gateway calls third party REST APIs using authorization.

Also, how can I write an AWS Lambda Java function that will call multiple third party REST APIs and merge responses which will send to API Gateway?

1
It's just normal code -- call the 3rd-party API how you normally would. - John Rotenstein

1 Answers

1
votes

API Gateway provides three kinds of Authorizers today:

  • IAM auth - Use policies to provide permissions to roles and users within your AWS account.
  • Custom Authorizers - Call a Lambda function which handles authorization.
  • Cognito User Pools - Authorize members of a Cognito User Pool to access your API.

You can setup an HTTP integration which calls the third-party APIs and authorize calls using one of the above.

Thanks! Ritisha