Class PipelineBase
- All Implemented Interfaces:
IConstruct,IDependable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
- Direct Known Subclasses:
CodePipeline
Different deployment systems will provide subclasses of Pipeline that generate
the deployment infrastructure necessary to deploy CDK apps, specific to that system.
This library comes with the CodePipeline class, which uses AWS CodePipeline
to deploy CDK apps.
The actual pipeline infrastructure is constructed (by invoking the engine)
when buildPipeline() is called, or when app.synth() is called (whichever
happens first).
-
Nested Class Summary
Nested classes/interfaces inherited from class software.constructs.Construct
software.constructs.Construct.BuilderNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPipelineBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPipelineBase(software.amazon.jsii.JsiiObjectRef objRef) protectedPipelineBase(software.constructs.Construct scope, String id, PipelineBaseProps props) -
Method Summary
Modifier and TypeMethodDescriptionDeploy a single Stage by itself.addStage(Stage stage, AddStageOpts options) Deploy a single Stage by itself.Add a Wave to the pipeline, for deploying multiple Stages in parallel.addWave(String id, WaveOptions options) Add a Wave to the pipeline, for deploying multiple Stages in parallel.voidSend the current pipeline definition to the engine, and construct the pipeline.protected abstract voidImplemented by subclasses to do the actual pipeline construction.The FileSet tha contains the cloud assembly.getSynth()The build step that produces the CDK Cloud Assembly.getWaves()The waves in this pipeline.Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods 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, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
PipelineBase
protected PipelineBase(software.amazon.jsii.JsiiObjectRef objRef) -
PipelineBase
protected PipelineBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
PipelineBase
@Stability(Stable) protected PipelineBase(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PipelineBaseProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
addStage
@Stability(Stable) @NotNull public StageDeployment addStage(@NotNull Stage stage, @Nullable AddStageOpts options) Deploy a single Stage by itself.Add a Stage to the pipeline, to be deployed in sequence with other Stages added to the pipeline. All Stacks in the stage will be deployed in an order automatically determined by their relative dependencies.
- Parameters:
stage- This parameter is required.options-
-
addStage
Deploy a single Stage by itself.Add a Stage to the pipeline, to be deployed in sequence with other Stages added to the pipeline. All Stacks in the stage will be deployed in an order automatically determined by their relative dependencies.
- Parameters:
stage- This parameter is required.
-
addWave
Add a Wave to the pipeline, for deploying multiple Stages in parallel.Use the return object of this method to deploy multiple stages in parallel.
Example:
CodePipeline pipeline; Wave wave = pipeline.addWave("MyWave"); wave.addStage(new MyApplicationStage(this, "Stage1")); wave.addStage(new MyApplicationStage(this, "Stage2"));- Parameters:
id- This parameter is required.options-
-
addWave
Add a Wave to the pipeline, for deploying multiple Stages in parallel.Use the return object of this method to deploy multiple stages in parallel.
Example:
CodePipeline pipeline; Wave wave = pipeline.addWave("MyWave"); wave.addStage(new MyApplicationStage(this, "Stage1")); wave.addStage(new MyApplicationStage(this, "Stage2"));- Parameters:
id- This parameter is required.
-
buildPipeline
@Stability(Stable) public void buildPipeline()Send the current pipeline definition to the engine, and construct the pipeline.It is not possible to modify the pipeline after calling this method.
-
doBuildPipeline
@Stability(Stable) protected abstract void doBuildPipeline()Implemented by subclasses to do the actual pipeline construction. -
getCloudAssemblyFileSet
The FileSet tha contains the cloud assembly.This is the primary output of the synth step.
-
getSynth
The build step that produces the CDK Cloud Assembly. -
getWaves
The waves in this pipeline.
-