module AwsExtensions::S3::BucketNotification

Public Instance Methods

to_cumulus() click to toggle source

Public: Convert this Aws::S3::BucketNotification into an array of Cumulus::S3::NotificationConfig

Returns the array of NotificationConfigs

# File lib/aws_extensions/s3/BucketNotification.rb, line 10
def to_cumulus
  Hash[(
    lambda_function_configurations +
    queue_configurations +
    topic_configurations
  ).map do |configuration|
    cumulus = Cumulus::S3::NotificationConfig.new
    cumulus.populate!(configuration)
    cumulus
  end.map { |configuration| [configuration.name, configuration] }]
end