CodeCommit / Client / list_branches

list_branches#

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'
)
Parameters:
  • repositoryName (string) –

    [REQUIRED]

    The name of the repository that contains the branches.

  • nextToken (string) – An enumeration token that allows the operation to batch the results.

Return type:

dict

Returns:

Response Syntax

{
    'branches': [
        'string',
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    Represents the output of a list branches operation.

    • branches (list) –

      The list of branch names.

      • (string) –

    • 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