Reputation: 447
I have used User-Defined Metadata data to store the file in S3 bucket. Lets say my meta data would be like
metaData = {
"title": "some random user title",
"description": "some random user description"
}
I understand that i can download file using the object key and the bucket name. I am looking whether there any way/options to get/retrieve/list the file by passing only the bucket name and User-Defined Metadata used for the object to upload in S3.
And also to know the actual usage of User-Defined Metadata
Any guidance or suggestions would greatly helpful.!
Upvotes: 8
Views: 13288
Reputation: 1
Now, S3 Object Storage from Viettel IDC supported search/list objets from metadata. VNese docs: https://viettelidc.com.vn/uploadimage/Root/root/270223-hng-dn-tch-hp-object-metadata-search-27021.pdf
Upvotes: -2
Reputation: 270144
There is no native operation in Amazon S3 that can locate/retrieve objects via Metadata.
Metadata can be retrieved from objects, but cannot be used to search for objects. Also, only limited Metadata can be retrieved as part of an object listing.
An alternative would be to use Amazon S3 Inventory - Amazon Simple Storage Service. This only provides the listing once per day, but it can include metadata. You could use these files to locate objects based on metadata.
See:
Upvotes: 11