mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Added missing field apiKeyId to API Gateway request context (#25195)
* Added missing field `apiKeyId` to API Gateway request context `$context.identity.apiKeyId`: The API key ID associated with the key-enabled API request. See the [AWS documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html) and search for `apiKeyId`. * Added missing tests for new apiKeyId field in aws-lambda typings
This commit is contained in:
parent
0c0e3799ec
commit
02ed6f6b49
@ -83,6 +83,7 @@ str = apiGwEvtReqCtx.httpMethod;
|
||||
strOrNull = apiGwEvtReqCtx.identity.accessKey;
|
||||
strOrNull = apiGwEvtReqCtx.identity.accountId;
|
||||
strOrNull = apiGwEvtReqCtx.identity.apiKey;
|
||||
strOrNull = apiGwEvtReqCtx.identity.apiKeyId;
|
||||
strOrNull = apiGwEvtReqCtx.identity.caller;
|
||||
strOrNull = apiGwEvtReqCtx.identity.cognitoAuthenticationProvider;
|
||||
strOrNull = apiGwEvtReqCtx.identity.cognitoAuthenticationType;
|
||||
|
||||
1
types/aws-lambda/index.d.ts
vendored
1
types/aws-lambda/index.d.ts
vendored
@ -31,6 +31,7 @@ export interface APIGatewayEventRequestContext {
|
||||
accessKey: string | null;
|
||||
accountId: string | null;
|
||||
apiKey: string | null;
|
||||
apiKeyId: string | null;
|
||||
caller: string | null;
|
||||
cognitoAuthenticationProvider: string | null;
|
||||
cognitoAuthenticationType: string | null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user