Sha256: 3feb7ceb894c16de0de2a5fc9e4d532650906b25d34650674aa471bc7c15d848

Contents?: true

Size: 434 Bytes

Versions: 3

Compression:

Stored size: 434 Bytes

Contents

# CloudFormation SQS Queue docs: https://amzn.to/2MVWk0j
module Jets::Resource::Sqs
  class Queue < Jets::Resource::Base
    def initialize(props)
      @props = props # associated_properties from dsl.rb
    end

    def definition
      {
        queue_logical_id => {
          type: "AWS::SQS::Queue",
          properties: @props,
        }
      }
    end

    def queue_logical_id
      "{namespace}_sqs_queue"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jets-1.7.2 lib/jets/resource/sqs/queue.rb
jets-1.7.1 lib/jets/resource/sqs/queue.rb
jets-1.7.0 lib/jets/resource/sqs/queue.rb