CodeCommit.Client.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.RepositoryNameRequiredExceptionCodeCommit.Client.exceptions.RepositoryDoesNotExistExceptionCodeCommit.Client.exceptions.InvalidRepositoryNameExceptionCodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedExceptionCodeCommit.Client.exceptions.EncryptionKeyAccessDeniedExceptionCodeCommit.Client.exceptions.EncryptionKeyDisabledExceptionCodeCommit.Client.exceptions.EncryptionKeyNotFoundExceptionCodeCommit.Client.exceptions.EncryptionKeyUnavailableExceptionCodeCommit.Client.exceptions.InvalidContinuationTokenException