Interface CfnRepository.RepositoryTriggerProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnRepository.RepositoryTriggerProperty extends
Information about a trigger for a repository.

If you want to receive notifications about repository events, consider using notifications instead of triggers. For more information, see Configuring notifications for repository events .


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 RepositoryTriggerProperty repositoryTriggerProperty = RepositoryTriggerProperty.builder()
         // the properties below are optional
  • Method Details

    • getDestinationArn

      @Stability(Stable) @NotNull String getDestinationArn()
      The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
    • getEvents

      @Stability(Stable) @NotNull List<String> getEvents()
      The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.

      The valid value "all" cannot be used with any other values.

    • getName

      @Stability(Stable) @NotNull String getName()
      The name of the trigger.
    • getBranches

      @Stability(Stable) @Nullable default List<String> getBranches()
      The branches to be included in the trigger configuration.

      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.

    • getCustomData

      @Stability(Stable) @Nullable default String getCustomData()
      Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
    • builder

      @Stability(Stable) static CfnRepository.RepositoryTriggerProperty.Builder builder()
      a CfnRepository.RepositoryTriggerProperty.Builder of CfnRepository.RepositoryTriggerProperty