Smaws_Client_CodeCommit.CreateBranchCreates a 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `BranchNameExistsException of Types.branch_name_exists_exception
| `BranchNameRequiredException of Types.branch_name_required_exception
| `CommitDoesNotExistException of Types.commit_does_not_exist_exception
| `CommitIdRequiredException of Types.commit_id_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
| `InvalidCommitIdException of Types.invalid_commit_id_exception
| `InvalidRepositoryNameException of Types.invalid_repository_name_exception
| `RepositoryDoesNotExistException of
Types.repository_does_not_exist_exception
| `RepositoryNameRequiredException of
Types.repository_name_required_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_branch_input ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsJson.error
| `BranchNameExistsException of Types.branch_name_exists_exception
| `BranchNameRequiredException of Types.branch_name_required_exception
| `CommitDoesNotExistException of Types.commit_does_not_exist_exception
| `CommitIdRequiredException of Types.commit_id_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
| `InvalidCommitIdException of Types.invalid_commit_id_exception
| `InvalidRepositoryNameException of
Types.invalid_repository_name_exception
| `RepositoryDoesNotExistException of
Types.repository_does_not_exist_exception
| `RepositoryNameRequiredException of
Types.repository_name_required_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_branch_input ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `BranchNameExistsException of Types.branch_name_exists_exception
| `BranchNameRequiredException of Types.branch_name_required_exception
| `CommitDoesNotExistException of Types.commit_does_not_exist_exception
| `CommitIdRequiredException of Types.commit_id_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
| `InvalidCommitIdException of Types.invalid_commit_id_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