Class PipelineProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.PipelineProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PipelineProps>
- Enclosing interface:
PipelineProps
@Stability(Stable)
public static final class PipelineProps.Builder
extends Object
implements software.amazon.jsii.Builder<PipelineProps>
A builder for
PipelineProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionartifactBucket
(IBucket artifactBucket) Sets the value ofPipelineProps.getArtifactBucket()
build()
Builds the configured instance.crossAccountKeys
(Boolean crossAccountKeys) Sets the value ofPipelineProps.getCrossAccountKeys()
crossRegionReplicationBuckets
(Map<String, ? extends IBucket> crossRegionReplicationBuckets) Sets the value ofPipelineProps.getCrossRegionReplicationBuckets()
enableKeyRotation
(Boolean enableKeyRotation) Sets the value ofPipelineProps.getEnableKeyRotation()
pipelineName
(String pipelineName) Sets the value ofPipelineProps.getPipelineName()
restartExecutionOnUpdate
(Boolean restartExecutionOnUpdate) Sets the value ofPipelineProps.getRestartExecutionOnUpdate()
reuseCrossRegionSupportStacks
(Boolean reuseCrossRegionSupportStacks) Sets the value ofPipelineProps.getReuseCrossRegionSupportStacks()
Sets the value ofPipelineProps.getRole()
stages
(List<? extends StageProps> stages) Sets the value ofPipelineProps.getStages()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
artifactBucket
Sets the value ofPipelineProps.getArtifactBucket()
- Parameters:
artifactBucket
- The S3 bucket used by this Pipeline to store artifacts.- Returns:
this
-
crossAccountKeys
Sets the value ofPipelineProps.getCrossAccountKeys()
- Parameters:
crossAccountKeys
- Create KMS keys for cross-account deployments. This controls whether the pipeline is enabled for cross-account deployments.By default cross-account deployments are enabled, but this feature requires that KMS Customer Master Keys are created which have a cost of $1/month.
If you do not need cross-account deployments, you can set this to
false
to not create those keys and save on that cost (the artifact bucket will be encrypted with an AWS-managed key). However, cross-account deployments will no longer be possible.- Returns:
this
-
crossRegionReplicationBuckets
@Stability(Stable) public PipelineProps.Builder crossRegionReplicationBuckets(Map<String, ? extends IBucket> crossRegionReplicationBuckets) Sets the value ofPipelineProps.getCrossRegionReplicationBuckets()
- Parameters:
crossRegionReplicationBuckets
- A map of region to S3 bucket name used for cross-region CodePipeline. For every Action that you specify targeting a different region than the Pipeline itself, if you don't provide an explicit Bucket for that region using this property, the construct will automatically create a Stack containing an S3 Bucket in that region.- Returns:
this
-
enableKeyRotation
Sets the value ofPipelineProps.getEnableKeyRotation()
- Parameters:
enableKeyRotation
- Enable KMS key rotation for the generated KMS keys. By default KMS key rotation is disabled, but will add an additional $1/month for each year the key exists when enabled.- Returns:
this
-
pipelineName
Sets the value ofPipelineProps.getPipelineName()
- Parameters:
pipelineName
- Name of the pipeline.- Returns:
this
-
restartExecutionOnUpdate
@Stability(Stable) public PipelineProps.Builder restartExecutionOnUpdate(Boolean restartExecutionOnUpdate) Sets the value ofPipelineProps.getRestartExecutionOnUpdate()
- Parameters:
restartExecutionOnUpdate
- Indicates whether to rerun the AWS CodePipeline pipeline after you update it.- Returns:
this
-
reuseCrossRegionSupportStacks
@Stability(Stable) public PipelineProps.Builder reuseCrossRegionSupportStacks(Boolean reuseCrossRegionSupportStacks) Sets the value ofPipelineProps.getReuseCrossRegionSupportStacks()
- Parameters:
reuseCrossRegionSupportStacks
- Reuse the same cross region support stack for all pipelines in the App.- Returns:
this
-
role
Sets the value ofPipelineProps.getRole()
- Parameters:
role
- The IAM role to be assumed by this Pipeline.- Returns:
this
-
stages
Sets the value ofPipelineProps.getStages()
- Parameters:
stages
- The list of Stages, in order, to create this Pipeline with. You can always add more Stages later by callingPipeline.addStage(software.amazon.awscdk.services.codepipeline.StageOptions)
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PipelineProps>
- Returns:
- a new instance of
PipelineProps
- Throws:
NullPointerException
- if any required attribute was not provided
-