python/example_code/s3/scenarios/object-locking/README.md
This example demonstrates how to use the AWS SDK for Python (boto3) to work with Amazon Simple Storage Service (Amazon S3) object locking features. The workflow shows how to create, update, view, and modify object locks, as well as how locked objects behave regarding requests to delete and overwrite.
Amazon S3 Object Lock can help prevent Amazon S3 objects from being deleted or overwritten for a fixed amount of time or indefinitely. Object Lock can help meet regulatory requirements or protect against object changes or deletion.
To run these examples, you need:
python pip install -r requirements.txtThis example uses a workflow approach to demonstrate various aspects of S3 Object Locking. The workflow is divided into three stages:
To run this workflow, pull AWS tokens and run the command below:
python main.py
© Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0