Skip to content

Commit 8f0698f

Browse files
committed
Added authorizer field.
1 parent 494f329 commit 8f0698f

File tree

1 file changed

+3
-1
lines changed
  • src/Aws/Lambda/Runtime/APIGateway

1 file changed

+3
-1
lines changed

src/Aws/Lambda/Runtime/APIGateway/Types.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ data ApiGatewayRequestContext = ApiGatewayRequestContext
109109
apiGatewayRequestContextRequestId :: !Text,
110110
apiGatewayRequestContextDomainName :: !Text,
111111
apiGatewayRequestContextApiId :: !Text,
112-
apiGatewayRequestContextIdentity :: !ApiGatewayRequestContextIdentity
112+
apiGatewayRequestContextIdentity :: !ApiGatewayRequestContextIdentity,
113+
apiGatewayRequestContextAuthorizer :: !Value
113114
}
114115
deriving (Show)
115116

@@ -130,6 +131,7 @@ instance FromJSON ApiGatewayRequestContext where
130131
<*> v .: "domainName"
131132
<*> v .: "apiId"
132133
<*> v .: "identity"
134+
<*> v .: "authorizer"
133135
parseJSON _ = fail "Expected ApiGatewayRequestContext to be an object."
134136

135137
data ApiGatewayRequestContextIdentity = ApiGatewayRequestContextIdentity

0 commit comments

Comments
 (0)