aws-sdk-rust
aws-sdk-rust copied to clipboard
S3 ListObjectsV2 query parameter
trafficstars
Describe the feature
I've looked at the documentation at https://docs.rs/aws-sdk-s3/0.28.0/aws_sdk_s3/operation/list_objects_v2/builders/struct.ListObjectsV2FluentBuilder.html and the examples provided in this repo, and I cannot see how I'd add a --query parameter to this API call as I would do the following with the Python CLI app:
aws --endpoint=$AWS_ENDPOINT s3api list-objects-v2 --bucket bucket-name --query 'Contents[?LastModified<`2023-07-01`].Key' --output=text
Use Case
I'd like to directly ask the API to list all objects older than a week/year old without having to go through each individual object in a bucket and read their last-modified timestamp.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
A note for the community
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue, please leave a comment