

# BranchInfo
<a name="API_BranchInfo"></a>

Returns information about a branch.

## Contents
<a name="API_BranchInfo_Contents"></a>

 ** branchName **   <a name="CodeCommit-Type-BranchInfo-branchName"></a>
The name of the branch.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Required: No

 ** commitId **   <a name="CodeCommit-Type-BranchInfo-commitId"></a>
The ID of the last commit made to the branch.  
Type: String  
Required: No

## See Also
<a name="API_BranchInfo_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/codecommit-2015-04-13/BranchInfo) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/codecommit-2015-04-13/BranchInfo) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/codecommit-2015-04-13/BranchInfo) 