Class: Jets::Resource::Sqs::Queue
- Defined in:
- lib/jets/resource/sqs/queue.rb
Instance Method Summary collapse
- #definition ⇒ Object
-
#initialize(props = {}) ⇒ Queue
constructor
A new instance of Queue.
- #queue_logical_id ⇒ Object
Methods inherited from Base
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
#definition ⇒ Object
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_id ⇒ Object
17 18 19 |
# File 'lib/jets/resource/sqs/queue.rb', line 17 def queue_logical_id "{namespace}_sqs_queue" end |