code: def _find_apis_by_name(name, description=None,
                         region=None, key=None, keyid=None, profile=None):
      '''
      get and return list of matching rest api information by the given name and desc.
      If rest api name evaluates to False, return all apis w/o filtering the name.
      '''
      try:
          conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
          apis = _multi_call(conn.get_rest_apis, 'items')
          if name:
              apis = _filter_apis(name, apis)
          if description is not None:
              apis = _filter_apis_desc(description, apis)
          return {'restapi': [_convert_datetime_str(api) for api in apis]}
      except ClientError as e:
          return {'error': __utils__['boto3.get_error'](e)f _find_apis_by_name(name, description=None,
                         region=None, key=None, keyid=None, profile=None):
      '''
      get and return list of matching rest api information by the given name and desc.
      If rest api name evaluates to False, return all apis w/o filtering the name.
      '''
      try:
          conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
          apis = _multi_call(conn.get_rest_apis, 'items')
          if name:
              apis = _filter_apis(name, apis)
          if description is not None:
              apis = _filter_apis_desc(description, apis)
          return {'restapi': [_convert_datetime_str(api) for api in apis]}
      except ClientError as e:
          return {'error': __utils__['boto3.get_error'](e)}
docs: get and return list of matching rest api information by the given name and desc.
      If rest api name evaluates to False, return all apis w/o filtering the name.