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.

A Retention configuration for an object.

Inheritance Hierarchy

System.Object
  Amazon.S3.Model.ObjectLockRetention

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

Syntax

C#
public class ObjectLockRetention

The ObjectLockRetention type exposes the following members

Constructors

NameDescription
Public Method ObjectLockRetention()

Properties

NameTypeDescription
Public Property EventHold Amazon.S3.ObjectLockEventHold

Gets and sets the property EventHold.

The event hold status for the object. Set to ON to enable an event hold or OFF to disable it.

Public Property EventHoldDuration Amazon.S3.Model.EventHoldDuration

Gets and sets the property EventHoldDuration.

The event hold duration for the object. Specifies how long the object remains protected after the event hold is released.

Public Property Mode Amazon.S3.ObjectLockRetentionMode

Gets and sets the property Mode.

Indicates the Retention mode for the specified object.

Public Property RetainUntilDate System.Nullable<System.DateTime>

Gets and sets the property RetainUntilDate.

The date on which this Object Lock Retention will expire.

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