Smaws_Client_CodeCommit.AssociateApprovalRuleTemplateWithRepositoryCreates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the destination reference (if specified) matches the destination reference (branch) for the pull request, an approval rule that matches the template conditions is automatically created for that pull request. If no destination references are specified in the template, an approval rule that matches the template contents is created for all pull requests in that repository.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `ApprovalRuleTemplateDoesNotExistException of
Types.approval_rule_template_does_not_exist_exception
| `ApprovalRuleTemplateNameRequiredException of
Types.approval_rule_template_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
| `InvalidApprovalRuleTemplateNameException of
Types.invalid_approval_rule_template_name_exception
| `InvalidRepositoryNameException of Types.invalid_repository_name_exception
| `MaximumRuleTemplatesAssociatedWithRepositoryException of
Types.maximum_rule_templates_associated_with_repository_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.associate_approval_rule_template_with_repository_input ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsJson.error
| `ApprovalRuleTemplateDoesNotExistException of
Types.approval_rule_template_does_not_exist_exception
| `ApprovalRuleTemplateNameRequiredException of
Types.approval_rule_template_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
| `InvalidApprovalRuleTemplateNameException of
Types.invalid_approval_rule_template_name_exception
| `InvalidRepositoryNameException of
Types.invalid_repository_name_exception
| `MaximumRuleTemplatesAssociatedWithRepositoryException of
Types.maximum_rule_templates_associated_with_repository_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.associate_approval_rule_template_with_repository_input ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `ApprovalRuleTemplateDoesNotExistException of
Types.approval_rule_template_does_not_exist_exception
| `ApprovalRuleTemplateNameRequiredException of
Types.approval_rule_template_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
| `InvalidApprovalRuleTemplateNameException of
Types.invalid_approval_rule_template_name_exception
| `InvalidRepositoryNameException of
Types.invalid_repository_name_exception
| `MaximumRuleTemplatesAssociatedWithRepositoryException of
Types.maximum_rule_templates_associated_with_repository_exception
| `RepositoryDoesNotExistException of
Types.repository_does_not_exist_exception
| `RepositoryNameRequiredException of
Types.repository_name_required_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result