class Aws::Endpoints::Condition

@api private
old service gems can use a new core version.
major version. It has to exist because
approach in each service gem. It can be removed in a new
resolution approach. It has been replaced by a code generated
This class is deprecated. It is used by the Runtime endpoint

def self.from_json(conditions_json)

def self.from_json(conditions_json)
  conditions_json.each.with_object([]) do |condition, conditions|
    conditions << new(
      fn: condition['fn'],
      argv: condition['argv'],
      assign: condition['assign']
    )
  end
end

def initialize(fn:, argv:, assign: nil)

def initialize(fn:, argv:, assign: nil)
  @fn = Function.new(fn: fn, argv: argv)
  @assign = assign
  @assigned = {}
end

def match?(parameters, assigns)

def match?(parameters, assigns)
  output = @fn.call(parameters, assigns)
  @assigned = @assigned.merge({ @assign => output }) if @assign
  output
end