Class CodeBuildStartBuild

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.scheduler.targets.alpha.ScheduleTargetBase
software.amazon.awscdk.services.scheduler.targets.alpha.CodeBuildStartBuild
All Implemented Interfaces:
IScheduleTarget, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:39.621Z") @Stability(Experimental) public class CodeBuildStartBuild extends ScheduleTargetBase implements IScheduleTarget
(experimental) Use an AWS CodeBuild as a target for AWS EventBridge Scheduler.

Example:

 import software.amazon.awscdk.services.codebuild.*;
 Project project;
 Schedule.Builder.create(this, "Schedule")
         .schedule(ScheduleExpression.rate(Duration.minutes(60)))
         .target(new CodeBuildStartBuild(project))
         .build();
 
  • Constructor Details

    • CodeBuildStartBuild

      protected CodeBuildStartBuild(software.amazon.jsii.JsiiObjectRef objRef)
    • CodeBuildStartBuild

      protected CodeBuildStartBuild(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CodeBuildStartBuild

      @Stability(Experimental) public CodeBuildStartBuild(@NotNull IProject project, @Nullable ScheduleTargetBaseProps props)
      Parameters:
      project - This parameter is required.
      props -
    • CodeBuildStartBuild

      @Stability(Experimental) public CodeBuildStartBuild(@NotNull IProject project)
      Parameters:
      project - This parameter is required.
  • Method Details

    • addTargetActionToRole

      @Stability(Experimental) protected void addTargetActionToRole(@NotNull ISchedule schedule, @NotNull IRole role)
      Specified by:
      addTargetActionToRole in class ScheduleTargetBase
      Parameters:
      schedule - This parameter is required.
      role - This parameter is required.