S3 bucket life cycle rules object.

Example

  lifecycleRules:
- enabled: true
id: ElbLifecycle-01
abortIncompleteMultipartUpload: 14
expiration: 3563
expiredObjectDeleteMarker: false
noncurrentVersionExpiration: 3653
noncurrentVersionTransitions:
- storageClass: GLACIER
transitionAfter: 365
transitions:
- storageClass: GLACIER
transitionAfter: 365
prefix: PREFIX
- enabled: true
id: ElbLifecycle-02
abortIncompleteMultipartUpload: 14
expiredObjectDeleteMarker: true
noncurrentVersionExpiration: 3653
noncurrentVersionTransitions:
- storageClass: GLACIER
transitionAfter: 365
transitions:
- storageClass: GLACIER
transitionAfter: 365
prefix: PREFIX

Hierarchy

  • ILifecycleRule

Implemented by

Properties

abortIncompleteMultipartUpload?: number

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

enabled?: boolean

Whether this rule is enabled.

expiration?: number

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

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.

id?: string

Friendly name for the rule. Rule name must be unique.

noncurrentVersionExpiration?: number

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

noncurrentVersionTransitions?: ITransition[]

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

prefix?: string

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

Default

  • Rule applies to all objects
transitions?: ITransition[]

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

Generated using TypeDoc