Skip to main content
Endpoints that accept pagination_token or next_token return a lazy Ruby Enumerator that fetches each page on demand until meta.next_token is absent.

Iterating with an Enumerator

Fetching just the first page

Passing a block directly