Skip to content

Commit

Permalink
feat(types): add pagination stopOnSameToken option
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Apr 12, 2022
1 parent 683beb4 commit 300fed9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/types/src/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@ export interface PaginationConfiguration {
client: Client<any, any, any>;
pageSize?: number;
startingToken?: any;
/**
* For some APIs, such as CloudWatchLogs events, the next page token will always
* be present.
*
* When true, this config field will have the paginator stop when the token doesn't change
* instead of when it is not present.
*/
stopOnSameToken?: boolean;
}

0 comments on commit 300fed9

Please sign in to comment.