-
Notifications
You must be signed in to change notification settings - Fork 962
Description
Describe the bug
AWS SDK v2 provides iterables/paginators for paginated operations but GetCostAndUsage has no iterable method such as getCostAndUsagePaginator.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
I expected all methods that support iteration tokens to have a paginator method.
Current Behavior
Users are required to use the getCostAndUsage method and manage propagation of the pagination token themselves.
Reproduction Steps
Note that no paginator is defined in https://github.com/aws/aws-sdk-java-v2/blob/master/services/costexplorer/src/main/resources/codegen-resources/paginators-1.json for GetCostAndUsage even though the API accepts a pagination token.
Possible Solution
Implement a paginator in https://github.com/aws/aws-sdk-java-v2/blob/master/services/costexplorer/src/main/resources/codegen-resources/paginators-1.json
Additional Information/Context
No response
AWS Java SDK version used
2.38.9
JDK version used
openjdk version "24.0.1" 2025-04-15 OpenJDK Runtime Environment Corretto-24.0.1.9.1 (build 24.0.1+9-FR) OpenJDK 64-Bit Server VM Corretto-24.0.1.9.1 (build 24.0.1+9-FR, mixed mode, sharing)
Operating System and version
OSX Tahoe 26.1