Show / Hide Table of Contents

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 CfnBucket.ILifecycleConfigurationProperty
Syntax (vb)
Public Interface CfnBucket.ILifecycleConfigurationProperty
Remarks

For more information, see Object Lifecycle Management in the Amazon S3 User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfiguration.html

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

Indicates which default minimum object size behavior is applied to the lifecycle configuration.

Properties

Rules

A lifecycle rule for individual objects in an Amazon S3 bucket.

object Rules { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfiguration.html#cfn-s3-bucket-lifecycleconfiguration-rules

Type union: either IResolvable or (either IResolvable or CfnBucket.IRuleProperty)[]

TransitionDefaultMinimumObjectSize

Indicates which default minimum object size behavior is applied to the lifecycle configuration.

string? TransitionDefaultMinimumObjectSize { get; }
Property Value

string

Remarks
This parameter applies to general purpose buckets only. It isn't supported for directory bucket lifecycle configurations.

    To customize the minimum object size for any transition you can add a filter that specifies a custom ObjectSizeGreaterThan or ObjectSizeLessThan in the body of your transition rule. Custom filters always take precedence over the default transition behavior.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfiguration.html#cfn-s3-bucket-lifecycleconfiguration-transitiondefaultminimumobjectsize

    Back to top Generated by DocFX