Class CodePipeline
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.119.0 (build 1634eac)",
date="2025-11-17T14:40:52.705Z")
@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));
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.events.IRuleTarget
IRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionCodePipeline(IPipeline pipeline) CodePipeline(IPipeline pipeline, CodePipelineTargetOptions options) protectedCodePipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCodePipeline(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns the rule target specification.Returns the rule target specification.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
- 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
inputXxxoptions. They can be set in a call toaddTarget.- Specified by:
bindin interfaceIRuleTarget- Parameters:
_rule- This parameter is required._id-
-
bind
Returns the rule target specification.NOTE: Do not use the various
inputXxxoptions. They can be set in a call toaddTarget.- Specified by:
bindin interfaceIRuleTarget- Parameters:
_rule- This parameter is required.
-