:doc:`CodeCommit <../../codecommit>` / Client / get_blob

********
get_blob
********



.. py:method:: CodeCommit.Client.get_blob(**kwargs)

  

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

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBlob>`_  


  **Request Syntax**
  ::

    response = client.get_blob(
        repositoryName='string',
        blobId='string'
    )
    
  :type repositoryName: string
  :param repositoryName: **[REQUIRED]** 

    The name of the repository that contains the blob.

    

  
  :type blobId: string
  :param blobId: **[REQUIRED]** 

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

    

  
  
  :rtype: 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**
  
  *   :py:class:`CodeCommit.Client.exceptions.RepositoryNameRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidRepositoryNameException`

  
  *   :py:class:`CodeCommit.Client.exceptions.RepositoryDoesNotExistException`

  
  *   :py:class:`CodeCommit.Client.exceptions.BlobIdRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidBlobIdException`

  
  *   :py:class:`CodeCommit.Client.exceptions.BlobIdDoesNotExistException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyDisabledException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyNotFoundException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyUnavailableException`

  
  *   :py:class:`CodeCommit.Client.exceptions.FileTooLargeException`

  