diff --git a/types/aws-lambda/aws-lambda-tests.ts b/types/aws-lambda/aws-lambda-tests.ts index 2aa75090a4..61be5ea255 100644 --- a/types/aws-lambda/aws-lambda-tests.ts +++ b/types/aws-lambda/aws-lambda-tests.ts @@ -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; diff --git a/types/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts index 3e2c467256..0420494f19 100644 --- a/types/aws-lambda/index.d.ts +++ b/types/aws-lambda/index.d.ts @@ -31,6 +31,7 @@ // Juan Carbonel // Peter McIntyre // Alex Bolenok +// Marian Zange // 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;