awslabs/aws-sdk-rust

In `aws_sdk_eventbridge`, there is no pagination helper for `ListRules`

dcormier opened this issue · 1 comments

Describe the feature

Many of the SDK's fluent builders have a method allow the SDK to handle pagination for you. aws_sdk_eventbridge::operation::list_rules::builders::ListRulesFluentBuilder does not. This means you have to manually paginate to retrieve all the rules from the EventBridge ListRules API.

Use Case

Retrieving all the rules when calling the EventBridge ListRules API.

Proposed Solution

Add the documented pagination helper, please.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

A note for the community

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment

Hi @dcormier, thanks for the report! Unfortunately this is not something we in the SDK team can just add. Pagination is modeled in a service's smithy model (see this paginated trait in the dynamo model for an example). Eventbridge would have to update their service model to use the smithy pagination trait so that our code generator for the SDK would know to add a paginator for those APIs.