Class | AWS::S3::BucketLifecycleConfiguration::Rule |
In: |
lib/aws/s3/bucket_lifecycle_configuration.rb
|
Parent: | Object |
Represents a single rule from an Amazon S3 bucket lifecycle configuration.
# delete all objects with the prefix 'temporary/' after 10 days bucket.lifecycle_configuration.add_rule 'temporary/', 10 # remove the rule created above bucket.lifecycle_configuration.remove_rule 'temporary/'
expiration_time | -> | expiration_days |
configuration | [R] | @return [BucketLifecycleConfiguration] |
expiration_time | [R] |
@return [Date] the date the objects will expire @return [Integer] if the
value is an integer, returns the number
of days before the object will expire. |
glacier_transition_time | [R] |
@return [Date] the date the objects will be
transitioned into the Amazon Glacier storage tier. @return [Integer] if the value is an integer, returns the number of days before the object is transitioned into the Amazon Glacier storage tier. |
id | [R] | @return [String] |
prefix | [RW] | @return [String] |
status | [RW] | @return [String] Returns the rule status, ‘Enabled’ or ‘Disabled‘ |