Skip to content
v2.275.0

LifecycleConfigurationProperty Struct ​

Container for lifecycle rules. You can add as many as 1000 rules.

For more information see, Creating and managing a lifecycle configuration for directory buckets in the Amazon S3 User Guide .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3express as s3express } from 'aws-cdk-lib';
const lifecycleConfigurationProperty: s3express.CfnDirectoryBucket.LifecycleConfigurationProperty = {
  rules: [{
    status: 'status',

    // the properties below are optional
    abortIncompleteMultipartUpload: {
      daysAfterInitiation: 123,
    },
    expirationInDays: 123,
    id: 'id',
    objectSizeGreaterThan: 'objectSizeGreaterThan',
    objectSizeLessThan: 'objectSizeLessThan',
    prefix: 'prefix',
  }],
};

Properties ​

rulesIResolvable | IResolvable | CfnDirectoryBucket.RuleProperty[]rulestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleProperty]]]rulesIResolvableRulesIResolvableRulesinterface{}required#
A lifecycle rule for individual objects in an Amazon S3 Express bucket.