Add principalOrgId to APIGatewayEventRequestContext (#40241)

This commit is contained in:
Marian Zange
2019-11-08 14:53:32 -08:00
committed by Nathan Shively-Sanders
parent 29b43a06a2
commit 2c10703d1a
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -108,6 +108,7 @@ strOrNull = apiGwEvtReqCtx.identity.cognitoAuthenticationProvider;
strOrNull = apiGwEvtReqCtx.identity.cognitoAuthenticationType;
strOrNull = apiGwEvtReqCtx.identity.cognitoIdentityId;
strOrNull = apiGwEvtReqCtx.identity.cognitoIdentityPoolId;
strOrNull = apiGwEvtReqCtx.identity.principalOrgId;
str = apiGwEvtReqCtx.identity.sourceIp;
strOrNull = apiGwEvtReqCtx.identity.user;
strOrNull = apiGwEvtReqCtx.identity.userAgent;
+2
View File
@@ -31,6 +31,7 @@
// Juan Carbonel <https://github.com/juancarbonel>
// Peter McIntyre <https://github.com/pwmcintyre>
// Alex Bolenok <https://github.com/alex-bolenok-centralreach>
// Marian Zange <https://github.com/marianzange>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -56,6 +57,7 @@ export interface APIGatewayEventRequestContext {
cognitoAuthenticationType: string | null;
cognitoIdentityId: string | null;
cognitoIdentityPoolId: string | null;
principalOrgId: string | null;
sourceIp: string;
user: string | null;
userAgent: string | null;