- 最新
- 最多得票
- 最多評論
You need to use the separate put-object-lock-configuration command for that.
As to versioning, no, versioning is required to use object lock. You can set a retention value for an object during it's initial PUT. In the CLI this would be --object-lock-retain-until-date.
Keep in mind, with Object Lock, it does not prevent a delete command upon an object, but upon an object version. If you delete an object in an Object Lock bucket, a delete marker will be created. The actual object version that is protected by Object Lock will remain, can be restored or accessed directly using it's object version ID, and you will not be able to delete that object version.
As you can see, object versioning is critical to the use of Object Lock and will need be enabled to make use of the feature.
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 10 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前