@types/aws-lambda
Advanced tools
Comparing version 8.10.103 to 8.10.104
{ | ||
"name": "@types/aws-lambda", | ||
"version": "8.10.103", | ||
"version": "8.10.104", | ||
"description": "TypeScript definitions for AWS Lambda", | ||
@@ -228,4 +228,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b9bfc7dc228853d320bf588af810a6799f5b872f845fbc3d60a83bde9aca1b33", | ||
"typesPublisherContentHash": "12503f4a05de0d1d2531953c228f0954a027a5691574f0cf77e52bd0dfd58d79", | ||
"typeScriptVersion": "4.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 06 Sep 2022 20:32:41 GMT | ||
* Last updated: Tue, 13 Sep 2022 21:02:49 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `AWSLambda` |
@@ -6,2 +6,5 @@ import { Handler } from "../handler"; | ||
// tslint:disable-next-line:void-return | ||
export type KinesisStreamTumblingWindowHandler = Handler<KinesisStreamTumblingWindowEvent, KinesisStreamStateResponse | void>; | ||
// Kinesis Streams | ||
@@ -32,3 +35,15 @@ // https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-kinesis-streams | ||
// https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html | ||
// https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-windows | ||
export interface KinesisStreamTumblingWindowEvent extends KinesisStreamEvent { | ||
window: { start: string; end: string }; | ||
state?: { [key: string]: any }; | ||
isFinalInvokeForWindow: boolean; | ||
isWindowTerminatedEarly: boolean; | ||
} | ||
export interface KinesisStreamStateResponse extends Partial<KinesisStreamBatchResponse> { | ||
state: { [key: string]: any }; | ||
} | ||
// https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-batchfailurereporting | ||
export interface KinesisStreamBatchResponse { | ||
@@ -35,0 +50,0 @@ batchItemFailures: KinesisStreamBatchItemFailure[]; |
131395
3115