Module Smaws_Client_CodeCommit.CreatePullRequestApprovalRule

Creates an approval rule for a pull request.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `ApprovalRuleContentRequiredException of Types.approval_rule_content_required_exception | `ApprovalRuleNameAlreadyExistsException of Types.approval_rule_name_already_exists_exception | `ApprovalRuleNameRequiredException of Types.approval_rule_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 | `InvalidApprovalRuleContentException of Types.invalid_approval_rule_content_exception | `InvalidApprovalRuleNameException of Types.invalid_approval_rule_name_exception | `InvalidPullRequestIdException of Types.invalid_pull_request_id_exception | `NumberOfRulesExceededException of Types.number_of_rules_exceeded_exception | `PullRequestAlreadyClosedException of Types.pull_request_already_closed_exception | `PullRequestDoesNotExistException of Types.pull_request_does_not_exist_exception | `PullRequestIdRequiredException of Types.pull_request_id_required_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_pull_request_approval_rule_input -> (Types.create_pull_request_approval_rule_output, [> Smaws_Lib.Protocols.AwsJson.error | `ApprovalRuleContentRequiredException of Types.approval_rule_content_required_exception | `ApprovalRuleNameAlreadyExistsException of Types.approval_rule_name_already_exists_exception | `ApprovalRuleNameRequiredException of Types.approval_rule_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 | `InvalidApprovalRuleContentException of Types.invalid_approval_rule_content_exception | `InvalidApprovalRuleNameException of Types.invalid_approval_rule_name_exception | `InvalidPullRequestIdException of Types.invalid_pull_request_id_exception | `NumberOfRulesExceededException of Types.number_of_rules_exceeded_exception | `PullRequestAlreadyClosedException of Types.pull_request_already_closed_exception | `PullRequestDoesNotExistException of Types.pull_request_does_not_exist_exception | `PullRequestIdRequiredException of Types.pull_request_id_required_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.create_pull_request_approval_rule_input -> (Types.create_pull_request_approval_rule_output Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `ApprovalRuleContentRequiredException of Types.approval_rule_content_required_exception | `ApprovalRuleNameAlreadyExistsException of Types.approval_rule_name_already_exists_exception | `ApprovalRuleNameRequiredException of Types.approval_rule_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 | `InvalidApprovalRuleContentException of Types.invalid_approval_rule_content_exception | `InvalidApprovalRuleNameException of Types.invalid_approval_rule_name_exception | `InvalidPullRequestIdException of Types.invalid_pull_request_id_exception | `NumberOfRulesExceededException of Types.number_of_rules_exceeded_exception | `PullRequestAlreadyClosedException of Types.pull_request_already_closed_exception | `PullRequestDoesNotExistException of Types.pull_request_does_not_exist_exception | `PullRequestIdRequiredException of Types.pull_request_id_required_exception ] * Smaws_Lib.Response.metadata) Stdlib.result