awslabs / aws-sdk-rust

AWS SDK for the Rust Programming Language
https://awslabs.github.io/aws-sdk-rust/
Apache License 2.0
3.01k stars 248 forks source link

In `aws_sdk_eventbridge`, there is no pagination helper for `ListTargetsByRule` #1206

Open dcormier opened 1 week ago

dcormier commented 1 week ago

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_targets_by_rule::builders::ListTargetsByRuleFluentBuilder does not. This means you have to manually paginate to retrieve all the rules from the EventBridge ListTargetsByRule API.

Use Case

Retrieving all the targets when calling the EventBridge ListTargetsByRule API.

Proposed Solution

Add the documented pagination helper, please.

Other Information

Similar to #1205.

Acknowledgements

A note for the community

Community Note

landonxjames commented 1 week ago

See https://github.com/awslabs/aws-sdk-rust/issues/1205#issuecomment-2406153714 for a more detailed comment explaining why we cannot do this at the moment.