@@ -4,16 +4,18 @@ package events
4
4
5
5
// APIGatewayProxyRequest contains data coming from the API Gateway proxy
6
6
type APIGatewayProxyRequest struct {
7
- Resource string `json:"resource"` // The resource path defined in API Gateway
8
- Path string `json:"path"` // The url path for the caller
9
- HTTPMethod string `json:"httpMethod"`
10
- Headers map [string ]string `json:"headers"`
11
- QueryStringParameters map [string ]string `json:"queryStringParameters"`
12
- PathParameters map [string ]string `json:"pathParameters"`
13
- StageVariables map [string ]string `json:"stageVariables"`
14
- RequestContext APIGatewayProxyRequestContext `json:"requestContext"`
15
- Body string `json:"body"`
16
- IsBase64Encoded bool `json:"isBase64Encoded,omitempty"`
7
+ Resource string `json:"resource"` // The resource path defined in API Gateway
8
+ Path string `json:"path"` // The url path for the caller
9
+ HTTPMethod string `json:"httpMethod"`
10
+ Headers map [string ]string `json:"headers"`
11
+ MultiValueHeaders map [string ][]string `json:"multiValueHeaders"`
12
+ QueryStringParameters map [string ]string `json:"queryStringParameters"`
13
+ MultiValueQueryStringParameters map [string ][]string `json:"multiValueQueryStringParameters"`
14
+ PathParameters map [string ]string `json:"pathParameters"`
15
+ StageVariables map [string ]string `json:"stageVariables"`
16
+ RequestContext APIGatewayProxyRequestContext `json:"requestContext"`
17
+ Body string `json:"body"`
18
+ IsBase64Encoded bool `json:"isBase64Encoded,omitempty"`
17
19
}
18
20
19
21
// APIGatewayProxyResponse configures the response to be returned by API Gateway for the request
@@ -45,6 +47,7 @@ type APIGatewayRequestIdentity struct {
45
47
CognitoIdentityID string `json:"cognitoIdentityId"`
46
48
Caller string `json:"caller"`
47
49
APIKey string `json:"apiKey"`
50
+ AccessKey string `json:"accessKey"`
48
51
SourceIP string `json:"sourceIp"`
49
52
CognitoAuthenticationType string `json:"cognitoAuthenticationType"`
50
53
CognitoAuthenticationProvider string `json:"cognitoAuthenticationProvider"`
@@ -90,16 +93,18 @@ type APIGatewayCustomAuthorizerRequest struct {
90
93
91
94
// APIGatewayCustomAuthorizerRequestTypeRequest contains data coming in to a custom API Gateway authorizer function.
92
95
type APIGatewayCustomAuthorizerRequestTypeRequest struct {
93
- Type string `json:"type"`
94
- MethodArn string `json:"methodArn"`
95
- Resource string `json:"resource"`
96
- Path string `json:"path"`
97
- HTTPMethod string `json:"httpMethod"`
98
- Headers map [string ]string `json:"headers"`
99
- QueryStringParameters map [string ]string `json:"queryStringParameters"`
100
- PathParameters map [string ]string `json:"pathParameters"`
101
- StageVariables map [string ]string `json:"stageVariables"`
102
- RequestContext APIGatewayCustomAuthorizerRequestTypeRequestContext `json:"requestContext"`
96
+ Type string `json:"type"`
97
+ MethodArn string `json:"methodArn"`
98
+ Resource string `json:"resource"`
99
+ Path string `json:"path"`
100
+ HTTPMethod string `json:"httpMethod"`
101
+ Headers map [string ]string `json:"headers"`
102
+ MultiValueHeaders map [string ][]string `json:"multiValueHeaders"`
103
+ QueryStringParameters map [string ]string `json:"queryStringParameters"`
104
+ MultiValueQueryStringParameters map [string ][]string `json:"multiValueQueryStringParameters"`
105
+ PathParameters map [string ]string `json:"pathParameters"`
106
+ StageVariables map [string ]string `json:"stageVariables"`
107
+ RequestContext APIGatewayCustomAuthorizerRequestTypeRequestContext `json:"requestContext"`
103
108
}
104
109
105
110
// APIGatewayCustomAuthorizerResponse represents the expected format of an API Gateway authorization response.
0 commit comments