get_blob
¶
get_blob(
repository_name: RepositoryName,
blob_id: ObjectId,
*,
config_overrides: Optional[CodeCommitClientConfig] = None,
) -> GetBlobOutput
Returns the base-64 encoded content of an individual blob in a repository.
Parameters:
-
repository_name(RepositoryName) –The name of the repository that contains the blob.
-
blob_id(ObjectId) –The ID of the blob, which is its SHA-1 pointer.
Raises:
-
BlobIdDoesNotExistException–The specified blob does not exist.
-
BlobIdRequiredException–A blob ID is required, but was not specified.
-
EncryptionIntegrityChecksFailedException–An encryption integrity check failed.
-
EncryptionKeyAccessDeniedException–An encryption key could not be accessed.
-
EncryptionKeyDisabledException–The encryption key is disabled.
-
EncryptionKeyNotFoundException–No encryption key was found.
-
EncryptionKeyUnavailableException–The encryption key is not available.
-
FileTooLargeException–The specified file exceeds the file size limit for CodeCommit. For more information about limits in CodeCommit, see Quotas in the CodeCommit User Guide.
-
InvalidBlobIdException–The specified blob is not valid.
-
InvalidRepositoryNameException–A specified repository name is not valid.
This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
-
RepositoryDoesNotExistException–The specified repository does not exist.
-
RepositoryNameRequiredException–A repository name is required, but was not specified.
-
UnknownServiceError–The service returned an error code this client does not model.