Class: CfnDsl::ConditionDefinition
- Includes:
- JSONSerialisableObject
- Defined in:
- lib/cfndsl/conditions.rb
Overview
Constant Summary
Constants included from Functions
Instance Method Summary collapse
-
#condition_refs ⇒ Object
For when Condition is used inside Fn::And, Fn::Or, Fn::Not.
-
#initialize(value) ⇒ ConditionDefinition
constructor
A new instance of ConditionDefinition.
Methods included from JSONSerialisableObject
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
Constructor Details
#initialize(value) ⇒ ConditionDefinition
Returns a new instance of ConditionDefinition.
13 14 15 |
# File 'lib/cfndsl/conditions.rb', line 13 def initialize(value) @value = value end |
Instance Method Details
#condition_refs ⇒ Object
For when Condition is used inside Fn::And, Fn::Or, Fn::Not
18 19 20 21 22 23 24 25 |
# File 'lib/cfndsl/conditions.rb', line 18 def condition_refs case @value when String, Symbol [@value.to_s] else [] end end |