list_branches
(**kwargs)¶Gets information about one or more branches in a repository.
See also: AWS API Documentation
Request Syntax
response = client.list_branches(
repositoryName='string',
nextToken='string'
)
[REQUIRED]
The name of the repository that contains the branches.
dict
Response Syntax
{
'branches': [
'string',
],
'nextToken': 'string'
}
Response Structure
(dict) --
Represents the output of a list branches operation.
branches (list) --
The list of branch names.
nextToken (string) --
An enumeration token that returns the batch of the results.
Exceptions
CodeCommit.Client.exceptions.RepositoryNameRequiredException
CodeCommit.Client.exceptions.RepositoryDoesNotExistException
CodeCommit.Client.exceptions.InvalidRepositoryNameException
CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException
CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException
CodeCommit.Client.exceptions.EncryptionKeyDisabledException
CodeCommit.Client.exceptions.EncryptionKeyNotFoundException
CodeCommit.Client.exceptions.EncryptionKeyUnavailableException
CodeCommit.Client.exceptions.InvalidContinuationTokenException