Skip to content

Commit 300fed9

Browse files
committed
feat(types): add pagination stopOnSameToken option
1 parent 683beb4 commit 300fed9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/types/src/pagination.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,12 @@ export interface PaginationConfiguration {
1313
client: Client<any, any, any>;
1414
pageSize?: number;
1515
startingToken?: any;
16+
/**
17+
* For some APIs, such as CloudWatchLogs events, the next page token will always
18+
* be present.
19+
*
20+
* When true, this config field will have the paginator stop when the token doesn't change
21+
* instead of when it is not present.
22+
*/
23+
stopOnSameToken?: boolean;
1624
}

0 commit comments

Comments
 (0)