AWS CloudFormation
User Guide (API Version 2010-05-15)

CodeCommit Repository Trigger

Trigger is a property of the AWS::CodeCommit::Repository resource that defines the actions to take in response to events that occur in the CodeCommit repository.


To declare this entity in your AWS CloudFormation template, use the following syntax:


{ "Branches" : [ String, ... ], "CustomData" : String, "DestinationArn" : String, "Events" : [ String, ... ], "Name" : String }


Branches: - String CustomData: String DestinationArn: String Events: - String Name: String



The names of the branches in the CodeCommit repository that contain events that you want to include in the trigger. If you don't specify at least one branch, the trigger applies to all branches.

Required: No

Type: List of String values


When an event is triggered, additional information that CodeCommit includes when it sends information to the target.

Required: No

Type: String


The Amazon Resource Name (ARN) of the resource that is the target for this trigger. For valid targets, see Manage Triggers for an CodeCommit Repository in the AWS CodeCommit User Guide.

Required: No

Type: String


The repository events for which CodeCommit sends information to the target, which you specified in the DestinationArn property. If you don't specify events, the trigger runs for all repository events. For valid values, see the RepositoryTrigger data type in the AWS CodeCommit API Reference.

Required: No

Type: List of String values


A name for the trigger.

Required: Yes

Type: String

On this page: