Module Values.CreateApprovalRuleTemplateOutputSource

Creates 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.

Sourcetype nonrec t = {
  1. approvalRuleTemplate : ApprovalRuleTemplate.t option;
    (*

    The content and structure of the created approval rule template.

    *)
}
Sourcetype nonrec error = [
  1. | `ApprovalRuleTemplateContentRequiredException of ApprovalRuleTemplateContentRequiredException.t
  2. | `ApprovalRuleTemplateNameAlreadyExistsException of ApprovalRuleTemplateNameAlreadyExistsException.t
  3. | `ApprovalRuleTemplateNameRequiredException of ApprovalRuleTemplateNameRequiredException.t
  4. | `InvalidApprovalRuleTemplateContentException of InvalidApprovalRuleTemplateContentException.t
  5. | `InvalidApprovalRuleTemplateDescriptionException of InvalidApprovalRuleTemplateDescriptionException.t
  6. | `InvalidApprovalRuleTemplateNameException of InvalidApprovalRuleTemplateNameException.t
  7. | `NumberOfRuleTemplatesExceededException of NumberOfRuleTemplatesExceededException.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval make : ?approvalRuleTemplate:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ApprovalRuleTemplateContentRequiredException of unit | `ApprovalRuleTemplateNameAlreadyExistsException of unit | `ApprovalRuleTemplateNameRequiredException of unit | `InvalidApprovalRuleTemplateContentException of unit | `InvalidApprovalRuleTemplateDescriptionException of unit | `InvalidApprovalRuleTemplateNameException of unit | `NumberOfRuleTemplatesExceededException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `ApprovalRuleTemplateContentRequiredException of unit | `ApprovalRuleTemplateNameAlreadyExistsException of unit | `ApprovalRuleTemplateNameRequiredException of unit | `InvalidApprovalRuleTemplateContentException of unit | `InvalidApprovalRuleTemplateDescriptionException of unit | `InvalidApprovalRuleTemplateNameException of unit | `NumberOfRuleTemplatesExceededException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `String of ApprovalRuleTemplateId.t | `Timestamp of LastModifiedDate.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t