Hi@akhtar,
You can get information about one or more branches in a repository. The below example lists all branch names in an AWS CodeCommit repository.
$ aws codecommit list-branches --repository-name MyDemoRepo
{
"branches": [
"MyNewBranch",
"master"
]
}