NOTE: I'm actually attempting this in Python and the Boto3 library, but I'm going to use the AWS CLI to explain what I'm trying to do.
I'm making a list-object-versions call to my bucket in AWS...
aws s3api list-object-versions --bucket averyuniquebucketname --delimiter "/"
The response is like the following...
{
"DeleteMarkers": [
...snip...
],
"CommonPrefixes": [
...snip...
],
"Versions": [
...snip...
]
}
WHAT I would like is to tell AWS not to return any results with DeleteMarkers.
Any ideas as to how I can use the --query and JMESPath to eliminate the DeleteMarkers but preserve CommonPrefixes & Versions in the response?