question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest is missing methodArn parameter

See original GitHub issue

The documentation for a REQUEST type custom lambda authorizer shows there should be a parameter called methodArn in the APIGatewayProxy request but I am not seeing in in the class. I’m using the AWS SDK using .net-core3.1. Am I using the correct input class for the function handler or is the methodArn parameter missing?

namespace Amazon.Lambda.APIGatewayEvents
{
   public class APIGatewayProxyRequest
   {
      public APIGatewayProxyRequest();

      public string Resource { get; set; }
      public string Path { get; set; }
      public string HttpMethod { get; set; }
      public IDictionary<string, string> Headers { get; set; }
      public IDictionary<string, IList<string>> MultiValueHeaders { get; set; }
      public IDictionary<string, string> QueryStringParameters { get; set; }
      public IDictionary<string, IList<string>> MultiValueQueryStringParameters { get; set; }
      public IDictionary<string, string> PathParameters { get; set; }
      public IDictionary<string, string> StageVariables { get; set; }
      public ProxyRequestContext RequestContext { get; set; }
      public string Body { get; set; }
      public bool IsBase64Encoded { get; set; }

      <...SNIP...>
   }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ProfessionalAmateurcommented, Jun 17, 2020

@msimpsonnz I think that will work perfectly. I couldnt find documentation on when to use the APIGatewatyProxyRequest vs the suggested APIGatewayCustomAuthorizerRequest (albeit Im very new to lambda authorizers), is there a better location than the documentation I linked to above?

I appreciate the response!

0reactions
ProfessionalAmateurcommented, Jun 17, 2020

Thanks! I appreciate your time!

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - AWS API Gateway Lambda authorizer REQUEST type ...
Looking at their documentation I should have an available parameter called methodArn but looking at the class APIGatewayProxyRequest it's not ...
Read more >
Set up Lambda proxy integrations in API Gateway
Amazon API Gateway Lambda proxy integration is a simple, powerful, and nimble mechanism to build an API with a setup of a single...
Read more >
Lambda function handler in C# - AWS ...
Learn how to define a Lambda function handler for C# functions. ... inputType – The first handler parameter is the input to the...
Read more >
Input to an Amazon API Gateway Lambda authorizer
The methodArn is the ARN of the incoming method request and is populated by API Gateway in accordance with the Lambda authorizer configuration....
Read more >
Introducing the .NET 6 runtime for AWS Lambda
It writes a warning message if the user is not found: public APIGatewayProxyResponse Get(APIGatewayProxyRequest request, ILambdaContext context) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found