Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sign API Gateway Request With AWS SDK

When you download an auto-generated API client for Java or JavaScript they reference base helper components. Is a version of these available for Xamarin, or is there any way to make or sign requests to the API Gateway using the Xamarin AWS SDK? The only thing I see is the 'test' method in the AWSSDK.APIGateway client, which seems intended for management operations.

My API requires authentication, I'm using Cognito to authenticate users.

UPDATE:

So I didn't realize at first that it was possible to call my Lambda functions directly using the AWS SDK and I don't need to use the API Gateway at all.

like image 966
Paul Avatar asked Feb 01 '16 16:02

Paul


1 Answers

the auto-generated API clients are only available for iOS, Android, and JavaScript at this time. We have received requests for multiple other languages, which are on our backlog.

The API Gateway client in all of the traditional AWS SDKs is only built for the API Gateway control APIs, which are used to configure and deploy your RestApis.

You'll have to write/extend your own signer. This may be helpful: https://github.com/awslabs/aws-sdk-xamarin/blob/master/AWS.XamarinSDK/AWSSDK_Core/Amazon.Runtime/Pipeline/Handlers/Signer.cs

or the public signature docs: http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html

like image 120
jackko Avatar answered Sep 28 '22 08:09

jackko