Closed rustyconover closed 1 week ago
Thanks for reaching out. Linking paginator docs for reference: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/paginators.html
There is some variation in the models across services, so these are not completely standardized. There are not plans to do this, but if you are having issues with specific paginator, then we can raise those with service teams on a case-by-case basis. Not every service API supports PageSize
, but if you're having an issue with a specific paginator please let us know and we can reach out to the service team regarding the model if necessary.
Hi @tim-finnigan,
If aligning the service definition models with the data table I provided isn’t feasible, I’ll implement a workaround on my end.
Thanks for taking the time to look into this.
Best, Rusty
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Describe the bug
While working to implement the use of
PageSize
as part of thePaginationConfig
across all services, I’ve encountered a few issues within the service models.I’ve put together a report that highlights these issues, summarized in the
type
column below. Here's what the entries in the type column represent:"Missing limit member": The operation does not define a member that specifies how to set PageSize in the API call. "Limit type is not an integer": The shape that specifies the limit is not an integer. The actual type and name are included. "Missing max": The
max
attribute is missing in the shape's metadata, which should define the maximum number of results. "Missing min": Themin
attribute is missing in the shape's metadata, which should define the minimum number of results.Could you please help address these inconsistencies in the service models so that
PageSize
can be used seamlessly across all services?Expected Behavior
I expected that setting
PageSize
inPaginationConfig
will work across all services and all operations.Current Behavior
Exceptions are raised:
PageSize parameter is not supported for the pagination interface for this operation.
Reproduction Steps
Create any service client, create a pagination for one of the operations listed above, receive the exception.
Possible Solution
Change the service models to resolve the defects listed above.
Additional Information/Context
I'm happy to supply the code that produced this report.
SDK version used
1.35.5
Environment details (OS name and version, etc.)
Mac OS X