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 lifecycle rule for individual objects in an Amazon S3 bucket.
For more information see, Managing your storage lifecycle in the Amazon S3 User Guide.
Namespace: Amazon.S3.Model
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z
public class LifecycleRule
The LifecycleRule type exposes the following members
Name | Description | |
---|---|---|
![]() |
LifecycleRule() |
Name | Type | Description | |
---|---|---|---|
![]() |
AbortIncompleteMultipartUpload | Amazon.S3.Model.LifecycleRuleAbortIncompleteMultipartUpload |
Gets and sets the property AbortIncompleteMultipartUpload. |
![]() |
Expiration | Amazon.S3.Model.LifecycleRuleExpiration |
Gets and sets the property Expiration. Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker. |
![]() |
Filter | Amazon.S3.Model.LifecycleFilter |
Gets and sets the property Filter.
The
For more information about
|
![]() |
Id | System.String |
Gets and sets the property Id. Unique identifier for the rule. The value cannot be longer than 255 characters. |
![]() |
NoncurrentVersionExpiration | Amazon.S3.Model.LifecycleRuleNoncurrentVersionExpiration |
Gets and sets the property NoncurrentVersionExpiration. |
![]() |
NoncurrentVersionTransitions | System.Collections.Generic.List<Amazon.S3.Model.LifecycleRuleNoncurrentVersionTransition> |
Gets and sets the property NoncurrentVersionTransitions. Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime. This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations. |
![]() |
Prefix | System.String |
Gets and sets the property Prefix.
Prefix identifying one or more objects to which the rule applies. This is no longer
used; use Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints. |
![]() |
Status | Amazon.S3.LifecycleRuleStatus |
Gets and sets the property Status. If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied. |
![]() |
Transitions | System.Collections.Generic.List<Amazon.S3.Model.LifecycleTransition> |
Gets and sets the property Transitions. Specifies when an Amazon S3 object transitions to a specified storage class. This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations. |
.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