Skip to content

Commit ae1436a

Browse files
committed
Add parameter for a REQUEST type API Gateway Custom Authorizer
1 parent 2a0ba78 commit ae1436a

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

Libraries/src/Amazon.Lambda.APIGatewayEvents/APIGatewayCustomAuthorizerRequest.cs

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace Amazon.Lambda.APIGatewayEvents
1+
using System.Collections.Generic;
2+
3+
namespace Amazon.Lambda.APIGatewayEvents
24
{
35
/// <summary>
46
/// For requests coming in to a custom API Gateway authorizer function.
@@ -19,5 +21,41 @@ public class APIGatewayCustomAuthorizerRequest
1921
/// Gets or sets the 'methodArn' property.
2022
/// </summary>
2123
public string MethodArn { get; set; }
24+
25+
/// <summary>
26+
/// The url path for the caller. For Request type API Gateway Custom Authorizer only.
27+
/// </summary>
28+
public string Path { get; set; }
29+
30+
/// <summary>
31+
/// The HTTP method used. For Request type API Gateway Custom Authorizer only.
32+
/// </summary>
33+
public string HttpMethod { get; set; }
34+
35+
/// <summary>
36+
/// The headers sent with the request. For Request type API Gateway Custom Authorizer only.
37+
/// </summary>
38+
public IDictionary<string, string> Headers {get;set;}
39+
40+
/// <summary>
41+
/// The query string parameters that were part of the request. For Request type API Gateway Custom Authorizer only.
42+
/// </summary>
43+
public IDictionary<string, string> QueryStringParameters { get; set; }
44+
45+
/// <summary>
46+
/// The path parameters that were part of the request. For Request type API Gateway Custom Authorizer only.
47+
/// </summary>
48+
public IDictionary<string, string> PathParameters { get; set; }
49+
50+
/// <summary>
51+
/// The stage variables defined for the stage in API Gateway. For Request type API Gateway Custom Authorizer only.
52+
/// </summary>
53+
public IDictionary<string, string> StageVariables { get; set; }
54+
55+
/// <summary>
56+
/// The request context for the request. For Request type API Gateway Custom Authorizer only.
57+
/// </summary>
58+
public APIGatewayProxyRequest.ProxyRequestContext RequestContext { get; set; }
59+
2260
}
2361
}

0 commit comments

Comments
 (0)