Class: CfnDsl::ResourceDefinition

Inherits:
JSONable
  • Object
show all
Defined in:
lib/cfndsl/resources.rb

Overview

Handles Resource objects

Constant Summary

Constants included from Functions

Functions::FN_SUB_SCANNER

Instance Method Summary collapse

Methods inherited from JSONable

#as_json, #declare, #external_parameters, external_parameters, #ref_children, #to_json

Methods included from Functions

#FnAnd, #FnBase64, #FnCidr, #FnEquals, #FnFindInMap, #FnGetAZs, #FnGetAtt, #FnIf, #FnImportValue, #FnJoin, #FnNot, #FnOr, #FnSelect, #FnSplit, #FnSub, #Ref

Methods included from RefCheck

#build_references, #ref_children

Instance Method Details

#add_tag(name, value, propagate = nil) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/cfndsl/resources.rb', line 11

def add_tag(name, value, propagate = nil)
  send(:Tag) do
    Key name
    Value value
    PropagateAtLaunch propagate unless propagate.nil?
  end
end

#all_refsObject



23
24
25
# File 'lib/cfndsl/resources.rb', line 23

def all_refs
  [@DependsOn].flatten.compact.map(&:to_s)
end

#condition_refsObject



19
20
21
# File 'lib/cfndsl/resources.rb', line 19

def condition_refs
  [@Condition].flatten.compact.map(&:to_s)
end