Closed lreeder-arpio closed 1 week ago
Thanks for reporting this issue. I could reproduce the behavior you described, also in the JS SDK as well. This issue therefore resides in the underlying ListResources API so we will need to escalate this to the Cloud Control team. I created a new issue for this in our cross-SDK repository to track going forward: https://github.com/aws/aws-sdk/issues/764. Please refer to that issue for updates, and thanks again for bringing this to our attention.
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
When using the Boto CloudControl API to list API gateway keys (TypeName
AWS::ApiGateway::ApiKey
), only 25 resources are returned even though the account contains many more and the MaxResults argument is 100. In addition, the paginator only returns one page with 25 resourcesExpected Behavior
When given
TypeName=AWS::ApiGateway::ApiKey
andMaxItems=100
,list_resources
API call should return 100 resources or all the resources in the account, whichever is less.Current Behavior
When given
TypeName=AWS::ApiGateway::ApiKey
andMaxItems=100
,list_resources
API call only returns 25 resources, even though more are in the account.Reproduction Steps
Total item count is 25, and only 25 items are returned
Alternatively, use pagination to list the API keys:
Only one page with 25 resources are returned.
Possible Solution
No response
Additional Information/Context
Tested in us-east-1
The API Gateway Boto API call
get_api_keys
does work correctly and returns all API keys.SDK version used
Boto3 1.28.66
Environment details (OS name and version, etc.)
Linux 5.15.0-107-generic, Python 3.11.7