Pagination methods
Some API operations can return a huge number of results. For example, let's say that we need to issue an API call to retrieve a list of items from an S3 bucket. Now, let's assume the S3 bucket contains tons of items, and returning all of them in one API call is not efficient. The AWS Go SDK provides a feature called Pagination to help in that scenario. With pagination, you get your results in multiple pages.
You can read each page at a time, and then move to the next page of items when ready to process new items. API calls that support pagination is similar to <method name>Pages. For example, the pagination API method call that corresponds to the ListObjects S3 method is ListObjectsPages. The ListObjectPages method will ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access