AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The container element for Object Lock configuration parameters.

Inheritance Hierarchy

System.Object
  Amazon.S3.Model.ObjectLockConfiguration

Namespace: Amazon.S3.Model
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z

Syntax

C#
public class ObjectLockConfiguration

The ObjectLockConfiguration type exposes the following members

Constructors

NameDescription
Public Method ObjectLockConfiguration()

Properties

NameTypeDescription
Public Property ObjectLockEnabled Amazon.S3.ObjectLockEnabled

Gets and sets the property ObjectLockEnabled.

Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled when you apply ObjectLockConfiguration to a bucket.

Public Property Rule Amazon.S3.Model.ObjectLockRule

Gets and sets the property Rule.

Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ObjectLockConfiguration to a bucket. Bucket settings require both a mode and a period. The period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer