Class NoncurrentVersionTransition
Describes when noncurrent versions transition to a specified storage class.
Inheritance
System.Object
NoncurrentVersionTransition
Implements
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class NoncurrentVersionTransition : Object, INoncurrentVersionTransition
Syntax (vb)
Public Class NoncurrentVersionTransition
Inherits Object
Implements INoncurrentVersionTransition
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.S3;
StorageClass storageClass;
var noncurrentVersionTransition = new NoncurrentVersionTransition {
StorageClass = storageClass,
TransitionAfter = Duration.Minutes(30),
// the properties below are optional
NoncurrentVersionsToRetain = 123
};
Synopsis
Constructors
NoncurrentVersionTransition() |
Properties
NoncurrentVersionsToRetain | Indicates the number of noncurrent version objects to be retained. |
StorageClass | The storage class to which you want the object to transition. |
TransitionAfter | Indicates the number of days after creation when objects are transitioned to the specified storage class. |
Constructors
NoncurrentVersionTransition()
public NoncurrentVersionTransition()
Properties
NoncurrentVersionsToRetain
Indicates the number of noncurrent version objects to be retained.
public Nullable<double> NoncurrentVersionsToRetain { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Can be up to 100 noncurrent versions retained.
Default: - No noncurrent version retained.
StorageClass
The storage class to which you want the object to transition.
public StorageClass StorageClass { get; set; }
Property Value
TransitionAfter
Indicates the number of days after creation when objects are transitioned to the specified storage class.
public Duration TransitionAfter { get; set; }
Property Value
Remarks
Default: - No transition count.