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

*************
create_schema
*************



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

  

  Creates a schema definition.

   

  .. note::

    

    Inactive schemas will be deleted after two years.

    

  

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


  **Request Syntax**
  ::

    response = client.create_schema(
        Content='string',
        Description='string',
        RegistryName='string',
        SchemaName='string',
        Tags={
            'string': 'string'
        },
        Type='OpenApi3'|'JSONSchemaDraft4'
    )
    
  :type Content: string
  :param Content: **[REQUIRED]** 

    The source of the schema definition.

    

  
  :type Description: string
  :param Description: 

    A description of the schema.

    

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

    The name of the registry.

    

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

    The name of the schema.

    

  
  :type Tags: dict
  :param Tags: 

    Tags associated with the schema.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    The type of schema.

    

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

    
    ::

      {
          'Description': 'string',
          'LastModified': datetime(2015, 1, 1),
          'SchemaArn': 'string',
          'SchemaName': 'string',
          'SchemaVersion': 'string',
          'Tags': {
              'string': 'string'
          },
          'Type': 'string',
          'VersionCreatedDate': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 

      201 response

      
      

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

        The description of the schema.

        
      

      - **LastModified** *(datetime) --* 

        The date and time that schema was modified.

        
      

      - **SchemaArn** *(string) --* 

        The ARN of the schema.

        
      

      - **SchemaName** *(string) --* 

        The name of the schema.

        
      

      - **SchemaVersion** *(string) --* 

        The version number of the schema

        
      

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

        Key-value pairs associated with a resource.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
      

      - **Type** *(string) --* 

        The type of the schema.

        
      

      - **VersionCreatedDate** *(datetime) --* 

        The date the schema version was created.

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

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

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

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

  