:doc:`CodeCommit <../../codecommit>` / Client / update_repository_name

**********************
update_repository_name
**********************



.. py:method:: CodeCommit.Client.update_repository_name(**kwargs)

  

  Renames a repository. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix .git is prohibited. For more information about the limits on repository names, see `Quotas <https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html>`__ in the CodeCommit User Guide.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryName>`_  


  **Request Syntax**
  ::

    response = client.update_repository_name(
        oldName='string',
        newName='string'
    )
    
  :type oldName: string
  :param oldName: **[REQUIRED]** 

    The current name of the repository.

    

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

    The new name for the repository.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`CodeCommit.Client.exceptions.RepositoryDoesNotExistException`

  
  *   :py:class:`CodeCommit.Client.exceptions.RepositoryNameExistsException`

  
  *   :py:class:`CodeCommit.Client.exceptions.RepositoryNameRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidRepositoryNameException`

  