@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:56.608Z") @Stability(value=Experimental) public class Pipeline extends Resource implements IPipeline
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 // create a pipeline Object pipeline = new Pipeline(this, "Pipeline"); // add a stage Object 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
(experimental) 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)
(experimental) Creates a new Stage, and adds it to this Pipeline.
|
void |
addToRolePolicy(PolicyStatement statement)
(experimental) Adds a statement to the pipeline role.
|
static IPipeline |
fromPipelineArn(software.constructs.Construct scope,
String id,
String pipelineArn)
(experimental) Import a pipeline into this app.
|
IBucket |
getArtifactBucket()
(experimental) 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()
(experimental) ARN of this pipeline.
|
String |
getPipelineName()
(experimental) The name of the pipeline.
|
String |
getPipelineVersion()
(experimental) The version of the pipeline.
|
IRole |
getRole()
(experimental) The IAM role AWS CodePipeline will use to perform actions or assume roles for actions with a more specific IAM role.
|
Number |
getStageCount()
(experimental) Get the number of Stages in this Pipeline.
|
List<IStage> |
getStages()
(experimental) Returns the stages that comprise the pipeline.
|
Rule |
onEvent(String id)
(experimental) Defines an event rule triggered by this CodePipeline.
|
Rule |
onEvent(String id,
OnEventOptions options)
(experimental) Defines an event rule triggered by this CodePipeline.
|
Rule |
onStateChange(String id)
(experimental) Defines an event rule triggered by the "CodePipeline Pipeline Execution State Change" event emitted from this pipeline.
|
Rule |
onStateChange(String id,
OnEventOptions options)
(experimental) Defines an event rule triggered by the "CodePipeline Pipeline Execution State Change" event emitted from this pipeline.
|
IStage |
stage(String stageName)
(experimental) Access one of the pipeline's stages by stage name.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Pipeline(software.amazon.jsii.JsiiObjectRef objRef)
protected Pipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
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=Experimental)
public Pipeline(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @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=Experimental) @NotNull public IStage addStage(@NotNull StageOptions props)
props - the creation properties of the new Stage. This parameter is required.@Stability(value=Experimental)
public void addToRolePolicy(@NotNull
PolicyStatement statement)
statement - This parameter is required.@Stability(value=Experimental) @NotNull public Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
@Stability(value=Experimental) @NotNull public Rule onEvent(@NotNull String id)
@Stability(value=Experimental) @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=Experimental) @NotNull public Rule onStateChange(@NotNull String id)
onStateChange in interface IPipelineid - Identifier for this event handler. This parameter is required.@Stability(value=Experimental) @NotNull public IStage stage(@NotNull String stageName)
stageName - This parameter is required.@Stability(value=Experimental) @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=Experimental) @NotNull public String getPipelineArn()
getPipelineArn in interface IPipeline@Stability(value=Experimental) @NotNull public String getPipelineName()
getPipelineName in interface IPipeline@Stability(value=Experimental) @NotNull public String getPipelineVersion()
@Stability(value=Experimental) @NotNull public IRole getRole()
@Stability(value=Experimental) @NotNull public Number getStageCount()
@Stability(value=Experimental) @NotNull public List<IStage> getStages()
Note: the returned array is a defensive copy, so adding elements to it has no effect. Instead, use the {@link addStage} method if you want to add more stages to the pipeline.
Copyright © 2021. All rights reserved.