@types/aws-lambda
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -19,2 +19,3 @@ // Type definitions for AWS Lambda | ||
// David Hayden <https://github.com/Haydabase> | ||
// Chris Redekop <https://github.com/repl-chris> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -533,2 +534,27 @@ // TypeScript Version: 2.3 | ||
// Kinesis Streams | ||
// https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-kinesis-streams | ||
export interface KinesisStreamRecordPayload { | ||
approximateArrivalTimestamp: number; | ||
data: string; | ||
kinesisSchemaVersion: string; | ||
partitionKey: string; | ||
sequenceNumber: string; | ||
} | ||
export interface KinesisStreamRecord { | ||
awsRegion: string; | ||
eventID: string; | ||
eventName: string; | ||
eventSource: string; | ||
eventSourceARN: string; | ||
eventVersion: string; | ||
invokeIdentityArn: string; | ||
kinesis: KinesisStreamRecordPayload; | ||
} | ||
export interface KinesisStreamEvent { | ||
Records: KinesisStreamRecord[]; | ||
} | ||
/** | ||
@@ -600,4 +626,6 @@ * AWS Lambda handler function. | ||
// TODO: Kinesis (should be very close to DynamoDB stream?) | ||
export type KinesisStreamHandler = Handler<KinesisStreamEvent, void>; | ||
// TODO: Kinesis Firehose | ||
export type CustomAuthorizerHandler = Handler<CustomAuthorizerEvent, CustomAuthorizerResult>; | ||
@@ -604,0 +632,0 @@ export type CustomAuthorizerCallback = Callback<CustomAuthorizerResult>; |
{ | ||
"name": "@types/aws-lambda", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"description": "TypeScript definitions for AWS Lambda", | ||
@@ -84,2 +84,7 @@ "license": "MIT", | ||
"githubUsername": "Haydabase" | ||
}, | ||
{ | ||
"name": "Chris Redekop", | ||
"url": "https://github.com/repl-chris", | ||
"githubUsername": "repl-chris" | ||
} | ||
@@ -94,4 +99,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "a68338962a79b4104f7f69e0d1b9114c5b63733ff79881941534d5483f41923b", | ||
"typesPublisherContentHash": "41d5a4faf69974dd337ec59e50fb2146907b09a79cb55a4e5061198ccd32c243", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 22 Mar 2018 21:28:49 GMT | ||
* Last updated: Fri, 06 Apr 2018 19:54:30 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: AWSLambda | ||
# Credits | ||
These definitions were written by James Darbyshire <https://github.com/darbio/aws-lambda-typescript>, Michael Skarum <https://github.com/skarum>, Stef Heyenrath <https://github.com/StefH/DefinitelyTyped>, Toby Hede <https://github.com/tobyhede>, Rich Buggy <https://github.com/buggy>, Yoriki Yamaguchi <https://github.com/y13i>, wwwy3y3 <https://github.com/wwwy3y3>, Ishaan Malhi <https://github.com/OrthoDex>, Michael Marner <https://github.com/MichaelMarner>, Daniel Cottone <https://github.com/daniel-cottone>, Kostya Misura <https://github.com/kostya-misura>, Markus Tacker <https://github.com/coderbyheart>, Palmi Valgeirsson <https://github.com/palmithor>, Danilo Raisi <https://github.com/daniloraisi>, Simon Buchan <https://github.com/simonbuchan>, David Hayden <https://github.com/Haydabase>. | ||
These definitions were written by James Darbyshire <https://github.com/darbio/aws-lambda-typescript>, Michael Skarum <https://github.com/skarum>, Stef Heyenrath <https://github.com/StefH/DefinitelyTyped>, Toby Hede <https://github.com/tobyhede>, Rich Buggy <https://github.com/buggy>, Yoriki Yamaguchi <https://github.com/y13i>, wwwy3y3 <https://github.com/wwwy3y3>, Ishaan Malhi <https://github.com/OrthoDex>, Michael Marner <https://github.com/MichaelMarner>, Daniel Cottone <https://github.com/daniel-cottone>, Kostya Misura <https://github.com/kostya-misura>, Markus Tacker <https://github.com/coderbyheart>, Palmi Valgeirsson <https://github.com/palmithor>, Danilo Raisi <https://github.com/daniloraisi>, Simon Buchan <https://github.com/simonbuchan>, David Hayden <https://github.com/Haydabase>, Chris Redekop <https://github.com/repl-chris>. |
Sorry, the diff of this file is not supported yet
25768
554