java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:40.551Z") @Stability(Stable) public class CfnPipeline extends CfnResource implements IInspectable, ITaggable
The AWS::CodePipeline::Pipeline resource creates a CodePipeline pipeline that describes how software changes go through a release process.

For more information, see What Is CodePipeline? in the CodePipeline User Guide .

For an example in YAML and JSON that contains the parameters in this reference, see Examples .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codepipeline.*;
 Object configuration;
 CfnPipeline cfnPipeline = CfnPipeline.Builder.create(this, "MyCfnPipeline")
         .roleArn("roleArn")
         .stages(List.of(StageDeclarationProperty.builder()
                 .actions(List.of(ActionDeclarationProperty.builder()
                         .actionTypeId(ActionTypeIdProperty.builder()
                                 .category("category")
                                 .owner("owner")
                                 .provider("provider")
                                 .version("version")
                                 .build())
                         .name("name")
                         // the properties below are optional
                         .configuration(configuration)
                         .inputArtifacts(List.of(InputArtifactProperty.builder()
                                 .name("name")
                                 .build()))
                         .namespace("namespace")
                         .outputArtifacts(List.of(OutputArtifactProperty.builder()
                                 .name("name")
                                 .build()))
                         .region("region")
                         .roleArn("roleArn")
                         .runOrder(123)
                         .timeoutInMinutes(123)
                         .build()))
                 .name("name")
                 // the properties below are optional
                 .beforeEntry(BeforeEntryConditionsProperty.builder()
                         .conditions(List.of(ConditionProperty.builder()
                                 .result("result")
                                 .rules(List.of(RuleDeclarationProperty.builder()
                                         .configuration(configuration)
                                         .inputArtifacts(List.of(InputArtifactProperty.builder()
                                                 .name("name")
                                                 .build()))
                                         .name("name")
                                         .region("region")
                                         .roleArn("roleArn")
                                         .ruleTypeId(RuleTypeIdProperty.builder()
                                                 .category("category")
                                                 .owner("owner")
                                                 .provider("provider")
                                                 .version("version")
                                                 .build())
                                         .build()))
                                 .build()))
                         .build())
                 .blockers(List.of(BlockerDeclarationProperty.builder()
                         .name("name")
                         .type("type")
                         .build()))
                 .onFailure(FailureConditionsProperty.builder()
                         .conditions(List.of(ConditionProperty.builder()
                                 .result("result")
                                 .rules(List.of(RuleDeclarationProperty.builder()
                                         .configuration(configuration)
                                         .inputArtifacts(List.of(InputArtifactProperty.builder()
                                                 .name("name")
                                                 .build()))
                                         .name("name")
                                         .region("region")
                                         .roleArn("roleArn")
                                         .ruleTypeId(RuleTypeIdProperty.builder()
                                                 .category("category")
                                                 .owner("owner")
                                                 .provider("provider")
                                                 .version("version")
                                                 .build())
                                         .build()))
                                 .build()))
                         .result("result")
                         .build())
                 .onSuccess(SuccessConditionsProperty.builder()
                         .conditions(List.of(ConditionProperty.builder()
                                 .result("result")
                                 .rules(List.of(RuleDeclarationProperty.builder()
                                         .configuration(configuration)
                                         .inputArtifacts(List.of(InputArtifactProperty.builder()
                                                 .name("name")
                                                 .build()))
                                         .name("name")
                                         .region("region")
                                         .roleArn("roleArn")
                                         .ruleTypeId(RuleTypeIdProperty.builder()
                                                 .category("category")
                                                 .owner("owner")
                                                 .provider("provider")
                                                 .version("version")
                                                 .build())
                                         .build()))
                                 .build()))
                         .build())
                 .build()))
         // the properties below are optional
         .artifactStore(ArtifactStoreProperty.builder()
                 .location("location")
                 .type("type")
                 // the properties below are optional
                 .encryptionKey(EncryptionKeyProperty.builder()
                         .id("id")
                         .type("type")
                         .build())
                 .build())
         .artifactStores(List.of(ArtifactStoreMapProperty.builder()
                 .artifactStore(ArtifactStoreProperty.builder()
                         .location("location")
                         .type("type")
                         // the properties below are optional
                         .encryptionKey(EncryptionKeyProperty.builder()
                                 .id("id")
                                 .type("type")
                                 .build())
                         .build())
                 .region("region")
                 .build()))
         .disableInboundStageTransitions(List.of(StageTransitionProperty.builder()
                 .reason("reason")
                 .stageName("stageName")
                 .build()))
         .executionMode("executionMode")
         .name("name")
         .pipelineType("pipelineType")
         .restartExecutionOnUpdate(false)
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .triggers(List.of(PipelineTriggerDeclarationProperty.builder()
                 .providerType("providerType")
                 // the properties below are optional
                 .gitConfiguration(GitConfigurationProperty.builder()
                         .sourceActionName("sourceActionName")
                         // the properties below are optional
                         .pullRequest(List.of(GitPullRequestFilterProperty.builder()
                                 .branches(GitBranchFilterCriteriaProperty.builder()
                                         .excludes(List.of("excludes"))
                                         .includes(List.of("includes"))
                                         .build())
                                 .events(List.of("events"))
                                 .filePaths(GitFilePathFilterCriteriaProperty.builder()
                                         .excludes(List.of("excludes"))
                                         .includes(List.of("includes"))
                                         .build())
                                 .build()))
                         .push(List.of(GitPushFilterProperty.builder()
                                 .branches(GitBranchFilterCriteriaProperty.builder()
                                         .excludes(List.of("excludes"))
                                         .includes(List.of("includes"))
                                         .build())
                                 .filePaths(GitFilePathFilterCriteriaProperty.builder()
                                         .excludes(List.of("excludes"))
                                         .includes(List.of("includes"))
                                         .build())
                                 .tags(GitTagFilterCriteriaProperty.builder()
                                         .excludes(List.of("excludes"))
                                         .includes(List.of("includes"))
                                         .build())
                                 .build()))
                         .build())
                 .build()))
         .variables(List.of(VariableDeclarationProperty.builder()
                 .name("name")
                 // the properties below are optional
                 .defaultValue("defaultValue")
                 .description("description")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnPipeline

      protected CfnPipeline(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnPipeline

      protected CfnPipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnPipeline

      @Stability(Stable) public CfnPipeline(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPipelineProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrVersion

      @Stability(Stable) @NotNull public String getAttrVersion()
      The version of the pipeline.

      A new pipeline is always assigned a version number of 1. This number increments when a pipeline is updated.

    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getRoleArn

      @Stability(Stable) @NotNull public String getRoleArn()
      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 .
    • setRoleArn

      @Stability(Stable) public void setRoleArn(@NotNull String value)
      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 .
    • getStages

      @Stability(Stable) @NotNull public Object getStages()
      Represents information about a stage and its definition.
    • setStages

      @Stability(Stable) public void setStages(@NotNull IResolvable value)
      Represents information about a stage and its definition.
    • setStages

      @Stability(Stable) public void setStages(@NotNull List<Object> value)
      Represents information about a stage and its definition.
    • getArtifactStore

      @Stability(Stable) @Nullable public Object getArtifactStore()
      The S3 bucket where artifacts for the pipeline are stored.
    • setArtifactStore

      @Stability(Stable) public void setArtifactStore(@Nullable IResolvable value)
      The S3 bucket where artifacts for the pipeline are stored.
    • setArtifactStore

      @Stability(Stable) public void setArtifactStore(@Nullable CfnPipeline.ArtifactStoreProperty value)
      The S3 bucket where artifacts for the pipeline are stored.
    • getArtifactStores

      @Stability(Stable) @Nullable public Object getArtifactStores()
      A mapping of artifactStore objects and their corresponding AWS Regions.
    • setArtifactStores

      @Stability(Stable) public void setArtifactStores(@Nullable IResolvable value)
      A mapping of artifactStore objects and their corresponding AWS Regions.
    • setArtifactStores

      @Stability(Stable) public void setArtifactStores(@Nullable List<Object> value)
      A mapping of artifactStore objects and their corresponding AWS Regions.
    • getDisableInboundStageTransitions

      @Stability(Stable) @Nullable public Object getDisableInboundStageTransitions()
      Represents the input of a DisableStageTransition action.
    • setDisableInboundStageTransitions

      @Stability(Stable) public void setDisableInboundStageTransitions(@Nullable IResolvable value)
      Represents the input of a DisableStageTransition action.
    • setDisableInboundStageTransitions

      @Stability(Stable) public void setDisableInboundStageTransitions(@Nullable List<Object> value)
      Represents the input of a DisableStageTransition action.
    • getExecutionMode

      @Stability(Stable) @Nullable public String getExecutionMode()
      The method that the pipeline will use to handle multiple executions.
    • setExecutionMode

      @Stability(Stable) public void setExecutionMode(@Nullable String value)
      The method that the pipeline will use to handle multiple executions.
    • getName

      @Stability(Stable) @Nullable public String getName()
      The name of the pipeline.
    • setName

      @Stability(Stable) public void setName(@Nullable String value)
      The name of the pipeline.
    • getPipelineType

      @Stability(Stable) @Nullable public String getPipelineType()
      CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.
    • setPipelineType

      @Stability(Stable) public void setPipelineType(@Nullable String value)
      CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.
    • getRestartExecutionOnUpdate

      @Stability(Stable) @Nullable public Object getRestartExecutionOnUpdate()
      Indicates whether to rerun the CodePipeline pipeline after you update it.
    • setRestartExecutionOnUpdate

      @Stability(Stable) public void setRestartExecutionOnUpdate(@Nullable Boolean value)
      Indicates whether to rerun the CodePipeline pipeline after you update it.
    • setRestartExecutionOnUpdate

      @Stability(Stable) public void setRestartExecutionOnUpdate(@Nullable IResolvable value)
      Indicates whether to rerun the CodePipeline pipeline after you update it.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      Specifies the tags applied to the pipeline.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      Specifies the tags applied to the pipeline.
    • getTriggers

      @Stability(Stable) @Nullable public Object getTriggers()
      The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.
    • setTriggers

      @Stability(Stable) public void setTriggers(@Nullable IResolvable value)
      The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.
    • setTriggers

      @Stability(Stable) public void setTriggers(@Nullable List<Object> value)
      The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.
    • getVariables

      @Stability(Stable) @Nullable public Object getVariables()
      A list that defines the pipeline variables for a pipeline resource.
    • setVariables

      @Stability(Stable) public void setVariables(@Nullable IResolvable value)
      A list that defines the pipeline variables for a pipeline resource.
    • setVariables

      @Stability(Stable) public void setVariables(@Nullable List<Object> value)
      A list that defines the pipeline variables for a pipeline resource.