Interface RepositoryTriggerOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RepositoryTriggerOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:38.266Z")
@Stability(Stable)
public interface RepositoryTriggerOptions
extends software.amazon.jsii.JsiiSerializable
Creates for a repository trigger to an SNS topic or Lambda function.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.codecommit.*; RepositoryTriggerOptions repositoryTriggerOptions = RepositoryTriggerOptions.builder() .branches(List.of("branches")) .customData("customData") .events(List.of(RepositoryEventTrigger.ALL)) .name("name") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forRepositoryTriggerOptions
static final class
An implementation forRepositoryTriggerOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The names of the branches in the AWS CodeCommit repository that contain events that you want to include in the trigger.default String
When an event is triggered, additional information that AWS CodeCommit includes when it sends information to the target.default List<RepositoryEventTrigger>
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.default String
getName()
A name for the trigger.Triggers on a repository must have unique names.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBranches
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.
-
getCustomData
When an event is triggered, additional information that AWS CodeCommit includes when it sends information to the target. -
getEvents
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. -
getName
A name for the trigger.Triggers on a repository must have unique names. -
builder
- Returns:
- a
RepositoryTriggerOptions.Builder
ofRepositoryTriggerOptions
-