Class: AmazonS3LifecycleRule

Types~AmazonS3LifecycleRule

new AmazonS3LifecycleRule()

Properties:
Name Type Description
ExpirationDate String Required: Conditional. 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.
ExpirationInDays Number Required: Conditional. 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.
Id String Required: No. A unique identifier for this rule. The value cannot be more than 255 characters.
NoncurrentVersionExpirationInDays Number Required: Conditional. 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.
NoncurrentVersionTransition AmazonS3LifecycleRuleNoncurrentVersionTransition Required: Conditional. For buckets with versioning enabled (or suspended), specifies when non-current objects transition to a specified storage class. If you specify a transition and expiration time, the expiration time must be later than the transition time. If you specify this property, don't specify the NoncurrentVersionTransitions property.
NoncurrentVersionTransitions AmazonS3LifecycleRuleNoncurrentVersionTransition Required: Conditional. For buckets with versioning enabled (or suspended), one or more transition rules that specify when non-current objects transition to a specified storage class. If you specify a transition and expiration time, the expiration time must be later than the transition time. If you specify this property, don't specify the NoncurrentVersionTransition property.
Prefix String Required: No. Object key prefix that identifies one or more objects to which this rule applies.
Status String Required: Yes. Specify either Enabled or Disabled. If you specify Enabled, Amazon S3 executes this rule as scheduled. If you specify Disabled, Amazon S3 ignores this rule.
Transition AmazonS3LifecycleRuleTransition Required: Conditional. Specifies 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. If you specify this property, don't specify the Transitions property.
Transitions AmazonS3LifecycleRuleTransition Required: Conditional. 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. If you specify this property, don't specify the Transition property.
Source: