Skip to content

Commit 304aac4

Browse files
authored
🤖 Merge PR DefinitelyTyped#73964 fix(aws-lambda): add vpcId and vpceId to APIGatewayEventIdentity by @cino
1 parent 5b92222 commit 304aac4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎types/aws-lambda/common/api-gateway.d.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,6 @@ export interface APIGatewayEventIdentity {
8080
user: string | null;
8181
userAgent: string | null;
8282
userArn: string | null;
83+
vpcId: string | null;
84+
vpceId: string | null;
8385
}

‎types/aws-lambda/test/api-gateway-tests.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ let proxyHandler: APIGatewayProxyHandler = async (event, context, callback) => {
152152
strOrNull = requestContext.identity.user;
153153
strOrNull = requestContext.identity.userAgent;
154154
strOrNull = requestContext.identity.userArn;
155+
strOrNull = requestContext.identity.vpcId;
156+
strOrNull = requestContext.identity.vpceId;
155157
strOrUndefined = requestContext.messageDirection;
156158
strOrUndefinedOrNull = requestContext.messageId;
157159
str = requestContext.path;

0 commit comments

Comments
 (0)