Class CfnPipelineProps.Builder

java.lang.Object
software.amazon.awscdk.services.codepipeline.CfnPipelineProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipelineProps>
Enclosing interface:
CfnPipelineProps

@Stability(Stable) public static final class CfnPipelineProps.Builder extends Object implements software.amazon.jsii.Builder<CfnPipelineProps>
A builder for CfnPipelineProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • roleArn

      @Stability(Stable) public CfnPipelineProps.Builder roleArn(String roleArn)
      Parameters:
      roleArn - The Amazon Resource Name (ARN) for CodePipeline to use to either perform actions with no actionRoleArn , or to use to assume roles for actions with an actionRoleArn . This parameter is required.
      Returns:
      this
    • stages

      @Stability(Stable) public CfnPipelineProps.Builder stages(IResolvable stages)
      Parameters:
      stages - Represents information about a stage and its definition. This parameter is required.
      Returns:
      this
    • stages

      @Stability(Stable) public CfnPipelineProps.Builder stages(List<? extends Object> stages)
      Parameters:
      stages - Represents information about a stage and its definition. This parameter is required.
      Returns:
      this
    • artifactStore

      @Stability(Stable) public CfnPipelineProps.Builder artifactStore(IResolvable artifactStore)
      Parameters:
      artifactStore - The S3 bucket where artifacts for the pipeline are stored.

      You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

      Returns:
      this
    • artifactStore

      @Stability(Stable) public CfnPipelineProps.Builder artifactStore(CfnPipeline.ArtifactStoreProperty artifactStore)
      Parameters:
      artifactStore - The S3 bucket where artifacts for the pipeline are stored.

      You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

      Returns:
      this
    • artifactStores

      @Stability(Stable) public CfnPipelineProps.Builder artifactStores(IResolvable artifactStores)
      Parameters:
      artifactStores - A mapping of artifactStore 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 or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

      Returns:
      this
    • artifactStores

      @Stability(Stable) public CfnPipelineProps.Builder artifactStores(List<? extends Object> artifactStores)
      Parameters:
      artifactStores - A mapping of artifactStore 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 or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

      Returns:
      this
    • disableInboundStageTransitions

      @Stability(Stable) public CfnPipelineProps.Builder disableInboundStageTransitions(IResolvable disableInboundStageTransitions)
      Parameters:
      disableInboundStageTransitions - Represents the input of a DisableStageTransition action.
      Returns:
      this
    • disableInboundStageTransitions

      @Stability(Stable) public CfnPipelineProps.Builder disableInboundStageTransitions(List<? extends Object> disableInboundStageTransitions)
      Parameters:
      disableInboundStageTransitions - Represents the input of a DisableStageTransition action.
      Returns:
      this
    • name

      @Stability(Stable) public CfnPipelineProps.Builder name(String name)
      Sets the value of CfnPipelineProps.getName()
      Parameters:
      name - The name of the pipeline.
      Returns:
      this
    • restartExecutionOnUpdate

      @Stability(Stable) public CfnPipelineProps.Builder restartExecutionOnUpdate(Boolean restartExecutionOnUpdate)
      Parameters:
      restartExecutionOnUpdate - Indicates whether to rerun the CodePipeline pipeline after you update it.
      Returns:
      this
    • restartExecutionOnUpdate

      @Stability(Stable) public CfnPipelineProps.Builder restartExecutionOnUpdate(IResolvable restartExecutionOnUpdate)
      Parameters:
      restartExecutionOnUpdate - Indicates whether to rerun the CodePipeline pipeline after you update it.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnPipelineProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnPipelineProps.getTags()
      Parameters:
      tags - Specifies the tags applied to the pipeline.
      Returns:
      this
    • build

      @Stability(Stable) public CfnPipelineProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnPipelineProps>
      Returns:
      a new instance of CfnPipelineProps
      Throws:
      NullPointerException - if any required attribute was not provided