@types/aws-lambda
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -42,2 +42,9 @@ // Type definitions for AWS Lambda | ||
// API Gateway CustomAuthorizer "event" | ||
interface CustomAuthorizerEvent { | ||
type: string; | ||
authorizationToken: string; | ||
methodArn: string; | ||
} | ||
// SNS "event" | ||
@@ -185,2 +192,39 @@ interface SNSMessageAttribute { | ||
/** | ||
* API Gateway CustomAuthorizer AuthResponse. | ||
* http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output | ||
*/ | ||
interface AuthResponse { | ||
principalId: string; | ||
policyDocument: PolicyDocument; | ||
context?: AuthResponseContext; | ||
} | ||
/** | ||
* API Gateway CustomAuthorizer AuthResponse.PolicyDocument. | ||
* http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output | ||
*/ | ||
interface PolicyDocument { | ||
Version: string; | ||
Statement: [Statement]; | ||
} | ||
/** | ||
* API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement. | ||
* http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output | ||
*/ | ||
interface Statement { | ||
Action: string | [string]; | ||
Effect: string; | ||
Resource: string | [string]; | ||
} | ||
/** | ||
* API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement. | ||
* http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output | ||
*/ | ||
interface AuthResponseContext { | ||
[name: string]: string | number | boolean; | ||
} | ||
/** | ||
* AWS Lambda handler function. | ||
@@ -195,2 +239,3 @@ * http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html | ||
export type ProxyHandler = (event: APIGatewayEvent, context: Context, callback?: ProxyCallback) => void; | ||
export type CustomAuthorizerHandler = (event: CustomAuthorizerEvent, context: Context, callback?: CustomAuthorizerCallback) => void; | ||
@@ -206,3 +251,4 @@ /** | ||
export type ProxyCallback = (error?: Error, result?: ProxyResult) => void; | ||
export type CustomAuthorizerCallback = (error?: Error, result?: AuthResponse) => void; | ||
export as namespace AWSLambda; |
{ | ||
"name": "@types/aws-lambda", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "TypeScript definitions for AWS Lambda", | ||
@@ -40,4 +40,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "c308e9c73e26f6043389dbea212757c0d394acf37bad3479d8dc6b87e8d32de5", | ||
"typesPublisherContentHash": "8cabbe1f915ebdb3d6743f83d745a1ce5d73620a4b690cc2836b2f3629d62276", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/aws-lambda | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda | ||
Additional Details | ||
* Last updated: Wed, 22 Mar 2017 00:26:27 GMT | ||
* Last updated: Mon, 10 Apr 2017 21:51:00 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: AWSLambda |
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
9768
228