Interface CfnRepository.IRepositoryTriggerProperty
Information about a trigger for a repository.
Namespace: Amazon.CDK.AWS.CodeCommit
Assembly: Amazon.CDK.AWS.CodeCommit.dll
Syntax (csharp)
public interface IRepositoryTriggerProperty
Syntax (vb)
Public Interface IRepositoryTriggerProperty
Remarks
If you want to receive notifications about repository events, consider using notifications instead of triggers. For more information, see Configuring notifications for repository events .
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 repositoryTriggerProperty = new RepositoryTriggerProperty {
DestinationArn = "destinationArn",
Events = new [] { "events" },
Name = "name",
// the properties below are optional
Branches = new [] { "branches" },
CustomData = "customData"
};
Synopsis
Properties
Branches | The branches to be included in the trigger configuration. |
CustomData | Any custom data associated with the trigger to be included in the information sent to the target of the trigger. |
DestinationArn | The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS). |
Events | The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS. |
Name | The name of the trigger. |
Properties
Branches
The branches to be included in the trigger configuration.
virtual string[] Branches { get; }
Property Value
System.String[]
Remarks
If you specify an empty array, the trigger applies to all branches.
Although no content is required in the array, you must include the array itself.
CustomData
Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
virtual string CustomData { get; }
Property Value
System.String
Remarks
DestinationArn
The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
string DestinationArn { get; }
Property Value
System.String
Remarks
Events
The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
string[] Events { get; }
Property Value
System.String[]
Remarks
The valid value "all" cannot be used with any other values.
Name
The name of the trigger.
string Name { get; }
Property Value
System.String