Class CfnPipelineProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipelineProps>
- Enclosing interface:
- CfnPipelineProps
CfnPipelineProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionartifactStore
(IResolvable artifactStore) Sets the value ofCfnPipelineProps.getArtifactStore()
artifactStore
(CfnPipeline.ArtifactStoreProperty artifactStore) Sets the value ofCfnPipelineProps.getArtifactStore()
artifactStores
(List<? extends Object> artifactStores) Sets the value ofCfnPipelineProps.getArtifactStores()
artifactStores
(IResolvable artifactStores) Sets the value ofCfnPipelineProps.getArtifactStores()
build()
Builds the configured instance.disableInboundStageTransitions
(List<? extends Object> disableInboundStageTransitions) Sets the value ofCfnPipelineProps.getDisableInboundStageTransitions()
disableInboundStageTransitions
(IResolvable disableInboundStageTransitions) Sets the value ofCfnPipelineProps.getDisableInboundStageTransitions()
Sets the value ofCfnPipelineProps.getName()
restartExecutionOnUpdate
(Boolean restartExecutionOnUpdate) Sets the value ofCfnPipelineProps.getRestartExecutionOnUpdate()
restartExecutionOnUpdate
(IResolvable restartExecutionOnUpdate) Sets the value ofCfnPipelineProps.getRestartExecutionOnUpdate()
Sets the value ofCfnPipelineProps.getRoleArn()
Sets the value ofCfnPipelineProps.getStages()
stages
(IResolvable stages) Sets the value ofCfnPipelineProps.getStages()
Sets the value ofCfnPipelineProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnPipelineProps.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) for CodePipeline to use to either perform actions with noactionRoleArn
, or to use to assume roles for actions with anactionRoleArn
. This parameter is required.- Returns:
this
-
stages
Sets the value ofCfnPipelineProps.getStages()
- Parameters:
stages
- Represents information about a stage and its definition. This parameter is required.- Returns:
this
-
stages
Sets the value ofCfnPipelineProps.getStages()
- Parameters:
stages
- Represents information about a stage and its definition. This parameter is required.- Returns:
this
-
artifactStore
Sets the value ofCfnPipelineProps.getArtifactStore()
- Parameters:
artifactStore
- The S3 bucket where artifacts for the pipeline are stored.You must include either
artifactStore
orartifactStores
in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores
.- Returns:
this
-
artifactStore
@Stability(Stable) public CfnPipelineProps.Builder artifactStore(CfnPipeline.ArtifactStoreProperty artifactStore) Sets the value ofCfnPipelineProps.getArtifactStore()
- Parameters:
artifactStore
- The S3 bucket where artifacts for the pipeline are stored.You must include either
artifactStore
orartifactStores
in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores
.- Returns:
this
-
artifactStores
Sets the value ofCfnPipelineProps.getArtifactStores()
- Parameters:
artifactStores
- A mapping ofartifactStore
objects and their corresponding AWS Regions. There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.You must include either
artifactStore
orartifactStores
in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores
.- Returns:
this
-
artifactStores
@Stability(Stable) public CfnPipelineProps.Builder artifactStores(List<? extends Object> artifactStores) Sets the value ofCfnPipelineProps.getArtifactStores()
- Parameters:
artifactStores
- A mapping ofartifactStore
objects and their corresponding AWS Regions. There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.You must include either
artifactStore
orartifactStores
in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores
.- Returns:
this
-
disableInboundStageTransitions
@Stability(Stable) public CfnPipelineProps.Builder disableInboundStageTransitions(IResolvable disableInboundStageTransitions) Sets the value ofCfnPipelineProps.getDisableInboundStageTransitions()
- Parameters:
disableInboundStageTransitions
- Represents the input of aDisableStageTransition
action.- Returns:
this
-
disableInboundStageTransitions
@Stability(Stable) public CfnPipelineProps.Builder disableInboundStageTransitions(List<? extends Object> disableInboundStageTransitions) Sets the value ofCfnPipelineProps.getDisableInboundStageTransitions()
- Parameters:
disableInboundStageTransitions
- Represents the input of aDisableStageTransition
action.- Returns:
this
-
name
Sets the value ofCfnPipelineProps.getName()
- Parameters:
name
- The name of the pipeline.- Returns:
this
-
restartExecutionOnUpdate
@Stability(Stable) public CfnPipelineProps.Builder restartExecutionOnUpdate(Boolean restartExecutionOnUpdate) Sets the value ofCfnPipelineProps.getRestartExecutionOnUpdate()
- Parameters:
restartExecutionOnUpdate
- Indicates whether to rerun the CodePipeline pipeline after you update it.- Returns:
this
-
restartExecutionOnUpdate
@Stability(Stable) public CfnPipelineProps.Builder restartExecutionOnUpdate(IResolvable restartExecutionOnUpdate) Sets the value ofCfnPipelineProps.getRestartExecutionOnUpdate()
- Parameters:
restartExecutionOnUpdate
- Indicates whether to rerun the CodePipeline pipeline after you update it.- Returns:
this
-
tags
Sets the value ofCfnPipelineProps.getTags()
- Parameters:
tags
- Specifies the tags applied to the pipeline.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipelineProps>
- Returns:
- a new instance of
CfnPipelineProps
- Throws:
NullPointerException
- if any required attribute was not provided
-