Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest is missing methodArn parameter
See original GitHub issueThe 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:
- Created 3 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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!
Thanks! I appreciate your time!