Class: CfFactory::CfSqsQueue
- Inherits:
-
Object
- Object
- CfFactory::CfSqsQueue
show all
- Includes:
- CfBase
- Defined in:
- lib/cf_factory/sqs/cf_sqs_queue.rb
Instance Method Summary
collapse
Methods included from CfBase
#generate, #generate_ref, #get_deletion_policy, #get_name, #get_update_policy, #hash_to_string, #retrieve_attribute, #set_meta_data, #set_quotes, #set_tags
Constructor Details
#initialize(name, options = {}) ⇒ CfSqsQueue
Returns a new instance of CfSqsQueue.
8
9
10
11
|
# File 'lib/cf_factory/sqs/cf_sqs_queue.rb', line 8
def initialize(name, options = {})
@name = name
@visibility_timeout = options[:visibility_timeout]
end
|
Instance Method Details
#get_cf_attributes ⇒ Object
17
18
19
|
# File 'lib/cf_factory/sqs/cf_sqs_queue.rb', line 17
def get_cf_attributes
{}
end
|
#get_cf_properties ⇒ Object
21
22
23
24
25
|
# File 'lib/cf_factory/sqs/cf_sqs_queue.rb', line 21
def get_cf_properties
result = {}
result["VisibilityTimeout"] = @visibility_timeout unless @visibility_timeout.nil?
result
end
|
#get_cf_type ⇒ Object
13
14
15
|
# File 'lib/cf_factory/sqs/cf_sqs_queue.rb', line 13
def get_cf_type
"AWS::SQS::Queue"
end
|