@@ -2,8 +2,8 @@ import * as lambda from '@aws-cdk/aws-lambda';
2
2
import { Duration } from '@aws-cdk/core' ;
3
3
4
4
/**
5
- * The set of properties for event sources that follow the streaming model,
6
- * such as, Dynamo, Kinesis and Kafka.
5
+ * The set of properties for streaming event sources shared by
6
+ * Dynamo, Kinesis and Kafka.
7
7
*/
8
8
export interface BaseStreamEventSourceProps {
9
9
/**
@@ -21,13 +21,6 @@ export interface BaseStreamEventSourceProps{
21
21
*/
22
22
readonly batchSize ?: number ;
23
23
24
- /**
25
- * An Amazon SQS queue or Amazon SNS topic destination for discarded records.
26
- *
27
- * @default discarded records are ignored
28
- */
29
- readonly onFailure ?: lambda . IEventSourceDlq ;
30
-
31
24
/**
32
25
* Where to begin consuming the stream.
33
26
*/
@@ -50,8 +43,8 @@ export interface BaseStreamEventSourceProps{
50
43
}
51
44
52
45
/**
53
- * The set of properties for event sources that follow the streaming model,
54
- * such as, Dynamo, Kinesis.
46
+ * The set of properties for streaming event sources shared by
47
+ * Dynamo and Kinesis.
55
48
*/
56
49
export interface StreamEventSourceProps extends BaseStreamEventSourceProps {
57
50
/**
@@ -107,6 +100,13 @@ export interface StreamEventSourceProps extends BaseStreamEventSourceProps {
107
100
* @default - None
108
101
*/
109
102
readonly tumblingWindow ?: Duration ;
103
+
104
+ /**
105
+ * An Amazon SQS queue or Amazon SNS topic destination for discarded records.
106
+ *
107
+ * @default - discarded records are ignored
108
+ */
109
+ readonly onFailure ?: lambda . IEventSourceDlq ;
110
110
}
111
111
112
112
/**
0 commit comments