Interface CodeBuildProjectProps

All Superinterfaces:, TargetBaseProps
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:17.382Z") @Stability(Stable) public interface CodeBuildProjectProps extends, TargetBaseProps
Customize the CodeBuild Event Target.


 Repository repo = Repository.Builder.create(this, "MyRepo")
 Project project = Project.Builder.create(this, "MyProject")
 Queue deadLetterQueue = new Queue(this, "DeadLetterQueue");
 // trigger a build when a commit is pushed to the repo
 Rule onCommitRule = repo.onCommit("OnCommit", OnCommitOptions.builder()
  • Method Details

    • getEvent

      @Stability(Stable) @Nullable default RuleTargetInput getEvent()
      The event to send to CodeBuild.

      This will be the payload for the StartBuild API.

      Default: - the entire EventBridge event

    • getEventRole

      @Stability(Stable) @Nullable default IRole getEventRole()
      The role to assume before invoking the target (i.e., the codebuild) when the given rule is triggered.

      Default: - a new role will be created

    • builder

      @Stability(Stable) static CodeBuildProjectProps.Builder builder()
      a CodeBuildProjectProps.Builder of CodeBuildProjectProps