code: def build_parameters(self, stack, provider_stack=None):
          
          resolved = _resolve_parameters(stack.parameter_values, stack.blueprint)
          required_parameters = list(stack.required_parameter_definitions)
          all_parameters = list(stack.all_parameter_definitions)
          parameters = _handle_missing_parameters(resolved, all_parameters,
                                                  required_parameters,
                                                  provider_stack)
  
          param_list = []
  
          for key, value in parameters:
              param_dict = {"ParameterKey": key}
              if value is UsePreviousParameterValue:
                  param_dict["UsePreviousValue"] = True
              else:
                  param_dict["ParameterValue"] = str(value)
  
              param_list.append(param_dict)
  
          return param_list
docs: Builds the CloudFormation Parameters for our stack.
  
          Args:
              stack (:class:`stacker.stack.Stack`): A stacker stack
              provider_stack (dict): An optional Stacker provider object
  
          Returns:
              dict: The parameters for the given stack