amazon-web-servicesamazon-s3database-metadata

What variable types can I add to an s3 objects' metadata?


Which of the common types can I add to an S3 objects' metadata? Int, float, str, bool, ect ...?


Solution

  • So I assume, according to this that they must be string types

    You can assign user-defined metadata to an object. User-defined metadata must begin with the prefix "x-amz-meta-", otherwise Amazon S3 will not set the key value pair as you define it. You define custom metadata by adding a name that you choose to the x-amz-meta- key. This creates a custom key. For example, if you add the custom name alt-name, the metadata key would be x-amz-meta-alt-name.