code: def resolve_parameter_refs(self, input_dict, parameters):
          
  
          def do_replacement(full_ref, prop_name):
              """
              Replace parameter references with actual value. Return value of this method is directly replaces the
              reference structure
  
              :param full_ref: => ${logicalId.property}
              :param prop_name: => logicalId.property
              :return: Either the value it resolves to. If not the original reference
              """
              return parameters.get(prop_name, full_ref)
  
          return self._handle_sub_action(input_dict, do_replacement)
docs: Substitute references found within the string of `Fn::Sub` intrinsic function
  
          :param input_dict: Dictionary representing the Fn::Sub function. Must contain only one key and it should be
              `Fn::Sub`. Ex: {"Fn::Sub": ...}
  
          :param parameters: Dictionary of parameter values for substitution
          :return: Resolved