class AWS::S3::BucketLifecycleConfiguration

def parse_xml xml

def parse_xml xml
  Client::XML::GetBucketLifecycleConfiguration.parse(xml).rules.map do |r|
    Rule.new(self, r.id, r.prefix, r.expiration.days, r.status)
  end
end