1

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

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Oliver Robie
  • 818
  • 2
  • 11
  • 30

2 Answers2

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