问题描述
是否可以使用lambda函数添加或更新s3对象元数据而无需复制对象? 此2岁的帖子说我们确实需要进行复制,但是它已经有2年历史了,所以也许情况已经变了吗?
Is it possible to add or update an s3 objects metadata with a lambda function without making a copy of the object? This 2 year old post says that we do need to make a copy, but its 2 years old, so maybe things have changed?
推荐答案
从某种意义上说,从根本上说,什么都没有改变,因为对象是不可变的,而元数据是对象的一部分.要改变"不可变的对象需要复制并替换.
In one sense, nothing has changed, fundamentally, because objects are immutable, and metadata is part of the object. To "change" an immutable object requires a copy and replace.
但是,S3对象现在支持标记,这是另一类元数据",附加到对象而不是对象的一部分.
However, S3 objects now support tagging, which is a different class of "metadata," attached to -- rather than part of -- the object.
另请参阅对象标签和对象元数据之间的区别?
这篇关于在不执行对象复制的情况下使用lambda更新Amazon s3对象元数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!