update_repository_name

update_repository_name(**kwargs)

Renames a repository. The repository name must be unique across the calling AWS 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 Limits in the AWS CodeCommit User Guide.

See also: AWS API Documentation

Request Syntax

response = client.update_repository_name(
    oldName='string',
    newName='string'
)
Parameters
  • oldName (string) --

    [REQUIRED]

    The current name of the repository.

  • newName (string) --

    [REQUIRED]

    The new name for the repository.

Returns

None

Exceptions

  • CodeCommit.Client.exceptions.RepositoryDoesNotExistException
  • CodeCommit.Client.exceptions.RepositoryNameExistsException
  • CodeCommit.Client.exceptions.RepositoryNameRequiredException
  • CodeCommit.Client.exceptions.InvalidRepositoryNameException