Repository navigation
Expand file tree
/
Copy pathevent.go
More file actions
52 lines (48 loc) · 1.57 KB
/
Copy pathevent.go
File metadata and controls
52 lines (48 loc) · 1.57 KB
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
package proxy
// Identity is the identity information associated with the request.
type Identity struct {
APIKey string
AccountID string
UserAgent string
SourceIP string
AccessKey string
Caller string
User string
UserARN string
CognitoIdentityID string
CognitoIdentityPoolID string
CognitoAuthenticationType string
CognitoAuthenticationProvider string
}
// RequestContext is the contextual information provided by API Gateway.
type RequestContext struct {
APIID string
ResourceID string
RequestID string
HTTPMethod string
ResourcePath string
AccountID string
Stage string
Identity Identity
Authorizer map[string]string `json:"-"`
}
// Input is the input provided by API Gateway.
type Input struct {
HTTPMethod string
Headers map[string]string
Resource string
PathParameters map[string]string
Path string
QueryStringParameters map[string]string
Body string
IsBase64Encoded bool
StageVariables map[string]string
RequestContext RequestContext
}
// Output is the output expected by API Gateway.
type Output struct {
StatusCode int `json:"statusCode"`
Headers map[string]string `json:"headers,omitempty"`
Body string `json:"body,omitempty"`
IsBase64Encoded bool `json:"isBase64Encoded"`
}