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

UpdateDefaultBranch() public method

Sets or changes the default branch name for the specified repository.

If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.

/// 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 UpdateDefaultBranch ( UpdateDefaultBranchRequest request ) : UpdateDefaultBranchResponse
request Amazon.CodeCommit.Model.UpdateDefaultBranchRequest Container for the necessary parameters to execute the UpdateDefaultBranch service method.
return UpdateDefaultBranchResponse
        public UpdateDefaultBranchResponse UpdateDefaultBranch(UpdateDefaultBranchRequest request)
        {
            var marshaller = new UpdateDefaultBranchRequestMarshaller();
            var unmarshaller = UpdateDefaultBranchResponseUnmarshaller.Instance;

            return Invoke<UpdateDefaultBranchRequest,UpdateDefaultBranchResponse>(request, marshaller, unmarshaller);
        }