Module Smaws_Client_CodeCommit.UpdateDefaultBranch

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.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `BranchDoesNotExistException of Types.branch_does_not_exist_exception | `BranchNameRequiredException of Types.branch_name_required_exception | `EncryptionIntegrityChecksFailedException of Types.encryption_integrity_checks_failed_exception | `EncryptionKeyAccessDeniedException of Types.encryption_key_access_denied_exception | `EncryptionKeyDisabledException of Types.encryption_key_disabled_exception | `EncryptionKeyNotFoundException of Types.encryption_key_not_found_exception | `EncryptionKeyUnavailableException of Types.encryption_key_unavailable_exception | `InvalidBranchNameException of Types.invalid_branch_name_exception | `InvalidRepositoryNameException of Types.invalid_repository_name_exception | `RepositoryDoesNotExistException of Types.repository_does_not_exist_exception | `RepositoryNameRequiredException of Types.repository_name_required_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.update_default_branch_input -> (Smaws_Lib.Smithy_api.Types.unit_, [> Smaws_Lib.Protocols.AwsJson.error | `BranchDoesNotExistException of Types.branch_does_not_exist_exception | `BranchNameRequiredException of Types.branch_name_required_exception | `EncryptionIntegrityChecksFailedException of Types.encryption_integrity_checks_failed_exception | `EncryptionKeyAccessDeniedException of Types.encryption_key_access_denied_exception | `EncryptionKeyDisabledException of Types.encryption_key_disabled_exception | `EncryptionKeyNotFoundException of Types.encryption_key_not_found_exception | `EncryptionKeyUnavailableException of Types.encryption_key_unavailable_exception | `InvalidBranchNameException of Types.invalid_branch_name_exception | `InvalidRepositoryNameException of Types.invalid_repository_name_exception | `RepositoryDoesNotExistException of Types.repository_does_not_exist_exception | `RepositoryNameRequiredException of Types.repository_name_required_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.update_default_branch_input -> (Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `BranchDoesNotExistException of Types.branch_does_not_exist_exception | `BranchNameRequiredException of Types.branch_name_required_exception | `EncryptionIntegrityChecksFailedException of Types.encryption_integrity_checks_failed_exception | `EncryptionKeyAccessDeniedException of Types.encryption_key_access_denied_exception | `EncryptionKeyDisabledException of Types.encryption_key_disabled_exception | `EncryptionKeyNotFoundException of Types.encryption_key_not_found_exception | `EncryptionKeyUnavailableException of Types.encryption_key_unavailable_exception | `InvalidBranchNameException of Types.invalid_branch_name_exception | `InvalidRepositoryNameException of Types.invalid_repository_name_exception | `RepositoryDoesNotExistException of Types.repository_does_not_exist_exception | `RepositoryNameRequiredException of Types.repository_name_required_exception ] * Smaws_Lib.Response.metadata) Stdlib.result