- Más nuevo
- Más votos
- Más comentarios
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.
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 8 meses