21 lines
544 B
TypeScript
21 lines
544 B
TypeScript
import type { IEventSourceMapping } from './event-source-mapping';
|
|
import type { IFunction } from './function-base';
|
|
/**
|
|
* A destination configuration
|
|
*/
|
|
export interface DlqDestinationConfig {
|
|
/**
|
|
* The Amazon Resource Name (ARN) of the destination resource
|
|
*/
|
|
readonly destination: string;
|
|
}
|
|
/**
|
|
* A DLQ for an event source
|
|
*/
|
|
export interface IEventSourceDlq {
|
|
/**
|
|
* Returns the DLQ destination config of the DLQ
|
|
*/
|
|
bind(target: IEventSourceMapping, targetHandler: IFunction): DlqDestinationConfig;
|
|
}
|