@@ -4,16 +4,18 @@ package events
44
55// APIGatewayProxyRequest contains data coming from the API Gateway proxy
66type 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"`
1719}
1820
1921// APIGatewayProxyResponse configures the response to be returned by API Gateway for the request
@@ -45,6 +47,7 @@ type APIGatewayRequestIdentity struct {
4547 CognitoIdentityID string `json:"cognitoIdentityId"`
4648 Caller string `json:"caller"`
4749 APIKey string `json:"apiKey"`
50+ AccessKey string `json:"accessKey"`
4851 SourceIP string `json:"sourceIp"`
4952 CognitoAuthenticationType string `json:"cognitoAuthenticationType"`
5053 CognitoAuthenticationProvider string `json:"cognitoAuthenticationProvider"`
@@ -90,16 +93,18 @@ type APIGatewayCustomAuthorizerRequest struct {
9093
9194// APIGatewayCustomAuthorizerRequestTypeRequest contains data coming in to a custom API Gateway authorizer function.
9295type 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"`
103108}
104109
105110// APIGatewayCustomAuthorizerResponse represents the expected format of an API Gateway authorization response.
0 commit comments