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/'
configuration | [R] | @return [BucketLifecycleConfiguration] |
expiration_days | [RW] | @return [Integer] |
id | [R] | @return [String] |
prefix | [RW] | @return [String] |
status | [RW] | @return [String] Returns the rule status, ‘Enabled’ or ‘Disabled‘ |