Skip to content

Commit

Permalink
Add common source properties
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelManke committed Mar 24, 2023
1 parent ce9c3f1 commit 1dc2c33
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions text/0473-eventbridge-pipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,24 @@ export interface IPipeSource {
grantRead(grantee: IRole): void;
}
```
and the Source constructor properties interface:
and all Source constructor share the interface
```ts
export interface IPipeSourceProps {
export interface IPipeSourceBaseProps {
/**
* The maximum number of records to include in each batch.
*/
batchSize?: number;

/**
* The maximum length of a time to wait for events.
*/
maximumBatchingWindowInSeconds?: number;
}
```
one specific source interface is e.g.:

```ts
export interface IPipeSourceProps extends IPipeSourceBaseProps{
/**
* The ARN of the source
*/
Expand Down

0 comments on commit 1dc2c33

Please sign in to comment.