MDAA TS Docs
    Preparing search index...

    Interface LifecycleConfigurationRuleProps

    A single S3 lifecycle rule controlling storage-class transitions and expiration for objects in a bucket.

    Use cases: Automated cost optimization; Data retention/expiration policies; Cleaning up incomplete multipart uploads and old versions

    AWS: S3 Bucket Lifecycle Rule

    Validation: id and status required; remaining fields optional

    interface LifecycleConfigurationRuleProps {
        abortIncompleteMultipartUploadAfter?: number;
        expirationdays?: number;
        expiredObjectDeleteMarker?: boolean;
        id: string;
        noncurrentVersionExpirationDays?: number;
        noncurrentVersionsToRetain?: number;
        noncurrentVersionTransitions?: LifecycleTransitionProps[];
        objectSizeGreaterThan?: number;
        objectSizeLessThan?: number;
        prefix?: string;
        status: string;
        transitions?: LifecycleTransitionProps[];
    }
    Index

    Properties

    abortIncompleteMultipartUploadAfter?: number

    Days after which incomplete multipart uploads are aborted.

    AWS: S3 Lifecycle Rule AbortIncompleteMultipartUpload DaysAfterInitiation

    Validation: Optional; positive integer

    expirationdays?: number

    Days after object creation before current versions expire (are deleted).

    AWS: S3 Lifecycle Rule Expiration ExpirationInDays

    Validation: Optional; positive integer

    expiredObjectDeleteMarker?: boolean

    Whether to remove expired object delete markers.

    AWS: S3 Lifecycle Rule Expiration ExpiredObjectDeleteMarker

    Validation: Optional; boolean

    id: string

    Unique identifier for the lifecycle rule.

    AWS: S3 Lifecycle Rule ID

    Validation: Required; unique within the bucket

    noncurrentVersionExpirationDays?: number

    Days after a version becomes noncurrent before it expires (is deleted).

    AWS: S3 Lifecycle Rule NoncurrentVersionExpiration NoncurrentDays

    Validation: Optional; positive integer

    noncurrentVersionsToRetain?: number

    Number of newer noncurrent versions to retain before expiring older ones.

    AWS: S3 Lifecycle Rule NoncurrentVersionExpiration NewerNoncurrentVersions

    Validation: Optional; positive integer

    noncurrentVersionTransitions?: LifecycleTransitionProps[]

    Storage-class transitions applied to noncurrent object versions.

    AWS: S3 Lifecycle Rule NoncurrentVersionTransitions

    Validation: Optional; array of LifecycleTransitionProps

    objectSizeGreaterThan?: number

    Only apply the rule to objects larger than this size in bytes.

    AWS: S3 Lifecycle Rule Filter ObjectSizeGreaterThan

    Validation: Optional; positive integer (bytes)

    objectSizeLessThan?: number

    Only apply the rule to objects smaller than this size in bytes.

    AWS: S3 Lifecycle Rule Filter ObjectSizeLessThan

    Validation: Optional; positive integer (bytes)

    prefix?: string

    Object key prefix the rule applies to. When omitted, the rule applies to all objects in the bucket.

    AWS: S3 Lifecycle Rule Filter Prefix

    Validation: Optional; S3 key prefix

    status: string

    Whether the rule is active.

    AWS: S3 Lifecycle Rule Status

    Validation: Required; one of 'Enabled' or 'Disabled' (case-insensitive)

    transitions?: LifecycleTransitionProps[]

    Storage-class transitions applied to current object versions.

    AWS: S3 Lifecycle Rule Transitions

    Validation: Optional; array of LifecycleTransitionProps