Hi@akhtar,
You can get information about a repository branch, including its name and the last commit ID. This example gets information about a branch in an AWS CodeCommit repository.
$ aws codecommit get-branch --repository-name MyDemoRepo --branch-name MyNewBranch