aws-sdk-js-v3 icon indicating copy to clipboard operation
aws-sdk-js-v3 copied to clipboard

Expose items (not just pages) in paginators

Open humanzz opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe.

AWS SDK for Java 2.x introduced paginators - similar to paginators in the JavaScript SDK v3. One nice thing the Java version has is that the iterators expose an attribute to retrieve the items (not just the pages) e.g. (from https://aws.amazon.com/blogs/developer/aws-sdk-for-java-2-x-released/)

client.listTablesPaginator()
      .tableNames()

The JavaScript paginators only allow iterating over pages and users have to implement boilerplate code on top if they simply need the items.

The request is to introduce methods/properties to allow paginating items similar to Java SDK.

Describe the solution you'd like

Paginators to expose items and not just pages similar to the Java SDK implementation.

humanzz avatar Apr 30 '21 01:04 humanzz

Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.

github-actions[bot] avatar May 01 '22 00:05 github-actions[bot]

I believe this to still be a valuable thing to have.

humanzz avatar May 04 '22 18:05 humanzz

Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.

github-actions[bot] avatar Feb 19 '24 00:02 github-actions[bot]

The request is still valid.

humanzz avatar Feb 19 '24 22:02 humanzz