Ongoing service disruptions
For the most recent update on ongoing service disruptions affecting the AWS Middle East (UAE) Region (ME-CENTRAL-1), refer to the AWS Health Dashboard. For information on AWS Service migration, see How do I migrate my services to another region?
【以下的问题经过翻译处理】 我尝试使用以下命令:
aws s3api list-objects-v2 --bucket BUCKETNAME --query 'Contents[?LastModified>=2022-12-28].Key && sort_by(Contents, &Size)[-5:]'
aws s3api list-objects-v2 --bucket BUCKETNAME --query 'Contents[?LastModified>=
].Key && sort_by(Contents, &Size)[-5:]'
虽然它按最大大小搜索5个文件,但是文件可能在2022-12-28之前最后修改,似乎查询的一部分被忽略了。
我做错了什么?使用上述命令,我期望看到按最大大小排序且在2022-12-28之后修改的文件。
提前致谢。
【以下的回答经过翻译处理】 如果您需要在2022年12月28日之后修改的对象中以大小升序排序的5个对象键,可以考虑使用以下命令:
aws s3api list-objects-v2 --bucket BUCKETNAME --query 'sort_by(Contents[?LastModified>='"2022-12-28"'], &Size)[-5:].Key'。
aws s3api list-objects-v2 --bucket BUCKETNAME --query 'sort_by(Contents[?LastModified>=
], &Size)[-5:].Key'
您未登录。 登录 发布回答。
一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。