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();
 
  • Method Details

    • getBranches

      @Stability(Stable) @Nullable default List<String> 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

      @Stability(Stable) @Nullable default String getCustomData()
      When an event is triggered, additional information that AWS CodeCommit includes when it sends information to the target.
    • getEvents

      @Stability(Stable) @Nullable default List<RepositoryEventTrigger> 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

      @Stability(Stable) @Nullable default String getName()
      A name for the trigger.Triggers on a repository must have unique names.
    • builder

      @Stability(Stable) static RepositoryTriggerOptions.Builder builder()
      Returns:
      a RepositoryTriggerOptions.Builder of RepositoryTriggerOptions