@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-02T20:25:38.835Z") public class CodePipeline extends PipelineBase
This is a Pipeline
with its engine
property set to
CodePipelineEngine
, and exists for nicer ergonomics for
users that don't need to switch out engines.
Example:
// Modern API CodePipeline modernPipeline = CodePipeline.Builder.create(this, "Pipeline") .selfMutation(false) .synth(ShellStep.Builder.create("Synth") .input(CodePipelineSource.connection("my-org/my-app", "main", ConnectionSourceOptions.builder() .connectionArn("arn:aws:codestar-connections:us-east-1:222222222222:connection/7d2469ff-514a-4e4f-9003-5ca4a43cdc41") .build())) .commands(List.of("npm ci", "npm run build", "npx cdk synth")) .build()) .build(); // Original API Artifact cloudAssemblyArtifact = new Artifact(); CdkPipeline originalPipeline = CdkPipeline.Builder.create(this, "Pipeline") .selfMutating(false) .cloudAssemblyArtifact(cloudAssemblyArtifact) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CodePipeline.Builder
A fluent builder for
CodePipeline . |
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
CodePipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CodePipeline(software.amazon.jsii.JsiiObjectRef objRef) |
|
CodePipeline(software.constructs.Construct scope,
java.lang.String id,
CodePipelineProps props) |
Modifier and Type | Method and Description |
---|---|
protected void |
doBuildPipeline()
Implemented by subclasses to do the actual pipeline construction.
|
Pipeline |
getPipeline()
The CodePipeline pipeline that deploys the CDK app.
|
IProject |
getSynthProject()
The CodeBuild project that performs the Synth.
|
addStage, addStage, addWave, addWave, buildPipeline, getCloudAssemblyFileSet, getSynth, getWaves
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected CodePipeline(software.amazon.jsii.JsiiObjectRef objRef)
protected CodePipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CodePipeline(software.constructs.Construct scope, java.lang.String id, CodePipelineProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.protected void doBuildPipeline()
doBuildPipeline
in class PipelineBase
public Pipeline getPipeline()
Only available after the pipeline has been built.
public IProject getSynthProject()
Only available after the pipeline has been built.