module AwsExtensions::S3::BucketLogging

Public Instance Methods

to_cumulus() click to toggle source

Public: Convert this Aws::S3::BucketLogging into a Cumulus::S3::LoggingConfig

Returns a LoggingConfig

# File lib/aws_extensions/s3/BucketLogging.rb, line 9
def to_cumulus
  if logging_enabled
    cumulus = Cumulus::S3::LoggingConfig.new
    cumulus.populate!(self)
    cumulus
  end
end