C# AWS API网关Lambda授权人请求类型没有methodArn?
使用C#编写自定义API网关Lambda授权程序,并使用C# AWS API网关Lambda授权人请求类型没有methodArn?,c#,amazon-web-services,aws-api-gateway,.net-core-3.1,lambda-authorizer,C#,Amazon Web Services,Aws Api Gateway,.net Core 3.1,Lambda Authorizer,使用C#编写自定义API网关Lambda授权程序,并使用请求授权程序(非令牌)编写Im。查看他们的I应该有一个名为methodArn的可用参数,但是查看类APIGatewayProxyRequest它没有从他们的SDK中列出 这是用于我的lambda授权人的正确输入参数吗 namespace Amazon.Lambda.APIGatewayEvents { public class APIGatewayProxyRequest { public APIGatewa
请求
授权程序(非令牌)编写Im。查看他们的I应该有一个名为methodArn
的可用参数,但是查看类APIGatewayProxyRequest
它没有从他们的SDK中列出
这是用于我的lambda授权人的正确输入参数吗
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...>
}
}
名称空间Amazon.Lambda.APIGatewayEvents
{
公共类APIGatewayProxyRequest
{
公共APIGatewayProxyRequest();
公共字符串资源{get;set;}
公共字符串路径{get;set;}
公共字符串HttpMethod{get;set;}
公共IDictionary头{get;set;}
公共IDictionary多值头{get;set;}
公共IDictionary QueryStringParameters{get;set;}
公共IDictionary多值QueryStringParameters{get;set;}
公共IDictionary路径参数{get;set;}
公共IDictionary阶段变量{get;set;}
公共ProxyRequestContext请求上下文{get;set;}
公共字符串体{get;set;}
公共bool IsBase64Encoded{get;set;}
}
}
尝试使用APIGatewayCustomAuthorizerRequest
而不是APIGatewayProxyRequest