Class RepositoryTriggerOptions
Creates for a repository trigger to an SNS topic or Lambda function.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CodeCommit
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RepositoryTriggerOptions : Object, IRepositoryTriggerOptions
Syntax (vb)
Public Class RepositoryTriggerOptions
Inherits Object
Implements 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
Constructors
Repository |
Properties
Branches | The names of the branches in the AWS CodeCommit repository that contain events that you want to include in the trigger. |
Custom |
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. |
Constructors
RepositoryTriggerOptions()
public RepositoryTriggerOptions()
Properties
Branches
The names of the branches in the AWS CodeCommit repository that contain events that you want to include in the trigger.
public string[] Branches { get; set; }
Property Value
System.
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.
public string CustomData { get; set; }
Property Value
System.
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.
public RepositoryEventTrigger[] Events { get; set; }
Property Value
Name
A name for the trigger.Triggers on a repository must have unique names.
public string Name { get; set; }
Property Value
System.