IBM / ibm-cos-sdk-js

ibm-cos-sdk-js
Apache License 2.0
38 stars 19 forks source link

putObjectRetention API #53

Closed LYHuang closed 5 years ago

LYHuang commented 5 years ago

Hello, I was checking S3 Object retention API and found that cos-sdk doesn't support putObjectRetention. I also tried to add { Expires: Date } params to upload function but it is not work. Is there any way I can use to set up individual object's retention without setting global bucket expiration rule? Thanks.

nglange commented 5 years ago

Hello. IBM COS actually has a different retention policy framework than AWS S3. You can read about it in the documentation.

We have recently added support for bucket lifecycle policies if you need to schedule deletion of objects, but the { Expires: Date } param simply adds some cache-control metadata to let a CDN know when the object is no longer cacheable.

LYHuang commented 5 years ago

Ah, get it. Thanks for the help.