Class: Jets::Cfn::Resource::Sqs::Queue
- Inherits:
-
Base
- Object
- Base
- Jets::Cfn::Resource::Sqs::Queue
show all
- Defined in:
- lib/jets/cfn/resource/sqs/queue.rb
Instance Method Summary
collapse
Methods inherited from Base
#attributes, #logical_id, #outputs, #parameters, #permission, #properties, #replacements, #replacer, #standarize, #template, truncate_id, #type
#camelize
Constructor Details
#initialize(props = {}) ⇒ Queue
4
5
6
|
# File 'lib/jets/cfn/resource/sqs/queue.rb', line 4
def initialize(props={})
@props = props
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
|