Skip to content

Update Approval Rule Template Content

codecommit_update_approval_rule_template_content R Documentation

Updates the content of an approval rule template

Description

Updates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an approval pool is defined.

Usage

codecommit_update_approval_rule_template_content(
  approvalRuleTemplateName, newRuleContent, existingRuleContentSha256)

Arguments

approvalRuleTemplateName

[required] The name of the approval rule template where you want to update the content of the rule.

newRuleContent

[required] The content that replaces the existing content of the rule. Content statements must be complete. You cannot provide only the changes.

existingRuleContentSha256

The SHA-256 hash signature for the content of the approval rule. You can retrieve this information by using get_pull_request.

Value

A list with the following syntax:

list(
  approvalRuleTemplate = list(
    approvalRuleTemplateId = "string",
    approvalRuleTemplateName = "string",
    approvalRuleTemplateDescription = "string",
    approvalRuleTemplateContent = "string",
    ruleContentSha256 = "string",
    lastModifiedDate = as.POSIXct(
      "2015-01-01"
    ),
    creationDate = as.POSIXct(
      "2015-01-01"
    ),
    lastModifiedUser = "string"
  )
)

Request syntax

svc$update_approval_rule_template_content(
  approvalRuleTemplateName = "string",
  newRuleContent = "string",
  existingRuleContentSha256 = "string"
)