ECR.Client.describe_image_scan_findings
not honoring maxResults
for enhancedFindings
#3449
Labels
bug
This issue is a confirmed bug.
documentation
This is a problem with documentation.
service-api
This issue is caused by the service API, not the SDK implementation.
Describe the bug
Hi, I have an image that has
100 < N <= 1000
scan findings, and I've noticed that passing themaxResults
parameter with thedescribe_image_scan_findings
call does not affect the number of findings returned.Expected Behavior
I expected that I would get back > 100 results in
response['imageScanFindings']['enhancedFindings']
.Current Behavior
I get back exactly 100 findings in
response['imageScanFindings']['enhancedFindings']
, along with anextToken
, even though I setmaxResults = 1000
.Reproduction Steps
Have an image in ECR with image-scanning enabled that has > 100 findings.
Possible Solution
my best guess is that the
maxResults
parameter is only applied toresponse['imageScanFindings']['findings']
, and notresponse['imageScanFindings']['enhancedFindings']
.Additional Information/Context
I don't have an image that has > 100
findings
instead ofenhancedFindings
so I can't validate my hypothesis above.SDK version used
boto3==1.24.73 botocore==1.27.73
Environment details (OS name and version, etc.)
MacBook Pro M1 (2021), Mac OS Monterey 12.5.1, Python 3.10.6
The text was updated successfully, but these errors were encountered: