Amazon.CodeCommit.AmazonCodeCommitClient.GetBranch C# (CSharp) Method

GetBranch() public method

Returns information about a repository branch, including its name and the last commit ID.
/// The specified branch does not exist. /// /// A branch name is required but was not specified. /// /// An encryption integrity check failed. /// /// An encryption key could not be accessed. /// /// The encryption key is disabled. /// /// No encryption key was found. /// /// The encryption key is not available. /// /// The specified branch name is not valid. /// /// At least one specified repository name is not valid. /// /// /// /// This exception only occurs 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. /// /// /// /// The specified repository does not exist. /// /// A repository name is required but was not specified. ///
public GetBranch ( GetBranchRequest request ) : Amazon.CodeCommit.Model.GetBranchResponse
request Amazon.CodeCommit.Model.GetBranchRequest Container for the necessary parameters to execute the GetBranch service method.
return Amazon.CodeCommit.Model.GetBranchResponse
        public GetBranchResponse GetBranch(GetBranchRequest request)
        {
            var marshaller = new GetBranchRequestMarshaller();
            var unmarshaller = GetBranchResponseUnmarshaller.Instance;

            return Invoke<GetBranchRequest,GetBranchResponse>(request, marshaller, unmarshaller);
        }