Interface IRepositoryTriggerOptions
Creates for a repository trigger to an SNS topic or Lambda function.
Namespace: Amazon.CDK.AWS.CodeCommit
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IRepositoryTriggerOptions
Syntax (vb)
Public Interface IRepositoryTriggerOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeCommit;
var repositoryTriggerOptions = new RepositoryTriggerOptions {
Branches = new [] { "branches" },
CustomData = "customData",
Events = new [] { RepositoryEventTrigger.ALL },
Name = "name"
};
Synopsis
Properties
Branches | The names of the branches in the AWS CodeCommit repository that contain events that you want to include in the trigger. |
CustomData | When an event is triggered, additional information that AWS CodeCommit includes when it sends information to the target. |
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. |
Name | A name for the trigger.Triggers on a repository must have unique names. |
Properties
Branches
The names of the branches in the AWS CodeCommit repository that contain events that you want to include in the trigger.
virtual string[] Branches { get; }
Property Value
System.String[]
Remarks
If you don't specify at least one branch, the trigger applies to all branches.
CustomData
When an event is triggered, additional information that AWS CodeCommit includes when it sends information to the target.
virtual string CustomData { get; }
Property Value
System.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.
virtual RepositoryEventTrigger[] Events { get; }
Property Value
Name
A name for the trigger.Triggers on a repository must have unique names.
virtual string Name { get; }
Property Value
System.String