@types/aws-lambda
Advanced tools
Comparing version 8.10.110 to 8.10.111
{ | ||
"name": "@types/aws-lambda", | ||
"version": "8.10.110", | ||
"version": "8.10.111", | ||
"description": "TypeScript definitions for AWS Lambda", | ||
@@ -223,4 +223,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "221da779294ceab9c513b7f2539c7b6527f8c55e23879cacb9369243e83cbe30", | ||
"typesPublisherContentHash": "4fe790cbd1e56ce8685d5c047b32ba9a1ebf996fe62da91d01cdd6383ee2e233", | ||
"typeScriptVersion": "4.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 26 Jan 2023 23:32:36 GMT | ||
* Last updated: Fri, 24 Feb 2023 00:02:37 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `AWSLambda` |
@@ -6,3 +6,3 @@ import { | ||
} from '../common/api-gateway'; | ||
import { Callback, Handler } from '../handler'; | ||
import { Callback, CognitoIdentity, Handler } from '../handler'; | ||
@@ -52,2 +52,11 @@ /** | ||
/** | ||
* Works with HTTP API integration Payload Format version 2.0 adds IAM Authroizer to RequestContext | ||
* @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html | ||
*/ | ||
export type APIGatewayProxyHandlerV2WithIAMAuthorizer<T = never> = Handler< | ||
APIGatewayProxyEventV2WithIAMAuthorizer, | ||
APIGatewayProxyResultV2<T> | ||
>; | ||
/** | ||
* Works with HTTP API integration Payload Format version 2.0 | ||
@@ -242,2 +251,17 @@ * @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html | ||
/** | ||
* IAM Authorizer Payload | ||
*/ | ||
export interface APIGatewayEventRequestContextIAMAuthorizer { | ||
iam: { | ||
accessKey: string; | ||
accountId: string; | ||
callerId: string; | ||
cognitoIdentity: null; | ||
principalOrgId: string; | ||
userArn: string; | ||
userId: string; | ||
}; | ||
} | ||
export type APIGatewayProxyEventV2WithJWTAuthorizer = APIGatewayProxyEventV2WithRequestContext< | ||
@@ -251,2 +275,9 @@ APIGatewayEventRequestContextV2WithAuthorizer<APIGatewayEventRequestContextJWTAuthorizer> | ||
/** | ||
* Event type when invoking Lambda function URLs with IAM authorizer | ||
*/ | ||
export type APIGatewayProxyEventV2WithIAMAuthorizer = APIGatewayProxyEventV2WithRequestContext< | ||
APIGatewayEventRequestContextV2WithAuthorizer<APIGatewayEventRequestContextIAMAuthorizer> | ||
>; | ||
export interface APIGatewayEventRequestContextV2WithAuthorizer<TAuthorizer> extends APIGatewayEventRequestContextV2 { | ||
@@ -253,0 +284,0 @@ authorizer: TAuthorizer; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134358
3188