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

AWS 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 AWS CodeCommit repository.

Syntax

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

JSON

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

YAML

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

Properties

Branches

The names of the branches in the AWS 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 strings

CustomData

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

Required: No

Type: String

DestinationArn

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

Required: No

Type: String

Events

The repository events for which AWS 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 strings

Name

A name for the trigger.

Required: Yes

Type: String

On this page: