java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.events.targets.CodePipeline
All Implemented Interfaces:
IRuleTarget, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:43.729Z") @Stability(Stable) public class CodePipeline extends software.amazon.jsii.JsiiObject implements IRuleTarget
Allows the pipeline to be used as an EventBridge rule target.

Example:

 // A pipeline being used as a target for a CloudWatch event rule.
 import software.amazon.awscdk.services.events.targets.*;
 import software.amazon.awscdk.services.events.*;
 Pipeline pipeline;
 // kick off the pipeline every day
 Rule rule = Rule.Builder.create(this, "Daily")
         .schedule(Schedule.rate(Duration.days(1)))
         .build();
 rule.addTarget(new CodePipeline(pipeline));
 
  • Constructor Details

    • CodePipeline

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

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

      @Stability(Stable) public CodePipeline(@NotNull IPipeline pipeline, @Nullable CodePipelineTargetOptions options)
      Parameters:
      pipeline - This parameter is required.
      options -
    • CodePipeline

      @Stability(Stable) public CodePipeline(@NotNull IPipeline pipeline)
      Parameters:
      pipeline - This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule _rule, @Nullable String _id)
      Returns the rule target specification.

      NOTE: Do not use the various inputXxx options. They can be set in a call to addTarget.

      Specified by:
      bind in interface IRuleTarget
      Parameters:
      _rule - This parameter is required.
      _id -
    • bind

      @Stability(Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule _rule)
      Returns the rule target specification.

      NOTE: Do not use the various inputXxx options. They can be set in a call to addTarget.

      Specified by:
      bind in interface IRuleTarget
      Parameters:
      _rule - This parameter is required.