class Aws::Endpoints::Reference

@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 initialize(ref:)

def initialize(ref:)
  @ref = ref
end

def resolve(parameters, assigns)

def resolve(parameters, assigns)
  if parameters.class.singleton_class::PARAM_MAP.key?(@ref)
    member_name = parameters.class.singleton_class::PARAM_MAP[@ref]
    parameters[member_name]
  elsif assigns.key?(@ref)
    assigns[@ref]
  else
    raise ArgumentError,
          "Reference #{@ref} is not a param or an assigned value."
  end
end