CodeCommit / Client / get_blob

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