javascriptv3/example_code/s3/scenarios/object-locking/README.md
This example demonstrates how to use the AWS SDK for JavaScript (v3) 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.
For prerequisites, see the README in the javascriptv3 folder.
This example uses a workflow approach to demonstrate various aspects of S3 Object Locking. The workflow is divided into three stages:
node index.js -s deploy
node index.js -s demo
node index.js -s clean
⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README in the javascriptv3 folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0