@Generated(value="jsii-pacmak/1.26.0 (build 7d76e02)", date="2021-03-25T11:30:29.080Z") @Stability(value=Experimental) public class CdkPipeline extends Construct
Defines an AWS CodePipeline-based Pipeline to deploy CDK applications.
Automatically manages the following:
| Modifier and Type | Class and Description |
|---|---|
static class |
CdkPipeline.Builder
(experimental) A fluent builder for
CdkPipeline. |
software.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
CdkPipeline(software.constructs.Construct scope,
String id,
CdkPipelineProps props) |
protected |
CdkPipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CdkPipeline(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
CdkStage |
addApplicationStage(Stage appStage)
(experimental) Add pipeline stage that will deploy the given application stage.
|
CdkStage |
addApplicationStage(Stage appStage,
AddStageOptions options)
(experimental) Add pipeline stage that will deploy the given application stage.
|
CdkStage |
addStage(String stageName)
(experimental) Add a new, empty stage to the pipeline.
|
Pipeline |
getCodePipeline()
(experimental) The underlying CodePipeline object.
|
StackOutput |
stackOutput(CfnOutput cfnOutput)
(experimental) Get the StackOutput object that holds this CfnOutput's value in this pipeline.
|
IStage |
stage(String stageName)
(experimental) Access one of the pipeline's stages by stage name.
|
protected List<String> |
validate()
(experimental) Validate that we don't have any stacks violating dependency order in the pipeline.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CdkPipeline(software.amazon.jsii.JsiiObjectRef objRef)
protected CdkPipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public CdkPipeline(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CdkPipelineProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public CdkStage addApplicationStage(@NotNull Stage appStage, @Nullable AddStageOptions options)
The application construct should subclass Stage and can contain any
number of Stacks inside it that may have dependency relationships
on one another.
All stacks in the application will be deployed in the appropriate order, and all assets found in the application will be added to the asset publishing stage.
appStage - This parameter is required.options - @Stability(value=Experimental) @NotNull public CdkStage addApplicationStage(@NotNull Stage appStage)
The application construct should subclass Stage and can contain any
number of Stacks inside it that may have dependency relationships
on one another.
All stacks in the application will be deployed in the appropriate order, and all assets found in the application will be added to the asset publishing stage.
appStage - This parameter is required.@Stability(value=Experimental) @NotNull public CdkStage addStage(@NotNull String stageName)
Prefer to use addApplicationStage if you are intended to deploy a CDK
application, but you can use this method if you want to add other kinds of
Actions to a pipeline.
stageName - This parameter is required.@Stability(value=Experimental) @NotNull public StackOutput stackOutput(@NotNull CfnOutput cfnOutput)
StackOutput can be used in validation actions later in the pipeline.
cfnOutput - This parameter is required.@Stability(value=Experimental) @NotNull public IStage stage(@NotNull String stageName)
You can use this to add more Actions to a stage.
stageName - This parameter is required.@Stability(value=Experimental) @NotNull protected List<String> validate()
Our own convenience methods will never generate a pipeline that does that (although this is a nice verification), but a user can also add the stacks by hand.
@Stability(value=Experimental) @NotNull public Pipeline getCodePipeline()
You can use this to add more Stages to the pipeline, or Actions to Stages.
Copyright © 2021. All rights reserved.