Interface CfnBucket.ILifecycleConfigurationProperty
Specifies the lifecycle configuration for objects in an Amazon S3 bucket.
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILifecycleConfigurationProperty
Syntax (vb)
Public Interface ILifecycleConfigurationProperty
Remarks
For more information, see Object Lifecycle Management in the Amazon S3 User Guide .
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.AWS.S3;
var lifecycleConfigurationProperty = new LifecycleConfigurationProperty {
Rules = new [] { new RuleProperty {
Status = "status",
// the properties below are optional
AbortIncompleteMultipartUpload = new AbortIncompleteMultipartUploadProperty {
DaysAfterInitiation = 123
},
ExpirationDate = new Date(),
ExpirationInDays = 123,
ExpiredObjectDeleteMarker = false,
Id = "id",
NoncurrentVersionExpiration = new NoncurrentVersionExpirationProperty {
NoncurrentDays = 123,
// the properties below are optional
NewerNoncurrentVersions = 123
},
NoncurrentVersionExpirationInDays = 123,
NoncurrentVersionTransition = new NoncurrentVersionTransitionProperty {
StorageClass = "storageClass",
TransitionInDays = 123,
// the properties below are optional
NewerNoncurrentVersions = 123
},
NoncurrentVersionTransitions = new [] { new NoncurrentVersionTransitionProperty {
StorageClass = "storageClass",
TransitionInDays = 123,
// the properties below are optional
NewerNoncurrentVersions = 123
} },
ObjectSizeGreaterThan = 123,
ObjectSizeLessThan = 123,
Prefix = "prefix",
TagFilters = new [] { new TagFilterProperty {
Key = "key",
Value = "value"
} },
Transition = new TransitionProperty {
StorageClass = "storageClass",
// the properties below are optional
TransitionDate = new Date(),
TransitionInDays = 123
},
Transitions = new [] { new TransitionProperty {
StorageClass = "storageClass",
// the properties below are optional
TransitionDate = new Date(),
TransitionInDays = 123
} }
} },
// the properties below are optional
TransitionDefaultMinimumObjectSize = "transitionDefaultMinimumObjectSize"
};
Synopsis
Properties
Rules | A lifecycle rule for individual objects in an Amazon S3 bucket. |
TransitionDefaultMinimumObjectSize |
Properties
Rules
A lifecycle rule for individual objects in an Amazon S3 bucket.
object Rules { get; }
Property Value
System.Object
Remarks
TransitionDefaultMinimumObjectSize
virtual string TransitionDefaultMinimumObjectSize { get; }
Property Value
System.String