class AWS::S3::BucketLifecycleConfiguration::Rule


bucket.lifecycle_configuration.remove_rule ‘temporary/’
# remove the rule created above
bucket.lifecycle_configuration.add_rule ‘temporary/’, 10
# delete all objects with the prefix ‘temporary/’ after 10 days
configuration.
Represents a single rule from an Amazon S3 bucket lifecycle

def disabled!

def disabled!
  self.status = 'Disabled'
end

def disabled?

def disabled?
  status == 'Disabled'
end

def enable!

def enable!
  self.status = 'Enabled'
end

def enabled?

def enabled?
  status == 'Enabled'
end

def eql? other

Other tags:
    Private: -
def eql? other
  other.is_a?(Rule) and
  other.configuration.bucket == configuration.bucket and
  other.id == id and
  other.prefix == prefix and
  other.expiration_days == expiration_days and
  other.status == status
end

def initialize configuration, id, prefix, expiration_days, status

def initialize configuration, id, prefix, expiration_days, status
  @configuration = configuration
  @id = id
  @prefix = prefix
  @expiration_days = expiration_days
  @status = status
end