How to change metadata on an object in Amazon S3

前端 未结 7 1013
迷失自我
迷失自我 2020-12-24 06:01

If you have already uploaded an object to an Amazon S3 bucket, how do you change the metadata using the API? It is possible to do this in the AWS Management Console, but it

7条回答
  •  一生所求
    2020-12-24 06:22

    If you want your metadata stored remotely use set_remote_metadata

    Example: key.set_remote_metadata({'to_be': 'added'}, ['key', 'to', 'delete'], {True/False})

    Implementation is here: https://github.com/boto/boto/blob/66b360449812d857b4ec6a9834a752825e1e7603/boto/s3/key.py#L1875

提交回复
热议问题