Class: Jets::Cfn::Resource::Sqs::Queue
- Defined in:
- lib/jets/cfn/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
#attributes, #logical_id, #outputs, #parameters, #permission, #properties, #replacements, #replacer, #standarize, #template, truncate_id, #type
Methods included from Util::Camelize
Constructor Details
#initialize(props = {}) ⇒ Queue
Returns a new instance of Queue.
4 5 6 |
# File 'lib/jets/cfn/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/cfn/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/cfn/resource/sqs/queue.rb', line 17 def queue_logical_id "{namespace}SqsQueue" end |