@Generated(value="jsii-pacmak/1.14.1 (build 828de8a)", date="2020-11-11T12:53:02.490Z") @Stability(value=Stable) public class Pipeline extends Resource implements IPipeline
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 // create a pipeline var pipeline = new Pipeline(this, "Pipeline"); // add a stage var sourceStage = pipeline.addStage(Map.of("stageName", "Source")); // add a source action to the stage sourceStage.addAction(CodeCommitSourceAction.Builder.create() .actionName("Source") .outputArtifactName("SourceArtifact") .repository(repo) .build());
| Modifier and Type | Class and Description |
|---|---|
static class |
Pipeline.Builder
A fluent builder for
Pipeline. |
software.amazon.jsii.JsiiObject.InitializationModeIPipeline.Jsii$Default, IPipeline.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Pipeline(software.constructs.Construct scope,
String id) |
|
Pipeline(software.constructs.Construct scope,
String id,
PipelineProps props) |
protected |
Pipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Pipeline(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
IStage |
addStage(StageOptions props)
Creates a new Stage, and adds it to this Pipeline.
|
void |
addToRolePolicy(PolicyStatement statement)
Adds a statement to the pipeline role.
|
static IPipeline |
fromPipelineArn(software.constructs.Construct scope,
String id,
String pipelineArn)
Import a pipeline into this app.
|
IBucket |
getArtifactBucket()
Bucket used to store output artifacts.
|
Map<String,CrossRegionSupport> |
getCrossRegionSupport()
(experimental) Returns all of the
CrossRegionSupportStacks that were generated automatically when dealing with Actions that reside in a different region than the Pipeline itself. |
String |
getPipelineArn()
ARN of this pipeline.
|
String |
getPipelineName()
The name of the pipeline.
|
String |
getPipelineVersion()
The version of the pipeline.
|
IRole |
getRole()
The IAM role AWS CodePipeline will use to perform actions or assume roles for actions with a more specific IAM role.
|
Number |
getStageCount()
Get the number of Stages in this Pipeline.
|
List<IStage> |
getStages()
Returns the stages that comprise the pipeline.
|
Rule |
onEvent(String id)
Defines an event rule triggered by this CodePipeline.
|
Rule |
onEvent(String id,
OnEventOptions options)
Defines an event rule triggered by this CodePipeline.
|
Rule |
onStateChange(String id)
Defines an event rule triggered by the "CodePipeline Pipeline Execution State Change" event emitted from this pipeline.
|
Rule |
onStateChange(String id,
OnEventOptions options)
Defines an event rule triggered by the "CodePipeline Pipeline Execution State Change" event emitted from this pipeline.
|
IStage |
stage(String stageName)
Access one of the pipeline's stages by stage name.
|
protected List<String> |
validate()
Validate the pipeline structure.
|
generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStackgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected Pipeline(software.amazon.jsii.JsiiObjectRef objRef)
protected Pipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Pipeline(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
PipelineProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public Pipeline(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static IPipeline fromPipelineArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String pipelineArn)
scope - the scope into which to import this pipeline. This parameter is required.id - the logical ID of the returned pipeline construct. This parameter is required.pipelineArn - The ARN of the pipeline (e.g. `arn:aws:codepipeline:us-east-1:123456789012:MyDemoPipeline`). This parameter is required.@Stability(value=Stable) @NotNull public IStage addStage(@NotNull StageOptions props)
props - the creation properties of the new Stage. This parameter is required.@Stability(value=Stable)
public void addToRolePolicy(@NotNull
PolicyStatement statement)
statement - This parameter is required.@Stability(value=Stable) @NotNull public Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
@Stability(value=Stable) @NotNull public Rule onEvent(@NotNull String id)
@Stability(value=Stable) @NotNull public Rule onStateChange(@NotNull String id, @Nullable OnEventOptions options)
onStateChange in interface IPipelineid - Identifier for this event handler. This parameter is required.options - Additional options to pass to the event rule.@Stability(value=Stable) @NotNull public Rule onStateChange(@NotNull String id)
onStateChange in interface IPipelineid - Identifier for this event handler. This parameter is required.@Stability(value=Stable) @NotNull public IStage stage(@NotNull String stageName)
stageName - This parameter is required.@Stability(value=Stable) @NotNull protected List<String> validate()
Validation happens according to the rules documented at
https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#pipeline-requirements
@Stability(value=Stable) @NotNull public IBucket getArtifactBucket()
@Stability(value=Experimental) @NotNull public Map<String,CrossRegionSupport> getCrossRegionSupport()
CrossRegionSupportStacks that were generated automatically when dealing with Actions that reside in a different region than the Pipeline itself.@Stability(value=Stable) @NotNull public String getPipelineArn()
getPipelineArn in interface IPipeline@Stability(value=Stable) @NotNull public String getPipelineName()
getPipelineName in interface IPipeline@Stability(value=Stable) @NotNull public String getPipelineVersion()
@Stability(value=Stable) @NotNull public IRole getRole()
@Stability(value=Stable) @NotNull public Number getStageCount()
Copyright © 2020. All rights reserved.