Class: CloudFormer::CloudFormation::ConfigSet
Instance Attribute Summary
#aws_type
Instance Method Summary
collapse
Methods included from MakesJson
included
included, #nested_resources, #resource_tree
Constructor Details
Returns a new instance of ConfigSet.
7
8
9
10
|
# File 'lib/cloud_former/metadata_resources/cloud_formation/config_set.rb', line 7
def initialize
super
@aws_type = 'AWS::CloudFormation::ConfigSet'
end
|
Instance Method Details
#dump_json ⇒ Object
26
27
28
29
30
31
32
|
# File 'lib/cloud_former/metadata_resources/cloud_formation/config_set.rb', line 26
def dump_json
res = {}
(@items || []).each do |item|
res[item.name] = item.dump_json
end
res
end
|
#items(val = nil) ⇒ Object
12
13
14
15
16
17
|
# File 'lib/cloud_former/metadata_resources/cloud_formation/config_set.rb', line 12
def items(val=nil)
if val
@items = val
end
@items
end
|
#name(val = nil) ⇒ Object
19
20
21
22
23
24
|
# File 'lib/cloud_former/metadata_resources/cloud_formation/config_set.rb', line 19
def name(val=nil)
if val
@name = val
end
@name
end
|