Class CfnPipeline.Builder

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

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

    • create

      @Stability(Stable) public static CfnPipeline.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnPipeline.Builder.
    • roleArn

      @Stability(Stable) public CfnPipeline.Builder roleArn(String 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 .

      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 CfnPipeline.Builder stages(IResolvable stages)
      Represents information about a stage and its definition.

      Parameters:
      stages - Represents information about a stage and its definition. This parameter is required.
      Returns:
      this
    • stages

      @Stability(Stable) public CfnPipeline.Builder stages(List<? extends Object> stages)
      Represents information about a stage and its definition.

      Parameters:
      stages - Represents information about a stage and its definition. This parameter is required.
      Returns:
      this
    • artifactStore

      @Stability(Stable) public CfnPipeline.Builder artifactStore(IResolvable 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 .

      Parameters:
      artifactStore - The S3 bucket where artifacts for the pipeline are stored. This parameter is required.
      Returns:
      this
    • artifactStore

      @Stability(Stable) public CfnPipeline.Builder artifactStore(CfnPipeline.ArtifactStoreProperty 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 .

      Parameters:
      artifactStore - The S3 bucket where artifacts for the pipeline are stored. This parameter is required.
      Returns:
      this
    • artifactStores

      @Stability(Stable) public CfnPipeline.Builder artifactStores(IResolvable 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 .

      Parameters:
      artifactStores - A mapping of artifactStore objects and their corresponding AWS Regions. This parameter is required.
      Returns:
      this
    • artifactStores

      @Stability(Stable) public CfnPipeline.Builder artifactStores(List<? extends Object> 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 .

      Parameters:
      artifactStores - A mapping of artifactStore objects and their corresponding AWS Regions. This parameter is required.
      Returns:
      this
    • disableInboundStageTransitions

      @Stability(Stable) public CfnPipeline.Builder disableInboundStageTransitions(IResolvable disableInboundStageTransitions)
      Represents the input of a DisableStageTransition action.

      Parameters:
      disableInboundStageTransitions - Represents the input of a DisableStageTransition action. This parameter is required.
      Returns:
      this
    • disableInboundStageTransitions

      @Stability(Stable) public CfnPipeline.Builder disableInboundStageTransitions(List<? extends Object> disableInboundStageTransitions)
      Represents the input of a DisableStageTransition action.

      Parameters:
      disableInboundStageTransitions - Represents the input of a DisableStageTransition action. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnPipeline.Builder name(String name)
      The name of the pipeline.

      Parameters:
      name - The name of the pipeline. This parameter is required.
      Returns:
      this
    • restartExecutionOnUpdate

      @Stability(Stable) public CfnPipeline.Builder restartExecutionOnUpdate(Boolean restartExecutionOnUpdate)
      Indicates whether to rerun the CodePipeline pipeline after you update it.

      Parameters:
      restartExecutionOnUpdate - Indicates whether to rerun the CodePipeline pipeline after you update it. This parameter is required.
      Returns:
      this
    • restartExecutionOnUpdate

      @Stability(Stable) public CfnPipeline.Builder restartExecutionOnUpdate(IResolvable restartExecutionOnUpdate)
      Indicates whether to rerun the CodePipeline pipeline after you update it.

      Parameters:
      restartExecutionOnUpdate - Indicates whether to rerun the CodePipeline pipeline after you update it. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnPipeline.Builder tags(List<? extends CfnTag> tags)
      Specifies the tags applied to the pipeline.

      Parameters:
      tags - Specifies the tags applied to the pipeline. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnPipeline build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnPipeline>
      Returns:
      a newly built instance of CfnPipeline.