Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: update to list_objects_v2 #33

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Conversation

archieco
Copy link
Contributor

@archieco archieco commented Feb 21, 2023

Description of changes:

This addresses two Amazon Code Guru items:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This addresses two Amazon Code Guru items:

- The API method `list_objects` returns paginated results instead of all results. Consider using the pagination API or checking one of the following keys in the response to verify that all results were returned: `IsTruncated`, `Marker`, `NextMarker`, `NextToken`. [Learn more](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/paginators.html)
- This code uses an outdated API. [list_objects_v2 is the revised List Objects API, and we recommend you use this revised API for new application developments](https://docs.aws.amazon.com/AmazonS3/latest/API/v2-RESTBucketGET.html).
@archieco archieco merged commit a62a788 into main Feb 22, 2023
scheurik pushed a commit that referenced this pull request Jun 14, 2024
This addresses two Amazon Code Guru items:

- The API method `list_objects` returns paginated results instead of all results. Consider using the pagination API or checking one of the following keys in the response to verify that all results were returned: `IsTruncated`, `Marker`, `NextMarker`, `NextToken`. [Learn more](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/paginators.html)
- This code uses an outdated API. [list_objects_v2 is the revised List Objects API, and we recommend you use this revised API for new application developments](https://docs.aws.amazon.com/AmazonS3/latest/API/v2-RESTBucketGET.html).
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants