我可以将哪些变量类型添加到 s3 对象的元数据中?

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

我可以将哪些常见类型添加到 S3 对象的元数据中?整数、浮点数、海峡、布尔等...?

所以我假设,根据 this 它们必须是字符串类型

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.

参见 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.

我假设您使用的是 REST。