All Implemented Interfaces:
Serializable, Comparable<CodeCommitTrigger>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.411Z") @Stability(Stable) public enum CodeCommitTrigger extends Enum<CodeCommitTrigger>
How should the CodeCommit Action detect changes.

This is the type of the

invalid @link


 // Source stage: read from repository
 Repository repo = Repository.Builder.create(stack, "TemplateRepo")
 Artifact sourceOutput = new Artifact("SourceArtifact");
 CodeCommitSourceAction source = CodeCommitSourceAction.Builder.create()
 Map<String, Object> sourceStage = Map.of(
         "stageName", "Source",
         "actions", List.of(source));
 // Deployment stage: create and deploy changeset with manual approval
 String stackName = "OurStack";
 String changeSetName = "StagedChangeSet";
 Map<String, Object> prodStage = Map.of(
         "stageName", "Deploy",
         "actions", List.of(
 Pipeline.Builder.create(stack, "Pipeline")
         .stages(List.of(sourceStage, prodStage))
  • Enum Constant Details

    • NONE

      @Stability(Stable) public static final CodeCommitTrigger NONE
      The Action will never detect changes - the Pipeline it's part of will only begin a run when explicitly started.
    • POLL

      @Stability(Stable) public static final CodeCommitTrigger POLL
      CodePipeline will poll the repository to detect changes.
    • EVENTS

      @Stability(Stable) public static final CodeCommitTrigger EVENTS
      CodePipeline will use CloudWatch Events to be notified of changes.

      This is the default method of detecting changes.

  • Method Details

    • values

      public static CodeCommitTrigger[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CodeCommitTrigger valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null