get_commit
¶
get_commit(
repository_name: RepositoryName,
commit_id: ObjectId,
*,
config_overrides: Optional[CodeCommitClientConfig] = None,
) -> GetCommitOutput
Returns information about a commit, including commit message and committer information.
Parameters:
-
repository_name(RepositoryName) –The name of the repository to which the commit was made.
-
commit_id(ObjectId) –The commit ID. Commit IDs are the full SHA ID of the commit.
Raises:
-
CommitIdDoesNotExistException–The specified commit ID does not exist.
-
CommitIdRequiredException–A commit ID 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.
-
InvalidCommitIdException–The specified commit ID 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.