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

**************
publish_schema
**************



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

  

  Publishes a development schema with a major version and a recommended minor version.

  

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


  **Request Syntax**
  ::

    response = client.publish_schema(
        DevelopmentSchemaArn='string',
        Version='string',
        MinorVersion='string',
        Name='string'
    )
    
  :type DevelopmentSchemaArn: string
  :param DevelopmentSchemaArn: **[REQUIRED]** 

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

    

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

    The major version under which the schema will be published. Schemas have both a major and minor version associated with them.

    

  
  :type MinorVersion: string
  :param MinorVersion: 

    The minor version under which the schema will be published. This parameter is recommended. Schemas have both a major and minor version associated with them.

    

  
  :type Name: string
  :param Name: 

    The new name under which the schema will be published. If this is not provided, the development schema is considered.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **PublishedSchemaArn** *(string) --* 

        The ARN that is associated with the published 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.ResourceNotFoundException`

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

  