code: def minimum_needs_parameter(field=None, parameter_name=None):
      
      try:
          if field['key']:
              for need_field in minimum_needs_fields:
                  if need_field['key'] == field['key']:
                      return need_field['need_parameter']
      except (TypeError, KeyError):
          # in case field is None or field doesn't contain key.
          # just pass
          pass
  
      if parameter_name:
          for need_field in minimum_needs_fields:
              if need_field['need_parameter'].name == parameter_name:
                  return need_field['need_parameter']
      return None
docs: Get minimum needs parameter from a given field.
  
      :param field: Field provided
      :type field: dict
  
      :param parameter_name: Need parameter's name
      :type parameter_name: str
  
      :return: Need paramter
      :rtype: ResourceParameter