Class ObjectLockMode
Modes in which S3 Object Lock retention can be configured.
Inheritance
System.Object
ObjectLockMode
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class ObjectLockMode : Enum
Syntax (vb)
Public NotInheritable Class ObjectLockMode
Inherits
Enum
Remarks
Synopsis
Fields
COMPLIANCE | The Compliance retention mode. |
GOVERNANCE | The Governance retention mode. |
value__ |
Fields
COMPLIANCE
The Compliance retention mode.
public const ObjectLockMode COMPLIANCE
Field Value
Type | Description |
---|---|
ObjectLockMode |
Remarks
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.
GOVERNANCE
The Governance retention mode.
public const ObjectLockMode GOVERNANCE
Field Value
Type | Description |
---|---|
ObjectLockMode |
Remarks
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.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |