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

*********************
get_discovered_schema
*********************



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

  

  Get the discovered schema that was generated based on sampled events.

  

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


  **Request Syntax**
  ::

    response = client.get_discovered_schema(
        Events=[
            'string',
        ],
        Type='OpenApi3'|'JSONSchemaDraft4'
    )
    
  :type Events: list
  :param Events: **[REQUIRED]** 

    An array of strings where each string is a JSON event. These are the events that were used to generate the schema. The array includes a single type of event and has a maximum size of 10 events.

    

  
    - *(string) --* 

    

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

    The type of event.

    

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

    
    ::

      {
          'Content': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      200 response

      
      

      - **Content** *(string) --* 

        The source of the schema definition.

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

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

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

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

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

  