Class CfnRepository.RepositoryTriggerProperty
Information about a trigger for a repository.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CodeCommit
Assembly: Amazon.CDK.AWS.CodeCommit.dll
Syntax (csharp)
public class RepositoryTriggerProperty : Object, CfnRepository.IRepositoryTriggerProperty
Syntax (vb)
Public Class RepositoryTriggerProperty
Inherits Object
Implements CfnRepository.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
Constructors
RepositoryTriggerProperty() |
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. |
Constructors
RepositoryTriggerProperty()
public RepositoryTriggerProperty()
Properties
Branches
The branches to be included in the trigger configuration.
public string[] Branches { get; set; }
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.
public string CustomData { get; set; }
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).
public string DestinationArn { get; set; }
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.
public string[] Events { get; set; }
Property Value
System.String[]
Remarks
The valid value "all" cannot be used with any other values.
Name
The name of the trigger.
public string Name { get; set; }
Property Value
System.String