- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa