AWS SDK Version 3 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.

Rules Item

Inheritance Hierarchy

System.Object
  Amazon.S3.Model.LifecycleRule

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

Syntax

C#
public class LifecycleRule

The LifecycleRule type exposes the following members

Constructors

NameDescription
Public Method LifecycleRule()

Properties

NameTypeDescription
Public Property AbortIncompleteMultipartUpload Amazon.S3.Model.LifecycleRuleAbortIncompleteMultipartUpload

Specifies the days since the initiation of an Incomplete Multipart Upload that Lifecycle will wait before permanently removing all parts of the upload.

Public Property Expiration Amazon.S3.Model.LifecycleRuleExpiration

Defines the length of time, in days, before objects expire.

Public Property Filter Amazon.S3.Model.LifecycleFilter

Filter identifying one or more objects to which the rule applies.

Public Property Id System.String

Unique identifier for the rule. The value cannot be longer than 255 characters.

Public Property NoncurrentVersionExpiration Amazon.S3.Model.LifecycleRuleNoncurrentVersionExpiration

Defines the length of time, in days, before noncurrent versions expire.

Public Property NoncurrentVersionTransition Amazon.S3.Model.LifecycleRuleNoncurrentVersionTransition

The transition rule that describes when noncurrent versions transition to a different storage class.

Lifecycle rules can now contain multiple noncurrent version transitions. This property is obsolete in favor of the NoncurrentVersionTransitions property. This property will aways get or set the the zeroth element in the NoncurrentVersionTransitions collection.

Public Property NoncurrentVersionTransitions System.Collections.Generic.List<Amazon.S3.Model.LifecycleRuleNoncurrentVersionTransition>

The transition rules that describe when noncurrent versions transition to a different storage class.

Public Property Prefix System.String

Prefix identifying one or more objects to which the rule applies.

Public Property Status Amazon.S3.LifecycleRuleStatus

If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.

Public Property Transition Amazon.S3.Model.LifecycleTransition

The transition rule that describes when objects transition to a different storage class.

Lifecycle rules can now contain multiple transitions. This property is obsolete in favor of the Transitions property. This property will aways get or set the the zeroth element in the Transitions collection.

Public Property Transitions System.Collections.Generic.List<Amazon.S3.Model.LifecycleTransition>

The transition rules that describe when objects transition to a different storage class.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Unity:
Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone