aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
25 lines (24 loc) • 845 B
TypeScript
import type { StreamEventSourceProps } from './stream';
import { StreamEventSource } from './stream';
import type * as dynamodb from '../../aws-dynamodb';
import type * as lambda from '../../aws-lambda';
export interface DynamoEventSourceProps extends StreamEventSourceProps {
}
/**
* Use an Amazon DynamoDB stream as an event source for AWS Lambda.
*/
export declare class DynamoEventSource extends StreamEventSource {
private readonly table;
private _eventSourceMappingId?;
private _eventSourceMappingArn?;
constructor(table: dynamodb.ITable, props: DynamoEventSourceProps);
bind(target: lambda.IFunction): void;
/**
* The identifier for this EventSourceMapping
*/
get eventSourceMappingId(): string;
/**
* The ARN for this EventSourceMapping
*/
get eventSourceMappingArn(): string;
}