Class: Jets::Resource::Sqs::Queue

Inherits:
Base
  • Object
show all
Defined in:
lib/jets/resource/sqs/queue.rb

Instance Method Summary collapse

Methods inherited from Base

#replacements, #resource

Constructor Details

#initialize(props = {}) ⇒ Queue

Returns a new instance of Queue.



4
5
6
# File 'lib/jets/resource/sqs/queue.rb', line 4

def initialize(props={})
  @props = props # associated_properties from dsl.rb
end

Instance Method Details

#definitionObject



8
9
10
11
12
13
14
15
# File 'lib/jets/resource/sqs/queue.rb', line 8

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

#queue_logical_idObject



17
18
19
# File 'lib/jets/resource/sqs/queue.rb', line 17

def queue_logical_id
  "{namespace}_sqs_queue"
end