GradientEdge CDK Utils
    Preparing search index...
    interface LifecycleRule {
        abortIncompleteMultipartUploadAfter?: Duration;
        enabled?: boolean;
        expiration?: Duration;
        expirationDate?: Date;
        expirationInDays?: number;
        expiredObjectDeleteMarker?: boolean;
        id?: string;
        noncurrentVersionExpiration?: Duration;
        noncurrentVersionExpirationInDays?: number;
        noncurrentVersionsToRetain?: number;
        noncurrentVersionTransitions?: NoncurrentVersionTransition[];
        objectSizeGreaterThan?: number;
        objectSizeLessThan?: number;
        prefix?: string;
        tagFilters?: { [tag: string]: any };
        transitions?: Transition[];
    }

    Hierarchy

    • LifecycleRule
      • LifecycleRule
    Index

    Properties

    abortIncompleteMultipartUploadAfter?: Duration

    Specifies a lifecycle rule that aborts incomplete multipart uploads to an Amazon S3 bucket.

    The AbortIncompleteMultipartUpload property type creates a lifecycle rule that aborts incomplete multipart uploads to an Amazon S3 bucket. When Amazon S3 aborts a multipart upload, it deletes all parts associated with the multipart upload.

    The underlying configuration is expressed in whole numbers of days. Providing a Duration that does not represent a whole number of days will result in a runtime or deployment error.

    - Incomplete uploads are never aborted
    
    enabled?: boolean

    Whether this rule is enabled.

    true
    
    expiration?: Duration

    Indicates the number of days after creation when objects are deleted from Amazon S3 and Amazon Glacier.

    If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.

    The underlying configuration is expressed in whole numbers of days. Providing a Duration that does not represent a whole number of days will result in a runtime or deployment error.

    - No expiration timeout
    
    expirationDate?: Date

    Indicates when objects are deleted from Amazon S3 and Amazon Glacier.

    The date value must be in ISO 8601 format. The time is always midnight UTC.

    If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.

    - No expiration date
    
    expirationInDays?: number
    expiredObjectDeleteMarker?: boolean

    Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired.

    false
    
    id?: string

    A unique identifier for this rule. The value cannot be more than 255 characters.

    noncurrentVersionExpiration?: Duration

    Time between when a new version of the object is uploaded to the bucket and when old versions of the object expire.

    For buckets with versioning enabled (or suspended), specifies the time, in days, between when a new version of the object is uploaded to the bucket and when old versions of the object expire. When object versions expire, Amazon S3 permanently deletes them. If you specify a transition and expiration time, the expiration time must be later than the transition time.

    The underlying configuration is expressed in whole numbers of days. Providing a Duration that does not represent a whole number of days will result in a runtime or deployment error.

    - No noncurrent version expiration
    
    noncurrentVersionExpirationInDays?: number
    noncurrentVersionsToRetain?: number

    Indicates a maximum number of noncurrent versions to retain.

    If there are this many more noncurrent versions, Amazon S3 permanently deletes them.

    - No noncurrent versions to retain
    
    noncurrentVersionTransitions?: NoncurrentVersionTransition[]

    One or more transition rules that specify when non-current objects transition to a specified storage class.

    Only for buckets with versioning enabled (or suspended).

    If you specify a transition and expiration time, the expiration time must be later than the transition time.

    objectSizeGreaterThan?: number

    Specifies the minimum object size in bytes for this rule to apply to. Objects must be larger than this value in bytes.

    - No rule
    
    objectSizeLessThan?: number

    Specifies the maximum object size in bytes for this rule to apply to. Objects must be smaller than this value in bytes.

    - No rule
    
    prefix?: string

    Object key prefix that identifies one or more objects to which this rule applies.

    - Rule applies to all objects
    
    tagFilters?: { [tag: string]: any }

    The TagFilter property type specifies tags to use to identify a subset of objects for an Amazon S3 bucket.

    - Rule applies to all objects
    
    transitions?: Transition[]

    One or more transition rules that specify when an object transitions to a specified storage class.

    If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.

    - No transition rules