aws-cdk-lib.aws_s3.ObjectLockMode

enum ObjectLockMode

LanguageType name
.NETAmazon.CDK.AWS.S3.ObjectLockMode
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awss3#ObjectLockMode
Javasoftware.amazon.awscdk.services.s3.ObjectLockMode
Pythonaws_cdk.aws_s3.ObjectLockMode
TypeScript (source)aws-cdk-lib » aws_s3 » ObjectLockMode

Modes in which S3 Object Lock retention can be configured.

See also: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-overview.html#object-lock-retention-modes

Members

NameDescription
GOVERNANCEThe Governance retention mode.
COMPLIANCEThe Compliance retention mode.

GOVERNANCE

The Governance retention mode.

With governance mode, you protect objects against being deleted by most users, but you can still grant some users permission to alter the retention settings or delete the object if necessary. You can also use governance mode to test retention-period settings before creating a compliance-mode retention period.


COMPLIANCE

The Compliance retention mode.

When an object is locked in compliance mode, its retention mode can't be changed, and its retention period can't be shortened. Compliance mode helps ensure that an object version can't be overwritten or deleted for the duration of the retention period.