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 342d489d68..3b9e31f14c 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;