Smaws_Client_CodeCommit.CreateApprovalRuleTemplateCreates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account. When you associate a template with a repository, CodeCommit creates an approval rule that matches the conditions of the template for all pull requests that meet the conditions of the template. For more information, see AssociateApprovalRuleTemplateWithRepository.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `ApprovalRuleTemplateContentRequiredException of
Types.approval_rule_template_content_required_exception
| `ApprovalRuleTemplateNameAlreadyExistsException of
Types.approval_rule_template_name_already_exists_exception
| `ApprovalRuleTemplateNameRequiredException of
Types.approval_rule_template_name_required_exception
| `InvalidApprovalRuleTemplateContentException of
Types.invalid_approval_rule_template_content_exception
| `InvalidApprovalRuleTemplateDescriptionException of
Types.invalid_approval_rule_template_description_exception
| `InvalidApprovalRuleTemplateNameException of
Types.invalid_approval_rule_template_name_exception
| `NumberOfRuleTemplatesExceededException of
Types.number_of_rule_templates_exceeded_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_approval_rule_template_input ->
(Types.create_approval_rule_template_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `ApprovalRuleTemplateContentRequiredException of
Types.approval_rule_template_content_required_exception
| `ApprovalRuleTemplateNameAlreadyExistsException of
Types.approval_rule_template_name_already_exists_exception
| `ApprovalRuleTemplateNameRequiredException of
Types.approval_rule_template_name_required_exception
| `InvalidApprovalRuleTemplateContentException of
Types.invalid_approval_rule_template_content_exception
| `InvalidApprovalRuleTemplateDescriptionException of
Types.invalid_approval_rule_template_description_exception
| `InvalidApprovalRuleTemplateNameException of
Types.invalid_approval_rule_template_name_exception
| `NumberOfRuleTemplatesExceededException of
Types.number_of_rule_templates_exceeded_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_approval_rule_template_input ->
(Types.create_approval_rule_template_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `ApprovalRuleTemplateContentRequiredException of
Types.approval_rule_template_content_required_exception
| `ApprovalRuleTemplateNameAlreadyExistsException of
Types.approval_rule_template_name_already_exists_exception
| `ApprovalRuleTemplateNameRequiredException of
Types.approval_rule_template_name_required_exception
| `InvalidApprovalRuleTemplateContentException of
Types.invalid_approval_rule_template_content_exception
| `InvalidApprovalRuleTemplateDescriptionException of
Types.invalid_approval_rule_template_description_exception
| `InvalidApprovalRuleTemplateNameException of
Types.invalid_approval_rule_template_name_exception
| `NumberOfRuleTemplatesExceededException of
Types.number_of_rule_templates_exceeded_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result