v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

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

post/#X-Amz-Target=CodeCommit_20150413.AssociateApprovalRuleTemplateWithRepository

Headers

X-Amz-Target'CodeCommit_20150413.AssociateApprovalRuleTemplateWithRepository' required

Request body

approvalRuleTemplateNamestring required

The name for the approval rule template.

repositoryNamestring required

The name of the repository that you want to associate with the template.

Response

Success

All 77 operations