Interface RepositoryTriggerOptions

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:38.266Z") @Stability(Stable) public interface RepositoryTriggerOptions extends
Creates for a repository trigger to an SNS topic or Lambda function.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 RepositoryTriggerOptions repositoryTriggerOptions = RepositoryTriggerOptions.builder()
  • 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()
      a RepositoryTriggerOptions.Builder of RepositoryTriggerOptions