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

CreateBranch() public method

Creates a new branch in a repository and points the branch to a commit.

Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.

/// The specified branch name already exists. /// /// A branch name is required but was not specified. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// A commit ID 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. /// /// The specified commit ID 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 CreateBranch ( CreateBranchRequest request ) : CreateBranchResponse
request Amazon.CodeCommit.Model.CreateBranchRequest Container for the necessary parameters to execute the CreateBranch service method.
return CreateBranchResponse
        public CreateBranchResponse CreateBranch(CreateBranchRequest request)
        {
            var marshaller = new CreateBranchRequestMarshaller();
            var unmarshaller = CreateBranchResponseUnmarshaller.Instance;

            return Invoke<CreateBranchRequest,CreateBranchResponse>(request, marshaller, unmarshaller);
        }