Class: CfnDsl::ConditionDefinition

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

Instance Method Summary collapse

Methods inherited from JSONable

#declare, #incorrect_capitalization?, #method_missing, #ref_children, #titleize

Methods included from Functions

#FnAnd, #FnBase64, #FnEquals, #FnFindInMap, #FnFormat, #FnGetAZs, #FnGetAtt, #FnIf, #FnJoin, #FnNot, #FnOr, #FnSelect, #Ref

Methods included from RefCheck

#ref_children, #references

Constructor Details

#initialize(value) ⇒ ConditionDefinition

Handles condition objects

Usage:

Condition :ConditionName, FnEqual(Ref(:ParameterName), 'helloworld')


11
12
13
# File 'lib/cfndsl/Conditions.rb', line 11

def initialize(value)
  @value = value
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CfnDsl::JSONable

Instance Method Details

#to_json(*a) ⇒ Object



15
16
17
# File 'lib/cfndsl/Conditions.rb', line 15

def to_json(*a)
  @value.to_json(*a)
end