Which of the common types can I add to an S3 objects' metadata? Int, float, str, bool, ect ...?
Asked
Active
Viewed 720 times
1

John Rotenstein
- 241,921
- 22
- 380
- 470

Oliver Robie
- 818
- 2
- 11
- 30
-
They are US-ASCII strings afaik. – jarmod Apr 19 '20 at 14:37
-
Thanks @jarmod. Do you happen to have a source for it though? – Oliver Robie Apr 19 '20 at 15:32
2 Answers
1
See the documentation of User-Defined Object Metadata:
Each key-value pair must conform to US-ASCII when you are using REST and to UTF-8 when you are using SOAP or browser-based uploads via POST.
I'm assuming you're using REST.

jarmod
- 71,565
- 16
- 115
- 122
0
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.

Oliver Robie
- 818
- 2
- 11
- 30