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-6.0.0 lib/pheme/message_type/aws_event.rb
pheme-5.3.4 lib/pheme/message_type/aws_event.rb
pheme-5.3.3 lib/pheme/message_type/aws_event.rb
pheme-5.3.0 lib/pheme/message_type/aws_event.rb
pheme-5.2.16 lib/pheme/message_type/aws_event.rb
pheme-5.2.15 lib/pheme/message_type/aws_event.rb
pheme-5.2.14 lib/pheme/message_type/aws_event.rb
pheme-5.2.13 lib/pheme/message_type/aws_event.rb
pheme-5.2.12 lib/pheme/message_type/aws_event.rb
pheme-5.2.11 lib/pheme/message_type/aws_event.rb
pheme-5.2.10 lib/pheme/message_type/aws_event.rb
pheme-5.2.9 lib/pheme/message_type/aws_event.rb
pheme-5.2.8 lib/pheme/message_type/aws_event.rb
pheme-5.2.7 lib/pheme/message_type/aws_event.rb
pheme-5.2.6 lib/pheme/message_type/aws_event.rb
pheme-5.2.5 lib/pheme/message_type/aws_event.rb
pheme-5.2.4 lib/pheme/message_type/aws_event.rb
pheme-5.2.3 lib/pheme/message_type/aws_event.rb
pheme-5.2.2 lib/pheme/message_type/aws_event.rb
pheme-5.2.1 lib/pheme/message_type/aws_event.rb