From 13d1bcc4f55f26f20ce56ee1ec11ac9442817c8c Mon Sep 17 00:00:00 2001 From: Daniel Cottone Date: Mon, 6 Nov 2017 10:08:09 -0600 Subject: [PATCH] adding property authorizer to APIGatewayEvent --- types/aws-lambda/aws-lambda-tests.ts | 1 + types/aws-lambda/index.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/types/aws-lambda/aws-lambda-tests.ts b/types/aws-lambda/aws-lambda-tests.ts index c2eb8da77e..ebd31429de 100644 --- a/types/aws-lambda/aws-lambda-tests.ts +++ b/types/aws-lambda/aws-lambda-tests.ts @@ -69,6 +69,7 @@ var cloudformationCustomResourceResponse: AWSLambda.CloudFormationCustomResource /* API Gateway Event request context */ str = apiGwEvtReqCtx.accountId; str = apiGwEvtReqCtx.apiId; +authResponseContext = apiGwEvtReqCtx.authorizer; str = apiGwEvtReqCtx.httpMethod; str = apiGwEvtReqCtx.identity.accessKey; str = apiGwEvtReqCtx.identity.accountId; diff --git a/types/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts index 523aafd41f..8fd8dfb05e 100644 --- a/types/aws-lambda/index.d.ts +++ b/types/aws-lambda/index.d.ts @@ -16,6 +16,7 @@ interface APIGatewayEventRequestContext { accountId: string; apiId: string; + authorizer?: AuthResponseContext | null | undefined; httpMethod: string; identity: { accessKey: string | null;