Skip to content

Commit 9e0c9c8

Browse files
committed
Add CDK codepipeline V2 option
1 parent b4daf84 commit 9e0c9c8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/aws-cdk-lib/pipelines/lib/codepipeline/codepipeline.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,15 @@ export interface CodePipelineProps {
254254
* @default - no cross region replication buckets.
255255
*/
256256
readonly crossRegionReplicationBuckets?: { [region: string]: s3.IBucket };
257+
258+
/**
259+
* Type of the pipeline.
260+
*
261+
* @default - PipelineType.V1
262+
*
263+
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types-planning.html
264+
*/
265+
readonly pipelineType?: cp.PipelineType;
257266
}
258267

259268
/**
@@ -476,6 +485,7 @@ export class CodePipeline extends PipelineBase {
476485
role: this.props.role,
477486
enableKeyRotation: this.props.enableKeyRotation,
478487
artifactBucket: this.props.artifactBucket,
488+
pipelineType: this.props.pipelineType,
479489
});
480490
}
481491

0 commit comments

Comments
 (0)