Sha256: 9e9605343b66de4e4b5e489dc0b7076fb59136696f29981b911837d531cd3504

Contents?: true

Size: 535 Bytes

Versions: 47

Compression:

Stored size: 535 Bytes

Contents

#
# Poller that consume internal AWS Events,
# like S3 notifications, CloudWatch events, etc.
#
# This poller's output message will be a list of hashes,
# each containing one event.
#
module Pheme
  module MessageType
    module AwsEvent
      extend ActiveSupport::Concern

      def get_content(body)
        body['Records']
      end

      def format
        :aws_event
      end

      def parse_aws_event(message_contents)
        ResourceStruct::FlexStruct.new({ wrapper: message_contents }).wrapper
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
pheme-5.2.0 lib/pheme/message_type/aws_event.rb
pheme-5.1.15 lib/pheme/message_type/aws_event.rb
pheme-5.1.14 lib/pheme/message_type/aws_event.rb
pheme-5.1.13 lib/pheme/message_type/aws_event.rb
pheme-5.1.12 lib/pheme/message_type/aws_event.rb
pheme-5.1.11 lib/pheme/message_type/aws_event.rb
pheme-5.1.10 lib/pheme/message_type/aws_event.rb
pheme-5.1.9 lib/pheme/message_type/aws_event.rb
pheme-5.1.7 lib/pheme/message_type/aws_event.rb
pheme-5.1.6 lib/pheme/message_type/aws_event.rb
pheme-5.1.5 lib/pheme/message_type/aws_event.rb
pheme-5.1.4 lib/pheme/message_type/aws_event.rb
pheme-5.1.3 lib/pheme/message_type/aws_event.rb
pheme-5.1.2 lib/pheme/message_type/aws_event.rb
pheme-5.1.1 lib/pheme/message_type/aws_event.rb
pheme-5.1.0 lib/pheme/message_type/aws_event.rb
pheme-5.0.10 lib/pheme/message_type/aws_event.rb
pheme-5.0.9 lib/pheme/message_type/aws_event.rb
pheme-5.0.8 lib/pheme/message_type/aws_event.rb
pheme-5.0.7 lib/pheme/message_type/aws_event.rb