class CfnDsl::ConditionDefinition

Handles condition objects

Usage:

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

Public Class Methods

new(value) click to toggle source
# File lib/cfndsl/conditions.rb, line 13
def initialize(value)
  @value = value
end

Public Instance Methods

condition_refs() click to toggle source

For when Condition is used inside Fn::And, Fn::Or, Fn::Not

# File lib/cfndsl/conditions.rb, line 18
def condition_refs
  case @value
  when String, Symbol
    [@value.to_s]
  else
    []
  end
end