aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
26 lines (25 loc) • 887 B
TypeScript
import * as kinesis from '../../aws-kinesis';
import * as lambda from '../../aws-lambda';
import { StreamEventSource, StreamEventSourceProps } from './stream';
export interface KinesisEventSourceProps extends StreamEventSourceProps {
/**
* The time from which to start reading, in Unix time seconds.
*
* @default - no timestamp
*/
readonly startingPositionTimestamp?: number;
}
/**
* Use an Amazon Kinesis stream as an event source for AWS Lambda.
*/
export declare class KinesisEventSource extends StreamEventSource {
readonly stream: kinesis.IStream;
private _eventSourceMappingId?;
private startingPositionTimestamp?;
constructor(stream: kinesis.IStream, props: KinesisEventSourceProps);
bind(target: lambda.IFunction): void;
/**
* The identifier for this EventSourceMapping
*/
get eventSourceMappingId(): string;
}