get_blob

CodeCommit.Client.get_blob(**kwargs)

Returns the base-64 encoded content of an individual blob in a repository.

See also: AWS API Documentation

Request Syntax

response = client.get_blob(
    repositoryName='string',
    blobId='string'
)
Parameters
  • repositoryName (string) --

    [REQUIRED]

    The name of the repository that contains the blob.

  • blobId (string) --

    [REQUIRED]

    The ID of the blob, which is its SHA-1 pointer.

Return type

dict

Returns

Response Syntax

{
    'content': b'bytes'
}

Response Structure

  • (dict) --

    Represents the output of a get blob operation.

    • content (bytes) --

      The content of the blob, usually a file.

Exceptions

  • CodeCommit.Client.exceptions.RepositoryNameRequiredException
  • CodeCommit.Client.exceptions.InvalidRepositoryNameException
  • CodeCommit.Client.exceptions.RepositoryDoesNotExistException
  • CodeCommit.Client.exceptions.BlobIdRequiredException
  • CodeCommit.Client.exceptions.InvalidBlobIdException
  • CodeCommit.Client.exceptions.BlobIdDoesNotExistException
  • CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException
  • CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException
  • CodeCommit.Client.exceptions.EncryptionKeyDisabledException
  • CodeCommit.Client.exceptions.EncryptionKeyNotFoundException
  • CodeCommit.Client.exceptions.EncryptionKeyUnavailableException
  • CodeCommit.Client.exceptions.FileTooLargeException