code: def api_exists(name, description=None, region=None, key=None, keyid=None, profile=None):
      '''
      Check to see if the given Rest API Name and optionally description exists.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_apigateway.exists myapi_name
  
      '''
      apis = _find_apis_by_name(name, description=description,
                                region=region, key=key, keyid=keyid, profile=profile)
      return {'exists': bool(apis.get('restapi'))f api_exists(name, description=None, region=None, key=None, keyid=None, profile=None):
      '''
      Check to see if the given Rest API Name and optionally description exists.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_apigateway.exists myapi_name
  
      '''
      apis = _find_apis_by_name(name, description=description,
                                region=region, key=key, keyid=keyid, profile=profile)
      return {'exists': bool(apis.get('restapi'))}
docs: Check to see if the given Rest API Name and optionally description exists.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_apigateway.exists myapi_name