Add pagination support for App Runner ListServices
dgholz opened this issue · comments
Describe the bug
https://docs.aws.amazon.com/apprunner/latest/api/API_ListServices.html describes the ListServices
action as supporting pagination in the standard fashion (with MaxResults
and NextToken
), but the SDK and AWS CLI do not paginate the results.
Expected Behavior
aws apprunner list-services
returns all services
Current Behavior
The action returns no results, and a pagination token.
$ aws apprunner list-services
{
"ServiceSummaryList": [],
"NextToken": "<a long token string>"
}
Reproduction Steps
- Create a lot of App Runner services
- Run
aws apprunner list-services
- Observe that not all services are returned.
For the specific behaviour I reported, insert:
-
- Delete a lot of App Runner services, leaving older ones
Possible Solution
Please see #3115 as a possible solution, though I understand these files have to be provided from the upstream service.
Additional Information/Context
This is affecting users of the AWS CLI, see aws/aws-cli#8124.
SDK version used
not sure, using AWS CLI 2.15.17
Environment details (OS name and version, etc.)
macOS 14.3
Hey @dgholz, thanks for reaching out. I'm going to close this in favor of the tracking issue (aws/aws-sdk#704) opened in response to your pull request. Please refer to that issue for any updates.
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.