-
Notifications
You must be signed in to change notification settings - Fork 479
/
Copy pathApplicationLoadBalancerRequest.cs
83 lines (72 loc) · 2.84 KB
/
ApplicationLoadBalancerRequest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using System;
using System.Collections.Generic;
namespace Amazon.Lambda.ApplicationLoadBalancerEvents
{
/// <summary>
/// For request coming in from Application Load Balancer.
/// https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html
/// </summary>
public class ApplicationLoadBalancerRequest
{
/// <summary>
/// The request context for the request
/// </summary>
public ALBRequestContext RequestContext { get; set; }
/// <summary>
/// The url path for the caller
/// </summary>
public string Path { get; set; }
/// <summary>
/// The HTTP method used
/// </summary>
public string HttpMethod { get; set; }
/// <summary>
/// The headers sent with the request
/// Note: Use this property when "Multi value headers" is disabled on ELB Target Group.
/// </summary>
public IDictionary<string, string> Headers { get; set; }
/// <summary>
/// The headers sent with the request
/// Note: Use this property when "Multi value headers" is enabled on ELB Target Group.
/// </summary>
public IDictionary<string, IList<string>> MultiValueHeaders { get; set; }
/// <summary>
/// The query string parameters that were part of the request
/// Note: Use this property when "Multi value headers" is disabled on ELB Target Group.
/// </summary>
public IDictionary<string, string> QueryStringParameters { get; set; }
/// <summary>
/// The query string parameters that were part of the request
/// Note: Use this property when "Multi value headers" is enabled on ELB Target Group.
/// </summary>
public IDictionary<string, IList<string>> MultiValueQueryStringParameters { get; set; }
/// <summary>
/// The HTTP request body.
/// </summary>
public string Body { get; set; }
/// <summary>
/// True if the body of the request is base 64 encoded.
/// </summary>
public bool IsBase64Encoded { get; set; }
/// <summary>
/// Information from the AWS resources invoke the Lambda function.
/// </summary>
public class ALBRequestContext
{
/// <summary>
/// Information about the source Application Load Balancer.
/// </summary>
public ElbInfo Elb { get; set; }
}
/// <summary>
/// Information from the source Elastic Load Balancer.
/// </summary>
public class ElbInfo
{
/// <summary>
/// The Application Load Balancer target group arn.
/// </summary>
public string TargetGroupArn { get; set; }
}
}
}