When you use an AWS CodeCommit repository to store code, you might want to monitor the repository and initiate a workflow of actions when specific events occur. For example, you might want to send an email notification when a user comments on a line of code in a commit, or initiate an AWS Lambda function to perform security scans on repository contents after a commit. This pattern outlines the steps for configuring a CodeCommit repository for custom actions. The pattern uses AWS CodeCommit notification rules to capture the events of interest, and then sends these events to a configured target.