adding property authorizer to APIGatewayEvent

This commit is contained in:
Daniel Cottone
2017-11-06 10:08:09 -06:00
parent a68863ebbd
commit 13d1bcc4f5
2 changed files with 2 additions and 0 deletions

View File

@@ -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;

View File

@@ -16,6 +16,7 @@
interface APIGatewayEventRequestContext {
accountId: string;
apiId: string;
authorizer?: AuthResponseContext | null | undefined;
httpMethod: string;
identity: {
accessKey: string | null;