Sha256: 6f5fbd9ff9982c685db08042f54c9082244bc9dadab5cde9d7cc52388898d37b

Contents?: true

Size: 248 Bytes

Versions: 21

Compression:

Stored size: 248 Bytes

Contents

# encoding: utf-8
def push_sqs_event(message)
  client = Aws::SQS::Client.new
  queue_url = client.get_queue_url(:queue_name => ENV["SQS_QUEUE_NAME"])

  client.send_message({
    queue_url: queue_url.queue_url,
    message_body: message,
  })
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
logstash-input-sqs-1.1.0 spec/support/helpers.rb