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.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));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.events.IRuleTarget
IRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionCodePipeline
(IPipeline pipeline) CodePipeline
(IPipeline pipeline, CodePipelineTargetOptions options) protected
CodePipeline
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CodePipeline
(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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
inputXxx
options. They can be set in a call toaddTarget
.- Specified by:
bind
in interfaceIRuleTarget
- Parameters:
_rule
- This parameter is required._id
-
-
bind
Returns the rule target specification.NOTE: Do not use the various
inputXxx
options. They can be set in a call toaddTarget
.- Specified by:
bind
in interfaceIRuleTarget
- Parameters:
_rule
- This parameter is required.
-