Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/aws-lambda

Package Overview
Dependencies
Maintainers
1
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/aws-lambda - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

46

aws-lambda/index.d.ts

@@ -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;

4

aws-lambda/package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc