Skip to content

Commit

Permalink
Add CDK codepipeline V2 option
Browse files Browse the repository at this point in the history
  • Loading branch information
vumdao committed Feb 16, 2024
1 parent b4daf84 commit 9e0c9c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/aws-cdk-lib/pipelines/lib/codepipeline/codepipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,15 @@ export interface CodePipelineProps {
* @default - no cross region replication buckets.
*/
readonly crossRegionReplicationBuckets?: { [region: string]: s3.IBucket };

/**
* Type of the pipeline.
*
* @default - PipelineType.V1
*
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types-planning.html
*/
readonly pipelineType?: cp.PipelineType;
}

/**
Expand Down Expand Up @@ -476,6 +485,7 @@ export class CodePipeline extends PipelineBase {
role: this.props.role,
enableKeyRotation: this.props.enableKeyRotation,
artifactBucket: this.props.artifactBucket,
pipelineType: this.props.pipelineType,
});
}

Expand Down

0 comments on commit 9e0c9c8

Please sign in to comment.