:doc:`CloudDirectory <../../clouddirectory>` / Client / get_schema_as_json

******************
get_schema_as_json
******************



.. py:method:: CloudDirectory.Client.get_schema_as_json(**kwargs)

  

  Retrieves a JSON representation of the schema. See `JSON Schema Format <https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_jsonformat.html#schemas_json>`__ for more information.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetSchemaAsJson>`_  


  **Request Syntax**
  ::

    response = client.get_schema_as_json(
        SchemaArn='string'
    )
    
  :type SchemaArn: string
  :param SchemaArn: **[REQUIRED]** 

    The ARN of the schema to retrieve.

    

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

    
    ::

      {
          'Name': 'string',
          'Document': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Name** *(string) --* 

        The name of the retrieved schema.

        
      

      - **Document** *(string) --* 

        The JSON representation of the schema document.

        
  
  **Exceptions**
  
  *   :py:class:`CloudDirectory.Client.exceptions.InternalServiceException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.InvalidArnException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.RetryableConflictException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.ValidationException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.LimitExceededException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.ValidationException`

  