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

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



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

  

  Creates a new schema in a development state. A schema can exist in three phases:

   

  
  * *Development:* This is a mutable phase of the schema. All new schemas are in the development phase. Once the schema is finalized, it can be published.
   
  * *Published:* Published schemas are immutable and have a version associated with them.
   
  * *Applied:* Applied schemas are mutable in a way that allows you to add new schema facets. You can also add new, nonrequired attributes to existing schema facets. You can apply only published schemas to directories.
  

  

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


  **Request Syntax**
  ::

    response = client.create_schema(
        Name='string'
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name that is associated with the schema. This is unique to each account and in each region.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The Amazon Resource Name (ARN) that is associated with the schema. For more information, see  arns.

        
  
  **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.SchemaAlreadyExistsException`

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

  