:doc:`Schemas <../../schemas>` / Client / create_discoverer

*****************
create_discoverer
*****************



.. py:method:: Schemas.Client.create_discoverer(**kwargs)

  

  Creates a discoverer.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/CreateDiscoverer>`_  


  **Request Syntax**
  ::

    response = client.create_discoverer(
        Description='string',
        SourceArn='string',
        CrossAccount=True|False,
        Tags={
            'string': 'string'
        }
    )
    
  :type Description: string
  :param Description: 

    A description for the discoverer.

    

  
  :type SourceArn: string
  :param SourceArn: **[REQUIRED]** 

    The ARN of the event bus.

    

  
  :type CrossAccount: boolean
  :param CrossAccount: 

    Support discovery of schemas in events sent to the bus from another account. (default: true).

    

  
  :type Tags: dict
  :param Tags: 

    Tags associated with the resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Description': 'string',
          'DiscovererArn': 'string',
          'DiscovererId': 'string',
          'SourceArn': 'string',
          'State': 'STARTED'|'STOPPED',
          'CrossAccount': True|False,
          'Tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 

      201 response

      
      

      - **Description** *(string) --* 

        The description of the discoverer.

        
      

      - **DiscovererArn** *(string) --* 

        The ARN of the discoverer.

        
      

      - **DiscovererId** *(string) --* 

        The ID of the discoverer.

        
      

      - **SourceArn** *(string) --* 

        The ARN of the event bus.

        
      

      - **State** *(string) --* 

        The state of the discoverer.

        
      

      - **CrossAccount** *(boolean) --* 

        The Status if the discoverer will discover schemas from events sent from another account.

        
      

      - **Tags** *(dict) --* 

        Tags associated with the resource.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`Schemas.Client.exceptions.BadRequestException`

  
  *   :py:class:`Schemas.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`Schemas.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`Schemas.Client.exceptions.ForbiddenException`

  
  *   :py:class:`Schemas.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`Schemas.Client.exceptions.ConflictException`

  