Class: CfnDsl::ResourceDefinition
- Defined in:
- lib/cfndsl/resources.rb
Overview
Handles Resource objects
Instance Method Summary collapse
- #add_tag(name, value, propagate = nil) ⇒ Object
-
#addTag(name, value, propagate = nil) ⇒ Object
rubocop:disable UnusedMethodArgument rubocop:disable UselessAssignment.
- #all_refs ⇒ Object
Methods inherited from JSONable
#as_json, #declare, #incorrect_capitalization?, #method_missing, #ref_children, #titleize, #to_json
Methods included from Functions
#FnAnd, #FnBase64, #FnEquals, #FnFindInMap, #FnFormat, #FnGetAZs, #FnGetAtt, #FnIf, #FnJoin, #FnNot, #FnOr, #FnSelect, #Ref
Methods included from RefCheck
#build_references, #ref_children
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CfnDsl::JSONable
Instance Method Details
#add_tag(name, value, propagate = nil) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/cfndsl/resources.rb', line 18 def add_tag(name, value, propagate = nil) send(:Tag) do Key name Value value PropagateAtLaunch propagate unless propagate.nil? end end |
#addTag(name, value, propagate = nil) ⇒ Object
rubocop:disable UnusedMethodArgument rubocop:disable UselessAssignment
14 15 16 |
# File 'lib/cfndsl/resources.rb', line 14 def addTag(name, value, propagate = nil) add_tag(name, value, propagate = nil) end |
#all_refs ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/cfndsl/resources.rb', line 26 def all_refs refs = [] if @DependsOn if @DependsOn.respond_to?(:each) @DependsOn.each do |dep| refs.push dep end end refs.push @DependsOn if @DependsOn.instance_of?(String) end refs end |